diff --git a/assets/@vue_devtools-api@6.5.1-w40geAFS.js b/assets/@vue_devtools-api@6.5.1-l0sNRNKZ.js similarity index 100% rename from assets/@vue_devtools-api@6.5.1-w40geAFS.js rename to assets/@vue_devtools-api@6.5.1-l0sNRNKZ.js diff --git a/assets/@vue_reactivity@3.4.20-tq0PoOjZ.js b/assets/@vue_reactivity@3.4.21-8_tu8c_o.js similarity index 82% rename from assets/@vue_reactivity@3.4.20-tq0PoOjZ.js rename to assets/@vue_reactivity@3.4.21-8_tu8c_o.js index 1ec7b92a..ae94d4fc 100644 --- a/assets/@vue_reactivity@3.4.20-tq0PoOjZ.js +++ b/assets/@vue_reactivity@3.4.21-8_tu8c_o.js @@ -1,5 +1,5 @@ -import{i as e}from"./@vue_shared@3.4.20-IXQMxlXI.js";/** -* @vue/reactivity v3.4.20 +import{i as e}from"./@vue_shared@3.4.21-DCcVmNGw.js";/** +* @vue/reactivity v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(e));function t(r){return i(r)?t(r.__v_raw):!!(r&&r.__v_isReactive)}function i(r){return!!(r&&r.__v_isReadonly)}function o(r){return t(r)||i(r)}function s(r){return!!(r&&r.__v_isRef===!0)}export{o as a,s as i}; diff --git a/assets/@vue_runtime-core@3.4.20-d4vFfH7R.js.gz b/assets/@vue_runtime-core@3.4.20-d4vFfH7R.js.gz deleted file mode 100644 index a86ba6c4..00000000 Binary files a/assets/@vue_runtime-core@3.4.20-d4vFfH7R.js.gz and /dev/null differ diff --git a/assets/@vue_runtime-core@3.4.20-d4vFfH7R.js b/assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js similarity index 95% rename from assets/@vue_runtime-core@3.4.20-d4vFfH7R.js rename to assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js index 113ca28b..e5324819 100644 --- a/assets/@vue_runtime-core@3.4.20-d4vFfH7R.js +++ b/assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js @@ -1,5 +1,5 @@ -import{i as x,a as k}from"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import{a as g,b as m,c as S,g as R,E as O,n as N,d as b,e as h,f as p,h as A}from"./@vue_shared@3.4.20-IXQMxlXI.js";/** -* @vue/runtime-core v3.4.20 +import{i as x,a as k}from"./@vue_reactivity@3.4.21-8_tu8c_o.js";import{a as g,b as m,c as S,g as R,E as O,n as N,d as b,e as h,f as p,h as A}from"./@vue_shared@3.4.21-DCcVmNGw.js";/** +* @vue/runtime-core v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let f=null,z=null;const B=Symbol.for("v-ndc"),M=t=>t.__isSuspense,j=t=>t.__isTeleport,y=Symbol.for("v-fgt"),U=Symbol.for("v-txt"),G=Symbol.for("v-cmt"),K=Symbol.for("v-stc"),r=[];let u=null;function X(t=!1){r.push(u=t?null:[])}function L(){r.pop(),u=r[r.length-1]||null}function Y(t){return t.dynamicChildren=u||O,L(),u&&u.push(t),t}function Z(t,s,n,c,l,e){return Y(T(t,s,n,c,l,e,!0))}function D(t){return t?t.__v_isVNode===!0:!1}const E="__vInternal",I=({key:t})=>t??null,_=({ref:t,ref_key:s,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?g(t)||x(t)||S(t)?{i:f,r:t,k:s,f:!!n}:t:null);function T(t,s=null,n=null,c=0,l=null,e=t===y?0:1,i=!1,a=!1){const o={__v_isVNode:!0,__v_skip:!0,type:t,props:s,key:s&&I(s),ref:s&&_(s),scopeId:z,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:e,patchFlag:c,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:f};return a?(F(o,n),e&128&&t.normalize(o)):n&&(o.shapeFlag|=g(n)?8:16),!i&&u&&(o.patchFlag>0||e&6)&&o.patchFlag!==32&&u.push(o),o}const V=P;function P(t,s=null,n=null,c=0,l=null,e=!1){if((!t||t===B)&&(t=G),D(t)){const a=C(t,s,!0);return n&&F(a,n),!e&&u&&(a.shapeFlag&6?u[u.indexOf(t)]=a:u.push(a)),a.patchFlag|=-2,a}if(J(t)&&(t=t.__vccOpts),s){s=q(s);let{class:a,style:o}=s;a&&!g(a)&&(s.class=N(a)),b(o)&&(k(o)&&!m(o)&&(o=h({},o)),s.style=p(o))}const i=g(t)?1:M(t)?128:j(t)?64:b(t)?4:S(t)?2:0;return T(t,s,n,c,l,i,e,!0)}function q(t){return t?k(t)||E in t?h({},t):t:null}function C(t,s,n=!1){const{props:c,ref:l,patchFlag:e,children:i}=t,a=s?H(c||{},s):c;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&I(a),ref:s&&s.ref?n&&l?m(l)?l.concat(_(s)):[l,_(s)]:_(s):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:s&&t.type!==y?e===-1?16:e|16:e,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&C(t.ssContent),ssFallback:t.ssFallback&&C(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function w(t=" ",s=0){return V(U,null,t,s)}function $(t,s){const n=V(K,null,t);return n.staticCount=s,n}function F(t,s){let n=0;const{shapeFlag:c}=t;if(s==null)s=null;else if(m(s))n=16;else if(typeof s=="object")if(c&65){const l=s.default;l&&(l._c&&(l._d=!1),F(t,l()),l._c&&(l._d=!0));return}else{n=32;const l=s._;!l&&!(E in s)?s._ctx=f:l===3&&f&&(f.slots._===1?s._=1:(s._=2,t.patchFlag|=1024))}else S(s)?(s={default:s,_ctx:f},n=32):(s=String(s),c&64?(n=16,s=[w(s)]):n=8);t.children=s,t.shapeFlag|=n}function H(...t){const s={};for(let n=0;n{let l;return(l=t[n])||(l=t[n]=[]),l.push(c),e=>{l.length>1?l.forEach(i=>i(e)):l[0](e)}};s("__VUE_INSTANCE_SETTERS__",n=>n),s("__VUE_SSR_SETTERS__",n=>n)}function J(t){return S(t)&&"__vccOpts"in t}export{$ as a,Z as c,X as o}; diff --git a/assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js.gz b/assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js.gz new file mode 100644 index 00000000..15079667 Binary files /dev/null and b/assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js.gz differ diff --git a/assets/@vue_runtime-dom@3.4.20-w40geAFS.js b/assets/@vue_runtime-dom@3.4.21-l0sNRNKZ.js similarity index 100% rename from assets/@vue_runtime-dom@3.4.20-w40geAFS.js rename to assets/@vue_runtime-dom@3.4.21-l0sNRNKZ.js diff --git a/assets/@vue_shared@3.4.20-IXQMxlXI.js.gz b/assets/@vue_shared@3.4.20-IXQMxlXI.js.gz deleted file mode 100644 index 0b1c384c..00000000 Binary files a/assets/@vue_shared@3.4.20-IXQMxlXI.js.gz and /dev/null differ diff --git a/assets/@vue_shared@3.4.20-IXQMxlXI.js b/assets/@vue_shared@3.4.21-DCcVmNGw.js similarity index 97% rename from assets/@vue_shared@3.4.20-IXQMxlXI.js rename to assets/@vue_shared@3.4.21-DCcVmNGw.js index b03dc8f1..b2460c05 100644 --- a/assets/@vue_shared@3.4.20-IXQMxlXI.js +++ b/assets/@vue_shared@3.4.21-DCcVmNGw.js @@ -1,5 +1,5 @@ /** -* @vue/shared v3.4.20 +* @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const h=[],b=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),A=Object.assign,f=Array.isArray,C=t=>typeof t=="function",i=t=>typeof t=="string",E=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object";let c;const R=()=>c||(c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function a(t){if(f(t)){const o={};for(let n=0;n{if(n){const s=n.split(g);s.length>1&&(o[s[0].trim()]=s[1].trim())}}),o}function y(t){let o="";if(i(t))o=t;else if(f(t))for(let n=0;n{o.forEach(p=>p()),o.length=0},l=(p,d,i,u)=>(p.addEventListener(d,i,u),()=>p.removeEventListener(d,i,u)),m=VueDemi.watch(()=>[g(n),M(s)],([p,d])=>{if(c(),!p)return;const i=k(d)?{...d}:d;o.push(...t.flatMap(u=>r.map(f=>l(p,u,f,i))))},{immediate:!0,flush:"post"}),w=()=>{m(),c()};return I(w),w}let R=!1;function ee(e,n,t={}){const{window:r=S,ignore:s=[],capture:o=!0,detectIframe:c=!1}=t;if(!r)return N;x&&!R&&(R=!0,Array.from(r.document.body.children).forEach(i=>i.addEventListener("click",N)),r.document.documentElement.addEventListener("click",N));let l=!0;const m=i=>s.some(u=>{if(typeof u=="string")return Array.from(r.document.querySelectorAll(u)).some(f=>f===i.target||i.composedPath().includes(f));{const f=g(u);return f&&(i.target===f||i.composedPath().includes(f))}}),p=[b(r,"click",i=>{const u=g(e);if(!(!u||u===i.target||i.composedPath().includes(u))){if(i.detail===0&&(l=!m(i)),!l){l=!0;return}n(i)}},{passive:!0,capture:o}),b(r,"pointerdown",i=>{const u=g(e);l=!m(i)&&!!(u&&!i.composedPath().includes(u))},{passive:!0}),c&&b(r,"blur",i=>{setTimeout(()=>{var u;const f=g(e);((u=r.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&n(i)},0)})].filter(Boolean);return()=>p.forEach(i=>i())}function B(){const e=VueDemi.ref(!1);return VueDemi.getCurrentInstance()&&VueDemi.onMounted(()=>{e.value=!0}),e}function z(e){const n=B();return VueDemi.computed(()=>(n.value,!!e()))}function Q(e,n={}){const{window:t=S}=n,r=z(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const o=VueDemi.ref(!1),c=w=>{o.value=w.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",c):s.removeListener(c))},m=VueDemi.watchEffect(()=>{r.value&&(l(),s=t.matchMedia(M(e)),"addEventListener"in s?s.addEventListener("change",c):s.addListener(c),o.value=s.matches)});return I(()=>{m(),l(),s=void 0}),o}const O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A="__vueuse_ssr_handlers__",Y=q();function q(){return A in O||(O[A]=O[A]||{}),O[A]}function K(e,n){return Y[e]||n}function $(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const G={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},T="vueuse-storage";function te(e,n,t,r={}){var s;const{flush:o="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:m=!0,mergeDefaults:w=!1,shallow:p,window:d=S,eventFilter:i,onError:u=a=>{console.error(a)},initOnMounted:f}=r,y=(p?VueDemi.shallowRef:VueDemi.ref)(typeof n=="function"?n():n);if(!t)try{t=K("getDefaultStorage",()=>{var a;return(a=S)==null?void 0:a.localStorage})()}catch(a){u(a)}if(!t)return y;const v=M(n),L=$(v),D=(s=r.serializer)!=null?s:G[L],{pause:C,resume:W}=j(y,()=>F(y.value),{flush:o,deep:c,eventFilter:i});return d&&l&&_(()=>{b(d,"storage",E),b(d,T,J),f&&E()}),f||E(),y;function F(a){try{if(a==null)t.removeItem(e);else{const h=D.write(a),V=t.getItem(e);V!==h&&(t.setItem(e,h),d&&d.dispatchEvent(new CustomEvent(T,{detail:{key:e,oldValue:V,newValue:h,storageArea:t}})))}}catch(h){u(h)}}function P(a){const h=a?a.newValue:t.getItem(e);if(h==null)return m&&v!=null&&t.setItem(e,D.write(v)),v;if(!a&&w){const V=D.read(h);return typeof w=="function"?w(V,v):L==="object"&&!Array.isArray(V)?{...v,...V}:V}else return typeof h!="string"?h:D.read(h)}function J(a){E(a.detail)}function E(a){if(!(a&&a.storageArea!==t)){if(a&&a.key==null){y.value=v;return}if(!(a&&a.key!==e)){C();try{(a==null?void 0:a.newValue)!==D.write(y.value)&&(y.value=P(a))}catch(h){u(h)}finally{a?VueDemi.nextTick(W):W()}}}}}function U(e,n,t={}){const{window:r=S,...s}=t;let o;const c=z(()=>r&&"MutationObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},m=VueDemi.watch(()=>g(e),d=>{l(),c.value&&r&&d&&(o=new MutationObserver(n),o.observe(d,s))},{immediate:!0}),w=()=>o==null?void 0:o.takeRecords(),p=()=>{l(),m()};return I(p),{isSupported:c,stop:p,takeRecords:w}}function X(e,n,t={}){const{window:r=S,...s}=t;let o;const c=z(()=>r&&"ResizeObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},m=VueDemi.computed(()=>Array.isArray(e)?e.map(d=>g(d)):[g(e)]),w=VueDemi.watch(m,d=>{if(l(),c.value&&r){o=new ResizeObserver(n);for(const i of d)i&&o.observe(i,s)}},{immediate:!0,flush:"post",deep:!0}),p=()=>{l(),w()};return I(p),{isSupported:c,stop:p}}function ne(e,n={}){const{reset:t=!0,windowResize:r=!0,windowScroll:s=!0,immediate:o=!0}=n,c=VueDemi.ref(0),l=VueDemi.ref(0),m=VueDemi.ref(0),w=VueDemi.ref(0),p=VueDemi.ref(0),d=VueDemi.ref(0),i=VueDemi.ref(0),u=VueDemi.ref(0);function f(){const y=g(e);if(!y){t&&(c.value=0,l.value=0,m.value=0,w.value=0,p.value=0,d.value=0,i.value=0,u.value=0);return}const v=y.getBoundingClientRect();c.value=v.height,l.value=v.bottom,m.value=v.left,w.value=v.right,p.value=v.top,d.value=v.width,i.value=v.x,u.value=v.y}return X(e,f),VueDemi.watch(()=>g(e),y=>!y&&f()),U(e,f,{attributeFilter:["style","class"]}),s&&b("scroll",f,{capture:!0,passive:!0}),r&&b("resize",f,{passive:!0}),_(()=>{o&&f()}),{height:c,bottom:l,left:m,right:w,top:p,width:d,x:i,y:u,update:f}}function re(e={}){const{window:n=S,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0}=e,c=VueDemi.ref(t),l=VueDemi.ref(r),m=()=>{n&&(o?(c.value=n.innerWidth,l.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight))};if(m(),_(m),b("resize",m,{passive:!0}),s){const w=Q("(orientation: portrait)");VueDemi.watch(w,()=>m())}return{width:c,height:l}}export{X as a,re as b,ne as c,te as d,ee as o,b as u}; diff --git a/assets/@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js.gz b/assets/@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js.gz deleted file mode 100644 index ef9ad0ad..00000000 Binary files a/assets/@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js.gz and /dev/null differ diff --git a/assets/@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js b/assets/@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js new file mode 100644 index 00000000..55c01c5b --- /dev/null +++ b/assets/@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js @@ -0,0 +1 @@ +import{n as M,t as E,i as H,a as I,w as k,b as _,c as x,d as B,e as Q}from"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";function g(e){var n;const r=E(e);return(n=r==null?void 0:r.$el)!=null?n:r}const V=x?window:void 0;function S(...e){let n,r,i,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,i,a]=e,n=V):[n,r,i,a]=e,!n)return M;Array.isArray(r)||(r=[r]),Array.isArray(i)||(i=[i]);const s=[],c=()=>{s.forEach(p=>p()),s.length=0},l=(p,f,t,o)=>(p.addEventListener(f,t,o),()=>p.removeEventListener(f,t,o)),m=VueDemi.watch(()=>[g(n),E(a)],([p,f])=>{if(c(),!p)return;const t=H(f)?{...f}:f;s.push(...r.flatMap(o=>i.map(d=>l(p,o,d,t))))},{immediate:!0,flush:"post"}),h=()=>{m(),c()};return I(h),h}let T=!1;function ne(e,n,r={}){const{window:i=V,ignore:a=[],capture:s=!0,detectIframe:c=!1}=r;if(!i)return M;Q&&!T&&(T=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",M)),i.document.documentElement.addEventListener("click",M));let l=!0;const m=t=>a.some(o=>{if(typeof o=="string")return Array.from(i.document.querySelectorAll(o)).some(d=>d===t.target||t.composedPath().includes(d));{const d=g(o);return d&&(t.target===d||t.composedPath().includes(d))}}),p=[S(i,"click",t=>{const o=g(e);if(!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(l=!m(t)),!l){l=!0;return}n(t)}},{passive:!0,capture:s}),S(i,"pointerdown",t=>{const o=g(e);l=!m(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),c&&S(i,"blur",t=>{setTimeout(()=>{var o;const d=g(e);((o=i.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(d!=null&&d.contains(i.document.activeElement))&&n(t)},0)})].filter(Boolean);return()=>p.forEach(t=>t())}function Y(){const e=VueDemi.ref(!1),n=VueDemi.getCurrentInstance();return n&&VueDemi.onMounted(()=>{e.value=!0},VueDemi.isVue2?null:n),e}function z(e){const n=Y();return VueDemi.computed(()=>(n.value,!!e()))}function q(e,n={}){const{window:r=V}=n,i=z(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const s=VueDemi.ref(!1),c=h=>{s.value=h.matches},l=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},m=VueDemi.watchEffect(()=>{i.value&&(l(),a=r.matchMedia(E(e)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),s.value=a.matches)});return I(()=>{m(),l(),a=void 0}),s}const A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},N="__vueuse_ssr_handlers__",K=$();function $(){return N in A||(A[N]=A[N]||{}),A[N]}function G(e,n){return K[e]||n}function U(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const X={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},C="vueuse-storage";function re(e,n,r,i={}){var a;const{flush:s="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:m=!0,mergeDefaults:h=!1,shallow:p,window:f=V,eventFilter:t,onError:o=u=>{console.error(u)},initOnMounted:d}=i,y=(p?VueDemi.shallowRef:VueDemi.ref)(typeof n=="function"?n():n);if(!r)try{r=G("getDefaultStorage",()=>{var u;return(u=V)==null?void 0:u.localStorage})()}catch(u){o(u)}if(!r)return y;const v=E(n),W=U(v),D=(a=i.serializer)!=null?a:X[W],{pause:F,resume:L}=k(y,()=>P(y.value),{flush:s,deep:c,eventFilter:t});f&&l&&_(()=>{S(f,"storage",O),S(f,C,j),d&&O()}),d||O();function R(u,w){f&&f.dispatchEvent(new CustomEvent(C,{detail:{key:e,oldValue:u,newValue:w,storageArea:r}}))}function P(u){try{const w=r.getItem(e);if(u==null)R(w,null),r.removeItem(e);else{const b=D.write(u);w!==b&&(r.setItem(e,b),R(w,b))}}catch(w){o(w)}}function J(u){const w=u?u.newValue:r.getItem(e);if(w==null)return m&&v!=null&&r.setItem(e,D.write(v)),v;if(!u&&h){const b=D.read(w);return typeof h=="function"?h(b,v):W==="object"&&!Array.isArray(b)?{...v,...b}:b}else return typeof w!="string"?w:D.read(w)}function O(u){if(!(u&&u.storageArea!==r)){if(u&&u.key==null){y.value=v;return}if(!(u&&u.key!==e)){F();try{(u==null?void 0:u.newValue)!==D.write(y.value)&&(y.value=J(u))}catch(w){o(w)}finally{u?VueDemi.nextTick(L):L()}}}}function j(u){O(u.detail)}return y}function Z(e,n,r={}){const{window:i=V,...a}=r;let s;const c=z(()=>i&&"MutationObserver"in i),l=()=>{s&&(s.disconnect(),s=void 0)},m=VueDemi.computed(()=>{const t=E(e),o=(Array.isArray(t)?t:[t]).map(g).filter(B);return new Set(o)}),h=VueDemi.watch(()=>m.value,t=>{l(),c.value&&i&&t.size&&(s=new MutationObserver(n),t.forEach(o=>s.observe(o,a)))},{immediate:!0,flush:"post"}),p=()=>s==null?void 0:s.takeRecords(),f=()=>{l(),h()};return I(f),{isSupported:c,stop:f,takeRecords:p}}function ee(e,n,r={}){const{window:i=V,...a}=r;let s;const c=z(()=>i&&"ResizeObserver"in i),l=()=>{s&&(s.disconnect(),s=void 0)},m=VueDemi.computed(()=>Array.isArray(e)?e.map(f=>g(f)):[g(e)]),h=VueDemi.watch(m,f=>{if(l(),c.value&&i){s=new ResizeObserver(n);for(const t of f)t&&s.observe(t,a)}},{immediate:!0,flush:"post"}),p=()=>{l(),h()};return I(p),{isSupported:c,stop:p}}function ie(e,n={}){const{reset:r=!0,windowResize:i=!0,windowScroll:a=!0,immediate:s=!0}=n,c=VueDemi.ref(0),l=VueDemi.ref(0),m=VueDemi.ref(0),h=VueDemi.ref(0),p=VueDemi.ref(0),f=VueDemi.ref(0),t=VueDemi.ref(0),o=VueDemi.ref(0);function d(){const y=g(e);if(!y){r&&(c.value=0,l.value=0,m.value=0,h.value=0,p.value=0,f.value=0,t.value=0,o.value=0);return}const v=y.getBoundingClientRect();c.value=v.height,l.value=v.bottom,m.value=v.left,h.value=v.right,p.value=v.top,f.value=v.width,t.value=v.x,o.value=v.y}return ee(e,d),VueDemi.watch(()=>g(e),y=>!y&&d()),Z(e,d,{attributeFilter:["style","class"]}),a&&S("scroll",d,{capture:!0,passive:!0}),i&&S("resize",d,{passive:!0}),_(()=>{s&&d()}),{height:c,bottom:l,left:m,right:h,top:p,width:f,x:t,y:o,update:d}}function oe(e={}){const{window:n=V,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:s=!0}=e,c=VueDemi.ref(r),l=VueDemi.ref(i),m=()=>{n&&(s?(c.value=n.innerWidth,l.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight))};if(m(),_(m),S("resize",m,{passive:!0}),a){const h=q("(orientation: portrait)");VueDemi.watch(h,()=>m())}return{width:c,height:l}}export{ee as a,oe as b,ie as c,re as d,ne as o,S as u}; diff --git a/assets/@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js.gz b/assets/@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js.gz new file mode 100644 index 00000000..06b606cd Binary files /dev/null and b/assets/@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js.gz differ diff --git a/assets/@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js b/assets/@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js deleted file mode 100644 index 1c48499b..00000000 --- a/assets/@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js +++ /dev/null @@ -1 +0,0 @@ -function h(e){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(e),!0):!1}function D(e){return typeof e=="function"?e():VueDemi.unref(e)}const l=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const d=Object.prototype.toString,g=e=>d.call(e)==="[object Object]",b=()=>{},y=p();function p(){var e,t;return l&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function f(e,t){function i(...n){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(u)})}return i}const r=e=>e();function w(e=r){const t=VueDemi.ref(!0);function i(){t.value=!1}function n(){t.value=!0}const o=(...u)=>{t.value&&e(...u)};return{isActive:VueDemi.readonly(t),pause:i,resume:n,eventFilter:o}}VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function m(e){return e||VueDemi.getCurrentInstance()}function v(e,t,i={}){const{eventFilter:n=r,...o}=i;return VueDemi.watch(e,f(n,t),o)}function O(e,t,i={}){const{eventFilter:n,...o}=i,{eventFilter:u,pause:s,resume:c,isActive:a}=w(n);return{stop:v(e,t,{...o,eventFilter:u}),pause:s,resume:c,isActive:a}}function S(e,t=!0,i){m()?VueDemi.onMounted(e,i):t?e():VueDemi.nextTick(e)}function F(e,t,i){const n=VueDemi.watch(e,(...o)=>(VueDemi.nextTick(()=>n()),t(...o)),i);return n}export{S as a,g as b,h as c,y as d,F as e,l as i,b as n,D as t,O as w}; diff --git a/assets/@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js.gz b/assets/@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js.gz deleted file mode 100644 index 9db8979f..00000000 Binary files a/assets/@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js.gz and /dev/null differ diff --git a/assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js b/assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js new file mode 100644 index 00000000..051a18a3 --- /dev/null +++ b/assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js @@ -0,0 +1 @@ +function V(e){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(e),!0):!1}function D(e){return typeof e=="function"?e():VueDemi.unref(e)}const l=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const g=e=>e!=null,d=Object.prototype.toString,b=e=>d.call(e)==="[object Object]",y=()=>{},O=p();function p(){var e,t;return l&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function f(e,t){function i(...n){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(u)})}return i}const s=e=>e();function w(e=s){const t=VueDemi.ref(!0);function i(){t.value=!1}function n(){t.value=!0}const o=(...u)=>{t.value&&e(...u)};return{isActive:VueDemi.readonly(t),pause:i,resume:n,eventFilter:o}}VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function m(e){return e||VueDemi.getCurrentInstance()}function v(e,t,i={}){const{eventFilter:n=s,...o}=i;return VueDemi.watch(e,f(n,t),o)}function S(e,t,i={}){const{eventFilter:n,...o}=i,{eventFilter:u,pause:r,resume:c,isActive:a}=w(n);return{stop:v(e,t,{...o,eventFilter:u}),pause:r,resume:c,isActive:a}}function F(e,t=!0,i){m()?VueDemi.onMounted(e,i):t?e():VueDemi.nextTick(e)}function A(e,t,i){const n=VueDemi.watch(e,(...o)=>(VueDemi.nextTick(()=>n()),t(...o)),i);return n}export{V as a,F as b,l as c,g as d,O as e,A as f,b as i,y as n,D as t,S as w}; diff --git a/assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js.gz b/assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js.gz new file mode 100644 index 00000000..ef46683d Binary files /dev/null and b/assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js.gz differ diff --git a/assets/adjustment-xKF72UgA.js b/assets/adjustment-DIo_g8Za.js similarity index 100% rename from assets/adjustment-xKF72UgA.js rename to assets/adjustment-DIo_g8Za.js diff --git a/assets/adjustment-xKF72UgA.js.gz b/assets/adjustment-DIo_g8Za.js.gz similarity index 100% rename from assets/adjustment-xKF72UgA.js.gz rename to assets/adjustment-DIo_g8Za.js.gz diff --git a/assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js b/assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js similarity index 99% rename from assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js rename to assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js index fe680bc2..e99da89e 100644 --- a/assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js +++ b/assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js @@ -1 +1 @@ -import{b as Pe}from"./canvas@2.11.2-dZp4QMlu.js";import{g as Ce,l as Re,u as Ee}from"./js-binary-schema-parser@2.0.3-CCV6nRej.js";var N=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Be={},Jt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QRMath=e.QRUtil=e.QRMaskPattern=e.QRErrorCorrectLevel=e.QRCodeModel=void 0;function u(n,t,a){var s=p(t),r=n-1,i=0;switch(a){case e.QRErrorCorrectLevel.L:i=B[r][0];break;case e.QRErrorCorrectLevel.M:i=B[r][1];break;case e.QRErrorCorrectLevel.Q:i=B[r][2];break;case e.QRErrorCorrectLevel.H:i=B[r][3];break}return s<=i}function o(n,t){for(var a=1,s=p(n),r=0,i=B.length;rB.length)throw new Error("Too long data");return a}function p(n){var t=encodeURI(n).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(n)?3:0)}var v=function(){function n(t){this.mode=c.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;for(var a=[],s=0,r=this.data.length;s65536?(i[0]=240|(f&1835008)>>>18,i[1]=128|(f&258048)>>>12,i[2]=128|(f&4032)>>>6,i[3]=128|f&63):f>2048?(i[0]=224|(f&61440)>>>12,i[1]=128|(f&4032)>>>6,i[2]=128|f&63):f>128?(i[0]=192|(f&1984)>>>6,i[1]=128|f&63):i[0]=f,a.push(i)}this.parsedData=Array.prototype.concat.apply([],a),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return n.prototype.getLength=function(){return this.parsedData.length},n.prototype.write=function(t){for(var a=0,s=this.parsedData.length;a40)throw new Error("Invalid QR version: "+this.typeNumber);if(!u(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: "+this.typeNumber)}var a=new v(t);this.dataList.push(a),this.dataCache=void 0},n.prototype.isDark=function(t,a){if(t<0||this.moduleCount<=t||a<0||this.moduleCount<=a)throw new Error(t+","+a);return this.modules[t][a]},n.prototype.getModuleCount=function(){return this.moduleCount},n.prototype.make=function(){this.makeImpl(!1,this.getBestMaskPattern())},n.prototype.makeImpl=function(t,a){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var s=0;s=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,a)},n.prototype.setupPositionProbePattern=function(t,a){for(var s=-1;s<=7;s++)if(!(t+s<=-1||this.moduleCount<=t+s))for(var r=-1;r<=7;r++)a+r<=-1||this.moduleCount<=a+r||(0<=s&&s<=6&&(r==0||r==6)||0<=r&&r<=6&&(s==0||s==6)||2<=s&&s<=4&&2<=r&&r<=4?this.modules[t+s][a+r]=!0:this.modules[t+s][a+r]=!1)},n.prototype.getBestMaskPattern=function(){if(Number.isInteger(this.maskPattern)&&Object.values(e.QRMaskPattern).includes(this.maskPattern))return this.maskPattern;for(var t=0,a=0,s=0;s<8;s++){this.makeImpl(!0,s);var r=P.getLostPoint(this);(s==0||t>r)&&(t=r,a=s)}return a},n.prototype.setupTimingPattern=function(){for(var t=8;t>s&1)==1;this.modules[Math.floor(s/3)][s%3+this.moduleCount-8-3]=r}for(var s=0;s<18;s++){var r=!t&&(a>>s&1)==1;this.modules[s%3+this.moduleCount-8-3][Math.floor(s/3)]=r}},n.prototype.setupTypeInfo=function(t,a){for(var s=this.errorCorrectLevel<<3|a,r=P.getBCHTypeInfo(s),i=0;i<15;i++){var f=!t&&(r>>i&1)==1;i<6?this.modules[i][8]=f:i<8?this.modules[i+1][8]=f:this.modules[this.moduleCount-15+i][8]=f}for(var i=0;i<15;i++){var f=!t&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=f:i<9?this.modules[8][15-i-1+1]=f:this.modules[8][15-i-1]=f}this.modules[this.moduleCount-8][8]=!t},n.prototype.mapData=function(t,a){for(var s=-1,r=this.moduleCount-1,i=7,f=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var d=0;d<2;d++)if(this.modules[r][l-d]==null){var m=!1;f>>i&1)==1);var _=P.getMask(a,r,l-d);_&&(m=!m),this.modules[r][l-d]=m,i--,i==-1&&(f++,i=7)}if(r+=s,r<0||this.moduleCount<=r){r-=s,s=-s;break}}},n.createData=function(t,a,s){for(var r=T.getRSBlocks(t,a),i=new E,f=0;fd*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+d*8+")");for(i.getLengthInBits()+4<=d*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=d*8||(i.put(n.PAD0,8),i.getLengthInBits()>=d*8));)i.put(n.PAD1,8);return n.createBytes(i,r)},n.createBytes=function(t,a){for(var s=0,r=0,i=0,f=new Array(a.length),l=new Array(a.length),d=0;d=0?h.get(L):0}}for(var R=0,y=0;y=0;)a^=n.G15<=0;)a^=n.G18<>>=1;return a},n.getPatternPosition=function(t){return n.PATTERN_POSITION_TABLE[t-1]},n.getMask=function(t,a,s){switch(t){case e.QRMaskPattern.PATTERN000:return(a+s)%2==0;case e.QRMaskPattern.PATTERN001:return a%2==0;case e.QRMaskPattern.PATTERN010:return s%3==0;case e.QRMaskPattern.PATTERN011:return(a+s)%3==0;case e.QRMaskPattern.PATTERN100:return(Math.floor(a/2)+Math.floor(s/3))%2==0;case e.QRMaskPattern.PATTERN101:return a*s%2+a*s%3==0;case e.QRMaskPattern.PATTERN110:return(a*s%2+a*s%3)%2==0;case e.QRMaskPattern.PATTERN111:return(a*s%3+(a+s)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},n.getErrorCorrectPolynomial=function(t){for(var a=new w([1],0),s=0;s5&&(s+=3+f-5)}for(var r=0;r=256;)t-=255;return n.EXP_TABLE[t]},n.EXP_TABLE=new Array(256),n.LOG_TABLE=new Array(256),n._constructor=function(){for(var t=0;t<8;t++)n.EXP_TABLE[t]=1<>>7-t%8&1)==1},n.prototype.put=function(t,a){for(var s=0;s>>a-s-1&1)==1)},n.prototype.getLengthInBits=function(){return this.length},n.prototype.putBit=function(t){var a=Math.floor(this.length/8);this.buffer.length<=a&&this.buffer.push(0),t&&(this.buffer[a]|=128>>>this.length%8),this.length++},n}(),B=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]})(Jt);var It={},pe={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.deinterlace=void 0;Ft.deinterlace=function(e,u){for(var o=new Array(e.length),p=e.length/u,v=function(T,E){var B=e.slice(E*u,(E+1)*u);o.splice.apply(o,[T*u,u].concat(B))},g=[0,4,2,1],c=[8,8,4,2],P=0,b=0;b<4;b++)for(var w=g[b];w>=w,d-=w,n>c||n==T)break;if(n==P){w=a+1,b=(1<P;)f[_++]=i[n],n=r[n];m=i[n]&255,f[_++]=m,c>Zt,Ae=Wt<>3,Xt=6,Le=1<>3);var r,i;for(r=0;r>=rt,o[r][1]>>=rt,o[r][2]>>=rt,o[r][3]=r}function w(r,i,f,l,d){o[i][0]-=r*(o[i][0]-f)/Tt,o[i][1]-=r*(o[i][1]-l)/Tt,o[i][2]-=r*(o[i][2]-d)/Tt}function T(r,i,f,l,d){for(var m=Math.abs(i-r),_=Math.min(i+r,Q),y=i+1,D=i-1,M=1,h,L;y<_||D>m;)L=c[M++],y<_&&(h=o[y++],h[0]-=L*(h[0]-f)/lt,h[1]-=L*(h[1]-l)/lt,h[2]-=L*(h[2]-d)/lt),D>m&&(h=o[D--],h[0]-=L*(h[0]-f)/lt,h[1]-=L*(h[1]-l)/lt,h[2]-=L*(h[2]-d)/lt)}function E(r,i,f){var l=2147483647,d=l,m=-1,_=m,y,D,M,h,L;for(y=0;y>me-rt),h>Zt,g[y]-=L,v[y]+=L<>1,i=_+1;i>1,i=_+1;i<256;i++)p[i]=le}function n(r,i,f){for(var l,d,m,_=1e3,y=-1,D=p[i],M=D-1;D=0;)D=_?D=Q:(D++,m<0&&(m=-m),l=d[0]-r,l<0&&(l=-l),m+=l,m<_&&(l=d[2]-f,l<0&&(l=-l),m+=l,m<_&&(_=m,y=d[3])))),M>=0&&(d=o[M],m=i-d[1],m>=_?M=-1:(M--,m<0&&(m=-m),l=d[0]-r,l<0&&(l=-l),m+=l,m<_&&(l=d[2]-f,l<0&&(l=-l),m+=l,m<_&&(_=m,y=d[3]))));return y}function t(){var r,i=e.length,f=30+(u-1)/3,l=i/(3*u),d=~~(l/Te),m=Tt,_=ke,y=_>>Xt;for(y<=1&&(y=0),r=0;r=i&&(A-=i),r++,d===0&&(d=1),r%d===0)for(m-=m/f,_-=_/Ie,y=_>>Xt,y<=1&&(y=0),R=0;R=254&&D(A)}function d(R){m(bt),E=a+2,n=!0,L(a,R)}function m(R){for(var A=0;A=0){Z=q-F,F===0&&(Z=1);do if((F-=Z)<0&&(F+=q),c[F]===C){j=P[F];continue t}while(c[F]>=0)}L(j,A),j=Y,E<1<0&&(R.writeByte(T),R.writeBytes(g,0,T),T=0)}function M(R){return(1<0?b|=R<=8;)l(b&255,A),b>>=8,w-=8;if((E>B||n)&&(n?(B=M(f=t),n=!1):(++f,f==Dt?B=1<0;)l(b&255,A),b>>=8,w-=8;D(A)}}this.encode=y}var Ge=Ne,Ue=Oe,He=Ge;function G(){this.page=-1,this.pages=[],this.newPage()}G.pageSize=4096;G.charMap={};for(var At=0;At<256;At++)G.charMap[At]=String.fromCharCode(At);G.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(G.pageSize),this.cursor=0};G.prototype.getData=function(){for(var e="",u=0;u=G.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=e};G.prototype.writeUTFBytes=function(e){for(var u=e.length,o=0;o=0&&(this.dispose=e)};I.prototype.setRepeat=function(e){this.repeat=e};I.prototype.setTransparent=function(e){this.transparent=e};I.prototype.addFrame=function(e){this.image=e,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};I.prototype.finish=function(){this.out.writeByte(59)};I.prototype.setQuality=function(e){e<1&&(e=1),this.sample=e};I.prototype.setDither=function(e){e===!0&&(e="FloydSteinberg"),this.dither=e};I.prototype.setGlobalPalette=function(e){this.globalPalette=e};I.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};I.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};I.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Ue(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};I.prototype.indexPixels=function(e){var u=this.pixels.length/3;this.indexedPixels=new Uint8Array(u);for(var o=0,p=0;p=0&&y+T=0&&D+w>16,(e&65280)>>8,e&255,u)};I.prototype.findClosestRGB=function(e,u,o,p){if(this.colorTab===null)return-1;if(this.neuQuant&&!p)return this.neuQuant.lookupRGB(e,u,o);for(var v=0,g=256*256*256,c=this.colorTab.length,P=0,b=0;P=0&&(u=this.dispose&7),u<<=2,this.out.writeByte(0|u|0|e),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};I.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};I.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};I.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};I.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var e=3*256-this.colorTab.length,u=0;u>8&255)};I.prototype.writePixels=function(){var e=new He(this.width,this.height,this.indexedPixels,this.colorDepth);e.encode(this.out)};I.prototype.stream=function(){return this.out};var ze=I,kt=N&&N.__assign||function(){return kt=Object.assign||function(e){for(var u,o=1,p=arguments.length;o0&&g[g.length-1])&&(w[0]===6||w[0]===2)){o=0;continue}if(w[0]===3&&(!g||w[1]>g[0]&&w[1]1)throw new Error("dotScale should be in range (0, 1].");o.components.data.scale=o.dotScale,o.components.timing.scale=o.dotScale,o.components.alignment.scale=o.dotScale}this.options=o,this.canvas=J.createCanvas(u.size,u.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new Mt.QRCodeModel(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return e.prototype.draw=function(){var u=this;return new Promise(function(o){return u._draw().then(o)})},e.prototype._clear=function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)},e._prepareRoundedCornerClip=function(u,o,p,v,g,c){u.beginPath(),u.moveTo(o,p),u.arcTo(o+v,p,o+v,p+g,c),u.arcTo(o+v,p+g,o,p+g,c),u.arcTo(o,p+g,o,p,c),u.arcTo(o,p,o+v,p,c),u.closePath()},e._getAverageRGB=function(u){var o=5,p={r:0,g:0,b:0},v,g,c=-4,P={r:0,g:0,b:0},b=0;g=u.naturalHeight||u.height,v=u.naturalWidth||u.width;var w=J.createCanvas(v,g),T=w.getContext("2d");if(!T)return p;T.drawImage(u,0,0);var E;try{E=T.getImageData(0,0,v,g)}catch{return p}for(;(c+=o*4)200||E.data[c+1]>200||E.data[c+2]>200||(++b,P.r+=E.data[c],P.g+=E.data[c+1],P.b+=E.data[c+2]);return P.r=~~(P.r/b),P.g=~~(P.g/b),P.b=~~(P.b/b),P},e._drawDot=function(u,o,p,v,g,c){g===void 0&&(g=0),c===void 0&&(c=1),u.fillRect((o+g)*v,(p+g)*v,c*v,c*v)},e._drawAlignProtector=function(u,o,p,v){u.clearRect((o-2)*v,(p-2)*v,5*v,5*v),u.fillRect((o-2)*v,(p-2)*v,5*v,5*v)},e._drawAlign=function(u,o,p,v,g,c,P,b){g===void 0&&(g=0),c===void 0&&(c=1);var w=u.fillStyle;u.fillStyle=P,new Array(4).fill(0).map(function(T,E){e._drawDot(u,o-2+E,p-2,v,g,c),e._drawDot(u,o+2,p-2+E,v,g,c),e._drawDot(u,o+2-E,p+2,v,g,c),e._drawDot(u,o-2,p+2-E,v,g,c)}),e._drawDot(u,o,p,v,g,c),b||(u.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map(function(T,E){e._drawDot(u,o-1+E,p-1,v,g,c),e._drawDot(u,o+1,p-1+E,v,g,c),e._drawDot(u,o+1-E,p+1,v,g,c),e._drawDot(u,o-1,p+1-E,v,g,c)})),u.fillStyle=w},e.prototype._draw=function(){var u,o,p,v,g,c,P,b,w,T,E,B,n,t,a,s,r,i,f;return je(this,void 0,void 0,function(){var l,d,m,_,y,D,M,h,L,R,A,C,Y,F,j,Z,q,K,ft,ut,ht,k,W,ct,yt,x,at,xt,O,S,Ot,nt,$t,X,k,St,Nt,Vt,U,Yt,k,$,H,z,_t,Gt,k,Ut,qt,Ht,te,k,$,H,z,ee,vt,tt,gt,et,dt,Pt,re,V,ot,pt,st,zt,Ct,ie,ae,jt,ne;return Ke(this,function(mt){switch(mt.label){case 0:if(l=(u=this.qrCode)===null||u===void 0?void 0:u.moduleCount,d=this.options.size,m=this.options.margin,(m<0||m*2>=d)&&(m=0),_=Math.ceil(m),y=d-2*m,D=this.options.whiteMargin,M=this.options.backgroundDimming,h=Math.ceil(y/l),L=h*l,R=L+2*_,A=J.createCanvas(R,R),C=A.getContext("2d"),this._clear(),C.save(),C.translate(_,_),Y=J.createCanvas(R,R),F=Y.getContext("2d"),j=null,Z=[],!this.options.gifBackground)return[3,1];if(q=ge.parseGIF(this.options.gifBackground),j=q,Z=ge.decompressFrames(q,!0),this.options.autoColor){for(K=0,ft=0,ut=0,ht=0,k=0;k200||W[1]>200||W[2]>200)&&(W[0]===0&&W[1]===0&&W[2]===0||(ht++,K+=W[0],ft+=W[1],ut+=W[2]));K=~~(K/ht),ft=~~(ft/ht),ut=~~(ut/ht),this.options.colorDark="rgb("+K+","+ft+","+ut+")"}return[3,4];case 1:return this.options.backgroundImage?[4,J.loadImage(this.options.backgroundImage)]:[3,3];case 2:return ct=mt.sent(),this.options.autoColor&&(yt=e._getAverageRGB(ct),this.options.colorDark="rgb("+yt.r+","+yt.g+","+yt.b+")"),F.drawImage(ct,0,0,ct.width,ct.height,0,0,R,R),F.rect(0,0,R,R),F.fillStyle=M,F.fill(),[3,4];case 3:F.rect(0,0,R,R),F.fillStyle=this.options.colorLight,F.fill(),mt.label=4;case 4:for(x=Mt.QRUtil.getPatternPosition(this.qrCode.typeNumber),at=((p=(o=this.options.components)===null||o===void 0?void 0:o.data)===null||p===void 0?void 0:p.scale)||Lt,xt=(1-at)*.5,O=0;O=l-8)||S>=l-8&&O<8,$t=O==6&&S>=8&&S<=l-8||S==6&&O>=8&&O<=l-8,X=nt||$t,k=1;k=x[k]-2&&O<=x[k]+2&&S>=x[k]-2&&S<=x[k]+2;St=S*h+(X?0:xt*h),Nt=O*h+(X?0:xt*h),C.strokeStyle=Ot?this.options.colorDark:this.options.colorLight,C.lineWidth=.5,C.fillStyle=Ot?this.options.colorDark:"rgba(255, 255, 255, 0.6)",x.length===0?X||C.fillRect(St,Nt,(X?1:at)*h,(X?1:at)*h):(Vt=S=l-4-5&&O=l-4-5,!X&&!Vt&&C.fillRect(St,Nt,(X?1:at)*h,(X?1:at)*h))}if(U=x[x.length-1],Yt="rgba(255, 255, 255, 0.6)",C.fillStyle=Yt,C.fillRect(0,0,8*h,8*h),C.fillRect(0,(l-8)*h,8*h,8*h),C.fillRect((l-8)*h,0,8*h,8*h),!((g=(v=this.options.components)===null||v===void 0?void 0:v.timing)===null||g===void 0)&&g.protectors&&(C.fillRect(8*h,6*h,(l-8-8)*h,h),C.fillRect(6*h,8*h,h,(l-8-8)*h)),!((P=(c=this.options.components)===null||c===void 0?void 0:c.cornerAlignment)===null||P===void 0)&&P.protectors&&e._drawAlignProtector(C,U,U,h),!((w=(b=this.options.components)===null||b===void 0?void 0:b.alignment)===null||w===void 0)&&w.protectors){for(k=0;k=1)&&(vt=.2),tt<0&&(tt=0),gt<0&&(gt=0),et=L*vt,dt=.5*(R-et),Pt=dt,C.restore(),C.fillStyle="#FFFFFF",C.save(),e._prepareRoundedCornerClip(C,dt-tt,Pt-tt,et+2*tt,et+2*tt,gt+tt),C.clip(),re=C.globalCompositeOperation,C.globalCompositeOperation="destination-out",C.fill(),C.globalCompositeOperation=re,C.restore(),C.save(),e._prepareRoundedCornerClip(C,dt,Pt,et,et,gt),C.clip(),C.drawImage(ee,dt,Pt,et,et),C.restore(),C.save(),C.translate(_,_),mt.label=6;case 6:if(j){if(Z.forEach(function(it){V||(V=new Je.default(d,d),V.setDelay(it.delay),V.setRepeat(0));var Rt=it.dims,Et=Rt.width,Bt=Rt.height;ot||(ot=J.createCanvas(Et,Bt),pt=ot.getContext("2d"),pt.rect(0,0,ot.width,ot.height),pt.fillStyle="#ffffff",pt.fill()),(!st||!Ct||Et!==st.width||Bt!==st.height)&&(st=J.createCanvas(Et,Bt),zt=st.getContext("2d"),Ct=zt.createImageData(Et,Bt)),Ct.data.set(it.patch),zt.putImageData(Ct,0,0),pt.drawImage(st,it.dims.left,it.dims.top);var oe=J.createCanvas(R,R),wt=oe.getContext("2d");wt.drawImage(ot,0,0,R,R),wt.rect(0,0,R,R),wt.fillStyle=M,wt.fill(),wt.drawImage(A,0,0,R,R);var Kt=J.createCanvas(d,d),se=Kt.getContext("2d");se.drawImage(oe,0,0,d,d),V.addFrame(se.getImageData(0,0,Kt.width,Kt.height).data)}),!V)throw new Error("No frames.");return V.finish(),de(this.canvas)?(ie=V.stream().toFlattenUint8Array(),ae=ie.reduce(function(it,Rt){return it+String.fromCharCode(Rt)},""),[2,Promise.resolve("data:image/gif;base64,"+window.btoa(ae))]):[2,Promise.resolve(Buffer.from(V.stream().toFlattenUint8Array()))]}else return F.drawImage(A,0,0,R,R),C.drawImage(Y,-_,-_,R,R),jt=J.createCanvas(d,d),ne=jt.getContext("2d"),ne.drawImage(A,0,0,d,d),this.canvas=jt,de(this.canvas)?[2,Promise.resolve(this.canvas.toDataURL())]:[2,Promise.resolve(this.canvas.toBuffer())]}})})},e.CorrectLevel=Mt.QRErrorCorrectLevel,e.defaultComponentOptions={data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}},e.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"#ffffff",correctLevel:Mt.QRErrorCorrectLevel.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:e.defaultComponentOptions,autoColor:!0},e}();It.AwesomeQR=We;function de(e){try{return e instanceof HTMLElement}catch{return typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}}(function(e){var u=N&&N.__createBinding||(Object.create?function(v,g,c,P){P===void 0&&(P=c),Object.defineProperty(v,P,{enumerable:!0,get:function(){return g[c]}})}:function(v,g,c,P){P===void 0&&(P=c),v[P]=g[c]}),o=N&&N.__exportStar||function(v,g){for(var c in v)c!=="default"&&!g.hasOwnProperty(c)&&u(g,v,c)};Object.defineProperty(e,"__esModule",{value:!0}),o(Jt,e);var p=It;Object.defineProperty(e,"AwesomeQR",{enumerable:!0,get:function(){return p.AwesomeQR}})})(Be);export{N as c,Ve as g,Be as l}; +import{b as Pe}from"./canvas@2.11.2-CVRTzJty.js";import{g as Ce,l as Re,u as Ee}from"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";var N=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Be={},Jt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QRMath=e.QRUtil=e.QRMaskPattern=e.QRErrorCorrectLevel=e.QRCodeModel=void 0;function u(n,t,a){var s=p(t),r=n-1,i=0;switch(a){case e.QRErrorCorrectLevel.L:i=B[r][0];break;case e.QRErrorCorrectLevel.M:i=B[r][1];break;case e.QRErrorCorrectLevel.Q:i=B[r][2];break;case e.QRErrorCorrectLevel.H:i=B[r][3];break}return s<=i}function o(n,t){for(var a=1,s=p(n),r=0,i=B.length;rB.length)throw new Error("Too long data");return a}function p(n){var t=encodeURI(n).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(n)?3:0)}var v=function(){function n(t){this.mode=c.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;for(var a=[],s=0,r=this.data.length;s65536?(i[0]=240|(f&1835008)>>>18,i[1]=128|(f&258048)>>>12,i[2]=128|(f&4032)>>>6,i[3]=128|f&63):f>2048?(i[0]=224|(f&61440)>>>12,i[1]=128|(f&4032)>>>6,i[2]=128|f&63):f>128?(i[0]=192|(f&1984)>>>6,i[1]=128|f&63):i[0]=f,a.push(i)}this.parsedData=Array.prototype.concat.apply([],a),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return n.prototype.getLength=function(){return this.parsedData.length},n.prototype.write=function(t){for(var a=0,s=this.parsedData.length;a40)throw new Error("Invalid QR version: "+this.typeNumber);if(!u(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: "+this.typeNumber)}var a=new v(t);this.dataList.push(a),this.dataCache=void 0},n.prototype.isDark=function(t,a){if(t<0||this.moduleCount<=t||a<0||this.moduleCount<=a)throw new Error(t+","+a);return this.modules[t][a]},n.prototype.getModuleCount=function(){return this.moduleCount},n.prototype.make=function(){this.makeImpl(!1,this.getBestMaskPattern())},n.prototype.makeImpl=function(t,a){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var s=0;s=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,a)},n.prototype.setupPositionProbePattern=function(t,a){for(var s=-1;s<=7;s++)if(!(t+s<=-1||this.moduleCount<=t+s))for(var r=-1;r<=7;r++)a+r<=-1||this.moduleCount<=a+r||(0<=s&&s<=6&&(r==0||r==6)||0<=r&&r<=6&&(s==0||s==6)||2<=s&&s<=4&&2<=r&&r<=4?this.modules[t+s][a+r]=!0:this.modules[t+s][a+r]=!1)},n.prototype.getBestMaskPattern=function(){if(Number.isInteger(this.maskPattern)&&Object.values(e.QRMaskPattern).includes(this.maskPattern))return this.maskPattern;for(var t=0,a=0,s=0;s<8;s++){this.makeImpl(!0,s);var r=P.getLostPoint(this);(s==0||t>r)&&(t=r,a=s)}return a},n.prototype.setupTimingPattern=function(){for(var t=8;t>s&1)==1;this.modules[Math.floor(s/3)][s%3+this.moduleCount-8-3]=r}for(var s=0;s<18;s++){var r=!t&&(a>>s&1)==1;this.modules[s%3+this.moduleCount-8-3][Math.floor(s/3)]=r}},n.prototype.setupTypeInfo=function(t,a){for(var s=this.errorCorrectLevel<<3|a,r=P.getBCHTypeInfo(s),i=0;i<15;i++){var f=!t&&(r>>i&1)==1;i<6?this.modules[i][8]=f:i<8?this.modules[i+1][8]=f:this.modules[this.moduleCount-15+i][8]=f}for(var i=0;i<15;i++){var f=!t&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=f:i<9?this.modules[8][15-i-1+1]=f:this.modules[8][15-i-1]=f}this.modules[this.moduleCount-8][8]=!t},n.prototype.mapData=function(t,a){for(var s=-1,r=this.moduleCount-1,i=7,f=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var d=0;d<2;d++)if(this.modules[r][l-d]==null){var m=!1;f>>i&1)==1);var _=P.getMask(a,r,l-d);_&&(m=!m),this.modules[r][l-d]=m,i--,i==-1&&(f++,i=7)}if(r+=s,r<0||this.moduleCount<=r){r-=s,s=-s;break}}},n.createData=function(t,a,s){for(var r=T.getRSBlocks(t,a),i=new E,f=0;fd*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+d*8+")");for(i.getLengthInBits()+4<=d*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=d*8||(i.put(n.PAD0,8),i.getLengthInBits()>=d*8));)i.put(n.PAD1,8);return n.createBytes(i,r)},n.createBytes=function(t,a){for(var s=0,r=0,i=0,f=new Array(a.length),l=new Array(a.length),d=0;d=0?h.get(L):0}}for(var R=0,y=0;y=0;)a^=n.G15<=0;)a^=n.G18<>>=1;return a},n.getPatternPosition=function(t){return n.PATTERN_POSITION_TABLE[t-1]},n.getMask=function(t,a,s){switch(t){case e.QRMaskPattern.PATTERN000:return(a+s)%2==0;case e.QRMaskPattern.PATTERN001:return a%2==0;case e.QRMaskPattern.PATTERN010:return s%3==0;case e.QRMaskPattern.PATTERN011:return(a+s)%3==0;case e.QRMaskPattern.PATTERN100:return(Math.floor(a/2)+Math.floor(s/3))%2==0;case e.QRMaskPattern.PATTERN101:return a*s%2+a*s%3==0;case e.QRMaskPattern.PATTERN110:return(a*s%2+a*s%3)%2==0;case e.QRMaskPattern.PATTERN111:return(a*s%3+(a+s)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},n.getErrorCorrectPolynomial=function(t){for(var a=new w([1],0),s=0;s5&&(s+=3+f-5)}for(var r=0;r=256;)t-=255;return n.EXP_TABLE[t]},n.EXP_TABLE=new Array(256),n.LOG_TABLE=new Array(256),n._constructor=function(){for(var t=0;t<8;t++)n.EXP_TABLE[t]=1<>>7-t%8&1)==1},n.prototype.put=function(t,a){for(var s=0;s>>a-s-1&1)==1)},n.prototype.getLengthInBits=function(){return this.length},n.prototype.putBit=function(t){var a=Math.floor(this.length/8);this.buffer.length<=a&&this.buffer.push(0),t&&(this.buffer[a]|=128>>>this.length%8),this.length++},n}(),B=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]})(Jt);var It={},pe={},Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.deinterlace=void 0;Ft.deinterlace=function(e,u){for(var o=new Array(e.length),p=e.length/u,v=function(T,E){var B=e.slice(E*u,(E+1)*u);o.splice.apply(o,[T*u,u].concat(B))},g=[0,4,2,1],c=[8,8,4,2],P=0,b=0;b<4;b++)for(var w=g[b];w>=w,d-=w,n>c||n==T)break;if(n==P){w=a+1,b=(1<P;)f[_++]=i[n],n=r[n];m=i[n]&255,f[_++]=m,c>Zt,Ae=Wt<>3,Xt=6,Le=1<>3);var r,i;for(r=0;r>=rt,o[r][1]>>=rt,o[r][2]>>=rt,o[r][3]=r}function w(r,i,f,l,d){o[i][0]-=r*(o[i][0]-f)/Tt,o[i][1]-=r*(o[i][1]-l)/Tt,o[i][2]-=r*(o[i][2]-d)/Tt}function T(r,i,f,l,d){for(var m=Math.abs(i-r),_=Math.min(i+r,Q),y=i+1,D=i-1,M=1,h,L;y<_||D>m;)L=c[M++],y<_&&(h=o[y++],h[0]-=L*(h[0]-f)/lt,h[1]-=L*(h[1]-l)/lt,h[2]-=L*(h[2]-d)/lt),D>m&&(h=o[D--],h[0]-=L*(h[0]-f)/lt,h[1]-=L*(h[1]-l)/lt,h[2]-=L*(h[2]-d)/lt)}function E(r,i,f){var l=2147483647,d=l,m=-1,_=m,y,D,M,h,L;for(y=0;y>me-rt),h>Zt,g[y]-=L,v[y]+=L<>1,i=_+1;i>1,i=_+1;i<256;i++)p[i]=le}function n(r,i,f){for(var l,d,m,_=1e3,y=-1,D=p[i],M=D-1;D=0;)D=_?D=Q:(D++,m<0&&(m=-m),l=d[0]-r,l<0&&(l=-l),m+=l,m<_&&(l=d[2]-f,l<0&&(l=-l),m+=l,m<_&&(_=m,y=d[3])))),M>=0&&(d=o[M],m=i-d[1],m>=_?M=-1:(M--,m<0&&(m=-m),l=d[0]-r,l<0&&(l=-l),m+=l,m<_&&(l=d[2]-f,l<0&&(l=-l),m+=l,m<_&&(_=m,y=d[3]))));return y}function t(){var r,i=e.length,f=30+(u-1)/3,l=i/(3*u),d=~~(l/Te),m=Tt,_=ke,y=_>>Xt;for(y<=1&&(y=0),r=0;r=i&&(A-=i),r++,d===0&&(d=1),r%d===0)for(m-=m/f,_-=_/Ie,y=_>>Xt,y<=1&&(y=0),R=0;R=254&&D(A)}function d(R){m(bt),E=a+2,n=!0,L(a,R)}function m(R){for(var A=0;A=0){Z=q-F,F===0&&(Z=1);do if((F-=Z)<0&&(F+=q),c[F]===C){j=P[F];continue t}while(c[F]>=0)}L(j,A),j=Y,E<1<0&&(R.writeByte(T),R.writeBytes(g,0,T),T=0)}function M(R){return(1<0?b|=R<=8;)l(b&255,A),b>>=8,w-=8;if((E>B||n)&&(n?(B=M(f=t),n=!1):(++f,f==Dt?B=1<0;)l(b&255,A),b>>=8,w-=8;D(A)}}this.encode=y}var Ge=Ne,Ue=Oe,He=Ge;function G(){this.page=-1,this.pages=[],this.newPage()}G.pageSize=4096;G.charMap={};for(var At=0;At<256;At++)G.charMap[At]=String.fromCharCode(At);G.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(G.pageSize),this.cursor=0};G.prototype.getData=function(){for(var e="",u=0;u=G.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=e};G.prototype.writeUTFBytes=function(e){for(var u=e.length,o=0;o=0&&(this.dispose=e)};I.prototype.setRepeat=function(e){this.repeat=e};I.prototype.setTransparent=function(e){this.transparent=e};I.prototype.addFrame=function(e){this.image=e,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};I.prototype.finish=function(){this.out.writeByte(59)};I.prototype.setQuality=function(e){e<1&&(e=1),this.sample=e};I.prototype.setDither=function(e){e===!0&&(e="FloydSteinberg"),this.dither=e};I.prototype.setGlobalPalette=function(e){this.globalPalette=e};I.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};I.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};I.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Ue(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};I.prototype.indexPixels=function(e){var u=this.pixels.length/3;this.indexedPixels=new Uint8Array(u);for(var o=0,p=0;p=0&&y+T=0&&D+w>16,(e&65280)>>8,e&255,u)};I.prototype.findClosestRGB=function(e,u,o,p){if(this.colorTab===null)return-1;if(this.neuQuant&&!p)return this.neuQuant.lookupRGB(e,u,o);for(var v=0,g=256*256*256,c=this.colorTab.length,P=0,b=0;P=0&&(u=this.dispose&7),u<<=2,this.out.writeByte(0|u|0|e),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};I.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};I.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};I.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};I.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var e=3*256-this.colorTab.length,u=0;u>8&255)};I.prototype.writePixels=function(){var e=new He(this.width,this.height,this.indexedPixels,this.colorDepth);e.encode(this.out)};I.prototype.stream=function(){return this.out};var ze=I,kt=N&&N.__assign||function(){return kt=Object.assign||function(e){for(var u,o=1,p=arguments.length;o0&&g[g.length-1])&&(w[0]===6||w[0]===2)){o=0;continue}if(w[0]===3&&(!g||w[1]>g[0]&&w[1]1)throw new Error("dotScale should be in range (0, 1].");o.components.data.scale=o.dotScale,o.components.timing.scale=o.dotScale,o.components.alignment.scale=o.dotScale}this.options=o,this.canvas=J.createCanvas(u.size,u.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new Mt.QRCodeModel(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return e.prototype.draw=function(){var u=this;return new Promise(function(o){return u._draw().then(o)})},e.prototype._clear=function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)},e._prepareRoundedCornerClip=function(u,o,p,v,g,c){u.beginPath(),u.moveTo(o,p),u.arcTo(o+v,p,o+v,p+g,c),u.arcTo(o+v,p+g,o,p+g,c),u.arcTo(o,p+g,o,p,c),u.arcTo(o,p,o+v,p,c),u.closePath()},e._getAverageRGB=function(u){var o=5,p={r:0,g:0,b:0},v,g,c=-4,P={r:0,g:0,b:0},b=0;g=u.naturalHeight||u.height,v=u.naturalWidth||u.width;var w=J.createCanvas(v,g),T=w.getContext("2d");if(!T)return p;T.drawImage(u,0,0);var E;try{E=T.getImageData(0,0,v,g)}catch{return p}for(;(c+=o*4)200||E.data[c+1]>200||E.data[c+2]>200||(++b,P.r+=E.data[c],P.g+=E.data[c+1],P.b+=E.data[c+2]);return P.r=~~(P.r/b),P.g=~~(P.g/b),P.b=~~(P.b/b),P},e._drawDot=function(u,o,p,v,g,c){g===void 0&&(g=0),c===void 0&&(c=1),u.fillRect((o+g)*v,(p+g)*v,c*v,c*v)},e._drawAlignProtector=function(u,o,p,v){u.clearRect((o-2)*v,(p-2)*v,5*v,5*v),u.fillRect((o-2)*v,(p-2)*v,5*v,5*v)},e._drawAlign=function(u,o,p,v,g,c,P,b){g===void 0&&(g=0),c===void 0&&(c=1);var w=u.fillStyle;u.fillStyle=P,new Array(4).fill(0).map(function(T,E){e._drawDot(u,o-2+E,p-2,v,g,c),e._drawDot(u,o+2,p-2+E,v,g,c),e._drawDot(u,o+2-E,p+2,v,g,c),e._drawDot(u,o-2,p+2-E,v,g,c)}),e._drawDot(u,o,p,v,g,c),b||(u.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map(function(T,E){e._drawDot(u,o-1+E,p-1,v,g,c),e._drawDot(u,o+1,p-1+E,v,g,c),e._drawDot(u,o+1-E,p+1,v,g,c),e._drawDot(u,o-1,p+1-E,v,g,c)})),u.fillStyle=w},e.prototype._draw=function(){var u,o,p,v,g,c,P,b,w,T,E,B,n,t,a,s,r,i,f;return je(this,void 0,void 0,function(){var l,d,m,_,y,D,M,h,L,R,A,C,Y,F,j,Z,q,K,ft,ut,ht,k,W,ct,yt,x,at,xt,O,S,Ot,nt,$t,X,k,St,Nt,Vt,U,Yt,k,$,H,z,_t,Gt,k,Ut,qt,Ht,te,k,$,H,z,ee,vt,tt,gt,et,dt,Pt,re,V,ot,pt,st,zt,Ct,ie,ae,jt,ne;return Ke(this,function(mt){switch(mt.label){case 0:if(l=(u=this.qrCode)===null||u===void 0?void 0:u.moduleCount,d=this.options.size,m=this.options.margin,(m<0||m*2>=d)&&(m=0),_=Math.ceil(m),y=d-2*m,D=this.options.whiteMargin,M=this.options.backgroundDimming,h=Math.ceil(y/l),L=h*l,R=L+2*_,A=J.createCanvas(R,R),C=A.getContext("2d"),this._clear(),C.save(),C.translate(_,_),Y=J.createCanvas(R,R),F=Y.getContext("2d"),j=null,Z=[],!this.options.gifBackground)return[3,1];if(q=ge.parseGIF(this.options.gifBackground),j=q,Z=ge.decompressFrames(q,!0),this.options.autoColor){for(K=0,ft=0,ut=0,ht=0,k=0;k200||W[1]>200||W[2]>200)&&(W[0]===0&&W[1]===0&&W[2]===0||(ht++,K+=W[0],ft+=W[1],ut+=W[2]));K=~~(K/ht),ft=~~(ft/ht),ut=~~(ut/ht),this.options.colorDark="rgb("+K+","+ft+","+ut+")"}return[3,4];case 1:return this.options.backgroundImage?[4,J.loadImage(this.options.backgroundImage)]:[3,3];case 2:return ct=mt.sent(),this.options.autoColor&&(yt=e._getAverageRGB(ct),this.options.colorDark="rgb("+yt.r+","+yt.g+","+yt.b+")"),F.drawImage(ct,0,0,ct.width,ct.height,0,0,R,R),F.rect(0,0,R,R),F.fillStyle=M,F.fill(),[3,4];case 3:F.rect(0,0,R,R),F.fillStyle=this.options.colorLight,F.fill(),mt.label=4;case 4:for(x=Mt.QRUtil.getPatternPosition(this.qrCode.typeNumber),at=((p=(o=this.options.components)===null||o===void 0?void 0:o.data)===null||p===void 0?void 0:p.scale)||Lt,xt=(1-at)*.5,O=0;O=l-8)||S>=l-8&&O<8,$t=O==6&&S>=8&&S<=l-8||S==6&&O>=8&&O<=l-8,X=nt||$t,k=1;k=x[k]-2&&O<=x[k]+2&&S>=x[k]-2&&S<=x[k]+2;St=S*h+(X?0:xt*h),Nt=O*h+(X?0:xt*h),C.strokeStyle=Ot?this.options.colorDark:this.options.colorLight,C.lineWidth=.5,C.fillStyle=Ot?this.options.colorDark:"rgba(255, 255, 255, 0.6)",x.length===0?X||C.fillRect(St,Nt,(X?1:at)*h,(X?1:at)*h):(Vt=S=l-4-5&&O=l-4-5,!X&&!Vt&&C.fillRect(St,Nt,(X?1:at)*h,(X?1:at)*h))}if(U=x[x.length-1],Yt="rgba(255, 255, 255, 0.6)",C.fillStyle=Yt,C.fillRect(0,0,8*h,8*h),C.fillRect(0,(l-8)*h,8*h,8*h),C.fillRect((l-8)*h,0,8*h,8*h),!((g=(v=this.options.components)===null||v===void 0?void 0:v.timing)===null||g===void 0)&&g.protectors&&(C.fillRect(8*h,6*h,(l-8-8)*h,h),C.fillRect(6*h,8*h,h,(l-8-8)*h)),!((P=(c=this.options.components)===null||c===void 0?void 0:c.cornerAlignment)===null||P===void 0)&&P.protectors&&e._drawAlignProtector(C,U,U,h),!((w=(b=this.options.components)===null||b===void 0?void 0:b.alignment)===null||w===void 0)&&w.protectors){for(k=0;k=1)&&(vt=.2),tt<0&&(tt=0),gt<0&&(gt=0),et=L*vt,dt=.5*(R-et),Pt=dt,C.restore(),C.fillStyle="#FFFFFF",C.save(),e._prepareRoundedCornerClip(C,dt-tt,Pt-tt,et+2*tt,et+2*tt,gt+tt),C.clip(),re=C.globalCompositeOperation,C.globalCompositeOperation="destination-out",C.fill(),C.globalCompositeOperation=re,C.restore(),C.save(),e._prepareRoundedCornerClip(C,dt,Pt,et,et,gt),C.clip(),C.drawImage(ee,dt,Pt,et,et),C.restore(),C.save(),C.translate(_,_),mt.label=6;case 6:if(j){if(Z.forEach(function(it){V||(V=new Je.default(d,d),V.setDelay(it.delay),V.setRepeat(0));var Rt=it.dims,Et=Rt.width,Bt=Rt.height;ot||(ot=J.createCanvas(Et,Bt),pt=ot.getContext("2d"),pt.rect(0,0,ot.width,ot.height),pt.fillStyle="#ffffff",pt.fill()),(!st||!Ct||Et!==st.width||Bt!==st.height)&&(st=J.createCanvas(Et,Bt),zt=st.getContext("2d"),Ct=zt.createImageData(Et,Bt)),Ct.data.set(it.patch),zt.putImageData(Ct,0,0),pt.drawImage(st,it.dims.left,it.dims.top);var oe=J.createCanvas(R,R),wt=oe.getContext("2d");wt.drawImage(ot,0,0,R,R),wt.rect(0,0,R,R),wt.fillStyle=M,wt.fill(),wt.drawImage(A,0,0,R,R);var Kt=J.createCanvas(d,d),se=Kt.getContext("2d");se.drawImage(oe,0,0,d,d),V.addFrame(se.getImageData(0,0,Kt.width,Kt.height).data)}),!V)throw new Error("No frames.");return V.finish(),de(this.canvas)?(ie=V.stream().toFlattenUint8Array(),ae=ie.reduce(function(it,Rt){return it+String.fromCharCode(Rt)},""),[2,Promise.resolve("data:image/gif;base64,"+window.btoa(ae))]):[2,Promise.resolve(Buffer.from(V.stream().toFlattenUint8Array()))]}else return F.drawImage(A,0,0,R,R),C.drawImage(Y,-_,-_,R,R),jt=J.createCanvas(d,d),ne=jt.getContext("2d"),ne.drawImage(A,0,0,d,d),this.canvas=jt,de(this.canvas)?[2,Promise.resolve(this.canvas.toDataURL())]:[2,Promise.resolve(this.canvas.toBuffer())]}})})},e.CorrectLevel=Mt.QRErrorCorrectLevel,e.defaultComponentOptions={data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}},e.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"#ffffff",correctLevel:Mt.QRErrorCorrectLevel.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:e.defaultComponentOptions,autoColor:!0},e}();It.AwesomeQR=We;function de(e){try{return e instanceof HTMLElement}catch{return typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}}(function(e){var u=N&&N.__createBinding||(Object.create?function(v,g,c,P){P===void 0&&(P=c),Object.defineProperty(v,P,{enumerable:!0,get:function(){return g[c]}})}:function(v,g,c,P){P===void 0&&(P=c),v[P]=g[c]}),o=N&&N.__exportStar||function(v,g){for(var c in v)c!=="default"&&!g.hasOwnProperty(c)&&u(g,v,c)};Object.defineProperty(e,"__esModule",{value:!0}),o(Jt,e);var p=It;Object.defineProperty(e,"AwesomeQR",{enumerable:!0,get:function(){return p.AwesomeQR}})})(Be);export{N as c,Ve as g,Be as l}; diff --git a/assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js.gz b/assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js.gz new file mode 100644 index 00000000..116a7824 Binary files /dev/null and b/assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js.gz differ diff --git a/assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js.gz b/assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js.gz deleted file mode 100644 index ca29dded..00000000 Binary files a/assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js.gz and /dev/null differ diff --git a/assets/axios-YSlog9Ro.js b/assets/axios-o8g4A-7A.js similarity index 100% rename from assets/axios-YSlog9Ro.js rename to assets/axios-o8g4A-7A.js diff --git a/assets/axios-YSlog9Ro.js.gz b/assets/axios-o8g4A-7A.js.gz similarity index 100% rename from assets/axios-YSlog9Ro.js.gz rename to assets/axios-o8g4A-7A.js.gz diff --git a/assets/call-bind@1.0.2-X-jYgRcX.js b/assets/call-bind@1.0.2-BD5aDJOM.js similarity index 84% rename from assets/call-bind@1.0.2-X-jYgRcX.js rename to assets/call-bind@1.0.2-BD5aDJOM.js index 0b859871..a2c37adc 100644 --- a/assets/call-bind@1.0.2-X-jYgRcX.js +++ b/assets/call-bind@1.0.2-BD5aDJOM.js @@ -1 +1 @@ -import{g as f}from"./get-intrinsic@1.2.1-1fqvy-Cp.js";import{f as B}from"./function-bind@1.1.2-HMk2skFd.js";var v={exports:{}};(function(a){var n=B,r=f,e=r("%Function.prototype.apply%"),p=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||n.call(p,e),o=r("%Object.getOwnPropertyDescriptor%",!0),t=r("%Object.defineProperty%",!0),g=r("%Math.max%");if(t)try{t({},"a",{value:1})}catch{t=null}a.exports=function(d){var i=l(n,p,arguments);if(o&&t){var x=o(i,"length");x.configurable&&t(i,"length",{value:1+g(0,d.length-(arguments.length-1))})}return i};var c=function(){return l(n,e,arguments)};t?t(a.exports,"apply",{value:c}):a.exports.apply=c})(v);var $=v.exports,s=f,y=$,h=y(s("String.prototype.indexOf")),b=function(n,r){var e=s(n,!!r);return typeof e=="function"&&h(n,".prototype.")>-1?y(e):e};export{b as c}; +import{g as f}from"./get-intrinsic@1.2.1-5uWIhZOj.js";import{f as B}from"./function-bind@1.1.2-B8G-TZ45.js";var v={exports:{}};(function(a){var n=B,r=f,e=r("%Function.prototype.apply%"),p=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||n.call(p,e),o=r("%Object.getOwnPropertyDescriptor%",!0),t=r("%Object.defineProperty%",!0),g=r("%Math.max%");if(t)try{t({},"a",{value:1})}catch{t=null}a.exports=function(d){var i=l(n,p,arguments);if(o&&t){var x=o(i,"length");x.configurable&&t(i,"length",{value:1+g(0,d.length-(arguments.length-1))})}return i};var c=function(){return l(n,e,arguments)};t?t(a.exports,"apply",{value:c}):a.exports.apply=c})(v);var $=v.exports,s=f,y=$,h=y(s("String.prototype.indexOf")),b=function(n,r){var e=s(n,!!r);return typeof e=="function"&&h(n,".prototype.")>-1?y(e):e};export{b as c}; diff --git a/assets/canvas@2.11.2-dZp4QMlu.js b/assets/canvas@2.11.2-CVRTzJty.js similarity index 100% rename from assets/canvas@2.11.2-dZp4QMlu.js rename to assets/canvas@2.11.2-CVRTzJty.js diff --git a/assets/canvas@2.11.2-dZp4QMlu.js.gz b/assets/canvas@2.11.2-CVRTzJty.js.gz similarity index 100% rename from assets/canvas@2.11.2-dZp4QMlu.js.gz rename to assets/canvas@2.11.2-CVRTzJty.js.gz diff --git a/assets/clipboard@2.0.11-1jqEMlOW.js.gz b/assets/clipboard@2.0.11-1jqEMlOW.js.gz deleted file mode 100644 index cd19ef69..00000000 Binary files a/assets/clipboard@2.0.11-1jqEMlOW.js.gz and /dev/null differ diff --git a/assets/clipboard@2.0.11-1jqEMlOW.js b/assets/clipboard@2.0.11-CB9-kMTz.js similarity index 99% rename from assets/clipboard@2.0.11-1jqEMlOW.js rename to assets/clipboard@2.0.11-CB9-kMTz.js index 8694e77a..70bc1366 100644 --- a/assets/clipboard@2.0.11-1jqEMlOW.js +++ b/assets/clipboard@2.0.11-CB9-kMTz.js @@ -1,4 +1,4 @@ -import{c as X,g as $}from"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";var R={exports:{}};/*! +import{c as X,g as $}from"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";var R={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * diff --git a/assets/clipboard@2.0.11-CB9-kMTz.js.gz b/assets/clipboard@2.0.11-CB9-kMTz.js.gz new file mode 100644 index 00000000..c2b8a9ef Binary files /dev/null and b/assets/clipboard@2.0.11-CB9-kMTz.js.gz differ diff --git a/assets/close-azVF77Xi.js b/assets/close-10SEVxdb.js similarity index 100% rename from assets/close-azVF77Xi.js rename to assets/close-10SEVxdb.js diff --git a/assets/close_left-wghYE-yL.js b/assets/close_left-C6k2eGWg.js similarity index 100% rename from assets/close_left-wghYE-yL.js rename to assets/close_left-C6k2eGWg.js diff --git a/assets/close_right-rXgRVuVY.js b/assets/close_right-CrnE5vtw.js similarity index 100% rename from assets/close_right-rXgRVuVY.js rename to assets/close_right-CrnE5vtw.js diff --git a/assets/currency.js@2.0.4--or6eeOG.js b/assets/currency.js@2.0.4-9OAR_aOO.js similarity index 100% rename from assets/currency.js@2.0.4--or6eeOG.js rename to assets/currency.js@2.0.4-9OAR_aOO.js diff --git a/assets/currency.js@2.0.4--or6eeOG.js.gz b/assets/currency.js@2.0.4-9OAR_aOO.js.gz similarity index 100% rename from assets/currency.js@2.0.4--or6eeOG.js.gz rename to assets/currency.js@2.0.4-9OAR_aOO.js.gz diff --git a/assets/dark-a3Shlz-3.js b/assets/dark-BqsidBpX.js similarity index 100% rename from assets/dark-a3Shlz-3.js rename to assets/dark-BqsidBpX.js diff --git a/assets/dashboard-VSK8Ksb1.js b/assets/dashboard-70op-CO0.js similarity index 100% rename from assets/dashboard-VSK8Ksb1.js rename to assets/dashboard-70op-CO0.js diff --git a/assets/dashboard-VSK8Ksb1.js.gz b/assets/dashboard-70op-CO0.js.gz similarity index 100% rename from assets/dashboard-VSK8Ksb1.js.gz rename to assets/dashboard-70op-CO0.js.gz diff --git a/assets/dayjs@1.11.10-A-QuG2Ol.js.gz b/assets/dayjs@1.11.10-A-QuG2Ol.js.gz deleted file mode 100644 index fa9e1a9a..00000000 Binary files a/assets/dayjs@1.11.10-A-QuG2Ol.js.gz and /dev/null differ diff --git a/assets/dayjs@1.11.10-A-QuG2Ol.js b/assets/dayjs@1.11.10-BYZwCyGy.js similarity index 99% rename from assets/dayjs@1.11.10-A-QuG2Ol.js rename to assets/dayjs@1.11.10-BYZwCyGy.js index c4071f6f..f6427ea4 100644 --- a/assets/dayjs@1.11.10-A-QuG2Ol.js +++ b/assets/dayjs@1.11.10-BYZwCyGy.js @@ -1 +1 @@ -import{c as V,g as X}from"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";var q={exports:{}};(function(z,G){(function(O,D){z.exports=D()})(V,function(){var O=1e3,D=6e4,j=36e5,b="millisecond",d="second",y="minute",m="hour",v="day",C="week",M="month",U="quarter",p="year",L="date",J="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},R={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;g[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=R;a.l=W,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(P);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)=n?s:""+Array(n+1-r.length).join(t)+s},R={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;g[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=R;a.l=W,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(P);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)"u"?T.impl.options.imagePlaceholder=F.imagePlaceholder:T.impl.options.imagePlaceholder=n.imagePlaceholder,typeof n.cacheBust>"u"?T.impl.options.cacheBust=F.cacheBust:T.impl.options.cacheBust=n.cacheBust}function I(n,t){return j(n,t).then(s.makeImage).then(s.delay(100)).then(function(o){var l=r(n);return l.getContext("2d").drawImage(o,0,0),l});function r(o){var l=document.createElement("canvas");if(l.width=t.width||s.width(o),l.height=t.height||s.height(o),t.bgcolor){var c=l.getContext("2d");c.fillStyle=t.bgcolor,c.fillRect(0,0,l.width,l.height)}return l}}function M(n,t,r){if(!r&&t&&!t(n))return Promise.resolve();return Promise.resolve(n).then(o).then(function(i){return l(n,i,t)}).then(function(i){return c(n,i)});function o(i){return i instanceof HTMLCanvasElement?s.makeImage(i.toDataURL()):i.cloneNode(!1)}function l(i,a,p){var P=i.childNodes;if(P.length===0)return Promise.resolve(a);return m(a,s.asArray(P),p).then(function(){return a});function m(S,v,g){var y=Promise.resolve();return v.forEach(function(C){y=y.then(function(){return M(C,g)}).then(function(w){w&&S.appendChild(w)})}),y}}function c(i,a){if(!(a instanceof Element))return a;return Promise.resolve().then(p).then(P).then(m).then(S).then(function(){return a});function p(){v(window.getComputedStyle(i),a.style);function v(g,y){g.cssText?y.cssText=g.cssText:C(g,y);function C(w,E){s.asArray(w).forEach(function(e){E.setProperty(e,w.getPropertyValue(e),w.getPropertyPriority(e))})}}}function P(){[":before",":after"].forEach(function(g){v(g)});function v(g){var y=window.getComputedStyle(i,g),C=y.getPropertyValue("content");if(C===""||C==="none")return;var w=s.uid();a.className=a.className+" "+w;var E=document.createElement("style");E.appendChild(e(w,g,y)),a.appendChild(E);function e(u,h,f){var d="."+u+":"+h,b=f.cssText?R(f):D(f);return document.createTextNode(d+"{"+b+"}");function R(x){var A=x.getPropertyValue("content");return x.cssText+" content: "+A+";"}function D(x){return s.asArray(x).map(A).join("; ")+";";function A(U){return U+": "+x.getPropertyValue(U)+(x.getPropertyPriority(U)?" !important":"")}}}}}function m(){i instanceof HTMLTextAreaElement&&(a.innerHTML=i.value),i instanceof HTMLInputElement&&a.setAttribute("value",i.value)}function S(){a instanceof SVGElement&&(a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a instanceof SVGRectElement&&["width","height"].forEach(function(v){var g=a.getAttribute(v);g&&a.style.setProperty(v,g)}))}}}function W(n){return L.resolveAll().then(function(t){var r=document.createElement("style");return n.appendChild(r),r.appendChild(document.createTextNode(t)),n})}function q(n){return k.inlineAll(n).then(function(){return n})}function J(n,t,r){return Promise.resolve(n).then(function(o){return o.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(o)}).then(s.escapeXhtml).then(function(o){return''+o+""}).then(function(o){return''+o+""}).then(function(o){return"data:image/svg+xml;charset=utf-8,"+o})}function _(){return{escape:S,parseExtension:t,mimeType:r,dataAsUrl:m,isDataUrl:o,canvasToBlob:c,resolveUrl:i,getAndEncode:P,uid:a(),delay:v,asArray:g,escapeXhtml:y,makeImage:p,width:C,height:w};function n(){var e="application/font-woff",u="image/jpeg";return{woff:e,woff2:e,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:u,jpeg:u,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function t(e){var u=/\.([^\.\/]*?)$/g.exec(e);return u?u[1]:""}function r(e){var u=t(e).toLowerCase();return n()[u]||""}function o(e){return e.search(/^(data:)/)!==-1}function l(e){return new Promise(function(u){for(var h=window.atob(e.toDataURL().split(",")[1]),f=h.length,d=new Uint8Array(f),b=0;b"u"?T.impl.options.imagePlaceholder=F.imagePlaceholder:T.impl.options.imagePlaceholder=n.imagePlaceholder,typeof n.cacheBust>"u"?T.impl.options.cacheBust=F.cacheBust:T.impl.options.cacheBust=n.cacheBust}function I(n,t){return j(n,t).then(s.makeImage).then(s.delay(100)).then(function(o){var l=r(n);return l.getContext("2d").drawImage(o,0,0),l});function r(o){var l=document.createElement("canvas");if(l.width=t.width||s.width(o),l.height=t.height||s.height(o),t.bgcolor){var c=l.getContext("2d");c.fillStyle=t.bgcolor,c.fillRect(0,0,l.width,l.height)}return l}}function M(n,t,r){if(!r&&t&&!t(n))return Promise.resolve();return Promise.resolve(n).then(o).then(function(i){return l(n,i,t)}).then(function(i){return c(n,i)});function o(i){return i instanceof HTMLCanvasElement?s.makeImage(i.toDataURL()):i.cloneNode(!1)}function l(i,a,p){var P=i.childNodes;if(P.length===0)return Promise.resolve(a);return m(a,s.asArray(P),p).then(function(){return a});function m(S,v,g){var y=Promise.resolve();return v.forEach(function(C){y=y.then(function(){return M(C,g)}).then(function(w){w&&S.appendChild(w)})}),y}}function c(i,a){if(!(a instanceof Element))return a;return Promise.resolve().then(p).then(P).then(m).then(S).then(function(){return a});function p(){v(window.getComputedStyle(i),a.style);function v(g,y){g.cssText?y.cssText=g.cssText:C(g,y);function C(w,E){s.asArray(w).forEach(function(e){E.setProperty(e,w.getPropertyValue(e),w.getPropertyPriority(e))})}}}function P(){[":before",":after"].forEach(function(g){v(g)});function v(g){var y=window.getComputedStyle(i,g),C=y.getPropertyValue("content");if(C===""||C==="none")return;var w=s.uid();a.className=a.className+" "+w;var E=document.createElement("style");E.appendChild(e(w,g,y)),a.appendChild(E);function e(u,h,f){var d="."+u+":"+h,b=f.cssText?R(f):D(f);return document.createTextNode(d+"{"+b+"}");function R(x){var A=x.getPropertyValue("content");return x.cssText+" content: "+A+";"}function D(x){return s.asArray(x).map(A).join("; ")+";";function A(U){return U+": "+x.getPropertyValue(U)+(x.getPropertyPriority(U)?" !important":"")}}}}}function m(){i instanceof HTMLTextAreaElement&&(a.innerHTML=i.value),i instanceof HTMLInputElement&&a.setAttribute("value",i.value)}function S(){a instanceof SVGElement&&(a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a instanceof SVGRectElement&&["width","height"].forEach(function(v){var g=a.getAttribute(v);g&&a.style.setProperty(v,g)}))}}}function W(n){return L.resolveAll().then(function(t){var r=document.createElement("style");return n.appendChild(r),r.appendChild(document.createTextNode(t)),n})}function q(n){return k.inlineAll(n).then(function(){return n})}function J(n,t,r){return Promise.resolve(n).then(function(o){return o.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(o)}).then(s.escapeXhtml).then(function(o){return''+o+""}).then(function(o){return''+o+""}).then(function(o){return"data:image/svg+xml;charset=utf-8,"+o})}function _(){return{escape:S,parseExtension:t,mimeType:r,dataAsUrl:m,isDataUrl:o,canvasToBlob:c,resolveUrl:i,getAndEncode:P,uid:a(),delay:v,asArray:g,escapeXhtml:y,makeImage:p,width:C,height:w};function n(){var e="application/font-woff",u="image/jpeg";return{woff:e,woff2:e,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:u,jpeg:u,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function t(e){var u=/\.([^\.\/]*?)$/g.exec(e);return u?u[1]:""}function r(e){var u=t(e).toLowerCase();return n()[u]||""}function o(e){return e.search(/^(data:)/)!==-1}function l(e){return new Promise(function(u){for(var h=window.atob(e.toDataURL().split(",")[1]),f=h.length,d=new Uint8Array(f),b=0;b0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function te(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?kg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function _e(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ev),r=(+r).toFixed(t),e?r:+r}function Eg(r){return r.sort(function(t,e){return t-e}),r}function pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Og(r)}function Og(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function tv(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Ng(r,t){var e=Ta(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Ta(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return F(o,function(v){return v/n})}function Bg(r,t){var e=Math.max(pt(r),pt(t)),n=r+t;return e>ev?n:_e(n,e)}function rv(r){var t=Math.PI*2;return(r%t+t)%t}function Ma(r){return r>-Ml&&r=10&&t++,t}function nv(r,t){var e=gs(r),n=Math.pow(10,e),a=r/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Vt(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function av(r){return!isNaN(Vt(r))}function iv(){return Math.round(Math.random()*9)}function ov(r,t){return t===0?r:ov(t,r%t)}function Il(r,t){return r==null?t:t==null?r:r*t/ov(r,t)}function Q(r){throw new Error(r)}function Ll(r,t,e){return(t-r)*e+r}var sv="series\0",lv="\0_ec_\0";function de(r){return r instanceof Array?r:r==null?[]:[r]}function bo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&se(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var um=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cm=Sn(um),fm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return cm(this,t,e)},r}(),X=ue(),vm=function(r,t,e,n){if(n){var a=X(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=X(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Rl=1,kl={},dv=ue(),Ss=ue(),xs=0,Ha=1,Ua=2,Ue=["emphasis","blur","select"],Ia=["normal","emphasis","blur","select"],hm=10,dm=9,jt="highlight",ga="downplay",vn="select",ma="unselect",hn="toggleSelect";function ur(r){return r!=null&&r!=="none"}function Ya(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function pv(r){Ya(r,"emphasis",Ua)}function gv(r){r.hoverState===Ua&&Ya(r,"normal",xs)}function bs(r){Ya(r,"blur",Ha)}function mv(r){r.hoverState===Ha&&Ya(r,"normal",xs)}function pm(r){r.selected=!0}function gm(r){r.selected=!1}function El(r,t,e){t(r,e)}function bt(r,t,e){El(r,t,e),r.isGroup&&r.traverse(function(n){El(n,t,e)})}function Ol(r,t){switch(t){case"emphasis":r.hoverState=Ua;break;case"normal":r.hoverState=xs;break;case"blur":r.hoverState=Ha;break;case"select":r.selected=!0}}function mm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof Se){var o=dv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ur(s)||ur(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=B({},n),u=B({},u),u.fill=s):!ur(u.fill)&&ur(s)?(i=!0,n=B({},n),u=B({},u),u.fill=bl(s)):!ur(u.stroke)&&ur(l)&&(i||(n=B({},n),u=B({},u)),u.stroke=bl(l)),n.style=u}}if(n&&n.z2==null){i||(n=B({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??hm)}return n}function _m(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??dm)}return e}function Sm(r,t,e){var n=se(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:mm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?a:i.opacity*.1},o),e.style=o),e}function yi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return ym(this,r,t,e);if(r==="blur")return Sm(this,r,e);if(r==="select")return _m(this,r,e)}return e}function xm(r){r.stateProxy=yi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=yi),e&&(e.stateProxy=yi)}function Nl(r,t){!xv(r,t)&&!r.__highByOuter&&bt(r,pv)}function Bl(r,t){!xv(r,t)&&!r.__highByOuter&&bt(r,gv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),bt(r,pv)}function Mr(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&bt(r,gv)}function bm(r){bt(r,bs)}function yv(r){bt(r,mv)}function _v(r){bt(r,pm)}function Sv(r){bt(r,gm)}function xv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function bv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=Ss(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){mv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function wo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function To(r,t,e){wv(r,!0),bt(r,xm),Im(r,t,e)}function Mm(r){wv(r,!1)}function Ir(r,t,e,n){n?Mm(r):To(r,t,e)}function Im(r,t,e){var n=X(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var zl=["emphasis","blur","select"],Lm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function me(r,t,e,n,a,i){Cs("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){Cs("enter",r,t,e,n,a,i)}function Sr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Wl(r){return!r.isGroup}function Fm(r){return r.shape!=null}function Iv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Wl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Fm(o)&&(s.shape=B({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Wl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),me(o,l,e,X(o).dataIndex)}}})}function Lv(r,t){return F(r,function(e){var n=e[0];n=Pa(n,t.x),n=Ra(n,t.x+t.width);var a=e[1];return a=Pa(a,t.y),a=Ra(a,t.y+t.height),[n,a]})}function Gm(r,t){var e=Pa(r.x,t.x),n=Ra(r.x+r.width,t.x+t.width),a=Pa(r.y,t.y),i=Ra(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Za(r,t,e){var n=B({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,e),new Or(n)):Ts(r.replace("path://",""),n,e,"center")}function Wm(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=_i(v,d,c,f)/h;return!(g<0||g>1)}function _i(r,t,e,n){return r*n-e*t}function Hm(r){return r<=1e-6&&r>=-1e-6}function Ka(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=G(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ve(l),function(c){mt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=X(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:re({content:n,formatterParams:s},a)}}function Hl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Fn(r,t){if(r)if(N(r))for(var e=0;e=0&&s.push(l)}),s}}function Is(r,t){return K(K({},r,!0),t,!0)}const ay={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:". "}}}},iy={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 ka="ZH",Ls="EN",xr=Ls,_a={},Ps={},Nv=ce.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xr).toUpperCase();return r.indexOf(ka)>-1?ka:xr}():xr;function Bv(r,t){r=r.toUpperCase(),Ps[r]=new fe(t),_a[r]=t}function oy(r){if(G(r)){var t=_a[r.toUpperCase()]||{};return r===ka||r===Ls?Z(t):K(Z(t),Z(_a[xr]),!1)}else return K(Z(r),Z(_a[xr]),!1)}function sy(r){return Ps[r]}function ly(){return Ps[xr]}Bv(Ls,ay);Bv(ka,iy);var Rs=1e3,ks=Rs*60,dn=ks*60,He=dn*24,Kl=He*365,on={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}"},Zn="{yyyy}-{MM}-{dd}",ql={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zn,hour:Zn+" "+on.hour,minute:Zn+" "+on.minute,second:Zn+" "+on.second,millisecond:on.none},bi=["year","month","day","hour","minute","second","millisecond"],Vv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function uy(r){return r===br(r)}function cy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ja(r,t,e,n){var a=_t(r),i=a[Es(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qa(e)](),u=a["get"+(e?"UTC":"")+"Day"](),c=a[Cn(e)](),f=(c-1)%12+1,h=a[Ja(e)](),v=a[ei(e)](),d=a[ti(e)](),p=n instanceof fe?n:sy(n||Nv)||ly(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Dt(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function fy(r,t,e,n,a){var i=null;if(G(e))i=e;else if($(e))i=e(r.value,t,{level:r.level});else{var o=B({},on);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(N(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return ja(new Date(r.value),i,a,n)}function zv(r,t){var e=_t(r),n=e[wr(t)]()+1,a=e[Qa(t)](),i=e[Cn(t)](),o=e[Ja(t)](),s=e[ei(t)](),l=e[ti(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function jl(r,t,e){var n=le(r)?_t(r):r;switch(t=t||zv(r,e),t){case"year":return n[Es(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[Qa(e)]();case"half-day":return n[Cn(e)]()/24;case"hour":return n[Cn(e)]();case"minute":return n[Ja(e)]();case"second":return n[ei(e)]();case"millisecond":return n[ti(e)]()}}function Es(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function Qa(r){return r?"getUTCDate":"getDate"}function Cn(r){return r?"getUTCHours":"getHours"}function Ja(r){return r?"getUTCMinutes":"getMinutes"}function ei(r){return r?"getUTCSeconds":"getSeconds"}function ti(r){return r?"getUTCMilliseconds":"getMilliseconds"}function vy(r){return r?"setUTCFullYear":"setFullYear"}function Fv(r){return r?"setUTCMonth":"setMonth"}function Gv(r){return r?"setUTCDate":"setDate"}function Wv(r){return r?"setUTCHours":"setHours"}function Hv(r){return r?"setUTCMinutes":"setMinutes"}function Uv(r){return r?"setUTCSeconds":"setSeconds"}function Yv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function $v(r){if(!av(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Xv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=og;function Lo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Nn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?_t(r):r;if(isNaN(+l)){if(s)return"-"}else return ja(l,n,e)}if(t==="ordinal")return go(r)?a(r):le(r)&&i(r)?r+"":"-";var u=Vt(r);return i(u)?$v(u):go(r)?a(r):typeof r=="boolean"?r+"":"-"}var Ql=["a","b","c","d","e","f","g"],wi=function(r,t){return"{"+r+(t??"")+"}"};function Zv(r,t,e){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",G(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Jl(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sa=w,dy=["left","right","top","bottom","width","height"],Kn=[["width","left","right"],["height","top","bottom"]];function Os(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Os;J(Os,"vertical");J(Os,"horizontal");function Ft(r,t,e){e=ri(e||0);var n=t.width,a=t.height,i=te(r.left,n),o=te(r.top,a),s=te(r.right,n),l=te(r.bottom,a),u=te(r.width,n),c=te(r.height,a),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-e[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var d=new Ne(i+e[3],o+e[0],u,c);return d.margin=e,d}function py(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Ft(re({width:u.width,height:u.height},t),e,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function Tn(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!N(n)&&(n=[n,n]);var a=o(Kn[0],0),i=o(Kn[1],1);u(Kn[0],r,a),u(Kn[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(Sa(c,function(_){d[_]=r[_]}),Sa(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=K(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return zn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(fe);hv(ee,fe);Wa(ee);ry(ee);ny(ee,yy);function yy(r){var t=[];return w(ee.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return rt(e).main}),r!=="dataset"&&se(t,"dataset")<=0&&t.unshift("dataset"),t}var Kv="";typeof navigator<"u"&&(Kv=navigator.platform||"");var cr="rgba(0, 0, 0, 0.2)";const _y={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Kv.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 qv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),$e="original",ke="arrayRows",Xe="objectRows",ut="keyedColumns",Bt="typedArray",jv="unknown",ot="column",zr="row",Te={Must:1,Might:2,Not:3},Qv=ue();function Sy(r){Qv(r).datasetMap=U()}function Jv(r,t,e){var n={},a=Ns(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Qv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),w(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function rh(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?e:Dy(n,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Ay(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qn,Ur,ru,nu="\0_ec_inner",My=1,Vs=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new fe(i),this._locale=new fe(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=ou(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,ou(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?ru(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;Sy(this),w(e,function(f,h){f!=null&&(ee.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?Z(f):K(a[h],f,!0))}),u&&u.each(function(f,h){ee.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ee.topologicalTravel(s,ee.getAllClassMainTypes(),c,this);function c(f){var h=Cy(this,f,de(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Gg(v,h,d);Kg(p,f,ee),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",D=ee.getClass(f,S.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=B({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),B(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,y),f==="series"&&qn(this)}this._seriesIndices||qn(this)},t.prototype.getOption=function(){var e=Z(this.option);return w(e,function(n,a){if(ee.hasClass(a)){for(var i=de(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!_n(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[nu],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Vy(r,t){return r.join(",")===t.join(",")}const zy=Ey;var Ze=w,Dn=Y,su=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ti(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=su.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Bg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ai=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||jv,this.seriesLayoutBy=t.seriesLayoutBy||ot,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};du=(t={},t[ke+"_"+ot]={pure:!0,appendData:i},t[ke+"_"+zr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xe]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[$e]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function yu(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function pn(r){return new n0(r)}var n0=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},i0=function(){function r(t,e){if(!le(e)){var n="";Q(n)}this._opFn=hh[t],this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){return le(t)?this._opFn(t,this._rvalFloat):this._opFn(Vt(t),this._rvalFloat)},r}(),dh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=le(t)?t:Vt(t),a=le(e)?e:Vt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=G(t),l=G(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),o0=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Vt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function s0(r,t){return r==="eq"||r==="ne"?new o0(r==="eq",t):mt(hh,r)?new i0(r,t):null}var l0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return xa(t,e)},r}();function u0(r,t){var e=new l0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&Q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";mt(l,m)&&Q(_),l[m]=y}});else for(var c=0;c65535?m0:y0}function fr(){return[1/0,-1/0]}function _0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function xu(r,t,e,n,a){var i=mh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m=f&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=f&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;mt[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new($r(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}M>0&&Mc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return xa(e[i],this._dimensions[i])}Mi={arrayRows:t,objectRows:function(e,n,a,i){return xa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return xa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),yh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(jn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Be(s)?Bt:$e,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ie(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=ie(f.sourceHeader,h.sourceHeader),p=ie(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Ro(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Ro(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&wu(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&wu(f),s.push(c),l.push(u._getVersionSign())}),n?o=p0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[Ky(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=bh(a);i>=t&&(t=i+ +(n&&(!i||Eo(a)&&!a.noHeader)))}),t}return 0}function b0(r,t,e,n){var a=t.noHeader,i=C0(bh(t)),o=[],s=t.blocks||[];st(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(mt(u,l)){var c=new dh(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,m=xh(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);m!=null&&o.push(m)});var f=r.renderMode==="richText"?o.join(i.richText):Oo(o.join(""),a?e:i.html);if(a)return f;var h=Lo(t.header,"ordinal",r.useUTC),v=Sh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?wh(r,h,v)+i.richText+f:Oo('
'+We(h)+"
"+f,e)}function w0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],F(S,function(b,x){return Lo(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Lo(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=Sh(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":wh(r,h,y))+(o?"":A0(r,d,p,g,_)):Oo((s?"":f)+(i?"":T0(h,!s,y))+(o?"":D0(d,p,g,_)),e)}}function Cu(r,t,e,n,a,i){if(r){var o=xh(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function C0(r){return{html:S0[r],richText:x0[r]}}function Oo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function T0(r,t,e){var n=t?"margin-left:2px":"";return''+We(r)+""}function D0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=N(r)?r:[r],''+F(r,function(o){return We(o)}).join("  ")+""}function wh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function A0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,i)}function M0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function Ch(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Ii=function(){function r(){this.richTextStyles={},this._nextStyleNameId=iv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=hy({color:e,type:t,renderMode:n,markerId:a});return G(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};N(e)?w(e,function(i){return B(n,i)}):B(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function I0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=N(s),u=M0(t,e),c,f,h,v;if(o>1||l&&!o){var d=L0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=c=Pr(a,e,i[0]),f=p.type}else v=c=l?s[0]:s;var g=ms(t),m=g&&t.name||"",y=a.getName(e),_=n?m:y;return An("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[An("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Nn(_),value:c,valueType:f,dataIndex:e})].concat(h||[])})}function L0(r,t,e,n,a){var i=t.getData(),o=Ta(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(f){c(Pr(i,e,f),f)}):w(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(An("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=ue();function Qn(r,t){return r.getName(t)||r.getId(t)}var ba="__universalTransitionEnabled",oi=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=pn({count:R0,reset:k0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new yh(this);i.prepareSource();var o=this.getInitialData(e,a);Du(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Tu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Tn(this),i=a?ni(e):{},o=this.subType;ee.hasClass(o)&&(o+="Series"),K(e,n.getTheme().get(this.subType)),K(e,this.getDefaultOption()),bo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Lr(e,i,a)},t.prototype.mergeOption=function(e,n){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Tn(this);a&&Lr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Du(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Tu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Be(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=Bs.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Qn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ba])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ee.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ee);xt(oi,r0);xt(oi,Bs);hv(oi,ee);function Tu(r){var t=r.name;ms(r)||(r.name=P0(r)||t)}function P0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function R0(r){return r.model.getRawData().count()}function k0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),E0}function E0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Du(r,t){w(sg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,J(O0,t))})}function O0(r,t){var e=No(r);return e&&e.setOutputEnd((t||this).count()),t}function No(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const lt=oi;var Us=function(){function r(){this.group=new ge,this.uid=Gn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();_s(Us);Wa(Us);const Ye=Us;function Wn(){var r=ue();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Th=ue(),N0=Wn(),Ys=function(){function r(){this.group=new ge,this.uid=Gn("viewChart"),this.renderTask=pn({plan:B0,reset:V0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Mu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Mu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Fn(this.group,t)},r.markUpdateMethod=function(t,e){Th(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Au(r,t,e){r&&Do(r)&&(t==="emphasis"?Ar:Mr)(r,e)}function Mu(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Pm(t.highlightKey):null;n!=null?w(de(n),function(i){Au(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Au(i,e,a)})}_s(Ys);Wa(Ys);function B0(r){return N0(r.model)}function V0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&Th(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),z0[l]}var z0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Oe=Ys;var Ea="\0__throttleOriginMethod",Iu="\0__throttleRate",Lu="\0__throttleType";function $s(r,t,e){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Dh(r,t,e,n){var a=r[t];if(a){var i=a[Ea]||a,o=a[Lu],s=a[Iu];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=$s(i,e,n==="debounce"),a[Ea]=i,a[Lu]=n,a[Iu]=e}return a}}function Bo(r,t){var e=r[t];e&&e[Ea]&&(e.clear&&e.clear(),r[t]=e[Ea])}var Pu=ue(),Ru={itemStyle:Sn(Ov,!0),lineStyle:Sn(Ev,!0)},F0={lineStyle:"stroke",itemStyle:"fill"};function Ah(r,t){var e=r.visualStyleMapper||Ru[t];return e||(console.warn("Unknown style type '"+t+"'."),Ru.itemStyle)}function Mh(r,t){var e=r.visualDrawType||F0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var G0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Ah(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Mh(r,n),u=o[l],c=$(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=B({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},Xr=new fe,W0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Ah(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Xr.option=l[n];var u=a(Xr),c=o.ensureUniqueItemVisual(s,"style");B(c,u),Xr.option.decal&&(o.setItemVisual(s,"decal",Xr.option.decal),Xr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},H0={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Pu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Pu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Mh(e,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Jn=Math.PI;function U0(r,t){t=t||{},re(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ge,n=new he({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Ce({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new he({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new ds({shape:{startAngle:-Jn/2,endAngle:-Jn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Ih=function(){function r(t,e,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||pn({plan:K0,reset:q0,count:Q0}));v.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||pn({reset:Y0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(f=!1,w(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,pn({reset:$0,onDirty:Z0})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return $(t)&&(t={overallReset:t,seriesType:J0(t)}),t.uid=Gn("stageHandler"),e&&(t.visualType=e),t},r}();function Y0(r){r.overallReset(r.ecModel,r.api,r.payload)}function $0(r){return r.overallProgress&&X0}function X0(){this.agent.dirty(),this.getDownstream().dirty()}function Z0(){this.agent&&this.agent.dirty()}function K0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function q0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=de(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return Lh(n)}):j0}var j0=Lh(0);function Lh(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Vo=["symbol","symbolSize","symbolRotate","symbolOffset"],Nu=Vo.concat(["symbolKeepAspect"]),n_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(Y(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new zy(this._api),u=this._theme,c=this._model=new Vs;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Wo);var f={seriesTransition:s,optionChanged:!0};if(a)this[Ee]={silent:i,updateParams:f},this[Ae]=!1,this.getZr().wakeUp();else{try{hr(this),Mt.update.call(this,null,f)}catch(h){throw this[Ee]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[Ee]=null,this[Ae]=!1,Zr.call(this,i),Kr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(ce.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if($u[a]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(mn,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=jf.createCanvas(),m=wl(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new he({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Or({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Ei(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Ei(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=fn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=fn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?i_(s,l,n):o_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(V_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&ln(s,function(d){var p=X(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(gn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),l_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&cv(this.getDom(),qs,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete mn[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Ee]&&(i==null&&(i=this[Ee].silent),a=!0,this[Ee]=null),this[Ae]=!0;try{a&&hr(this),Mt.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,Zr.call(this,i),Kr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Ho[e]){var a=Ho[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=gn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!Na[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Ni.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&ce.browser.weChat&&this._throttledZrFlush(),Zr.call(this,a),Kr.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){hr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),ki(f,!0),ki(f,!1),h.plan()},ki=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!ce.node&&!ce.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Sr(m))return;if(m instanceof Se&&Rm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Uu=function(f){return new(function(h){V(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ar(d,p),ze(f)},v.prototype.leaveEmphasis=function(d,p){Mr(d,p),ze(f)},v.prototype.enterBlur=function(d){bm(d),ze(f)},v.prototype.leaveBlur=function(d){yv(d),ze(f)},v.prototype.enterSelect=function(d){_v(d),ze(f)},v.prototype.leaveSelect=function(d){Sv(d),ze(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(nh))(f)},$h=function(f){function h(v,d){for(var p=0;p=0)){Xu.push(e);var i=Ih.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function Qh(r,t){Ho[r]=t}function Y_(r,t,e){var n=w_("registerMap");n&&n(r,t,e)}var $_=d0;sr(Zs,G0);sr(si,W0);sr(si,H0);sr(Zs,n_);sr(si,a_);sr(Fh,S_);qh(ih);jh(D_,Xy);Qh("default",U0);ct({type:jt,event:jt,update:jt},yt);ct({type:ga,event:ga,update:ga},yt);ct({type:vn,event:vn,update:vn},yt);ct({type:ma,event:ma,update:ma},yt);ct({type:hn,event:hn,update:hn},yt);Kh("light",e_);Kh("dark",t_);function qr(r){return r==null?0:r.length||1}function Zu(r){return r}var X_=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Zu,this._newKeyGetter=a||Zu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var jr=Y,It=F,J_=typeof Int32Array>"u"?Array:Int32Array,eS="e\0\0",Ku=-1,tS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rS=["_approximateExtent"],qu,na,Qr,Jr,zi,aa,Fi,ad=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;ed(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===$e;if(l&&!a.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),N(i)?i=i.slice():jr(i)&&(i=B({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,jr(e)?B(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){jr(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;vm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:It(this.dimensions,this._getDimInfo,this),this.hostModel)),zi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];$(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(fg(arguments)))})},r.internalField=function(){qu=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new J_(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[e]=l}}}(),r}();function id(r,t){Fs(r)||(r=Gs(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=aS(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&nd(o),l=n===r.dimensionsDefine,u=l?rd(r):td(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=U(c),h=new gh(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function aS(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function iS(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var oS=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function sS(r){var t=r.get("coordinateSystem"),e=new oS(t),n=lS[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var lS={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),dr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),dr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),dr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),dr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),dr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];e.set(c,u),dr(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function dr(r){return r.get("type")==="category"}function uS(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;cS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(w(i,function(y,_){G(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;w(i,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function cS(r){return!ed(r.schema)}function Rr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function fS(r,t){return Rr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function vS(r,t){var e=r.get("coordinateSystem"),n=zs.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Uo(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function hS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function li(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=Gs(r)):(a=n.getSource(),i=a.sourceFormat===$e);var o=sS(t),s=vS(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?J(Jv,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=id(a,c),h=hS(f.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),d=uS(t,{schema:f,store:v}),p=new ad(f,t);p.setCalculationInfo(d);var g=h!=null&&dS(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function dS(r){if(r.sourceFormat===$e){var t=pS(r.data||[]);return!N(Vn(t))}}function pS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Wa(ft);var gS=0,Yo=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,mS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function mS(r){return Y(r)&&r.value!=null?r.value:r+""}function $o(r){return r.type==="interval"||r.type==="log"}function yS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=nv(i/t,!0);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=od(o),l=a.niceTickExtent=[_e(Math.ceil(r[0]/o)*o,s),_e(Math.floor(r[1]/o)*o,s)];return _S(l,r),a}function Gi(r){var t=Math.pow(10,gs(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,_e(e*t)}function od(r){return pt(r)+2}function ju(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function _S(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),ju(r,0,t),ju(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function ui(r,t){return r>=t[0]&&r<=t[1]}function ci(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fi(r,t){return r*(t[1]-t[0])+t[0]}var sd=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Yo({})),N(a)&&(a=new Yo({categories:F(a,function(i){return Y(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),ui(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ci(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ft);ft.registerClass(sd);const ld=sd;var Xt=_e,ud=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return ui(e,this._extent)},t.prototype.normalize=function(e){return ci(e,this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=od(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(e?s.push({value:Xt(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function vd(r){var t=bS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=te(n.get("barWidth"),s),p=te(n.get("barMaxWidth"),s),g=te(n.get("barMinWidth")||(gd(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:el(i),stackId:Js(n)})}),wS(e)}function wS(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ve(i).length;s=Math.max(35-l*4,15)+"%"}var u=te(s,o),c=te(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),w(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,f-=S+c*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;w(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;w(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),e}function CS(r,t,e){if(r&&t){var n=r[el(t)];return n!=null&&e!=null?n[Js(e)]:n}}function hd(r,t){var e=fd(r,t),n=vd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Js(a),u=n[el(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function dd(r){return{seriesType:r,plan:Wn(),reset:function(t){if(pd(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Rr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=TS(a,i),d=gd(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),D=n.master.getRect(),A=h?D.width:D.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(f?g:o,M),R=I.get(s,M),O=v,W=void 0;f&&(W=+P-I.get(o,M));var k=void 0,E=void 0,z=void 0,H=void 0;if(h){var q=n.dataToPoint([P,R]);if(f){var j=n.dataToPoint([W,R]);O=j[0]}k=O,E=q[1]+y,z=q[0]-O,H=m,Math.abs(z)>>1;r[a][1]a&&(this._approxInterval=a);var s=ia.length,l=Math.min(DS(ia,this._approxInterval,0,s),s-1);this._interval=ia[l][1],this._minLevelUnit=ia[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return le(e)?e:+_t(e)},t.prototype.contain=function(e){return ui(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ci(this.parse(e),this._extent)},t.prototype.scale=function(e){return fi(e,this._extent)},t.type="time",t}(Hn),ia=[["second",Rs],["minute",ks],["hour",dn],["quarter-day",dn*6],["half-day",dn*12],["day",He*1.2],["half-week",He*3.5],["week",He*7],["month",He*31],["quarter",He*95],["half-year",Kl/2],["year",Kl]];function AS(r,t,e,n){var a=_t(t),i=_t(e),o=function(d){return jl(a,d,n)===jl(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function MS(r,t){return r/=He,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function IS(r){var t=30*He;return r/=t,r>6?6:r>3?3:r>2?2:1}function LS(r){return r/=dn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Qu(r,t){return r/=t?ks:Rs,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function PS(r){return nv(r,!0)}function RS(r,t,e){var n=new Date(r);switch(br(t)){case"year":case"month":n[Fv(e)](0);case"day":n[Gv(e)](1);case"hour":n[Wv(e)](0);case"minute":n[Hv(e)](0);case"second":n[Uv(e)](0),n[Yv(e)](0)}return n.getTime()}function kS(r,t,e,n){var a=1e4,i=Vv,o=0;function s(A,M,I,L,P,R,O){for(var W=new Date(M),k=M,E=W[L]();k1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(g),f>_||r===i[v]))break}c=[]}}}for(var S=be(F(u,function(A){return be(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[_e(BS(n[0]/i)*i),_e(NS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){yn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),ui(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),ci(e,this._extent)},t.prototype.scale=function(e){return e=fi(e,this._extent),oa(this.base,e)},t.type="log",t}(ft),yd=tl.prototype;yd.getMinorTicks=yn.getMinorTicks;yd.getLabel=yn.getLabel;function sa(r,t){return OS(r,pt(t))}ft.registerClass(tl);const VS=tl;var zS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[GS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=FS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),FS={min:"_determinedMin",max:"_determinedMax"},GS={min:"_dataMin",max:"_dataMax"};function _d(r,t,e){var n=r.rawExtentInfo;return n||(n=new zS(r,t,e),r.rawExtentInfo=n,n)}function la(r,t){return t==null?null:So(t)?NaN:r.parse(t)}function Sd(r,t){var e=r.type,n=_d(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=fd("bar",o),l=!1;if(w(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=vd(s),c=WS(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function WS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=CS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function ec(r,t){var e=t,n=Sd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof VS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function HS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new ld({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new ES({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ft.getClass(t)||Hn)}}function US(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Un(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):G(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):$(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(rl(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function rl(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function YS(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof ld?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Un(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cr[1]&&(r[1]=a[1])})}var ZS=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),tc=[],KS={registerPreprocessor:qh,registerProcessor:jh,registerPostInit:G_,registerPostUpdate:W_,registerUpdateLifecycle:js,registerAction:ct,registerCoordinateSystem:H_,registerLayout:U_,registerVisual:sr,registerTransform:$_,registerLoading:Qh,registerMap:Y_,registerImpl:b_,PRIORITY:O_,ComponentModel:ee,ComponentView:Ye,SeriesModel:lt,ChartView:Oe,registerComponentModel:function(r){ee.registerClass(r)},registerComponentView:function(r){Ye.registerClass(r)},registerSeriesModel:function(r){lt.registerClass(r)},registerChartView:function(r){Oe.registerClass(r)},registerSubTypeDefaulter:function(r,t){ee.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){vg(r,t)}};function St(r){if(N(r)){w(r,function(t){St(t)});return}se(tc,r)>=0||(tc.push(r),$(r)&&(r={install:r}),r.install(KS))}var Ln=ue();function qS(r){return r.type==="category"?QS(r):ex(r)}function jS(r,t){return r.type==="category"?JS(r,t):{ticks:F(r.scale.getTicks(),function(e){return e.value})}}function QS(r){var t=r.getLabelModel(),e=wd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function wd(r,t){var e=Cd(r,"labels"),n=nl(t),a=Td(e,n);if(a)return a;var i,o;return $(n)?i=Md(r,n):(o=n==="auto"?tx(r):n,i=Ad(r,o)),Dd(e,n,{labels:i,labelCategoryInterval:o})}function JS(r,t){var e=Cd(r,"ticks"),n=nl(t),a=Td(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),$(n))i=Md(r,n,!0);else if(n==="auto"){var s=wd(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=Ad(r,o,!0);return Dd(e,n,{ticks:i,tickCategoryInterval:o})}function ex(r){var t=r.scale.getTicks(),e=Un(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Cd(r,t){return Ln(r)[t]||(Ln(r)[t]=[])}function Td(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=ps(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Ln(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function nx(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Ad(r,t,e){var n=Un(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=xd(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function Md(r,t,e){var n=r.scale,a=Un(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var rc=[0,1],ax=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return tv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),nc(n,a.count())),Ot(t,rc,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),nc(n,a.count()));var i=Ot(t,n,rc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=jS(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return ix(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return qS(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return rx(this)},r}();function nc(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function ix(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=_e(v),d=_e(d),f?v>d:va&&(a+=en);var v=Math.atan2(s,o);if(v<0&&(v+=en),v>=n&&v<=a||v+en>=n&&v+en<=a)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Va(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,c=e-r,f=n-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function Id(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var je=[];function cx(r,t,e){var n=Id(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function fx(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,Je.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(at,Je,ae),we.sub(tt,ve,ae);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i1&&we.copy(Pe,ve),Pe.toArray(r[1])}}}}function vx(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),ae.fromArray(r[1]),ve.fromArray(r[2]),we.sub(at,ae,Je),we.sub(tt,ve,ae);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i=l)we.copy(Pe,ve);else{Pe.scaleAndAdd(tt,s/Math.tan(Math.PI/2-c));var f=ve.x!==ae.x?(Pe.x-ae.x)/(ve.x-ae.x):(Pe.y-ae.y)/(ve.y-ae.y);if(isNaN(f))return;f<0?we.copy(Pe,ae):f>1&&we.copy(Pe,ve)}Pe.toArray(r[1])}}}}function Wi(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function hx(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=Cl(n[0],n[1]),i=Cl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=mi([],n[1],n[0],o/a),l=mi([],n[1],n[2],o/i),u=mi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&i&&b(-c/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&x(-m,.8),y<0&&x(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&C(-m),y<0&&C(y);function _(){m=p.rect[t]-n,y=a-g.rect[t]-g.rect[e]}function S(T,D,A){if(T<0){var M=Math.min(D,-T);if(M>0){b(M*A,0,o);var I=M+T;I<0&&x(-I*A,1)}else x(-T*A,1)}}function b(T,D,A){T!==0&&(u=!0);for(var M=D;M0)for(var I=0;I0;I--){var O=A[I-1]*R;b(-O,I,o)}}}function C(T){var D=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),M=0;M0?b(A,0,M+1):b(-A,o-M-1,o),T-=A,T<=0)return}return u}function dx(r,t,e,n){return Ed(r,"x","width",t,e,n)}function Od(r,t,e,n){return Ed(r,"y","height",t,e,n)}function Nd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Ne(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),se(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),me(n,u,e,l)}else if(n.attr(u),!Vr(n).valueAnimation){var f=ie(n.style.opacity,1);n.style.opacity=0,De(n,{style:{opacity:f}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ua(v,u,ca),ua(v,n.states.select,ca)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ua(d,u,ca),ua(d,n.states.emphasis,ca)}Xm(n,l,c,e,e)}if(a&&!a.ignore&&!a.invisible){var i=mx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),me(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,De(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}(),Ui=ue();function KT(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Ui(e).labelManager;a||(a=Ui(e).labelManager=new yx),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Ui(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var _x=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ee);const Sx=_x;var Xo=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(ee);xt(Xo,ZS);var Bd={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)"]}}},xx=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Bd),al=K({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}}},Bd),bx=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},al),wx=re({logBase:10},al);const Cx={category:xx,value:al,time:bx,log:wx};var Tx={value:1,category:1,time:1,log:1};function oc(r,t,e,n){w(Tx,function(a,i){var o=K(K({},Cx[i],!0),n,!0),s=function(l){V(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Tn(this),v=h?ni(c):{},d=f.getTheme();K(c,d.get(i+"Axis")),K(c,this.getDefaultOption()),c.type=sc(c),h&&Lr(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Yo.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=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",sc)}function sc(r){return r.type||(r.data?"category":"value")}var Dx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),be(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const Ax=Dx;var Zo=["x","y"];function lc(r){return r.type==="interval"||r.type==="time"}var Mx=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Zo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!lc(e)||!lc(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-a[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=vs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return er(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return er(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Ne(i,o,s,l)},t}(Ax),Ix=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ox);const Lx=Ix;function Ko(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Dr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function uc(r){return r.get("coordinateSystem")==="cartesian2d"}function cc(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Re).models[0];t[n]=i}),t}var Yi=Math.log;function Px(r,t,e){var n=Hn.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=Sd(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=Yi(r.base);u=[Yi(u[0])/h,Yi(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Gi(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Gi(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=_e(g-y),p<0&&u[0]>=0?(p=0,g=_e(y)):g>0&&u[1]<=0&&(g=0,p=-_e(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var Rx=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Ve(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;$o(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(ec(p,d),$o(p)&&(s=v))}c.length&&(s||(s=c.pop(),ec(s.scale,s.model)),w(c,function(g){Px(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){fc(n,"y",o,i)}),w(n.y,function(o){fc(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Ft(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=YS(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),kx(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ma(a-Nt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),hc={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(er(s,s,o),er(l,l,o));var c=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});wn(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);G(h)&&(h=[h,h]),(G(v)||le(v))&&(v=[v,v]);var d=Xs(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Gt(h[y],-p/2,-g/2,p,g,c.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Bx(e,n,t,r),i=zx(e,n,t,r);if(Nx(t,i,a),Vx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=kd(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Nd(o)}},axisName:function(r,t,e,n){var a=Dr(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,pc(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Nt/180);var d;pc(i)?h=Qt.innerTextLayout(r.rotation,v??r.rotation,o):(h=Ox(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Dr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ce({x:f[0],y:f[1],rotation:h.rotation,silent:Qt.isLabelSilent(t),style:zt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ka({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Qt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,X(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function Ox(r,t,e,n){var a=rv(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ma(a-Nt/2)?(o=l?"bottom":"top",i="center"):Ma(a-Nt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aNt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Nx(r,t,e){if(!xd(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];n===!1?(Fe(i),Fe(u)):dc(i,o)&&(n?(Fe(o),Fe(c)):(Fe(i),Fe(u))),a===!1?(Fe(s),Fe(f)):dc(l,s)&&(a?(Fe(l),Fe(h)):(Fe(s),Fe(f)))}}function Fe(r){r&&(r.ignore=!0)}function dc(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Yf([]);return Jf(a,a,-r.rotation),e.applyTransform(mo([],a,r.getLocalTransform())),n.applyTransform(mo([],a,t.getLocalTransform())),e.intersect(n)}}function pc(r){return r==="middle"||r==="center"}function Vd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function Yx(r){var t=il(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=qo(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=il(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=qt(t).pointerEl=new Ms[i.type](yc(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qt(t).labelEl=new Ce(yc(e.label));t.add(i),Sc(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=qt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),Sc(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Za(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){pg(u.event)},onmousedown:Zi(this._onHandleDragMove,this,0,0),drift:Zi(this._onHandleDragMove,this),ondragend:Zi(this._onHandleDragEnd,this)}),n.add(a)),xc(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Dh(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){_c(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ki(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Ki(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Ki(a)),qt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Bo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function _c(r,t,e,n){Ud(qt(e).lastProp,n)||(qt(e).lastProp=n,t?me(e,n,r):(e.stopAnimation(),e.attr(n)))}function Ud(r,t){if(Y(r)&&Y(t)){var e=!0;return w(t,function(n,a){e=e&&Ud(r[a],n)}),!!e}else return r===t}function Sc(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Ki(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function xc(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const tb=eb;function rb(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function nb(r,t,e,n,a){var i=e.get("value"),o=Yd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),c=ps(o,u),f=a.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=a.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),ab(f,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function ab(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Yd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:rl(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),G(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function $d(r,t,e){var n=mg();return Jf(n,n,e.rotation),gg(n,n,e.position),As([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function ib(r,t,e,n,a,i){var o=zd.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),nb(t,n,a,i,{position:$d(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ob(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function sb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var lb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=bc(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=rb(i),v=ub[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=Ko(l.model,a);ib(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Ko(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=$d(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=bc(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(tb);function bc(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var ub={line:function(r,t,e){var n=ob([t,e[0]],[t,e[1]],wc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:sb([t-n/2,e[0]],[n,a],wc(r))}}};function wc(r){return r.dim==="x"?0:1}const cb=lb;var fb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ee);const vb=fb;var gt=ue(),hb=w;function Xd(r,t,e){if(!ce.node){var n=t.getZr();gt(n).records||(gt(n).records={}),db(n,t);var a=gt(n).records[r]||(gt(n).records[r]={});a.handler=e}}function db(r,t){if(gt(r).initialized)return;gt(r).initialized=!0,e("click",J(Cc,"click")),e("mousemove",J(Cc,"mousemove")),e("globalout",gb);function e(n,a){r.on(n,function(i){var o=mb(t);hb(gt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),pb(o.pendings,t)})}}function pb(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function gb(r,t,e){r.handler("leave",null,e)}function Cc(r,t,e,n){t.handler(r,e,n)}function mb(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Qo(r,t){if(!ce.node){var e=t.getZr(),n=(gt(e).records||{})[r];n&&(gt(e).records[r]=null)}}var yb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Xd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Qo("axisPointer",n)},t.prototype.dispose=function(e,n){Qo("axisPointer",n)},t.type="axisPointer",t}(Ye);const _b=yb;function Zd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Tc=ue();function Sb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||oe(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ca(a)&&(a=Zd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ca(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Ca(a),h={},v={},d={list:[],map:{}},p={showPointer:J(bb,v),showTooltip:J(wb,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=Ab(u,S);if(!f&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Dc(S,T,p,!1,h)}})});var g={};return w(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,Ac(S),Ac(m)))),g[m.key]=C}})}),w(g,function(m,y){Dc(c[y],m,p,!0,h)}),Cb(v,c,h),Tb(d,a,r,o),Db(c,o,e),h}}function Dc(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=xb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&B(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function xb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=f,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function bb(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function wb(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Pn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Cb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Tb(r,t,e,n){if(Ca(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Db(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=Tc(n)[a]||{},o=Tc(n)[a]={};w(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&w(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,c){!o[c]&&l.push(u)}),w(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Ab(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Ac(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ca(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Kd(r){Fd.registerAxisPointerClass("CartesianAxisPointer",cb),r.registerComponentModel(vb),r.registerComponentView(_b),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Fx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Sb)}function qT(r){St(Hd),St(Kd)}var Mc="\0_ec_interaction_mutex";function Mb(r,t,e){var n=qd(r);n[t]=e}function Ib(r,t,e){var n=qd(r),a=n[t];a===e&&(n[t]=null)}function qd(r){return r[Mc]||(r[Mc]={})}ct({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},yt);var Lb={axisPointer:1,tooltip:1,brush:1};function Pb(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!Lb.hasOwnProperty(n.mainType)&&a&&a.model!==e}function jd(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=pr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=pr(s,[0,o]),a=i=pr(s,[a,i]),n=0}t[0]=pr(t[0],e),t[1]=pr(t[1],e);var l=qi(t,n);t[n]+=r;var u=a||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=pr(t[n],c);var f;return f=qi(t,n),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function qi(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function pr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,Rn=Math.min,kr=Math.max,Rb=Math.pow,kb=1e4,Eb=6,Ob=6,Ic="globalPan",Nb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Bb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Lc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Vb=0,zb=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new ge,n._uid="brushController_"+Vb++,w($b,function(a,i){this._handlers[i]=oe(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||Mb(n,Ic,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=K(Z(Lc),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Ib(e,Ic,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=Z(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return K(Z(Lc),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new In(a,e,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):Jd(o,Qd(o,d));ol(o,p)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Jo(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Bn);function Qd(r,t){var e=vi[t.brushType].createCover(r,t);return e.__brushOption=t,tp(e,t),r.group.add(e),e}function Jd(r,t){var e=sl(t);return e.endCreating&&(e.endCreating(r,t),tp(t,t.__brushOption)),t}function ep(r,t){var e=t.__brushOption;sl(t).updateCoverShape(r,t,e.range,e)}function tp(r,t){var e=t.z;e==null&&(e=kb),r.traverse(function(n){n.z=e,n.z2=e})}function ol(r,t){sl(t).updateCommon(r,t),ep(r,t)}function sl(r){return vi[r.__brushOption.brushType]}function ll(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function rp(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function Jo(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=Z(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Fb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=Rb(a*a+i*i,.5);return o>Eb}function np(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function ap(r,t,e,n){var a=new ge;return a.add(new he({name:"main",style:ul(e),silent:!0,draggable:!0,cursor:"move",drift:J(Pc,r,t,a,["n","s","w","e"]),ondragend:J(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new he({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:J(Pc,r,t,a,i),ondragend:J(ir,t,{isEnd:!0})}))}),a}function ip(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=kr(a,Ob),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,c=e[0][1],f=e[1][1],h=c-i+a/2,v=f-i+a/2,d=c-o,p=f-s,g=d+a,m=p+a;dt(r,t,"main",o,s,d,p),n.transformable&&(dt(r,t,"w",l,u,i,m),dt(r,t,"e",h,u,i,m),dt(r,t,"n",l,u,g,i),dt(r,t,"s",l,v,g,i),dt(r,t,"nw",l,u,i,i),dt(r,t,"ne",h,u,i,i),dt(r,t,"sw",l,v,i,i),dt(r,t,"se",h,v,i,i))}function es(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(ul(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?ts(r,i[0]):Wb(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Bb[s]+"-resize":null})})}function dt(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(Ub(cl(r,t,[[n,a],[n+i,a+o]])))}function ul(r){return re({strokeNoScale:!0},r.brushStyle)}function op(r,t,e,n){var a=[Rn(r,e),Rn(t,n)],i=[kr(r,e),kr(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Gb(r){return Ds(r.group)}function ts(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Mv(e[t],Gb(r));return n[a]}function Wb(r,t){var e=[ts(r,t[0]),ts(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Pc(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=sp(t,a,i);w(n,function(u){var c=Nb[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(op(s[0][0],s[1][0],s[0][1],s[1][1])),ol(t,e),ir(t,{isEnd:!1})}function Hb(r,t,e,n){var a=t.__brushOption.range,i=sp(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),ol(r,t),ir(r,{isEnd:!1})}function sp(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function cl(r,t,e){var n=rp(r,t);return n&&n!==ar?n.clipPath(e,r._transform):Z(e)}function Ub(r){var t=Rn(r[0][0],r[1][0]),e=Rn(r[0][1],r[1][1]),n=kr(r[0][0],r[1][0]),a=kr(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Yb(r,t,e){if(!(!r._brushType||Xb(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=ll(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var vi={lineX:Ec(0),lineY:Ec(1),rect:{createCover:function(r,t){function e(n){return n}return ap({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=np(r);return op(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){ip(r,t,e,n)},updateCommon:es,contain:ns},polygon:{createCover:function(r,t){var e=new ge;return e.add(new On({name:"main",style:ul(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new hs({name:"main",draggable:!0,drift:J(Hb,r,t),ondragend:J(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:cl(r,t,e)})},updateCommon:es,contain:ns}};function Ec(r){return{createCover:function(t,e){return ap({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=np(t),n=Rn(e[0][r],e[1][r]),a=kr(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=rp(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),ip(t,e,l,a)},updateCommon:es,contain:ns}}const Zb=zb;function Kb(r){return r=fl(r),function(t){return Lv(t,r)}}function qb(r,t){return r=fl(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function jb(r,t,e){var n=fl(r);return function(a,i){return n.contain(i[0],i[1])&&!Pb(a,t,e)}}function fl(r){return Ne.create(r)}var Oc=["x","y","radius","angle","single"],Qb=["cartesian2d","polar","singleAxis"];function Jb(r){var t=r.get("coordinateSystem");return se(Qb,t)>=0}function _r(r){return r+"Axis"}function ew(r,t){var e=U(),n=[],a=U();r.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(e.get(f)||e.set(f,[]))[h]=!0})}return n}var ji=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),tw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Nc(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Nc(e);K(this.option,e,!0),K(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=U(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Oc,function(a){var i=this.getReferringComponents(_r(a),Qg);if(i.specified){n=!0;var o=new ji;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new ji;if(h.add(f.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Re).models[0];v&&w(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&w(Oc,function(u){if(i){var c=a.findComponents({mainType:_r(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new ji;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(_r(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(_r(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else yr(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});yr(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;yr(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ot(n[0]+o,n,[0,100],!0):i!=null&&(o=Ot(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=tv(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function cw(r,t,e){var n=[1/0,-1/0];yr(e,function(o){XS(n,o.getData(),t)});var a=r.getAxisModel(),i=_d(a.axis.scale,a,n).calculate();return[i.min,i.max]}var fw={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(_r(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new uw(a,i,s,r),e.push(o.__dzAxisProxy))});var n=U();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const vw=fw;function hw(r){r.registerAction("dataZoom",function(t,e){var n=ew(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Vc=!1;function dw(r){Vc||(Vc=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,vw),hw(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function pw(r){r.registerComponentModel(aw),r.registerComponentView(lw),dw(r)}var Qe=function(){function r(){}return r}(),up={};function tn(r,t){up[r]=t}function cp(r){return up[r]}var gw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=cp(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),K(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ee);const mw=gw;function yw(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ft(n,i,a);Cr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),py(r,n,i,a)}function fp(r,t){var e=ri(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new he({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var _w=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];w(u,function(d,p){f.push(p)}),new In(this._featureNames||[],f).add(h).update(h).remove(J(h,null)).execute(),this._featureNames=f;function h(d,p){var g=f[d],m=f[p],y=u[g],_=new fe(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(Sw(g))S={onclick:_.option.onclick,featureName:g};else{var b=cp(g);if(!b)return;S=new b}c[g]=S}else if(S=c[m],!S)return;S.uid=Gn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!g&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(C,T){var D=this.option,A=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,A[C]&&(T==="emphasis"?Ar:Mr)(A[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;G(_)?(b={},b[g]=_):b=_,G(S)?(x={},x[g]=S):x=S;var C=d.iconPaths={};w(b,function(T,D){var A=Za(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var M=A.ensureState("emphasis");M.style=y.getItemStyle();var I=new Ce({style:{text:x[D],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:kv({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(I),Ka({el:A,componentModel:e,itemName:D,formatterParamsExtra:{title:x[D]}}),A.__title=x[D],A.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",D])==="emphasis"?Ar:Mr)(A),o.add(A),A.on("click",oe(p.onclick,p,n,a,D)),C[D]=A})}yw(o,e,a),o.add(fp(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!$(_)&&p){var S=_.style||(_.style={}),b=ps(p,Ce.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(m.position="top",T=!0);var D=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(m.position=["100%",D],S.align="right"):x-b.width/2<0&&(m.position=[0,D],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ye);function Sw(r){return r.indexOf("my")===0}const xw=_w;var bw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ce.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+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||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qe);const ww=bw;var zc="__ec_magicType_stack__",Cw=[["line","bar"],["stack"]],Tw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Fc[a]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=Fc[a](h,v,f,i);d&&(re(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=f.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(Cw,function(f){se(f,a)>=0&&w(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=K({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Fc={line:function(r,t,e,n){if(r==="bar")return K({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return K({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===zc;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),K({id:t,stack:a?"":zc},n.get(["option","stack"])||{},!0)}};ct({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const Dw=Tw;var hi=new Array(60).join("-"),Er=" ";function Aw(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Mw(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Er)],c=0;c=0)return!0}var as=new RegExp("["+Er+"]+","g");function Rw(r){for(var t=r.split(/\n+/g),e=Fa(t.shift()).split(as),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function zw(r){var t=vl(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return vp(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Fw(r){hp(r).snapshots=null}function Gw(r){return vl(r).length}function vl(r){var t=hp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Ww=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Fw(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Qe);ct({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const Hw=Ww;var Uw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Yw=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Gc(e,t);w($w,function(o,s){(!n||!n.include||se(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Qi[n.brushType](0,i,a);n.__rangeOffset={offset:Yc[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=Qi[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Qi[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Yc[n.brushType](i.values,o.offset,Xw(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Kb(a),isTargetByCursor:jb(a,t,n.coordSysModel),getLinearBrushOtherExtent:qb(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&se(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Gc(e,t),i=0;ir[1]&&r.reverse(),r}function Gc(r,t){return fn(r,t,{includeMainTypes:Uw})}var $w={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=U(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];w(u.getCartesians(),function(f,h){(se(e,f.getAxis("x").model)>=0||se(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Hc.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Hc.geo})})}},Wc=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Hc={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ds(r)),t}},Qi={lineX:J(Uc,0),lineY:J(Uc,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[is([a[0],i[0]]),is([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Uc(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=is(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Yc={lineX:J($c,0),lineY:J($c,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function $c(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Xw(r,t){var e=Xc(r),n=Xc(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Xc(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const dp=Yw;var os=w,Zw=Zg("toolbox-dataZoom_"),Kw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new Zb(a.getZr()),this._brushController.on("brush",oe(this._onBrush,this)).mount()),Qw(e,n,this,i,a),jw(e,n)},t.prototype.onclick=function(e,n,a){qw[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new dp(hl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),Vw(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=jd(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];os(e,function(a,i){n.push(Z(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qe),qw={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(zw(this.ecModel))}};function hl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function jw(r,t){r.setIconStatus("back",Gw(t)>1?"emphasis":"normal")}function Qw(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new dp(hl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}wy("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=hl(n),o=fn(r,i);os(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),os(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Zw+u+f};h[c]=f,a.push(h)}return a});const Jw=Kw;function jT(r){r.registerComponentModel(mw),r.registerComponentView(xw),tn("saveAsImage",ww),tn("magicType",Dw),tn("dataView",Bw),tn("dataZoom",Jw),tn("restore",Hw),St(pw)}var e1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ee);const t1=e1;function pp(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function gp(r){if(ce.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function l1(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=ce.transformSupported?","+dl+n:",left"+n+",top"+n),a1+":"+a}function Zc(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ce.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ce.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+dl+":"+o+";":[["top",0],["left",0],[mp,o]]}function u1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function c1(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=Ch(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(l1(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Xv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(u1(c)),f!=null&&n.push("padding:"+ri(f).join("px ")+"px"),n.join(";")+";"}function Kc(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&_g(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var f1=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(G(i)?document.querySelector(i):xo(i)?i:$(i)&&i(t.getDom()));Kc(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();yg(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=n1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=i1+c1(t,!this._firstShow,this._longHide)+Zc(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(i)&&n.get("trigger")==="item"&&!pp(n)&&(s=s1(n,a,i)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||ce.node||!a.getDom())){var o=Qc(i,a);this._ticket="";var s=i.dataByCoordSys,l=_1(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=d1;c.x=i.x,c.y=i.y,c.update(),X(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=Zd(i,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Qc(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=rn([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=X(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ln(a,function(c){if(X(c).dataIndex!=null)return l=c,!0;if(X(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=oe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=rn([n.tooltipOption],i),l=this._renderMode,u=[],c=An("section",{blocks:[],noHeader:!0}),f=[],h=new Ii;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Yd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=An("section",{header:x,noHeader:!Nn(x),sortBlocks:!0,blocks:[]});c.blocks.push(C),w(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=rl(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",nr(M.color),l);var I=yu(D.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=rn([D],i).get("valueFormatter");C.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=Cu(c,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?` + +`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=X(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=rn([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Ii;m.marker=y.makeTooltipMarker("item",nr(m.color),v);var _=yu(u.formatTooltip(c,!1,f)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?Cu(b?B({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=X(n),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,h=rn(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new Ii;this._showOrMove(h,function(){var g=Z(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(G(h)){var g=e.ecModel.get("useUTC"),m=N(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=ja(m.axisValue,v,g)),v=Zv(v,a,!0)}else if($(h)){var _=oe(function(S,b){S===this._ticket&&(f.setContent(b,c,e,p,l),this._updatePosition(e,l,o,s,f,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||N(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!N(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),N(n))a=te(n[0],u),i=te(n[1],c);else if(Y(n)){var p=n;p.width=f[0],p.height=f[1];var g=Ft(p,{width:u,height:c});a=g.x,i=g.y,h=null,v=null}else if(G(n)&&l){var m=y1(n,d,f,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=g1(a,i,o,u,c,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=Jc(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=Jc(v)?f[1]/2:v==="bottom"?f[1]:0),pp(e)){var m=m1(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&w(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ce.node||!n.getDom()||(Bo(this,"_updatePosition"),this._tooltipContent.dispose(),Qo("itemTooltip",n))},t.type="tooltip",t}(Ye);function rn(r,t,e){var n=t.ecModel,a;e?(a=new fe(e,n,n),a=new fe(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof fe&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(a=new fe(o,a,n)))}return a}function Qc(r,t){return r.dispatchAction||oe(t.dispatchAction,t)}function g1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function m1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function y1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function Jc(r){return r==="center"||r==="middle"}function _1(r,t,e){var n=ys(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=zn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=X(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const S1=p1;function QT(r){St(Kd),r.registerComponentModel(t1),r.registerComponentView(S1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},yt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},yt)}var x1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ee),b1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ie(e.get("textBaseline"),e.get("textVerticalAlign")),c=new Ce({style:zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=e.get("subtext"),v=new Ce({style:zt(s,{text:h,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!d&&!g,v.silent=!p&&!g,d&&c.on("click",function(){Jl(d,"_"+e.get("target"))}),p&&v.on("click",function(){Jl(p,"_"+e.get("subtarget"))}),X(c).eventData=X(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ft(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new he({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ye);function JT(r){r.registerComponentModel(x1),r.registerComponentView(b1)}function di(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Pr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var pl=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Gt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=w1,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ar(this.childAt(0))},t.prototype.downplay=function(){Mr(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):me(h,v,s,n),Xa(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,De(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Br(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Xs(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Or){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Nr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(R){return M?e.getName(R):di(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ir(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=X(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&bn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();bn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return m_(e.getItemVisual(n,"symbolSize"))},t}(ge);function w1(r,t){this.parent.drift(r,t)}function Ji(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function ef(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function tf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Br(t),cursorStyle:t.get("cursor")}}var Sp=function(){function r(t){this.group=new ge,this._SymbolCtor=t||pl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ef(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=tf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var h=c(f);if(Ji(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!Ji(t,d,f,e)){n.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):me(v,m,a)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=tf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=ef(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ee);const ss=T1;var gr=J,ls=w,fa=ge,D1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new fa),this.group.add(this._selectorGroup=new fa),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var c=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Ft(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=Ft(re({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fp(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),c=U(),f=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ls(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new fa;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,v,n,e,_,b,S,f,i);x.on("click",gr(rf,p,null,i,h)).on("mouseover",gr(us,m.name,null,i,h)).on("mouseout",gr(cs,m.name,null,i,h)),a.ssr&&x.eachChild(function(C){var T=X(C);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),c.set(p,!0)}else a.eachRawSeries(function(C){if(!c.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),A=T.getItemVisual(D,"style"),M=T.getItemVisual(D,"legendIcon"),I=Sg(A.fill);I&&I[3]===0&&(I[3]=.2,A=B(B({},A),{fill:xg(I,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},A,M,f,i);L.on("click",gr(rf,null,p,i,h)).on("mouseover",gr(us,null,p,i,h)).on("mouseout",gr(cs,null,p,i,h)),a.ssr&&L.eachChild(function(P){var R=X(P);R.seriesIndex=C.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();ls(e,function(u){var c=u.type,f=new Ce({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Nr(f,{normal:h,emphasis:v},{defaultText:u.title}),To(f)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=A1(c,i,l,u,v,g,h),b=new fa,x=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(M1({itemWidth:d,itemHeight:p,icon:c,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),M=n;G(A)&&A?M=A.replace("{name}",n??""):$(A)&&(M=A(n));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Ce({style:zt(x,{text:M,x:T,y:p/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var L=new he({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Ka({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!f,this.getContentGroup().add(b),To(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Cr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+h[g],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ye);function A1(r,t,e,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),ls(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Fo(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function M1(r){var t=r.icon||"roundRect",e=Gt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function rf(r,t,e,n){cs(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),us(r,t,e,n)}function xp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=ie(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new he({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&me(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=eo[o],l=to[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(c[g]),(!_&&y.e>m.s+i||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(c[g]),(!_||!b(y,_.s))&&m.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(bp);const E1=k1;function O1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function N1(r){St(wp),r.registerComponentModel(R1),r.registerComponentView(E1),O1(r)}function eD(r){St(wp),St(N1)}var B1={label:{enabled:!0},decal:{show:!1}},of=ue(),V1={};function z1(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Z(B1);K(n.label,r.getLocaleModel().get("aria"),!1),K(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=U();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),of(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if($(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=tu(h.ecModel,h.name,V1,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},g=of(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=tu(h.ecModel,C,g,m),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var C=b?B(B({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=re(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?c.get(["series","multiple",I]):c.get(["series","single",I]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),W=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},G1=function(){function r(t){var e=this._condVal=G(t)?new RegExp(t):bg(t)?t:null;if(e==null){var n="";Q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):le(e)?this._condVal.test(t+""):!1},r}(),W1=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),H1=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(lt);const rC=tC;function Tp(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=nC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Rr(t,f[0])&&(h=!0,f[0]=v),Rr(t,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function nC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:le(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function Dp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function aC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function iC(r,t,e,n,a,i,o,s){for(var l=aC(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=Tp(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var _=m-u,S=y-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===m&&C===y&&g=n||Jt(x,C))v=m,d=y;else{A=x-u,M=C-c;var P=m-u,R=x-m,O=y-c,W=C-y,k=void 0,E=void 0;if(s==="x"){k=Math.abs(P),E=Math.abs(R);var z=A>0?1:-1;v=m-z*k*o,d=y,I=m+z*E*o,L=y}else if(s==="y"){k=Math.abs(O),E=Math.abs(W);var H=M>0?1:-1;v=m,d=y-H*k*o,I=m,L=y+H*E*o}else k=Math.sqrt(P*P+O*O),E=Math.sqrt(R*R+W*W),D=E/(E+k),v=m-A*o*(1-D),d=y-M*o*(1-D),I=m+A*o*D,L=y+M*o*D,I=Lt(I,Pt(x,m)),L=Lt(L,Pt(C,y)),I=Pt(I,Lt(x,m)),L=Pt(L,Lt(C,y)),A=I-m,M=L-y,v=m-A*k/E,d=y-M*k/E,v=Lt(v,Pt(u,m)),d=Lt(d,Pt(c,y)),v=Pt(v,Lt(u,m)),d=Pt(d,Lt(c,y)),A=m-v,M=y-d,I=m+A*E/k,L=y+M*E/k}r.bezierCurveTo(f,h,v,d,m,y),f=I,h=L}else r.lineTo(m,y)}u=m,c=y,p+=i}return g}var Ap=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),oC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ap},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var b=u?Dl(s,v,p,m,e,c):Dl(l,d,g,y,e,c);if(b>0)for(var x=0;x=0){var S=u?Al(l,d,g,y,C):Al(s,v,p,m,C);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(Se),sC=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ap),lC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new sC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function fC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=cC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new qf(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function vC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&hC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function hC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function dC(r,t){return isNaN(r)||isNaN(t)}function pC(r){for(var t=r.length/2;t>0&&dC(r[t*2-2],r[t*2-1]);t--);return t-1}function hf(r,t){return[r[t*2],r[t*2+1]]}function gC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Lp(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}X(p).seriesIndex=e.seriesIndex,Ir(p,W,k,E);var H=vf(e.get("smooth")),q=e.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:q,connectNulls:T}),g){var j=l.getCalculationInfo("stackedOnSeries"),ne=0;g.useStyle(re(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(ne=vf(j.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:ne,smoothMonotone:q,connectNulls:T}),xn(g,e,"areaStyle"),X(g).seriesIndex=e.seriesIndex,Ir(g,W,k,E)}var xe=function(ye){i._changePolyState(ye)};l.eachItemGraphicEl(function(ye){ye&&(ye.onHoverStateChange=xe)}),this._polyline.onHoverStateChange=xe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){X(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new pl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Oe.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Oe.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Ol(this._polyline,e),n&&Ol(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new oC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new lC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");$(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var T=$(f)?f(d):c*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Lp(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ce({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=pC(l);c>=0&&(Nr(s,Br(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?_p(o,v):di(o,f)},enableTextSetter:!0},mC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=gC(f,S,C),D=T.range,A=D[1]-D[0],M=void 0;if(A>=1){if(A>1&&!v){var I=hf(f,D[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=h.getRawValue(D[0]))}else{var I=c.getPointOn(S,C);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(M=fv(a,d,L,P,T.t))}i.lastFrameIndex=D[0]}else{var R=e===1||i.lastFrameIndex>0?D[0]:0,I=hf(f,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var O=Vr(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=iC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Rt(h.current,a,o,l),d=Rt(h.stackedOnCurrent,a,o,l),p=Rt(h.next,a,o,l),g=Rt(h.stackedOnNext,a,o,l)),ff(v,p)>3e3||c&&ff(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),me(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),me(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},xC=function(r){return Math.round(r.length/2)};function Pp(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;G(i)?d=SC[i]:$(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,xC))}}}}}function aD(r){r.registerChartView(_C),r.registerSeriesModel(rC),r.registerLayout(_l("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Pp("line"))}var kn=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return li(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bg){_=(x+y)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(lt);lt.registerClass(kn);var bC=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return li(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Is(kn.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}),t}(kn);const wC=bC;var CC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),df=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new CC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){La(i,e,X(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Oe),pf={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=no(t.x,r.x),s=ao(t.x+t.width,a),l=no(t.y,r.y),u=ao(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=ao(t.r,r.r),i=no(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},gf={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new he({shape:B({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?df:or,c=new u({shape:n,z2:1});c.name="item";var f=Rp(a);if(c.calculateTextPosition=TC(f,{isRoundCap:u===df}),i){var h=c.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?me:De)(c,{shape:d},i)}return c}};function IC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function mf(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?me:De)(e,{shape:l},t,a,null);var c=t?r.baseAxis.model:null;(o?me:De)(e,{shape:u},c,a)}function yf(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function RC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Rp(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Sf(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=un(n.getModel("itemStyle"),c,!0);B(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Br(n);Nr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:di(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,DC(r,g==="outside"?v:g,Rp(o),n.get(["label","rotate"]))}$m(p,d,i.getRawValue(e),function(y){return _p(t,y)});var m=n.getModel(["emphasis"]);Ir(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),xn(r,n),RC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function kC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var EC=function(){function r(){}return r}(),xf=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new EC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function OC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function kp(r,t,e){if(gl(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function NC(r,t,e){var n=r.type==="polar"?or:he;return new n({shape:kp(t,e,r),silent:!0,z2:0})}const BC=MC;function iD(r){r.registerChartView(BC),r.registerSeriesModel(wC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(hd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,dd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Pp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Cf=Math.PI*2,pa=Math.PI/180;function Ep(r,t){return Ft(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Op(r,t){var e=Ep(r,t),n=r.get("center"),a=r.get("radius");N(a)||(a=[0,a]);var i=te(e.width,t.getWidth()),o=te(e.height,t.getHeight()),s=Math.min(i,o),l=te(a[0],s/2),u=te(a[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else N(n)||(n=[n,n]),c=te(n[0],i)+e.x,f=te(n[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function VC(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Ep(n,e),s=Op(n,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*pa,v=n.get("endAngle"),d=n.get("padAngle")*pa;v=v==="auto"?h-Cf:-v*pa;var p=n.get("minAngle")*pa,g=p+d,m=0;a.each(i,function(O){!isNaN(O)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;Cg(D,!S),h=D[0],v=D[1];var M=Math.abs(v-h),I=M,L=0,P=h;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(O,W){var k;if(isNaN(O)){a.setItemLayout(W,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?k=y===0&&x?_:O*_:k=M/m,kk?(z=P+T*k/2,H=z):(z=P+A,H=E-A),a.setItemLayout(W,{angle:k,startAngle:z,endAngle:H,clockwise:S,cx:l,cy:u,r0:f,r:b?Ot(O,C,[f,c]):c}),P=E}),Ie?m:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function io(r){return r.position==="center"}function WC(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*FC,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),M=t.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),O=te(I.get("edgeDistance"),u),W=I.get("bleedMargin"),k=M.getModel("labelLine"),E=k.get("length");E=te(E,u);var z=k.get("length2");if(z=te(z,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":q>0?"left":"right"}var Tt=Math.PI,vt=0,Wr=I.get("rotate");if(le(Wr))vt=Wr*(Tt/180);else if(L==="center")vt=0;else if(Wr==="radial"||Wr===!0){var Zp=q<0?-H+Tt:-H;vt=Zp}else if(Wr==="tangential"&&L!=="outside"&&L!=="outer"){var lr=Math.atan2(q,j);lr<0&&(lr=Tt*2+lr);var Kp=j>0;Kp&&(lr=Tt+lr),vt=lr-Tt}if(i=!!vt,D.x=ne,D.y=xe,D.rotation=vt,D.setStyle({verticalAlign:"middle"}),Ct){D.setStyle({align:wt});var pi=D.states.select;pi&&(pi.x+=D.x,pi.y+=D.y)}else{var Hr=D.getBoundingRect().clone();Hr.applyTransform(D.getComputedTransform());var xl=(D.style.margin||0)+2.1;Hr.y-=xl/2,Hr.height+=xl,e.push({label:D,labelLine:A,position:L,len:E,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new we(q,j),linePoints:ye,textAlign:wt,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:W,rect:Hr,unconstrainedWidth:Hr.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&GC(e,n,a,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Oe);const YC=UC;function Bp(r,t,e){t=N(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=id(n,t).dimensions,i=new ad(a,r);return i.initData(n,e),i}var $C=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const XC=$C;var ZC=ue(),KC=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new XC(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Bp(this,{coordDimensions:["value"],encodeDefaulter:J(xy,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=ZC(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Ng(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){bo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t}(lt);const qC=KC;function jC(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(le(o)&&!isNaN(o)&&o<0)})}}}function oD(r){r.registerChartView(YC),r.registerSeriesModel(qC),s_("pie",r.registerAction),r.registerLayout(J(VC,"pie")),r.registerProcessor(zC("pie")),r.registerProcessor(jC("pie"))}var QC=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return li(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t}(lt);const JC=QC;var Vp=4,eT=function(){function r(){}return r}(),tT=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new eT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(e>=f&&n>=h&&e<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),nT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=_l("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new rT:new Sp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Oe);const aT=nT;function sD(r){St(Hd),r.registerSeriesModel(JC),r.registerChartView(aT),r.registerLayout(_l("scatter"))}var iT=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[a,i],d=v[c].get("type"),p=v[1-c].get("type"),g=t.data;if(g&&l){var m=[];w(g,function(S,b){var x;N(S)?(x=S.slice(),S.unshift(b)):N(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:Uo(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Uo(p),dimsDef:y.slice()}];return Bp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:J(Jv,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),oT=["color","borderColor"],sT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Fn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Df(u,f))return;var h=oo(f,c,!0);De(h,{shape:{points:f.ends}},e,c),so(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var v=n.getItemLayout(c);if(s&&Df(u,v)){i.remove(h);return}h?(me(h,{shape:{points:v.ends}},e,c),Xa(h)):h=oo(v),so(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Af(e,this.group);var n=e.get("clip",!0)?yl(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=oo(s);so(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Af(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Oe),lT=function(){function r(){}return r}(),uT=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new lT},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Se);function oo(r,t,e){var n=r.ends;return new uT({shape:{points:e?cT(n,r):n},z2:100})}function Df(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(oT);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const vT=sT;var zp=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.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},t}(lt);xt(zp,iT,!0);const hT=zp;function dT(r){!r||!N(r.series)||w(r.series,function(t){Y(t)&&t.type==="k"&&(t.type="candlestick")})}var pT=["itemStyle","borderColor"],gT=["itemStyle","borderColor0"],mT=["itemStyle","borderColorDoji"],yT=["itemStyle","color"],_T=["itemStyle","color0"],ST={seriesType:"candlestick",plan:Wn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?yT:_T)}function n(i,o){return o.get(i===0?mT:i>0?pT:gT)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");B(f,c)}}}}}};const xT=ST;var bT={seriesType:"candlestick",plan:Wn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=wT(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],f=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),S=y.get(u,m),b=y.get(c,m),x=y.get(f,m),C=y.get(h,m),T=Math.min(S,b),D=Math.max(S,b),A=W(T,_),M=W(D,_),I=W(x,_),L=W(C,_),P=[];k(P,M,0),k(P,A,1),P.push(z(L),z(M),z(I),z(A));var R=g.getItemModel(m),O=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:Mf(y,m,S,b,c,O),initBaseline:S>b?M[i]:A[i],ends:P,brushRect:E(x,C,_)})}function W(H,q){var j=[];return j[a]=q,j[i]=H,isNaN(q)||isNaN(H)?[NaN,NaN]:t.dataToPoint(j)}function k(H,q,j){var ne=q.slice(),xe=q.slice();ne[a]=ya(ne[a]+n/2,1,!1),xe[a]=ya(xe[a]-n/2,1,!0),j?H.push(ne,xe):H.push(xe,ne)}function E(H,q,j){var ne=W(H,j),xe=W(q,j);return ne[a]-=n/2,xe[a]-=n/2,{x:ne[0],y:ne[1],width:n,height:xe[1]-ne[1]}}function z(H){return H[a]=ya(H[a],1),H}}function d(p,g){for(var m=nt(p.count*4),y=0,_,S=[],b=[],x,C=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=C.get(s,x),A=C.get(u,x),M=C.get(c,x),I=C.get(f,x),L=C.get(h,x);if(isNaN(D)||isNaN(I)||isNaN(L)){m[y++]=NaN,y+=3;continue}m[y++]=Mf(C,x,A,M,c,T),S[a]=D,S[i]=I,_=t.dataToPoint(S,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function Mf(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function wT(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=te(ie(r.get("barMaxWidth"),a),a),o=te(ie(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?te(s,a):Math.max(Math.min(a/2,i),o)}const CT=bT;function lD(r){r.registerChartView(vT),r.registerSeriesModel(hT),r.registerPreprocessor(dT),r.registerVisual(xT),r.registerLayout(CT)}var TT=["itemStyle","borderWidth"],If=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],co=new Ga,DT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:If[+c],categoryDim:If[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Pf(o,d),g=Lf(o,d,p,h),m=Rf(o,h,g);o.setItemGraphicEl(d,m),i.add(m),Ef(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=Pf(o,d),y=Lf(o,d,m,h),_=Yp(o,y);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?kT(g,h,y):g=Rf(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),Ef(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&kf(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?yl(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){kf(i,X(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Oe);function Lf(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};AT(e,i,a,n,h),MT(r,t,a,i,o,h.boundingLength,h.pxSign,c,n,h),IT(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Xs(e.get("symbolOffset"),v);return LT(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function AT(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(N(o)){var f=[fo(s,o[0])-l,fo(s,o[1])-l];f[1]0?1:-1}function fo(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function MT(r,t,e,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(e[f.wh]),v=r.getItemVisual(t,"symbolSize"),d;N(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=te(d[f.index],h),d[c.index]=te(d[c.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function IT(r,t,e,n,a){var i=r.get(TT)||0;i&&(co.attr({scaleX:t[0],scaleY:t[1],rotation:e}),co.updateTransform(),i/=co.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function LT(r,t,e,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Dr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=te(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=av(n),T=C?n:Of((m+x)/b),D=m-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Of((Math.abs(u)+x)/b):0),g=T*b-x,f.repeatTimes=T,f.symbolMargin=S}var A=d*(g/2),M=f.pathPosition=[];M[h.index]=e[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=f.barRectShape=B({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(M[v.index]+A)),L[h.wh]=e[h.wh];var P=f.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Fp(r){var t=r.symbolPatternSize,e=Gt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Gp(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(Sl(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Wp(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Tr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Fp(e),a.add(i),Tr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Hp(r,t,e){var n=B({},t.barRectShape),a=r.__pictorialBarRect;a?Tr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new he({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Up(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)me(a,{shape:i},s,l);else{i[o.wh]=0,a=new he({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Ms[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Pf(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=PT,e.isAnimationEnabled=RT,e}function PT(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function RT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Rf(r,t,e,n){var a=new ge,i=new ge;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Gp(a,t,e):Wp(a,t,e),Hp(a,e,n),Up(a,t,e,n),a.__pictorialShapeStr=Yp(r,e),a.__pictorialSymbolMeta=e,a}function kT(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;me(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?Gp(r,t,e,!0):Wp(r,t,e,!0),Hp(r,e,!0),Up(r,t,e,!0)}function kf(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];Sl(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){bn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function Yp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Sl(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Tr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Ms[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Ef(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");Sl(r,function(p){if(p instanceof Or){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Nr(d,Br(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:di(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Ir(r,c,f,i.get("disabled"))}function Of(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const ET=DT;var OT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Is(kn.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"}}}),t}(kn);const NT=OT;function uD(r){r.registerChartView(ET),r.registerSeriesModel(NT),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(hd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,dd("pictorialBar"))}function Nf(r){return N(r[0])}function Bf(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var BT={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Nf(r)&&(u=r,c=t),Nf(t)&&(u=t,c=r);function f(m,y,_,S,b){var x=m.many,C=m.one;if(x.length===1&&!b){var T=y?x[0]:C,D=y?C:x[0];if(Dg(T))f({many:[T],one:D},!0,_,S,!0);else{var A=s?re({delay:s(_,S)},l):l;Ag(T,D,A),i(T,D,T,D,A)}}else for(var M=re({dividePath:BT[e],individualDelay:s&&function(W,k,E,z){return s(W+_,S)}},l),I=y?Mg(x,C,M):Ig(C,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;Ot.length,v=u?Bf(c,u):Bf(h?t:r,[h?r:t]),d=0,p=0;p$p))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Se&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function Wf(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Hf(r){return N(r)?r.sort().join(","):r}function Et(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function UT(r,t){var e=U(),n=U(),a=U();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Wf(i),c=Hf(u);n.set(c,{dataGroupId:s,data:l}),N(u)&&w(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Wf(i),u=Hf(l),c=n.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Et(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Et(s),data:s}]});else if(N(l)){var f=[];w(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Et(p.data),data:p.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Et(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Et(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Et(s)})}}}}),e}function Uf(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Et(t.oldData[s]),groupIdDim:o.dimension})}),w(de(r.to),function(o){var s=Uf(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Et(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Xp(a,i,n)}function cD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(de(n.seriesTransition),function(a){w(de(a.to),function(i){for(var o=n.updatedSeries,s=0;s0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function ee(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?Vg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ye(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),tv),r=(+r).toFixed(t),e?r:+r}function zg(r){return r.sort(function(t,e){return t-e}),r}function dt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Fg(r)}function Fg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function rv(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Gg(r,t){var e=Da(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Da(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return F(o,function(v){return v/n})}function Wg(r,t){var e=Math.max(dt(r),dt(t)),n=r+t;return e>tv?n:ye(n,e)}function nv(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-Il&&r=10&&t++,t}function av(r,t){var e=ys(r),n=Math.pow(10,e),a=r/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Vt(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function iv(r){return!isNaN(Vt(r))}function ov(){return Math.round(Math.random()*9)}function sv(r,t){return t===0?r:sv(t,r%t)}function Ll(r,t){return r==null?t:t==null?r:r*t/sv(r,t)}function Q(r){throw new Error(r)}function Pl(r,t,e){return(t-r)*e+r}var lv="series\0",uv="\0_ec_\0";function he(r){return r instanceof Array?r:r==null?[]:[r]}function Co(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&se(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var dm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],pm=bn(dm),gm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return pm(this,t,e)},r}(),X=ue(),mm=function(r,t,e,n){if(n){var a=X(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=X(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},kl=1,El={},pv=ue(),bs=ue(),ws=0,Ya=1,$a=2,Ue=["emphasis","blur","select"],La=["normal","emphasis","blur","select"],ym=10,_m=9,jt="highlight",ma="downplay",dn="select",ya="unselect",pn="toggleSelect";function cr(r){return r!=null&&r!=="none"}function Xa(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function gv(r){Xa(r,"emphasis",$a)}function mv(r){r.hoverState===$a&&Xa(r,"normal",ws)}function Cs(r){Xa(r,"blur",Ya)}function yv(r){r.hoverState===Ya&&Xa(r,"normal",ws)}function Sm(r){r.selected=!0}function xm(r){r.selected=!1}function Ol(r,t,e){t(r,e)}function xt(r,t,e){Ol(r,t,e),r.isGroup&&r.traverse(function(n){Ol(n,t,e)})}function Nl(r,t){switch(t){case"emphasis":r.hoverState=$a;break;case"normal":r.hoverState=ws;break;case"blur":r.hoverState=Ya;break;case"select":r.selected=!0}}function bm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof _e){var o=pv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(cr(s)||cr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=B({},n),u=B({},u),u.fill=s):!cr(u.fill)&&cr(s)?(i=!0,n=B({},n),u=B({},u),u.fill=wl(s)):!cr(u.stroke)&&cr(l)&&(i||(n=B({},n),u=B({},u)),u.stroke=wl(l)),n.style=u}}if(n&&n.z2==null){i||(n=B({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??ym)}return n}function Cm(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??_m)}return e}function Tm(r,t,e){var n=se(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:bm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?a:i.opacity*.1},o),e.style=o),e}function Si(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return wm(this,r,t,e);if(r==="blur")return Tm(this,r,e);if(r==="select")return Cm(this,r,e)}return e}function Dm(r){r.stateProxy=Si;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Si),e&&(e.stateProxy=Si)}function Bl(r,t){!bv(r,t)&&!r.__highByOuter&&xt(r,gv)}function Vl(r,t){!bv(r,t)&&!r.__highByOuter&&xt(r,mv)}function Mr(r,t){r.__highByOuter|=1<<(t||0),xt(r,gv)}function Ir(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xt(r,mv)}function Am(r){xt(r,Cs)}function _v(r){xt(r,yv)}function Sv(r){xt(r,Sm)}function xv(r){xt(r,xm)}function bv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function wv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=bs(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){yv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function To(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ao(r,t,e){Cv(r,!0),xt(r,Dm),Em(r,t,e)}function km(r){Cv(r,!1)}function Lr(r,t,e,n){n?km(r):Ao(r,t,e)}function Em(r,t,e){var n=X(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Fl=["emphasis","blur","select"],Om={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function ge(r,t,e,n,a,i){Ds("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){Ds("enter",r,t,e,n,a,i)}function xr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Hl(r){return!r.isGroup}function Ym(r){return r.shape!=null}function Lv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Hl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ym(o)&&(s.shape=B({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Hl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ge(o,l,e,X(o).dataIndex)}}})}function Pv(r,t){return F(r,function(e){var n=e[0];n=Ra(n,t.x),n=ka(n,t.x+t.width);var a=e[1];return a=Ra(a,t.y),a=ka(a,t.y+t.height),[n,a]})}function $m(r,t){var e=Ra(r.x,t.x),n=ka(r.x+r.width,t.x+t.width),a=Ra(r.y,t.y),i=ka(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function qa(r,t,e){var n=B({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),te(a,e),new Nr(n)):As(r.replace("path://",""),n,e,"center")}function Xm(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=xi(v,d,c,f)/h;return!(g<0||g>1)}function xi(r,t,e,n){return r*n-e*t}function Zm(r){return r<=1e-6&&r>=-1e-6}function ja(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=G(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ve(l),function(c){gt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=X(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:te({content:n,formatterParams:s},a)}}function Ul(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Gn(r,t){if(r)if(N(r))for(var e=0;e=0&&s.push(l)}),s}}function Ps(r,t){return K(K({},r,!0),t,!0)}const uy={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:". "}}}},cy={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 Ea="ZH",Rs="EN",br=Rs,Sa={},ks={},Bv=ce.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||br).toUpperCase();return r.indexOf(Ea)>-1?Ea:br}():br;function Vv(r,t){r=r.toUpperCase(),ks[r]=new Te(t),Sa[r]=t}function fy(r){if(G(r)){var t=Sa[r.toUpperCase()]||{};return r===Ea||r===Rs?Z(t):K(Z(t),Z(Sa[br]),!1)}else return K(Z(r),Z(Sa[br]),!1)}function vy(r){return ks[r]}function hy(){return ks[br]}Vv(Rs,uy);Vv(Ea,cy);var Es=1e3,Os=Es*60,gn=Os*60,He=gn*24,ql=He*365,ln={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}"},Kn="{yyyy}-{MM}-{dd}",jl={year:"{yyyy}",month:"{yyyy}-{MM}",day:Kn,hour:Kn+" "+ln.hour,minute:Kn+" "+ln.minute,second:Kn+" "+ln.second,millisecond:ln.none},Ci=["year","month","day","hour","minute","second","millisecond"],zv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function wr(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function dy(r){return r===wr(r)}function py(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ja(r,t,e,n){var a=yt(r),i=a[Ns(e)](),o=a[Cr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[ei(e)](),u=a["get"+(e?"UTC":"")+"Day"](),c=a[Dn(e)](),f=(c-1)%12+1,h=a[ti(e)](),v=a[ri(e)](),d=a[ni(e)](),p=n instanceof Te?n:vy(n||Bv)||hy(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Dt(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function gy(r,t,e,n,a){var i=null;if(G(e))i=e;else if($(e))i=e(r.value,t,{level:r.level});else{var o=B({},ln);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(N(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return Ja(new Date(r.value),i,a,n)}function Fv(r,t){var e=yt(r),n=e[Cr(t)]()+1,a=e[ei(t)](),i=e[Dn(t)](),o=e[ti(t)](),s=e[ri(t)](),l=e[ni(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ql(r,t,e){var n=le(r)?yt(r):r;switch(t=t||Fv(r,e),t){case"year":return n[Ns(e)]();case"half-year":return n[Cr(e)]()>=6?1:0;case"quarter":return Math.floor((n[Cr(e)]()+1)/4);case"month":return n[Cr(e)]();case"day":return n[ei(e)]();case"half-day":return n[Dn(e)]()/24;case"hour":return n[Dn(e)]();case"minute":return n[ti(e)]();case"second":return n[ri(e)]();case"millisecond":return n[ni(e)]()}}function Ns(r){return r?"getUTCFullYear":"getFullYear"}function Cr(r){return r?"getUTCMonth":"getMonth"}function ei(r){return r?"getUTCDate":"getDate"}function Dn(r){return r?"getUTCHours":"getHours"}function ti(r){return r?"getUTCMinutes":"getMinutes"}function ri(r){return r?"getUTCSeconds":"getSeconds"}function ni(r){return r?"getUTCMilliseconds":"getMilliseconds"}function my(r){return r?"setUTCFullYear":"setFullYear"}function Gv(r){return r?"setUTCMonth":"setMonth"}function Wv(r){return r?"setUTCDate":"setDate"}function Hv(r){return r?"setUTCHours":"setHours"}function Uv(r){return r?"setUTCMinutes":"setMinutes"}function Yv(r){return r?"setUTCSeconds":"setSeconds"}function $v(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Xv(r){if(!iv(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Zv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ai=fg;function Ro(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Bn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?yt(r):r;if(isNaN(+l)){if(s)return"-"}else return Ja(l,n,e)}if(t==="ordinal")return yo(r)?a(r):le(r)&&i(r)?r+"":"-";var u=Vt(r);return i(u)?Xv(u):yo(r)?a(r):typeof r=="boolean"?r+"":"-"}var Jl=["a","b","c","d","e","f","g"],Ti=function(r,t){return"{"+r+(t??"")+"}"};function Kv(r,t,e){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",G(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function eu(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var xa=w,_y=["left","right","top","bottom","width","height"],qn=[["width","left","right"],["height","top","bottom"]];function Bs(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Tr=Bs;J(Bs,"vertical");J(Bs,"horizontal");function Ft(r,t,e){e=ai(e||0);var n=t.width,a=t.height,i=ee(r.left,n),o=ee(r.top,a),s=ee(r.right,n),l=ee(r.bottom,a),u=ee(r.width,n),c=ee(r.height,a),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-e[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var d=new Ne(i+e[3],o+e[0],u,c);return d.margin=e,d}function Sy(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Ft(te({width:u.width,height:u.height},t),e,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function An(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Pr(r,t,e){var n=e&&e.ignoreSize;!N(n)&&(n=[n,n]);var a=o(qn[0],0),i=o(qn[1],1);u(qn[0],r,a),u(qn[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(xa(c,function(_){d[_]=r[_]}),xa(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=K(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Fn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Te);dv(Fr,Te);Ua(Fr);sy(Fr);ly(Fr,wy);function wy(r){var t=[];return w(Fr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return rt(e).main}),r!=="dataset"&&se(t,"dataset")<=0&&t.unshift("dataset"),t}const oe=Fr;var qv="";typeof navigator<"u"&&(qv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const Cy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qv.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 jv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),$e="original",ke="arrayRows",Xe="objectRows",ut="keyedColumns",Bt="typedArray",Qv="unknown",ot="column",Gr="row",Ce={Must:1,Might:2,Not:3},Jv=ue();function Ty(r){Jv(r).datasetMap=U()}function eh(r,t,e){var n={},a=Vs(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Jv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),w(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function nh(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?e:Py(n,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Ry(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var jn,$r,nu,au="\0_ec_inner",ky=1,ah=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Te(i),this._locale=new Te(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=su(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,su(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?nu(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;Ty(this),w(e,function(f,h){f!=null&&(oe.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?Z(f):K(a[h],f,!0))}),u&&u.each(function(f,h){oe.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),oe.topologicalTravel(s,oe.getAllClassMainTypes(),c,this);function c(f){var h=Iy(this,f,he(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=$g(v,h,d);em(p,f,oe),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",D=oe.getClass(f,S.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=B({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),B(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,y),f==="series"&&jn(this)}this._seriesIndices||jn(this)},t.prototype.getOption=function(){var e=Z(this.option);return w(e,function(n,a){if(oe.hasClass(a)){for(var i=he(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!xn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[au],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Uy(r,t){return r.join(",")===t.join(",")}const Yy=Fy;var Ze=w,Mn=Y,lu=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ai(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=lu.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=Wg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var oi=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||Qv,this.seriesLayoutBy=t.seriesLayoutBy||ot,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};pu=(t={},t[ke+"_"+ot]={pure:!0,appendData:i},t[ke+"_"+Gr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Xe]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[$e]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Rr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function _u(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function mn(r){return new u0(r)}var u0=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},f0=function(){function r(t,e){if(!le(e)){var n="";Q(n)}this._opFn=gh[t],this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){return le(t)?this._opFn(t,this._rvalFloat):this._opFn(Vt(t),this._rvalFloat)},r}(),mh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=le(t)?t:Vt(t),a=le(e)?e:Vt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=G(t),l=G(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),v0=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Vt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function h0(r,t){return r==="eq"||r==="ne"?new v0(r==="eq",t):gt(gh,r)?new f0(r,t):null}var d0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ba(t,e)},r}();function p0(r,t){var e=new d0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ot&&Q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";gt(l,m)&&Q(_),l[m]=y}});else for(var c=0;c65535?w0:C0}function vr(){return[1/0,-1/0]}function T0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function bu(r,t,e,n,a){var i=Sh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m=f&&y<=h||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m=f&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;mt[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new(Zr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}M>0&&Mc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return ba(e[i],this._dimensions[i])}Li={arrayRows:t,objectRows:function(e,n,a,i){return ba(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return ba(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}();const Oo=D0;var xh=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Qn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Be(s)?Bt:$e,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ae(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=ae(f.sourceHeader,h.sourceHeader),p=ae(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Eo(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Eo(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Cu(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&Cu(f),s.push(c),l.push(u._getVersionSign())}),n?o=x0(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[t0(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(a){var i=Th(a);i>=t&&(t=i+ +(n&&(!i||No(a)&&!a.noHeader)))}),t}return 0}function I0(r,t,e,n){var a=t.noHeader,i=P0(Th(t)),o=[],s=t.blocks||[];st(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var c=new mh(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,m=Ch(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);m!=null&&o.push(m)});var f=r.renderMode==="richText"?o.join(i.richText):Bo(o.join(""),a?e:i.html);if(a)return f;var h=Ro(t.header,"ordinal",r.useUTC),v=wh(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Dh(r,h,v)+i.richText+f:Bo('
'+We(h)+"
"+f,e)}function L0(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],F(S,function(b,x){return Ro(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),h=i?"":Ro(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=wh(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":Dh(r,h,y))+(o?"":E0(r,d,p,g,_)):Bo((s?"":f)+(i?"":R0(h,!s,y))+(o?"":k0(d,p,g,_)),e)}}function Tu(r,t,e,n,a,i){if(r){var o=Ch(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function P0(r){return{html:A0[r],richText:M0[r]}}function Bo(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function R0(r,t,e){var n=t?"margin-left:2px":"";return''+We(r)+""}function k0(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=N(r)?r:[r],''+F(r,function(o){return We(o)}).join("  ")+""}function Dh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function E0(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,i)}function O0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return nr(n)}function Ah(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Pi=function(){function r(){this.richTextStyles={},this._nextStyleNameId=ov()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=yy({color:e,type:t,renderMode:n,markerId:a});return G(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};N(e)?w(e,function(i){return B(n,i)}):B(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function N0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=N(s),u=O0(t,e),c,f,h,v;if(o>1||l&&!o){var d=B0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=c=Rr(a,e,i[0]),f=p.type}else v=c=l?s[0]:s;var g=_s(t),m=g&&t.name||"",y=a.getName(e),_=n?m:y;return In("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[In("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bn(_),value:c,valueType:f,dataIndex:e})].concat(h||[])})}function B0(r,t,e,n,a){var i=t.getData(),o=Da(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(f){c(Rr(i,e,f),f)}):w(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(In("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var At=ue();function Jn(r,t){return r.getName(t)||r.getId(t)}var wa="__universalTransitionEnabled",li=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=mn({count:z0,reset:F0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=At(this).sourceManager=new xh(this);i.prepareSource();var o=this.getInitialData(e,a);Au(o,this),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Du(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=An(this),i=a?ii(e):{},o=this.subType;oe.hasClass(o)&&(o+="Series"),K(e,n.getTheme().get(this.subType)),K(e,this.getDefaultOption()),Co(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Pr(e,i,a)},t.prototype.mergeOption=function(e,n){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var a=An(this);a&&Pr(this.option,e,a);var i=At(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Au(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,At(this).dataBeforeProcessed=o,Du(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Be(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=zs.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Jn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[wa])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(e,n)}},t.registerClass=function(e){return oe.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(oe);St(li,l0);St(li,zs);dv(li,oe);function Du(r){var t=r.name;_s(r)||(r.name=V0(r)||t)}function V0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function z0(r){return r.model.getRawData().count()}function F0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),G0}function G0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Au(r,t){w(vg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,J(W0,t))})}function W0(r,t){var e=Vo(r);return e&&e.setOutputEnd((t||this).count()),t}function Vo(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const lt=li;var Ys=function(){function r(){this.group=new pe,this.uid=Wn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();xs(Ys);Ua(Ys);const Ye=Ys;function Hn(){var r=ue();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mh=ue(),H0=Hn(),$s=function(){function r(){this.group=new pe,this.uid=Wn("viewChart"),this.renderTask=mn({plan:U0,reset:Y0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Iu(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Iu(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Gn(this.group,t)},r.markUpdateMethod=function(t,e){Mh(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Mu(r,t,e){r&&Mo(r)&&(t==="emphasis"?Mr:Ir)(r,e)}function Iu(r,t,e){var n=rr(r,t),a=t&&t.highlightKey!=null?Nm(t.highlightKey):null;n!=null?w(he(n),function(i){Mu(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Mu(i,e,a)})}xs($s);Ua($s);function U0(r){return H0(r.model)}function Y0(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&Mh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),$0[l]}var $0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Oe=$s;var Oa="\0__throttleOriginMethod",Lu="\0__throttleRate",Pu="\0__throttleType";function Xs(r,t,e){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Ih(r,t,e,n){var a=r[t];if(a){var i=a[Oa]||a,o=a[Pu],s=a[Lu];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Xs(i,e,n==="debounce"),a[Oa]=i,a[Pu]=n,a[Lu]=e}return a}}function zo(r,t){var e=r[t];e&&e[Oa]&&(e.clear&&e.clear(),r[t]=e[Oa])}var Ru=ue(),ku={itemStyle:bn(Nv,!0),lineStyle:bn(Ov,!0)},X0={lineStyle:"stroke",itemStyle:"fill"};function Lh(r,t){var e=r.visualStyleMapper||ku[t];return e||(console.warn("Unknown style type '"+t+"'."),ku.itemStyle)}function Ph(r,t){var e=r.visualDrawType||X0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Z0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Lh(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Ph(r,n),u=o[l],c=$(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=B({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},Kr=new Te,K0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Lh(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Kr.option=l[n];var u=a(Kr),c=o.ensureUniqueItemVisual(s,"style");B(c,u),Kr.option.decal&&(o.setItemVisual(s,"decal",Kr.option.decal),Kr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},q0={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Ru(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=Ru(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Ph(e,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},ea=Math.PI;function j0(r,t){t=t||{},te(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new pe,n=new ve({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new we({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ve({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new gs({shape:{startAngle:-ea/2,endAngle:-ea/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ea*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ea*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Q0=function(){function r(t,e,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";st(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||mn({plan:n_,reset:a_,count:o_}));v.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||mn({reset:J0});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";st(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(f=!1,w(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,mn({reset:e_,onDirty:r_})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return $(t)&&(t={overallReset:t,seriesType:s_(t)}),t.uid=Wn("stageHandler"),e&&(t.visualType=e),t},r}();function J0(r){r.overallReset(r.ecModel,r.api,r.payload)}function e_(r){return r.overallProgress&&t_}function t_(){this.agent.dirty(),this.getDownstream().dirty()}function r_(){this.agent&&this.agent.dirty()}function n_(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function a_(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=he(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,n){return Rh(n)}):i_}var i_=Rh(0);function Rh(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Fo=["symbol","symbolSize","symbolRotate","symbolOffset"],Bu=Fo.concat(["symbolKeepAspect"]),f_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ae]){if(this._disposed){this.id;return}var i,o,s;if(Y(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ae]=!0,!this._model||n){var l=new Yy(this._api),u=this._theme,c=this._model=new ih;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Uo);var f={seriesTransition:s,optionChanged:!0};if(a)this[Ee]={silent:i,updateParams:f},this[Ae]=!1,this.getZr().wakeUp();else{try{dr(this),Mt.update.call(this,null,f)}catch(h){throw this[Ee]=null,this[Ae]=!1,h}this._ssr||this._zr.flush(),this[Ee]=null,this[Ae]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(ce.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;w(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Xu[a]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(_n,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=Qf.createCanvas(),m=Cl(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(h,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new ve({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Nr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Ni(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Ni(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=hn(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=hn(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?h_(s,l,n):d_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w($_,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&cn(s,function(d){var p=X(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),w(yn,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),g_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&fv(this.getDom(),js,"");var n=this,a=n._api,i=n._model;w(n._componentsViews,function(o){o.dispose(i,a)}),w(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete _n[n.id]},t.prototype.resize=function(e){if(!this[Ae]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Ee]&&(i==null&&(i=this[Ee].silent),a=!0,this[Ee]=null),this[Ae]=!0;try{a&&dr(this),Mt.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Ae]=!1,o}this[Ae]=!1,qr.call(this,i),jr.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Yo[e]){var a=Yo[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=yn[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!Ba[e.type]&&this._model){if(this[Ae]){this._pendingActions.push(e);return}var a=n.silent;Vi.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&ce.browser.weChat&&this._throttledZrFlush(),qr.call(this,a),jr.call(this,a)}},t.prototype.updateLabelLayout=function(){qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){dr=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Oi(f,!0),Oi(f,!1),h.plan()},Oi=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_h.get("hoverLayerThreshold")&&!ce.node&&!ce.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(xr(m))return;if(m instanceof _e&&Bm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Yu=function(f){return new(function(h){V(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Mr(d,p),ze(f)},v.prototype.leaveEmphasis=function(d,p){Ir(d,p),ze(f)},v.prototype.enterBlur=function(d){Am(d),ze(f)},v.prototype.leaveBlur=function(d){_v(d),ze(f)},v.prototype.enterSelect=function(d){Sv(d),ze(f)},v.prototype.leaveSelect=function(d){xv(d),ze(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(oh))(f)},Kh=function(f){function h(v,d){for(var p=0;p=0)){Zu.push(e);var i=Oh.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function td(r,t){Yo[r]=t}function J_(r,t,e){var n=P_("registerMap");n&&n(r,t,e)}var eS=S0;lr(Ks,Z0);lr(ui,K0);lr(ui,q0);lr(Ks,f_);lr(ui,v_);lr(Hh,M_);Jh(lh);ed(E_,Jy);td("default",j0);ct({type:jt,event:jt,update:jt},mt);ct({type:ma,event:ma,update:ma},mt);ct({type:dn,event:dn,update:dn},mt);ct({type:ya,event:ya,update:ya},mt);ct({type:pn,event:pn,update:pn},mt);Qh("light",l_);Qh("dark",u_);function Qr(r){return r==null?0:r.length||1}function Ku(r){return r}var tS=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Ku,this._newKeyGetter=a||Ku,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Jr=Y,It=F,lS=typeof Int32Array>"u"?Array:Int32Array,uS="e\0\0",qu=-1,cS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],fS=["_approximateExtent"],ju,aa,en,tn,Gi,ia,Wi,vS=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;nd(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===$e;if(l&&!a.pure)for(var u=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),N(i)?i=i.slice():Jr(i)&&(i=B({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Jr(e)?B(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Jr(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;mm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:It(this.dimensions,this._getDimInfo,this),this.hostModel)),Gi(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];$(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(gg(arguments)))})},r.internalField=function(){ju=function(t){var e=t._invertedIndicesMap;w(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new lS(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[e]=l}}}(),r}();const sd=vS;function ld(r,t){Gs(r)||(r=Ws(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=dS(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&od(o),l=n===r.dimensionsDefine,u=l?id(r):ad(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=U(c),h=new _h(o),v=0;v0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function dS(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function pS(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var gS=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function mS(r){var t=r.get("coordinateSystem"),e=new gS(t),n=yS[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var yS={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Re).models[0],i=r.getReferringComponents("yAxis",Re).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),pr(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),pr(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Re).models[0];t.coordSysDims=["single"],e.set("single",a),pr(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Re).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),pr(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),pr(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];e.set(c,u),pr(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function pr(r){return r.get("type")==="category"}function _S(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;SS(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(w(i,function(y,_){G(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;w(i,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function SS(r){return!nd(r.schema)}function kr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function xS(r,t){return kr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function bS(r,t){var e=r.get("coordinateSystem"),n=Fs.get(e),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=$o(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function wS(r,t,e){var n,a;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ci(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=Ws(r)):(a=n.getSource(),i=a.sourceFormat===$e);var o=mS(t),s=bS(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?J(eh,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=ld(a,c),h=wS(f.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),d=_S(t,{schema:f,store:v}),p=new sd(f,t);p.setCalculationInfo(d);var g=h!=null&&CS(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function CS(r){if(r.sourceFormat===$e){var t=TS(r.data||[]);return!N(zn(t))}}function TS(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Ua(ud);const bt=ud;var DS=0,AS=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++DS}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&F(n,MS);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function MS(r){return Y(r)&&r.value!=null?r.value:r+""}const Xo=AS;function Zo(r){return r.type==="interval"||r.type==="log"}function IS(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=av(i/t,!0);e!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=cd(o),l=a.niceTickExtent=[ye(Math.ceil(r[0]/o)*o,s),ye(Math.floor(r[1]/o)*o,s)];return LS(l,r),a}function Hi(r){var t=Math.pow(10,ys(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ye(e*t)}function cd(r){return dt(r)+2}function Qu(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function LS(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Qu(r,0,t),Qu(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function fi(r,t){return r>=t[0]&&r<=t[1]}function vi(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function hi(r,t){return r*(t[1]-t[0])+t[0]}var fd=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Xo({})),N(a)&&(a=new Xo({categories:F(a,function(i){return Y(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),fi(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),vi(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(hi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bt);bt.registerClass(fd);const vd=fd;var Xt=ye,hd=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return fi(e,this._extent)},t.prototype.normalize=function(e){return vi(e,this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=cd(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(e?s.push({value:Xt(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function gd(r){var t=kS(r),e=[];return w(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ee(n.get("barWidth"),s),p=ee(n.get("barMaxWidth"),s),g=ee(n.get("barMinWidth")||(Sd(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:tl(i),stackId:el(n)})}),ES(e)}function ES(r){var t={};w(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ve(i).length;s=Math.max(35-l*4,15)+"%"}var u=ee(s,o),c=ee(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),w(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,f-=S+c*S,h--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;w(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;w(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),e}function OS(r,t,e){if(r&&t){var n=r[tl(t)];return n!=null&&e!=null?n[el(e)]:n}}function md(r,t){var e=pd(r,t),n=gd(e);w(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=el(a),u=n[tl(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function yd(r){return{seriesType:r,plan:Hn(),reset:function(t){if(_d(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=kr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=NS(a,i),d=Sd(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&nt(b*3),C=d&&l&&nt(b*3),T=d&&nt(b),D=n.master.getRect(),A=h?D.width:D.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(f?g:o,M),R=I.get(s,M),O=v,W=void 0;f&&(W=+P-I.get(o,M));var k=void 0,E=void 0,z=void 0,H=void 0;if(h){var q=n.dataToPoint([P,R]);if(f){var j=n.dataToPoint([W,R]);O=j[0]}k=O,E=q[1]+y,z=q[0]-O,H=m,Math.abs(z)>>1;r[a][1]a&&(this._approxInterval=a);var s=oa.length,l=Math.min(BS(oa,this._approxInterval,0,s),s-1);this._interval=oa[l][1],this._minLevelUnit=oa[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return le(e)?e:+yt(e)},t.prototype.contain=function(e){return fi(this.parse(e),this._extent)},t.prototype.normalize=function(e){return vi(this.parse(e),this._extent)},t.prototype.scale=function(e){return hi(e,this._extent)},t.type="time",t}(Un),oa=[["second",Es],["minute",Os],["hour",gn],["quarter-day",gn*6],["half-day",gn*12],["day",He*1.2],["half-week",He*3.5],["week",He*7],["month",He*31],["quarter",He*95],["half-year",ql/2],["year",ql]];function VS(r,t,e,n){var a=yt(t),i=yt(e),o=function(d){return Ql(a,d,n)===Ql(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function zS(r,t){return r/=He,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function FS(r){var t=30*He;return r/=t,r>6?6:r>3?3:r>2?2:1}function GS(r){return r/=gn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ju(r,t){return r/=t?Os:Es,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function WS(r){return av(r,!0)}function HS(r,t,e){var n=new Date(r);switch(wr(t)){case"year":case"month":n[Gv(e)](0);case"day":n[Wv(e)](1);case"hour":n[Hv(e)](0);case"minute":n[Uv(e)](0);case"second":n[Yv(e)](0),n[$v(e)](0)}return n.getTime()}function US(r,t,e,n){var a=1e4,i=zv,o=0;function s(A,M,I,L,P,R,O){for(var W=new Date(M),k=M,E=W[L]();k1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(g),f>_||r===i[v]))break}c=[]}}}for(var S=xe(F(u,function(A){return xe(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)i*=10;var s=[ye(ZS(n[0]/i)*i),ye(XS(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Sn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ke(e)/Ke(this.base),fi(e,this._extent)},t.prototype.normalize=function(e){return e=Ke(e)/Ke(this.base),vi(e,this._extent)},t.prototype.scale=function(e){return e=hi(e,this._extent),sa(this.base,e)},t.type="log",t}(bt),bd=rl.prototype;bd.getMinorTicks=Sn.getMinorTicks;bd.getLabel=Sn.getLabel;function la(r,t){return $S(r,dt(t))}bt.registerClass(rl);const KS=rl;var qS=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[QS[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=jS[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),jS={min:"_determinedMin",max:"_determinedMax"},QS={min:"_dataMin",max:"_dataMax"};function wd(r,t,e){var n=r.rawExtentInfo;return n||(n=new qS(r,t,e),r.rawExtentInfo=n,n)}function ua(r,t){return t==null?null:bo(t)?NaN:r.parse(t)}function Cd(r,t){var e=r.type,n=wd(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=pd("bar",o),l=!1;if(w(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=gd(s),c=JS(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function JS(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=OS(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function tc(r,t){var e=t,n=Cd(r,e),a=n.extent,i=e.get("splitNumber");r instanceof KS&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ex(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new vd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new YS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(bt.getClass(t)||Un)}}function tx(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Yn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):G(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):$(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(nl(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function nl(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function rx(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof vd?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Yn(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cr[1]&&(r[1]=a[1])})}var ix=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),rc=[],ox={registerPreprocessor:Jh,registerProcessor:ed,registerPostInit:K_,registerPostUpdate:q_,registerUpdateLifecycle:Qs,registerAction:ct,registerCoordinateSystem:j_,registerLayout:Q_,registerVisual:lr,registerTransform:eS,registerLoading:td,registerMap:J_,registerImpl:L_,PRIORITY:H_,ComponentModel:oe,ComponentView:Ye,SeriesModel:lt,ChartView:Oe,registerComponentModel:function(r){oe.registerClass(r)},registerComponentView:function(r){Ye.registerClass(r)},registerSeriesModel:function(r){lt.registerClass(r)},registerChartView:function(r){Oe.registerClass(r)},registerSubTypeDefaulter:function(r,t){oe.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){mg(r,t)}};function _t(r){if(N(r)){w(r,function(t){_t(t)});return}se(rc,r)>=0||(rc.push(r),$(r)&&(r={install:r}),r.install(ox))}var Rn=ue();function sx(r){return r.type==="category"?ux(r):fx(r)}function lx(r,t){return r.type==="category"?cx(r,t):{ticks:F(r.scale.getTicks(),function(e){return e.value})}}function ux(r){var t=r.getLabelModel(),e=Ad(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Ad(r,t){var e=Md(r,"labels"),n=al(t),a=Id(e,n);if(a)return a;var i,o;return $(n)?i=Rd(r,n):(o=n==="auto"?vx(r):n,i=Pd(r,o)),Ld(e,n,{labels:i,labelCategoryInterval:o})}function cx(r,t){var e=Md(r,"ticks"),n=al(t),a=Id(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),$(n))i=Rd(r,n,!0);else if(n==="auto"){var s=Ad(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=Pd(r,o,!0);return Ld(e,n,{ticks:i,tickCategoryInterval:o})}function fx(r){var t=r.scale.getTicks(),e=Yn(r);return{labels:F(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Md(r,t){return Rn(r)[t]||(Rn(r)[t]=[])}function Id(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=ms(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Rn(r.model),b=r.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-_)<=1&&Math.abs(C-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function dx(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Pd(r,t,e){var n=Yn(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Td(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function Rd(r,t,e){var n=r.scale,a=Yn(r),i=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var nc=[0,1],px=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return rv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),ac(n,a.count())),Ot(t,nc,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),ac(n,a.count()));var i=Ot(t,n,nc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=lx(this,e),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return gx(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return sx(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return hx(this)},r}();function ac(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function gx(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=ye(v),d=ye(d),f?v>d:va&&(a+=rn);var v=Math.atan2(s,o);if(v<0&&(v+=rn),v>=n&&v<=a||v+rn>=n&&v+rn<=a)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function za(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,c=e-r,f=n-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function kd(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var je=[];function xx(r,t,e){var n=kd(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function bx(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v0){t=t/180*Math.PI,Je.fromArray(r[0]),ne.fromArray(r[1]),fe.fromArray(r[2]),be.sub(at,Je,ne),be.sub(tt,fe,ne);var e=at.len(),n=tt.len();if(!(e<.001||n<.001)){at.scale(1/e),tt.scale(1/n);var a=at.dot(tt),i=Math.cos(t);if(i1&&be.copy(Pe,fe),Pe.toArray(r[1])}}}}function wx(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Je.fromArray(r[0]),ne.fromArray(r[1]),fe.fromArray(r[2]),be.sub(at,ne,Je),be.sub(tt,fe,ne);var n=at.len(),a=tt.len();if(!(n<.001||a<.001)){at.scale(1/n),tt.scale(1/a);var i=at.dot(t),o=Math.cos(e);if(i=l)be.copy(Pe,fe);else{Pe.scaleAndAdd(tt,s/Math.tan(Math.PI/2-c));var f=fe.x!==ne.x?(Pe.x-ne.x)/(fe.x-ne.x):(Pe.y-ne.y)/(fe.y-ne.y);if(isNaN(f))return;f<0?be.copy(Pe,ne):f>1&&be.copy(Pe,fe)}Pe.toArray(r[1])}}}}function Ui(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function Cx(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=Tl(n[0],n[1]),i=Tl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=_i([],n[1],n[0],o/a),l=_i([],n[1],n[2],o/i),u=_i([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&i&&b(-c/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&x(-m,.8),y<0&&x(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&C(-m),y<0&&C(y);function _(){m=p.rect[t]-n,y=a-g.rect[t]-g.rect[e]}function S(T,D,A){if(T<0){var M=Math.min(D,-T);if(M>0){b(M*A,0,o);var I=M+T;I<0&&x(-I*A,1)}else x(-T*A,1)}}function b(T,D,A){T!==0&&(u=!0);for(var M=D;M0)for(var I=0;I0;I--){var O=A[I-1]*R;b(-O,I,o)}}}function C(T){var D=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),M=0;M0?b(A,0,M+1):b(-A,o-M-1,o),T-=A,T<=0)return}return u}function Tx(r,t,e,n){return Vd(r,"x","width",t,e,n)}function zd(r,t,e,n){return Vd(r,"y","height",t,e,n)}function Fd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Ne(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),se(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ge(n,u,e,l)}else if(n.attr(u),!zr(n).valueAnimation){var f=ae(n.style.opacity,1);n.style.opacity=0,De(n,{style:{opacity:f}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};ca(v,u,fa),ca(v,n.states.select,fa)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};ca(d,u,fa),ca(d,n.states.emphasis,fa)}Qm(n,l,c,e,e)}if(a&&!a.ignore&&!a.invisible){var i=Mx(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),ge(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,De(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const Lx=Ix;var $i=ue();function dD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=$i(e).labelManager;a||(a=$i(e).labelManager=new Lx),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=$i(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var Px=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(oe);const Rx=Px;var Ko=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Re).models[0]},t.type="cartesian2dAxis",t}(oe);St(Ko,ix);var Gd={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)"]}}},kx=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Gd),il=K({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}}},Gd),Ex=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},il),Ox=te({logBase:10},il);const Nx={category:kx,value:il,time:Ex,log:Ox};var Bx={value:1,category:1,time:1,log:1};function sc(r,t,e,n){w(Bx,function(a,i){var o=K(K({},Nx[i],!0),n,!0),s=function(l){V(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=An(this),v=h?ii(c):{},d=f.getTheme();K(c,d.get(i+"Axis")),K(c,this.getDefaultOption()),c.type=lc(c),h&&Pr(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Xo.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=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",lc)}function lc(r){return r.type||(r.data?"category":"value")}var Vx=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const zx=Vx;var qo=["x","y"];function uc(r){return r.type==="interval"||r.type==="time"}var Fx=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=qo,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uc(e)||!uc(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-a[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=ds([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return er(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return er(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Ne(i,o,s,l)},t}(zx),Gx=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(mx);const Wx=Gx;function jo(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ar(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function cc(r){return r.get("coordinateSystem")==="cartesian2d"}function fc(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Re).models[0];t[n]=i}),t}var Xi=Math.log;function Hx(r,t,e){var n=Un.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=Cd(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=Xi(r.base);u=[Xi(u[0])/h,Xi(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Hi(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Hi(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=ye(g-y),p<0&&u[0]>=0?(p=0,g=ye(y)):g>0&&u[1]<=0&&(g=0,p=-ye(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var Ux=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=qo,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Ve(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;Zo(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(tc(p,d),Zo(p)&&(s=v))}c.length&&(s||(s=c.pop(),tc(s.scale,s.model)),w(c,function(g){Hx(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};w(n.x,function(o){vc(n,"y",o,i)}),w(n.y,function(o){vc(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Ft(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=rx(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Yx(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Ia(a-Nt)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),dc={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(er(s,s,o),er(l,l,o));var c=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Tn(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);G(h)&&(h=[h,h]),(G(v)||le(v))&&(v=[v,v]);var d=Zs(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Gt(h[y],-p/2,-g/2,p,g,c.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=Kx(e,n,t,r),i=jx(e,n,t,r);if(Zx(t,i,a),qx(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Bd(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Fd(o)}},axisName:function(r,t,e,n){var a=Ar(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,gc(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Nt/180);var d;gc(i)?h=Qt.innerTextLayout(r.rotation,v??r.rotation,o):(h=Xx(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Ar(r.nameTruncateMaxWidth,g.maxWidth,d),_=new we({x:f[0],y:f[1],rotation:h.rotation,silent:Qt.isLabelSilent(t),style:zt(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(ja({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=Qt.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,X(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function Xx(r,t,e,n){var a=nv(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(a-Nt/2)?(o=l?"bottom":"top",i="center"):Ia(a-Nt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aNt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Zx(r,t,e){if(!Td(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];n===!1?(Fe(i),Fe(u)):pc(i,o)&&(n?(Fe(o),Fe(c)):(Fe(i),Fe(u))),a===!1?(Fe(s),Fe(f)):pc(l,s)&&(a?(Fe(l),Fe(h)):(Fe(s),Fe(f)))}}function Fe(r){r&&(r.ignore=!0)}function pc(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=$f([]);return ev(a,a,-r.rotation),e.applyTransform(_o([],a,r.getLocalTransform())),n.applyTransform(_o([],a,t.getLocalTransform())),e.intersect(n)}}function gc(r){return r==="middle"||r==="center"}function Wd(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l=0||r===t}function nb(r){var t=ol(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Qo(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=ol(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=qt(t).pointerEl=new Ls[i.type](_c(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qt(t).labelEl=new we(_c(e.label));t.add(i),xc(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qt(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=qt(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),xc(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=qa(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Sg(u.event)},onmousedown:qi(this._onHandleDragMove,this,0,0),drift:qi(this._onHandleDragMove,this),ondragend:qi(this._onHandleDragEnd,this)}),n.add(a)),bc(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ih(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Sc(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ji(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(ji(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(ji(a)),qt(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),zo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function Sc(r,t,e,n){Zd(qt(e).lastProp,n)||(qt(e).lastProp=n,t?ge(e,n,r):(e.stopAnimation(),e.attr(n)))}function Zd(r,t){if(Y(r)&&Y(t)){var e=!0;return w(t,function(n,a){e=e&&Zd(r[a],n)}),!!e}else return r===t}function xc(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ji(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function bc(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const db=hb;function pb(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function gb(r,t,e,n,a){var i=e.get("value"),o=Kd(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ai(s.get("padding")||0),u=s.getFont(),c=ms(o,u),f=a.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=a.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),mb(f,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function mb(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Kd(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:nl(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),G(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function qd(r,t,e){var n=bg();return ev(n,n,e.rotation),xg(n,n,e.position),Is([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function yb(r,t,e,n,a,i){var o=Hd.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),gb(t,n,a,i,{position:qd(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _b(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Sb(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var xb=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=wc(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=pb(i),v=bb[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=jo(l.model,a);yb(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=jo(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=qd(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wc(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(db);function wc(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var bb={line:function(r,t,e){var n=_b([t,e[0]],[t,e[1]],Cc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:Sb([t-n/2,e[0]],[n,a],Cc(r))}}};function Cc(r){return r.dim==="x"?0:1}const wb=xb;var Cb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(oe);const Tb=Cb;var pt=ue(),Db=w;function jd(r,t,e){if(!ce.node){var n=t.getZr();pt(n).records||(pt(n).records={}),Ab(n,t);var a=pt(n).records[r]||(pt(n).records[r]={});a.handler=e}}function Ab(r,t){if(pt(r).initialized)return;pt(r).initialized=!0,e("click",J(Tc,"click")),e("mousemove",J(Tc,"mousemove")),e("globalout",Ib);function e(n,a){r.on(n,function(i){var o=Lb(t);Db(pt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Mb(o.pendings,t)})}}function Mb(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function Ib(r,t,e){r.handler("leave",null,e)}function Tc(r,t,e,n){t.handler(r,e,n)}function Lb(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function es(r,t){if(!ce.node){var e=t.getZr(),n=(pt(e).records||{})[r];n&&(pt(e).records[r]=null)}}var Pb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";jd("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){es("axisPointer",n)},t.prototype.dispose=function(e,n){es("axisPointer",n)},t.type="axisPointer",t}(Ye);const Rb=Pb;function Qd(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rr(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Dc=ue();function kb(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ie(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ta(a)&&(a=Qd({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ta(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Ta(a),h={},v={},d={list:[],map:{}},p={showPointer:J(Ob,v),showTooltip:J(Nb,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,C=Fb(u,S);if(!f&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Ac(S,T,p,!1,h)}})});var g={};return w(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==m&&x){var C=x.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,Mc(S),Mc(m)))),g[m.key]=C}})}),w(g,function(m,y){Ac(c[y],m,p,!0,h)}),Bb(v,c,h),Vb(d,a,r,o),zb(c,o,e),h}}function Ac(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Eb(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&B(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Eb(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,a=f,i.length=0),w(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function Ob(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Nb(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=kn(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Bb(r,t,e){var n=e.axesInfo=[];w(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Vb(r,t,e,n){if(Ta(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function zb(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=Dc(n)[a]||{},o=Dc(n)[a]={};w(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&w(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,c){!o[c]&&l.push(u)}),w(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Fb(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Mc(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ta(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Jd(r){Ud.registerAxisPointerClass("CartesianAxisPointer",wb),r.registerComponentModel(Tb),r.registerComponentView(Rb),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Qx(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kb)}function pD(r){_t(Xd),_t(Jd)}var Ic="\0_ec_interaction_mutex";function Gb(r,t,e){var n=ep(r);n[t]=e}function Wb(r,t,e){var n=ep(r),a=n[t];a===e&&(n[t]=null)}function ep(r){return r[Ic]||(r[Ic]={})}ct({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var Hb={axisPointer:1,tooltip:1,brush:1};function Ub(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!Hb.hasOwnProperty(n.mainType)&&a&&a.model!==e}function tp(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=gr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=gr(s,[0,o]),a=i=gr(s,[a,i]),n=0}t[0]=gr(t[0],e),t[1]=gr(t[1],e);var l=Qi(t,n);t[n]+=r;var u=a||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=gr(t[n],c);var f;return f=Qi(t,n),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function Qi(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function gr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ar=!0,En=Math.min,Er=Math.max,Yb=Math.pow,$b=1e4,Xb=6,Zb=6,Lc="globalPan",Kb={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},qb={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Pc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},jb=0,Qb=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new pe,n._uid="brushController_"+jb++,w(iw,function(a,i){this._handlers[i]=ie(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||Gb(n,Lc,this._uid),w(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=K(Z(Pc),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Wb(e,Lc,this._uid),w(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(a){n[a.panelId]=Z(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=F(e,function(h){return K(Z(Pc),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Pn(a,e,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=e[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):np(o,rp(o,d));sl(o,p)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),ts(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Vn);function rp(r,t){var e=di[t.brushType].createCover(r,t);return e.__brushOption=t,ip(e,t),r.group.add(e),e}function np(r,t){var e=ll(t);return e.endCreating&&(e.endCreating(r,t),ip(t,t.__brushOption)),t}function ap(r,t){var e=t.__brushOption;ll(t).updateCoverShape(r,t,e.range,e)}function ip(r,t){var e=t.z;e==null&&(e=$b),r.traverse(function(n){n.z=e,n.z2=e})}function sl(r,t){ll(t).updateCommon(r,t),ap(r,t)}function ll(r){return di[r.__brushOption.brushType]}function ul(r,t,e){var n=r._panels;if(!n)return ar;var a,i=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function op(r,t){var e=r._panels;if(!e)return ar;var n=t.__brushOption.panelId;return n!=null?e[n]:ar}function ts(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function ir(r,t){var e=F(r._covers,function(n){var a=n.__brushOption,i=Z(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Jb(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=Yb(a*a+i*i,.5);return o>Xb}function sp(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function lp(r,t,e,n){var a=new pe;return a.add(new ve({name:"main",style:cl(e),silent:!0,draggable:!0,cursor:"move",drift:J(Rc,r,t,a,["n","s","w","e"]),ondragend:J(ir,t,{isEnd:!0})})),w(n,function(i){a.add(new ve({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:J(Rc,r,t,a,i),ondragend:J(ir,t,{isEnd:!0})}))}),a}function up(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Er(a,Zb),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,c=e[0][1],f=e[1][1],h=c-i+a/2,v=f-i+a/2,d=c-o,p=f-s,g=d+a,m=p+a;ht(r,t,"main",o,s,d,p),n.transformable&&(ht(r,t,"w",l,u,i,m),ht(r,t,"e",h,u,i,m),ht(r,t,"n",l,u,g,i),ht(r,t,"s",l,v,g,i),ht(r,t,"nw",l,u,i,i),ht(r,t,"ne",h,u,i,i),ht(r,t,"sw",l,v,i,i),ht(r,t,"se",h,v,i,i))}function rs(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(cl(e)),a.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?ns(r,i[0]):tw(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?qb[s]+"-resize":null})})}function ht(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(nw(fl(r,t,[[n,a],[n+i,a+o]])))}function cl(r){return te({strokeNoScale:!0},r.brushStyle)}function cp(r,t,e,n){var a=[En(r,e),En(t,n)],i=[Er(r,e),Er(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function ew(r){return Ms(r.group)}function ns(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Iv(e[t],ew(r));return n[a]}function tw(r,t){var e=[ns(r,t[0]),ns(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Rc(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=fp(t,a,i);w(n,function(u){var c=Kb[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(cp(s[0][0],s[1][0],s[0][1],s[1][1])),sl(t,e),ir(t,{isEnd:!1})}function rw(r,t,e,n){var a=t.__brushOption.range,i=fp(r,e,n);w(a,function(o){o[0]+=i[0],o[1]+=i[1]}),sl(r,t),ir(r,{isEnd:!1})}function fp(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function fl(r,t,e){var n=op(r,t);return n&&n!==ar?n.clipPath(e,r._transform):Z(e)}function nw(r){var t=En(r[0][0],r[1][0]),e=En(r[0][1],r[1][1]),n=Er(r[0][0],r[1][0]),a=Er(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function aw(r,t,e){if(!(!r._brushType||ow(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=ul(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var di={lineX:Oc(0),lineY:Oc(1),rect:{createCover:function(r,t){function e(n){return n}return lp({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=sp(r);return cp(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){up(r,t,e,n)},updateCommon:rs,contain:is},polygon:{createCover:function(r,t){var e=new pe;return e.add(new Nn({name:"main",style:cl(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ps({name:"main",draggable:!0,drift:J(rw,r,t),ondragend:J(ir,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:fl(r,t,e)})},updateCommon:rs,contain:is}};function Oc(r){return{createCover:function(t,e){return lp({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=sp(t),n=En(e[0][r],e[1][r]),a=Er(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=op(t,e);if(o!==ar&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),up(t,e,l,a)},updateCommon:rs,contain:is}}const sw=Qb;function lw(r){return r=vl(r),function(t){return Pv(t,r)}}function uw(r,t){return r=vl(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function cw(r,t,e){var n=vl(r);return function(a,i){return n.contain(i[0],i[1])&&!Ub(a,t,e)}}function vl(r){return Ne.create(r)}var Nc=["x","y","radius","angle","single"],fw=["cartesian2d","polar","singleAxis"];function vw(r){var t=r.get("coordinateSystem");return se(fw,t)>=0}function Sr(r){return r+"Axis"}function hw(r,t){var e=U(),n=[],a=U();r.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(e.get(f)||e.set(f,[]))[h]=!0})}return n}var Ji=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),dw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Bc(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Bc(e);K(this.option,e,!0),K(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=U(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Nc,function(a){var i=this.getReferringComponents(Sr(a),nm);if(i.specified){n=!0;var o=new Ji;w(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Ji;if(h.add(f.componentIndex),e.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Re).models[0];v&&w(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Re).models[0]&&h.add(d.componentIndex)})}}}i&&w(Nc,function(u){if(i){var c=a.findComponents({mainType:Sr(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Ji;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Sr(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){w(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Sr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else _r(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});_r(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;_r(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ot(n[0]+o,n,[0,100],!0):i!=null&&(o=Ot(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=rv(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function ww(r,t,e){var n=[1/0,-1/0];_r(e,function(o){ax(n,o.getData(),t)});var a=r.getAxisModel(),i=wd(a.axis.scale,a,n).calculate();return[i.min,i.max]}const Cw=bw;var Tw={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Sr(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Cw(a,i,s,r),e.push(o.__dzAxisProxy))});var n=U();return w(e,function(a){w(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Dw=Tw;function Aw(r){r.registerAction("dataZoom",function(t,e){var n=hw(e,t);w(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var zc=!1;function Mw(r){zc||(zc=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Dw),Aw(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Iw(r){r.registerComponentModel(mw),r.registerComponentView(xw),Mw(r)}var Qe=function(){function r(){}return r}(),hp={};function nn(r,t){hp[r]=t}function dp(r){return hp[r]}var Lw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(n,a){var i=dp(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),K(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(oe);const Pw=Lw;function Rw(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ft(n,i,a);Tr(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Sy(r,n,i,a)}function pp(r,t){var e=ai(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new ve({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var kw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];w(u,function(d,p){f.push(p)}),new Pn(this._featureNames||[],f).add(h).update(h).remove(J(h,null)).execute(),this._featureNames=f;function h(d,p){var g=f[d],m=f[p],y=u[g],_=new Te(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(Ew(g))S={onclick:_.option.onclick,featureName:g};else{var b=dp(g);if(!b)return;S=new b}c[g]=S}else if(S=c[m],!S)return;S.uid=Wn("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Qe;if(!g&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(C,T){var D=this.option,A=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,A[C]&&(T==="emphasis"?Mr:Ir)(A[C])},S instanceof Qe&&S.render&&S.render(_,n,a,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof Qe&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;G(_)?(b={},b[g]=_):b=_,G(S)?(x={},x[g]=S):x=S;var C=d.iconPaths={};w(b,function(T,D){var A=qa(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var M=A.ensureState("emphasis");M.style=y.getItemStyle();var I=new we({style:{text:x[D],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:Ev({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});A.setTextContent(I),ja({el:A,componentModel:e,itemName:D,formatterParamsExtra:{title:x[D]}}),A.__title=x[D],A.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",D])==="emphasis"?Mr:Ir)(A),o.add(A),A.on("click",ie(p.onclick,p,n,a,D)),C[D]=A})}Rw(o,e,a),o.add(pp(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!$(_)&&p){var S=_.style||(_.style={}),b=ms(p,we.makeFont(S)),x=d.x+o.x,C=d.y+o.y+s,T=!1;C+b.height>a.getHeight()&&(m.position="top",T=!0);var D=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(m.position=["100%",D],S.align="right"):x-b.width/2<0&&(m.position=[0,D],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){w(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ye);function Ew(r){return r.indexOf("my")===0}const Ow=kw;var Nw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ce.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+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||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qe);const Bw=Nw;var Fc="__ec_magicType_stack__",Vw=[["line","bar"],["stack"]],zw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return w(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Gc[a]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=Gc[a](h,v,f,i);d&&(te(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=f.getReferringComponents(y,Re).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};w(Vw,function(f){se(f,a)>=0&&w(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=K({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),Gc={line:function(r,t,e,n){if(r==="bar")return K({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return K({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Fc;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),K({id:t,stack:a?"":Fc},n.get(["option","stack"])||{},!0)}};ct({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const Fw=zw;var pi=new Array(60).join("-"),Or=" ";function Gw(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Ww(r){var t=[];return w(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Or)],c=0;c=0)return!0}var os=new RegExp("["+Or+"]+","g");function $w(r){for(var t=r.split(/\n+/g),e=Ga(t.shift()).split(os),n=[],a=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Jw(r){var t=hl(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return gp(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function e1(r){mp(r).snapshots=null}function t1(r){return hl(r).length}function hl(r){var t=mp(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var r1=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){e1(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Qe);ct({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const n1=r1;var a1=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],i1=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Wc(e,t);w(o1,function(o,s){(!n||!n.include||se(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=eo[n.brushType](0,i,a);n.__rangeOffset={offset:$c[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&w(i.coordSyses,function(o){var s=eo[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=eo[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?$c[n.brushType](i.values,o.offset,s1(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:lw(a),isTargetByCursor:cw(a,t,n.coordSysModel),getLinearBrushOtherExtent:uw(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&se(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Wc(e,t),i=0;ir[1]&&r.reverse(),r}function Wc(r,t){return hn(r,t,{includeMainTypes:a1})}var o1={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=U(),o={},s={};!e&&!n&&!a||(w(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),w(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];w(u.getCartesians(),function(f,h){(se(e,f.getAxis("x").model)>=0||se(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:Uc.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Uc.geo})})}},Hc=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Uc={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ms(r)),t}},eo={lineX:J(Yc,0),lineY:J(Yc,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[ss([a[0],i[0]]),ss([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Yc(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=ss(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var $c={lineX:J(Xc,0),lineY:J(Xc,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Xc(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function s1(r,t){var e=Zc(r),n=Zc(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Zc(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const yp=i1;var ls=w,l1=Jg("toolbox-dataZoom_"),u1=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new sw(a.getZr()),this._brushController.on("brush",ie(this._onBrush,this)).mount()),v1(e,n,this,i,a),f1(e,n)},t.prototype.onclick=function(e,n,a){c1[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new yp(dl(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),Qw(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=tp(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];ls(e,function(a,i){n.push(Z(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qe),c1={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Jw(this.ecModel))}};function dl(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function f1(r,t){r.setIconStatus("back",t1(t)>1?"emphasis":"normal")}function v1(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new yp(dl(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}My("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=dl(n),o=hn(r,i);ls(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ls(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:l1+u+f};h[c]=f,a.push(h)}return a});const h1=u1;function gD(r){r.registerComponentModel(Pw),r.registerComponentView(Ow),nn("saveAsImage",Bw),nn("magicType",Fw),nn("dataView",jw),nn("dataZoom",h1),nn("restore",n1),_t(Iw)}var d1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(oe);const p1=d1;function _p(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Sp(r){if(ce.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function b1(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=ce.transformSupported?","+pl+n:",left"+n+",top"+n),y1+":"+a}function Kc(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ce.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ce.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+pl+":"+o+";":[["top",0],["left",0],[xp,o]]}function w1(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function C1(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=Ah(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&a&&n.push(b1(a,e)),i&&n.push("background-color:"+i),w(["width","color","radius"],function(v){var d="border-"+v,p=Zv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(w1(c)),f!=null&&n.push("padding:"+ai(f).join("px ")+"px"),n.join(";")+";"}function qc(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&Cg(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var T1=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(G(i)?document.querySelector(i):wo(i)?i:$(i)&&i(t.getDom()));qc(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();wg(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=m1(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=_1+C1(t,!this._firstShow,this._longHide)+Kc(i[0],i[1],!0)+("border-color:"+nr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(i)&&n.get("trigger")==="item"&&!_p(n)&&(s=x1(n,a,i)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||ce.node||!a.getDom())){var o=Jc(i,a);this._ticket="";var s=i.dataByCoordSys,l=E1(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=I1;c.x=i.x,c.y=i.y,c.update(),X(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=Qd(i,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Jc(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=an([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=X(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;cn(a,function(c){if(X(c).dataIndex!=null)return l=c,!0;if(X(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=ie(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=an([n.tooltipOption],i),l=this._renderMode,u=[],c=In("section",{blocks:[],noHeader:!0}),f=[],h=new Pi;w(e,function(y){w(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Kd(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=In("section",{header:x,noHeader:!Bn(x),sortBlocks:!0,blocks:[]});c.blocks.push(C),w(_.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=nl(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",nr(M.color),l);var I=_u(D.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=an([D],i).get("valueFormatter");C.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=Tu(c,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?` - -`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=X(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=an([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Pi;m.marker=y.makeTooltipMarker("item",nr(m.color),v);var _=_u(u.formatTooltip(c,!1,f)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?Tu(b?B({valueFormatter:b},x):x,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=X(n),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,h=an(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new Pi;this._showOrMove(h,function(){var g=Z(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,d,e.offsetX,e.offsetY,e.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(G(h)){var g=e.ecModel.get("useUTC"),m=N(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Ja(m.axisValue,v,g)),v=Kv(v,a,!0)}else if($(h)){var _=ie(function(S,b){S===this._ticket&&(f.setContent(b,c,e,p,l),this._updatePosition(e,l,o,s,f,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||N(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!N(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),N(n))a=ee(n[0],u),i=ee(n[1],c);else if(Y(n)){var p=n;p.width=f[0],p.height=f[1];var g=Ft(p,{width:u,height:c});a=g.x,i=g.y,h=null,v=null}else if(G(n)&&l){var m=k1(n,d,f,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=P1(a,i,o,u,c,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=ef(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=ef(v)?f[1]/2:v==="bottom"?f[1]:0),_p(e)){var m=R1(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&w(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&w(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ce.node||!n.getDom()||(zo(this,"_updatePosition"),this._tooltipContent.dispose(),es("itemTooltip",n))},t.type="tooltip",t}(Ye);function an(r,t,e){var n=t.ecModel,a;e?(a=new Te(e,n,n),a=new Te(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Te&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(a=new Te(o,a,n)))}return a}function Jc(r,t){return r.dispatchAction||ie(t.dispatchAction,t)}function P1(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function R1(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function k1(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function ef(r){return r==="center"||r==="middle"}function E1(r,t,e){var n=Ss(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Fn(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=X(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const O1=L1;function mD(r){_t(Jd),r.registerComponentModel(p1),r.registerComponentView(O1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var N1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(oe),B1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ae(e.get("textBaseline"),e.get("textVerticalAlign")),c=new we({style:zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=e.get("subtext"),v=new we({style:zt(s,{text:h,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!d&&!g,v.silent=!p&&!g,d&&c.on("click",function(){eu(d,"_"+e.get("target"))}),p&&v.on("click",function(){eu(p,"_"+e.get("subtarget"))}),X(c).eventData=X(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),h&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ft(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var C=new ve({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ye);function yD(r){r.registerComponentModel(N1),r.registerComponentView(B1)}function gi(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rr(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var V1=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Gt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=z1,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Mr(this.childAt(0))},t.prototype.downplay=function(){Ir(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ge(h,v,s,n),Ka(h)}if(this._updateCommon(e,n,l,a,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,De(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Vr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Zs(e.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),C=x.fill;if(s instanceof Nr){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Br(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(R){return M?e.getName(R):gi(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Lr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=X(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Cn(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Cn(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return T_(e.getItemVisual(n,"symbolSize"))},t}(pe);function z1(r,t){this.parent.drift(r,t)}const gl=V1;function to(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function tf(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function rf(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Vr(t),cursorStyle:t.get("cursor")}}var F1=function(){function r(t){this.group=new pe,this._SymbolCtor=t||gl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=tf(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=rf(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var h=c(f);if(to(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!to(t,d,f,e)){n.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):ge(v,m,a)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=rf(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=tf(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(oe);const us=W1;var mr=J,cs=w,va=pe,H1=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new va),this.group.add(this._selectorGroup=new va),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var c=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},h=e.get("padding"),v=Ft(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=Ft(te({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=pp(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),c=U(),f=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),cs(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var g=new va;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,v,n,e,_,b,S,f,i);x.on("click",mr(nf,p,null,i,h)).on("mouseover",mr(fs,m.name,null,i,h)).on("mouseout",mr(vs,m.name,null,i,h)),a.ssr&&x.eachChild(function(C){var T=X(C);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),c.set(p,!0)}else a.eachRawSeries(function(C){if(!c.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),A=T.getItemVisual(D,"style"),M=T.getItemVisual(D,"legendIcon"),I=Tg(A.fill);I&&I[3]===0&&(I[3]=.2,A=B(B({},A),{fill:Dg(I,"rgba")}));var L=this._createItem(C,p,d,v,n,e,{},A,M,f,i);L.on("click",mr(nf,null,p,i,h)).on("mouseover",mr(fs,null,p,i,h)).on("mouseout",mr(vs,null,p,i,h)),a.ssr&&L.eachChild(function(P){var R=X(P);R.seriesIndex=C.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();cs(e,function(u){var c=u.type,f=new we({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Br(f,{normal:h,emphasis:v},{defaultText:u.title}),Ao(f)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=U1(c,i,l,u,v,g,h),b=new va,x=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(Y1({itemWidth:d,itemHeight:p,icon:c,iconRotate:C,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),M=n;G(A)&&A?M=A.replace("{name}",n??""):$(A)&&(M=A(n));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new we({style:zt(x,{text:M,x:T,y:p/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var L=new ve({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&ja({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!f,this.getContentGroup().add(b),Ao(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Tr(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Tr("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+h[g],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ye);function U1(r,t,e,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),cs(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Wo(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Y1(r){var t=r.icon||"roundRect",e=Gt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function nf(r,t,e,n){vs(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),fs(r,t,e,n)}function Tp(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[o],g=[-v.x,-v.y];n||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],f.setClipPath(new ve({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&ge(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=ro[o],l=no[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=S(c[g]),(!_&&y.e>m.s+i||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(c[g]),(!_||!b(y,_.s))&&m.i=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(Dp);const j1=q1;function Q1(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function J1(r){_t(Ap),r.registerComponentModel(K1),r.registerComponentView(j1),Q1(r)}function _D(r){_t(Ap),_t(J1)}var eC={label:{enabled:!0},decal:{show:!1}},sf=ue(),tC={};function rC(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Z(eC);K(n.label,r.getLocaleModel().get("aria"),!1),K(e.option,n,!1),a(),i();function a(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=U();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),sf(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if($(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=ru(h.ecModel,h.name,tC,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,y))}else{var d=h.getRawData(),p={},g=sf(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],C=d.getName(b)||b+"",T=ru(h.ecModel,C,g,m),D=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(D,T))})}function S(b,x){var C=b?B(B({},x),b):x;return C.dirty=!0,C}})}}function i(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=te(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,D){if(D1?c.get(["series","multiple",I]):c.get(["series","single",I]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var P=c.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),W=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},aC=function(){function r(t){var e=this._condVal=G(t)?new RegExp(t):Ag(t)?t:null;if(e==null){var n="";Q(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):le(e)?this._condVal.test(t+""):!1},r}(),iC=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),oC=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(lt);const _C=yC;function Ip(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=SC(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=F(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return kr(t,f[0])&&(h=!0,f[0]=v),kr(t,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function SC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:le(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function Lp(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function xC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function bC(r,t,e,n,a,i,o,s){for(var l=xC(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=Ip(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Jt(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var _=m-u,S=y-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===m&&C===y&&g=n||Jt(x,C))v=m,d=y;else{A=x-u,M=C-c;var P=m-u,R=x-m,O=y-c,W=C-y,k=void 0,E=void 0;if(s==="x"){k=Math.abs(P),E=Math.abs(R);var z=A>0?1:-1;v=m-z*k*o,d=y,I=m+z*E*o,L=y}else if(s==="y"){k=Math.abs(O),E=Math.abs(W);var H=M>0?1:-1;v=m,d=y-H*k*o,I=m,L=y+H*E*o}else k=Math.sqrt(P*P+O*O),E=Math.sqrt(R*R+W*W),D=E/(E+k),v=m-A*o*(1-D),d=y-M*o*(1-D),I=m+A*o*D,L=y+M*o*D,I=Lt(I,Pt(x,m)),L=Lt(L,Pt(C,y)),I=Pt(I,Lt(x,m)),L=Pt(L,Lt(C,y)),A=I-m,M=L-y,v=m-A*k/E,d=y-M*k/E,v=Lt(v,Pt(u,m)),d=Lt(d,Pt(c,y)),v=Pt(v,Lt(u,m)),d=Pt(d,Lt(c,y)),A=m-v,M=y-d,I=m+A*E/k,L=y+M*E/k}r.bezierCurveTo(f,h,v,d,m,y),f=I,h=L}else r.lineTo(m,y)}u=m,c=y,p+=i}return g}var Pp=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),wC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pp},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jt(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var b=u?Al(s,v,p,m,e,c):Al(l,d,g,y,e,c);if(b>0)for(var x=0;x=0){var S=u?Ml(l,d,g,y,C):Ml(s,v,p,m,C);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(_e),CC=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Pp),TC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new CC},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jt(a[s*2-2],a[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function MC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=AC(u,a==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new jf(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function IC(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&LC(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function LC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function PC(r,t){return isNaN(r)||isNaN(t)}function RC(r){for(var t=r.length/2;t>0&&PC(r[t*2-2],r[t*2-1]);t--);return t-1}function df(r,t){return[r[t*2],r[t*2+1]]}function kC(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Ep(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}X(p).seriesIndex=e.seriesIndex,Lr(p,W,k,E);var H=hf(e.get("smooth")),q=e.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:q,connectNulls:T}),g){var j=l.getCalculationInfo("stackedOnSeries"),re=0;g.useStyle(te(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(re=hf(j.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:re,smoothMonotone:q,connectNulls:T}),wn(g,e,"areaStyle"),X(g).seriesIndex=e.seriesIndex,Lr(g,W,k,E)}var Se=function(me){i._changePolyState(me)};l.eachItemGraphicEl(function(me){me&&(me.onHoverStateChange=Se)}),this._polyline.onHoverStateChange=Se,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){X(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new gl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Oe.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Oe.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Nl(this._polyline,e),n&&Nl(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new wC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new TC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");$(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var T=$(f)?f(d):c*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(Ep(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new we({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=RC(l);c>=0&&(Br(s,Vr(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?wp(o,v):gi(o,f)},enableTextSetter:!0},EC(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=kC(f,S,C),D=T.range,A=D[1]-D[0],M=void 0;if(A>=1){if(A>1&&!v){var I=df(f,D[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=h.getRawValue(D[0]))}else{var I=c.getPointOn(S,C);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(M=vv(a,d,L,P,T.t))}i.lastFrameIndex=D[0]}else{var R=e===1||i.lastFrameIndex>0?D[0]:0,I=df(f,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var O=zr(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=bC(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Rt(h.current,a,o,l),d=Rt(h.stackedOnCurrent,a,o,l),p=Rt(h.next,a,o,l),g=Rt(h.stackedOnNext,a,o,l)),vf(v,p)>3e3||c&&vf(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),ge(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),ge(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},VC=function(r){return Math.round(r.length/2)};function Op(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;G(i)?d=BC[i]:$(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,VC))}}}}}function wD(r){r.registerChartView(NC),r.registerSeriesModel(_C),r.registerLayout(Sl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Op("line"))}var Np=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)w(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;bg){_=(x+y)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(lt);lt.registerClass(Np);const Wa=Np;var zC=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ci(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ps(Wa.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}),t}(Wa);const FC=zC;var GC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),WC=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new GC},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Pa(i,e,X(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Oe),gf={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=io(t.x,r.x),s=oo(t.x+t.width,a),l=io(t.y,r.y),u=oo(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=oo(t.r,r.r),i=io(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},mf={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new ve({shape:B({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?pf:or,c=new u({shape:n,z2:1});c.name="item";var f=Bp(a);if(c.calculateTextPosition=HC(f,{isRoundCap:u===pf}),i){var h=c.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?ge:De)(c,{shape:d},i)}return c}};function XC(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function yf(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ge:De)(e,{shape:l},t,a,null);var c=t?r.baseAxis.model:null;(o?ge:De)(e,{shape:u},c,a)}function _f(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function qC(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Bp(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function xf(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=fn(n.getModel("itemStyle"),c,!0);B(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Vr(n);Br(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:gi(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,UC(r,g==="outside"?v:g,Bp(o),n.get(["label","rotate"]))}jm(p,d,i.getRawValue(e),function(y){return wp(t,y)});var m=n.getModel(["emphasis"]);Lr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),wn(r,n),qC(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function jC(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var QC=function(){function r(){}return r}(),bf=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new QC},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?e:null},30,!1);function JC(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Vp(r,t,e){if(ml(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function eT(r,t,e){var n=r.type==="polar"?or:ve;return new n({shape:Vp(t,e,r),silent:!0,z2:0})}const tT=$C;function CD(r){r.registerChartView(tT),r.registerSeriesModel(FC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(md,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Op("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Tf=Math.PI*2,ga=Math.PI/180;function zp(r,t){return Ft(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Fp(r,t){var e=zp(r,t),n=r.get("center"),a=r.get("radius");N(a)||(a=[0,a]);var i=ee(e.width,t.getWidth()),o=ee(e.height,t.getHeight()),s=Math.min(i,o),l=ee(a[0],s/2),u=ee(a[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else N(n)||(n=[n,n]),c=ee(n[0],i)+e.x,f=ee(n[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function rT(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=zp(n,e),s=Fp(n,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*ga,v=n.get("endAngle"),d=n.get("padAngle")*ga;v=v==="auto"?h-Tf:-v*ga;var p=n.get("minAngle")*ga,g=p+d,m=0;a.each(i,function(O){!isNaN(O)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;Ig(D,!S),h=D[0],v=D[1];var M=Math.abs(v-h),I=M,L=0,P=h;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(O,W){var k;if(isNaN(O)){a.setItemLayout(W,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?k=y===0&&x?_:O*_:k=M/m,kk?(z=P+T*k/2,H=z):(z=P+A,H=E-A),a.setItemLayout(W,{angle:k,startAngle:z,endAngle:H,clockwise:S,cx:l,cy:u,r0:f,r:b?Ot(O,C,[f,c]):c}),P=E}),Ie?m:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,C=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function so(r){return r.position==="center"}function oT(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*aT,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),M=t.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),O=ee(I.get("edgeDistance"),u),W=I.get("bleedMargin"),k=M.getModel("labelLine"),E=k.get("length");E=ee(E,u);var z=k.get("length2");if(z=ee(z,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":q>0?"left":"right"}var Tt=Math.PI,ft=0,Ur=I.get("rotate");if(le(Ur))ft=Ur*(Tt/180);else if(L==="center")ft=0;else if(Ur==="radial"||Ur===!0){var Jp=q<0?-H+Tt:-H;ft=Jp}else if(Ur==="tangential"&&L!=="outside"&&L!=="outer"){var ur=Math.atan2(q,j);ur<0&&(ur=Tt*2+ur);var eg=j>0;eg&&(ur=Tt+ur),ft=ur-Tt}if(i=!!ft,D.x=re,D.y=Se,D.rotation=ft,D.setStyle({verticalAlign:"middle"}),Ct){D.setStyle({align:wt});var mi=D.states.select;mi&&(mi.x+=D.x,mi.y+=D.y)}else{var Yr=D.getBoundingRect().clone();Yr.applyTransform(D.getComputedTransform());var bl=(D.style.margin||0)+2.1;Yr.y-=bl/2,Yr.height+=bl,e.push({label:D,labelLine:A,position:L,len:E,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new be(q,j),linePoints:me,textAlign:wt,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:W,rect:Yr,unconstrainedWidth:Yr.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Ct})}}),!i&&r.get("avoidLabelOverlap")&&iT(e,n,a,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(Oe);const uT=lT;function Wp(r,t,e){t=N(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=ld(n,t).dimensions,i=new sd(a,r);return i.initData(n,e),i}var cT=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const fT=cT;var vT=ue(),hT=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new fT(ie(this.getData,this),ie(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Wp(this,{coordDimensions:["value"],encodeDefaulter:J(Dy,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=vT(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Gg(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t}(lt);const dT=hT;function pT(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(le(o)&&!isNaN(o)&&o<0)})}}}function TD(r){r.registerChartView(uT),r.registerSeriesModel(dT),p_("pie",r.registerAction),r.registerLayout(J(rT,"pie")),r.registerProcessor(nT("pie")),r.registerProcessor(pT("pie"))}var gT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ci(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t}(lt);const mT=gT;var Hp=4,yT=function(){function r(){}return r}(),_T=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new yT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(e>=f&&n>=h&&e<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const xT=ST;var bT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Sl("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new xT:new Cp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Oe);const wT=bT;function DD(r){_t(Xd),r.registerSeriesModel(mT),r.registerChartView(wT),r.registerLayout(Sl("scatter"))}var CT=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[a,i],d=v[c].get("type"),p=v[1-c].get("type"),g=t.data;if(g&&l){var m=[];w(g,function(S,b){var x;N(S)?(x=S.slice(),S.unshift(b)):N(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:$o(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:$o(p),dimsDef:y.slice()}];return Wp(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:J(eh,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),TT=["color","borderColor"],DT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){Gn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Af(u,f))return;var h=lo(f,c,!0);De(h,{shape:{points:f.ends}},e,c),uo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var v=n.getItemLayout(c);if(s&&Af(u,v)){i.remove(h);return}h?(ge(h,{shape:{points:v.ends}},e,c),Ka(h)):h=lo(v),uo(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Mf(e,this.group);var n=e.get("clip",!0)?_l(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=a.getItemLayout(o),l=lo(s);uo(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){Mf(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Oe),AT=function(){function r(){}return r}(),MT=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new AT},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(_e);function lo(r,t,e){var n=r.ends;return new MT({shape:{points:e?IT(n,r):n},z2:100})}function Af(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(TT);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const PT=DT;var Up=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.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},t}(lt);St(Up,CT,!0);const RT=Up;function kT(r){!r||!N(r.series)||w(r.series,function(t){Y(t)&&t.type==="k"&&(t.type="candlestick")})}var ET=["itemStyle","borderColor"],OT=["itemStyle","borderColor0"],NT=["itemStyle","borderColorDoji"],BT=["itemStyle","color"],VT=["itemStyle","color0"],zT={seriesType:"candlestick",plan:Hn(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?BT:VT)}function n(i,o){return o.get(i===0?NT:i>0?ET:OT)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");B(f,c)}}}}}};const FT=zT;var GT={seriesType:"candlestick",plan:Hn(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=WT(r,e),a=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],f=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),S=y.get(u,m),b=y.get(c,m),x=y.get(f,m),C=y.get(h,m),T=Math.min(S,b),D=Math.max(S,b),A=W(T,_),M=W(D,_),I=W(x,_),L=W(C,_),P=[];k(P,M,0),k(P,A,1),P.push(z(L),z(M),z(I),z(A));var R=g.getItemModel(m),O=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:If(y,m,S,b,c,O),initBaseline:S>b?M[i]:A[i],ends:P,brushRect:E(x,C,_)})}function W(H,q){var j=[];return j[a]=q,j[i]=H,isNaN(q)||isNaN(H)?[NaN,NaN]:t.dataToPoint(j)}function k(H,q,j){var re=q.slice(),Se=q.slice();re[a]=_a(re[a]+n/2,1,!1),Se[a]=_a(Se[a]-n/2,1,!0),j?H.push(re,Se):H.push(Se,re)}function E(H,q,j){var re=W(H,j),Se=W(q,j);return re[a]-=n/2,Se[a]-=n/2,{x:re[0],y:re[1],width:n,height:Se[1]-re[1]}}function z(H){return H[a]=_a(H[a],1),H}}function d(p,g){for(var m=nt(p.count*4),y=0,_,S=[],b=[],x,C=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var D=C.get(s,x),A=C.get(u,x),M=C.get(c,x),I=C.get(f,x),L=C.get(h,x);if(isNaN(D)||isNaN(I)||isNaN(L)){m[y++]=NaN,y+=3;continue}m[y++]=If(C,x,A,M,c,T),S[a]=D,S[i]=I,_=t.dataToPoint(S,null,b),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function If(r,t,e,n,a,i){var o;return e>n?o=-1:e0?r.get(a,t-1)<=n?1:-1:1,o}function WT(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=ee(ae(r.get("barMaxWidth"),a),a),o=ee(ae(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?ee(s,a):Math.max(Math.min(a/2,i),o)}const HT=GT;function AD(r){r.registerChartView(PT),r.registerSeriesModel(RT),r.registerPreprocessor(kT),r.registerVisual(FT),r.registerLayout(HT)}var UT=["itemStyle","borderWidth"],Lf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],vo=new Ha,YT=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Lf[+c],categoryDim:Lf[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Rf(o,d),g=Pf(o,d,p,h),m=kf(o,h,g);o.setItemGraphicEl(d,m),i.add(m),Of(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=Rf(o,d),y=Pf(o,d,m,h),_=qp(o,y);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?QT(g,h,y):g=kf(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),Of(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&Ef(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=e.get("clip",!0)?_l(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Ef(i,X(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Oe);function Pf(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};$T(e,i,a,n,h),XT(r,t,a,i,o,h.boundingLength,h.pxSign,c,n,h),ZT(e,h.symbolScale,u,n,h);var v=h.symbolSize,d=Zs(e.get("symbolOffset"),v);return KT(e,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function $T(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(N(o)){var f=[ho(s,o[0])-l,ho(s,o[1])-l];f[1]0?1:-1}function ho(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function XT(r,t,e,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(e[f.wh]),v=r.getItemVisual(t,"symbolSize"),d;N(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=ee(d[f.index],h),d[c.index]=ee(d[c.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function ZT(r,t,e,n,a){var i=r.get(UT)||0;i&&(vo.attr({scaleX:t[0],scaleY:t[1],rotation:e}),vo.updateTransform(),i/=vo.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function KT(r,t,e,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Ar(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=ee(y,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,C=iv(n),T=C?n:Nf((m+x)/b),D=m-T*p;S=D/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!C&&n!=="fixed"&&(T=u?Nf((Math.abs(u)+x)/b):0),g=T*b-x,f.repeatTimes=T,f.symbolMargin=S}var A=d*(g/2),M=f.pathPosition=[];M[h.index]=e[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=e[h.xy],I[v.index]=e[v.xy];var L=f.barRectShape=B({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(M[v.index]+A)),L[h.wh]=e[h.wh];var P=f.clipShape={};P[h.xy]=-e[h.xy],P[h.wh]=c.ecSize[h.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function Yp(r){var t=r.symbolPatternSize,e=Gt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function $p(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(xl(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Xp(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Dr(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=Yp(e),a.add(i),Dr(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function Zp(r,t,e){var n=B({},t.barRectShape),a=r.__pictorialBarRect;a?Dr(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new ve({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function Kp(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)ge(a,{shape:i},s,l);else{i[o.wh]=0,a=new ve({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Ls[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Rf(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=qT,e.isAnimationEnabled=jT,e}function qT(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function jT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function kf(r,t,e,n){var a=new pe,i=new pe;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?$p(a,t,e):Xp(a,t,e),Zp(a,e,n),Kp(a,t,e,n),a.__pictorialShapeStr=qp(r,e),a.__pictorialSymbolMeta=e,a}function QT(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;ge(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?$p(r,t,e,!0):Xp(r,t,e,!0),Zp(r,e,!0),Kp(r,t,e,!0)}function Ef(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];xl(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(i,function(o){Cn(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function qp(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function xl(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Dr(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Ls[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Of(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");xl(r,function(p){if(p instanceof Nr){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Br(d,Vr(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:gi(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Lr(r,c,f,i.get("disabled"))}function Nf(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const JT=YT;var eD=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ps(Wa.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"}}}),t}(Wa);const tD=eD;function MD(r){r.registerChartView(JT),r.registerSeriesModel(tD),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,J(md,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yd("pictorialBar"))}function Bf(r){return N(r[0])}function Vf(r,t){for(var e=[],n=r.length,a=0;a=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var rD={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Bf(r)&&(u=r,c=t),Bf(t)&&(u=t,c=r);function f(m,y,_,S,b){var x=m.many,C=m.one;if(x.length===1&&!b){var T=y?x[0]:C,D=y?C:x[0];if(Pg(T))f({many:[T],one:D},!0,_,S,!0);else{var A=s?te({delay:s(_,S)},l):l;Rg(T,D,A),i(T,D,T,D,A)}}else for(var M=te({dividePath:rD[e],individualDelay:s&&function(W,k,E,z){return s(W+_,S)}},l),I=y?kg(x,C,M):Eg(C,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,O=0;Ot.length,v=u?Vf(c,u):Vf(h?t:r,[h?r:t]),d=0,p=0;pjp))for(var i=n.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof _e&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function Hf(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Uf(r){return N(r)?r.sort().join(","):r}function Et(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function uD(r,t){var e=U(),n=U(),a=U();return w(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Hf(i),c=Uf(u);n.set(c,{dataGroupId:s,data:l}),N(u)&&w(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),w(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Hf(i),u=Uf(l),c=n.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Et(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Et(s),data:s}]});else if(N(l)){var f=[];w(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Et(p.data),data:p.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Et(s)}]})}else{var h=a.get(l);if(h){var v=e.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Et(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Et(s)})}}}}),e}function Yf(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Et(t.oldData[s]),groupIdDim:o.dimension})}),w(he(r.to),function(o){var s=Yf(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Et(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Qp(a,i,n)}function ID(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){w(he(n.seriesTransition),function(a){w(he(a.to),function(i){for(var o=n.updatedSeries,s=0;s"u"||!o?r:o(Uint8Array),s={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&o?o([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":N,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&o?o(o([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u||!o?r:o(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u||!o?r:o(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&o?o(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":P,"%ThrowTypeError%":_,"%TypedArray%":C,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(o)try{null.error}catch(i){var M=o(o(i));s["%Error.prototype%"]=M}var j=function i(t){var n;if(t==="%AsyncFunction%")n=R("async function () {}");else if(t==="%GeneratorFunction%")n=R("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=R("async function* () {}");else if(t==="%AsyncGenerator%"){var e=i("%AsyncGeneratorFunction%");e&&(n=e.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=i("%AsyncGenerator%");a&&o&&(n=o(a.prototype))}return s[t]=n,n},B={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=T,F=k,W=v.call(Function.call,Array.prototype.concat),D=v.call(Function.apply,Array.prototype.splice),x=v.call(Function.call,String.prototype.replace),b=v.call(Function.call,String.prototype.slice),J=v.call(Function.call,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,q=function(t){var n=b(t,0,1),e=b(t,-1);if(n==="%"&&e!=="%")throw new P("invalid intrinsic syntax, expected closing `%`");if(e==="%"&&n!=="%")throw new P("invalid intrinsic syntax, expected opening `%`");var a=[];return x(t,V,function(p,l,y,m){a[a.length]=y?x(m,z,"$1"):l||p}),a},L=function(t,n){var e=t,a;if(F(B,e)&&(a=B[e],e="%"+a[0]+"%"),F(s,e)){var p=s[e];if(p===A&&(p=j(e)),typeof p>"u"&&!n)throw new d("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:e,value:p}}throw new P("intrinsic "+t+" does not exist!")},X=function(t,n){if(typeof t!="string"||t.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new d('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,t)===null)throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=q(t),a=e.length>0?e[0]:"",p=L("%"+a+"%",n),l=p.name,y=p.value,m=!1,U=p.alias;U&&(a=U[0],D(e,W([0,1],U)));for(var S=1,g=!0;S=e.length){var I=c(y,f);g=!!I,g&&"get"in I&&!("originalValue"in I.get)?y=I.get:y=y[f]}else g=F(y,f),y=y[f];g&&!m&&(s[l]=y)}}return y};export{X as g}; +import{h as O}from"./has-symbols@1.0.3-eVqrYdw7.js";import{h as G}from"./has-proto@1.0.1-CgulNy6r.js";import{f as T}from"./function-bind@1.1.2-B8G-TZ45.js";import{s as k}from"./has@1.0.3-B6xjtObm.js";var r,P=SyntaxError,N=Function,d=TypeError,R=function(i){try{return N('"use strict"; return ('+i+").constructor;")()}catch{}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var w=function(){throw new d},_=c?function(){try{return arguments.callee,w}catch{try{return c(arguments,"callee").get}catch{return w}}}():w,u=O(),$=G(),o=Object.getPrototypeOf||($?function(i){return i.__proto__}:null),A={},C=typeof Uint8Array>"u"||!o?r:o(Uint8Array),s={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&o?o([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":N,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&o?o(o([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u||!o?r:o(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u||!o?r:o(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&o?o(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":P,"%ThrowTypeError%":_,"%TypedArray%":C,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(o)try{null.error}catch(i){var M=o(o(i));s["%Error.prototype%"]=M}var j=function i(t){var n;if(t==="%AsyncFunction%")n=R("async function () {}");else if(t==="%GeneratorFunction%")n=R("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=R("async function* () {}");else if(t==="%AsyncGenerator%"){var e=i("%AsyncGeneratorFunction%");e&&(n=e.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=i("%AsyncGenerator%");a&&o&&(n=o(a.prototype))}return s[t]=n,n},B={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=T,F=k,W=v.call(Function.call,Array.prototype.concat),D=v.call(Function.apply,Array.prototype.splice),x=v.call(Function.call,String.prototype.replace),b=v.call(Function.call,String.prototype.slice),J=v.call(Function.call,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,q=function(t){var n=b(t,0,1),e=b(t,-1);if(n==="%"&&e!=="%")throw new P("invalid intrinsic syntax, expected closing `%`");if(e==="%"&&n!=="%")throw new P("invalid intrinsic syntax, expected opening `%`");var a=[];return x(t,V,function(p,l,y,m){a[a.length]=y?x(m,z,"$1"):l||p}),a},L=function(t,n){var e=t,a;if(F(B,e)&&(a=B[e],e="%"+a[0]+"%"),F(s,e)){var p=s[e];if(p===A&&(p=j(e)),typeof p>"u"&&!n)throw new d("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:e,value:p}}throw new P("intrinsic "+t+" does not exist!")},X=function(t,n){if(typeof t!="string"||t.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new d('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,t)===null)throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=q(t),a=e.length>0?e[0]:"",p=L("%"+a+"%",n),l=p.name,y=p.value,m=!1,U=p.alias;U&&(a=U[0],D(e,W([0,1],U)));for(var S=1,g=!0;S=e.length){var I=c(y,f);g=!!I,g&&"get"in I&&!("originalValue"in I.get)?y=I.get:y=y[f]}else g=F(y,f),y=y[f];g&&!m&&(s[l]=y)}}return y};export{X as g}; diff --git a/assets/get-intrinsic@1.2.1-5uWIhZOj.js.gz b/assets/get-intrinsic@1.2.1-5uWIhZOj.js.gz new file mode 100644 index 00000000..7b66848a Binary files /dev/null and b/assets/get-intrinsic@1.2.1-5uWIhZOj.js.gz differ diff --git a/assets/github-cVhKF5HM.js b/assets/github-B4ARmChV.js similarity index 100% rename from assets/github-cVhKF5HM.js rename to assets/github-B4ARmChV.js diff --git a/assets/github-cVhKF5HM.js.gz b/assets/github-B4ARmChV.js.gz similarity index 100% rename from assets/github-cVhKF5HM.js.gz rename to assets/github-B4ARmChV.js.gz diff --git a/assets/google-Mjnm1oio.js b/assets/google-GEcrFhWr.js similarity index 100% rename from assets/google-Mjnm1oio.js rename to assets/google-GEcrFhWr.js diff --git a/assets/has-proto@1.0.1-dzJH2Y5C.js b/assets/has-proto@1.0.1-CgulNy6r.js similarity index 100% rename from assets/has-proto@1.0.1-dzJH2Y5C.js rename to assets/has-proto@1.0.1-CgulNy6r.js diff --git a/assets/has-symbols@1.0.3-fNtejGuA.js b/assets/has-symbols@1.0.3-eVqrYdw7.js similarity index 100% rename from assets/has-symbols@1.0.3-fNtejGuA.js rename to assets/has-symbols@1.0.3-eVqrYdw7.js diff --git a/assets/has@1.0.3-vfHSusM3.js b/assets/has@1.0.3-B6xjtObm.js similarity index 52% rename from assets/has@1.0.3-vfHSusM3.js rename to assets/has@1.0.3-B6xjtObm.js index b99f6053..9f06dc34 100644 --- a/assets/has@1.0.3-vfHSusM3.js +++ b/assets/has@1.0.3-B6xjtObm.js @@ -1 +1 @@ -import{f as r}from"./function-bind@1.1.2-HMk2skFd.js";var o=r,a=o.call(Function.call,Object.prototype.hasOwnProperty);export{a as s}; +import{f as r}from"./function-bind@1.1.2-B8G-TZ45.js";var o=r,a=o.call(Function.call,Object.prototype.hasOwnProperty);export{a as s}; diff --git a/assets/hooks-8Eav2rzB.css.gz b/assets/hooks-8Eav2rzB.css.gz deleted file mode 100644 index 1aa24dfe..00000000 Binary files a/assets/hooks-8Eav2rzB.css.gz and /dev/null differ diff --git a/assets/hooks-8Eav2rzB.css b/assets/hooks-Bn_fmFnB.css similarity index 81% rename from assets/hooks-8Eav2rzB.css rename to assets/hooks-Bn_fmFnB.css index 0d6c1be0..22bbabd5 100644 --- a/assets/hooks-8Eav2rzB.css +++ b/assets/hooks-Bn_fmFnB.css @@ -1 +1 @@ -@charset "UTF-8";.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid{-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.ray-icon{position:relative;width:var(--ray-icon-width);height:var(--ray-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;fill:currentColor;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--ray-icon-depth);cursor:var(--ray-icon-cursor)}.ray-icon svg[RayIconAttribute=ray-icon]{width:var(--ray-icon-width);height:var(--ray-icon-height);fill:currentColor}.ray-icon-path__animate{stroke-dasharray:var(--ray-icon-path-length);stroke-dashoffset:var(--ray-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--ray-iframe-width);height:var(--ray-iframe-height);-webkit-box-sizing:border-box;box-sizing:border-box;border:var(--ray-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.ray-qrcode{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.ray-qrcode .ray-qrcode__error{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:10;background-color:#000000b3;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:.938rem 0;border-radius:.156rem}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-content{text-align:center;font-size:.938rem;font-weight:500;color:#fff}.ray-qrcode.ray-qrcode--loading img,.ray-qrcode.ray-qrcode--error img{-webkit-filter:blur(.208rem);filter:blur(.208rem)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .ray-icon.r-table__c-tool-icon--active{color:var(--ray-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-layout-full{position:fixed;top:0;right:0;bottom:0;left:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:.833rem}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.ray-template--light .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 -1px .104rem #0000001f}.ray-template--dark .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 -1px .104rem #000000b8}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.1215686275);box-shadow:.104rem 0 .417rem #0000001f}.ray-template--dark .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.7215686275);box-shadow:.104rem 0 .417rem #000000b8}.ray-menu__logo{height:3.333rem;padding:0 .938rem 0 1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:.417rem .625rem;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:4.167rem;height:4.167rem;border-radius:50%;cursor:pointer;z-index:99;right:-2.083rem;top:-2.083rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .ray-icon{-webkit-transform:translate(-.729rem,.729rem);-ms-transform:translate(-.729rem,.729rem);transform:translate(-.729rem,.729rem)}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out{color:#2c2a28;background:#757473}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out:hover{background-color:#d5d3d1;color:#44403c}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out{color:#eae9e8;background:#a19f9d}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out:hover{background-color:#44403c;color:#d5d3d1}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.layout-footer-wrapper{height:2.5rem;text-align:center;line-height:2.5rem}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:3.333rem;padding:0 .938rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 1px .104rem #0000001f}.ray-template--dark .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 1px .104rem #000000b8}.tooltip-text__icon{cursor:pointer;outline:none;border:none}.setting-drawer__space{width:100%}.setting-drawer__space .n-descriptions-table-content{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(1.042rem);-ms-transform:translateX(1.042rem);transform:translate(1.042rem)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:33.854rem;left:50%;margin-left:-16.927rem;top:3.125rem}.global-search .global-search__wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:.313rem;min-width:29.167rem}.global-search .global-search__wrapper .global-search__card .ray-icon{color:var(--ray-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:.833rem .625rem .625rem}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:4.688rem}.global-search .global-search__wrapper .global-search__card .content-item{padding:.625rem;border-radius:.313rem;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:1.25rem;border-radius:.208rem;border:1px solid var(--n-border-color);padding:.156rem .313rem;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);-ms-transform:scale(.75);transform:scale(.75);font-weight:bolder}.global-search .global-search__wrapper .global-search__card .global-search__card-content .content-item.content-item--active,.global-search .global-search__wrapper .global-search__card .global-search__card-content .content-item:hover{background-color:var(--ray-theme-primary-fade-color)}.app-avatar{cursor:var(--app-avatar-cursor)}.app-avatar .app-avatar__name{font-weight:500}.menu-tag{height:2.396rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.313rem 0}.menu-tag .menu-tag-space{width:calc(100% - .938rem);padding:.469rem}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 4.896rem)}.menu-tag .menu-tag-space .ray-icon{cursor:pointer}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-setting{width:1.458rem;height:1.042rem}.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{padding:.365rem .521rem}.menu-tag .menu-tag__btn .menu-tag__btn-icon--hidden{display:none!important}.menu-tag .menu-tag__btn .menu-tag__btn-icon{display:inline;margin-left:0;width:0;height:0;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);overflow:hidden;opacity:0}.menu-tag .menu-tag__btn .menu-tag__btn-icon .ray-icon{-webkit-transform:translate(-1px,0px);-ms-transform:translate(-1px,0px);transform:translate(-1px)}.menu-tag .menu-tag__btn:hover .menu-tag__btn-icon{width:.729rem;height:.729rem;margin-left:.26rem;font-size:.625rem;background-color:#0000001f;border-radius:50%;padding:1px;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);opacity:1}.menu-tag__dropdown .menu-tag__icon{width:.938rem;height:.938rem}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.1215686275);box-shadow:0 .104rem .104rem #0000001f}.ray-template--dark .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.7215686275);box-shadow:0 .104rem .104rem #000000b8} +@charset "UTF-8";.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid{-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.ray-icon{position:relative;width:var(--ray-icon-width);height:var(--ray-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;fill:currentColor;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--ray-icon-depth);cursor:var(--ray-icon-cursor)}.ray-icon svg[RayIconAttribute=ray-icon]{width:var(--ray-icon-width);height:var(--ray-icon-height);fill:currentColor}.ray-icon-path__animate{stroke-dasharray:var(--ray-icon-path-length);stroke-dashoffset:var(--ray-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--ray-iframe-width);height:var(--ray-iframe-height);-webkit-box-sizing:border-box;box-sizing:border-box;border:var(--ray-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.ray-qrcode{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.ray-qrcode .ray-qrcode__error{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:10;background-color:#000000b3;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:.938rem 0;border-radius:.156rem}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-content{text-align:center;font-size:.938rem;font-weight:500;color:#fff}.ray-qrcode.ray-qrcode--loading img,.ray-qrcode.ray-qrcode--error img{-webkit-filter:blur(.208rem);filter:blur(.208rem)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .ray-icon.r-table__c-tool-icon--active{color:var(--ray-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-layout-full{position:fixed;top:0;right:0;bottom:0;left:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:.833rem}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.ray-template--light .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 -1px .104rem #0000001f}.ray-template--dark .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 -1px .104rem #000000b8}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.1215686275);box-shadow:.104rem 0 .417rem #0000001f}.ray-template--dark .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.7215686275);box-shadow:.104rem 0 .417rem #000000b8}.ray-menu__logo{height:3.333rem;padding:0 .938rem 0 1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:.417rem .625rem;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:4.167rem;height:4.167rem;border-radius:50%;cursor:pointer;z-index:99;right:-2.083rem;top:-2.083rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .ray-icon{-webkit-transform:translate(-.729rem,.729rem);-ms-transform:translate(-.729rem,.729rem);transform:translate(-.729rem,.729rem)}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out{color:#2c2a28;background:#757473}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out:hover{background-color:#d5d3d1;color:#44403c}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out{color:#eae9e8;background:#a19f9d}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out:hover{background-color:#44403c;color:#d5d3d1}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.layout-footer-wrapper{height:2.5rem;text-align:center;line-height:2.5rem}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:3.333rem;padding:0 .938rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 1px .104rem #0000001f}.ray-template--dark .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 1px .104rem #000000b8}.tooltip-text__icon{cursor:pointer;outline:none;border:none}.setting-drawer__space{width:100%}.setting-drawer__space .n-descriptions-table-content{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(1.042rem);-ms-transform:translateX(1.042rem);transform:translate(1.042rem)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:33.854rem;left:50%;margin-left:-16.927rem;top:3.125rem}.global-search .global-search__wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:.313rem;min-width:29.167rem}.global-search .global-search__wrapper .global-search__card .ray-icon{color:var(--ray-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:.833rem .625rem .625rem}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:4.688rem}.global-search .global-search__wrapper .global-search__card .content-item{padding:.625rem;border-radius:.313rem;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:1.25rem;border-radius:.208rem;border:1px solid var(--n-border-color);padding:.156rem .313rem;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);-ms-transform:scale(.75);transform:scale(.75);font-weight:bolder}.n-flex.global-search__card-content .content-item.content-item--active,.n-flex.global-search__card-content .content-item:hover{background-color:var(--ray-theme-primary-fade-color)}.n-flex.global-search__card-content .content-item{position:relative;-webkit-transition:var(--r-bezier);transition:var(--r-bezier)}.n-flex.global-search__card-content .content-item .content-item-icon__enter{position:absolute;width:.938rem;height:.938rem;right:.833rem;opacity:0}.n-flex.global-search__card-content .content-item.content-item--active .content-item-icon__enter,.n-flex.global-search__card-content .content-item:hover .content-item-icon__enter{opacity:1}.app-avatar{cursor:var(--app-avatar-cursor)}.app-avatar .app-avatar__name{font-weight:500}.menu-tag{height:2.396rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.313rem 0}.menu-tag .menu-tag-space{width:calc(100% - .938rem);padding:.469rem}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 4.896rem)}.menu-tag .menu-tag-space .ray-icon{cursor:pointer}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-setting{width:1.458rem;height:1.042rem}.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{padding:.365rem .521rem}.menu-tag .menu-tag__btn .menu-tag__btn-icon--hidden{display:none!important}.menu-tag .menu-tag__btn .menu-tag__btn-icon{display:inline;margin-left:0;width:0;height:0;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);overflow:hidden;opacity:0}.menu-tag .menu-tag__btn .menu-tag__btn-icon .ray-icon{-webkit-transform:translate(-1px,0px);-ms-transform:translate(-1px,0px);transform:translate(-1px)}.menu-tag .menu-tag__btn:hover .menu-tag__btn-icon{width:.729rem;height:.729rem;margin-left:.26rem;font-size:.625rem;background-color:#0000001f;border-radius:50%;padding:1px;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);opacity:1}.menu-tag__dropdown .menu-tag__icon{width:.938rem;height:.938rem}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.1215686275);box-shadow:0 .104rem .104rem #0000001f}.ray-template--dark .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.7215686275);box-shadow:0 .104rem .104rem #000000b8} diff --git a/assets/hooks-Bn_fmFnB.css.gz b/assets/hooks-Bn_fmFnB.css.gz new file mode 100644 index 00000000..6205e63d Binary files /dev/null and b/assets/hooks-Bn_fmFnB.css.gz differ diff --git a/assets/hooks-C9tZi_HS.js b/assets/hooks-C9tZi_HS.js new file mode 100644 index 00000000..ea26e361 --- /dev/null +++ b/assets/hooks-C9tZi_HS.js @@ -0,0 +1,17 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/en-US-B1iKqN9o.js","assets/dayjs@1.11.10-BYZwCyGy.js","assets/awesome-qr@2.1.5-rc.0-Ds7AaOTE.js","assets/canvas@2.11.2-CVRTzJty.js","assets/js-binary-schema-parser@2.0.3-D0akQrQ7.js","assets/print-js@1.6.0-C3lAJnMa.js","assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js","assets/lodash@4.17.21-CM7ROh5r.js","assets/js-cookie@3.0.5-Z_8Sd105.js","assets/screenfull@5.2.0-DuGDi0R7.js","assets/qs@6.11.2-5yoVYNs7.js","assets/side-channel@1.0.4-DiPXwnX9.js","assets/get-intrinsic@1.2.1-5uWIhZOj.js","assets/has-symbols@1.0.3-eVqrYdw7.js","assets/has-proto@1.0.1-CgulNy6r.js","assets/function-bind@1.1.2-B8G-TZ45.js","assets/has@1.0.3-B6xjtObm.js","assets/call-bind@1.0.2-BD5aDJOM.js","assets/currency.js@2.0.4-9OAR_aOO.js","assets/lodash-es@4.17.21-C8H4BJij.js","assets/@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js","assets/@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js","assets/utils-B_UBRWj5.js","assets/interactjs@1.10.26-DmsZVOf4.js","assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js","assets/dom-to-image@2.6.0-CaeIWam-.js","assets/echarts@5.5.0-BEyY33Zi.js","assets/zrender@5.5.0-JN1hODMT.js","assets/tslib@2.3.0-BDyQ-Jie.js","assets/@vue_runtime-core@3.4.21-DW3iHaBZ.js","assets/@vue_reactivity@3.4.21-8_tu8c_o.js","assets/@vue_shared@3.4.21-DCcVmNGw.js","assets/zh-CN-DfDWFdbg.js","assets/index-SqeT1aYm.js","assets/index-DsYRgjoY.js","assets/index-DeeQXRbp.css","assets/index-B5Z57bIp.js","assets/instance-GflPbm5N.js","assets/index-CTOeMyqn.css","assets/index-D9cLjbAP.js","assets/index-BAtuyJYR.js","assets/index-BwFxO02U.js","assets/index-Bn_UToez.js","assets/index-BqPIKfai.css","assets/index-nyLrq_TO.js","assets/index-C5KZd3-c.js","assets/index-BZYAeO8n.js","assets/index-iv2cRqsP.js","assets/index-MIifIf1C.js","assets/ray-CES7ACvF.js","assets/index-CoqJ_eRa.js","assets/index-cMo-v_SD.css","assets/index-4j_Rv2CP.js","assets/index-DlFOimWs.js","assets/index-Dig957GB.css","assets/index-BtQWgsIO.js","assets/index-CIq6_pk2.css","assets/index-BatqiR9W.js","assets/index-BagNRHLc.js","assets/index-CciwGHqu.js","assets/index-G2qqDeP0.css","assets/index-DKh0jCzy.js","assets/index-BhnoEzFG.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +var Mo=Object.defineProperty;var Do=(e,t,o)=>t in e?Mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var $e=(e,t,o)=>(Do(e,typeof t!="symbol"?t+"":t,o),o);import{s as Ve,t as Me,c as zo,i as Io}from"./lodash-es@4.17.21-C8H4BJij.js";import{o as jo,u as le,a as Eo,b as De,c as Se,d as $o}from"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import{d as B}from"./dayjs@1.11.10-BYZwCyGy.js";import{p as Bo}from"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as ie,i as q,s as ze,c as Fo,a as z,r as ae,b as A,d as Wo,u as fe,e as Ko,p as Uo,f as ge,h as Be,j as qo,k as Ae,q as Pe,l as Go,m as Ho,n as Yo,o as Xo,w as Zo,t as Qo,v as W,x as Jo}from"./utils-B_UBRWj5.js";import{l as en}from"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import{u as et}from"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{i as Fe}from"./interactjs@1.10.26-DmsZVOf4.js";import{s as tn}from"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import{d as ne}from"./dom-to-image@2.6.0-CaeIWam-.js";import{r as on,u as re,i as nn,a as rn,b as an,c as ln,d as sn,e as cn,f as un,g as dn,h as pn,j as mn,k as hn,l as fn,m as gn,n as yn,o as bn,p as vn,q as Vn,s as Sn}from"./echarts@5.5.0-BEyY33Zi.js";import{f as _n}from"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import{c as tt,o as ot,a as nt}from"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";const Nl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const r=e[n].default;let a=n.replace(`./${t}/`,"").replace(/^\.\//,"");const i=a.lastIndexOf(".");a=a.substring(0,i);const l=a.split("/"),s=l.shift(),u=l.join(".");s&&(u?(Ve(o,s,o[s]||{}),Ve(o[s],u,r)):Ve(o,s,r||{}))}),o},wn="modulepreload",Cn=function(e){return"/ray-template/"+e},We={},O=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){const a=document.getElementsByTagName("link");r=Promise.all(o.map(i=>{if(i=Cn(i),i in We)return;We[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!n)for(let p=a.length-1;p>=0;p--){const f=a[p];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":wn,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((p,f)=>{c.addEventListener("load",p),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},Nn=(e,t)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Tn=async e=>{var o;const t={};for(const n of e){const r=await Nn(Object.assign({"../lang/en-US.ts":()=>O(()=>import("./en-US-B1iKqN9o.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),"../lang/zh-CN.ts":()=>O(()=>import("./zh-CN-DfDWFdbg.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))}),`../lang/${n.key}.ts`),a=n.key;a&&(t[a]=((o=r==null?void 0:r.default)==null?void 0:o.message)??{})}return t},Tl=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},rt={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},kl="",D={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},kn=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],E={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},at=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],On="zh-CN",xn="zh-CN",Rn={"zh-CN":"zh-cn","en-US":"en"},An="zh-cn",Ol={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},xl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},J=Vue.ref(null),Pn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Ln=["RLogin","ErrorPage","RayTemplateDoc"],de=["admin"],Rl=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),r=Vue.ref(!1),{clickOutside:a}=t??{},i=p=>{r.value=p},l=p=>{p.preventDefault(),i(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:b}=p;o.value=f,n.value=b,i(!0)})};a&&jo(e,p=>{a(p)});const s=le(e,"contextmenu",l,t),u=le(e,"click",()=>{i(!1)});return{stop:()=>{s(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(r),updateShow:i}},lt=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function K(e,t,o){lt[e]=t,o==null||o()}function X(e){return Vue.readonly(Vue.toRef(lt,e))}let F;const Mn=async()=>{const e=To(),t=await Tn(at);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:xn})},Al=async e=>{const t=await Mn();e.use(t),F=t},Ke=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,ee=e=>{if(!F)return{t:a=>Ke(e,a),locale:a=>{}};const{t,...o}=F.global;return{...o,t:(a,...i)=>a?!a.includes(".")&&!e?a:t(Ke(e,a),...i):"",locale:a=>{F.mode==="legacy"?F.global.locale=a:Vue.isRef(F.global.locale)?F.global.locale.value=a:F.global.locale=a}}},x=e=>e,Dn={path:"/dashboard",name:"RDashboard",component:()=>O(()=>import("./index-SqeT1aYm.js"),__vite__mapDeps([33,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,34,19,20,21,22,23,24,25,26,27,28,29,30,31,35])),meta:{i18nKey:x("menu.Dashboard"),icon:"dashboard",order:0}},zn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),In={path:"/axios",name:"RAxios",component:()=>O(()=>import("./index-B5Z57bIp.js"),__vite__mapDeps([36,6,7,2,3,4,8,9,10,11,12,13,14,15,16,17,37,22,18,1,5,19,20,21,23,24,25,26,27,28,29,30,31,38])),meta:{i18nKey:x("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},jn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),En={path:"/cache-demo",name:"CacheDemo",component:()=>O(()=>import("./index-D9cLjbAP.js"),__vite__mapDeps([39,22,18,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,5,19,20,21,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.CacheDemo"),icon:"other",order:3,extra:{label:"new"}}},$n=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Bn={path:"/context-menu",name:"ContextMenuDemo",component:()=>O(()=>import("./index-BAtuyJYR.js"),__vite__mapDeps([40,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.ContextMenu"),icon:"other",order:2}},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),Wn={path:"/directive",name:"RDirective",component:()=>O(()=>import("./index-rdKGIz_K.js"),__vite__mapDeps([])),meta:{i18nKey:x("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},Kn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),U=()=>O(()=>Promise.resolve().then(()=>va),void 0),Un={path:"/doc",name:"RDocLayout",component:U,meta:{i18nKey:x("menu.Doc"),icon:"doc",order:5},children:[{path:"doc-inside",name:"RDocInside",component:()=>O(()=>import("./index-BwFxO02U.js"),__vite__mapDeps([41,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.DocLocalInside")}},{path:"doc-outside",name:"RDoc",component:U,meta:{i18nKey:x("menu.Doc"),windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},{path:"doc-outside-local",name:"RDocLocal",component:U,meta:{i18nKey:x("menu.DocLocal"),windowOpen:"https://ray-template.yunkuangao.com/ray-template-doc/"}}]},qn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),Gn={path:"/echart",name:"REchart",component:()=>O(()=>import("./index-Bn_UToez.js"),__vite__mapDeps([42,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,43])),meta:{i18nKey:x("menu.Echart"),icon:"echart",order:1}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/iframe",name:"IframeDemo",component:()=>O(()=>import("./index-nyLrq_TO.js"),__vite__mapDeps([44,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"/mock-demo",name:"MockDemo",component:()=>O(()=>import("./index-C5KZd3-c.js"),__vite__mapDeps([45,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,37,22,19,20,21,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.Mock"),icon:"other",order:3,keepAlive:!1}},Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Jn={path:"/modal-demo",name:"ModalDemo",component:()=>O(()=>import("./index-BZYAeO8n.js"),__vite__mapDeps([46,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.Modal"),icon:"other",order:3}},er=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),tr={path:"/multi",name:"MultiMenu",component:U,meta:{i18nKey:x("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>O(()=>import("./index-BtZPyenx.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:U,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>O(()=>import("./index-B6a_PCdD.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:U,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>O(()=>import("./index-Cg1Whvge.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},or=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),nr={path:"/precision",name:"CalculatePrecision",component:()=>O(()=>import("./index-iv2cRqsP.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,22,18,19,20,21,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.CalculatePrecision"),icon:"other",order:2}},rr=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ar={path:"/qrcode",name:"RQRCode",component:()=>O(()=>import("./index-MIifIf1C.js"),__vite__mapDeps([48,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,49,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.QRCode"),icon:"other",order:3}},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),ir={path:"/rely",name:"Rely",component:U,meta:{i18nKey:x("menu.Rely"),icon:"rely",order:999},children:[{path:"rely-about",name:"RelyAbout",component:()=>O(()=>import("./index-CoqJ_eRa.js"),__vite__mapDeps([50,51])),meta:{i18nKey:x("menu.RelyAbout")}}]},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),cr={path:"/router-demo",name:"RouterDemoRoot",component:U,meta:{i18nKey:x("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",name:"RouterDemoHome",component:()=>O(()=>import("./index-4j_Rv2CP.js"),__vite__mapDeps([52,1,2,3,4,5,18,19,20,21,22,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,31])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",name:"RouterDemoDetail",component:()=>O(()=>import("./index-BRGdSJVO.js"),__vite__mapDeps([])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),dr={path:"/scroll-reveal",name:"ScrollReveal",component:()=>O(()=>import("./index-DlFOimWs.js"),__vite__mapDeps([53,54])),meta:{i18nKey:x("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},pr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),mr={path:"/svg-icons",name:"PreviewSVGIcons",component:()=>O(()=>import("./index-BtQWgsIO.js"),__vite__mapDeps([55,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,56])),meta:{i18nKey:x("menu.SvgIcon"),icon:"other",order:3}},hr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),fr={path:"/table",name:"TableView",component:()=>O(()=>import("./index-BatqiR9W.js"),__vite__mapDeps([57,1,2,3,4,5,18,19,20,21,22,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.Table"),icon:"other",order:2}},gr=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),yr={path:"/template-hooks",name:"TemplateHooks",component:()=>O(()=>import("./index-BagNRHLc.js"),__vite__mapDeps([58,1,2,3,4,5,18,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31])),meta:{i18nKey:x("menu.TemplateHooks"),icon:"other",order:1,extra:{label:"new"}}},br=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),vr={path:"/:catchAll(.*)",name:"ErrorPage",component:()=>O(()=>import("./index-CciwGHqu.js"),__vite__mapDeps([59,19,20,21,1,2,3,4,5,18,22,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,31,60])),meta:{i18nKey:x("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Sr=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":zn,"/src/router/modules/demo/axios.ts":jn,"/src/router/modules/demo/cache-demo.ts":$n,"/src/router/modules/demo/context-menu.ts":Fn,"/src/router/modules/demo/directive.ts":Kn,"/src/router/modules/demo/doc.ts":qn,"/src/router/modules/demo/echart.ts":Hn,"/src/router/modules/demo/iframe.ts":Xn,"/src/router/modules/demo/mock.ts":Qn,"/src/router/modules/demo/modal.ts":er,"/src/router/modules/demo/multi-menu.ts":or,"/src/router/modules/demo/precision.ts":rr,"/src/router/modules/demo/qrcode.ts":lr,"/src/router/modules/demo/rely.ts":sr,"/src/router/modules/demo/router-demo.ts":ur,"/src/router/modules/demo/scroll-reveal.ts":pr,"/src/router/modules/demo/svg-icons.ts":hr,"/src/router/modules/demo/table.ts":gr,"/src/router/modules/demo/template-hooks.ts":br,"/src/router/modules/error404.ts":Vr});return Object.keys(e).reduce((o,n)=>{const r=e[n].default;if(r)o.push(r);else throw new Error("router helper combine: an exception occurred while parsing the routing file!");return o},[])},_r=e=>e.sort((t,o)=>{var a,i;const n=((a=t.meta)==null?void 0:a.order)??1,r=((i=o.meta)==null?void 0:i.order)??0;if(typeof n!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===r?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-r}),wr=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=J.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Cr=e=>{const{beforeEach:t}=e,{getRootPath:o}=te(),n=(r,a)=>r.path==="/"||a.path==="/login";t((r,a,i)=>{const l=ie(D.token),s=ie(D.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=r;l!==null?n(r,a)?we(!0):!q(c,"Symbol")&&c&&Ln.includes(c)?i():_o(u)?n(r,a)?s?i(s):we(!0):i():we(!0):n(r,a)?i():i("/")})};var Nr={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const it=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Nr,{locale:t}=ee(),{locale:o}=el(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:To(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"}}),r=l=>{t(l),o(l),n.localeLanguage=l,ze(D.localeLanguage,l,"localStorage")},a=(l,s=.3)=>{const u=Fo(l,s),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const p=document.body;p.style.setProperty("--ray-theme-primary-color",l),p.style.setProperty("--ray-theme-primary-fade-color",u)},i=(l,s,u)=>{Reflect.has(n,l)&&(n[l]=s),u==null||u()};return _n(()=>n.appTheme,l=>{l?Object.assign({},n.primaryColorOverride,E.appNaiveUIThemeOverrides.dark,E.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,E.appNaiveUIThemeOverrides.light,E.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:r,changePrimaryColor:a,updateSettingState:i}},{persist:{key:D.appPiniaSettingStore}}),st=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],ct="transparent",ut={},dt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},pt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},mt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},ht={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},bt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},St={itemStyle:{borderWidth:0,borderColor:"#ccc"}},_t={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},wt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},Ct={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Nt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Tt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ot={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},xt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Rt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},At={textStyle:{color:"#999999"}},Pt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Lt={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Mt={color:["#fc97af","#87f7cf"]},Dt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},zt={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Tr={color:st,backgroundColor:ct,textStyle:ut,title:dt,line:pt,radar:mt,bar:ht,pie:ft,scatter:gt,boxplot:yt,parallel:bt,sankey:vt,funnel:Vt,gauge:St,candlestick:_t,graph:wt,map:Ct,geo:Nt,categoryAxis:Tt,valueAxis:kt,logAxis:Ot,timeAxis:xt,toolbox:Rt,legend:At,tooltip:Pt,timeline:Lt,visualMap:Mt,dataZoom:Dt,markPoint:zt},kr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ct,bar:ht,boxplot:yt,candlestick:_t,categoryAxis:Tt,color:st,dataZoom:Dt,default:Tr,funnel:Vt,gauge:St,geo:Nt,graph:wt,legend:At,line:pt,logAxis:Ot,map:Ct,markPoint:zt,parallel:bt,pie:ft,radar:mt,sankey:vt,scatter:gt,textStyle:ut,timeAxis:xt,timeline:Lt,title:dt,toolbox:Rt,tooltip:Pt,valueAxis:kt,visualMap:Mt},Symbol.toStringTag,{value:"Module"})),It=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],jt="transparent",Et={},$t={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},Bt={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Ft={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Wt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Kt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ut={itemStyle:{borderWidth:0,borderColor:"#ccc"}},qt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Xt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Zt={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},Qt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},Jt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},eo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},to={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},oo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},no={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ro={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ao={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},lo={textStyle:{color:"#333333"}},io={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},so={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},co={color:["#5ab1ef","#e0ffff"]},uo={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},po={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Or={color:It,backgroundColor:jt,textStyle:Et,title:$t,line:Bt,radar:Ft,bar:Wt,pie:Kt,scatter:Ut,boxplot:qt,parallel:Gt,sankey:Ht,funnel:Yt,gauge:Xt,candlestick:Zt,graph:Qt,map:Jt,geo:eo,categoryAxis:to,valueAxis:oo,logAxis:no,timeAxis:ro,toolbox:ao,legend:lo,tooltip:io,timeline:so,visualMap:co,dataZoom:uo,markPoint:po},xr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:jt,bar:Wt,boxplot:qt,candlestick:Zt,categoryAxis:to,color:It,dataZoom:uo,default:Or,funnel:Yt,gauge:Xt,geo:eo,graph:Qt,legend:lo,line:Bt,logAxis:no,map:Jt,markPoint:po,parallel:Gt,pie:Kt,radar:Ft,sankey:Ht,scatter:Ut,textStyle:Et,timeAxis:ro,timeline:so,title:$t,toolbox:ao,tooltip:io,valueAxis:oo,visualMap:co},Symbol.toStringTag,{value:"Module"})),Rr=()=>{const e=Object.assign({"/src/echart-themes/macarons/macarons-dark.json":kr,"/src/echart-themes/macarons/macarons.json":xr}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{var i;const a=(i=r.match(t))==null?void 0:i[1];if(a)return n.push({name:a,theme:e[r].default}),n;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},Ar=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Pr={bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Ar()},observer:{type:Object,default:null},throttleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({})}},Lr={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},Mr=Rr();Mr.forEach(e=>{on(e.name,e.theme)});const Pl=Vue.defineComponent({name:"RChart",props:Pr,setup(e,{expose:t}){const{getAppTheme:o}=j(),n=Vue.ref(),r=Vue.ref(),a=Vue.ref();let i,l;const{echartTheme:s}=E;let u,c;const p=Vue.computed(()=>[{label:"下载图片",key:"__DOWN_LOAD_CHART__",disabled:!(a.value&&a.value.getDom())}]),f=Vue.computed(()=>({"--ray-chart-width":z(e.width),"--ray-chart-height":z(e.height)})),b=async()=>{var V;re([rn,an,ln,sn,cn,un,dn,pn]),re([mn,hn,fn,gn,yn,bn]),re([vn,Vn]),re([Sn]);try{re((V=e.use)==null?void 0:V.filter(Boolean))}catch(k){console.error("[RChart register error]: ",k)}},v=()=>{if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const V=e.autoChangeTheme&&o.value?`${s}-dark`:s;y(V)}},m=V=>{let k=Vue.unref(V);const R=P=>Object.assign({},k,P);return e.showAria&&(k=R({aria:{enabled:!0,decal:{show:!0}}})),k},y=(V=s)=>{const k=n.value,R=m(e.options),{height:P,width:L}=k.getBoundingClientRect(),{onSuccess:G,onError:oe}=e;try{c=nn(k,V,{width:L===0?200:void 0,height:P===0?200:void 0}),a.value=c,e.nextTick?(c.setOption({}),Vue.nextTick(()=>{R&&(c==null||c.setOption(R))})):R&&(c==null||c.setOption(R)),G&&A(G,c)}catch(ve){oe&&A(oe),console.error("RChart render error: ",ve)}},d=()=>!!(c&&c.getDom()),h=()=>{d()&&(c.clear(),c.dispose(),a.value=void 0)},_=()=>{c&&c.resize()},T=(V,k)=>{if(V==="__DOWN_LOAD_CHART__"&&d()){const{filename:P,...L}=e.downloadOptions;Wo(c.getDataURL(L),P??`${new Date().getTime()}`)}const{onDropdownSelect:R}=e;R&&A(R,V,k)},g=()=>{if(c!=null&&c.getDom()){console.warn("[RChart mount]: There is a chart instance already initialized on the dom. Execution was interrupted.");return}v(),e.autoResize&&(i=Me(_,e.throttleWait),l=Eo(e.observer||r,i))},S=()=>{var V;h(),i==null||i.cancel(),(V=l==null?void 0:l.stop)==null||V.call(l)};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(h(),v())}),Vue.watch(()=>e.showAria,()=>{h(),v()}),Vue.watchEffect(()=>{e.watchOptions?u=Vue.watch(()=>e.options,V=>{const k=m(V),R=Object.assign(e.setChartOptions,Lr);c==null||c.setOption(k,R)},{deep:!0}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading()}),t({echart:a,dispose:S,render:g,isDispose:d}),Vue.onBeforeMount(async()=>{await b()}),Vue.onMounted(()=>{g()}),Vue.onBeforeUnmount(()=>{S(),u==null||u()}),{rayChartRef:n,cssVarsRef:f,rayChartWrapperRef:r,moreDropDownOptions:p,dropdownSelect:T}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:r,bordered:a,dropdownOptions:i}=this,{cardExtra:l}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a},{default:ae(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ae(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ae(l,{defaultElement:Vue.createVNode(mo,{iconSize:18,cursor:"pointer",options:i??n,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Dr={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},Ll=Vue.defineComponent({name:"RCollapseGrid",props:Dr,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:r,"onUpdate:value":a}=e;r&&A(r,t.value),a&&A(a,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(C,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),zr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},C=Vue.defineComponent({name:"RIcon",props:zr,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?z(e.width):z(e.size),"--ray-icon-height":e.height?z(e.height):z(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:r=>{const{onClick:a}=e;a&&A(a,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Ir={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},wrapperClass:{type:String,default:null}},Ml=Vue.defineComponent({name:"RIframe",props:Ir,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":z(e.frameborder),"--ray-iframe-width":z(e.width),"--ray-iframe-height":z(e.height)})),n=Vue.ref(),r=Vue.ref(!0),a=l=>{r.value=!1;const{onSuccess:s}=e;s&&A(s,n.value,l)},i=l=>{r.value=!1;const{onError:s}=e;s&&A(s,l)};return le(n,"load",a),le(n,"error",i),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.wrapperClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),jr={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Er=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(r=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const i=Fe(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Fe.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);r(i)}},30)})},Dl=Vue.defineComponent({name:"RModal",props:jr,setup(e){const{height:t}=De(),o=Vue.computed(()=>({"--r-modal-width":z(e.width??600),"--r-modal-card-width":z(e.cardWidth??600),"--r-modal-dialog-width":z(e.dialogWidth??446)})),n=fe();let r;const a={x:0,y:0},i=()=>e.preset==="card"&&e.fullscreen,l=()=>{const s=document.getElementById(n);s&&Er(s,e.preset,{scheduler:u=>{const c=u.target;a.x+=u.dx,a.y+=u.dy,c.style.transform=`translate(${a.x}px, ${a.y}px)`}}).then(u=>{r=u})};return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{l();const u=document.getElementById(n);e.memo&&u&&(u.style.transform=`translate(${a.x}px, ${a.y}px)`)}):(r==null||r.unset(),r=null)},{immediate:!0}),{cssVars:o,height:t,isFullscreenCardType:i,uuidEl:n}},render(){const{isFullscreenCardType:e}=this,{$props:t,$slots:o,$attrs:n}=this,{preset:r,...a}=t,{cssVars:i,height:l,uuidEl:s}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:["r-modal",e()?"r-modal__preset-card--fullscreen":""],style:[i,e()?`height: ${l}px`:""],preset:r},{id:s},a,n),{...o})}}),$r={...naive.dropdownProps,iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function Br(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const mo=Vue.defineComponent({name:"RMoreDropdown",props:$r,render(){let e;const{iconSize:t,cursor:o}=this,{default:n}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),Br(e=ae(n,{defaultElement:Vue.createVNode(C,{name:"more",size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),Fr={loadingDescription:{type:String},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:e=>[0,1,2,3].includes(e)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}},Wr=e=>new Promise((t,o)=>{const n=new XMLHttpRequest;n.responseType="blob",n.onload=()=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=a=>{o(a)},r.onabort=a=>{o(a)},r.readAsArrayBuffer(n.response)},n.open("GET",e),n.send()}),zl=Vue.defineComponent({name:"RayQRcode",props:Fr,setup(e,t){const{expose:o}=t,n=Vue.ref();let r,a;const i=async()=>{const{gifBackgroundURL:c}=e;if(c)try{r=await Wr(c)}catch(p){console.error(p)}},l=()=>{const{gifBackground:c,...p}=e;new en.AwesomeQR({...p,gifBackground:r??void 0}).draw().then(f=>{const{onSuccess:b}=e;b&&A(b,f),n.value=f}).catch(f=>{const{onError:b}=e;b&&A(b,f)})},s=()=>{if(t.slots.errorAction)return;const{onReload:c}=e;c&&A(c)},u=c=>n.value&&q(n.value,"String")?Ko(n.value,c||new Date().getTime()+".png"):Promise.reject();return Vue.watchEffect(()=>{e.watchText?a=Vue.watch(()=>e.text,()=>l()):a==null||a()}),o({downloadQRCode:u}),Vue.onMounted(async()=>{await i(),l()}),Vue.onBeforeUnmount(()=>{a==null||a()}),{qrcodeURL:n,errorActionClick:s}},render(){const{qrcodeURL:e,status:t,loadingDescription:o,errorDescription:n,$slots:r,errorActionDescription:a}=this,{errorActionClick:i}=this;return Vue.createVNode("div",{class:["ray-qrcode",`ray-qrcode--${t}`]},[Vue.createVNode(naive.NSpin,{show:t==="loading",description:o},{default:()=>[Vue.createVNode("img",{src:e},null)]}),t==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[q(n,"String")?n:()=>n]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:i.bind(this)},[r.errorAction?r.errorAction():Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{text:!0,type:"primary",color:"#ffffff"},{default:()=>a,icon:()=>Vue.createVNode(C,{name:"reload",size:"16",color:"#ffffff"},null)})])])]):null])}}),se={...naive.dataTableProps,downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null}},$={tableIconSize:"18",tableKey:Symbol("r-table")},Kr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...se},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:a}=e;a&&A(a,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(C,{name:"adjustment",size:$.tableIconSize,cursor:"pointer"},null)]})}}),Ur=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject($.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=et(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(C,{name:"fullscreen",size:$.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),qr=()=>Vue.createVNode(C,{name:"draggable",size:14,cursor:"all-scroll"},null),Ue=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:e,size:$.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),Le=(e,t)=>{if(!t)return[null,null];for(let o=0;oe.columns.map((i,l)=>{const{key:s,title:u,children:c,fixed:p,isResizable:f,...b}=i,v=p==="left",m=p==="right",y={...b,title:u,key:s,fixed:p,isLeftFixedActivated:v,isRightFixedActivated:m,isResizable:f};return{...y,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(Ue,{icon:"row_head",title:"固定在列首",customClassName:v?_e:"",onClick:r.bind(this,"left",y,l)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:"resize_h",size:$.tableIconSize,cursor:"pointer",customClassName:f?_e:"",onClick:n.bind(this,y,l)},null),default:()=>"修改列宽"}),Vue.createVNode(Ue,{icon:"row_end",title:"固定在列尾",customClassName:m?_e:"",onClick:r.bind(this,"right",y,l)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:l}=e;l&&A(l,i)},n=(i,l)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[l]=i,o(t.value)},r=(i,l,s)=>{const u=`${i}FixedActivated`,c=`${i==="left"?"right":"left"}FixedActivated`;l[c]=!1,l[u]=!l[u],l[u]?l.fixed=i:l.fixed=void 0,t.value[s]=l,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:l,dropPosition:s})=>{const[u,c]=Le(l,t.value);if(u===null||c===null)return;u.splice(c,1);const[p,f]=Le(i,t.value);p===null||f===null||(s==="before"?p.splice(f,0,l):p.splice(f+1,0,l),o(p))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(C,{name:"setting",size:$.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:qr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),Hr=Vue.defineComponent({name:"TablePrint",props:se,setup(e){const{wrapperRef:t}=Vue.inject($.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:r}={},title:a}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof a=="string"?a:""),Uo(t,{printOptions:n,domToImageOptions:r})}}},render(){return Vue.createVNode(C,{name:"print",size:$.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Yr=Vue.defineComponent({name:"TablePropsSelect",props:{...se,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],r=i=>{const{onPopselectChange:l}=e;l&&A(l,i)};return(()=>{const{striped:i,bordered:l,onInitialed:s}=e;i&&o.value.push("striped"),l&&o.value.push("bordered"),s&&A(s,o.value)})(),{propsPopselectValue:o,propsOptions:n,popoverShow:t,updatePopselectValue:r}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:this.propsOptions,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(C,{name:"expanded",size:$.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Xr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Il=Vue.defineComponent({name:"RTable",props:se,setup(e,t){const{expose:o}=t,n=Vue.ref(),r=Vue.ref(),a=fe(16),i=fe(16),l=Vue.reactive({x:0,y:0,showContextMenu:!1}),s=Vue.reactive({size:e.size}),u=Vue.ref({striped:!1,bordered:!1}),c=(d,h)=>{const{onContextMenuClick:_}=e;_&&A(_,d,h),l.showContextMenu=!1},p=(d,h)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,d,h),onContextmenu:e.disabledContextMenu?void 0:g=>{g.preventDefault(),l.showContextMenu=!1,Vue.nextTick().then(()=>{l.showContextMenu=!0,l.x=g.clientX,l.y=g.clientY})}}},f=d=>{s.size=d},b=d=>{const{onUpdateColumns:h,"onUpdate:columns":_}=e;h&&A(h,d),_&&A(_,d)},v=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(()=>Boolean).map(h=>typeof h=="function"?h():h)},m=d=>{Object.keys(u.value).forEach(_=>{u.value[_]=d.includes(_)})},y=d=>{const h=()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Hr,d,null),Vue.createVNode(Kr,Vue.mergeProps(d,{onChangeSize:f.bind(this)}),null),Vue.createVNode(Ur,null,null),Vue.createVNode(Gr,Vue.mergeProps(d,{onUpdateColumn:b.bind(this)}),null),Vue.createVNode(Yr,Vue.mergeProps(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]);return e.toolOptions?e.coverTool?v:()=>Vue.createVNode(Vue.Fragment,null,[h(),v()]):h};return Vue.provide($.tableKey,{uuidTable:i,uuidWrapper:a,wrapperRef:r}),o({rTableInst:n,uuidTable:i,uuidWrapper:a}),{uuidWrapper:a,uuidTable:i,contextMenuReactive:l,rTableInst:n,combineRowProps:p,contextMenuSelect:c,privateReactive:s,tool:y,wrapperRef:r,propsPopselectValue:u}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:r,disabledContextMenu:a,contextMenuReactive:i,contextMenuOptions:l,uuidTable:s,title:u,$slots:c,propsPopselectValue:p}=this,{tool:f,combineRowProps:b,contextMenuSelect:v}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps({ref:"wrapperRef",bordered:o},{id:n}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({ref:"rTableInst"},{id:s},t,e,p,{rowProps:b.bind(this),size:r.size}),{...c}),a?null:Vue.createVNode(naive.NDropdown,{show:i.showContextMenu,placement:"bottom-start",trigger:"manual",x:i.x,y:i.y,options:l,onClickoutside:()=>i.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:ae(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":()=>{let m;return Vue.createVNode(naive.NFlex,{align:"center"},Xr(m=f(e))?m:{default:()=>[m]})},footer:()=>{var m;return(m=c.tableFooter)==null?void 0:m.call(c)},action:()=>{var m;return(m=c.tableAction)==null?void 0:m.call(c)}})}}),Zr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Qr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Zr),setup(e){const{getKeepAliveInclude:t}=ca(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:r}=rt;return(a,i)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createBlock(l,null,{default:Vue.withCtx(({Component:s,route:u})=>[s?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})}}});var Jr={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ea=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,ho=(e,t,o)=>{const n=[];if(ea(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const r of e.children){const a=ho(r,t,o);a.length>0&&n.push(e,...a)}return n},ta=(e,t,o)=>{const n=[];for(const r of e){const a=ho(r,t,o);a.length>0&&n.push(...a)}return n},oa=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=Jr,n=o?o.title:"";document.title=t+" - "+n},na=e=>{const{meta:{icon:t}}=e;if(!t)return;if(q(t,"Object"))return()=>t;const o=Vue.h(C,{name:t,size:Y.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},fo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=ee(),{label:r,icon:a,type:i,i18nLabel:l}=t,s={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?n(l):r||null,c=()=>a&&(l||r)||!a&&(l||r)?null:{"padding-right":"0"};if(q(t,"Object"))return()=>Vue.h(naive.NTag,{...s,type:i||"primary",style:c()},{default:()=>u(),icon:()=>a})},qe=()=>{const{getRootPath:e}=te();return ie(D.appMenuKey,"sessionStorage",{defaultValue:e.value})},ra=e=>e[0]==="/",go=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const r of e){const a=o+(ra(r.path)?r.path:"/"+r.path);if((n=r.children)!=null&&n.length){go(r.children,t,a);continue}else t.push({...r,path:a})}return t},aa=e=>Array.isArray(e)?go(zo(e)):[],yo=()=>_r(Sr()),la=()=>aa(yo());let pe;const bo=(e,t)=>{var o;if(pe&&Be(pe.fullPath,t))return pe;for(const n of e){if(Be(n.fullPath,t))return pe=n,n;if((o=n.children)!=null&&o.length){bo(n.children,t);continue}}},vo=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=ee(),{setKeepAliveInclude:r}=ua(),a=Vue.reactive({menuKey:qe(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=Vue.ref(!0),l=d=>{const{meta:h}=d,{i18nKey:_,noLocalTitle:T}=h,g=Vue.computed(()=>_?n(`${_}`):T),S={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>g.value}),breadcrumbLabel:g.value},V=Object.assign({},S,{icon:na(d),extra:fo(d)});return d.fullPath===qe()&&(a.currentMenuOption=V),V.show=wo(V),V},s=d=>{a.breadcrumbOptions=ta(a.options,"fullPath",d)},u=(d,h=!0)=>{const T=Array.isArray(d)?[...d]:[d];h?a.menuTagOptions.push(...T):a.menuTagOptions=T},c=(d,h)=>{a.menuTagOptions.find(T=>T.fullPath===d)||a.menuTagOptions.push(h)},p=(d,h,_)=>{const{meta:T}=h;if(T.windowOpen)window.open(T.windowOpen);else{e({path:String(d),query:_});const{sameLevel:g}=T;if(r(h),oa(h),!g)c(d,h),s(d),a.menuKey=d,a.currentMenuOption=h,ze(D.appMenuKey,d);else{const S=ge(l(h),["breadcrumbLabel","children","key","meta","name","path","show"]);a.breadcrumbOptions.find(k=>k.key===S.key)||a.breadcrumbOptions.push({...S,fullPath:String(S.key)})}}},f=async(d,h)=>{const[_]=d.split("?"),T=t().find(g=>g.path===_);if(T){const g=ge(T,["children","meta","path","name","redirect"]);p(_,l({...g,fullPath:g.path}),h)}},b=()=>new Promise(d=>{const h=(_,T)=>{var S;const g=[];for(const V of _){let k=`${T.endsWith("/")?T:T+"/"}${V.path}`;if(k=k.replace(/\/+/g,"/"),(S=V.children)!=null&&S.length)V.children=h(V.children,k);else if(!_o(V.meta))continue;g.push(l({...V,fullPath:k}))}return g};if(a.options=h(yo(),""),a.currentMenuOption){const{currentMenuOption:_}=a;s(_.key),c(_.fullPath,_)}d()}),v=d=>a.collapsed=d,m=(d,h=1)=>a.menuTagOptions.splice(d,h),y=async()=>{i.value&&(await b(),i.value=!1)};return Vue.watch(()=>o.fullPath,async(d,h)=>{await y(),d!==h&&await f(d,o.query)},{immediate:!0}),{...Vue.toRefs(a),changeMenuModelValue:p,collapsedMenu:v,spliceMenTagOptions:m,setMenuTagOptions:u,resolveOption:l}},{persist:{key:D.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),Vo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((r,a)=>{Io(n)?a({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{window.$message.info("账号退出中..."),qo("__all_sessionStorage__","sessionStorage"),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:D.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),So=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=rt,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=a=>{const i=o(),{name:l,meta:{keepAlive:s}}=a;if(s){if(i=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:r}},{persist:{key:D.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),Z=()=>{const e=vo(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:l}=te();return e.menuTagOptions.map((s,u,c)=>(s.key===n.value&&s.key!==l.value?s.closeable=!0:s.closeable=!1,s.key===l.value&&(s.closeable=!1),c.length<=1&&(s.closeable=!1),s))}),a=Vue.computed(()=>e.currentMenuOption),i=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:r,getCurrentMenuOption:a,getCollapsed:i}},ce=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}=vo();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}},j=()=>{const e=it(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),a=Vue.computed(()=>e.breadcrumbSwitch),i=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),s=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),p=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:r,getBreadcrumbSwitch:a,getLocaleLanguage:i,getLockScreenSwitch:l,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:p,getAppRootRoute:f}},I=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=it();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},ia=()=>{const e=Vo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},sa=()=>{const{signing:e,logout:t}=Vo();return{signing:e,logout:t}},ca=()=>{const e=So();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},ua=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=So();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},jl=e=>{const t=Pinia.createPinia();e.use(t),t.use(tn)},_o=e=>{const{getSigningCallback:t}=ia(),{role:o}=e;return de!=null&&de.length&&de.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},wo=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:r}=t,{MODE:a}=Ae();return!(n||o||r&&typeof r=="string"&&r!==a||r&&Array.isArray(r)&&!r.includes(a))},da=e=>{e.beforeEach(()=>{window==null||window.$loadingBar.start()}),e.afterEach(()=>{window==null||window.$loadingBar.finish()}),e.onError(()=>{window==null||window.$loadingBar.error()})},pa=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Pn;t&&da(e),o&&Cr(e)},we=(e=!0)=>{const{router:t}=Ie(),{push:o,replace:n}=t,{getRootPath:r}=te();ze(D.appMenuKey,r.value),e?n(r.value):o(r.value)};var ma={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ha=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=ma;return{sideBarLogo:t,handleSideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:r})=>Vue.createVNode(C,{name:t.icon,size:"30",cursor:r},null)}},render(){var e,t,o,n;return(e=this.sideBarLogo)!=null&&e.icon&&((t=this.sideBarLogo)!=null&&t.title)?Vue.createVNode("div",{class:["ray-menu__logo",(o=this.sideBarLogo)!=null&&o.url?"ray-menu__logo-url":null],onClick:this.handleSideBarLogoClick.bind(this)},[(n=this.sideBarLogo)!=null&&n.icon?this.collapsed?Vue.createVNode(naive.NPopover,{placement:"right"},{trigger:()=>Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null),default:()=>{var r;return(r=this.sideBarLogo)==null?void 0:r.title}}):Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null):null,Vue.createVNode("h1",{class:[this.collapsed?null:"ray-menu__logo-title--open","ray-menu__logo-title"]},[Vue.createVNode(naive.NEllipsis,null,{default:()=>{var r;return[(r=this.sideBarLogo)==null?void 0:r.title]}})])]):null}}),fa=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=ce(),{getMenuOptions:n,getCollapsed:r,getMenuKey:a}=Z(),i=Vue.computed({get:()=>(Vue.nextTick().then(()=>{u()}),a.value),set:()=>{l.value&&K("globalDrawerValue",!1)}}),{isTabletOrSmaller:l}=be(),s=Vue.computed({get:()=>X("globalDrawerValue").value,set:p=>{K("globalDrawerValue",p)}}),u=()=>{const p=i.value;Vue.nextTick().then(()=>{var f,b;(b=(f=e.value)==null?void 0:f.showOption)==null||b.call(f,p)})};return{isTabletOrSmaller:l,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!l.value,collapseMode:Y.menuCollapsedMode,collapsedWidth:Y.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1},{default:()=>[Vue.createVNode(ha,{collapsed:r.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:i.value,"onUpdate:value":p=>i.value=p,options:n.value,indent:Y.menuCollapsedIndent,collapsed:r.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(p,f)=>{t(p,f)},accordion:Y.menuAccordion},null)]}),modelGlobalDrawerValue:s}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class ga{constructor(){$e(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(n,r)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ce={requestInstance:null,responseInstance:null},Ne={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},me={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},ya=new ga,El=()=>{const e=(l,s)=>{s==="requestInstance"?Ce.requestInstance=l:Ce.responseInstance=l},t=l=>Ce[l],o=(l,s,u)=>{u==="ok"?Ne[l]=s:me[l]=s},n=(l,s)=>s==="ok"?Ne[l]:me[l],r=(l,...s)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...s)})};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(l,s,u)=>{const c=u==="ok"?Ne[s]:me[s],p=t(l),{MODE:f}=Ae();p&&r(c,p,f)},fetchError:(l,s,u)=>{const c=me[u],{MODE:p}=Ae();r(c,s,p)}}},ba=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{ya.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Co=Vue.defineComponent({name:"LayoutContentWrapper",setup(){const e=VueRouter.useRouter(),{maximize:t}=No(),{getContentTransition:o}=j(),n=Vue.ref(!1),r={opacitySpinning:"0"},a=X("globalMainLayoutLoad"),i=X("layoutContentMaximize"),l=X("layoutContentSpinning");return(()=>{e.beforeEach(()=>{n.value=!0}),e.afterEach(()=>{n.value=!1})})(),{globalMainLayoutLoad:a,spinning:n,themeOverridesSpin:r,getContentTransition:o,layoutContentMaximize:i,maximize:t,layoutContentSpinning:l}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o}=this,{maximize:n}=this;return Vue.createVNode(naive.NSpin,{show:this.spinning||!e||o,description:"loading...",size:"large",themeOverrides:this.themeOverridesSpin,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(C,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(ba,null,null),e?Vue.createVNode(Qr,{class:"content-wrapper",transitionPropName:this.getContentTransition+"-transform"},null):null]})}}),va=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"}));var Va={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Sa=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Va;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Ge=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=r=>{t("click",r)};return{iconClick:o,Icon:()=>Vue.createVNode(C,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),_a=Vue.defineComponent({name:"ThemeSwitch",setup(){const{changeDarkTheme:e,changeLightTheme:t}=nl(),{getAppTheme:o}=j(),n=Vue.ref(o.value);return{changeDarkTheme:e,changeLightTheme:t,getAppTheme:o,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,changeDarkTheme:t,changeLightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:n.bind(this),onUpdateValue:r=>r?t():o()},{"checked-icon":()=>Vue.createVNode(C,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(C,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function he(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const wa=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=I(),{getAppTheme:r,getPrimaryColorOverride:a,getMenuTagSwitch:i,getBreadcrumbSwitch:l,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c}=j(),p=Vue.computed({get:()=>e.show,set:b=>{t("update:show",b)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:s.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:b=>{}});return{modelShow:p,changePrimaryColor:o,getAppTheme:r,getPrimaryColorOverride:a,updateSettingState:n,modelSwitchReactive:f}},render(){let e,t,o,n;const{$t:r,changePrimaryColor:a,updateSettingState:i}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(_a,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:E.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:a.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(o=r("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:kn,onUpdateValue:l=>{i("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},he(n=r("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>i("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>i("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>i("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>i("copyrightSwitch",l)},null)]})]})]})]})]})}});function Ca(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Na=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ce(),{getBreadcrumbOptions:t}=Z(),{isTabletOrSmaller:o}=be();return{getBreadcrumbOptions:t,dropdownSelect:(a,i)=>{e(a,i)},breadcrumbItemClick:a=>{var i;if(!((i=a.children)!=null&&i.length)){const{meta:l={}}=a;l.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Ca(e=o.map(a=>Vue.createVNode(naive.NBreadcrumbItem,{key:a.fullPath,onClick:r.bind(this,a)},{default:()=>{var i;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((i=a.children)==null?void 0:i.length)>1?a.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Te(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ta=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ce(),{getRoutes:r}=VueRouter.useRouter(),a=Vue.computed({get:()=>e.show,set:g=>{t("update:show",g),g||f()}}),i=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let s=0,u=s;const{isTabletOrSmaller:c}=be(),p=Vue.ref(!1),f=()=>{i.searchOptions=[],i.searchValue=null,s=0,u=s},b=g=>{a.value||(g.ctrlKey||g.metaKey)&&g.key==="k"&&(g.preventDefault(),g.stopPropagation(),f(),a.value=!0)},v=g=>{if(g)p.value=!0;else{p.value=!1,i.searchOptions=[];return}const S=r().reduce((V,k)=>{var G;const R=ge(k,["children","meta","path","name"]),P=n({...R,fullPath:k.path}),{breadcrumbLabel:L}=P;return(G=L==null?void 0:L.toLocaleLowerCase())!=null&&G.includes(g.toLocaleLowerCase())&&wo(P)&&V.push(P),V},[]);setTimeout(()=>{i.searchOptions=S,Vue.nextTick().then(()=>{y()}),p.value=!1},500)},m=g=>{if(g){const{meta:S}=g;S.windowOpen?window.open(S.windowOpen):(a.value=!1,o(g.fullPath,g))}},y=()=>{const g=i.searchOptions[s],S=i.searchOptions[u],V="content-item--active";g&&Vue.nextTick().then(()=>{const k=Pe(`attr:data_path="${g.path}"`),R=S?Pe(`attr:data_path="${S==null?void 0:S.path}"`):null;if(R!=null&&R.length){const[P]=R;Go(P,V)}if(k!=null&&k.length){const[P]=k;Ho(P,V)}})},d=g=>{const{icon:S}=g;return typeof S=="string"?Vue.createVNode(C,{name:S,size:"24"},null):typeof S=="function"?()=>S:Vue.createVNode(C,{name:"search",size:"24"},null)},h=g=>{g==="up"?s=s-1<0?0:s-1:g==="down"&&(s=s+1>=i.searchOptions.length?i.searchOptions.length-1:s+1)},_=g=>{const S=g.key;switch((S==="ArrowUp"||S==="ArrowDown"||S==="Enter")&&(g.preventDefault(),g.stopPropagation()),u=s<=0?0:s,S){case"ArrowUp":h("up");break;case"ArrowDown":h("down");break;case"Enter":const V=i.searchOptions[s];V&&m(V);break}y()},T=({menuOption:g})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:m.bind(this,g),data_path:g.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(g.meta)]),Vue.createVNode("div",{class:"content-item-label"},[g.breadcrumbLabel]),Vue.createVNode(C,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{c.value&&(a.value=!1)}),le(window,"keydown",g=>{b(g),_(g)},!0),{...Vue.toRefs(i),modelShow:a,helperTipOptions:l,fuzzySearchMenuOptions:Me(v,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:T,loading:p}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:r}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(C,{name:"search",size:"24"},null)}),default:()=>{let a;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Te(a=t.map((i,l)=>Vue.createVNode(n,{menuOption:i,key:i.fullPath},null)))?a:{default:()=>[a]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createTextVNode("没有搜索结果")]})})]})]})},action:()=>{let a;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Te(a=this.helperTipOptions.map(i=>Vue.createVNode(naive.NFlex,{key:i.label,size:[4,0]},{default:()=>[i.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Te(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[i.label]})]})))?a:{default:()=>[a]})}})])])]})}});function ka(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Oa=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=Yo();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:r}=e;r&&A(r,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(C,{name:"search",size:"16"},null),default:()=>{let n;return Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode(naive.NButton,{size:"tiny"},ka(n=e())?n:{default:()=>[n]})]})}})}}),xa=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,...naive.flexProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){const t=ie(D.signing),o=Vue.computed(()=>({"--app-avatar-cursor":e.cursor}));return{signing:t,cssVars:o}},render(){const{signing:e,cssVars:t,spaceSize:o,avatarSize:n,$props:r}=this;return Vue.createVNode(naive.NFlex,Vue.mergeProps({class:"app-avatar"},this.$props,{style:t,size:o}),{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(r,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),Vue.createVNode("div",{class:"app-avatar__name"},[e==null?void 0:e.name])]})}}),Ra=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Aa={logout:()=>{const{logout:e}=sa();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=I();e("lockScreenSwitch",!0)}},Pa=e=>{const t=Aa[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},La=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},Ma=e=>{const{isFullscreen:t,isTabletOrSmaller:o}=e,{t:n}=ee(),r=[{name:"fullscreen",size:18,tooltip:t.value?n("headerTooltip.CancelFullScreen"):n("headerTooltip.FullScreen"),eventKey:"screen"},{name:"github",size:18,tooltip:n("headerTooltip.Github"),eventKey:"github"},{name:"setting",size:18,tooltip:n("headerTooltip.Setting"),eventKey:"setting"}],a=[...r],i=[...r];return o.value?i:a},Da=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=I(),{t:o}=ee(),[n,{toggleFullscreen:r,isEnabled:a}]=et(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:l}=j(),s=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=be(),p=X("globalDrawerValue"),f=Vue.computed(()=>La({isFullscreen:n,isTabletOrSmaller:c})),b=Vue.computed(()=>Ma({isFullscreen:n,isTabletOrSmaller:c})),v={search:()=>{u.value=!0},setting:()=>{s.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(o("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{K("globalDrawerValue",!p.value)}};return{leftIconOptions:f,rightTooltipIconOptions:b,toolIconClick:d=>{var h;(h=v[d])==null||h.call(v)},showSettings:s,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:d=>c.value?null:d}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:r,updateLocale:a,isRenderVNode:i}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Ta,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[t.map(l=>Vue.createVNode(Ge,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),n?Vue.createVNode(Na,null,null):null]}),Vue.createVNode(naive.NFlex,{align:"center",size:[16,0]},{default:()=>[i(Vue.createVNode(Oa,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(Ge,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),Vue.createVNode(naive.NDropdown,{options:at,onSelect:l=>a(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(C,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]}),Vue.createVNode(naive.NDropdown,{options:Ra(),onSelect:Pa.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(xa,{avatarSize:"small",align:"center",cursor:"pointer"},null)]})]})]}),Vue.createVNode(wa,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),za=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(Da,null,null)]})}}),Ia={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},ja=nt('',1),Ea=[ja];function $a(e,t){return ot(),tt("svg",Ia,[...Ea])}const Ba={render:$a},Fa={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Wa=nt('',1),Ka=[Wa];function Ua(e,t){return ot(),tt("svg",Fa,[...Ka])}const qa={render:Ua};function Ga(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ha=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:r}=Z(),{changeMenuModelValue:a}=ce(),{getRootPath:i}=te(),{maximize:l}=No(),{reload:s}=ol(),{close:u,closeAll:c,closeRight:p,closeLeft:f,closeOther:b,checkCloseLeft:v,checkCloseRight:m}=rl(),y=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let d=1/0;const h={size:16},_=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(C,{name:"reload",size:h.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(C,{name:"close",size:h.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(qa,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(Ba,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(C,{name:"other",size:h.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(C,{name:"resize_h",size:h.size},null),disabled:!1}]),T=fe(16),g={closeCurrentPage:()=>{n.value!==i.value&&u(d)},reloadCurrentPage:()=>{s()},closeAll:()=>{c()},closeRight:()=>{p(d)},closeLeft:()=>{f(d)},closeOther:()=>{b(d)}},S=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),V="menu_tag_data",k=X("globalMainLayoutLoad"),R="n-scrollbar-container",P=w=>{u(w)},L=(w,N)=>{_.value.forEach(M=>{if(M.key===w){M.disabled=N;return}})},G=w=>{S.actionDropdownShow=!1,a(w.fullPath,w)},oe=()=>{const w=document.getElementById(T);if(w)return Array.from(w.childNodes).find(ue=>Xo(ue,R).value)},ve=w=>{var M;const N=oe();if(N){const ue=N.scrollLeft||0,Ee=w==="left"?Math.max(0,ue-200):ue+200;(M=o.value)==null||M.scrollTo({left:Ee,behavior:"smooth"})}},ko=w=>{S.actionDropdownShow=!1;const N=g[w];N&&N()},Oo=(w,N)=>{N.preventDefault(),S.actionDropdownShow=!1,d=w,Vue.nextTick(()=>{S.actionDropdownShow=!0,S.x=N.clientX,S.y=N.clientY})},je=()=>{const{closeable:w}=r.value[d]??{};L("closeCurrentPage",!w),m(d)?L("closeRight",!1):L("closeRight",!0),v(d)?L("closeLeft",!1):L("closeLeft",!0)},xo=()=>{d=r.value.findIndex(N=>N.fullPath===n.value),je()},Ro=w=>{r.value.length>1&&w.fullPath!==i.value&&(w.closeable=!0)},Ao=w=>{w.fullPath!==n.value&&(w.closeable=!1)},Po=()=>{oe()&&Vue.nextTick().then(()=>{var N;(N=o.value)==null||N.scrollTo({left:99999,behavior:"smooth"})})},Lo=()=>{Vue.nextTick().then(()=>{const w=Pe(`attr:${V}="${n.value}"`);if(w!=null&&w.length){const[N]=w;Vue.nextTick().then(()=>{var M;(M=o.value)==null||M.scrollTo({left:N.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(w,N)=>{_.value.forEach(M=>{y.includes(M.key)&&(w.length>1?M.disabled=!1:M.disabled=!0)}),N!=null&&N.length&&(w.length>(N==null?void 0:N.length)?Po():w.length===(N==null?void 0:N.length)&&Lo())},{immediate:!0}),Vue.watch(()=>S.actionDropdownShow,w=>{var N;w&&((N=Me(je,100))==null||N())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:P,getMenuKey:n,menuTagClick:G,moreOptions:_,scrollX:ve,scrollRef:o,uuidScrollBar:T,actionDropdownSelect:ko,actionState:S,menuTagContextMenu:Oo,setCurrentContextmenuIndex:xo,menuTagMouseenter:Ro,menuTagMouseleave:Ao,MENU_TAG_DATA:V,iconConfig:{width:22,height:22},maximize:l,getRootPath:i,reload:s,globalMainLayoutLoad:k}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:r,MENU_TAG_DATA:a,globalMainLayoutLoad:i}=this,{maximize:l,closeCurrentMenuTag:s,scrollX:u,$t:c,menuTagClick:p,menuTagContextMenu:f,menuTagMouseenter:b,menuTagMouseleave:v,actionDropdownSelect:m,reload:y}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:m.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(C,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Ga(e=r.map((d,h)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:d.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:d.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,d),onContextmenu:f.bind(this,h),onMouseenter:b.bind(this,d),onMouseleave:v.bind(this,d),[a]:d.path}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:_,meta:{i18nKey:T}}=d;return T?c(T):_}}),(d.closeable||r.length===1)&&d.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,h)}),{default:()=>[Vue.createVNode(C,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[d.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(C,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(C,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(C,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${i?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{y()}},null),Vue.createVNode(mo,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(C,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),Ya=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(Ha,null,null)}}),Xa=e=>{const t=Se(e[0]),o=Se(e[1]),n=Se(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},He=$o(D.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),Za=()=>({setLockAppScreen:o=>{He.value=o},getLockAppScreen:()=>He.value}),Qa=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:r}=j(),{getLockAppScreen:a}=Za(),i=Xa([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:i,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0},{default:()=>[Vue.createVNode(fa,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(za,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Ya,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:J,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Co,null,null)]}),o?Vue.createVNode(Sa,{ref:"layoutFooterRef"},null):null]})]})}}),Ja=[{path:"/",name:"RLogin",component:()=>O(()=>import("./index-DKh0jCzy.js"),__vite__mapDeps([61,22,18,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,5,19,49,20,21,34,23,24,25,26,27,28,29,30,31,62]))},{path:"/",name:"RLayout",component:Qa,children:la()}],ye=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:Ja,scrollBehavior:e=>{wr(e)}}),$l=e=>{e.use(ye),pa(ye)},Ie=()=>ye?{router:ye}:{router:{}},Ye="YYYY-MM-DD HH:mm:ss",el=()=>({locale:i=>{const l=Rn[i];l?B.locale(l):B.locale(An)},getStartAndEndOfDay:i=>{const{format:l=Ye}=i??{},s=B(),u=s.startOf("day"),c=s.endOf("day"),p=s.format(l),f=u.format(l);return{today:s,startOfDay:u,endOfDay:c,formatToday:p,formatStartOfDay:f}},format:(i,l)=>{const{format:s=Ye}=l??{};return B(i).format(s)},isDayjs:i=>B.isDayjs(i),daysDiff:(i,l)=>{const s=B(i);return B(l).diff(s,"days")},isDateInRange:(i,l)=>{const{start:s,end:u}=l,c=B(i);return c.isAfter(s)&&c.isBefore(u)}});function be(e){const{width:t,height:o}=De(e),n=Vue.ref(!1);return Zo(()=>{n.value=t.value<=768}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let Xe=999,ke=!1;const H="ELEMENT-FULLSCREEN-RAY",{height:Ze}=De(),Qe=document.createElement("style"),tl=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:r,exit:a,backgroundColor:i,zIndex:l}=t??{},s={};let u=!1;const c=()=>{const m=W(e);if(!m)return;const{left:y,top:d}=m.getBoundingClientRect(),h=` + [${H}] { + position: fixed; + width: 100% !important; + height: ${Ze.value}px !important; + transform: translate(-${y}px, -${d}px) !important; + transition: all 0.3s var(--r-bezier); + z-index: ${q(l,"Null")||q(l,"Undefined")?Xe:l} !important; + background-color: ${i??null}; + } + `;Qe.innerHTML=h,ke||document.head.appendChild(Qe)},p=()=>{const m=W(e);o==null||o(),m&&(m.getAttribute(H)||m.setAttribute(H,H),u||(u=!0,Xe+=1),ke||(c(),ke=!0),s.transition=m.style.transition,m.style.transition="all 0.3s var(--r-bezier)",r==null||r())},f=()=>{n==null||n();const m=W(e);m&&m.removeAttribute(H),a==null||a()},b=()=>{const m=W(e);m&&(m.getAttribute(H)?f():p())},v=Vue.watch(()=>Ze.value,c);return Qo(()=>{const m=W(e);m&&(m.style.transition=s.transition??"",m.removeAttribute(H)),v()}),{enter:p,exit:f,toggleFullscreen:b}},Oe={svg:ne.toSvg,png:ne.toPng,jpeg:ne.toJpeg,blob:ne.toBlob,pixelData:ne.toPixelData},Bl=(e,t)=>{const{beforeCreate:o,created:n,createdError:r,finally:a,imageType:i}=t??{};return{create:s=>new Promise((u,c)=>{var f;const p=W(e);if(o==null||o(p),!p)return r==null||r(),c("useDomToImage: element is undefined.");(f=Oe[s??i??"jpeg"])==null||f.call(Oe,p,t).then(b=>(n==null||n(b,p),u(b))).catch(b=>(r==null||r(b),c(b))).finally(()=>{a==null||a()})})}},Fl=(e,t)=>({print:()=>{const n=W(e)||e;Bo({...Jo(t,["printable"]),printable:n})}}),No=()=>({isLayoutContentMaximized:Vue.computed(()=>X("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:r}=n??{},a=W(J),{toggleFullscreen:i}=tl(a,n);K("layoutContentMaximize",o),i(),r&&o&&((l=J==null?void 0:J.value)==null||l.scrollTo(r))}}),ol=()=>({reload:(n=800)=>{K("globalMainLayoutLoad",!1),setTimeout(()=>K("globalMainLayoutLoad",!0),n)},openSpin:()=>{K("layoutContentSpinning",!0)},closeSpin:()=>{K("layoutContentSpinning",!1)}}),Wl=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:a}=j(),i=Object.assign(a.value,{content:r}),{updateSettingState:l}=I();l("watermarkConfig",i)},showWatermark:()=>{const{updateSettingState:r}=I();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=I();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=j(),{updateSettingState:a}=I();a("watermarkSwitch",!r.value)}}),xe=e=>{const{getPrimaryColorOverride:t}=j(),{updateSettingState:o}=I();o("primaryColorOverride",e?Object.assign({},t.value,E.appNaiveUIThemeOverrides.dark,E.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,E.appNaiveUIThemeOverrides.light,E.appNaiveUIThemeOverridesCommon.light))},nl=()=>{const e=()=>{const{getAppTheme:r}=j(),{t:a}=ee();return{theme:r.value,themeLabel:r.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light")}};return{changeDarkTheme:()=>{const{updateSettingState:r}=I();r("appTheme",!0),xe(!0)},changeLightTheme:()=>{const{updateSettingState:r}=I();r("appTheme",!1),xe(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:a}=I();a("appTheme",!r),xe(!r)},getAppTheme:e}},Q=(e,t)=>{const{getMenuTagOptions:o}=Z();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(r=>r.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,r=o.value.findIndex(a=>a.fullPath===n);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function rl(){const{getMenuTagOptions:e,getMenuKey:t}=Z(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:a}=ce(),i=()=>e.value.findIndex(v=>v.fullPath===t.value);return{close:v=>{const m=Q(v,"close");if(e.value.length!==1&&m){const{index:y,option:d}=m;if(n(y),d.fullPath===t.value){const h=e.value[y-1];h&&o(h.fullPath,h)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:v}=te(),{router:{getRoutes:m}}=Ie(),y=m().find(d=>d.path===v.value);if(y){const d=ge(y,["children","meta","path","name","redirect"]),h=a(d);o(h.path,a({...h,fullPath:h.path}))}},closeRight:v=>{const m=Q(v,"closeRight");if(m){const{option:y,index:d}=m,h=e.value.length-d,_=i();n(d+1,h),d<=_&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeLeft:v=>{const m=Q(v,"closeLeft");if(m){const{option:y,index:d}=m,h=i();n(0,d),h<=d&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeOther:v=>{const m=Q(v,"closeOther");if(m){const{option:y}=m;t.value!==y.fullPath?(n(0,e.value.length),o(y.fullPath,y)):r(y,!1)}},getCurrentTagIndex:i,checkCloseRight:v=>{const m=Q(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return!(y>=d)}return!1},checkCloseLeft:v=>{const m=Q(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return y===0?!1:y>0&&d>0}return!1}}}function Kl(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:r,replace:a}}=Ie(),{isPush:i=!0,query:l}=o||{},s=u=>i?r({path:u,query:l}):a({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=Z();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],p=f=>{if(f.children&&f.children.length>0){const{children:[b]}=f;p(b);return}s(f.fullPath)};p(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?s(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else s(t.fullPath)}}}function te(){const{getAppRootRoute:e}=j(),{updateSettingState:t}=I(),o=e,n=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:r,setRootRoute:i=>{t("appRootRoute",Object.assign({},e.value,i))}}}const al=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=fo(e)},Je=(e,t,o)=>{const n=bo(e,t);n&&al(n,o)},Re=(e,t,o)=>{const{getMenuOptions:n}=Z();if(typeof e=="string")Je(n.value,e,o);else if(q(e,"Object")){const{fullPath:r}=e;Je(n.value,r,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Ul(){return{hidden:n=>{Re(n,"hidden",{show:!1})},show:n=>{Re(n,"show",{show:!0})},update:(n,r)=>{Re(n,"update",r)}}}const To=()=>ie(D.localeLanguage,"localStorage",{defaultValue:On});export{kl as A,ya as B,El as C,An as D,xl as E,mo as F,No as G,Kl as H,ol as I,Wl as J,nl as K,at as L,Ul as M,we as N,Dl as R,_a as T,O as _,Fl as a,Ol as b,j as c,D as d,I as e,xa as f,Tl as g,Za as h,sa as i,be as j,X as k,Al as l,$l as m,te as n,ee as o,K as p,zl as q,C as r,jl as s,Nl as t,Bl as u,Rl as v,Ml as w,Pl as x,Ll as y,Il as z}; diff --git a/assets/hooks-C9tZi_HS.js.gz b/assets/hooks-C9tZi_HS.js.gz new file mode 100644 index 00000000..621a1325 Binary files /dev/null and b/assets/hooks-C9tZi_HS.js.gz differ diff --git a/assets/hooks-HESpGiIM.js b/assets/hooks-HESpGiIM.js deleted file mode 100644 index 63e18b90..00000000 --- a/assets/hooks-HESpGiIM.js +++ /dev/null @@ -1,17 +0,0 @@ -var Lo=Object.defineProperty;var Mo=(e,t,o)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ee=(e,t,o)=>(Mo(e,typeof t!="symbol"?t+"":t,o),o);import{o as Do,u as le,a as zo,b as De,c as Se,d as Io}from"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import{u as Je}from"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import{d as F}from"./dayjs@1.11.10-A-QuG2Ol.js";import{p as jo}from"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{g as ie,i as G,s as ze,c as Eo,a as D,r as re,b as P,d as $o,u as ge,e as Bo,p as Fo,f as ye,h as $e,j as Wo,k as Pe,q as Le,l as Ko,m as Uo,n as qo,o as Go,w as Ho,t as Yo,v as K}from"./utils-zTxN2cCS.js";import{l as Xo}from"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{i as Be}from"./interactjs@1.10.26-I0IiZoEj.js";import{s as Qo}from"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import{t as et,c as Zo,i as Jo,d as en,s as _e}from"./lodash-es@4.17.21-xgd1l9mE.js";import{d as oe}from"./dom-to-image@2.6.0-eHYYUq-2.js";import{r as tn,u as ne,i as on,a as nn,b as rn,c as an,d as ln,e as sn,f as cn,g as un,h as dn,j as pn,k as mn,l as hn,m as fn,n as gn,o as yn,p as bn,q as vn,s as Vn}from"./echarts@5.5.0-WNSrrRu3.js";import{o as tt,c as ot,a as nt}from"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import{e as Sn}from"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";const _n="modulepreload",wn=function(e){return"/ray-template/"+e},Fe={},O=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){const l=document.getElementsByTagName("link");r=Promise.all(o.map(i=>{if(i=wn(i),i in Fe)return;Fe[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let p=l.length-1;p>=0;p--){const f=l[p];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":_n,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((p,f)=>{c.addEventListener("load",p),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(l=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l})},Cn=(e,t)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},rt={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Nl="",M={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Nn=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],j={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},at=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Tn="zh-CN",kn="zh-CN",On={"zh-CN":"zh-cn","en-US":"en"},xn="zh-cn",Tl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},kl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},ee=Vue.ref(null),Rn={setupRouterLoadingBar:!0,setupRouterGuard:!0},An=["RLogin","ErrorPage","RayTemplateDoc"],pe=["admin"],Ol=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),r=Vue.ref(!1),{clickOutside:l}=t??{},i=p=>{r.value=p},a=p=>{p.preventDefault(),i(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:b}=p;o.value=f,n.value=b,i(!0)})};l&&Do(e,p=>{l(p)});const s=le(e,"contextmenu",a,t),u=le(e,"click",()=>{i(!1)});return{stop:()=>{s(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(r),updateShow:i}},lt=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function U(e,t,o){lt[e]=t,o==null||o()}function X(e){return Vue.readonly(Vue.toRef(lt,e))}let W;const Pn=async()=>{const e=To(),t=await al(at);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:kn})},xl=async e=>{const t=await Pn();e.use(t),W=t},We=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,te=e=>{if(!W)return{t:l=>We(e,l),locale:l=>{}};const{t,...o}=W.global;return{...o,t:(l,...i)=>l?!l.includes(".")&&!e?l:t(We(e,l),...i):"",locale:l=>{W.mode==="legacy"?W.global.locale=l:Vue.isRef(W.global.locale)?W.global.locale.value=l:W.global.locale=l}}},x=e=>e,Ln={path:"/dashboard",name:"RDashboard",component:()=>O(()=>import("./index-Ji02w0VU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),meta:{i18nKey:x("menu.Dashboard"),icon:"dashboard",order:0}},Mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),Dn={path:"/axios",name:"RAxios",component:()=>O(()=>import("./index-wQgCpKgU.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,35,22,18,16,17,23,20,21,24,25,26,27,28,29,30,31,32,36])),meta:{i18nKey:x("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},zn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),In={path:"/cache-demo",name:"CacheDemo",component:()=>O(()=>import("./index-yyfNdCCw.js"),__vite__mapDeps([37,22,18,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,16,17,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.CacheDemo"),icon:"other",order:3,extra:{label:"new"}}},jn=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),En={path:"/context-menu",name:"ContextMenuDemo",component:()=>O(()=>import("./index-hsVU_iaJ.js"),__vite__mapDeps([38,18,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,16,17,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.ContextMenu"),icon:"other",order:2}},$n=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Bn={path:"/directive",name:"RDirective",component:()=>O(()=>import("./index-qt5v82ci.js"),__vite__mapDeps([])),meta:{i18nKey:x("menu.Directive"),icon:"other",order:2}},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),q=()=>O(()=>Promise.resolve().then(()=>ya),void 0),Wn={path:"/doc",name:"RDocLayout",component:q,meta:{i18nKey:x("menu.Doc"),icon:"doc",order:5},children:[{path:"doc-inside",name:"RDocInside",component:()=>O(()=>import("./index-V9956E0k.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.DocLocalInside")}},{path:"doc-outside",name:"RDoc",component:q,meta:{i18nKey:x("menu.Doc"),windowOpen:"https://xiaodaigua-ray.github.io/ray-template-doc/"}},{path:"doc-outside-local",name:"RDocLocal",component:q,meta:{i18nKey:x("menu.DocLocal"),windowOpen:"https://ray-template.yunkuangao.com/ray-template-doc/"}}]},Kn=Object.freeze(Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),Un={path:"/echart",name:"REchart",component:()=>O(()=>import("./index-k3xzQ4Uj.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,41])),meta:{i18nKey:x("menu.Echart"),icon:"echart",order:1}},qn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),Gn={path:"/iframe",name:"IframeDemo",component:()=>O(()=>import("./index-ilzb9WZo.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/mock-demo",name:"MockDemo",component:()=>O(()=>import("./index-B9Y8JKnJ.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,35,22,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Mock"),icon:"other",order:3,keepAlive:!1}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Qn={path:"/modal-demo",name:"ModalDemo",component:()=>O(()=>import("./index-gNfY19AN.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Modal"),icon:"other",order:3}},Zn=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),Jn={path:"/multi",name:"MultiMenu",component:q,meta:{i18nKey:x("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>O(()=>import("./index-OlZM-6Aq.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:q,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>O(()=>import("./index-7HAQIe0w.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:q,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>O(()=>import("./index-vRnYP7XJ.js"),__vite__mapDeps([])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},er=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),tr={path:"/precision",name:"CalculatePrecision",component:()=>O(()=>import("./index-1M1NSL1D.js"),__vite__mapDeps([45,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,16,17,22,18,23,20,21,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.CalculatePrecision"),icon:"other",order:2}},or=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),nr={path:"/qrcode",name:"RQRCode",component:()=>O(()=>import("./index-DuOnyvCG.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,47,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.QRCode"),icon:"other",order:3}},rr=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ar={path:"/rely",name:"Rely",component:q,meta:{i18nKey:x("menu.Rely"),icon:"rely",order:999},children:[{path:"rely-about",name:"RelyAbout",component:()=>O(()=>import("./index-jz2enyHr.js"),__vite__mapDeps([48,49])),meta:{i18nKey:x("menu.RelyAbout")}}]},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),ir={path:"/router-demo",name:"RouterDemoRoot",component:q,meta:{i18nKey:x("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",name:"RouterDemoHome",component:()=>O(()=>import("./index-nPDpyH6g.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",name:"RouterDemoDetail",component:()=>O(()=>import("./index-tZy8npu9.js"),__vite__mapDeps([])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),cr={path:"/scroll-reveal",name:"ScrollReveal",component:()=>O(()=>import("./index-v5xFQW7A.js"),__vite__mapDeps([51,52])),meta:{i18nKey:x("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),dr={path:"/svg-icons",name:"PreviewSVGIcons",component:()=>O(()=>import("./index-REqw_tgG.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,54])),meta:{i18nKey:x("menu.SvgIcon"),icon:"other",order:3}},pr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),mr={path:"/table",name:"TableView",component:()=>O(()=>import("./index-mswpX-5K.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.Table"),icon:"other",order:2}},hr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),fr={path:"/template-hooks",name:"TemplateHooks",component:()=>O(()=>import("./index-nnQ71BjC.js"),__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32])),meta:{i18nKey:x("menu.TemplateHooks"),icon:"other",order:1,extra:{label:"new"}}},gr=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),yr={path:"/:catchAll(.*)",name:"ErrorPage",component:()=>O(()=>import("./index-JkVEU21Q.js"),__vite__mapDeps([57,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32,58])),meta:{i18nKey:x("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},br=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),vr=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Mn,"/src/router/modules/demo/axios.ts":zn,"/src/router/modules/demo/cache-demo.ts":jn,"/src/router/modules/demo/context-menu.ts":$n,"/src/router/modules/demo/directive.ts":Fn,"/src/router/modules/demo/doc.ts":Kn,"/src/router/modules/demo/echart.ts":qn,"/src/router/modules/demo/iframe.ts":Hn,"/src/router/modules/demo/mock.ts":Xn,"/src/router/modules/demo/modal.ts":Zn,"/src/router/modules/demo/multi-menu.ts":er,"/src/router/modules/demo/precision.ts":or,"/src/router/modules/demo/qrcode.ts":rr,"/src/router/modules/demo/rely.ts":lr,"/src/router/modules/demo/router-demo.ts":sr,"/src/router/modules/demo/scroll-reveal.ts":ur,"/src/router/modules/demo/svg-icons.ts":pr,"/src/router/modules/demo/table.ts":hr,"/src/router/modules/demo/template-hooks.ts":gr,"/src/router/modules/error404.ts":br});return Object.keys(e).reduce((o,n)=>{const r=e[n].default;if(r)o.push(r);else throw new Error("router helper combine: an exception occurred while parsing the routing file!");return o},[])},Vr=e=>e.sort((t,o)=>{var l,i;const n=((l=t.meta)==null?void 0:l.order)??1,r=((i=o.meta)==null?void 0:i.order)??0;if(typeof n!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===r?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-r}),Sr=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=ee.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},_r=e=>{const{beforeEach:t}=e,{getRootPath:o}=Z(),n=(r,l)=>r.path==="/"||l.path==="/login";t((r,l,i)=>{const a=ie(M.token),s=ie(M.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=r;a!==null?n(r,l)?Ce(!0):!G(c,"Symbol")&&c&&An.includes(c)?i():_o(u)?n(r,l)?s?i(s):Ce(!0):i():Ce(!0):n(r,l)?i():i("/")})};var wr={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const it=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=wr,{locale:t}=te(),{locale:o}=Ja(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:To(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"}}),r=a=>{t(a),o(a),n.localeLanguage=a,ze(M.localeLanguage,a,"localStorage")},l=(a,s=.3)=>{const u=Eo(a,s),c={primaryColor:a,primaryColorHover:a,primaryColorPressed:a};n.primaryColorOverride.common=c;const p=document.body;p.style.setProperty("--ray-theme-primary-color",a),p.style.setProperty("--ray-theme-primary-fade-color",u)},i=(a,s,u)=>{Reflect.has(n,a)&&(n[a]=s),u==null||u()};return Sn(()=>n.appTheme,a=>{a?Object.assign({},n.primaryColorOverride,j.appNaiveUIThemeOverrides.dark,j.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,j.appNaiveUIThemeOverrides.light,j.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:r,changePrimaryColor:l,updateSettingState:i}},{persist:{key:M.appPiniaSettingStore}}),st=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],ct="transparent",ut={},dt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},pt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},mt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},ht={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},bt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Vt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},St={itemStyle:{borderWidth:0,borderColor:"#ccc"}},_t={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},wt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},Ct={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Nt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Tt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ot={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},xt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Rt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},At={textStyle:{color:"#999999"}},Pt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Lt={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Mt={color:["#fc97af","#87f7cf"]},Dt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},zt={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Cr={color:st,backgroundColor:ct,textStyle:ut,title:dt,line:pt,radar:mt,bar:ht,pie:ft,scatter:gt,boxplot:yt,parallel:bt,sankey:vt,funnel:Vt,gauge:St,candlestick:_t,graph:wt,map:Ct,geo:Nt,categoryAxis:Tt,valueAxis:kt,logAxis:Ot,timeAxis:xt,toolbox:Rt,legend:At,tooltip:Pt,timeline:Lt,visualMap:Mt,dataZoom:Dt,markPoint:zt},Nr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ct,bar:ht,boxplot:yt,candlestick:_t,categoryAxis:Tt,color:st,dataZoom:Dt,default:Cr,funnel:Vt,gauge:St,geo:Nt,graph:wt,legend:At,line:pt,logAxis:Ot,map:Ct,markPoint:zt,parallel:bt,pie:ft,radar:mt,sankey:vt,scatter:gt,textStyle:ut,timeAxis:xt,timeline:Lt,title:dt,toolbox:Rt,tooltip:Pt,valueAxis:kt,visualMap:Mt},Symbol.toStringTag,{value:"Module"})),It=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],jt="transparent",Et={},$t={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},Bt={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Ft={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},Wt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Kt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ut={itemStyle:{borderWidth:0,borderColor:"#ccc"}},qt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Gt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Yt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Xt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Qt={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},Zt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},Jt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},eo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},to={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},oo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},no={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ro={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ao={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},lo={textStyle:{color:"#333333"}},io={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},so={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},co={color:["#5ab1ef","#e0ffff"]},uo={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},po={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Tr={color:It,backgroundColor:jt,textStyle:Et,title:$t,line:Bt,radar:Ft,bar:Wt,pie:Kt,scatter:Ut,boxplot:qt,parallel:Gt,sankey:Ht,funnel:Yt,gauge:Xt,candlestick:Qt,graph:Zt,map:Jt,geo:eo,categoryAxis:to,valueAxis:oo,logAxis:no,timeAxis:ro,toolbox:ao,legend:lo,tooltip:io,timeline:so,visualMap:co,dataZoom:uo,markPoint:po},kr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:jt,bar:Wt,boxplot:qt,candlestick:Qt,categoryAxis:to,color:It,dataZoom:uo,default:Tr,funnel:Yt,gauge:Xt,geo:eo,graph:Zt,legend:lo,line:Bt,logAxis:no,map:Jt,markPoint:po,parallel:Gt,pie:Kt,radar:Ft,sankey:Ht,scatter:Ut,textStyle:Et,timeAxis:ro,timeline:so,title:$t,toolbox:ao,tooltip:io,valueAxis:oo,visualMap:co},Symbol.toStringTag,{value:"Module"})),Or=()=>{const e=Object.assign({"/src/echart-themes/macarons/macarons-dark.json":Nr,"/src/echart-themes/macarons/macarons.json":kr}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{var i;const l=(i=r.match(t))==null?void 0:i[1];if(l)return n.push({name:l,theme:e[r].default}),n;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},xr=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Rr={bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>xr()},observer:{type:Object,default:null},throttleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({})}},Ar={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},Pr=Or();Pr.forEach(e=>{tn(e.name,e.theme)});const Rl=Vue.defineComponent({name:"RChart",props:Rr,setup(e,{expose:t}){const{getAppTheme:o}=I(),n=Vue.ref(),r=Vue.ref(),l=Vue.ref();let i,a;const{echartTheme:s}=j;let u,c;const p=Vue.computed(()=>[{label:"下载图片",key:"__DOWN_LOAD_CHART__",disabled:!(l.value&&l.value.getDom())}]),f=Vue.computed(()=>({"--ray-chart-width":D(e.width),"--ray-chart-height":D(e.height)})),b=async()=>{var V;ne([nn,rn,an,ln,sn,cn,un,dn]),ne([pn,mn,hn,fn,gn,yn]),ne([bn,vn]),ne([Vn]);try{ne((V=e.use)==null?void 0:V.filter(Boolean))}catch(k){console.error("[RChart register error]: ",k)}},v=()=>{if(e.theme==="default"){e.autoChangeTheme?y("dark"):y("");return}if(e.theme)y(e.theme);else{const V=e.autoChangeTheme&&o.value?`${s}-dark`:s;y(V)}},m=V=>{let k=Vue.unref(V);const R=A=>Object.assign({},k,A);return e.showAria&&(k=R({aria:{enabled:!0,decal:{show:!0}}})),k},y=(V=s)=>{const k=n.value,R=m(e.options),{height:A,width:$}=k.getBoundingClientRect(),{onSuccess:B,onError:ue}=e;try{c=on(k,V,{width:$===0?200:void 0,height:A===0?200:void 0}),l.value=c,e.nextTick?(c.setOption({}),Vue.nextTick(()=>{R&&(c==null||c.setOption(R))})):R&&(c==null||c.setOption(R)),B&&P(B,c)}catch(Ve){ue&&P(ue),console.error("RChart render error: ",Ve)}},d=()=>!!(c&&c.getDom()),h=()=>{d()&&(c.clear(),c.dispose(),l.value=void 0)},_=()=>{c&&c.resize()},T=(V,k)=>{if(V==="__DOWN_LOAD_CHART__"&&d()){const{filename:A,...$}=e.downloadOptions;$o(c.getDataURL($),A??`${new Date().getTime()}`)}const{onDropdownSelect:R}=e;R&&P(R,V,k)},g=()=>{if(c!=null&&c.getDom()){console.warn("[RChart mount]: There is a chart instance already initialized on the dom. Execution was interrupted.");return}v(),e.autoResize&&(i=et(_,e.throttleWait),a=zo(e.observer||r,i))},S=()=>{var V;h(),i==null||i.cancel(),(V=a==null?void 0:a.stop)==null||V.call(a)};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(h(),v())}),Vue.watch(()=>e.showAria,()=>{h(),v()}),Vue.watchEffect(()=>{e.watchOptions?u=Vue.watch(()=>e.options,V=>{const k=m(V),R=Object.assign(e.setChartOptions,Ar);c==null||c.setOption(k,R)},{deep:!0}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading()}),t({echart:l,dispose:S,render:g,isDispose:d}),Vue.onBeforeMount(async()=>{await b()}),Vue.onMounted(()=>{g()}),Vue.onBeforeUnmount(()=>{S(),u==null||u()}),{rayChartRef:n,cssVarsRef:f,rayChartWrapperRef:r,moreDropDownOptions:p,dropdownSelect:T}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:r,bordered:l,dropdownOptions:i}=this,{cardExtra:a}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:l},{default:re(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:re(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":re(a,{defaultElement:Vue.createVNode(mo,{iconSize:18,cursor:"pointer",options:i??n,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Lr={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},Al=Vue.defineComponent({name:"RCollapseGrid",props:Lr,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:r,"onUpdate:value":l}=e;r&&P(r,t.value),l&&P(l,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(N,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),Mr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},N=Vue.defineComponent({name:"RIcon",props:Mr,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?D(e.width):D(e.size),"--ray-icon-height":e.height?D(e.height):D(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:r=>{const{onClick:l}=e;l&&P(l,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Dr={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},wrapperClass:{type:String,default:null}},Pl=Vue.defineComponent({name:"RIframe",props:Dr,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":D(e.frameborder),"--ray-iframe-width":D(e.width),"--ray-iframe-height":D(e.height)})),n=Vue.ref(),r=Vue.ref(!0),l=a=>{r.value=!1;const{onSuccess:s}=e;s&&P(s,n.value,a)},i=a=>{r.value=!1;const{onError:s}=e;s&&P(s,a)};return le(n,"load",l),le(n,"error",i),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.wrapperClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),zr={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Ir=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(r=>{setTimeout(()=>{const l=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const i=Be(e).draggable({inertia:!0,autoScroll:!0,allowFrom:l,modifiers:[Be.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:a=>{n==null||n(a)}}}).resizable(!1);r(i)}},30)})},Ll=Vue.defineComponent({name:"RModal",props:zr,setup(e){const{height:t}=De(),o=Vue.computed(()=>({"--r-modal-width":D(e.width??600),"--r-modal-card-width":D(e.cardWidth??600),"--r-modal-dialog-width":D(e.dialogWidth??446)})),n=ge();let r;const l={x:0,y:0},i=()=>e.preset==="card"&&e.fullscreen,a=()=>{const s=document.getElementById(n);s&&Ir(s,e.preset,{scheduler:u=>{const c=u.target;l.x+=u.dx,l.y+=u.dy,c.style.transform=`translate(${l.x}px, ${l.y}px)`}}).then(u=>{r=u})};return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{a();const u=document.getElementById(n);e.memo&&u&&(u.style.transform=`translate(${l.x}px, ${l.y}px)`)}):(r==null||r.unset(),r=null)},{immediate:!0}),{cssVars:o,height:t,isFullscreenCardType:i,uuidEl:n}},render(){const{isFullscreenCardType:e}=this,{$props:t,$slots:o,$attrs:n}=this,{preset:r,...l}=t,{cssVars:i,height:a,uuidEl:s}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:["r-modal",e()?"r-modal__preset-card--fullscreen":""],style:[i,e()?`height: ${a}px`:""],preset:r},{id:s},l,n),{...o})}}),jr={...naive.dropdownProps,iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function Er(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const mo=Vue.defineComponent({name:"RMoreDropdown",props:jr,render(){let e;const{iconSize:t,cursor:o}=this,{default:n}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),Er(e=re(n,{defaultElement:Vue.createVNode(N,{name:"more",size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),$r={loadingDescription:{type:String},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:e=>[0,1,2,3].includes(e)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}},Br=e=>new Promise((t,o)=>{const n=new XMLHttpRequest;n.responseType="blob",n.onload=()=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=l=>{o(l)},r.onabort=l=>{o(l)},r.readAsArrayBuffer(n.response)},n.open("GET",e),n.send()}),Ml=Vue.defineComponent({name:"RayQRcode",props:$r,setup(e,t){const{expose:o}=t,n=Vue.ref();let r,l;const i=async()=>{const{gifBackgroundURL:c}=e;if(c)try{r=await Br(c)}catch(p){console.error(p)}},a=()=>{const{gifBackground:c,...p}=e;new Xo.AwesomeQR({...p,gifBackground:r??void 0}).draw().then(f=>{const{onSuccess:b}=e;b&&P(b,f),n.value=f}).catch(f=>{const{onError:b}=e;b&&P(b,f)})},s=()=>{if(t.slots.errorAction)return;const{onReload:c}=e;c&&P(c)},u=c=>n.value&&G(n.value,"String")?Bo(n.value,c||new Date().getTime()+".png"):Promise.reject();return Vue.watchEffect(()=>{e.watchText?l=Vue.watch(()=>e.text,()=>a()):l==null||l()}),o({downloadQRCode:u}),Vue.onMounted(async()=>{await i(),a()}),Vue.onBeforeUnmount(()=>{l==null||l()}),{qrcodeURL:n,errorActionClick:s}},render(){const{qrcodeURL:e,status:t,loadingDescription:o,errorDescription:n,$slots:r,errorActionDescription:l}=this,{errorActionClick:i}=this;return Vue.createVNode("div",{class:["ray-qrcode",`ray-qrcode--${t}`]},[Vue.createVNode(naive.NSpin,{show:t==="loading",description:o},{default:()=>[Vue.createVNode("img",{src:e},null)]}),t==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[G(n,"String")?n:()=>n]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:i.bind(this)},[r.errorAction?r.errorAction():Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{text:!0,type:"primary",color:"#ffffff"},{default:()=>l,icon:()=>Vue.createVNode(N,{name:"reload",size:"16",color:"#ffffff"},null)})])])]):null])}}),se={...naive.dataTableProps,downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null}},E={tableIconSize:"18",tableKey:Symbol("r-table")},Fr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...se},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:l}=e;l&&P(l,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"adjustment",size:E.tableIconSize,cursor:"pointer"},null)]})}}),Wr=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(E.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=Je(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(N,{name:"fullscreen",size:E.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),Kr=()=>Vue.createVNode(N,{name:"draggable",size:14,cursor:"all-scroll"},null),Ke=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:e,size:E.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),Me=(e,t)=>{if(!t)return[null,null];for(let o=0;oe.columns.map((i,a)=>{const{key:s,title:u,children:c,fixed:p,isResizable:f,...b}=i,v=p==="left",m=p==="right",y={...b,title:u,key:s,fixed:p,isLeftFixedActivated:v,isRightFixedActivated:m,isResizable:f};return{...y,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(Ke,{icon:"row_head",title:"固定在列首",customClassName:v?we:"",onClick:r.bind(this,"left",y,a)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"resize_h",size:E.tableIconSize,cursor:"pointer",customClassName:f?we:"",onClick:n.bind(this,y,a)},null),default:()=>"修改列宽"}),Vue.createVNode(Ke,{icon:"row_end",title:"固定在列尾",customClassName:m?we:"",onClick:r.bind(this,"right",y,a)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:a}=e;a&&P(a,i)},n=(i,a)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[a]=i,o(t.value)},r=(i,a,s)=>{const u=`${i}FixedActivated`,c=`${i==="left"?"right":"left"}FixedActivated`;a[c]=!1,a[u]=!a[u],a[u]?a.fixed=i:a.fixed=void 0,t.value[s]=a,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:a,dropPosition:s})=>{const[u,c]=Me(a,t.value);if(u===null||c===null)return;u.splice(c,1);const[p,f]=Me(i,t.value);p===null||f===null||(s==="before"?p.splice(f,0,a):p.splice(f+1,0,a),o(p))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"setting",size:E.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:Kr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),qr=Vue.defineComponent({name:"TablePrint",props:se,setup(e){const{wrapperRef:t}=Vue.inject(E.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:r}={},title:l}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof l=="string"?l:""),Fo(t,{printOptions:n,domToImageOptions:r})}}},render(){return Vue.createVNode(N,{name:"print",size:E.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Gr=Vue.defineComponent({name:"TablePropsSelect",props:{...se,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],r=i=>{const{onPopselectChange:a}=e;a&&P(a,i)};return(()=>{const{striped:i,bordered:a,onInitialed:s}=e;i&&o.value.push("striped"),a&&o.value.push("bordered"),s&&P(s,o.value)})(),{propsPopselectValue:o,propsOptions:n,popoverShow:t,updatePopselectValue:r}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:this.propsOptions,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"expanded",size:E.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function Hr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Dl=Vue.defineComponent({name:"RTable",props:se,setup(e,t){const{expose:o}=t,n=Vue.ref(),r=Vue.ref(),l=ge(16),i=ge(16),a=Vue.reactive({x:0,y:0,showContextMenu:!1}),s=Vue.reactive({size:e.size}),u=Vue.ref({striped:!1,bordered:!1}),c=(d,h)=>{const{onContextMenuClick:_}=e;_&&P(_,d,h),a.showContextMenu=!1},p=(d,h)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,d,h),onContextmenu:e.disabledContextMenu?void 0:g=>{g.preventDefault(),a.showContextMenu=!1,Vue.nextTick().then(()=>{a.showContextMenu=!0,a.x=g.clientX,a.y=g.clientY})}}},f=d=>{s.size=d},b=d=>{const{onUpdateColumns:h,"onUpdate:columns":_}=e;h&&P(h,d),_&&P(_,d)},v=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(()=>Boolean).map(h=>typeof h=="function"?h():h)},m=d=>{Object.keys(u.value).forEach(_=>{u.value[_]=d.includes(_)})},y=d=>{const h=()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(qr,d,null),Vue.createVNode(Fr,Vue.mergeProps(d,{onChangeSize:f.bind(this)}),null),Vue.createVNode(Wr,null,null),Vue.createVNode(Ur,Vue.mergeProps(d,{onUpdateColumn:b.bind(this)}),null),Vue.createVNode(Gr,Vue.mergeProps(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]);return e.toolOptions?e.coverTool?v:()=>Vue.createVNode(Vue.Fragment,null,[h(),v()]):h};return Vue.provide(E.tableKey,{uuidTable:i,uuidWrapper:l,wrapperRef:r}),o({rTableInst:n,uuidTable:i,uuidWrapper:l}),{uuidWrapper:l,uuidTable:i,contextMenuReactive:a,rTableInst:n,combineRowProps:p,contextMenuSelect:c,privateReactive:s,tool:y,wrapperRef:r,propsPopselectValue:u}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:r,disabledContextMenu:l,contextMenuReactive:i,contextMenuOptions:a,uuidTable:s,title:u,$slots:c,propsPopselectValue:p}=this,{tool:f,combineRowProps:b,contextMenuSelect:v}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps({ref:"wrapperRef",bordered:o},{id:n}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({ref:"rTableInst"},{id:s},t,e,p,{rowProps:b.bind(this),size:r.size}),{...c}),l?null:Vue.createVNode(naive.NDropdown,{show:i.showContextMenu,placement:"bottom-start",trigger:"manual",x:i.x,y:i.y,options:a,onClickoutside:()=>i.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:re(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":()=>{let m;return Vue.createVNode(naive.NFlex,{align:"center"},Hr(m=f(e))?m:{default:()=>[m]})},footer:()=>{var m;return(m=c.tableFooter)==null?void 0:m.call(c)},action:()=>{var m;return(m=c.tableAction)==null?void 0:m.call(c)}})}}),Yr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Xr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Yr),setup(e){const{getKeepAliveInclude:t}=ia(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:r}=rt;return(l,i)=>{const a=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createBlock(a,null,{default:Vue.withCtx(({Component:s,route:u})=>[s?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:l.transitionPropName,mode:l.transitionMode,appear:l.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})}}});var Qr={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Zr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,ho=(e,t,o)=>{const n=[];if(Zr(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const r of e.children){const l=ho(r,t,o);l.length>0&&n.push(e,...l)}return n},Jr=(e,t,o)=>{const n=[];for(const r of e){const l=ho(r,t,o);l.length>0&&n.push(...l)}return n},ea=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=Qr,n=o?o.title:"";document.title=t+" - "+n},ta=e=>{const{meta:{icon:t}}=e;if(!t)return;if(G(t,"Object"))return()=>t;const o=Vue.h(N,{name:t,size:Y.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},fo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=te(),{label:r,icon:l,type:i,i18nLabel:a}=t,s={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>a?n(a):r||null,c=()=>l&&(a||r)||!l&&(a||r)?null:{"padding-right":"0"};if(G(t,"Object"))return()=>Vue.h(naive.NTag,{...s,type:i||"primary",style:c()},{default:()=>u(),icon:()=>l})},Ue=()=>{const{getRootPath:e}=Z();return ie(M.appMenuKey,"sessionStorage",{defaultValue:e.value})},oa=e=>e[0]==="/",go=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const r of e){const l=o+(oa(r.path)?r.path:"/"+r.path);if((n=r.children)!=null&&n.length){go(r.children,t,l);continue}else t.push({...r,path:l})}return t},na=e=>Array.isArray(e)?go(Zo(e)):[],yo=()=>Vr(vr()),ra=()=>na(yo());let me;const bo=(e,t)=>{var o;if(me&&$e(me.fullPath,t))return me;for(const n of e){if($e(n.fullPath,t))return me=n,n;if((o=n.children)!=null&&o.length){bo(n.children,t);continue}}},vo=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=te(),{setKeepAliveInclude:r}=sa(),l=Vue.reactive({menuKey:Ue(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),i=Vue.ref(!0),a=d=>{const{meta:h}=d,{i18nKey:_,noLocalTitle:T}=h,g=Vue.computed(()=>_?n(`${_}`):T),S={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>g.value}),breadcrumbLabel:g.value},V=Object.assign({},S,{icon:ta(d),extra:fo(d)});return d.fullPath===Ue()&&(l.currentMenuOption=V),V.show=wo(V),V},s=d=>{l.breadcrumbOptions=Jr(l.options,"fullPath",d)},u=(d,h=!0)=>{const T=Array.isArray(d)?[...d]:[d];h?l.menuTagOptions.push(...T):l.menuTagOptions=T},c=(d,h)=>{l.menuTagOptions.find(T=>T.fullPath===d)||l.menuTagOptions.push(h)},p=(d,h,_)=>{const{meta:T}=h;if(T.windowOpen)window.open(T.windowOpen);else{e({path:String(d),query:_});const{sameLevel:g}=T;if(r(h),ea(h),!g)c(d,h),s(d),l.menuKey=d,l.currentMenuOption=h,ze(M.appMenuKey,d);else{const S=ye(a(h),["breadcrumbLabel","children","key","meta","name","path","show"]);l.breadcrumbOptions.find(k=>k.key===S.key)||l.breadcrumbOptions.push({...S,fullPath:String(S.key)})}}},f=async(d,h)=>{const[_]=d.split("?"),T=t().find(g=>g.path===_);if(T){const g=ye(T,["children","meta","path","name","redirect"]);p(_,a({...g,fullPath:g.path}),h)}},b=()=>new Promise(d=>{const h=(_,T)=>{var S;const g=[];for(const V of _){let k=`${T.endsWith("/")?T:T+"/"}${V.path}`;if(k=k.replace(/\/+/g,"/"),(S=V.children)!=null&&S.length)V.children=h(V.children,k);else if(!_o(V.meta))continue;g.push(a({...V,fullPath:k}))}return g};if(l.options=h(yo(),""),l.currentMenuOption){const{currentMenuOption:_}=l;s(_.key),c(_.fullPath,_)}d()}),v=d=>l.collapsed=d,m=(d,h=1)=>l.menuTagOptions.splice(d,h),y=async()=>{i.value&&(await b(),i.value=!1)};return Vue.watch(()=>o.fullPath,async(d,h)=>{await y(),d!==h&&await f(d,o.query)},{immediate:!0}),{...Vue.toRefs(l),changeMenuModelValue:p,collapsedMenu:v,spliceMenTagOptions:m,setMenuTagOptions:u,resolveOption:a}},{persist:{key:M.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),Vo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((r,l)=>{Jo(n)?l({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{window.$message.info("账号退出中..."),Wo("__all_sessionStorage__","sessionStorage"),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:M.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),So=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=rt,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=l=>{const i=o(),{name:a,meta:{keepAlive:s}}=l;if(s){if(i=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(a))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:r}},{persist:{key:M.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),Q=()=>{const e=vo(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:a}=Z();return e.menuTagOptions.map((s,u,c)=>(s.key===n.value&&s.key!==a.value?s.closeable=!0:s.closeable=!1,s.key===a.value&&(s.closeable=!1),c.length<=1&&(s.closeable=!1),s))}),l=Vue.computed(()=>e.currentMenuOption),i=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:r,getCurrentMenuOption:l,getCollapsed:i}},ce=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}=vo();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r}},I=()=>{const e=it(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),l=Vue.computed(()=>e.breadcrumbSwitch),i=Vue.computed(()=>e.localeLanguage),a=Vue.computed(()=>e.lockScreenSwitch),s=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),p=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:r,getBreadcrumbSwitch:l,getLocaleLanguage:i,getLockScreenSwitch:a,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:p,getAppRootRoute:f}},z=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=it();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},aa=()=>{const e=Vo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},la=()=>{const{signing:e,logout:t}=Vo();return{signing:e,logout:t}},ia=()=>{const e=So();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},sa=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=So();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},zl=async e=>{const t=Pinia.createPinia();e.use(t),t.use(Qo)},_o=e=>{const{getSigningCallback:t}=aa(),{role:o}=e;return pe!=null&&pe.length&&pe.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},wo=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:r}=t,{MODE:l}=Pe();return!(n||o||r&&typeof r=="string"&&r!==l||r&&Array.isArray(r)&&!r.includes(l))},ca=e=>{e.beforeEach(()=>{window==null||window.$loadingBar.start()}),e.afterEach(()=>{window==null||window.$loadingBar.finish()}),e.onError(()=>{window==null||window.$loadingBar.error()})},ua=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Rn;t&&ca(e),o&&_r(e)},Ce=(e=!0)=>{const{router:t}=be(),{push:o,replace:n}=t,{getRootPath:r}=Z();ze(M.appMenuKey,r.value),e?n(r.value):o(r.value)};var da={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const pa=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=da;return{sideBarLogo:t,handleSideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:r})=>Vue.createVNode(N,{name:t.icon,size:"30",cursor:r},null)}},render(){var e,t,o,n;return(e=this.sideBarLogo)!=null&&e.icon&&((t=this.sideBarLogo)!=null&&t.title)?Vue.createVNode("div",{class:["ray-menu__logo",(o=this.sideBarLogo)!=null&&o.url?"ray-menu__logo-url":null],onClick:this.handleSideBarLogoClick.bind(this)},[(n=this.sideBarLogo)!=null&&n.icon?this.collapsed?Vue.createVNode(naive.NPopover,{placement:"right"},{trigger:()=>Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null),default:()=>{var r;return(r=this.sideBarLogo)==null?void 0:r.title}}):Vue.createVNode(this.TemplateLogo,{cursor:"pointer"},null):null,Vue.createVNode("h1",{class:[this.collapsed?null:"ray-menu__logo-title--open","ray-menu__logo-title"]},[Vue.createVNode(naive.NEllipsis,null,{default:()=>{var r;return[(r=this.sideBarLogo)==null?void 0:r.title]}})])]):null}}),ma=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=ce(),{getMenuOptions:n,getCollapsed:r,getMenuKey:l}=Q(),i=Vue.computed({get:()=>(Vue.nextTick().then(()=>{u()}),l.value),set:()=>{a.value&&U("globalDrawerValue",!1)}}),{isTabletOrSmaller:a}=ve(),s=Vue.computed({get:()=>X("globalDrawerValue").value,set:p=>{U("globalDrawerValue",p)}}),u=()=>{const p=i.value;Vue.nextTick().then(()=>{var f,b;(b=(f=e.value)==null?void 0:f.showOption)==null||b.call(f,p)})};return{isTabletOrSmaller:a,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!a.value,collapseMode:Y.menuCollapsedMode,collapsedWidth:Y.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1},{default:()=>[Vue.createVNode(pa,{collapsed:r.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:i.value,"onUpdate:value":p=>i.value=p,options:n.value,indent:Y.menuCollapsedIndent,collapsed:r.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(p,f)=>{t(p,f)},accordion:Y.menuAccordion},null)]}),modelGlobalDrawerValue:s}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class ha{constructor(){Ee(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(n,r)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ne={requestInstance:null,responseInstance:null},Te={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},he={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},fa=new ha,Il=()=>{const e=(a,s)=>{s==="requestInstance"?Ne.requestInstance=a:Ne.responseInstance=a},t=a=>Ne[a],o=(a,s,u)=>{u==="ok"?Te[a]=s:he[a]=s},n=(a,s)=>s==="ok"?Te[a]:he[a],r=(a,...s)=>{Array.isArray(a)&&(a==null||a.forEach(u=>{typeof u=="function"&&u(...s)}))};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(a,s,u)=>{const c=u==="ok"?Te[s]:he[s],p=t(a),{MODE:f}=Pe();p&&r(c,p,f)},fetchError:(a,s,u)=>{const c=he[u],{MODE:p}=Pe();r(c,s,p)}}},ga=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{fa.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Co=Vue.defineComponent({name:"LayoutContentWrapper",setup(){const e=VueRouter.useRouter(),{maximize:t}=No(),{getContentTransition:o}=I(),n=Vue.ref(!1),r={opacitySpinning:"0"},l=X("globalMainLayoutLoad"),i=X("layoutContentMaximize"),a=X("layoutContentSpinning");return(()=>{e.beforeEach(()=>{n.value=!0}),e.afterEach(()=>{n.value=!1})})(),{globalMainLayoutLoad:l,spinning:n,themeOverridesSpin:r,getContentTransition:o,layoutContentMaximize:i,maximize:t,layoutContentSpinning:a}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o}=this,{maximize:n}=this;return Vue.createVNode(naive.NSpin,{show:this.spinning||!e||o,description:"loading...",size:"large",themeOverrides:this.themeOverridesSpin,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(N,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(ga,null,null),e?Vue.createVNode(Xr,{class:"content-wrapper",transitionPropName:this.getContentTransition+"-transform"},null):null]})}}),ya=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"}));var ba={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const va=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ba;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),qe=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=r=>{t("click",r)};return{iconClick:o,Icon:()=>Vue.createVNode(N,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Va=Vue.defineComponent({name:"ThemeSwitch",setup(){const{changeDarkTheme:e,changeLightTheme:t}=ol(),{getAppTheme:o}=I(),n=Vue.ref(o.value);return{changeDarkTheme:e,changeLightTheme:t,getAppTheme:o,railStyle:({checked:l})=>l?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,changeDarkTheme:t,changeLightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:n.bind(this),onUpdateValue:r=>r?t():o()},{"checked-icon":()=>Vue.createVNode(N,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(N,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function fe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Sa=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=z(),{getAppTheme:r,getPrimaryColorOverride:l,getMenuTagSwitch:i,getBreadcrumbSwitch:a,getCopyrightSwitch:s,getContentTransition:u,getWatermarkSwitch:c}=I(),p=Vue.computed({get:()=>e.show,set:b=>{t("update:show",b)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:i.value,getBreadcrumbSwitch:a.value,getCopyrightSwitch:s.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:b=>{}});return{modelShow:p,changePrimaryColor:o,getAppTheme:r,getPrimaryColorOverride:l,updateSettingState:n,modelSwitchReactive:f}},render(){let e,t,o,n;const{$t:r,changePrimaryColor:l,updateSettingState:i}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Va,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:j.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":a=>this.getPrimaryColorOverride.common.primaryColor=a,onUpdateValue:l.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(o=r("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":a=>this.modelSwitchReactive.getContentTransition=a,options:Nn,onUpdateValue:a=>{i("contentTransition",a)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},fe(n=r("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getMenuTagSwitch=a,onUpdateValue:a=>i("menuTagSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getBreadcrumbSwitch=a,onUpdateValue:a=>i("breadcrumbSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getWatermarkSwitch=a,onUpdateValue:a=>i("watermarkSwitch",a)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":a=>this.modelSwitchReactive.getCopyrightSwitch=a,onUpdateValue:a=>i("copyrightSwitch",a)},null)]})]})]})]})]})}});function _a(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const wa=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ce(),{getBreadcrumbOptions:t}=Q(),{isTabletOrSmaller:o}=ve();return{getBreadcrumbOptions:t,dropdownSelect:(l,i)=>{e(l,i)},breadcrumbItemClick:l=>{var i;if(!((i=l.children)!=null&&i.length)){const{meta:a={}}=l;a.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},_a(e=o.map(l=>Vue.createVNode(naive.NBreadcrumbItem,{key:l.fullPath,onClick:r.bind(this,l)},{default:()=>{var i;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((i=l.children)==null?void 0:i.length)>1?l.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ca=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ce(),{getRoutes:r}=VueRouter.useRouter(),l=Vue.computed({get:()=>e.show,set:g=>{t("update:show",g),g||f()}}),i=Vue.reactive({searchValue:null,searchOptions:[]}),a=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let s=0,u=s;const{isTabletOrSmaller:c}=ve(),p=Vue.ref(!1),f=()=>{i.searchOptions=[],i.searchValue=null,s=0,u=s},b=g=>{l.value||(g.ctrlKey||g.metaKey)&&g.key==="k"&&(g.preventDefault(),g.stopPropagation(),f(),l.value=!0)},v=g=>{if(g)p.value=!0;else{p.value=!1,i.searchOptions=[];return}const S=r().reduce((V,k)=>{var B;const R=ye(k,["children","meta","path","name"]),A=n({...R,fullPath:k.path}),{breadcrumbLabel:$}=A;return(B=$==null?void 0:$.toLocaleLowerCase())!=null&&B.includes(g.toLocaleLowerCase())&&wo(A)&&V.push(A),V},[]);setTimeout(()=>{i.searchOptions=S,Vue.nextTick().then(()=>{y()}),p.value=!1},500)},m=g=>{if(g){const{meta:S}=g;S.windowOpen?window.open(S.windowOpen):(l.value=!1,o(g.fullPath,g))}},y=()=>{const g=i.searchOptions[s],S=i.searchOptions[u],V="content-item--active";g&&Vue.nextTick().then(()=>{const k=Le(`attr:data_path="${g.path}"`),R=S?Le(`attr:data_path="${S==null?void 0:S.path}"`):null;if(R!=null&&R.length){const[A]=R;Ko(A,V)}if(k!=null&&k.length){const[A]=k;Uo(A,V)}})},d=g=>{const{icon:S}=g;return typeof S=="string"?Vue.createVNode(N,{name:S,size:"24"},null):typeof S=="function"?()=>S:Vue.createVNode(N,{name:"search",size:"24"},null)},h=g=>{g==="up"?s=s-1<0?0:s-1:g==="down"&&(s=s+1>=i.searchOptions.length?i.searchOptions.length-1:s+1)},_=g=>{const S=g.key;switch((S==="ArrowUp"||S==="ArrowDown"||S==="Enter")&&(g.preventDefault(),g.stopPropagation()),u=s<=0?0:s,S){case"ArrowUp":h("up");break;case"ArrowDown":h("down");break;case"Enter":const V=i.searchOptions[s];V&&m(V);break}y()},T=({menuOption:g})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:m.bind(this,g),data_path:g.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(g.meta)]),Vue.createVNode("div",{class:"content-item-label"},[g.breadcrumbLabel])]});return Vue.watchEffect(()=>{c.value&&(l.value=!1)}),le(window,"keydown",g=>{b(g),_(g)},!0),{...Vue.toRefs(i),modelShow:l,helperTipOptions:a,fuzzySearchMenuOptions:en(v,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:T,loading:p}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:r,$t:l}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":i=>this.modelShow=i,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":i=>this.searchValue=i,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(N,{name:"search",size:"24"},null)}),default:()=>{let i;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},ke(i=t.map(a=>Vue.createVNode(n,{menuOption:a,key:a.fullPath},null)))?i:{default:()=>[i]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createTextVNode("没有搜索结果")]})})]})]})},action:()=>{let i;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},ke(i=this.helperTipOptions.map(a=>Vue.createVNode(naive.NFlex,{key:a.label,size:[4,0]},{default:()=>[a.icon.map(s=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},ke(s)?s:{default:()=>[s]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[a.label]})]})))?i:{default:()=>[i]})}})])])]})}});function Na(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ta=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=qo();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:r}=e;r&&P(r,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(N,{name:"search",size:"16"},null),default:()=>{let n;return Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode(naive.NButton,{size:"tiny"},Na(n=e())?n:{default:()=>[n]})]})}})}}),ka=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,...naive.flexProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){const t=ie(M.signing),o=Vue.computed(()=>({"--app-avatar-cursor":e.cursor}));return{signing:t,cssVars:o}},render(){const{signing:e,cssVars:t,spaceSize:o,avatarSize:n,$props:r}=this;return Vue.createVNode(naive.NFlex,Vue.mergeProps({class:"app-avatar"},this.$props,{style:t,size:o}),{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(r,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),Vue.createVNode("div",{class:"app-avatar__name"},[e==null?void 0:e.name])]})}}),Oa=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],xa={logout:()=>{const{logout:e}=la();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=z();e("lockScreenSwitch",!0)}},Ra=e=>{const t=xa[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Aa=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},Pa=e=>{const{isFullscreen:t,isTabletOrSmaller:o}=e,{t:n}=te(),r=[{name:"fullscreen",size:18,tooltip:t.value?n("headerTooltip.CancelFullScreen"):n("headerTooltip.FullScreen"),eventKey:"screen"},{name:"github",size:18,tooltip:n("headerTooltip.Github"),eventKey:"github"},{name:"setting",size:18,tooltip:n("headerTooltip.Setting"),eventKey:"setting"}],l=[...r],i=[...r];return o.value?i:l},La=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=z(),{t:o}=te(),[n,{toggleFullscreen:r,isEnabled:l}]=Je(document.getElementsByTagName("html")[0]),{getDrawerPlacement:i,getBreadcrumbSwitch:a}=I(),s=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=ve(),p=X("globalDrawerValue"),f=Vue.computed(()=>Aa({isFullscreen:n,isTabletOrSmaller:c})),b=Vue.computed(()=>Pa({isFullscreen:n,isTabletOrSmaller:c})),v={search:()=>{u.value=!0},setting:()=>{s.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(o("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{U("globalDrawerValue",!p.value)}};return{leftIconOptions:f,rightTooltipIconOptions:b,toolIconClick:d=>{var h;(h=v[d])==null||h.call(v)},showSettings:s,updateLocale:e,getDrawerPlacement:i,getBreadcrumbSwitch:a,globalSearchShown:u,isRenderVNode:d=>c.value?null:d}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:r,updateLocale:l,isRenderVNode:i}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Ca,{show:this.globalSearchShown,"onUpdate:show":a=>this.globalSearchShown=a},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[t.map(a=>Vue.createVNode(qe,{key:a.name,iconName:a.name,tooltipText:Vue.isRef(a.tooltip)?a.tooltip.value:a.tooltip,customClassName:a.iconClass,onClick:r.bind(this,a.name)},null)),n?Vue.createVNode(wa,null,null):null]}),Vue.createVNode(naive.NFlex,{align:"center",size:[16,0]},{default:()=>[i(Vue.createVNode(Ta,{onClick:a=>{a.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(a=>Vue.createVNode(qe,{key:a.name,iconName:a.name,tooltipText:Vue.isRef(a.tooltip)?a.tooltip.value:a.tooltip,customClassName:a.iconClass,onClick:r.bind(this,a.name)},null)),Vue.createVNode(naive.NDropdown,{options:at,onSelect:a=>l(String(a)),trigger:"click"},{default:()=>[Vue.createVNode(N,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]}),Vue.createVNode(naive.NDropdown,{options:Oa(),onSelect:Ra.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(ka,{avatarSize:"small",align:"center",cursor:"pointer"},null)]})]})]}),Vue.createVNode(Sa,{show:this.showSettings,"onUpdate:show":a=>this.showSettings=a,placement:o},null)]})}}),Ma=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(La,null,null)]})}}),Da={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},za=nt('',1),Ia=[za];function ja(e,t){return tt(),ot("svg",Da,[...Ia])}const Ea={render:ja},$a={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Ba=nt('',1),Fa=[Ba];function Wa(e,t){return tt(),ot("svg",$a,[...Fa])}const Ka={render:Wa};function Ua(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const qa=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:r}=Q(),{changeMenuModelValue:l}=ce(),{getRootPath:i}=Z(),{maximize:a}=No(),{reload:s}=tl(),{close:u,closeAll:c,closeRight:p,closeLeft:f,closeOther:b,checkCloseLeft:v,checkCloseRight:m}=nl(),y=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let d=-1;const h={size:16},_=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(N,{name:"reload",size:h.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(N,{name:"close",size:h.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(Ka,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(Ea,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(N,{name:"other",size:h.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(N,{name:"resize_h",size:h.size},null),disabled:!1}]),T=ge(16),g={closeCurrentPage:()=>{n.value!==i.value&&u(d)},reloadCurrentPage:()=>{s()},closeAll:()=>{c()},closeRight:()=>{p(d)},closeLeft:()=>{f(d)},closeOther:()=>{b(d)}},S=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),V="menu_tag_data",k=X("globalMainLayoutLoad"),R=w=>{u(w)},A=(w,C)=>{_.value.forEach(L=>{if(L.key===w){L.disabled=C;return}})},$=w=>{S.actionDropdownShow=!1,l(w.fullPath,w)},B=()=>{const w=document.getElementById(T);if(w)return Array.from(w.childNodes).find(de=>Go(de,"n-scrollbar-container").value)},ue=w=>{var L;const C=B();if(C){const de=C.scrollLeft||0,je=w==="left"?Math.max(0,de-200):de+200;(L=o.value)==null||L.scrollTo({left:je,behavior:"smooth"})}},Ve=w=>{var C;S.actionDropdownShow=!1,(C=g[w])==null||C.call(g)},ko=(w,C)=>{C.preventDefault(),S.actionDropdownShow=!1,d=w,Vue.nextTick(()=>{S.actionDropdownShow=!0,S.x=C.clientX,S.y=C.clientY})},Ie=()=>{const{closeable:w}=r.value[d]??{};A("closeCurrentPage",!w),m(d)?A("closeRight",!1):A("closeRight",!0),v(d)?A("closeLeft",!1):A("closeLeft",!0)},Oo=()=>{d=r.value.findIndex(C=>C.fullPath===n.value),Ie()},xo=w=>{r.value.length>1&&w.fullPath!==i.value&&(w.closeable=!0)},Ro=w=>{w.fullPath!==n.value&&(w.closeable=!1)},Ao=()=>{B()&&Vue.nextTick().then(()=>{var C;(C=o.value)==null||C.scrollTo({left:99999,behavior:"smooth"})})},Po=()=>{Vue.nextTick().then(()=>{const w=Le(`attr:${V}="${n.value}"`);if(w!=null&&w.length){const[C]=w;Vue.nextTick().then(()=>{var L;(L=o.value)==null||L.scrollTo({left:C.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(w,C)=>{_.value.forEach(L=>{y.includes(L.key)&&(w.length>1?L.disabled=!1:L.disabled=!0)}),C!=null&&C.length&&(w.length>(C==null?void 0:C.length)?Ao():w.length===(C==null?void 0:C.length)&&Po())},{immediate:!0}),Vue.watch(()=>S.actionDropdownShow,w=>{var C;w&&((C=et(Ie,100))==null||C())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:R,getMenuKey:n,menuTagClick:$,moreOptions:_,scrollX:ue,scrollRef:o,uuidScrollBar:T,actionDropdownSelect:Ve,actionState:S,menuTagContextMenu:ko,setCurrentContextmenuIndex:Oo,menuTagMouseenter:xo,menuTagMouseleave:Ro,MENU_TAG_DATA:V,iconConfig:{width:22,height:22},maximize:a,getRootPath:i,reload:s,globalMainLayoutLoad:k}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:r,MENU_TAG_DATA:l,globalMainLayoutLoad:i}=this,{maximize:a,closeCurrentMenuTag:s,scrollX:u,$t:c,menuTagClick:p,menuTagContextMenu:f,menuTagMouseenter:b,menuTagMouseleave:v,actionDropdownSelect:m,reload:y}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:m.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Ua(e=r.map((d,h)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:d.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:d.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,d),onContextmenu:f.bind(this,h),onMouseenter:b.bind(this,d),onMouseleave:v.bind(this,d),[l]:d.path}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:_,meta:{i18nKey:T}}=d;return T?c(T):_}}),(d.closeable||r.length===1)&&d.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:s.bind(this,h)}),{default:()=>[Vue.createVNode(N,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[d.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(N,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{a(!0)}},null),Vue.createVNode(N,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${i?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{y()}},null),Vue.createVNode(mo,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(N,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),Ga=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(qa,null,null)}}),Ha=e=>{const t=Se(e[0]),o=Se(e[1]),n=Se(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},Ge=Io(M.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),Ya=()=>({setLockAppScreen:o=>{Ge.value=o},getLockAppScreen:()=>Ge.value}),Xa=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:r}=I(),{getLockAppScreen:l}=Ya(),i=Ha([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:i,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0},{default:()=>[Vue.createVNode(ma,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(Ma,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Ga,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:ee,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Co,null,null)]}),o?Vue.createVNode(va,{ref:"layoutFooterRef"},null):null]})]})}}),Qa=async()=>{const{getRootPath:e}=Z();return[{path:"/",name:"RLogin",component:()=>O(()=>import("./index-oTHLersY.js"),__vite__mapDeps([59,22,18,3,4,5,1,2,6,7,8,9,10,11,12,13,14,15,16,17,23,47,20,21,19,24,25,26,27,28,29,30,31,32,60]))},{path:"/",name:"RLayout",redirect:e.value,component:Xa,children:ra()}]};let ae;const Za=async()=>VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:await Qa(),scrollBehavior:e=>{Sr(e)}}),jl=async e=>{ae=await Za(),e.use(ae),be(),ua(ae)},be=()=>{try{if(ae)return{router:ae};throw new Error}catch(e){throw new Error(`[useVueRouter]: An error occurred during registration of vue-router. ${e}`)}},He="YYYY-MM-DD HH:mm:ss",Ja=()=>({locale:i=>{const a=On[i];a?F.locale(a):F.locale(xn)},getStartAndEndOfDay:i=>{const{format:a=He}=i??{},s=F(),u=s.startOf("day"),c=s.endOf("day"),p=s.format(a),f=u.format(a);return{today:s,startOfDay:u,endOfDay:c,formatToday:p,formatStartOfDay:f}},format:(i,a)=>{const{format:s=He}=a??{};return F(i).format(s)},isDayjs:i=>F.isDayjs(i),daysDiff:(i,a)=>{const s=F(i);return F(a).diff(s,"days")},isDateInRange:(i,a)=>{const{start:s,end:u}=a,c=F(i);return c.isAfter(s)&&c.isBefore(u)}});function ve(e){const{width:t,height:o}=De(e),n=Vue.ref(!1);return Ho(()=>{n.value=t.value<=768}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let Ye=999,Oe=!1;const H="ELEMENT-FULLSCREEN-RAY",{height:Xe}=De(),Qe=document.createElement("style"),el=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:r,exit:l,backgroundColor:i,zIndex:a}=t??{},s={};let u=!1;const c=()=>{const m=K(e);if(!m)return;const{left:y,top:d}=m.getBoundingClientRect(),h=` - [${H}] { - position: fixed; - width: 100% !important; - height: ${Xe.value}px !important; - transform: translate(-${y}px, -${d}px) !important; - transition: all 0.3s var(--r-bezier); - z-index: ${G(a,"Null")||G(a,"Undefined")?Ye:a} !important; - background-color: ${i??null}; - } - `;Qe.innerHTML=h,Oe||document.head.appendChild(Qe)},p=()=>{const m=K(e);o==null||o(),m&&(m.getAttribute(H)||m.setAttribute(H,H),u||(u=!0,Ye+=1),Oe||(c(),Oe=!0),s.transition=m.style.transition,m.style.transition="all 0.3s var(--r-bezier)",r==null||r())},f=()=>{n==null||n();const m=K(e);m&&m.removeAttribute(H),l==null||l()},b=()=>{const m=K(e);m&&(m.getAttribute(H)?f():p())},v=Vue.watch(()=>Xe.value,c);return Yo(()=>{const m=K(e);m&&(m.style.transition=s.transition??"",m.removeAttribute(H)),v()}),{enter:p,exit:f,toggleFullscreen:b}},xe={svg:oe.toSvg,png:oe.toPng,jpeg:oe.toJpeg,blob:oe.toBlob,pixelData:oe.toPixelData},El=(e,t)=>{const{beforeCreate:o,created:n,createdError:r,finally:l,imageType:i}=t??{};return{create:s=>new Promise((u,c)=>{var f;const p=K(e);if(o==null||o(p),!p)return r==null||r(),c("useDomToImage: element is undefined.");(f=xe[s??i??"jpeg"])==null||f.call(xe,p,t).then(b=>(n==null||n(b,p),u(b))).catch(b=>(r==null||r(b),c(b))).finally(()=>{l==null||l()})})}},$l=(e,t)=>({print:()=>{const n=K(e)||e;jo({...t,printable:n})}}),No=()=>({isLayoutContentMaximized:Vue.computed(()=>X("layoutContentMaximize").value),maximize:(o,n)=>{var a;const{scrollToOptions:r}=n??{},l=K(ee),{toggleFullscreen:i}=el(l,n);U("layoutContentMaximize",o),i(),r&&o&&((a=ee==null?void 0:ee.value)==null||a.scrollTo(r))}}),tl=()=>({reload:(n=800)=>{U("globalMainLayoutLoad",!1),setTimeout(()=>U("globalMainLayoutLoad",!0),n)},openSpin:()=>{U("layoutContentSpinning",!0)},closeSpin:()=>{U("layoutContentSpinning",!1)}}),Bl=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:l}=I(),i=Object.assign(l.value,{content:r}),{updateSettingState:a}=z();a("watermarkConfig",i)},showWatermark:()=>{const{updateSettingState:r}=z();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=z();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=I(),{updateSettingState:l}=z();l("watermarkSwitch",!r.value)}}),Re=e=>{const{getPrimaryColorOverride:t}=I(),{updateSettingState:o}=z();o("primaryColorOverride",e?Object.assign({},t.value,j.appNaiveUIThemeOverrides.dark,j.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,j.appNaiveUIThemeOverrides.light,j.appNaiveUIThemeOverridesCommon.light))},ol=()=>{const e=()=>{const{getAppTheme:r}=I(),{t:l}=te();return{theme:r.value,themeLabel:r.value?l("headerSettingOptions.ThemeOptions.Dark"):l("headerSettingOptions.ThemeOptions.Light")}};return{changeDarkTheme:()=>{const{updateSettingState:r}=z();r("appTheme",!0),Re(!0)},changeLightTheme:()=>{const{updateSettingState:r}=z();r("appTheme",!1),Re(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:l}=z();l("appTheme",!r),Re(!r)},getAppTheme:e}},J=(e,t)=>{const{getMenuTagOptions:o}=Q();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(r=>r.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,r=o.value.findIndex(l=>l.fullPath===n);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function nl(){const{getMenuTagOptions:e,getMenuKey:t}=Q(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:l}=ce(),i=()=>e.value.findIndex(v=>v.fullPath===t.value);return{close:v=>{const m=J(v,"close");if(e.value.length!==1&&m){const{index:y,option:d}=m;if(n(y),d.fullPath===t.value){const h=e.value[y-1];h&&o(h.fullPath,h)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:v}=Z(),{router:{getRoutes:m}}=be(),y=m().find(d=>d.path===v.value);if(y){const d=ye(y,["children","meta","path","name","redirect"]),h=l(d);o(h.path,l({...h,fullPath:h.path}))}},closeRight:v=>{const m=J(v,"closeRight");if(m){const{option:y,index:d}=m,h=e.value.length-d,_=i();n(d+1,h),d<=_&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeLeft:v=>{const m=J(v,"closeLeft");if(m){const{option:y,index:d}=m,h=i();n(0,d),h<=d&&t.value!==y.fullPath&&o(y.fullPath,y)}},closeOther:v=>{const m=J(v,"closeOther");if(m){const{option:y}=m;t.value!==y.fullPath?(n(0,e.value.length),o(y.fullPath,y)):r(y,!1)}},getCurrentTagIndex:i,checkCloseRight:v=>{const m=J(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return!(y>=d)}return!1},checkCloseLeft:v=>{const m=J(v,"checkCloseRight");if(m){const{index:y}=m,d=e.value.length-1;return y===0?!1:y>0&&d>0}return!1}}}function Fl(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:r,replace:l}}=be(),{isPush:i=!0,query:a}=o||{},s=u=>i?r({path:u,query:a}):l({path:u,query:a});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=Q();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],p=f=>{if(f.children&&f.children.length>0){const{children:[b]}=f;p(b);return}s(f.fullPath)};p(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?s(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else s(t.fullPath)}}}function Z(){const{getAppRootRoute:e}=I(),{updateSettingState:t}=z(),o=e,n=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:r,setRootRoute:i=>{t("appRootRoute",Object.assign({},e.value,i))}}}const rl=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=fo(e)},Ze=(e,t,o)=>{const n=bo(e,t);n&&rl(n,o)},Ae=(e,t,o)=>{const{getMenuOptions:n}=Q();if(typeof e=="string")Ze(n.value,e,o);else if(G(e,"Object")){const{fullPath:r}=e;Ze(n.value,r,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Wl(){return{hidden:n=>{Ae(n,"hidden",{show:!1})},show:n=>{Ae(n,"show",{show:!0})},update:(n,r)=>{Ae(n,"update",r)}}}const Kl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const r=e[n].default;let l=n.replace(`./${t}/`,"").replace(/^\.\//,"");const i=l.lastIndexOf(".");l=l.substring(0,i);const a=l.split("/"),s=a.shift(),u=a.join(".");s&&(u?(_e(o,s,o[s]||{}),_e(o[s],u,r)):_e(o,s,r||{}))}),o},al=async e=>{var o;const t={};for(const n of e){const r=await Cn(Object.assign({"./lang/en-US.ts":()=>O(()=>import("./en-US-bb02U1ge.js"),__vite__mapDeps([61,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32])),"./lang/zh-CN.ts":()=>O(()=>import("./zh-CN-q1Lg5YhR.js"),__vite__mapDeps([62,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32]))}),`./lang/${n.key}.ts`),l=n.key;l&&(t[l]=((o=r==null?void 0:r.default)==null?void 0:o.message)??{})}return t},Ul=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},To=()=>ie(M.localeLanguage,"localStorage",{defaultValue:Tn});export{Nl as A,Rl as B,Al as C,xn as D,Dl as E,fa as F,Il as G,kl as H,mo as I,No as J,Fl as K,at as L,tl as M,Bl as N,ol as O,Wl as P,Ce as Q,Ll as R,Tn as S,Va as T,O as _,El as a,Tl as b,I as c,M as d,z as e,ka as f,Ya as g,la as h,ve as i,X as j,be as k,kn as l,On as m,Ul as n,zl as o,jl as p,te as q,Z as r,xl as s,U as t,$l as u,Ml as v,N as w,Kl as x,Ol as y,Pl as z}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-Ji02w0VU.js","assets/vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js","assets/lodash@4.17.21-yUHHMES2.js","assets/awesome-qr@2.1.5-rc.0-UnPo3EFD.js","assets/canvas@2.11.2-dZp4QMlu.js","assets/js-binary-schema-parser@2.0.3-CCV6nRej.js","assets/js-cookie@3.0.5-bc0KQLgp.js","assets/screenfull@5.2.0-q9gEF-YC.js","assets/qs@6.11.2-Z-dpNlsu.js","assets/side-channel@1.0.4-JVVpKjRm.js","assets/get-intrinsic@1.2.1-1fqvy-Cp.js","assets/has-symbols@1.0.3-fNtejGuA.js","assets/has-proto@1.0.1-dzJH2Y5C.js","assets/function-bind@1.1.2-HMk2skFd.js","assets/has@1.0.3-vfHSusM3.js","assets/call-bind@1.0.2-X-jYgRcX.js","assets/dayjs@1.11.10-A-QuG2Ol.js","assets/print-js@1.6.0-gYKv6oGQ.js","assets/currency.js@2.0.4--or6eeOG.js","assets/index-0vVhegrX.js","assets/@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js","assets/@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js","assets/utils-zTxN2cCS.js","assets/lodash-es@4.17.21-xgd1l9mE.js","assets/interactjs@1.10.26-I0IiZoEj.js","assets/pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js","assets/dom-to-image@2.6.0-eHYYUq-2.js","assets/echarts@5.5.0-WNSrrRu3.js","assets/zrender@5.5.0-GTXoC3r-.js","assets/tslib@2.3.0-21A5UWR7.js","assets/@vue_runtime-core@3.4.20-d4vFfH7R.js","assets/@vue_reactivity@3.4.20-tq0PoOjZ.js","assets/@vue_shared@3.4.20-IXQMxlXI.js","assets/index-3nkF0W6U.css","assets/index-wQgCpKgU.js","assets/instance-CANSG-jZ.js","assets/index-kznjMqp-.css","assets/index-yyfNdCCw.js","assets/index-hsVU_iaJ.js","assets/index-V9956E0k.js","assets/index-k3xzQ4Uj.js","assets/index-ajyCn2oj.css","assets/index-ilzb9WZo.js","assets/index-B9Y8JKnJ.js","assets/index-gNfY19AN.js","assets/index-1M1NSL1D.js","assets/index-DuOnyvCG.js","assets/ray-9TfU2AhD.js","assets/index-jz2enyHr.js","assets/index-HDKPr_0g.css","assets/index-nPDpyH6g.js","assets/index-v5xFQW7A.js","assets/index-4oPeexgb.css","assets/index-REqw_tgG.js","assets/index-iKuv6ZNn.css","assets/index-mswpX-5K.js","assets/index-nnQ71BjC.js","assets/index-JkVEU21Q.js","assets/index-Btqqg3j9.css","assets/index-oTHLersY.js","assets/index-YZ6BMxRm.css","assets/en-US-bb02U1ge.js","assets/zh-CN-q1Lg5YhR.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/assets/hooks-HESpGiIM.js.gz b/assets/hooks-HESpGiIM.js.gz deleted file mode 100644 index a6eba25f..00000000 Binary files a/assets/hooks-HESpGiIM.js.gz and /dev/null differ diff --git a/assets/index-1M1NSL1D.js.gz b/assets/index-1M1NSL1D.js.gz deleted file mode 100644 index b168cc64..00000000 Binary files a/assets/index-1M1NSL1D.js.gz and /dev/null differ diff --git a/assets/index-4j_Rv2CP.js b/assets/index-4j_Rv2CP.js new file mode 100644 index 00000000..9ffab6e0 --- /dev/null +++ b/assets/index-4j_Rv2CP.js @@ -0,0 +1 @@ +import{z as i}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";const P=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{P as default}; diff --git a/assets/index-4j_Rv2CP.js.gz b/assets/index-4j_Rv2CP.js.gz new file mode 100644 index 00000000..9b4c55a3 Binary files /dev/null and b/assets/index-4j_Rv2CP.js.gz differ diff --git a/assets/index-5JgHFnX_.js b/assets/index-5JgHFnX_.js deleted file mode 100644 index 0e15e541..00000000 --- a/assets/index-5JgHFnX_.js +++ /dev/null @@ -1 +0,0 @@ -import{c as u,n as E,d as h,e as M,f as Z,g as b,h as L,i as R,j as $,R as I,D as m,k as U,S as _,l as w,L as Y,m as S,s as q,o as K,p as W}from"./hooks-HESpGiIM.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import{d as p}from"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{g as J,d as G,t as Q,f as X}from"./lodash-es@4.17.21-xgd1l9mE.js";import{g as A,c as e1,x as l1,l as g,m as H,s as z}from"./utils-zTxN2cCS.js";import{C as t1}from"./clipboard@2.0.11-1jqEMlOW.js";import{u as N}from"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function t(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function c(o){if(o.ep)return;o.ep=!0;const a=t(o);fetch(o.href,a)}})();const o1=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:l}){const{getPrimaryColorOverride:t,getAppTheme:c,getLocaleLanguage:o}=u(),a=Vue.computed(()=>{const n=o.value;return E(n)}),i=()=>{const{message:n,notification:r,dialog:d,loadingBar:s}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:c.value?naive.darkTheme:null}))});window.$dialog=d,window.$message=n,window.$loadingBar=s,window.$notification=r};return l(),{getPrimaryColorOverride:t,localePackage:a,getAppTheme:c,discreteApi:i}},render(){const{$slots:{default:e},discreteApi:l}=this,{getPrimaryColorOverride:t,getAppTheme:c,localePackage:o}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:t,theme:c?naive.darkTheme:null,locale:o.locale,dateLocale:o.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,null,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),l()]})]})]})]})]})]})}});var c1={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const i1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:l}){const{getAppTheme:t}=u(),c=()=>{const{appPrimaryColor:{primaryColor:i,primaryFadeColor:n}}=c1,r=document.body,d=A(h.appPiniaSettingStore,"localStorage");if(d){const s=J(d,"primaryColorOverride.common.primaryColor",i),v=e1(s,.38);r.style.setProperty("--ray-theme-primary-color",s),r.style.setProperty("--ray-theme-primary-fade-color",v||n)}},o=()=>{const i=document.getElementById("pre-loading-animation");i&&l1(i,{display:"none"})},a=i=>{const n=document.body,r="ray-template--dark",d="ray-template--light";i?g(n,d):g(n,r),H(n,i?r:d)};c(),o(),Vue.watch(()=>t.value,i=>{a(i)},{immediate:!0}),l()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),P={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},f=()=>({lockPassword:null}),a1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{setLockAppScreen:t}=b(),{updateSettingState:c}=M(),o=Vue.reactive({lockCondition:f()}),a=()=>{var i;(i=e.value)==null||i.validate(n=>{n||(t(!0),c("lockScreenSwitch",!0),o.lockCondition=f())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var i;(i=l.value)==null||i.focus()})}),{...Vue.toRefs(o),lockScreen:a,formInstRef:e,inputInstRef:l}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(Z,{vertical:!0,align:"center",avatarSize:52},null),Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:P,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),n1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{logout:t}=L(),{updateSettingState:c}=M(),{setLockAppScreen:o}=b(),{isTabletOrSmaller:a}=R(),i="HH:mm",n="A",r="YY年MM月DD日",d="ddd",s=Vue.reactive({lockCondition:f(),HH_MM:p().format(i),AM_PM:p().locale("en").format(n),YY_MM_DD:p().format(r),DDD:p().format(d)}),v=setInterval(()=>{s.HH_MM=p().format(i),s.AM_PM=p().format(n)},6e3),j=setInterval(()=>{s.YY_MM_DD=p().format(r),s.DDD=p().format(d)},864e5),D=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{t(),setTimeout(()=>{c("lockScreenSwitch",!1)})}})},T=()=>{var V;(V=e.value)==null||V.validate(F=>{F||(o(!1),c("lockScreenSwitch",!1),s.lockCondition=f())})};return Vue.onBeforeUnmount(()=>{clearInterval(v),clearInterval(j)}),{...Vue.toRefs(s),backToSigning:D,unlockScreen:T,formRef:e,inputInstRef:l,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:l,AM_PM:t,YY_MM_DD:c,DDD:o}=this,a=l.split(":"),{unlockScreen:i,backToSigning:n}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(Z,{vertical:!0,align:"center",avatarSize:52},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:P},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":r=>this.lockCondition.lockPassword=r,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:r=>{r.code==="Enter"&&i()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[l,Vue.createTextVNode(" "),Vue.createVNode("span",null,[t])]),Vue.createVNode("div",{class:"current-year"},[c,Vue.createTextVNode(" "),Vue.createVNode("span",null,[o])])])])])}}),r1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=b(),{updateSettingState:l}=M(),{getLockScreenSwitch:t}=u();return{lockScreenSwitchRef:Vue.computed({get:()=>t.value,set:o=>{l("lockScreenSwitch",o)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(naive.NModal,{show:this.lockScreenSwitchRef,"onUpdate:show":l=>this.lockScreenSwitchRef=l,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(n1,null,null):Vue.createVNode(a1,null,null)])]})}}),s1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:l}=u();return{getWatermarkSwitch:e,getWatermarkConfig:l}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:l}=this;return l?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),d1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:$("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var p1={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const u1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=p1,l=A(h.appVersionProvider,"localStorage"),t=Vue.ref(!1),{logout:c}=L();return l!==null?e!==l&&(t.value=!0,z(h.appVersionProvider,e,"localStorage")):z(h.appVersionProvider,e,"localStorage"),{modalShow:t,logout:c}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(I,{show:this.modalShow,"onUpdate:show":l=>this.modalShow=l,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),x=Vue.defineComponent({name:"App",render(){return Vue.createVNode(o1,null,{default:()=>[Vue.createVNode(u1,null,null),Vue.createVNode(r1,null,null),Vue.createVNode(i1,null,null),Vue.createVNode(s1,null,null),Vue.createVNode(d1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>"loading..."})]})}});if(typeof window<"u"){let e=function(){var l=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',l.insertBefore(t,l.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const h1=()=>{p.locale(m)},C=(e,l)=>{const t=new t1(e,{text:()=>l});e.$$clipboard=t,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},f1=()=>({mounted:(e,{value:l})=>{C(e,l)},updated:(e,{value:l,oldValue:t})=>{var c;l!==t&&((c=e.$$clipboard)==null||c.destroy(),C(e,l))},beforeUnmount:e=>{var l;e.$$clipboard&&((l=e.$$clipboard)==null||l.destroy(),e.$$clipboard=null)}}),v1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),m1=()=>{let e,l;return{beforeMount:(t,{value:c})=>{const{func:o,trigger:a="click",wait:i=500,options:n}=c;if(typeof o!="function")throw new TypeError("debounce directive value must be a function");e=G(o,i,Object.assign({},n)),l=N(t,a,e)},beforeUnmount:(t,{value:c})=>{e&&(e.cancel(),l==null||l()),e=null}}},g1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),k=(e,l)=>{if(e){const t="ray-template__directive--disabled";l?(e.setAttribute("disabled","disabled"),H(e,t)):(e.removeAttribute("disabled"),g(e,t)),e==null||e.setAttribute("disabled",l?"disabled":"")}},M1=()=>({mounted:(e,{value:l})=>{k(e,l)},updated:(e,{value:l,oldValue:t})=>{l!==t&&k(e,l)}}),b1=Object.freeze(Object.defineProperty({__proto__:null,default:M1},Symbol.toStringTag,{value:"Module"})),y1=()=>{let e;return{beforeMount:(l,{value:t})=>{const{func:c,trigger:o="click",wait:a=500,options:i}=t;if(typeof c!="function")throw new TypeError("throttle directive value must be a function");e=Q(c,a,Object.assign({},i)),N(l,o,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},V1=Object.freeze(Object.defineProperty({__proto__:null,default:y1},Symbol.toStringTag,{value:"Module"})),_1=e=>Object.keys(e).reduce((t,c)=>{var a;const o=(a=e[c])==null?void 0:a.default;if(typeof o=="function")return t[c]=o,t;throw new TypeError(`directiveModules: ${c} is not function`)},{}),w1=e=>{const t=_1(Object.assign({"/src/directives/modules/copy/index.ts":v1,"/src/directives/modules/debounce/index.ts":g1,"/src/directives/modules/disabled/index.ts":b1,"/src/directives/modules/throttle/index.ts":V1})),c=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),o=/^([^-]+-)*[^-]+$/;X(t,(a,i)=>{var r;const n=(r=i.match(c))==null?void 0:r[0];typeof n=="string"&&o.test(n)?e.directive(n,a()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},z1=async()=>{const{getAppRootRoute:e}=u(),{router:{getRoutes:l}}=U();if(!l().find(c=>c.path===e.value.path))throw new Error(`[validAppRootPath]: 'store setting appRootRoute path: ' '${e.value.path}' not found in router, please check the 'appRootRoute' setting in the store setting module.`)},y=()=>Y.map(e=>e.key),C1=()=>{const e=y();if(!e.includes(_))throw new Error(`[validLocal validSystemDefaultLocal:] SYSTEM_DEFAULT_LOCAL: '${_}' is not in LOCAL_OPTIONS: [${e.join(", ")}]`)},k1=()=>{const e=y();if(!e.includes(w))throw new Error(`[validLocal validSystemFallbackLocale:] SYSTEM_FALLBACK_LOCALE: '${w}' is not in LOCAL_OPTIONS: [${e.join(", ")}]`)},Z1=()=>{const e=y();Object.keys(S).forEach(t=>{if(!e.includes(t))throw new Error(`[validLocal validDayjsLocalMap:] DAYJS_LOCAL_MAP: '${t}' is not in LOCAL_OPTIONS: [${e.join(", ")}]`)})},L1=()=>{const e=Object.values(S);if(!e.includes(m))throw new Error(`[validLocal validDefaultDayjsLocal:] DEFAULT_DAYJS_LOCAL: '${m}' is not in DAYJS_LOCAL_MAP: [${e.join(", ")}]`)},S1=async()=>{C1(),k1(),Z1(),L1()},B=async()=>{await z1(),await S1()},O=async e=>{await q(e),await K(e),await W(e),h1(),w1(e)},A1=async()=>{const e=Vue.createApp(x);await O(e),e.mount("#app"),await B()},H1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(x),await O(e),e.mount("#app"),await B()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?H1():A1(); diff --git a/assets/index-5JgHFnX_.js.gz b/assets/index-5JgHFnX_.js.gz deleted file mode 100644 index a18ab611..00000000 Binary files a/assets/index-5JgHFnX_.js.gz and /dev/null differ diff --git a/assets/index-B5Z57bIp.js b/assets/index-B5Z57bIp.js new file mode 100644 index 00000000..d0ca139b --- /dev/null +++ b/assets/index-B5Z57bIp.js @@ -0,0 +1 @@ +import{a as u}from"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import{s as o}from"./instance-GflPbm5N.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./hooks-C9tZi_HS.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";function N(e,t){return u(()=>o(e),Object.assign({},t))}const D=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),X=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:m}=u(D,{throttleWait:1e3,manual:!0}),{data:p,loading:s,run:F}=N({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:m,demoData:p,demoLoading:s,demoRun:F}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{X as default}; diff --git a/assets/index-B5Z57bIp.js.gz b/assets/index-B5Z57bIp.js.gz new file mode 100644 index 00000000..09bb9477 Binary files /dev/null and b/assets/index-B5Z57bIp.js.gz differ diff --git a/assets/index-7HAQIe0w.js b/assets/index-B6a_PCdD.js similarity index 100% rename from assets/index-7HAQIe0w.js rename to assets/index-B6a_PCdD.js diff --git a/assets/index-B9Y8JKnJ.js.gz b/assets/index-B9Y8JKnJ.js.gz deleted file mode 100644 index 525d8f1a..00000000 Binary files a/assets/index-B9Y8JKnJ.js.gz and /dev/null differ diff --git a/assets/index-BAtuyJYR.js b/assets/index-BAtuyJYR.js new file mode 100644 index 00000000..4d18f68b --- /dev/null +++ b/assets/index-BAtuyJYR.js @@ -0,0 +1 @@ +import{v as p}from"./hooks-C9tZi_HS.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const I=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),r=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:i,y:u,show:a,updateShow:t}=p(e);return{demoOneRef:e,demoOneShow:o,x:i,y:u,show:a,options:r,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:r}=this,{clickOutside:i,updateShow:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:r,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),u(!1)},onClickoutside:i.bind(this)},null)]})}});export{I as default}; diff --git a/assets/index-BAtuyJYR.js.gz b/assets/index-BAtuyJYR.js.gz new file mode 100644 index 00000000..adaf1181 Binary files /dev/null and b/assets/index-BAtuyJYR.js.gz differ diff --git a/assets/index-Q6UTPELI.css b/assets/index-BDpRM8Qs.css similarity index 100% rename from assets/index-Q6UTPELI.css rename to assets/index-BDpRM8Qs.css diff --git a/assets/index-Q6UTPELI.css.gz b/assets/index-BDpRM8Qs.css.gz similarity index 100% rename from assets/index-Q6UTPELI.css.gz rename to assets/index-BDpRM8Qs.css.gz diff --git a/assets/index-tZy8npu9.js b/assets/index-BRGdSJVO.js similarity index 100% rename from assets/index-tZy8npu9.js rename to assets/index-BRGdSJVO.js diff --git a/assets/index-gNfY19AN.js b/assets/index-BZYAeO8n.js similarity index 66% rename from assets/index-gNfY19AN.js rename to assets/index-BZYAeO8n.js index ba9c4df6..5a3f9f0c 100644 --- a/assets/index-gNfY19AN.js +++ b/assets/index-BZYAeO8n.js @@ -1 +1 @@ -import{R as e}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const b=Vue.defineComponent({name:"ModalDemo",setup(){const u=Vue.reactive({modal1:!1,modal2:!1,modal3:!1});return{...Vue.toRefs(u)}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(e,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(e,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(e,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]})]})}});export{b as default}; +import{R as e}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const b=Vue.defineComponent({name:"ModalDemo",setup(){const u=Vue.reactive({modal1:!1,modal2:!1,modal3:!1});return{...Vue.toRefs(u)}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(e,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(e,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(e,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]})]})}});export{b as default}; diff --git a/assets/index-BZYAeO8n.js.gz b/assets/index-BZYAeO8n.js.gz new file mode 100644 index 00000000..cbb55d46 Binary files /dev/null and b/assets/index-BZYAeO8n.js.gz differ diff --git a/assets/index-nnQ71BjC.js b/assets/index-BagNRHLc.js similarity index 76% rename from assets/index-nnQ71BjC.js rename to assets/index-BagNRHLc.js index 1d967b0e..41d2b213 100644 --- a/assets/index-nnQ71BjC.js +++ b/assets/index-BagNRHLc.js @@ -1 +1 @@ -import{j as h,c as A,J as E,w as g,K as f,M as x,N as k,O as T,P as b}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const le=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=h("layoutContentMaximize"),o=Vue.ref(A().getWatermarkConfig.value.content),i=Vue.ref("new"),{navigationTo:n}=f(),{maximize:r,isLayoutContentMaximized:l}=E(),{reload:d,openSpin:V,closeSpin:c}=x(),{showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=k(),{changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e}=T(),{hidden:s,show:D,update:v}=b();return{navigationTo:n,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:c,showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:s,badgeShow:D,badgeUpdateLabel:v,badgeValue:i}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:i,closeSpin:n,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,changeDarkTheme:c,changeLightTheme:F,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:p,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>p("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(g,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{i(),setTimeout(()=>{n()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{le as default}; +import{k as h,c as A,G as E,r as g,H as f,I as k,J as x,K as T,M as b}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const le=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=h("layoutContentMaximize"),o=Vue.ref(A().getWatermarkConfig.value.content),i=Vue.ref("new"),{navigationTo:n}=f(),{maximize:r,isLayoutContentMaximized:l}=E(),{reload:d,openSpin:V,closeSpin:c}=k(),{showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=x(),{changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e}=T(),{hidden:s,show:D,update:v}=b();return{navigationTo:n,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:c,showWatermark:F,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,changeDarkTheme:B,changeLightTheme:p,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:s,badgeShow:D,badgeUpdateLabel:v,badgeValue:i}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:i,closeSpin:n,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,changeDarkTheme:c,changeLightTheme:F,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:p,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>p("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(g,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{i(),setTimeout(()=>{n()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{le as default}; diff --git a/assets/index-BagNRHLc.js.gz b/assets/index-BagNRHLc.js.gz new file mode 100644 index 00000000..7b675488 Binary files /dev/null and b/assets/index-BagNRHLc.js.gz differ diff --git a/assets/index-mswpX-5K.js b/assets/index-BatqiR9W.js similarity index 73% rename from assets/index-mswpX-5K.js rename to assets/index-BatqiR9W.js index 4fdc7c7b..8b064e54 100644 --- a/assets/index-mswpX-5K.js +++ b/assets/index-BatqiR9W.js @@ -1 +1 @@ -import{C as d,E as s,w as c,I as V}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function p(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Y=Vue.defineComponent({name:"TableView",setup(){const e=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},p(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark",width:300},{title:"Action",key:"actions",render:t=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(V,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:o=>{window.$message.info(`当前选择: ${o}`)}},null)]})}],r=Vue.ref([...e].map(t=>({...t,width:400}))),u=Vue.ref([{key:0,name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"},{key:1,name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["wow"],remark:"我是一条很长很长的备注"},{key:2,name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"],remark:"我是一条很长很长的备注"}]),n=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],l=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),i=t=>{window.$message.info(`${t}`)};return{...Vue.toRefs(l),tableData:u,actionColumns:r,baseColumns:e,tableMenuOptions:n,handleMenuSelect:i}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(d,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:e=>window.$message.info(`我是 RCollapseGrid 组件${e?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(s,{scrollX:2e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:e=>this.tableLoading=e},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":e=>this.actionColumns=e,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.handleMenuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(c,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})]},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Y as default}; +import{y as d,z as s,r as c,F as V}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";function p(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Y=Vue.defineComponent({name:"TableView",setup(){const e=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},p(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark",width:300},{title:"Action",key:"actions",render:t=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(V,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:o=>{window.$message.info(`当前选择: ${o}`)}},null)]})}],r=Vue.ref([...e].map(t=>({...t,width:400}))),u=Vue.ref([{key:0,name:"John Brown",age:32,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"},{key:1,name:"Jim Green",age:42,address:"London No. 1 Lake Park",tags:["wow"],remark:"我是一条很长很长的备注"},{key:2,name:"Joe Black",age:32,address:"Sidney No. 1 Lake Park",tags:["cool","teacher"],remark:"我是一条很长很长的备注"}]),n=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],l=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),i=t=>{window.$message.info(`${t}`)};return{...Vue.toRefs(l),tableData:u,actionColumns:r,baseColumns:e,tableMenuOptions:n,handleMenuSelect:i}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(d,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:e=>window.$message.info(`我是 RCollapseGrid 组件${e?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(s,{scrollX:2e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:e=>this.tableLoading=e},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":e=>this.actionColumns=e,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.handleMenuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(c,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})]},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Y as default}; diff --git a/assets/index-BatqiR9W.js.gz b/assets/index-BatqiR9W.js.gz new file mode 100644 index 00000000..0b94811f Binary files /dev/null and b/assets/index-BatqiR9W.js.gz differ diff --git a/assets/index-YZ6BMxRm.css b/assets/index-BhnoEzFG.css similarity index 100% rename from assets/index-YZ6BMxRm.css rename to assets/index-BhnoEzFG.css diff --git a/assets/index-YZ6BMxRm.css.gz b/assets/index-BhnoEzFG.css.gz similarity index 100% rename from assets/index-YZ6BMxRm.css.gz rename to assets/index-BhnoEzFG.css.gz diff --git a/assets/index-k3xzQ4Uj.js b/assets/index-Bn_UToez.js similarity index 79% rename from assets/index-k3xzQ4Uj.js rename to assets/index-Bn_UToez.js index d8994113..da027bfb 100644 --- a/assets/index-k3xzQ4Uj.js +++ b/assets/index-Bn_UToez.js @@ -1 +1 @@ -import{B as a}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const z=Vue.defineComponent({name:"REchart",setup(){const t=Vue.ref(),r=Vue.ref(!1),o=Vue.ref(!1),i=Vue.reactive({loading:!1}),n={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},s={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},u=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),l=e=>{i.loading=e},d=e=>{o.value=e},c=()=>{var e;(e=t.value)==null||e.render()},h=()=>{var e;(e=t.value)==null||e.dispose()},p=()=>{const e=()=>Math.floor((Math.random()+1)*100);u.value.series[0].data=new Array(7).fill(0).map(()=>e()),u.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:n,baseChartRef:t,chartLoading:r,handleLoadingShow:l,chartAria:o,handleAriaShow:d,basePieOptions:s,baseLineOptions:u,...Vue.toRefs(i),mountChart:c,unmountChart:h,handleUpdateTitle:p}},render(){return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("ul",null,[Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("1. 当未获取到宽高时,组件会默认以 200*200 尺寸填充。")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("2. 默认启用 autoChangeTheme,自动监听模板主题变化,如果设置为 false 则为 APP_THEME.echartTheme 配置项为渲染结果(RayTemplate 独有)")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("3. 默认启用 watchOptions,自动监听配置项变化")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("4. 默认启用 nextTick,强制在下一队列渲染图标内容")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("5. 配置 setChartOptions 属性,可以定制化合并模式")])])])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.handleUpdateTitle.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{title:"周销售量",ref:"baseChartRef",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{z as default}; +import{x as a}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const z=Vue.defineComponent({name:"REchart",setup(){const t=Vue.ref(),r=Vue.ref(!1),o=Vue.ref(!1),i=Vue.reactive({loading:!1}),n={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},s={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},u=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),l=e=>{i.loading=e},d=e=>{o.value=e},c=()=>{var e;(e=t.value)==null||e.render()},h=()=>{var e;(e=t.value)==null||e.dispose()},p=()=>{const e=()=>Math.floor((Math.random()+1)*100);u.value.series[0].data=new Array(7).fill(0).map(()=>e()),u.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:n,baseChartRef:t,chartLoading:r,handleLoadingShow:l,chartAria:o,handleAriaShow:d,basePieOptions:s,baseLineOptions:u,...Vue.toRefs(i),mountChart:c,unmountChart:h,handleUpdateTitle:p}},render(){return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("ul",null,[Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("1. 当未获取到宽高时,组件会默认以 200*200 尺寸填充。")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("2. 默认启用 autoChangeTheme,自动监听模板主题变化,如果设置为 false 则为 APP_THEME.echartTheme 配置项为渲染结果(RayTemplate 独有)")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("3. 默认启用 watchOptions,自动监听配置项变化")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("4. 默认启用 nextTick,强制在下一队列渲染图标内容")])]),Vue.createVNode("li",null,[Vue.createVNode("h3",null,[Vue.createTextVNode("5. 配置 setChartOptions 属性,可以定制化合并模式")])])])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.handleUpdateTitle.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{title:"周销售量",ref:"baseChartRef",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{z as default}; diff --git a/assets/index-Bn_UToez.js.gz b/assets/index-Bn_UToez.js.gz new file mode 100644 index 00000000..cd458ef1 Binary files /dev/null and b/assets/index-Bn_UToez.js.gz differ diff --git a/assets/index-ajyCn2oj.css b/assets/index-BqPIKfai.css similarity index 100% rename from assets/index-ajyCn2oj.css rename to assets/index-BqPIKfai.css diff --git a/assets/index-BtQWgsIO.js b/assets/index-BtQWgsIO.js new file mode 100644 index 00000000..ed297f56 --- /dev/null +++ b/assets/index-BtQWgsIO.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = [] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{r as s,_}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";function e(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Vue.isVNode(o)}const F=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const o=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/adjustment.svg":()=>_(()=>import("./adjustment-DIo_g8Za.js"),__vite__mapDeps([])),"/src/icons/axios.svg":()=>_(()=>import("./axios-o8g4A-7A.js"),__vite__mapDeps([])),"/src/icons/close.svg":()=>_(()=>import("./close-10SEVxdb.js"),__vite__mapDeps([])),"/src/icons/close_left.svg":()=>_(()=>import("./close_left-C6k2eGWg.js"),__vite__mapDeps([])),"/src/icons/close_right.svg":()=>_(()=>import("./close_right-CrnE5vtw.js"),__vite__mapDeps([])),"/src/icons/dark.svg":()=>_(()=>import("./dark-BqsidBpX.js"),__vite__mapDeps([])),"/src/icons/dashboard.svg":()=>_(()=>import("./dashboard-70op-CO0.js"),__vite__mapDeps([])),"/src/icons/doc.svg":()=>_(()=>import("./doc-DOlmxwep.js"),__vite__mapDeps([])),"/src/icons/draggable.svg":()=>_(()=>import("./draggable-D6qza0mp.js"),__vite__mapDeps([])),"/src/icons/echart.svg":()=>_(()=>import("./echart-c_3t778P.js"),__vite__mapDeps([])),"/src/icons/empty.svg":()=>_(()=>import("./empty-BrREX6wo.js"),__vite__mapDeps([])),"/src/icons/enter.svg":()=>_(()=>import("./enter-CPGcsJ25.js"),__vite__mapDeps([])),"/src/icons/error.svg":()=>_(()=>import("./error-CjWalrOZ.js"),__vite__mapDeps([])),"/src/icons/expanded.svg":()=>_(()=>import("./expanded-BswQDJyW.js"),__vite__mapDeps([])),"/src/icons/export_excel.svg":()=>_(()=>import("./export_excel-CkAGWFBN.js"),__vite__mapDeps([])),"/src/icons/fullscreen.svg":()=>_(()=>import("./fullscreen-Cjm0bPGx.js"),__vite__mapDeps([])),"/src/icons/fullscreen_fold.svg":()=>_(()=>import("./fullscreen_fold-BUWP5JFn.js"),__vite__mapDeps([])),"/src/icons/github.svg":()=>_(()=>import("./github-B4ARmChV.js"),__vite__mapDeps([])),"/src/icons/google.svg":()=>_(()=>import("./google-GEcrFhWr.js"),__vite__mapDeps([])),"/src/icons/language.svg":()=>_(()=>import("./language-C4AMs4_p.js"),__vite__mapDeps([])),"/src/icons/left_arrow.svg":()=>_(()=>import("./left_arrow-DAKeumRT.js"),__vite__mapDeps([])),"/src/icons/light.svg":()=>_(()=>import("./light-DWbddXnY.js"),__vite__mapDeps([])),"/src/icons/lock.svg":()=>_(()=>import("./lock-dC7sQfx2.js"),__vite__mapDeps([])),"/src/icons/login_bg.svg":()=>_(()=>import("./login_bg-DcvEftiQ.js"),__vite__mapDeps([])),"/src/icons/menu.svg":()=>_(()=>import("./menu-CPMkWw77.js"),__vite__mapDeps([])),"/src/icons/more.svg":()=>_(()=>import("./more-DW-qndwg.js"),__vite__mapDeps([])),"/src/icons/mouse.svg":()=>_(()=>import("./mouse-C_l6KSTs.js"),__vite__mapDeps([])),"/src/icons/office.svg":()=>_(()=>import("./office-B5pC1KGi.js"),__vite__mapDeps([])),"/src/icons/other.svg":()=>_(()=>import("./other-DU6bZUrM.js"),__vite__mapDeps([])),"/src/icons/out.svg":()=>_(()=>import("./out-CMQCc625.js"),__vite__mapDeps([])),"/src/icons/print.svg":()=>_(()=>import("./print-jFo_n0lx.js"),__vite__mapDeps([])),"/src/icons/qrcode.svg":()=>_(()=>import("./qrcode-Cr9UFjAo.js"),__vite__mapDeps([])),"/src/icons/ray.svg":()=>_(()=>import("./ray-08S_o84h.js"),__vite__mapDeps([])),"/src/icons/reload.svg":()=>_(()=>import("./reload-BCsJCBo-.js"),__vite__mapDeps([])),"/src/icons/rely.svg":()=>_(()=>import("./rely-DlDUQEbT.js"),__vite__mapDeps([])),"/src/icons/resize_h.svg":()=>_(()=>import("./resize_h-DA2p7YCQ.js"),__vite__mapDeps([])),"/src/icons/right_arrow.svg":()=>_(()=>import("./right_arrow-CbmroMoE.js"),__vite__mapDeps([])),"/src/icons/row_end.svg":()=>_(()=>import("./row_end-CqbNhb3G.js"),__vite__mapDeps([])),"/src/icons/row_head.svg":()=>_(()=>import("./row_head-BCxi2x-p.js"),__vite__mapDeps([])),"/src/icons/search.svg":()=>_(()=>import("./search-DPR73sQp.js"),__vite__mapDeps([])),"/src/icons/setting.svg":()=>_(()=>import("./setting-CqYm8XBn.js"),__vite__mapDeps([])),"/src/icons/table.svg":()=>_(()=>import("./table-tYkftQGA.js"),__vite__mapDeps([])),"/src/icons/twitter.svg":()=>_(()=>import("./twitter-DjE7U1HD.js"),__vite__mapDeps([]))})).forEach(t=>{const i=t.match(/\/(\w+)\.svg/)[1];i&&o.value.push(i)}),{icons:o}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let o;return Vue.createVNode(naive.NFlex,null,e(o=this.icons.map(r=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:r},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[Vue.resolveDirective("copy"),``]])))?o:{default:()=>[o]})}})}});export{F as default}; diff --git a/assets/index-BtQWgsIO.js.gz b/assets/index-BtQWgsIO.js.gz new file mode 100644 index 00000000..b443c010 Binary files /dev/null and b/assets/index-BtQWgsIO.js.gz differ diff --git a/assets/index-OlZM-6Aq.js b/assets/index-BtZPyenx.js similarity index 100% rename from assets/index-OlZM-6Aq.js rename to assets/index-BtZPyenx.js diff --git a/assets/index-BwFxO02U.js b/assets/index-BwFxO02U.js new file mode 100644 index 00000000..4aeb97ca --- /dev/null +++ b/assets/index-BwFxO02U.js @@ -0,0 +1 @@ +import{w as t}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const A=Vue.defineComponent({name:"RTemplateDoc",setup(){return{}},render(){return Vue.createVNode(t,{width:"100%",height:"100%",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",lazy:!0},null)}});export{A as default}; diff --git a/assets/index-BwFxO02U.js.gz b/assets/index-BwFxO02U.js.gz new file mode 100644 index 00000000..4c88b6de Binary files /dev/null and b/assets/index-BwFxO02U.js.gz differ diff --git a/assets/index-B9Y8JKnJ.js b/assets/index-C5KZd3-c.js similarity index 65% rename from assets/index-B9Y8JKnJ.js rename to assets/index-C5KZd3-c.js index c4225666..65284490 100644 --- a/assets/index-B9Y8JKnJ.js +++ b/assets/index-C5KZd3-c.js @@ -1 +1 @@ -import{C as p,E as d}from"./hooks-HESpGiIM.js";import{a as c}from"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./lodash@4.17.21-yUHHMES2.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{s}from"./instance-CANSG-jZ.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const V=o=>s({url:"/api/list",method:"get",params:o}),Q=Vue.defineComponent({name:"MockDemo",setup(){const o=[{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:u=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],t=Vue.reactive({email:null}),e=Vue.reactive({page:1,pageSize:10,itemCount:0,pageSizes:[10,20,30,40,50],showSizePicker:!0,onUpdatePage:u=>{e.page=u,a()},onUpdatePageSize:u=>{e.pageSize=u,e.page=1,a()}}),{data:i,loading:n,run:l}=c(V,{defaultParams:[{page:e.page,pageSize:e.pageSize,email:t.email}],onSuccess:u=>{const{total:r}=u;e.itemCount=r}}),a=()=>{const{pageSize:u,page:r}=e,{email:m}=t;l({page:r,pageSize:u,email:m})};return{personData:i,personLoading:n,paginationRef:e,columns:o,...Vue.toRefs(t),getPerson:a}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var o;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":t=>this.email=t,clearable:!0},null)]})]),action:()=>Vue.createVNode(naive.NButton,{type:"primary",onClick:this.getPerson.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})})]}),Vue.createVNode(d,{title:"Mock数据表格",data:(o=this.personData)==null?void 0:o.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":t=>this.columns=t,pagination:this.paginationRef,remote:!0},null)]}})}});export{Q as default}; +import{y as p,z as d}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import{a as c}from"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import{s}from"./instance-GflPbm5N.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";const V=o=>s({url:"/api/list",method:"get",params:o}),Q=Vue.defineComponent({name:"MockDemo",setup(){const o=[{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:u=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],t=Vue.reactive({email:null}),e=Vue.reactive({page:1,pageSize:10,itemCount:0,pageSizes:[10,20,30,40,50],showSizePicker:!0,onUpdatePage:u=>{e.page=u,a()},onUpdatePageSize:u=>{e.pageSize=u,e.page=1,a()}}),{data:i,loading:n,run:l}=c(V,{defaultParams:[{page:e.page,pageSize:e.pageSize,email:t.email}],onSuccess:u=>{const{total:r}=u;e.itemCount=r}}),a=()=>{const{pageSize:u,page:r}=e,{email:m}=t;l({page:r,pageSize:u,email:m})};return{personData:i,personLoading:n,paginationRef:e,columns:o,...Vue.toRefs(t),getPerson:a}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var o;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":t=>this.email=t,clearable:!0},null)]})]),action:()=>Vue.createVNode(naive.NButton,{type:"primary",onClick:this.getPerson.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})})]}),Vue.createVNode(d,{title:"Mock数据表格",data:(o=this.personData)==null?void 0:o.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":t=>this.columns=t,pagination:this.paginationRef,remote:!0},null)]}})}});export{Q as default}; diff --git a/assets/index-C5KZd3-c.js.gz b/assets/index-C5KZd3-c.js.gz new file mode 100644 index 00000000..9c448b8a Binary files /dev/null and b/assets/index-C5KZd3-c.js.gz differ diff --git a/assets/index-iKuv6ZNn.css b/assets/index-CIq6_pk2.css similarity index 100% rename from assets/index-iKuv6ZNn.css rename to assets/index-CIq6_pk2.css diff --git a/assets/index-kznjMqp-.css b/assets/index-CTOeMyqn.css similarity index 100% rename from assets/index-kznjMqp-.css rename to assets/index-CTOeMyqn.css diff --git a/assets/index-CciwGHqu.js b/assets/index-CciwGHqu.js new file mode 100644 index 00000000..d785e5c4 --- /dev/null +++ b/assets/index-CciwGHqu.js @@ -0,0 +1 @@ +import{N as r}from"./hooks-C9tZi_HS.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./utils-B_UBRWj5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";const t=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},render(){return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NButton,{onClick:r.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]})})])}}),q=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(t,{status:"404"},null)}});export{q as default}; diff --git a/assets/index-CciwGHqu.js.gz b/assets/index-CciwGHqu.js.gz new file mode 100644 index 00000000..9a6e3243 Binary files /dev/null and b/assets/index-CciwGHqu.js.gz differ diff --git a/assets/index-vRnYP7XJ.js b/assets/index-Cg1Whvge.js similarity index 100% rename from assets/index-vRnYP7XJ.js rename to assets/index-Cg1Whvge.js diff --git a/assets/index-CoqJ_eRa.js b/assets/index-CoqJ_eRa.js new file mode 100644 index 00000000..04692938 --- /dev/null +++ b/assets/index-CoqJ_eRa.js @@ -0,0 +1 @@ +var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/assets/index-CoqJ_eRa.js.gz b/assets/index-CoqJ_eRa.js.gz new file mode 100644 index 00000000..4507d50a Binary files /dev/null and b/assets/index-CoqJ_eRa.js.gz differ diff --git a/assets/index-yyfNdCCw.js b/assets/index-D9cLjbAP.js similarity index 58% rename from assets/index-yyfNdCCw.js rename to assets/index-D9cLjbAP.js index 9f900d70..607c1483 100644 --- a/assets/index-yyfNdCCw.js +++ b/assets/index-D9cLjbAP.js @@ -1 +1 @@ -import{s as r,g as u,j as o,y as a}from"./utils-zTxN2cCS.js";import"./hooks-HESpGiIM.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";const L=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{r("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=u("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{L as default}; +import{s as r,g as u,j as o,z as a}from"./utils-B_UBRWj5.js";import"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const L=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{r("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=u("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{L as default}; diff --git a/assets/index-D9cLjbAP.js.gz b/assets/index-D9cLjbAP.js.gz new file mode 100644 index 00000000..bed0bbec Binary files /dev/null and b/assets/index-D9cLjbAP.js.gz differ diff --git a/assets/index-DKh0jCzy.js b/assets/index-DKh0jCzy.js new file mode 100644 index 00000000..7c3566e5 --- /dev/null +++ b/assets/index-DKh0jCzy.js @@ -0,0 +1 @@ +import{s as u}from"./utils-B_UBRWj5.js";import{i as v,n as h,k as N,o as f,p,d,q as y,r as o,e as w,T as b,L as S}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{L as x}from"./ray-CES7ACvF.js";import{b as R}from"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import{R as _}from"./index-DsYRgjoY.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";function j(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const k=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=f(),{signing:i}=v(),{getRootPath:n}=h(),a=N("globalSpinning"),g=()=>({name:"Ray Admin",pwd:"123456"}),c=VueRouter.useRouter(),r=Vue.ref(g()),m={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var l;(l=e.value)==null||l.validate(V=>{V||(p("globalSpinning",!0),i(r.value).then(s=>{s.code===0&&setTimeout(()=>{p("globalSpinning",!1),window.$message.success(`欢迎${r.value.name}登陆~`),u(d.token,"tokenValue"),u(d.signing,s.data),c.push(n.value)},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:m,globalSpinning:a}},render(){let e;const{$t:t,globalSpinning:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},j(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),C=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),F=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(y,{text:"ray template yes",size:200,logoImage:x},null)])}});function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const O=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},L(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(o,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var T={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function P(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ve=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=T,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=R(),{updateLocale:a}=w();return{...Vue.toRefs(t),windowHeight:i,updateLocale:a,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(b,null,null),Vue.createVNode(naive.NDropdown,{options:S,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(o,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(o,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},P(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(k,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(C,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(F,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(O,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(_,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ve as default}; diff --git a/assets/index-DKh0jCzy.js.gz b/assets/index-DKh0jCzy.js.gz new file mode 100644 index 00000000..31c1ad5e Binary files /dev/null and b/assets/index-DKh0jCzy.js.gz differ diff --git a/assets/index-3nkF0W6U.css b/assets/index-DeeQXRbp.css similarity index 100% rename from assets/index-3nkF0W6U.css rename to assets/index-DeeQXRbp.css diff --git a/assets/index-4oPeexgb.css b/assets/index-Dig957GB.css similarity index 100% rename from assets/index-4oPeexgb.css rename to assets/index-Dig957GB.css diff --git a/assets/index-v5xFQW7A.js b/assets/index-DlFOimWs.js similarity index 100% rename from assets/index-v5xFQW7A.js rename to assets/index-DlFOimWs.js diff --git a/assets/index-0vVhegrX.js b/assets/index-DsYRgjoY.js similarity index 100% rename from assets/index-0vVhegrX.js rename to assets/index-DsYRgjoY.js diff --git a/assets/index-0vVhegrX.js.gz b/assets/index-DsYRgjoY.js.gz similarity index 100% rename from assets/index-0vVhegrX.js.gz rename to assets/index-DsYRgjoY.js.gz diff --git a/assets/index-DuOnyvCG.js.gz b/assets/index-DuOnyvCG.js.gz deleted file mode 100644 index 3ab79d9e..00000000 Binary files a/assets/index-DuOnyvCG.js.gz and /dev/null differ diff --git a/assets/index-Btqqg3j9.css b/assets/index-G2qqDeP0.css similarity index 100% rename from assets/index-Btqqg3j9.css rename to assets/index-G2qqDeP0.css diff --git a/assets/index-Ji02w0VU.js.gz b/assets/index-Ji02w0VU.js.gz deleted file mode 100644 index 340dde8b..00000000 Binary files a/assets/index-Ji02w0VU.js.gz and /dev/null differ diff --git a/assets/index-JkVEU21Q.js b/assets/index-JkVEU21Q.js deleted file mode 100644 index 5eb4cd14..00000000 --- a/assets/index-JkVEU21Q.js +++ /dev/null @@ -1 +0,0 @@ -import{Q as r}from"./hooks-HESpGiIM.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";const t=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},render(){return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NButton,{onClick:r.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]})})])}}),j=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(t,{status:"404"},null)}});export{j as default}; diff --git a/assets/index-JkVEU21Q.js.gz b/assets/index-JkVEU21Q.js.gz deleted file mode 100644 index 517a5863..00000000 Binary files a/assets/index-JkVEU21Q.js.gz and /dev/null differ diff --git a/assets/index-DuOnyvCG.js b/assets/index-MIifIf1C.js similarity index 60% rename from assets/index-DuOnyvCG.js rename to assets/index-MIifIf1C.js index 7d5d590c..515c7741 100644 --- a/assets/index-DuOnyvCG.js +++ b/assets/index-MIifIf1C.js @@ -1 +1 @@ -import{v as e}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{L as u}from"./ray-9TfU2AhD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";const b=Vue.defineComponent({name:"RQRCodeDemo",setup(){const t=Vue.ref("ray template yes"),o=Vue.ref(),a=Vue.ref();return{qrcodeText:t,qrcodeStatus:o,rayQRCodeRef:a}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"loading"},null)]})]}),Vue.createVNode(naive.NCard,{title:"监听内容变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var t;(t=this.rayQRCodeRef)==null||t.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:u,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; +import{q as e}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{L as u}from"./ray-CES7ACvF.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const b=Vue.defineComponent({name:"RQRCodeDemo",setup(){const t=Vue.ref("ray template yes"),o=Vue.ref(),a=Vue.ref();return{qrcodeText:t,qrcodeStatus:o,rayQRCodeRef:a}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:u,status:"loading"},null)]})]}),Vue.createVNode(naive.NCard,{title:"监听内容变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var t;(t=this.rayQRCodeRef)==null||t.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:u,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; diff --git a/assets/index-MIifIf1C.js.gz b/assets/index-MIifIf1C.js.gz new file mode 100644 index 00000000..ee4af169 Binary files /dev/null and b/assets/index-MIifIf1C.js.gz differ diff --git a/assets/index-REqw_tgG.js b/assets/index-REqw_tgG.js deleted file mode 100644 index ed8bdb0a..00000000 --- a/assets/index-REqw_tgG.js +++ /dev/null @@ -1,7 +0,0 @@ -import{w as s,_}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function e(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Vue.isVNode(o)}const F=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const o=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/adjustment.svg":()=>_(()=>import("./adjustment-xKF72UgA.js"),__vite__mapDeps([])),"/src/icons/axios.svg":()=>_(()=>import("./axios-YSlog9Ro.js"),__vite__mapDeps([])),"/src/icons/close.svg":()=>_(()=>import("./close-azVF77Xi.js"),__vite__mapDeps([])),"/src/icons/close_left.svg":()=>_(()=>import("./close_left-wghYE-yL.js"),__vite__mapDeps([])),"/src/icons/close_right.svg":()=>_(()=>import("./close_right-rXgRVuVY.js"),__vite__mapDeps([])),"/src/icons/dark.svg":()=>_(()=>import("./dark-a3Shlz-3.js"),__vite__mapDeps([])),"/src/icons/dashboard.svg":()=>_(()=>import("./dashboard-VSK8Ksb1.js"),__vite__mapDeps([])),"/src/icons/doc.svg":()=>_(()=>import("./doc-p7kRFTKe.js"),__vite__mapDeps([])),"/src/icons/draggable.svg":()=>_(()=>import("./draggable-WSlqett4.js"),__vite__mapDeps([])),"/src/icons/echart.svg":()=>_(()=>import("./echart-uDAjf1Xg.js"),__vite__mapDeps([])),"/src/icons/empty.svg":()=>_(()=>import("./empty-H5pwkZW3.js"),__vite__mapDeps([])),"/src/icons/error.svg":()=>_(()=>import("./error-1RFXBHac.js"),__vite__mapDeps([])),"/src/icons/expanded.svg":()=>_(()=>import("./expanded-hDBHAcSA.js"),__vite__mapDeps([])),"/src/icons/export_excel.svg":()=>_(()=>import("./export_excel-GFRgGiCF.js"),__vite__mapDeps([])),"/src/icons/fullscreen.svg":()=>_(()=>import("./fullscreen-LJg-Litq.js"),__vite__mapDeps([])),"/src/icons/fullscreen_fold.svg":()=>_(()=>import("./fullscreen_fold-0gdJoV38.js"),__vite__mapDeps([])),"/src/icons/github.svg":()=>_(()=>import("./github-cVhKF5HM.js"),__vite__mapDeps([])),"/src/icons/google.svg":()=>_(()=>import("./google-Mjnm1oio.js"),__vite__mapDeps([])),"/src/icons/language.svg":()=>_(()=>import("./language-dqZc_JRl.js"),__vite__mapDeps([])),"/src/icons/left_arrow.svg":()=>_(()=>import("./left_arrow-9Z3nu3IR.js"),__vite__mapDeps([])),"/src/icons/light.svg":()=>_(()=>import("./light-xmnw2Bnt.js"),__vite__mapDeps([])),"/src/icons/lock.svg":()=>_(()=>import("./lock-Dt93hMYt.js"),__vite__mapDeps([])),"/src/icons/login_bg.svg":()=>_(()=>import("./login_bg-BPuoXCrC.js"),__vite__mapDeps([])),"/src/icons/menu.svg":()=>_(()=>import("./menu-KnKYw6gN.js"),__vite__mapDeps([])),"/src/icons/more.svg":()=>_(()=>import("./more-Ej8Oiwns.js"),__vite__mapDeps([])),"/src/icons/mouse.svg":()=>_(()=>import("./mouse-03_U_h0x.js"),__vite__mapDeps([])),"/src/icons/office.svg":()=>_(()=>import("./office-mL13bbyC.js"),__vite__mapDeps([])),"/src/icons/other.svg":()=>_(()=>import("./other-QN44tLIz.js"),__vite__mapDeps([])),"/src/icons/out.svg":()=>_(()=>import("./out-Pi3tiQst.js"),__vite__mapDeps([])),"/src/icons/print.svg":()=>_(()=>import("./print-WnHXqwgf.js"),__vite__mapDeps([])),"/src/icons/qrcode.svg":()=>_(()=>import("./qrcode-Ecs_mS_M.js"),__vite__mapDeps([])),"/src/icons/ray.svg":()=>_(()=>import("./ray-vB7gcmcu.js"),__vite__mapDeps([])),"/src/icons/reload.svg":()=>_(()=>import("./reload-3-4q7kiv.js"),__vite__mapDeps([])),"/src/icons/rely.svg":()=>_(()=>import("./rely-19SjH3Lv.js"),__vite__mapDeps([])),"/src/icons/resize_h.svg":()=>_(()=>import("./resize_h-f_cn8Biv.js"),__vite__mapDeps([])),"/src/icons/right_arrow.svg":()=>_(()=>import("./right_arrow-ZCE0gHo4.js"),__vite__mapDeps([])),"/src/icons/row_end.svg":()=>_(()=>import("./row_end-BkDswo_g.js"),__vite__mapDeps([])),"/src/icons/row_head.svg":()=>_(()=>import("./row_head-yo3TQzYk.js"),__vite__mapDeps([])),"/src/icons/search.svg":()=>_(()=>import("./search-PNJFeCur.js"),__vite__mapDeps([])),"/src/icons/setting.svg":()=>_(()=>import("./setting-oh7cMM8q.js"),__vite__mapDeps([])),"/src/icons/table.svg":()=>_(()=>import("./table-RDC-4476.js"),__vite__mapDeps([])),"/src/icons/twitter.svg":()=>_(()=>import("./twitter-dtkDLQvk.js"),__vite__mapDeps([]))})).forEach(t=>{const i=t.match(/\/(\w+)\.svg/)[1];i&&o.value.push(i)}),{icons:o}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let o;return Vue.createVNode(naive.NFlex,null,e(o=this.icons.map(r=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:r},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[Vue.resolveDirective("copy"),``]])))?o:{default:()=>[o]})}})}});export{F as default}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/assets/index-REqw_tgG.js.gz b/assets/index-REqw_tgG.js.gz deleted file mode 100644 index dafd9daa..00000000 Binary files a/assets/index-REqw_tgG.js.gz and /dev/null differ diff --git a/assets/index-Ji02w0VU.js b/assets/index-SqeT1aYm.js similarity index 64% rename from assets/index-Ji02w0VU.js rename to assets/index-SqeT1aYm.js index cb3297d6..ec30ee71 100644 --- a/assets/index-Ji02w0VU.js +++ b/assets/index-SqeT1aYm.js @@ -1 +1 @@ -import{w as l}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import{R as i}from"./index-0vVhegrX.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";function o(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const X=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(l,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(l,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},o(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},o(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,o(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(i,null,null)]})]})}});export{X as default}; +import{r as l}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{R as r}from"./index-DsYRgjoY.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";function o(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const X=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(l,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(l,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},o(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},o(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,o(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{X as default}; diff --git a/assets/index-SqeT1aYm.js.gz b/assets/index-SqeT1aYm.js.gz new file mode 100644 index 00000000..6e06e3eb Binary files /dev/null and b/assets/index-SqeT1aYm.js.gz differ diff --git a/assets/index-V9956E0k.js b/assets/index-V9956E0k.js deleted file mode 100644 index 7c5ca81f..00000000 --- a/assets/index-V9956E0k.js +++ /dev/null @@ -1 +0,0 @@ -import{z as t}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const A=Vue.defineComponent({name:"RTemplateDoc",setup(){return{}},render(){return Vue.createVNode(t,{width:"100%",height:"100%",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",lazy:!0},null)}});export{A as default}; diff --git a/assets/index-V9956E0k.js.gz b/assets/index-V9956E0k.js.gz deleted file mode 100644 index 26ca1f6b..00000000 Binary files a/assets/index-V9956E0k.js.gz and /dev/null differ diff --git a/assets/index-HDKPr_0g.css b/assets/index-cMo-v_SD.css similarity index 100% rename from assets/index-HDKPr_0g.css rename to assets/index-cMo-v_SD.css diff --git a/assets/index-cvX3rsfB.js b/assets/index-cvX3rsfB.js new file mode 100644 index 00000000..59cf3688 --- /dev/null +++ b/assets/index-cvX3rsfB.js @@ -0,0 +1 @@ +import{c as f,g as O,d as u,e as b,f as C,h as M,i as Z,j as F,k as R,R as E,D as $,s as I,l as U,m as q}from"./hooks-C9tZi_HS.js";import{d as p}from"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as W,d as Y,t as G,f as J}from"./lodash-es@4.17.21-C8H4BJij.js";import{g as H,c as K,y as m,l as g,m as S,s as V,a as _}from"./utils-B_UBRWj5.js";import{C as Q}from"./clipboard@2.0.11-CB9-kMTz.js";import{u as x}from"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const i of c)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function t(c){const i={};return c.integrity&&(i.integrity=c.integrity),c.referrerPolicy&&(i.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?i.credentials="include":c.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(c){if(c.ep)return;c.ep=!0;const i=t(c);fetch(c.href,i)}})();const X=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:l}){const{getPrimaryColorOverride:t,getAppTheme:o,getLocaleLanguage:c}=f(),i=Vue.computed(()=>{const r=c.value;return O(r)}),a=()=>{const{message:r,notification:n,dialog:d,loadingBar:s}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=d,window.$message=r,window.$loadingBar=s,window.$notification=n};return l(),{getPrimaryColorOverride:t,localePackage:i,getAppTheme:o,discreteApi:a}},render(){const{$slots:{default:e},discreteApi:l}=this,{getPrimaryColorOverride:t,getAppTheme:o,localePackage:c}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:t,theme:o?naive.darkTheme:null,locale:c.locale,dateLocale:c.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,null,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),l()]})]})]})]})]})]})}});var e1={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const l1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:l}){const{getAppTheme:t}=f(),o=()=>{const{appPrimaryColor:{primaryColor:a,primaryFadeColor:r}}=e1,n=document.body,d=H(u.appPiniaSettingStore,"localStorage");if(d){const s=W(d,"primaryColorOverride.common.primaryColor",a),v=K(s,.38);n.style.setProperty("--ray-theme-primary-color",s),n.style.setProperty("--ray-theme-primary-fade-color",v||r)}},c=()=>{const a=document.getElementById("pre-loading-animation");a&&m(a,{display:"none"})},i=a=>{const r=document.body,n="ray-template--dark",d="ray-template--light";a?g(r,d):g(r,n),S(r,a?n:d)};o(),c(),Vue.watch(()=>t.value,a=>{i(a)},{immediate:!0}),l()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),N={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},h=()=>({lockPassword:null}),t1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{setLockAppScreen:t}=M(),{updateSettingState:o}=b(),c=Vue.reactive({lockCondition:h()}),i=()=>{var a;(a=e.value)==null||a.validate(r=>{r||(t(!0),o("lockScreenSwitch",!0),c.lockCondition=h())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var a;(a=l.value)==null||a.focus()})}),{...Vue.toRefs(c),lockScreen:i,formInstRef:e,inputInstRef:l}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(C,{vertical:!0,align:"center",avatarSize:52},null),Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:N,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),c1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),l=Vue.ref(null),{logout:t}=Z(),{updateSettingState:o}=b(),{setLockAppScreen:c}=M(),{isTabletOrSmaller:i}=F(),a="HH:mm",r="A",n="YY年MM月DD日",d="ddd",s=Vue.reactive({lockCondition:h(),HH_MM:p().format(a),AM_PM:p().locale("en").format(r),YY_MM_DD:p().format(n),DDD:p().format(d)}),v=setInterval(()=>{s.HH_MM=p().format(a),s.AM_PM=p().format(r)},6e3),B=setInterval(()=>{s.YY_MM_DD=p().format(n),s.DDD=p().format(d)},864e5),j=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{t(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},T=()=>{var y;(y=e.value)==null||y.validate(D=>{D||(c(!1),o("lockScreenSwitch",!1),s.lockCondition=h())})};return Vue.onBeforeUnmount(()=>{clearInterval(v),clearInterval(B)}),{...Vue.toRefs(s),backToSigning:j,unlockScreen:T,formRef:e,inputInstRef:l,isTabletOrSmaller:i}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:l,AM_PM:t,YY_MM_DD:o,DDD:c}=this,i=l.split(":"),{unlockScreen:a,backToSigning:r}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[i[0]]),Vue.createVNode("div",{class:"right"},[i[1]])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(C,{vertical:!0,align:"center",avatarSize:52},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:N},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":n=>this.lockCondition.lockPassword=n,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:n=>{n.code==="Enter"&&a()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:a.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[l,Vue.createTextVNode(" "),Vue.createVNode("span",null,[t])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[c])])])])])}}),o1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=M(),{updateSettingState:l}=b(),{getLockScreenSwitch:t}=f();return{lockScreenSwitchRef:Vue.computed({get:()=>t.value,set:c=>{l("lockScreenSwitch",c)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(naive.NModal,{show:this.lockScreenSwitchRef,"onUpdate:show":l=>this.lockScreenSwitchRef=l,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(c1,null,null):Vue.createVNode(t1,null,null)])]})}}),i1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:l}=f();return{getWatermarkSwitch:e,getWatermarkConfig:l}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:l}=this;return l?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),a1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:R("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var r1={pkg:{dependencies:{"@vueuse/core":"^10.9.0","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.21","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.5","vite-bundle-analyzer":"0.8.1","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.7.0"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const n1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=r1,l=H(u.appVersionProvider,"localStorage"),t=Vue.ref(!1),{logout:o}=Z();return l!==null?e!==l&&(t.value=!0,V(u.appVersionProvider,e,"localStorage")):V(u.appVersionProvider,e,"localStorage"),{modalShow:t,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(E,{show:this.modalShow,"onUpdate:show":l=>this.modalShow=l,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),A=Vue.defineComponent({name:"App",render(){return Vue.createVNode(X,null,{default:()=>[Vue.createVNode(n1,null,null),Vue.createVNode(o1,null,null),Vue.createVNode(l1,null,null),Vue.createVNode(i1,null,null),Vue.createVNode(a1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>"loading..."})]})}});if(typeof window<"u"){let e=function(){var l=document.body,t=document.getElementById("__svg__icons__dom__");t||(t=document.createElementNS("http://www.w3.org/2000/svg","svg"),t.style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',l.insertBefore(t,l.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const s1=()=>{p.locale($)},w=(e,l)=>{const t=new Q(e,{text:()=>l});e.$$clipboard=t,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},d1=()=>({mounted:(e,{value:l})=>{w(e,l)},updated:(e,{value:l,oldValue:t})=>{var o;l!==t&&((o=e.$$clipboard)==null||o.destroy(),w(e,l))},beforeUnmount:e=>{var l;e.$$clipboard&&((l=e.$$clipboard)==null||l.destroy(),e.$$clipboard=null)}}),p1=Object.freeze(Object.defineProperty({__proto__:null,default:d1},Symbol.toStringTag,{value:"Module"})),u1=()=>{let e,l;return{beforeMount:(t,{value:o})=>{const{func:c,trigger:i="click",wait:a=500,options:r}=o;if(typeof c!="function")throw new TypeError("debounce directive value must be a function");e=Y(c,a,Object.assign({},r)),l=x(t,i,e)},beforeUnmount:(t,{value:o})=>{e&&(e.cancel(),l==null||l()),e=null}}},h1=Object.freeze(Object.defineProperty({__proto__:null,default:u1},Symbol.toStringTag,{value:"Module"})),z=(e,l)=>{if(e){const t="ray-template__directive--disabled";l?(e.setAttribute("disabled","disabled"),S(e,t)):(e.removeAttribute("disabled"),g(e,t)),e==null||e.setAttribute("disabled",l?"disabled":"")}},f1=()=>({mounted:(e,{value:l})=>{z(e,l)},updated:(e,{value:l,oldValue:t})=>{l!==t&&z(e,l)}}),v1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),k=(e,l)=>{const{line:t=1,type:o="block",width:c,popoverText:i}=l;if(c==null){console.error(`[v-ellipsis]: Expected width, but got ${c}!`);return}i&&e.setAttribute("title",e.textContent||""),o==="line"?m(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t,overflow:"hidden",width:_(c)}):m(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:_(c)})},m1=()=>({mounted:(e,{value:l})=>{k(e,l)},updated:(e,{value:l})=>{k(e,l)}}),g1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),b1=()=>{let e;return{beforeMount:(l,{value:t})=>{const{func:o,trigger:c="click",wait:i=500,options:a}=t;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=G(o,i,Object.assign({},a)),x(l,c,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},M1=Object.freeze(Object.defineProperty({__proto__:null,default:b1},Symbol.toStringTag,{value:"Module"})),y1=e=>Object.keys(e).reduce((t,o)=>{var i;const c=(i=e[o])==null?void 0:i.default;if(typeof c=="function")return t[o]=c,t;throw new TypeError(`directiveModules: ${o} is not function`)},{}),V1=e=>{const t=y1(Object.assign({"/src/directives/modules/copy/index.ts":p1,"/src/directives/modules/debounce/index.ts":h1,"/src/directives/modules/disabled/index.ts":v1,"/src/directives/modules/ellipsis/index.ts":g1,"/src/directives/modules/throttle/index.ts":M1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),c=/^([^-]+-)*[^-]+$/;J(t,(i,a)=>{var n;const r=(n=a.match(o))==null?void 0:n[0];typeof r=="string"&&c.test(r)?e.directive(r,i()):console.error(`[setupDirectives] ${r} is not a valid directive name`)})},_1=async()=>{},w1=async()=>{},P=async()=>{await _1(),await w1()},L=async e=>{I(e),await U(e),q(e),s1(),V1(e)},z1=async()=>{const e=Vue.createApp(A);await L(e),e.mount("#app"),await P()},k1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(A),await L(e),e.mount("#app"),await P()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?k1():z1(); diff --git a/assets/index-cvX3rsfB.js.gz b/assets/index-cvX3rsfB.js.gz new file mode 100644 index 00000000..e462a568 Binary files /dev/null and b/assets/index-cvX3rsfB.js.gz differ diff --git a/assets/index-gNfY19AN.js.gz b/assets/index-gNfY19AN.js.gz deleted file mode 100644 index 647bcd03..00000000 Binary files a/assets/index-gNfY19AN.js.gz and /dev/null differ diff --git a/assets/index-hsVU_iaJ.js b/assets/index-hsVU_iaJ.js deleted file mode 100644 index 99415807..00000000 --- a/assets/index-hsVU_iaJ.js +++ /dev/null @@ -1 +0,0 @@ -import{y as p}from"./hooks-HESpGiIM.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";const I=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),r=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:i,y:u,show:a,updateShow:t}=p(e);return{demoOneRef:e,demoOneShow:o,x:i,y:u,show:a,options:r,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:r}=this,{clickOutside:i,updateShow:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:r,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),u(!1)},onClickoutside:i.bind(this)},null)]})}});export{I as default}; diff --git a/assets/index-hsVU_iaJ.js.gz b/assets/index-hsVU_iaJ.js.gz deleted file mode 100644 index 795a0095..00000000 Binary files a/assets/index-hsVU_iaJ.js.gz and /dev/null differ diff --git a/assets/index-ilzb9WZo.js b/assets/index-ilzb9WZo.js deleted file mode 100644 index db5dbc21..00000000 --- a/assets/index-ilzb9WZo.js +++ /dev/null @@ -1 +0,0 @@ -import{z as t}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const R=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(t,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(t,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{R as default}; diff --git a/assets/index-ilzb9WZo.js.gz b/assets/index-ilzb9WZo.js.gz deleted file mode 100644 index f6e0e88f..00000000 Binary files a/assets/index-ilzb9WZo.js.gz and /dev/null differ diff --git a/assets/index-1M1NSL1D.js b/assets/index-iv2cRqsP.js similarity index 66% rename from assets/index-1M1NSL1D.js rename to assets/index-iv2cRqsP.js index fb284980..2ee68815 100644 --- a/assets/index-1M1NSL1D.js +++ b/assets/index-iv2cRqsP.js @@ -1 +1 @@ -import"./hooks-HESpGiIM.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{z as s,A as p,B as d,C as l,D as c,E as V}from"./utils-zTxN2cCS.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./currency.js@2.0.4--or6eeOG.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";const Q=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(o,a)=>{const r=e[a],n=r(...o);return"结果: "+s(n)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{Q as default}; +import"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import{A as s,B as p,C as d,D as l,E as c,F as V}from"./utils-B_UBRWj5.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const Q=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(o,a)=>{const r=e[a],n=r(...o);return"结果: "+s(n)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{Q as default}; diff --git a/assets/index-iv2cRqsP.js.gz b/assets/index-iv2cRqsP.js.gz new file mode 100644 index 00000000..41f0ff05 Binary files /dev/null and b/assets/index-iv2cRqsP.js.gz differ diff --git a/assets/index-jz2enyHr.js b/assets/index-jz2enyHr.js deleted file mode 100644 index 0e4c0582..00000000 --- a/assets/index-jz2enyHr.js +++ /dev/null @@ -1 +0,0 @@ -var g={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/assets/index-jz2enyHr.js.gz b/assets/index-jz2enyHr.js.gz deleted file mode 100644 index 64c16055..00000000 Binary files a/assets/index-jz2enyHr.js.gz and /dev/null differ diff --git a/assets/index-k3xzQ4Uj.js.gz b/assets/index-k3xzQ4Uj.js.gz deleted file mode 100644 index 845f7799..00000000 Binary files a/assets/index-k3xzQ4Uj.js.gz and /dev/null differ diff --git a/assets/index-mswpX-5K.js.gz b/assets/index-mswpX-5K.js.gz deleted file mode 100644 index 252ca27d..00000000 Binary files a/assets/index-mswpX-5K.js.gz and /dev/null differ diff --git a/assets/index-nPDpyH6g.js b/assets/index-nPDpyH6g.js deleted file mode 100644 index 671c0e68..00000000 --- a/assets/index-nPDpyH6g.js +++ /dev/null @@ -1 +0,0 @@ -import{E as i}from"./hooks-HESpGiIM.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";const P=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{P as default}; diff --git a/assets/index-nPDpyH6g.js.gz b/assets/index-nPDpyH6g.js.gz deleted file mode 100644 index 2cb201ea..00000000 Binary files a/assets/index-nPDpyH6g.js.gz and /dev/null differ diff --git a/assets/index-nnQ71BjC.js.gz b/assets/index-nnQ71BjC.js.gz deleted file mode 100644 index 16cee41f..00000000 Binary files a/assets/index-nnQ71BjC.js.gz and /dev/null differ diff --git a/assets/index-nyLrq_TO.js b/assets/index-nyLrq_TO.js new file mode 100644 index 00000000..0f950bf4 --- /dev/null +++ b/assets/index-nyLrq_TO.js @@ -0,0 +1 @@ +import{w as t}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const R=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(t,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(t,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{R as default}; diff --git a/assets/index-nyLrq_TO.js.gz b/assets/index-nyLrq_TO.js.gz new file mode 100644 index 00000000..23cb1538 Binary files /dev/null and b/assets/index-nyLrq_TO.js.gz differ diff --git a/assets/index-oTHLersY.js b/assets/index-oTHLersY.js deleted file mode 100644 index d758aab4..00000000 --- a/assets/index-oTHLersY.js +++ /dev/null @@ -1 +0,0 @@ -import{s as u}from"./utils-zTxN2cCS.js";import{q as v,h,r as N,j as f,t as p,d,v as w,w as o,e as y,T as b,L as S}from"./hooks-HESpGiIM.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import{L as x}from"./ray-9TfU2AhD.js";import{b as R}from"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import{R as _}from"./index-0vVhegrX.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";function j(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const C=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=v(),{signing:i}=h(),{getRootPath:n}=N(),a=f("globalSpinning"),g=()=>({name:"Ray Admin",pwd:"123456"}),c=VueRouter.useRouter(),r=Vue.ref(g()),m={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var l;(l=e.value)==null||l.validate(V=>{V||(p("globalSpinning",!0),i(r.value).then(s=>{s.code===0&&setTimeout(()=>{p("globalSpinning",!1),window.$message.success(`欢迎${r.value.name}登陆~`),u(d.token,"tokenValue"),u(d.signing,s.data),c.push(n.value)},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:m,globalSpinning:a}},render(){let e;const{$t:t,globalSpinning:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},j(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),k=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),F=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(w,{text:"ray template yes",size:200,logoImage:x},null)])}});function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const O=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},L(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(o,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var T={pkg:{dependencies:{"@vueuse/core":"^10.7.1","awesome-qr":"2.1.5-rc.0",axios:"^1.6.7",clipboard:"^2.0.11","crypto-js":"^4.1.1","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.1",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.20","vue-demi":"0.14.6","vue-hooks-plus":"1.8.8","vue-i18n":"^9.9.0","vue-router":"^4.2.5"},devDependencies:{"@babel/core":"^7.23.9","@babel/eslint-parser":"^7.23.3","@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^2.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue-hooks-plus/resolvers":"1.2.4","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-n":"^16.6.2","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.18.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5","rollup-plugin-visualizer":"^5.12.0",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.1.4","vite-plugin-cdn2":"0.15.4","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vue-tsc":"^1.8.27"},name:"ray-template",version:"4.6.4"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function P(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ve=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=T,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=R(),{updateLocale:a}=y();return{...Vue.toRefs(t),windowHeight:i,updateLocale:a,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(b,null,null),Vue.createVNode(naive.NDropdown,{options:S,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(o,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(o,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},P(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(C,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(k,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(F,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(O,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(_,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ve as default}; diff --git a/assets/index-oTHLersY.js.gz b/assets/index-oTHLersY.js.gz deleted file mode 100644 index 0b3ab7cc..00000000 Binary files a/assets/index-oTHLersY.js.gz and /dev/null differ diff --git a/assets/index-qt5v82ci.js b/assets/index-qt5v82ci.js deleted file mode 100644 index 221e4895..00000000 --- a/assets/index-qt5v82ci.js +++ /dev/null @@ -1 +0,0 @@ -const a=Vue.defineComponent({name:"RDirective",setup(){const e=Vue.reactive({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),u=t=>{e[t]++};return{...Vue.toRefs(e),updateDemoValue:u}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,{title:"指令"},{default:()=>[Vue.createTextVNode("该页面展示如何使用已封装好的指令")]}),Vue.createVNode(naive.NCard,{title:"文本复制示例一"},{default:()=>[Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInput,{value:this.copyValueOne,"onUpdate:value":e=>this.copyValueOne=e},null),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("复制")]}),[[Vue.resolveDirective("copy"),this.copyValueOne]])]})]}),Vue.createVNode(naive.NCard,{title:"文本复制示例二"},{default:()=>[Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInput,{value:this.copyValueTwo,"onUpdate:value":e=>this.copyValueTwo=e},null),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("复制")]}),[[Vue.resolveDirective("copy"),this.copyValueTwo]])]})]}),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("点击执行")]}),[[Vue.resolveDirective("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),Vue.createVNode("p",null,[Vue.createTextVNode("我执行了"),this.throttleBtnClickCount,Vue.createTextVNode("次")]),Vue.createVNode("p",null,[Vue.createTextVNode("该方法 3s 内仅会执行一次")])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("点击执行")]}),[[Vue.resolveDirective("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),Vue.createVNode("p",null,[Vue.createTextVNode("我执行了"),this.debounceBtnClickCount,Vue.createTextVNode("次")]),Vue.createVNode("p",null,[Vue.createTextVNode("该方法将延迟 3s 执行")])]})]}),Vue.createVNode(naive.NCard,{title:"禁用"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.disabledValue,"onUpdate:value":e=>this.disabledValue=e},{checked:()=>"取消",unchecked:()=>"禁用"}),Vue.createVNode(naive.NCard,{title:"描述"},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),Vue.createVNode(naive.NCard,{title:"原生表单"},{default:()=>[Vue.withDirectives(Vue.createVNode("form",null,[Vue.createVNode("input",{type:"text",placeholder:"请输入"},null),Vue.createVNode("button",null,[Vue.createTextVNode("提交")])]),[[Vue.resolveDirective("disabled"),this.disabledValue]])]}),Vue.createVNode(naive.NCard,{title:"文本内容"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode("p",null,[Vue.createTextVNode("我是可以被禁用的文本内容")]),[[Vue.resolveDirective("disabled"),this.disabledValue]])]})]}),Vue.createVNode(naive.NCard,{title:"naive 组件"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,justify:"start"},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NForm,null,{default:()=>[Vue.createVNode(naive.NFormItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})]}),[[Vue.resolveDirective("disabled"),this.disabledValue]]),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("按钮")]}),[[Vue.resolveDirective("disabled"),this.disabledValue]]),Vue.withDirectives(Vue.createVNode(naive.NSwitch,null,null),[[Vue.resolveDirective("disabled"),this.disabledValue]])]})]})]})]})]})}});export{a as default}; diff --git a/assets/index-qt5v82ci.js.gz b/assets/index-qt5v82ci.js.gz deleted file mode 100644 index beee97e8..00000000 Binary files a/assets/index-qt5v82ci.js.gz and /dev/null differ diff --git a/assets/index-rdKGIz_K.js b/assets/index-rdKGIz_K.js new file mode 100644 index 00000000..bcf729f0 --- /dev/null +++ b/assets/index-rdKGIz_K.js @@ -0,0 +1 @@ +const l=Vue.defineComponent({name:"RDirective",setup(){const e=Vue.reactive({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),u=Vue.ref(2),t=a=>{e[a]++};return{...Vue.toRefs(e),updateDemoValue:t,ellipsisLineClamp:u}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,{title:"指令"},{default:()=>[Vue.createTextVNode("该页面展示如何使用已封装好的指令")]}),Vue.createVNode(naive.NCard,{title:"文本省略"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"单行省略"},{default:()=>[Vue.withDirectives(Vue.createVNode("div",null,[Vue.createTextVNode("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[Vue.resolveDirective("ellipsis"),{type:"block",width:"100px"}]])]}),Vue.createVNode(naive.NCard,{title:"多行省略"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),Vue.createVNode("a",{href:"https://caniuse.com/?search=line-clamp"},[Vue.createTextVNode("can i use")])]),Vue.withDirectives(Vue.createVNode("div",null,[Vue.createTextVNode("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[Vue.resolveDirective("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),Vue.createVNode(naive.NInputNumber,{value:this.ellipsisLineClamp,"onUpdate:value":e=>this.ellipsisLineClamp=e,min:1},null)]})]})]})]}),Vue.createVNode(naive.NCard,{title:"文本复制示例一"},{default:()=>[Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInput,{value:this.copyValueOne,"onUpdate:value":e=>this.copyValueOne=e},null),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("复制")]}),[[Vue.resolveDirective("copy"),this.copyValueOne]])]})]}),Vue.createVNode(naive.NCard,{title:"文本复制示例二"},{default:()=>[Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInput,{value:this.copyValueTwo,"onUpdate:value":e=>this.copyValueTwo=e},null),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("复制")]}),[[Vue.resolveDirective("copy"),this.copyValueTwo]])]})]}),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("点击执行")]}),[[Vue.resolveDirective("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),Vue.createVNode("p",null,[Vue.createTextVNode("我执行了"),this.throttleBtnClickCount,Vue.createTextVNode("次")]),Vue.createVNode("p",null,[Vue.createTextVNode("该方法 3s 内仅会执行一次")])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("点击执行")]}),[[Vue.resolveDirective("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),Vue.createVNode("p",null,[Vue.createTextVNode("我执行了"),this.debounceBtnClickCount,Vue.createTextVNode("次")]),Vue.createVNode("p",null,[Vue.createTextVNode("该方法将延迟 3s 执行")])]})]}),Vue.createVNode(naive.NCard,{title:"禁用"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.disabledValue,"onUpdate:value":e=>this.disabledValue=e},{checked:()=>"取消",unchecked:()=>"禁用"}),Vue.createVNode(naive.NCard,{title:"描述"},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),Vue.createVNode(naive.NCard,{title:"原生表单"},{default:()=>[Vue.withDirectives(Vue.createVNode("form",null,[Vue.createVNode("input",{type:"text",placeholder:"请输入"},null),Vue.createVNode("button",null,[Vue.createTextVNode("提交")])]),[[Vue.resolveDirective("disabled"),this.disabledValue]])]}),Vue.createVNode(naive.NCard,{title:"文本内容"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode("p",null,[Vue.createTextVNode("我是可以被禁用的文本内容")]),[[Vue.resolveDirective("disabled"),this.disabledValue]])]})]}),Vue.createVNode(naive.NCard,{title:"naive 组件"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,justify:"start"},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NForm,null,{default:()=>[Vue.createVNode(naive.NFormItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})]}),[[Vue.resolveDirective("disabled"),this.disabledValue]]),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("按钮")]}),[[Vue.resolveDirective("disabled"),this.disabledValue]]),Vue.withDirectives(Vue.createVNode(naive.NSwitch,null,null),[[Vue.resolveDirective("disabled"),this.disabledValue]])]})]})]})]})]})}});export{l as default}; diff --git a/assets/index-rdKGIz_K.js.gz b/assets/index-rdKGIz_K.js.gz new file mode 100644 index 00000000..d328ab08 Binary files /dev/null and b/assets/index-rdKGIz_K.js.gz differ diff --git a/assets/index-wQgCpKgU.js b/assets/index-wQgCpKgU.js deleted file mode 100644 index b95954ab..00000000 --- a/assets/index-wQgCpKgU.js +++ /dev/null @@ -1 +0,0 @@ -import{a as u}from"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import{s as o}from"./instance-CANSG-jZ.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./hooks-HESpGiIM.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";function N(e,t){return u(()=>o(e),Object.assign({},t))}const D=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),X=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:m}=u(D,{throttleWait:1e3,manual:!0}),{data:p,loading:s,run:F}=N({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:m,demoData:p,demoLoading:s,demoRun:F}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{X as default}; diff --git a/assets/index-wQgCpKgU.js.gz b/assets/index-wQgCpKgU.js.gz deleted file mode 100644 index 19b3af05..00000000 Binary files a/assets/index-wQgCpKgU.js.gz and /dev/null differ diff --git a/assets/index-yyfNdCCw.js.gz b/assets/index-yyfNdCCw.js.gz deleted file mode 100644 index 7dacbbd3..00000000 Binary files a/assets/index-yyfNdCCw.js.gz and /dev/null differ diff --git a/assets/instance-CANSG-jZ.js b/assets/instance-CANSG-jZ.js deleted file mode 100644 index ad180e10..00000000 --- a/assets/instance-CANSG-jZ.js +++ /dev/null @@ -1 +0,0 @@ -import{F as t,G as n,d as R,H as q}from"./hooks-HESpGiIM.js";import{g as d}from"./utils-zTxN2cCS.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";const A=(e,r)=>{t.removePendingRequest(e.config)},y=(e,r)=>{t.removePendingRequest(e.config)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},g=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},k=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},P=(e,r)=>{const o=d(R.token);return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{k(e,[P(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},v=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},C=(e,r)=>{t.removePendingRequest(e)},c={implementRequestInterceptorArray:[f,v],implementRequestInterceptorErrorArray:[C]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(g(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/assets/instance-CANSG-jZ.js.gz b/assets/instance-CANSG-jZ.js.gz deleted file mode 100644 index 89b076ee..00000000 Binary files a/assets/instance-CANSG-jZ.js.gz and /dev/null differ diff --git a/assets/instance-GflPbm5N.js b/assets/instance-GflPbm5N.js new file mode 100644 index 00000000..1308cb62 --- /dev/null +++ b/assets/instance-GflPbm5N.js @@ -0,0 +1 @@ +import{B as t,C as n,d as R,E as q}from"./hooks-C9tZi_HS.js";import{g as d}from"./utils-B_UBRWj5.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";const A=(e,r)=>{t.removePendingRequest(e)},y=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},k=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},P=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},v=(e,r)=>{const o=d(R.token);return e.url,{key:"X-TOKEN",value:o}},C=(e,r)=>{P(e,[v(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},g=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},f=(e,r)=>{t.removePendingRequest(e)},c={implementRequestInterceptorArray:[C,g],implementRequestInterceptorErrorArray:[f]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(k(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/assets/instance-GflPbm5N.js.gz b/assets/instance-GflPbm5N.js.gz new file mode 100644 index 00000000..38b8a554 Binary files /dev/null and b/assets/instance-GflPbm5N.js.gz differ diff --git a/assets/interactjs@1.10.26-I0IiZoEj.js b/assets/interactjs@1.10.26-DmsZVOf4.js similarity index 99% rename from assets/interactjs@1.10.26-I0IiZoEj.js rename to assets/interactjs@1.10.26-DmsZVOf4.js index fd3dec2e..e6f40978 100644 --- a/assets/interactjs@1.10.26-I0IiZoEj.js +++ b/assets/interactjs@1.10.26-DmsZVOf4.js @@ -1 +1 @@ -import{g as Cr,c as Rr}from"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";var Xe={exports:{}};Xe.exports;(function(ye,Fr){(function(Ye,re){ye.exports=re()})(Rr,function(){function Ye(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 re(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}}();return function(){var n,r=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(o)}(this,n)}}function xe(){return xe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(o,a){for(;!Object.prototype.hasOwnProperty.call(o,a)&&(o=U(o))!==null;);return o}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},xe.apply(this,arguments)}function gt(t){var e=function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(t,"string");return typeof e=="symbol"?e:e+""}var mt=function(t){return!(!t||!t.Window)&&t instanceof t.Window},yt=void 0,H=void 0;function bt(t){yt=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(e)===e&&(t=t.wrap(t)),H=t}function F(t){return mt(t)?t:(t.ownerDocument||t).defaultView||H.window}typeof window<"u"&&window&&bt(window);var we=function(t){return!!t&&Z(t)==="object"},xt=function(t){return typeof t=="function"},d={window:function(t){return t===H||mt(t)},docFrag:function(t){return we(t)&&t.nodeType===11},object:we,func:xt,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||Z(t)!=="object")return!1;var e=F(t)||H;return/object|function/.test(typeof Element>"u"?"undefined":Z(Element))?t instanceof Element||t instanceof e.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return we(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return we(t)&&t.length!==void 0&&xt(t.splice)}};function qe(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.prepared.axis;n==="x"?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):n==="y"&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function wt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="drag"){var r=n.prepared.axis;if(r==="x"||r==="y"){var i=r==="x"?"y":"x";e.page[i]=n.coords.start.page[i],e.client[i]=n.coords.start.client[i],e.delta[i]=0}}}var Ee={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.draggable=Ee.draggable,e.map.drag=Ee,e.methodDict.drag="draggable",r.actions.drag=Ee.defaults},listeners:{"interactions:before-action-move":qe,"interactions:action-resume":qe,"interactions:action-move":wt,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.buttons,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||r&n.options.drag.mouseButtons))return t.action={name:"drag",axis:i.lockAxis==="start"?i.startAxis:i.lockAxis},!1}},draggable:function(t){return d.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):d.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:qe,move:wt,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},Et=Ee,A={init:function(t){var e=t;A.document=e.document,A.DocumentFragment=e.DocumentFragment||ee,A.SVGElement=e.SVGElement||ee,A.SVGSVGElement=e.SVGSVGElement||ee,A.SVGElementInstance=e.SVGElementInstance||ee,A.Element=e.Element||ee,A.HTMLElement=e.HTMLElement||A.Element,A.Event=e.Event,A.Touch=e.Touch||ee,A.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ee(){}var O=A,C={init:function(t){var e=O.Element,n=t.navigator||{};C.supportsTouch="ontouchstart"in t||d.func(t.DocumentTouch)&&O.document instanceof t.DocumentTouch,C.supportsPointerEvent=n.pointerEnabled!==!1&&!!O.PointerEvent,C.isIOS=/iP(hone|od|ad)/.test(n.platform),C.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),C.isIe9=/MSIE 9/.test(n.userAgent),C.isOperaMobile=n.appName==="Opera"&&C.supportsTouch&&/Presto/.test(n.userAgent),C.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",C.pEventTypes=C.supportsPointerEvent?O.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,C.wheelEvent=O.document&&"onmousewheel"in O.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},R=C;function K(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Tt(t,e){for(;d.element(t);){if(B(t,e))return t;t=X(t)}return null}function X(t){var e=t.parentNode;if(d.docFrag(e)){for(;(e=e.host)&&d.docFrag(e););return e}return e}function B(t,e){return H!==yt&&(e=e.replace(/\/deep\//g," ")),t[R.prefixedMatchesSelector](e)}var Be=function(t){return t.parentNode||t.host};function St(t,e){for(var n,r=[],i=t;(n=Be(i))&&i!==e&&n!==i.ownerDocument;)r.unshift(i),i=n;return r}function Ve(t,e,n){for(;d.element(t);){if(B(t,e))return!0;if((t=X(t))===n)return B(t,e)}return!1}function _t(t){return t.correspondingUseElement||t}function We(t){var e=t instanceof O.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function Ge(t){var e,n=We(t);if(!R.isIOS7&&n){var r={x:(e=(e=F(t))||H).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n}function Pt(t){for(var e=[];t;)e.push(t),t=X(t);return e}function Ot(t){return!!d.string(t)&&(O.document.querySelector(t),!0)}function x(t,e){for(var n in e)t[n]=e[n];return t}function kt(t,e,n){return t==="parent"?X(n):t==="self"?e.getRect(n):Tt(n,t)}function ae(t,e,n,r){var i=t;return d.string(i)?i=kt(i,e,n):d.func(i)&&(i=i.apply(void 0,r)),d.element(i)&&(i=Ge(i)),i}function Te(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Ne(t){return!t||"x"in t&&"y"in t||((t=x({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function Se(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function se(t,e,n){var r=n&&t.options[n];return Te(ae(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function $(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(c){return!0},r=arguments.length>3?arguments[3]:void 0;if(r=r||{},d.string(t)&&t.search(" ")!==-1&&(t=Dt(t)),d.array(t))return t.forEach(function(c){return $(c,e,n,r)}),r;if(d.object(t)&&(e=t,t=""),d.func(e)&&n(t))r[t]=r[t]||[],r[t].push(e);else if(d.array(e))for(var i=0,o=e;i1?At(e):e[0];zt(r,t.page),function(i,o){o=o||{},R.isOperaMobile&&Mt(i)?Oe("screen",i,o):Oe("client",i,o)}(r,t.client),t.timeStamp=n}function Ue(t){var e=[];return d.array(t)?(e[0]=t[0],e[1]=t[1]):t.type==="touchend"?t.touches.length===1?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):t.touches.length===0&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function At(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n=(parseInt(F(b).getComputedStyle(b).zIndex,10)||0)&&(y=_);else y=_}else y=_}return y}(a);return r.activeDrops[v]||null}function Qe(t,e,n){var r=t.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return n.type==="dragstart"&&(i.activate=new te(r,n,"dropactivate"),i.activate.target=null,i.activate.dropzone=null),n.type==="dragend"&&(i.deactivate=new te(r,n,"dropdeactivate"),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new te(r,n,"dragleave"),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new te(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),n.type==="dragend"&&r.cur.dropzone&&(i.drop=new te(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),n.type==="dragmove"&&r.cur.dropzone&&(i.move=new te(r,n,"dropmove"),n.dropzone=r.cur.dropzone)),i}function Ze(t,e){var n=t.dropState,r=n.activeDrops,i=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&i.dropzone.fire(e.enter),e.move&&i.dropzone.fire(e.move),e.drop&&i.dropzone.fire(e.drop),e.deactivate&&Xt(r,e.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function Lt(t,e){var n=t.interaction,r=t.iEvent,i=t.event;if(r.type==="dragmove"||r.type==="dragend"){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=Je(e,n.element));var a=r,s=Yt(n,a,i);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Qe(n,0,a)}}var qt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,r=t.Interactable,i=t.defaults;t.usePlugin(Et),r.prototype.dropzone=function(o){return function(a,s){if(d.object(s)){if(a.options.drop.enabled=s.enabled!==!1,s.listeners){var c=$(s.listeners),u=Object.keys(c).reduce(function(p,f){return p[/^(enter|leave)/.test(f)?"drag".concat(f):/^(activate|deactivate|move)/.test(f)?"drop".concat(f):f]=c[f],p},{}),l=a.options.drop.listeners;l&&a.off(l),a.on(u),a.options.drop.listeners=u}return d.func(s.ondrop)&&a.on("drop",s.ondrop),d.func(s.ondropactivate)&&a.on("dropactivate",s.ondropactivate),d.func(s.ondropdeactivate)&&a.on("dropdeactivate",s.ondropdeactivate),d.func(s.ondragenter)&&a.on("dragenter",s.ondragenter),d.func(s.ondragleave)&&a.on("dragleave",s.ondragleave),d.func(s.ondropmove)&&a.on("dropmove",s.ondropmove),/^(pointer|center)$/.test(s.overlap)?a.options.drop.overlap=s.overlap:d.number(s.overlap)&&(a.options.drop.overlap=Math.max(Math.min(1,s.overlap),0)),"accept"in s&&(a.options.drop.accept=s.accept),"checker"in s&&(a.options.drop.checker=s.checker),a}return d.bool(s)?(a.options.drop.enabled=s,a):a.options.drop}(this,o)},r.prototype.dropCheck=function(o,a,s,c,u,l){return function(p,f,h,v,g,y,m){var b=!1;if(!(m=m||p.getRect(y)))return!!p.options.drop.checker&&p.options.drop.checker(f,h,b,p,y,v,g);var T=p.options.drop.overlap;if(T==="pointer"){var _=se(v,g,"drag"),w=zt(f);w.x+=_.x,w.y+=_.y;var S=w.x>m.left&&w.xm.top&&w.y=m.left&&z<=m.right&&j>=m.top&&j<=m.bottom}return P&&d.number(T)&&(b=Math.max(0,Math.min(m.right,P.right)-Math.max(m.left,P.left))*Math.max(0,Math.min(m.bottom,P.bottom)-Math.max(m.top,P.top))/(P.width*P.height)>=T),p.options.drop.checker&&(b=p.options.drop.checker(f,h,b,p,y,v,g)),b}(this,o,a,s,c,u,l)},n.dynamicDrop=function(o){return d.bool(o)?(t.dynamicDrop=o,n):t.dynamicDrop},x(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,i.actions.drop=qt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;e.prepared.name==="drag"&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,r=(t.event,t.iEvent);if(n.prepared.name==="drag"){var i=n.dropState;i.activeDrops=[],i.events={},i.activeDrops=Je(e,n.element),i.events=Qe(n,0,r),i.events.activate&&(Xt(i.activeDrops,i.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":Lt,"interactions:after-action-move":function(t,e){var n=t.interaction,r=t.iEvent;if(n.prepared.name==="drag"){var i=n.dropState;Ze(n,i.events),e.fire("actions/drop:move",{interaction:n,dragEvent:r}),i.events={}}},"interactions:action-end":function(t,e){if(t.interaction.prepared.name==="drag"){var n=t.interaction,r=t.iEvent;Lt(t,e),Ze(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Je,getDrop:Yt,getDropEvents:Qe,fireDropEvents:Ze,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Tn=qt;function et(t){var e=t.interaction,n=t.iEvent,r=t.phase;if(e.prepared.name==="gesture"){var i=e.pointers.map(function(u){return u.pointer}),o=r==="start",a=r==="end",s=e.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],o)n.distance=Ke(i,s),n.box=He(i),n.scale=1,n.ds=0,n.angle=$e(i,s),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(a||e.pointers.length<2){var c=e.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=Ke(i,s),n.box=He(i),n.scale=n.distance/e.gesture.startDistance,n.angle=$e(i,s),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,d.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var tt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.gesturable=function(i){return d.object(i)?(this.options.gesture.enabled=i.enabled!==!1,this.setPerAction("gesture",i),this.setOnEvents("gesture",i),this):d.bool(i)?(this.options.gesture.enabled=i,this):this.options.gesture},e.map.gesture=tt,e.methodDict.gesture="gesturable",r.actions.gesture=tt.defaults},listeners:{"interactions:action-start":et,"interactions:action-move":et,"interactions:action-end":et,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},Sn=tt;function _n(t,e,n,r,i,o,a){if(!e)return!1;if(e===!0){var s=d.number(o.width)?o.width:o.right-o.left,c=d.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs((t==="left"||t==="right"?s:c)/2)),s<0&&(t==="left"?t="right":t==="right"&&(t="left")),c<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var u=s>=0?o.left:o.right;return n.x=0?o.top:o.bottom;return n.y(s>=0?o.right:o.left)-a;if(t==="bottom")return n.y>(c>=0?o.bottom:o.top)-a}return!!d.element(r)&&(d.element(e)?e===r:Ve(r,e,i))}function Bt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.resizeAxes){var r=e;n.interactable.options.resize.square?(n.resizeAxes==="y"?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,n.resizeAxes==="x"?r.delta.y=0:n.resizeAxes==="y"&&(r.delta.x=0))}}var Y,J,L={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,i=t.defaults;L.cursors=function(o){return o.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),L.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(o){return function(a,s,c){return d.object(s)?(a.options.resize.enabled=s.enabled!==!1,a.setPerAction("resize",s),a.setOnEvents("resize",s),d.string(s.axis)&&/^x$|^y$|^xy$/.test(s.axis)?a.options.resize.axis=s.axis:s.axis===null&&(a.options.resize.axis=c.defaults.actions.resize.axis),d.bool(s.preserveAspectRatio)?a.options.resize.preserveAspectRatio=s.preserveAspectRatio:d.bool(s.square)&&(a.options.resize.square=s.square),a):d.bool(s)?(a.options.resize.enabled=s,a):a.options.resize}(this,o,t)},e.map.resize=L,e.methodDict.resize="resizable",i.actions.resize=L.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.rect;r._rects={start:x({},o),corrected:x({},o),previous:x({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=r.prepared.edges,i.rect=r._rects.corrected,i.deltaRect=r._rects.delta}})(t),Bt(t)},"interactions:action-move":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.interactable.options.resize.invert,a=o==="reposition"||o==="negate",s=r.rect,c=r._rects,u=c.start,l=c.corrected,p=c.delta,f=c.previous;if(x(f,l),a){if(x(l,s),o==="reposition"){if(l.top>l.bottom){var h=l.top;l.top=l.bottom,l.bottom=h}if(l.left>l.right){var v=l.left;l.left=l.right,l.right=v}}}else l.top=Math.min(s.top,u.bottom),l.bottom=Math.max(s.bottom,u.top),l.left=Math.min(s.left,u.right),l.right=Math.max(s.right,u.left);for(var g in l.width=l.right-l.left,l.height=l.bottom-l.top,l)p[g]=l[g]-f[g];i.edges=r.prepared.edges,i.rect=l,i.deltaRect=p}})(t),Bt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.prepared.edges){var r=e;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.element,i=t.rect,o=t.buttons;if(i){var a=x({},e.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||o&s.mouseButtons)){if(d.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=_n(u,s.edges[u],a,e._latestPointer.eventTarget,r,i,s.margin||L.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l=s.axis!=="y"&&a.x>i.right-L.defaultMargin,p=s.axis!=="x"&&a.y>i.bottom-L.defaultMargin;(l||p)&&(t.action={name:"resize",axes:(l?"x":"")+(p?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,r=t.name,i=L.cursors,o=null;if(n)o=i[r+n];else if(e){for(var a="",s=0,c=["top","bottom","left","right"];s=1){var u={x:E.x*c,y:E.y*c};if(u.x||u.y){var l=Gt(o);d.window(o)?o.scrollBy(u.x,u.y):o&&(o.scrollLeft+=u.x,o.scrollTop+=u.y);var p=Gt(o),f={x:p.x-l.x,y:p.y-l.y};(f.x||f.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:f,interaction:t,container:o})}E.prevTime=a}E.isScrolling&&(V.cancel(E.i),E.i=V.request(E.scroll))},check:function(t,e){var n;return(n=t.options[e].autoScroll)==null?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&E.check(e.interactable,e.prepared.name))if(e.simulation)E.x=E.y=0;else{var r,i,o,a,s=e.interactable,c=e.element,u=e.prepared.name,l=s.options[u].autoScroll,p=Wt(l.container,s,c);if(d.window(p))a=n.clientXp.innerWidth-E.margin,o=n.clientY>p.innerHeight-E.margin;else{var f=We(p);a=n.clientXf.right-E.margin,o=n.clientY>f.bottom-E.margin}E.x=i?1:a?-1:0,E.y=o?1:r?-1:0,E.isScrolling||(E.margin=l.margin,E.speed=l.speed,E.start(e))}}};function Wt(t,e,n){return(d.string(t)?kt(t,e,n):t)||F(n)}function Gt(t){return d.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var kn={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=E,E.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=E.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,E.stop(),E.interaction&&(E.interaction=null)},"interactions:stop":E.stop,"interactions:action-move":function(t){return E.onInteractionMove(t)}}},Dn=kn;function fe(t,e){var n=!1;return function(){return n||(H.console.warn(e),n=!0),t.apply(this,arguments)}}function nt(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function In(t){return d.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Mn(t){return d.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var zn={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(n,r,i,o){var a=function(s,c,u,l,p){var f=s.getRect(l),h=c.buttons||{0:1,1:4,3:8,4:16}[c.button],v={action:null,interactable:s,interaction:u,element:l,rect:f,buttons:h};return p.fire("auto-start:check",v),v.action}(this,r,i,o,t);return this.options.actionChecker?this.options.actionChecker(n,r,a,this,o,i):a},e.prototype.ignoreFrom=fe(function(n){return this._backCompatOption("ignoreFrom",n)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=fe(function(n){return this._backCompatOption("allowFrom",n)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Mn,e.prototype.styleCursor=In}};function Nt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&De(e,n,t,i)?t:null}function An(t,e,n,r,i,o,a){for(var s=0,c=r.length;s=s||h.interactable===t&&((u+=v===n.name?1:0)>=o||h.element===e&&(l++,v===n.name&&l>=a))))return!1}return s>0}function Kt(t,e){return d.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function rt(t,e,n){var r=n.autoStart.cursorElement;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function $t(t,e){var n=t.interactable,r=t.element,i=t.prepared;if(t.pointerType==="mouse"&&n&&n.options.styleCursor){var o="";if(i.name){var a=n.options[i.name].cursorChecker;o=d.func(a)?a(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}rt(t.element,o||"",e)}else e.autoStart.cursorElement&&rt(e.autoStart.cursorElement,"",e)}var Cn={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(zn),n.base.actionChecker=null,n.base.styleCursor=!0,x(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(r){return Kt(r,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:De,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;n.interacting()||Ht(n,Ut(n,r,i,o,e),e)},"interactions:move":function(t,e){(function(n,r){var i=n.interaction,o=n.pointer,a=n.event,s=n.eventTarget;i.pointerType!=="mouse"||i.pointerIsDown||i.interacting()||Ht(i,Ut(i,o,a,s,r),r)})(t,e),function(n,r){var i=n.interaction;if(i.pointerIsDown&&!i.interacting()&&i.pointerWasMoved&&i.prepared.name){r.fire("autoStart:before-start",n);var o=i.interactable,a=i.prepared.name;a&&o&&(o.options[a].manualStart||!De(o,i.element,i.prepared,r)?i.stop():(i.start(i.prepared,o,i.element),$t(i,r)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,r=n.interactable;r&&r.options.styleCursor&&rt(n.element,"",e)}},maxInteractions:Kt,withinInteractionLimit:De,validateAction:Nt},it=Cn,Rn={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,r=t.eventTarget,i=t.dx,o=t.dy;if(n.prepared.name==="drag"){var a=Math.abs(i),s=Math.abs(o),c=n.interactable.options.drag,u=c.startAxis,l=a>s?"x":a0&&(e.autoStartHoldTimer=setTimeout(function(){e.start(e.prepared,e.interactable,e.element)},n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;ot(e)>0&&(e.prepared.name=null)}},getHoldDuration:ot},Fn=jn,Xn={id:"auto-start",install:function(t){t.usePlugin(it),t.usePlugin(Fn),t.usePlugin(Rn)}},Yn=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):d.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Ln(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Jt={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Yn,e.prototype.checkAndPreventDefault=function(n){return function(r,i,o){var a=r.options.preventDefault;if(a!=="never")if(a!=="always"){if(i.events.supportsPassive&&/^touch(start|move)$/.test(o.type)){var s=F(o.target).document,c=i.getDocOptions(s);if(!c||!c.events||c.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(o.type)||d.element(o.target)&&B(o.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||o.preventDefault()}else o.preventDefault()}(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(n){for(var r=0,i=t.interactions.list;r150)return null;var i=180*Math.atan2(r.prevEvent.velocityY,r.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var o=112.5<=i&&i<247.5,a=202.5<=i&&i<337.5;return{up:a,down:!a&&22.5<=i&&i<157.5,left:o,right:!o&&(292.5<=i||i<67.5),angle:i,speed:r.prevEvent.speed,velocity:{x:r.prevEvent.velocityX,y:r.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(ke);Object.defineProperties(st.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Bn=D(function t(e,n,r,i,o){k(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=r,this.downTime=i,this.downTarget=o}),Vn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),en=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Wn=0,Gn=function(){function t(e){var n=this,r=e.pointerType,i=e.scopeFire;k(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=fe(function(l){this.move(l)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Wn++,this._scopeFire=i,this.pointerType=r;var o=this;this._proxy={};var a=function(l){Object.defineProperty(n._proxy,l,{get:function(){return o[l]}})};for(var s in Vn)a(s);var c=function(l){Object.defineProperty(n._proxy,l,{value:function(){return o[l].apply(o,arguments)}})};for(var u in en)c(u);this._scopeFire("interactions:new",{interaction:this})}return D(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,n,r){var i=this.updatePointer(e,n,r,!0),o=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:n,eventTarget:r,pointerIndex:i,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,n,r){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name==="gesture"?2:1)||!n.options[e.name].enabled)&&(nt(this.prepared,e),this.interactable=n,this.element=r,this.rect=n.getRect(r),this.edges=this.prepared.edges?x({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,n,r){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,n,r,!1);var i,o,a=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=ce(i,o)>this.pointerMoveTolerance);var s,c,u,l=this.getPointerIndex(e),p={pointer:e,pointerIndex:l,pointerInfo:this.pointers[l],event:n,type:"move",eventTarget:r,dx:i,dy:o,duplicate:a,interaction:this};a||(s=this.coords.velocity,c=this.coords.delta,u=Math.max(c.timeStamp/1e3,.001),s.page.x=c.page.x/u,s.page.y=c.page.y/u,s.client.x=c.client.x/u,s.client.y=c.client.y/u,s.timeStamp=u),this._scopeFire("interactions:move",p),a||this.simulation||(this.interacting()&&(p.type=null,this.move(p)),this.pointerWasMoved&&Pe(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||It(this.coords.delta),(e=x({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,n,r,i){var o=this.getPointerIndex(e);o===-1&&(o=this.updatePointer(e,n,r,!1));var a=/cancel$/i.test(n.type)?"cancel":"up";this._scopeFire("interactions:".concat(a),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:n,eventTarget:r,type:a,curEventTarget:i,interaction:this}),this.simulation||this.end(n),this.removePointer(e,n)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var n;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(n=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,n===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var n=le(e);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ue(this.pointers,function(r){return r.id===n})}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,n,r,i){var o,a,s,c=le(e),u=this.getPointerIndex(e),l=this.pointers[u];return i=i!==!1&&(i||/(down|start)$/i.test(n.type)),l?l.pointer=e:(l=new Bn(c,e,n,null,null),u=this.pointers.length,this.pointers.push(l)),En(this.coords.cur,this.pointers.map(function(p){return p.pointer}),this._now()),o=this.coords.delta,a=this.coords.prev,s=this.coords.cur,o.page.x=s.page.x-a.page.x,o.page.y=s.page.y-a.page.y,o.client.x=s.client.x-a.client.x,o.client.y=s.client.y-a.client.y,o.timeStamp=s.timeStamp-a.timeStamp,i&&(this.pointerIsDown=!0,l.downTime=this.coords.cur.timeStamp,l.downTarget=r,_e(this.downPointer,e),this.interacting()||(Pe(this.coords.start,this.coords.cur),Pe(this.coords.prev,this.coords.cur),this.downEvent=n,this.pointerWasMoved=!1)),this._updateLatestPointer(e,n,r),this._scopeFire("interactions:update-pointer",{pointer:e,event:n,eventTarget:r,down:i,pointerInfo:l,pointerIndex:u,interaction:this}),u}},{key:"removePointer",value:function(e,n){var r=this.getPointerIndex(e);if(r!==-1){var i=this.pointers[r];this._scopeFire("interactions:remove-pointer",{pointer:e,event:n,eventTarget:null,pointerIndex:r,pointerInfo:i,interaction:this}),this.pointers.splice(r,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,n,r){this._latestPointer.pointer=e,this._latestPointer.event=n,this._latestPointer.eventTarget=r}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,n,r,i){return new st(this,e,this.prepared.name,n,this.element,r,i)}},{key:"_fireEvent",value:function(e){var n;(n=this.interactable)==null||n.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var n=e.event,r=e.phase,i=e.preEnd,o=e.type,a=this.rect;if(a&&r==="move"&&(Se(this.edges,a,this.coords.delta[this.interactable.options.deltaSource]),a.width=a.right-a.left,a.height=a.bottom-a.top),this._scopeFire("interactions:before-action-".concat(r),e)===!1)return!1;var s=e.iEvent=this._createPreparedEvent(n,r,i,o);return this._scopeFire("interactions:action-".concat(r),e),r==="start"&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(r),e),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function tn(t){nn(t.interaction)}function nn(t){if(!function(n){return!(!n.offset.pending.x&&!n.offset.pending.y)}(t))return!1;var e=t.offset.pending;return ct(t.coords.cur,e),ct(t.coords.delta,e),Se(t.edges,t.rect,e),e.x=0,e.y=0,!0}function Nn(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function ct(t,e){var n=t.page,r=t.client,i=e.x,o=e.y;n.x+=i,n.y+=o,r.x+=i,r.y+=o}en.offsetBy="";var Un={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Nn},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(e){e.pointerIsDown&&(ct(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":tn,"interactions:before-action-move":tn,"interactions:before-action-end":function(t){var e=t.interaction;if(nn(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},rn=Un,Hn=function(){function t(e){k(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return D(t,[{key:"start",value:function(e){var n=this.interaction,r=ze(n);if(!r||!r.enabled)return!1;var i=n.coords.velocity.client,o=ce(i.x,i.y),a=this.modification||(this.modification=new at(n));if(a.copyFrom(n.modification),this.t0=n._now(),this.allowResume=r.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=n.coords.cur.page,this.modifierArg=a.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-n.coords.cur.timeStamp<50&&o>r.minSpeed&&o>r.endSpeed)this.startInertia();else{if(a.result=a.setAll(this.modifierArg),!a.result.changed)return!1;this.startSmoothEnd()}return n.modification.result.rect=null,n.offsetBy(this.targetOffset),n._doPhase({interaction:n,event:e,phase:"inertiastart"}),n.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),n.modification.result.rect=null,this.active=!0,n.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,n=this.interaction.coords.velocity.client,r=ze(this.interaction),i=r.resistance,o=-Math.log(r.endSpeed/this.v0)/i;this.targetOffset={x:(n.x-o)/i,y:(n.y-o)/i},this.te=o,this.lambda_v0=i/this.v0,this.one_ve_v0=1-r.endSpeed/this.v0;var a=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},a.result=a.setAll(s),a.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+a.result.delta.x,y:this.targetOffset.y+a.result.delta.y}),this.onNextFrame(function(){return e.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return e.smoothEndTick()})}},{key:"onNextFrame",value:function(e){var n=this;this.timeout=V.request(function(){n.active&&e()})}},{key:"inertiaTick",value:function(){var e,n,r,i,o,a,s,c=this,u=this.interaction,l=ze(u).resistance,p=(u._now()-this.t0)/1e3;if(p=0;g--){var T=m[g];if(T.selector===l&&T.context===p){for(var _=T.listeners,w=_.length-1;w>=0;w--){var S=_[w];if(S.func===h&&Ae(S.options,y)){_.splice(w,1),_.length||(m.splice(g,1),s(p,f,c),s(p,f,u,!0)),b=!0;break}}if(b)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function a(l,p,f,h){if(l.addEventListener){var v=ve(h),g=pe(n,function(y){return y.eventTarget===l});g||(g={eventTarget:l,events:{}},n.push(g)),g.events[p]||(g.events[p]=[]),pe(g.events[p],function(y){return y.func===f&&Ae(y.options,v)})||(l.addEventListener(p,f,o.supportsOptions?v:v.capture),g.events[p].push({func:f,options:v}))}}function s(l,p,f,h){if(l.addEventListener&&l.removeEventListener){var v=ue(n,function(M){return M.eventTarget===l}),g=n[v];if(g&&g.events)if(p!=="all"){var y=!1,m=g.events[p];if(m){if(f==="all"){for(var b=m.length-1;b>=0;b--){var T=m[b];s(l,p,T.func,T.options)}return}for(var _=ve(h),w=0;w=2)continue;if(!i.interacting()&&e===i.pointerType)return i}return null}};function ln(t,e){return t.pointers.some(function(n){return n.id===e})}var Zn=lt,ut=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(t,e){return function(n){var r=e.interactions.list,i=Ct(n),o=Rt(n),a=o[0],s=o[1],c=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var u=0,l=n.changedTouches;u=0;r--){var i=e.interactions.list[r];i.interactable===n&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(r,1))}}},onDocSignal:pt,doOnInteractions:un,methodNames:ut},tr=er,G=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(G||{}),nr=function(){function t(e,n,r,i){k(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new cn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||r,this._win=F(Ot(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=i,this.set(n)}return D(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,n){return d.func(n.onstart)&&this.on("".concat(e,"start"),n.onstart),d.func(n.onmove)&&this.on("".concat(e,"move"),n.onmove),d.func(n.onend)&&this.on("".concat(e,"end"),n.onend),d.func(n.oninertiastart)&&this.on("".concat(e,"inertiastart"),n.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,n,r){var i,o=this,a=(i=this._actions.map[e])==null?void 0:i.filterEventType,s=function(c){return(a==null||a(c))&&Ie(c,o._actions)};(d.array(n)||d.object(n))&&this._onOff(G.Off,e,n,void 0,s),(d.array(r)||d.object(r))&&this._onOff(G.On,e,r,void 0,s)}},{key:"setPerAction",value:function(e,n){var r=this._defaults;for(var i in n){var o=i,a=this.options[e],s=n[o];o==="listeners"&&this.updatePerActionListeners(e,a.listeners,s),d.array(s)?a[o]=Ft(s):d.plainObject(s)?(a[o]=x(a[o]||{},ne(s)),d.object(r.perAction[o])&&"enabled"in r.perAction[o]&&(a[o].enabled=s.enabled!==!1)):d.bool(s)&&d.object(r.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(d.element(this.target)?this.target:null),d.string(this.target)&&(e=e||this._context.querySelector(this.target)),Ge(e)}},{key:"rectChecker",value:function(e){var n=this;return d.func(e)?(this.getRect=function(r){var i=x({},e.apply(n,r));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):e===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,n){if(Ot(n)||d.object(n)){for(var r in this.options[e]=n,this._actions.map)this.options[r][e]=n;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return e==="page"||e==="client"?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var e=this.target;return d.string(e)?Array.from(this._context.querySelectorAll(e)):d.func(e)&&e.getAllElements?e.getAllElements():d.element(e)?[e]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||K(this._context,e)}},{key:"testIgnoreAllow",value:function(e,n,r){return!this.testIgnore(e.ignoreFrom,n,r)&&this.testAllow(e.allowFrom,n,r)}},{key:"testAllow",value:function(e,n,r){return!e||!!d.element(r)&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&K(e,r))}},{key:"testIgnore",value:function(e,n,r){return!(!e||!d.element(r))&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&K(e,r))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,n,r,i,o){d.object(n)&&!d.array(n)&&(i=r,r=null);var a=$(n,r,o);for(var s in a){s==="wheel"&&(s=R.wheelEvent);for(var c=0,u=a[s];c=0;r--){var i=n[r],o=i.selector,a=i.context,s=i.listeners;o===this.target&&a===this._context&&n.splice(r,1);for(var c=s.length-1;c>=0;c--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[c][0],s[c][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),rr=function(){function t(e){var n=this;k(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(r){var i=r.interactable,o=i.target,a=d.string(o)?n.selectorMap[o]:o[n.scope.id],s=ue(a,function(c){return c===i});a.splice(s,1)}})}return D(t,[{key:"new",value:function(e,n){n=x(n||{},{actions:this.scope.actions});var r=new this.scope.Interactable(e,n,this.scope.document,this.scope.events);return this.scope.addDocument(r._doc),this.list.push(r),d.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(r.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:n,interactable:r,win:this.scope._win}),r}},{key:"getExisting",value:function(e,n){var r=n&&n.context||this.scope.document,i=d.string(e),o=i?this.selectorMap[e]:e[this.scope.id];if(o)return pe(o,function(a){return a._context===r&&(i||a.inContext(e))})}},{key:"forEachMatch",value:function(e,n){for(var r=0,i=this.list;rMath.abs(u.y),c.coords,c.rect),x(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function ur(t,e,n){var r=t.startCoords,i=t.edgeSign;e?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function pr(t,e,n,r){var i=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;if(e){var c=r.width/a;n.y=o.y+(c-i.height)*s.y}else{var u=r.height*a;n.x=o.x+(u-i.width)*s.x}}var fr=W(lr,"aspectRatio"),vn=function(){};vn._defaults={};var Ce=vn;function Q(t,e,n){return d.func(t)?ae(t,e.interactable,e.element,[n.x,n.y,e]):ae(t,e.interactable,e.element)}var Re={start:function(t){var e=t.rect,n=t.startOffset,r=t.state,i=t.interaction,o=t.pageCoords,a=r.options,s=a.elementRect,c=x({left:0,top:0,right:0,bottom:0},a.offset||{});if(e&&s){var u=Q(a.restriction,i,o);if(u){var l=u.right-u.left-e.width,p=u.bottom-u.top-e.height;l<0&&(c.left+=l,c.right+=l),p<0&&(c.top+=p,c.bottom+=p)}c.left+=n.left-e.width*s.left,c.top+=n.top-e.height*s.top,c.right+=n.right-e.width*(1-s.right),c.bottom+=n.bottom-e.height*(1-s.bottom)}r.offset=c},set:function(t){var e=t.coords,n=t.interaction,r=t.state,i=r.options,o=r.offset,a=Q(i.restriction,n,e);if(a){var s=function(c){return!c||"left"in c&&"top"in c||((c=x({},c)).left=c.x||0,c.top=c.y||0,c.right=c.right||c.left+c.width,c.bottom=c.bottom||c.top+c.height),c}(a);e.x=Math.max(Math.min(s.right-o.right,e.x),s.left+o.left),e.y=Math.max(Math.min(s.bottom-o.bottom,e.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},dr=W(Re,"restrict"),hn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},gn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function mn(t,e){for(var n=0,r=["top","left","bottom","right"];n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(o)}(this,n)}}function xe(){return xe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(o,a){for(;!Object.prototype.hasOwnProperty.call(o,a)&&(o=U(o))!==null;);return o}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},xe.apply(this,arguments)}function gt(t){var e=function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(t,"string");return typeof e=="symbol"?e:e+""}var mt=function(t){return!(!t||!t.Window)&&t instanceof t.Window},yt=void 0,H=void 0;function bt(t){yt=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(e)===e&&(t=t.wrap(t)),H=t}function F(t){return mt(t)?t:(t.ownerDocument||t).defaultView||H.window}typeof window<"u"&&window&&bt(window);var we=function(t){return!!t&&Z(t)==="object"},xt=function(t){return typeof t=="function"},d={window:function(t){return t===H||mt(t)},docFrag:function(t){return we(t)&&t.nodeType===11},object:we,func:xt,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||Z(t)!=="object")return!1;var e=F(t)||H;return/object|function/.test(typeof Element>"u"?"undefined":Z(Element))?t instanceof Element||t instanceof e.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return we(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return we(t)&&t.length!==void 0&&xt(t.splice)}};function qe(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.prepared.axis;n==="x"?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):n==="y"&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function wt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="drag"){var r=n.prepared.axis;if(r==="x"||r==="y"){var i=r==="x"?"y":"x";e.page[i]=n.coords.start.page[i],e.client[i]=n.coords.start.client[i],e.delta[i]=0}}}var Ee={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.draggable=Ee.draggable,e.map.drag=Ee,e.methodDict.drag="draggable",r.actions.drag=Ee.defaults},listeners:{"interactions:before-action-move":qe,"interactions:action-resume":qe,"interactions:action-move":wt,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.buttons,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||r&n.options.drag.mouseButtons))return t.action={name:"drag",axis:i.lockAxis==="start"?i.startAxis:i.lockAxis},!1}},draggable:function(t){return d.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):d.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:qe,move:wt,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},Et=Ee,A={init:function(t){var e=t;A.document=e.document,A.DocumentFragment=e.DocumentFragment||ee,A.SVGElement=e.SVGElement||ee,A.SVGSVGElement=e.SVGSVGElement||ee,A.SVGElementInstance=e.SVGElementInstance||ee,A.Element=e.Element||ee,A.HTMLElement=e.HTMLElement||A.Element,A.Event=e.Event,A.Touch=e.Touch||ee,A.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ee(){}var O=A,C={init:function(t){var e=O.Element,n=t.navigator||{};C.supportsTouch="ontouchstart"in t||d.func(t.DocumentTouch)&&O.document instanceof t.DocumentTouch,C.supportsPointerEvent=n.pointerEnabled!==!1&&!!O.PointerEvent,C.isIOS=/iP(hone|od|ad)/.test(n.platform),C.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),C.isIe9=/MSIE 9/.test(n.userAgent),C.isOperaMobile=n.appName==="Opera"&&C.supportsTouch&&/Presto/.test(n.userAgent),C.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",C.pEventTypes=C.supportsPointerEvent?O.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,C.wheelEvent=O.document&&"onmousewheel"in O.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},R=C;function K(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Tt(t,e){for(;d.element(t);){if(B(t,e))return t;t=X(t)}return null}function X(t){var e=t.parentNode;if(d.docFrag(e)){for(;(e=e.host)&&d.docFrag(e););return e}return e}function B(t,e){return H!==yt&&(e=e.replace(/\/deep\//g," ")),t[R.prefixedMatchesSelector](e)}var Be=function(t){return t.parentNode||t.host};function St(t,e){for(var n,r=[],i=t;(n=Be(i))&&i!==e&&n!==i.ownerDocument;)r.unshift(i),i=n;return r}function Ve(t,e,n){for(;d.element(t);){if(B(t,e))return!0;if((t=X(t))===n)return B(t,e)}return!1}function _t(t){return t.correspondingUseElement||t}function We(t){var e=t instanceof O.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function Ge(t){var e,n=We(t);if(!R.isIOS7&&n){var r={x:(e=(e=F(t))||H).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n}function Pt(t){for(var e=[];t;)e.push(t),t=X(t);return e}function Ot(t){return!!d.string(t)&&(O.document.querySelector(t),!0)}function x(t,e){for(var n in e)t[n]=e[n];return t}function kt(t,e,n){return t==="parent"?X(n):t==="self"?e.getRect(n):Tt(n,t)}function ae(t,e,n,r){var i=t;return d.string(i)?i=kt(i,e,n):d.func(i)&&(i=i.apply(void 0,r)),d.element(i)&&(i=Ge(i)),i}function Te(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Ne(t){return!t||"x"in t&&"y"in t||((t=x({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function Se(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function se(t,e,n){var r=n&&t.options[n];return Te(ae(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function $(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(c){return!0},r=arguments.length>3?arguments[3]:void 0;if(r=r||{},d.string(t)&&t.search(" ")!==-1&&(t=Dt(t)),d.array(t))return t.forEach(function(c){return $(c,e,n,r)}),r;if(d.object(t)&&(e=t,t=""),d.func(e)&&n(t))r[t]=r[t]||[],r[t].push(e);else if(d.array(e))for(var i=0,o=e;i1?At(e):e[0];zt(r,t.page),function(i,o){o=o||{},R.isOperaMobile&&Mt(i)?Oe("screen",i,o):Oe("client",i,o)}(r,t.client),t.timeStamp=n}function Ue(t){var e=[];return d.array(t)?(e[0]=t[0],e[1]=t[1]):t.type==="touchend"?t.touches.length===1?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):t.touches.length===0&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function At(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n=(parseInt(F(b).getComputedStyle(b).zIndex,10)||0)&&(y=_);else y=_}else y=_}return y}(a);return r.activeDrops[v]||null}function Qe(t,e,n){var r=t.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return n.type==="dragstart"&&(i.activate=new te(r,n,"dropactivate"),i.activate.target=null,i.activate.dropzone=null),n.type==="dragend"&&(i.deactivate=new te(r,n,"dropdeactivate"),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new te(r,n,"dragleave"),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new te(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),n.type==="dragend"&&r.cur.dropzone&&(i.drop=new te(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),n.type==="dragmove"&&r.cur.dropzone&&(i.move=new te(r,n,"dropmove"),n.dropzone=r.cur.dropzone)),i}function Ze(t,e){var n=t.dropState,r=n.activeDrops,i=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&i.dropzone.fire(e.enter),e.move&&i.dropzone.fire(e.move),e.drop&&i.dropzone.fire(e.drop),e.deactivate&&Xt(r,e.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function Lt(t,e){var n=t.interaction,r=t.iEvent,i=t.event;if(r.type==="dragmove"||r.type==="dragend"){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=Je(e,n.element));var a=r,s=Yt(n,a,i);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Qe(n,0,a)}}var qt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,r=t.Interactable,i=t.defaults;t.usePlugin(Et),r.prototype.dropzone=function(o){return function(a,s){if(d.object(s)){if(a.options.drop.enabled=s.enabled!==!1,s.listeners){var c=$(s.listeners),u=Object.keys(c).reduce(function(p,f){return p[/^(enter|leave)/.test(f)?"drag".concat(f):/^(activate|deactivate|move)/.test(f)?"drop".concat(f):f]=c[f],p},{}),l=a.options.drop.listeners;l&&a.off(l),a.on(u),a.options.drop.listeners=u}return d.func(s.ondrop)&&a.on("drop",s.ondrop),d.func(s.ondropactivate)&&a.on("dropactivate",s.ondropactivate),d.func(s.ondropdeactivate)&&a.on("dropdeactivate",s.ondropdeactivate),d.func(s.ondragenter)&&a.on("dragenter",s.ondragenter),d.func(s.ondragleave)&&a.on("dragleave",s.ondragleave),d.func(s.ondropmove)&&a.on("dropmove",s.ondropmove),/^(pointer|center)$/.test(s.overlap)?a.options.drop.overlap=s.overlap:d.number(s.overlap)&&(a.options.drop.overlap=Math.max(Math.min(1,s.overlap),0)),"accept"in s&&(a.options.drop.accept=s.accept),"checker"in s&&(a.options.drop.checker=s.checker),a}return d.bool(s)?(a.options.drop.enabled=s,a):a.options.drop}(this,o)},r.prototype.dropCheck=function(o,a,s,c,u,l){return function(p,f,h,v,g,y,m){var b=!1;if(!(m=m||p.getRect(y)))return!!p.options.drop.checker&&p.options.drop.checker(f,h,b,p,y,v,g);var T=p.options.drop.overlap;if(T==="pointer"){var _=se(v,g,"drag"),w=zt(f);w.x+=_.x,w.y+=_.y;var S=w.x>m.left&&w.xm.top&&w.y=m.left&&z<=m.right&&j>=m.top&&j<=m.bottom}return P&&d.number(T)&&(b=Math.max(0,Math.min(m.right,P.right)-Math.max(m.left,P.left))*Math.max(0,Math.min(m.bottom,P.bottom)-Math.max(m.top,P.top))/(P.width*P.height)>=T),p.options.drop.checker&&(b=p.options.drop.checker(f,h,b,p,y,v,g)),b}(this,o,a,s,c,u,l)},n.dynamicDrop=function(o){return d.bool(o)?(t.dynamicDrop=o,n):t.dynamicDrop},x(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,i.actions.drop=qt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;e.prepared.name==="drag"&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,r=(t.event,t.iEvent);if(n.prepared.name==="drag"){var i=n.dropState;i.activeDrops=[],i.events={},i.activeDrops=Je(e,n.element),i.events=Qe(n,0,r),i.events.activate&&(Xt(i.activeDrops,i.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":Lt,"interactions:after-action-move":function(t,e){var n=t.interaction,r=t.iEvent;if(n.prepared.name==="drag"){var i=n.dropState;Ze(n,i.events),e.fire("actions/drop:move",{interaction:n,dragEvent:r}),i.events={}}},"interactions:action-end":function(t,e){if(t.interaction.prepared.name==="drag"){var n=t.interaction,r=t.iEvent;Lt(t,e),Ze(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(t){var e=t.interaction;if(e.prepared.name==="drag"){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Je,getDrop:Yt,getDropEvents:Qe,fireDropEvents:Ze,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Tn=qt;function et(t){var e=t.interaction,n=t.iEvent,r=t.phase;if(e.prepared.name==="gesture"){var i=e.pointers.map(function(u){return u.pointer}),o=r==="start",a=r==="end",s=e.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],o)n.distance=Ke(i,s),n.box=He(i),n.scale=1,n.ds=0,n.angle=$e(i,s),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(a||e.pointers.length<2){var c=e.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=Ke(i,s),n.box=He(i),n.scale=n.distance/e.gesture.startDistance,n.angle=$e(i,s),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,d.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var tt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.gesturable=function(i){return d.object(i)?(this.options.gesture.enabled=i.enabled!==!1,this.setPerAction("gesture",i),this.setOnEvents("gesture",i),this):d.bool(i)?(this.options.gesture.enabled=i,this):this.options.gesture},e.map.gesture=tt,e.methodDict.gesture="gesturable",r.actions.gesture=tt.defaults},listeners:{"interactions:action-start":et,"interactions:action-move":et,"interactions:action-end":et,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},Sn=tt;function _n(t,e,n,r,i,o,a){if(!e)return!1;if(e===!0){var s=d.number(o.width)?o.width:o.right-o.left,c=d.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs((t==="left"||t==="right"?s:c)/2)),s<0&&(t==="left"?t="right":t==="right"&&(t="left")),c<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var u=s>=0?o.left:o.right;return n.x=0?o.top:o.bottom;return n.y(s>=0?o.right:o.left)-a;if(t==="bottom")return n.y>(c>=0?o.bottom:o.top)-a}return!!d.element(r)&&(d.element(e)?e===r:Ve(r,e,i))}function Bt(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.resizeAxes){var r=e;n.interactable.options.resize.square?(n.resizeAxes==="y"?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,n.resizeAxes==="x"?r.delta.y=0:n.resizeAxes==="y"&&(r.delta.x=0))}}var Y,J,L={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,i=t.defaults;L.cursors=function(o){return o.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),L.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(o){return function(a,s,c){return d.object(s)?(a.options.resize.enabled=s.enabled!==!1,a.setPerAction("resize",s),a.setOnEvents("resize",s),d.string(s.axis)&&/^x$|^y$|^xy$/.test(s.axis)?a.options.resize.axis=s.axis:s.axis===null&&(a.options.resize.axis=c.defaults.actions.resize.axis),d.bool(s.preserveAspectRatio)?a.options.resize.preserveAspectRatio=s.preserveAspectRatio:d.bool(s.square)&&(a.options.resize.square=s.square),a):d.bool(s)?(a.options.resize.enabled=s,a):a.options.resize}(this,o,t)},e.map.resize=L,e.methodDict.resize="resizable",i.actions.resize=L.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.rect;r._rects={start:x({},o),corrected:x({},o),previous:x({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=r.prepared.edges,i.rect=r._rects.corrected,i.deltaRect=r._rects.delta}})(t),Bt(t)},"interactions:action-move":function(t){(function(e){var n=e.iEvent,r=e.interaction;if(r.prepared.name==="resize"&&r.prepared.edges){var i=n,o=r.interactable.options.resize.invert,a=o==="reposition"||o==="negate",s=r.rect,c=r._rects,u=c.start,l=c.corrected,p=c.delta,f=c.previous;if(x(f,l),a){if(x(l,s),o==="reposition"){if(l.top>l.bottom){var h=l.top;l.top=l.bottom,l.bottom=h}if(l.left>l.right){var v=l.left;l.left=l.right,l.right=v}}}else l.top=Math.min(s.top,u.bottom),l.bottom=Math.max(s.bottom,u.top),l.left=Math.min(s.left,u.right),l.right=Math.max(s.right,u.left);for(var g in l.width=l.right-l.left,l.height=l.bottom-l.top,l)p[g]=l[g]-f[g];i.edges=r.prepared.edges,i.rect=l,i.deltaRect=p}})(t),Bt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if(n.prepared.name==="resize"&&n.prepared.edges){var r=e;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.element,i=t.rect,o=t.buttons;if(i){var a=x({},e.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||o&s.mouseButtons)){if(d.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=_n(u,s.edges[u],a,e._latestPointer.eventTarget,r,i,s.margin||L.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l=s.axis!=="y"&&a.x>i.right-L.defaultMargin,p=s.axis!=="x"&&a.y>i.bottom-L.defaultMargin;(l||p)&&(t.action={name:"resize",axes:(l?"x":"")+(p?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,r=t.name,i=L.cursors,o=null;if(n)o=i[r+n];else if(e){for(var a="",s=0,c=["top","bottom","left","right"];s=1){var u={x:E.x*c,y:E.y*c};if(u.x||u.y){var l=Gt(o);d.window(o)?o.scrollBy(u.x,u.y):o&&(o.scrollLeft+=u.x,o.scrollTop+=u.y);var p=Gt(o),f={x:p.x-l.x,y:p.y-l.y};(f.x||f.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:f,interaction:t,container:o})}E.prevTime=a}E.isScrolling&&(V.cancel(E.i),E.i=V.request(E.scroll))},check:function(t,e){var n;return(n=t.options[e].autoScroll)==null?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&E.check(e.interactable,e.prepared.name))if(e.simulation)E.x=E.y=0;else{var r,i,o,a,s=e.interactable,c=e.element,u=e.prepared.name,l=s.options[u].autoScroll,p=Wt(l.container,s,c);if(d.window(p))a=n.clientXp.innerWidth-E.margin,o=n.clientY>p.innerHeight-E.margin;else{var f=We(p);a=n.clientXf.right-E.margin,o=n.clientY>f.bottom-E.margin}E.x=i?1:a?-1:0,E.y=o?1:r?-1:0,E.isScrolling||(E.margin=l.margin,E.speed=l.speed,E.start(e))}}};function Wt(t,e,n){return(d.string(t)?kt(t,e,n):t)||F(n)}function Gt(t){return d.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var kn={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=E,E.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=E.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,E.stop(),E.interaction&&(E.interaction=null)},"interactions:stop":E.stop,"interactions:action-move":function(t){return E.onInteractionMove(t)}}},Dn=kn;function fe(t,e){var n=!1;return function(){return n||(H.console.warn(e),n=!0),t.apply(this,arguments)}}function nt(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function In(t){return d.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Mn(t){return d.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var zn={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(n,r,i,o){var a=function(s,c,u,l,p){var f=s.getRect(l),h=c.buttons||{0:1,1:4,3:8,4:16}[c.button],v={action:null,interactable:s,interaction:u,element:l,rect:f,buttons:h};return p.fire("auto-start:check",v),v.action}(this,r,i,o,t);return this.options.actionChecker?this.options.actionChecker(n,r,a,this,o,i):a},e.prototype.ignoreFrom=fe(function(n){return this._backCompatOption("ignoreFrom",n)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=fe(function(n){return this._backCompatOption("allowFrom",n)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Mn,e.prototype.styleCursor=In}};function Nt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&De(e,n,t,i)?t:null}function An(t,e,n,r,i,o,a){for(var s=0,c=r.length;s=s||h.interactable===t&&((u+=v===n.name?1:0)>=o||h.element===e&&(l++,v===n.name&&l>=a))))return!1}return s>0}function Kt(t,e){return d.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function rt(t,e,n){var r=n.autoStart.cursorElement;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function $t(t,e){var n=t.interactable,r=t.element,i=t.prepared;if(t.pointerType==="mouse"&&n&&n.options.styleCursor){var o="";if(i.name){var a=n.options[i.name].cursorChecker;o=d.func(a)?a(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}rt(t.element,o||"",e)}else e.autoStart.cursorElement&&rt(e.autoStart.cursorElement,"",e)}var Cn={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(zn),n.base.actionChecker=null,n.base.styleCursor=!0,x(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(r){return Kt(r,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:De,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;n.interacting()||Ht(n,Ut(n,r,i,o,e),e)},"interactions:move":function(t,e){(function(n,r){var i=n.interaction,o=n.pointer,a=n.event,s=n.eventTarget;i.pointerType!=="mouse"||i.pointerIsDown||i.interacting()||Ht(i,Ut(i,o,a,s,r),r)})(t,e),function(n,r){var i=n.interaction;if(i.pointerIsDown&&!i.interacting()&&i.pointerWasMoved&&i.prepared.name){r.fire("autoStart:before-start",n);var o=i.interactable,a=i.prepared.name;a&&o&&(o.options[a].manualStart||!De(o,i.element,i.prepared,r)?i.stop():(i.start(i.prepared,o,i.element),$t(i,r)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,r=n.interactable;r&&r.options.styleCursor&&rt(n.element,"",e)}},maxInteractions:Kt,withinInteractionLimit:De,validateAction:Nt},it=Cn,Rn={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,r=t.eventTarget,i=t.dx,o=t.dy;if(n.prepared.name==="drag"){var a=Math.abs(i),s=Math.abs(o),c=n.interactable.options.drag,u=c.startAxis,l=a>s?"x":a0&&(e.autoStartHoldTimer=setTimeout(function(){e.start(e.prepared,e.interactable,e.element)},n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;ot(e)>0&&(e.prepared.name=null)}},getHoldDuration:ot},Fn=jn,Xn={id:"auto-start",install:function(t){t.usePlugin(it),t.usePlugin(Fn),t.usePlugin(Rn)}},Yn=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):d.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Ln(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Jt={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Yn,e.prototype.checkAndPreventDefault=function(n){return function(r,i,o){var a=r.options.preventDefault;if(a!=="never")if(a!=="always"){if(i.events.supportsPassive&&/^touch(start|move)$/.test(o.type)){var s=F(o.target).document,c=i.getDocOptions(s);if(!c||!c.events||c.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(o.type)||d.element(o.target)&&B(o.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||o.preventDefault()}else o.preventDefault()}(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(n){for(var r=0,i=t.interactions.list;r150)return null;var i=180*Math.atan2(r.prevEvent.velocityY,r.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var o=112.5<=i&&i<247.5,a=202.5<=i&&i<337.5;return{up:a,down:!a&&22.5<=i&&i<157.5,left:o,right:!o&&(292.5<=i||i<67.5),angle:i,speed:r.prevEvent.speed,velocity:{x:r.prevEvent.velocityX,y:r.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(ke);Object.defineProperties(st.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Bn=D(function t(e,n,r,i,o){k(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=r,this.downTime=i,this.downTarget=o}),Vn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),en=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Wn=0,Gn=function(){function t(e){var n=this,r=e.pointerType,i=e.scopeFire;k(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=fe(function(l){this.move(l)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Wn++,this._scopeFire=i,this.pointerType=r;var o=this;this._proxy={};var a=function(l){Object.defineProperty(n._proxy,l,{get:function(){return o[l]}})};for(var s in Vn)a(s);var c=function(l){Object.defineProperty(n._proxy,l,{value:function(){return o[l].apply(o,arguments)}})};for(var u in en)c(u);this._scopeFire("interactions:new",{interaction:this})}return D(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,n,r){var i=this.updatePointer(e,n,r,!0),o=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:n,eventTarget:r,pointerIndex:i,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,n,r){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name==="gesture"?2:1)||!n.options[e.name].enabled)&&(nt(this.prepared,e),this.interactable=n,this.element=r,this.rect=n.getRect(r),this.edges=this.prepared.edges?x({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,n,r){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,n,r,!1);var i,o,a=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=ce(i,o)>this.pointerMoveTolerance);var s,c,u,l=this.getPointerIndex(e),p={pointer:e,pointerIndex:l,pointerInfo:this.pointers[l],event:n,type:"move",eventTarget:r,dx:i,dy:o,duplicate:a,interaction:this};a||(s=this.coords.velocity,c=this.coords.delta,u=Math.max(c.timeStamp/1e3,.001),s.page.x=c.page.x/u,s.page.y=c.page.y/u,s.client.x=c.client.x/u,s.client.y=c.client.y/u,s.timeStamp=u),this._scopeFire("interactions:move",p),a||this.simulation||(this.interacting()&&(p.type=null,this.move(p)),this.pointerWasMoved&&Pe(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||It(this.coords.delta),(e=x({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,n,r,i){var o=this.getPointerIndex(e);o===-1&&(o=this.updatePointer(e,n,r,!1));var a=/cancel$/i.test(n.type)?"cancel":"up";this._scopeFire("interactions:".concat(a),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:n,eventTarget:r,type:a,curEventTarget:i,interaction:this}),this.simulation||this.end(n),this.removePointer(e,n)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var n;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(n=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,n===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var n=le(e);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ue(this.pointers,function(r){return r.id===n})}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,n,r,i){var o,a,s,c=le(e),u=this.getPointerIndex(e),l=this.pointers[u];return i=i!==!1&&(i||/(down|start)$/i.test(n.type)),l?l.pointer=e:(l=new Bn(c,e,n,null,null),u=this.pointers.length,this.pointers.push(l)),En(this.coords.cur,this.pointers.map(function(p){return p.pointer}),this._now()),o=this.coords.delta,a=this.coords.prev,s=this.coords.cur,o.page.x=s.page.x-a.page.x,o.page.y=s.page.y-a.page.y,o.client.x=s.client.x-a.client.x,o.client.y=s.client.y-a.client.y,o.timeStamp=s.timeStamp-a.timeStamp,i&&(this.pointerIsDown=!0,l.downTime=this.coords.cur.timeStamp,l.downTarget=r,_e(this.downPointer,e),this.interacting()||(Pe(this.coords.start,this.coords.cur),Pe(this.coords.prev,this.coords.cur),this.downEvent=n,this.pointerWasMoved=!1)),this._updateLatestPointer(e,n,r),this._scopeFire("interactions:update-pointer",{pointer:e,event:n,eventTarget:r,down:i,pointerInfo:l,pointerIndex:u,interaction:this}),u}},{key:"removePointer",value:function(e,n){var r=this.getPointerIndex(e);if(r!==-1){var i=this.pointers[r];this._scopeFire("interactions:remove-pointer",{pointer:e,event:n,eventTarget:null,pointerIndex:r,pointerInfo:i,interaction:this}),this.pointers.splice(r,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,n,r){this._latestPointer.pointer=e,this._latestPointer.event=n,this._latestPointer.eventTarget=r}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,n,r,i){return new st(this,e,this.prepared.name,n,this.element,r,i)}},{key:"_fireEvent",value:function(e){var n;(n=this.interactable)==null||n.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var n=e.event,r=e.phase,i=e.preEnd,o=e.type,a=this.rect;if(a&&r==="move"&&(Se(this.edges,a,this.coords.delta[this.interactable.options.deltaSource]),a.width=a.right-a.left,a.height=a.bottom-a.top),this._scopeFire("interactions:before-action-".concat(r),e)===!1)return!1;var s=e.iEvent=this._createPreparedEvent(n,r,i,o);return this._scopeFire("interactions:action-".concat(r),e),r==="start"&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(r),e),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function tn(t){nn(t.interaction)}function nn(t){if(!function(n){return!(!n.offset.pending.x&&!n.offset.pending.y)}(t))return!1;var e=t.offset.pending;return ct(t.coords.cur,e),ct(t.coords.delta,e),Se(t.edges,t.rect,e),e.x=0,e.y=0,!0}function Nn(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function ct(t,e){var n=t.page,r=t.client,i=e.x,o=e.y;n.x+=i,n.y+=o,r.x+=i,r.y+=o}en.offsetBy="";var Un={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Nn},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(e){e.pointerIsDown&&(ct(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":tn,"interactions:before-action-move":tn,"interactions:before-action-end":function(t){var e=t.interaction;if(nn(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},rn=Un,Hn=function(){function t(e){k(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return D(t,[{key:"start",value:function(e){var n=this.interaction,r=ze(n);if(!r||!r.enabled)return!1;var i=n.coords.velocity.client,o=ce(i.x,i.y),a=this.modification||(this.modification=new at(n));if(a.copyFrom(n.modification),this.t0=n._now(),this.allowResume=r.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=n.coords.cur.page,this.modifierArg=a.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-n.coords.cur.timeStamp<50&&o>r.minSpeed&&o>r.endSpeed)this.startInertia();else{if(a.result=a.setAll(this.modifierArg),!a.result.changed)return!1;this.startSmoothEnd()}return n.modification.result.rect=null,n.offsetBy(this.targetOffset),n._doPhase({interaction:n,event:e,phase:"inertiastart"}),n.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),n.modification.result.rect=null,this.active=!0,n.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,n=this.interaction.coords.velocity.client,r=ze(this.interaction),i=r.resistance,o=-Math.log(r.endSpeed/this.v0)/i;this.targetOffset={x:(n.x-o)/i,y:(n.y-o)/i},this.te=o,this.lambda_v0=i/this.v0,this.one_ve_v0=1-r.endSpeed/this.v0;var a=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},a.result=a.setAll(s),a.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+a.result.delta.x,y:this.targetOffset.y+a.result.delta.y}),this.onNextFrame(function(){return e.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return e.smoothEndTick()})}},{key:"onNextFrame",value:function(e){var n=this;this.timeout=V.request(function(){n.active&&e()})}},{key:"inertiaTick",value:function(){var e,n,r,i,o,a,s,c=this,u=this.interaction,l=ze(u).resistance,p=(u._now()-this.t0)/1e3;if(p=0;g--){var T=m[g];if(T.selector===l&&T.context===p){for(var _=T.listeners,w=_.length-1;w>=0;w--){var S=_[w];if(S.func===h&&Ae(S.options,y)){_.splice(w,1),_.length||(m.splice(g,1),s(p,f,c),s(p,f,u,!0)),b=!0;break}}if(b)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function a(l,p,f,h){if(l.addEventListener){var v=ve(h),g=pe(n,function(y){return y.eventTarget===l});g||(g={eventTarget:l,events:{}},n.push(g)),g.events[p]||(g.events[p]=[]),pe(g.events[p],function(y){return y.func===f&&Ae(y.options,v)})||(l.addEventListener(p,f,o.supportsOptions?v:v.capture),g.events[p].push({func:f,options:v}))}}function s(l,p,f,h){if(l.addEventListener&&l.removeEventListener){var v=ue(n,function(M){return M.eventTarget===l}),g=n[v];if(g&&g.events)if(p!=="all"){var y=!1,m=g.events[p];if(m){if(f==="all"){for(var b=m.length-1;b>=0;b--){var T=m[b];s(l,p,T.func,T.options)}return}for(var _=ve(h),w=0;w=2)continue;if(!i.interacting()&&e===i.pointerType)return i}return null}};function ln(t,e){return t.pointers.some(function(n){return n.id===e})}var Zn=lt,ut=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(t,e){return function(n){var r=e.interactions.list,i=Ct(n),o=Rt(n),a=o[0],s=o[1],c=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var u=0,l=n.changedTouches;u=0;r--){var i=e.interactions.list[r];i.interactable===n&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(r,1))}}},onDocSignal:pt,doOnInteractions:un,methodNames:ut},tr=er,G=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(G||{}),nr=function(){function t(e,n,r,i){k(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new cn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||r,this._win=F(Ot(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=i,this.set(n)}return D(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,n){return d.func(n.onstart)&&this.on("".concat(e,"start"),n.onstart),d.func(n.onmove)&&this.on("".concat(e,"move"),n.onmove),d.func(n.onend)&&this.on("".concat(e,"end"),n.onend),d.func(n.oninertiastart)&&this.on("".concat(e,"inertiastart"),n.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,n,r){var i,o=this,a=(i=this._actions.map[e])==null?void 0:i.filterEventType,s=function(c){return(a==null||a(c))&&Ie(c,o._actions)};(d.array(n)||d.object(n))&&this._onOff(G.Off,e,n,void 0,s),(d.array(r)||d.object(r))&&this._onOff(G.On,e,r,void 0,s)}},{key:"setPerAction",value:function(e,n){var r=this._defaults;for(var i in n){var o=i,a=this.options[e],s=n[o];o==="listeners"&&this.updatePerActionListeners(e,a.listeners,s),d.array(s)?a[o]=Ft(s):d.plainObject(s)?(a[o]=x(a[o]||{},ne(s)),d.object(r.perAction[o])&&"enabled"in r.perAction[o]&&(a[o].enabled=s.enabled!==!1)):d.bool(s)&&d.object(r.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(d.element(this.target)?this.target:null),d.string(this.target)&&(e=e||this._context.querySelector(this.target)),Ge(e)}},{key:"rectChecker",value:function(e){var n=this;return d.func(e)?(this.getRect=function(r){var i=x({},e.apply(n,r));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):e===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,n){if(Ot(n)||d.object(n)){for(var r in this.options[e]=n,this._actions.map)this.options[r][e]=n;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return e==="page"||e==="client"?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var e=this.target;return d.string(e)?Array.from(this._context.querySelectorAll(e)):d.func(e)&&e.getAllElements?e.getAllElements():d.element(e)?[e]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||K(this._context,e)}},{key:"testIgnoreAllow",value:function(e,n,r){return!this.testIgnore(e.ignoreFrom,n,r)&&this.testAllow(e.allowFrom,n,r)}},{key:"testAllow",value:function(e,n,r){return!e||!!d.element(r)&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&K(e,r))}},{key:"testIgnore",value:function(e,n,r){return!(!e||!d.element(r))&&(d.string(e)?Ve(r,e,n):!!d.element(e)&&K(e,r))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,n,r,i,o){d.object(n)&&!d.array(n)&&(i=r,r=null);var a=$(n,r,o);for(var s in a){s==="wheel"&&(s=R.wheelEvent);for(var c=0,u=a[s];c=0;r--){var i=n[r],o=i.selector,a=i.context,s=i.listeners;o===this.target&&a===this._context&&n.splice(r,1);for(var c=s.length-1;c>=0;c--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[c][0],s[c][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),rr=function(){function t(e){var n=this;k(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(r){var i=r.interactable,o=i.target,a=d.string(o)?n.selectorMap[o]:o[n.scope.id],s=ue(a,function(c){return c===i});a.splice(s,1)}})}return D(t,[{key:"new",value:function(e,n){n=x(n||{},{actions:this.scope.actions});var r=new this.scope.Interactable(e,n,this.scope.document,this.scope.events);return this.scope.addDocument(r._doc),this.list.push(r),d.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(r.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:n,interactable:r,win:this.scope._win}),r}},{key:"getExisting",value:function(e,n){var r=n&&n.context||this.scope.document,i=d.string(e),o=i?this.selectorMap[e]:e[this.scope.id];if(o)return pe(o,function(a){return a._context===r&&(i||a.inContext(e))})}},{key:"forEachMatch",value:function(e,n){for(var r=0,i=this.list;rMath.abs(u.y),c.coords,c.rect),x(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function ur(t,e,n){var r=t.startCoords,i=t.edgeSign;e?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function pr(t,e,n,r){var i=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;if(e){var c=r.width/a;n.y=o.y+(c-i.height)*s.y}else{var u=r.height*a;n.x=o.x+(u-i.width)*s.x}}var fr=W(lr,"aspectRatio"),vn=function(){};vn._defaults={};var Ce=vn;function Q(t,e,n){return d.func(t)?ae(t,e.interactable,e.element,[n.x,n.y,e]):ae(t,e.interactable,e.element)}var Re={start:function(t){var e=t.rect,n=t.startOffset,r=t.state,i=t.interaction,o=t.pageCoords,a=r.options,s=a.elementRect,c=x({left:0,top:0,right:0,bottom:0},a.offset||{});if(e&&s){var u=Q(a.restriction,i,o);if(u){var l=u.right-u.left-e.width,p=u.bottom-u.top-e.height;l<0&&(c.left+=l,c.right+=l),p<0&&(c.top+=p,c.bottom+=p)}c.left+=n.left-e.width*s.left,c.top+=n.top-e.height*s.top,c.right+=n.right-e.width*(1-s.right),c.bottom+=n.bottom-e.height*(1-s.bottom)}r.offset=c},set:function(t){var e=t.coords,n=t.interaction,r=t.state,i=r.options,o=r.offset,a=Q(i.restriction,n,e);if(a){var s=function(c){return!c||"left"in c&&"top"in c||((c=x({},c)).left=c.x||0,c.top=c.y||0,c.right=c.right||c.left+c.width,c.bottom=c.bottom||c.top+c.height),c}(a);e.x=Math.max(Math.min(s.right-o.right,e.x),s.left+o.left),e.y=Math.max(Math.min(s.bottom-o.bottom,e.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},dr=W(Re,"restrict"),hn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},gn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function mn(t,e){for(var n=0,r=["top","left","bottom","right"];n-1}function ce(t,r){var e=this.__data__,n=z(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function _(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r-1&&t%1==0&&t=r||v<0||g&&M>=s}function d(){var l=J();if(h(l))return pt(l);o=setTimeout(d,U(l))}function pt(l){return o=void 0,x&&n?I(l):(n=a=void 0,i)}function lr(){o!==void 0&&clearTimeout(o),p=0,n=c=a=o=void 0}function gr(){return o===void 0?i:pt(J())}function Z(){var l=J(),v=h(l);if(n=arguments,a=this,c=l,v){if(o===void 0)return q(c);if(g)return clearTimeout(o),o=setTimeout(d,r),I(c)}return o===void 0&&(o=setTimeout(d,r)),i}return Z.cancel=lr,Z.flush=gr,Z}var Re="Expected a function";function Io(t,r,e){var n=!0,a=!0;if(typeof t!="function")throw new TypeError(Re);return y(e)&&(n="leading"in e?!!e.leading:n,a="trailing"in e?!!e.trailing:a),Ue(t,r,{leading:n,maxWait:r,trailing:a})}function Ge(){this.__data__=new _,this.size=0}function ze(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function Ke(t){return this.__data__.get(t)}function We(t){return this.__data__.has(t)}var He=200;function Xe(t,r){var e=this.__data__;if(e instanceof _){var n=e.__data__;if(!D||n.length-1&&t%1==0&&t<=nn}var an="[object Arguments]",on="[object Array]",sn="[object Boolean]",cn="[object Date]",un="[object Error]",fn="[object Function]",pn="[object Map]",ln="[object Number]",gn="[object Object]",dn="[object RegExp]",hn="[object Set]",yn="[object String]",bn="[object WeakMap]",Tn="[object ArrayBuffer]",_n="[object DataView]",vn="[object Float32Array]",$n="[object Float64Array]",mn="[object Int8Array]",jn="[object Int16Array]",On="[object Int32Array]",An="[object Uint8Array]",wn="[object Uint8ClampedArray]",Sn="[object Uint16Array]",xn="[object Uint32Array]",f={};f[vn]=f[$n]=f[mn]=f[jn]=f[On]=f[An]=f[wn]=f[Sn]=f[xn]=!0;f[an]=f[on]=f[Tn]=f[sn]=f[_n]=f[cn]=f[un]=f[fn]=f[pn]=f[ln]=f[gn]=f[dn]=f[hn]=f[yn]=f[bn]=!1;function In(t){return C(t)&&Jt(t.length)&&!!f[E(t)]}function it(t){return function(r){return t(r)}}var Qt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,B=Qt&&typeof module=="object"&&module&&!module.nodeType&&module,Pn=B&&B.exports===Qt,Q=Pn&&Ut.process,P=function(){try{var t=B&&B.require&&B.require("util").types;return t||Q&&Q.binding&&Q.binding("util")}catch{}}(),jt=P&&P.isTypedArray,En=jt?it(jt):In;const kt=En;var Cn=Object.prototype,Fn=Cn.hasOwnProperty;function tr(t,r){var e=S(t),n=!e&&Zt(t),a=!e&&!n&&ot(t),s=!e&&!n&&!a&&kt(t),i=e||n||a||s,o=i?qe(t.length,String):[],c=o.length;for(var p in t)(r||Fn.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||s&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Xt(p,c)))&&o.push(p);return o}var Mn=Object.prototype;function H(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||Mn;return t===e}function rr(t,r){return function(e){return t(r(e))}}var Nn=rr(Object.keys,Object),Bn=Object.prototype,Ln=Bn.hasOwnProperty;function er(t){if(!H(t))return Nn(t);var r=[];for(var e in Object(t))Ln.call(t,e)&&e!="constructor"&&r.push(e);return r}function st(t){return t!=null&&Jt(t.length)&&!Gt(t)}function ct(t){return st(t)?tr(t):er(t)}function Dn(t,r){return t&&W(r,ct(r),t)}function Un(t){var r=[];if(t!=null)for(var e in Object(t))r.push(e);return r}var Rn=Object.prototype,Gn=Rn.hasOwnProperty;function zn(t){if(!y(t))return Un(t);var r=H(t),e=[];for(var n in t)n=="constructor"&&(r||!Gn.call(t,n))||e.push(n);return e}function X(t){return st(t)?tr(t,!0):zn(t)}function Kn(t,r){return t&&W(r,X(r),t)}var nr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=nr&&typeof module=="object"&&module&&!module.nodeType&&module,Wn=Ot&&Ot.exports===nr,At=Wn?b.Buffer:void 0,wt=At?At.allocUnsafe:void 0;function Hn(t,r){if(r)return t.slice();var e=t.length,n=wt?wt(e):new t.constructor(e);return t.copy(n),n}function Xn(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e-1}function he(t,r){var e=this.__data__,n=z(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function $(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r-1&&t%1==0&&t=r||_<0||g&&F>=s}function d(){var l=J();if(h(l))return pt(l);o=setTimeout(d,L(l))}function pt(l){return o=void 0,x&&n?I(l):(n=a=void 0,i)}function lr(){o!==void 0&&clearTimeout(o),p=0,n=c=a=o=void 0}function gr(){return o===void 0?i:pt(J())}function V(){var l=J(),_=h(l);if(n=arguments,a=this,c=l,_){if(o===void 0)return q(c);if(g)return clearTimeout(o),o=setTimeout(d,r),I(c)}return o===void 0&&(o=setTimeout(d,r)),i}return V.cancel=lr,V.flush=gr,V}var Ze="Expected a function";function Qo(t,r,e){var n=!0,a=!0;if(typeof t!="function")throw new TypeError(Ze);return y(e)&&(n="leading"in e?!!e.leading:n,a="trailing"in e?!!e.trailing:a),Ve(t,r,{leading:n,maxWait:r,trailing:a})}function Je(){this.__data__=new $,this.size=0}function Qe(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function ke(t){return this.__data__.get(t)}function tn(t){return this.__data__.has(t)}var rn=200;function en(t,r){var e=this.__data__;if(e instanceof $){var n=e.__data__;if(!B||n.length-1&&t%1==0&&t<=dn}var hn="[object Arguments]",yn="[object Array]",bn="[object Boolean]",Tn="[object Date]",$n="[object Error]",_n="[object Function]",mn="[object Map]",vn="[object Number]",jn="[object Object]",On="[object RegExp]",An="[object Set]",Sn="[object String]",wn="[object WeakMap]",xn="[object ArrayBuffer]",In="[object DataView]",Pn="[object Float32Array]",En="[object Float64Array]",Cn="[object Int8Array]",Mn="[object Int16Array]",Fn="[object Int32Array]",Nn="[object Uint8Array]",Dn="[object Uint8ClampedArray]",Un="[object Uint16Array]",Bn="[object Uint32Array]",f={};f[Pn]=f[En]=f[Cn]=f[Mn]=f[Fn]=f[Nn]=f[Dn]=f[Un]=f[Bn]=!0;f[hn]=f[yn]=f[xn]=f[bn]=f[In]=f[Tn]=f[$n]=f[_n]=f[mn]=f[vn]=f[jn]=f[On]=f[An]=f[Sn]=f[wn]=!1;function Ln(t){return C(t)&&Jt(t.length)&&!!f[E(t)]}function it(t){return function(r){return t(r)}}var Qt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D=Qt&&typeof module=="object"&&module&&!module.nodeType&&module,Rn=D&&D.exports===Qt,Q=Rn&&Lt.process,Gn=function(){try{var t=D&&D.require&&D.require("util").types;return t||Q&&Q.binding&&Q.binding("util")}catch{}}();const P=Gn;var jt=P&&P.isTypedArray,zn=jt?it(jt):Ln;const kt=zn;var Kn=Object.prototype,Wn=Kn.hasOwnProperty;function tr(t,r){var e=w(t),n=!e&&Vt(t),a=!e&&!n&&ot(t),s=!e&&!n&&!a&&kt(t),i=e||n||a||s,o=i?an(t.length,String):[],c=o.length;for(var p in t)(r||Wn.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||s&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Xt(p,c)))&&o.push(p);return o}var Hn=Object.prototype;function H(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||Hn;return t===e}function rr(t,r){return function(e){return t(r(e))}}var Xn=rr(Object.keys,Object);const Yn=Xn;var qn=Object.prototype,Vn=qn.hasOwnProperty;function er(t){if(!H(t))return Yn(t);var r=[];for(var e in Object(t))Vn.call(t,e)&&e!="constructor"&&r.push(e);return r}function st(t){return t!=null&&Jt(t.length)&&!Gt(t)}function ct(t){return st(t)?tr(t):er(t)}function Zn(t,r){return t&&W(r,ct(r),t)}function Jn(t){var r=[];if(t!=null)for(var e in Object(t))r.push(e);return r}var Qn=Object.prototype,kn=Qn.hasOwnProperty;function ta(t){if(!y(t))return Jn(t);var r=H(t),e=[];for(var n in t)n=="constructor"&&(r||!kn.call(t,n))||e.push(n);return e}function X(t){return st(t)?tr(t,!0):ta(t)}function ra(t,r){return t&&W(r,X(r),t)}var nr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=nr&&typeof module=="object"&&module&&!module.nodeType&&module,ea=Ot&&Ot.exports===nr,At=ea?b.Buffer:void 0,St=At?At.allocUnsafe:void 0;function na(t,r){if(r)return t.slice();var e=t.length,n=St?St(e):new t.constructor(e);return t.copy(n),n}function aa(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e=r||T<0||$&&E>=s}function b(){var g=Y();if(y(g))return _e(g);i=setTimeout(b,F(g))}function _e(g){return i=void 0,p&&a?d(g):(a=n=void 0,o)}function Lr(){i!==void 0&&clearTimeout(i),u=0,a=c=n=i=void 0}function Dr(){return i===void 0?o:_e(Y())}function J(){var g=Y(),T=y(g);if(a=arguments,n=this,c=g,T){if(i===void 0)return O(c);if($)return clearTimeout(i),i=setTimeout(b,r),d(c)}return i===void 0&&(i=setTimeout(b,r)),o}return J.cancel=Lr,J.flush=Dr,J}var nr=xt;const Ov=ie(nr);var Pt=nr,Et=_,Mt="Expected a function";function Lt(e,r,t){var a=!0,n=!0;if(typeof e!="function")throw new TypeError(Mt);return Et(t)&&(a="leading"in t?!!t.leading:a,n="trailing"in t?!!t.trailing:n),Pt(e,r,{leading:a,maxWait:r,trailing:n})}var Dt=Lt;const Sv=ie(Dt);function Ft(){this.__data__=[],this.size=0}var Gt=Ft;function Nt(e,r){return e===r||e!==e&&r!==r}var H=Nt,Bt=H;function Ut(e,r){for(var t=e.length;t--;)if(Bt(e[t][0],r))return t;return-1}var V=Ut,Kt=V,Rt=Array.prototype,Ht=Rt.splice;function Vt(e){var r=this.__data__,t=Kt(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():Ht.call(r,t,1),--this.size,!0}var kt=Vt,Wt=V;function zt(e){var r=this.__data__,t=Wt(r,e);return t<0?void 0:r[t][1]}var qt=zt,Xt=V;function Jt(e){return Xt(this.__data__,e)>-1}var Yt=Jt,Zt=V;function Qt(e,r){var t=this.__data__,a=Zt(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var ea=Qt,ra=Gt,ta=kt,aa=qt,na=Yt,ia=ea;function C(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r-1&&e%1==0&&e-1&&e%1==0&&e<=Ni}var $r=Bi,Ui=S,Ki=$r,Ri=A,Hi="[object Arguments]",Vi="[object Array]",ki="[object Boolean]",Wi="[object Date]",zi="[object Error]",qi="[object Function]",Xi="[object Map]",Ji="[object Number]",Yi="[object Object]",Zi="[object RegExp]",Qi="[object Set]",eo="[object String]",ro="[object WeakMap]",to="[object ArrayBuffer]",ao="[object DataView]",no="[object Float32Array]",io="[object Float64Array]",oo="[object Int8Array]",so="[object Int16Array]",co="[object Int32Array]",uo="[object Uint8Array]",fo="[object Uint8ClampedArray]",lo="[object Uint16Array]",vo="[object Uint32Array]",l={};l[no]=l[io]=l[oo]=l[so]=l[co]=l[uo]=l[fo]=l[lo]=l[vo]=!0;l[Hi]=l[Vi]=l[to]=l[ki]=l[ao]=l[Wi]=l[zi]=l[qi]=l[Xi]=l[Ji]=l[Yi]=l[Zi]=l[Qi]=l[eo]=l[ro]=!1;function $o(e){return Ri(e)&&Ki(e.length)&&!!l[Ui(e)]}var go=$o;function po(e){return function(r){return e(r)}}var fe=po,U={exports:{}};U.exports;(function(e,r){var t=tr,a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,s=n&&n.exports===a,o=s&&t.process,i=function(){try{var c=n&&n.require&&n.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=i})(U,U.exports);var le=U.exports,bo=go,yo=fe,Pe=le,Ee=Pe&&Pe.isTypedArray,_o=Ee?yo(Ee):bo,gr=_o,ho=Ai,To=lr,Ao=q,jo=ue,mo=vr,Oo=gr,So=Object.prototype,Co=So.hasOwnProperty;function Io(e,r){var t=Ao(e),a=!t&&To(e),n=!t&&!a&&jo(e),s=!t&&!a&&!n&&Oo(e),o=t||a||n||s,i=o?ho(e.length,String):[],c=i.length;for(var u in e)(r||Co.call(e,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mo(u,c)))&&i.push(u);return i}var pr=Io,wo=Object.prototype;function xo(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||wo;return e===t}var ve=xo;function Po(e,r){return function(t){return e(r(t))}}var br=Po,Eo=br,Mo=Eo(Object.keys,Object),Lo=Mo,Do=ve,Fo=Lo,Go=Object.prototype,No=Go.hasOwnProperty;function Bo(e){if(!Do(e))return Fo(e);var r=[];for(var t in Object(e))No.call(e,t)&&t!="constructor"&&r.push(t);return r}var Uo=Bo,Ko=oe,Ro=$r;function Ho(e){return e!=null&&Ro(e.length)&&!Ko(e)}var X=Ho,Vo=pr,ko=Uo,Wo=X;function zo(e){return Wo(e)?Vo(e):ko(e)}var $e=zo,qo=L,Xo=$e;function Jo(e,r){return e&&qo(r,Xo(r),e)}var Yo=Jo;function Zo(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var Qo=Zo,es=_,rs=ve,ts=Qo,as=Object.prototype,ns=as.hasOwnProperty;function is(e){if(!es(e))return ts(e);var r=rs(e),t=[];for(var a in e)a=="constructor"&&(r||!ns.call(e,a))||t.push(a);return t}var os=is,ss=pr,cs=os,us=X;function fs(e){return us(e)?ss(e,!0):cs(e)}var D=fs,ls=L,vs=D;function $s(e,r){return e&&ls(r,vs(r),e)}var gs=$s,K={exports:{}};K.exports;(function(e,r){var t=h,a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,s=n&&n.exports===a,o=s?t.Buffer:void 0,i=o?o.allocUnsafe:void 0;function c(u,v){if(v)return u.slice();var $=u.length,p=i?i($):new u.constructor($);return u.copy(p),p}e.exports=c})(K,K.exports);var yr=K.exports;function ps(e,r){var t=-1,a=e.length;for(r||(r=Array(a));++t0){if(++r>=Zl)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var tv=rv,av=Yl,nv=tv,iv=nv(av),ov=iv,sv=Mr,cv=kl,uv=ov;function fv(e,r){return uv(cv(e,r,sv),e+"")}var lv=fv,vv=H,$v=X,gv=vr,pv=_;function bv(e,r,t){if(!pv(t))return!1;var a=typeof r;return(a=="number"?$v(t)&&gv(r,t.length):a=="string"&&r in t)?vv(t[r],e):!1}var yv=bv,_v=lv,hv=yv;function dv(e){return _v(function(r,t){var a=-1,n=t.length,s=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(s=e.length>3&&typeof s=="function"?(n--,s):void 0,o&&hv(t[0],t[1],o)&&(s=n<3?void 0:s,n=1),r=Object(r);++a=r||T<0||$&&E>=s}function b(){var g=Y();if(y(g))return _e(g);i=setTimeout(b,F(g))}function _e(g){return i=void 0,p&&a?d(g):(a=n=void 0,o)}function Lr(){i!==void 0&&clearTimeout(i),u=0,a=c=n=i=void 0}function Dr(){return i===void 0?o:_e(Y())}function J(){var g=Y(),T=y(g);if(a=arguments,n=this,c=g,T){if(i===void 0)return O(c);if($)return clearTimeout(i),i=setTimeout(b,r),d(c)}return i===void 0&&(i=setTimeout(b,r)),o}return J.cancel=Lr,J.flush=Dr,J}var nr=xt;const Ov=ie(nr);var Pt=nr,Et=_,Mt="Expected a function";function Lt(e,r,t){var a=!0,n=!0;if(typeof e!="function")throw new TypeError(Mt);return Et(t)&&(a="leading"in t?!!t.leading:a,n="trailing"in t?!!t.trailing:n),Pt(e,r,{leading:a,maxWait:r,trailing:n})}var Dt=Lt;const Sv=ie(Dt);function Ft(){this.__data__=[],this.size=0}var Gt=Ft;function Nt(e,r){return e===r||e!==e&&r!==r}var H=Nt,Bt=H;function Ut(e,r){for(var t=e.length;t--;)if(Bt(e[t][0],r))return t;return-1}var V=Ut,Kt=V,Rt=Array.prototype,Ht=Rt.splice;function Vt(e){var r=this.__data__,t=Kt(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():Ht.call(r,t,1),--this.size,!0}var kt=Vt,Wt=V;function zt(e){var r=this.__data__,t=Wt(r,e);return t<0?void 0:r[t][1]}var qt=zt,Xt=V;function Jt(e){return Xt(this.__data__,e)>-1}var Yt=Jt,Zt=V;function Qt(e,r){var t=this.__data__,a=Zt(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var ea=Qt,ra=Gt,ta=kt,aa=qt,na=Yt,ia=ea;function C(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r-1&&e%1==0&&e-1&&e%1==0&&e<=Ni}var $r=Bi,Ui=S,Ki=$r,Ri=A,Hi="[object Arguments]",Vi="[object Array]",ki="[object Boolean]",Wi="[object Date]",zi="[object Error]",qi="[object Function]",Xi="[object Map]",Ji="[object Number]",Yi="[object Object]",Zi="[object RegExp]",Qi="[object Set]",eo="[object String]",ro="[object WeakMap]",to="[object ArrayBuffer]",ao="[object DataView]",no="[object Float32Array]",io="[object Float64Array]",oo="[object Int8Array]",so="[object Int16Array]",co="[object Int32Array]",uo="[object Uint8Array]",fo="[object Uint8ClampedArray]",lo="[object Uint16Array]",vo="[object Uint32Array]",l={};l[no]=l[io]=l[oo]=l[so]=l[co]=l[uo]=l[fo]=l[lo]=l[vo]=!0;l[Hi]=l[Vi]=l[to]=l[ki]=l[ao]=l[Wi]=l[zi]=l[qi]=l[Xi]=l[Ji]=l[Yi]=l[Zi]=l[Qi]=l[eo]=l[ro]=!1;function $o(e){return Ri(e)&&Ki(e.length)&&!!l[Ui(e)]}var go=$o;function po(e){return function(r){return e(r)}}var fe=po,U={exports:{}};U.exports;(function(e,r){var t=tr,a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,s=n&&n.exports===a,o=s&&t.process,i=function(){try{var c=n&&n.require&&n.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=i})(U,U.exports);var le=U.exports,bo=go,yo=fe,Pe=le,Ee=Pe&&Pe.isTypedArray,_o=Ee?yo(Ee):bo,gr=_o,ho=Ai,To=lr,Ao=q,jo=ue,mo=vr,Oo=gr,So=Object.prototype,Co=So.hasOwnProperty;function Io(e,r){var t=Ao(e),a=!t&&To(e),n=!t&&!a&&jo(e),s=!t&&!a&&!n&&Oo(e),o=t||a||n||s,i=o?ho(e.length,String):[],c=i.length;for(var u in e)(r||Co.call(e,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mo(u,c)))&&i.push(u);return i}var pr=Io,wo=Object.prototype;function xo(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||wo;return e===t}var ve=xo;function Po(e,r){return function(t){return e(r(t))}}var br=Po,Eo=br,Mo=Eo(Object.keys,Object),Lo=Mo,Do=ve,Fo=Lo,Go=Object.prototype,No=Go.hasOwnProperty;function Bo(e){if(!Do(e))return Fo(e);var r=[];for(var t in Object(e))No.call(e,t)&&t!="constructor"&&r.push(t);return r}var Uo=Bo,Ko=oe,Ro=$r;function Ho(e){return e!=null&&Ro(e.length)&&!Ko(e)}var X=Ho,Vo=pr,ko=Uo,Wo=X;function zo(e){return Wo(e)?Vo(e):ko(e)}var $e=zo,qo=L,Xo=$e;function Jo(e,r){return e&&qo(r,Xo(r),e)}var Yo=Jo;function Zo(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var Qo=Zo,es=_,rs=ve,ts=Qo,as=Object.prototype,ns=as.hasOwnProperty;function is(e){if(!es(e))return ts(e);var r=rs(e),t=[];for(var a in e)a=="constructor"&&(r||!ns.call(e,a))||t.push(a);return t}var os=is,ss=pr,cs=os,us=X;function fs(e){return us(e)?ss(e,!0):cs(e)}var D=fs,ls=L,vs=D;function $s(e,r){return e&&ls(r,vs(r),e)}var gs=$s,K={exports:{}};K.exports;(function(e,r){var t=h,a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,s=n&&n.exports===a,o=s?t.Buffer:void 0,i=o?o.allocUnsafe:void 0;function c(u,v){if(v)return u.slice();var $=u.length,p=i?i($):new u.constructor($);return u.copy(p),p}e.exports=c})(K,K.exports);var yr=K.exports;function ps(e,r){var t=-1,a=e.length;for(r||(r=Array(a));++t0){if(++r>=Zl)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var tv=rv,av=Yl,nv=tv,iv=nv(av),ov=iv,sv=Mr,cv=kl,uv=ov;function fv(e,r){return uv(cv(e,r,sv),e+"")}var lv=fv,vv=H,$v=X,gv=vr,pv=_;function bv(e,r,t){if(!pv(t))return!1;var a=typeof r;return(a=="number"?$v(t)&&gv(r,t.length):a=="string"&&r in t)?vv(t[r],e):!1}var yv=bv,_v=lv,hv=yv;function dv(e){return _v(function(r,t){var a=-1,n=t.length,s=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(s=e.length>3&&typeof s=="function"?(n--,s):void 0,o&&hv(t[0],t[1],o)&&(s=n<3?void 0:s,n=1),r=Object(r);++a0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o},"./src/js/functions.js":function(E,a,n){n.r(a),n.d(a,"addWrapper",function(){return b}),n.d(a,"capitalizePrint",function(){return i}),n.d(a,"collectStyles",function(){return l}),n.d(a,"addHeader",function(){return e}),n.d(a,"cleanUp",function(){return u}),n.d(a,"isRawHTML",function(){return y});var o=n("./src/js/modal.js"),s=n("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,d){var c="font-family:"+d.font+" !important; font-size: "+d.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,d){for(var c=document.defaultView||window,h="",p=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return d.test(t)}},"./src/js/html.js":function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(e){return typeof e}:f=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(l)}a.default={print:function(r,e){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),s.default.send(r,e)}};function b(l,r){for(var e=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),y=0;y"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(g){p.srcdoc+=''})),p.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(g){t.onError(g)}finally{t.showModal&&s.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,p);break;case"image":l.default.print(t,p);break;case"html":b.default.print(t,p);break;case"raw-html":i.default.print(t,p);break;case"json":r.default.print(t,p);break}}}},"./src/js/json.js":function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(e){return{field:f(e)==="object"?e.field:e,displayName:f(e)==="object"?e.displayName:e,columnSize:f(e)==="object"&&e.columnSize?e.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),s.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,e='';i.repeatTableHeader&&(e+=""),e+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";e+="",i.repeatTableHeader&&(e+=""),e+="";for(var y=0;y";for(var t=0;t1)for(var h=0;h'+d+""}e+=""}return e+="
",e}},"./src/js/modal.js":function(E,a,n){n.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var e=document.createElement("span");e.setAttribute("class","printSpinner"),l.appendChild(e);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o},"./src/js/pdf.js":function(E,a,n){n.r(a);var o=n("./src/js/print.js"),s=n("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var e=new window.XMLHttpRequest;e.responseType="arraybuffer",e.addEventListener("error",function(){Object(s.cleanUp)(i),i.onError(e.statusText,e)}),e.addEventListener("load",function(){if([200,201].indexOf(e.status)===-1){Object(s.cleanUp)(i),i.onError(e.statusText,e);return}f(i,l,e.response)}),e.open("GET",i.printable,!0),e.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}},"./src/js/print.js":function(E,a,n){n.r(a);var o=n("./src/js/browser.js"),s=n("./src/js/functions.js"),f={send:function(e,u){document.getElementsByTagName("body")[0].appendChild(u);var y=document.getElementById(e.frameId);y.onload=function(){if(e.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(y,e)},1e3):b(y,e);return}var t=y.contentWindow||y.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!=="pdf"&&e.style){var d=document.createElement("style");d.innerHTML=e.style,t.head.appendChild(d)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(y,e)}):b(y,e)}}};function b(r,e){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){e.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(s.cleanUp)(e)}}function i(r){var e=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(e)}function l(r){return new Promise(function(e){var u=function y(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(y,500):e()};u()})}a.default=f},"./src/js/raw-html.js":function(E,a,n){n.r(a);var o=n("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}},"./src/sass/index.scss":function(E,a,n){},0:function(E,a,n){E.exports=n("./src/index.js")}}).default})})(v);var P=v.exports;const C=O(P);export{C as p}; +import{g as O}from"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";var v={exports:{}};(function(j,S){(function(a,n){j.exports=n()})(window,function(){return function(E){var a={};function n(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return E[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=E,n.c=a,n.d=function(o,s,f){n.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:f})},n.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,s){if(s&1&&(o=n(o)),s&8||s&4&&typeof o=="object"&&o&&o.__esModule)return o;var f=Object.create(null);if(n.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:o}),s&2&&typeof o!="string")for(var b in o)n.d(f,b,(function(i){return o[i]}).bind(null,b));return f},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=0)}({"./src/index.js":function(E,a,n){n.r(a),n("./src/sass/index.scss");var o=n("./src/js/init.js"),s=o.default.init;typeof window<"u"&&(window.printJS=s),a.default=s},"./src/js/browser.js":function(E,a,n){n.r(a);var o={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!f.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};a.default=o},"./src/js/functions.js":function(E,a,n){n.r(a),n.d(a,"addWrapper",function(){return b}),n.d(a,"capitalizePrint",function(){return i}),n.d(a,"collectStyles",function(){return l}),n.d(a,"addHeader",function(){return e}),n.d(a,"cleanUp",function(){return u}),n.d(a,"isRawHTML",function(){return y});var o=n("./src/js/modal.js"),s=n("./src/js/browser.js");function f(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(c){return typeof c}:f=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},f(t)}function b(t,d){var c="font-family:"+d.font+" !important; font-size: "+d.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,d){for(var c=document.defaultView||window,h="",p=c.getComputedStyle(t,""),m=0;m]*>(.*?)");return d.test(t)}},"./src/js/html.js":function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(e){return typeof e}:f=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(l)}a.default={print:function(r,e){var u=i(r.printable)?r.printable:document.getElementById(r.printable);if(!u){window.console.error("Invalid HTML element id: "+r.printable);return}r.printableElement=b(u,r),r.header&&Object(o.addHeader)(r.printableElement,r),s.default.send(r,e)}};function b(l,r){for(var e=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),y=0;y"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(g){p.srcdoc+=''})),p.srcdoc+=""),t.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var m=window.open(t.fallbackPrintable,"_blank");m.focus(),t.onIncompatibleBrowser()}catch(g){t.onError(g)}finally{t.showModal&&s.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else f.default.print(t,p);break;case"image":l.default.print(t,p);break;case"html":b.default.print(t,p);break;case"raw-html":i.default.print(t,p);break;case"json":r.default.print(t,p);break}}}},"./src/js/json.js":function(E,a,n){n.r(a);var o=n("./src/js/functions.js"),s=n("./src/js/print.js");function f(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(r){return typeof r}:f=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f(i)}a.default={print:function(l,r){if(f(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(e){return{field:f(e)==="object"?e.field:e,displayName:f(e)==="object"?e.displayName:e,columnSize:f(e)==="object"&&e.columnSize?e.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(o.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=b(l),s.default.send(l,r)}};function b(i){var l=i.printable,r=i.properties,e='';i.repeatTableHeader&&(e+=""),e+="";for(var u=0;u'+Object(o.capitalizePrint)(r[u].displayName)+"";e+="",i.repeatTableHeader&&(e+=""),e+="";for(var y=0;y";for(var t=0;t1)for(var h=0;h'+d+""}e+=""}return e+="
",e}},"./src/js/modal.js":function(E,a,n){n.r(a);var o={show:function(f){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",b),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),l.appendChild(r);var e=document.createElement("span");e.setAttribute("class","printSpinner"),l.appendChild(e);var u=document.createTextNode(f.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){o.close()})},close:function(){var f=document.getElementById("printJS-Modal");f&&f.parentNode.removeChild(f)}};a.default=o},"./src/js/pdf.js":function(E,a,n){n.r(a);var o=n("./src/js/print.js"),s=n("./src/js/functions.js");a.default={print:function(i,l){if(i.base64){var r=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});f(i,l,r);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var e=new window.XMLHttpRequest;e.responseType="arraybuffer",e.addEventListener("error",function(){Object(s.cleanUp)(i),i.onError(e.statusText,e)}),e.addEventListener("load",function(){if([200,201].indexOf(e.status)===-1){Object(s.cleanUp)(i),i.onError(e.statusText,e);return}f(i,l,e.response)}),e.open("GET",i.printable,!0),e.send()}};function f(b,i,l){var r=new window.Blob([l],{type:"application/pdf"});r=window.URL.createObjectURL(r),i.setAttribute("src",r),o.default.send(b,i)}},"./src/js/print.js":function(E,a,n){n.r(a);var o=n("./src/js/browser.js"),s=n("./src/js/functions.js"),f={send:function(e,u){document.getElementsByTagName("body")[0].appendChild(u);var y=document.getElementById(e.frameId);y.onload=function(){if(e.type==="pdf"){o.default.isFirefox()?setTimeout(function(){return b(y,e)},1e3):b(y,e);return}var t=y.contentWindow||y.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!=="pdf"&&e.style){var d=document.createElement("style");d.innerHTML=e.style,t.head.appendChild(d)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return b(y,e)}):b(y,e)}}};function b(r,e){try{if(r.focus(),o.default.isEdge()||o.default.isIE())try{r.contentWindow.document.execCommand("print",!1,null)}catch{r.contentWindow.print()}else r.contentWindow.print()}catch(u){e.onError(u)}finally{o.default.isFirefox()&&(r.style.visibility="hidden",r.style.left="-1px"),Object(s.cleanUp)(e)}}function i(r){var e=r.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(e)}function l(r){return new Promise(function(e){var u=function y(){!r||typeof r.naturalWidth>"u"||r.naturalWidth===0||!r.complete?setTimeout(y,500):e()};u()})}a.default=f},"./src/js/raw-html.js":function(E,a,n){n.r(a);var o=n("./src/js/print.js");a.default={print:function(f,b){f.printableElement=document.createElement("div"),f.printableElement.setAttribute("style","width:100%"),f.printableElement.innerHTML=f.printable,o.default.send(f,b)}}},"./src/sass/index.scss":function(E,a,n){},0:function(E,a,n){E.exports=n("./src/index.js")}}).default})})(v);var P=v.exports;const C=O(P);export{C as p}; diff --git a/assets/print-js@1.6.0-C3lAJnMa.js.gz b/assets/print-js@1.6.0-C3lAJnMa.js.gz new file mode 100644 index 00000000..a08d26f1 Binary files /dev/null and b/assets/print-js@1.6.0-C3lAJnMa.js.gz differ diff --git a/assets/print-js@1.6.0-gYKv6oGQ.js.gz b/assets/print-js@1.6.0-gYKv6oGQ.js.gz deleted file mode 100644 index c904cca4..00000000 Binary files a/assets/print-js@1.6.0-gYKv6oGQ.js.gz and /dev/null differ diff --git a/assets/qrcode-Ecs_mS_M.js b/assets/qrcode-Cr9UFjAo.js similarity index 100% rename from assets/qrcode-Ecs_mS_M.js rename to assets/qrcode-Cr9UFjAo.js diff --git a/assets/qrcode-Ecs_mS_M.js.gz b/assets/qrcode-Cr9UFjAo.js.gz similarity index 100% rename from assets/qrcode-Ecs_mS_M.js.gz rename to assets/qrcode-Cr9UFjAo.js.gz diff --git a/assets/qs@6.11.2-Z-dpNlsu.js b/assets/qs@6.11.2-5yoVYNs7.js similarity index 97% rename from assets/qs@6.11.2-Z-dpNlsu.js rename to assets/qs@6.11.2-5yoVYNs7.js index 89affb3e..e314aeb2 100644 --- a/assets/qs@6.11.2-Z-dpNlsu.js +++ b/assets/qs@6.11.2-5yoVYNs7.js @@ -1 +1 @@ -import"./side-channel@1.0.4-JVVpKjRm.js";var m=String.prototype.replace,O=/%20/g,v={RFC1738:"RFC1738",RFC3986:"RFC3986"},y={default:v.RFC3986,formatters:{RFC1738:function(f){return m.call(f,O,"+")},RFC3986:function(f){return String(f)}},RFC1738:v.RFC1738,RFC3986:v.RFC3986},C=y,x=Object.prototype.hasOwnProperty,p=Array.isArray,s=function(){for(var f=[],e=0;e<256;++e)f.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return f}(),R=function(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(p(t)){for(var a=[],l=0;l=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||l===C.RFC1738&&(n===40||n===41)){i+=o.charAt(u);continue}if(n<128){i=i+s[n];continue}if(n<2048){i=i+(s[192|n>>6]+s[128|n&63]);continue}if(n<55296||n>=57344){i=i+(s[224|n>>12]+s[128|n>>6&63]+s[128|n&63]);continue}u+=1,n=65536+((n&1023)<<10|o.charCodeAt(u)&1023),i+=s[240|n>>18]+s[128|n>>12&63]+s[128|n>>6&63]+s[128|n&63]}return i},A=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],a=0;a1;){var r=e.pop(),t=r.obj[r.prop];if(p(t)){for(var a=[],l=0;l=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||l===C.RFC1738&&(n===40||n===41)){i+=o.charAt(u);continue}if(n<128){i=i+s[n];continue}if(n<2048){i=i+(s[192|n>>6]+s[128|n&63]);continue}if(n<55296||n>=57344){i=i+(s[224|n>>12]+s[128|n>>6&63]+s[128|n&63]);continue}u+=1,n=65536+((n&1023)<<10|o.charCodeAt(u)&1023),i+=s[240|n>>18]+s[128|n>>12&63]+s[128|n>>6&63]+s[128|n&63]}return i},A=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],a=0;a(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(p||{}),P={VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const X=()=>P,k=(e,r)=>{const t=document.createElement("a");t.href=e,t.download=r,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},y=(e,r)=>Object.prototype.toString.call(e).includes(r),J=(e=16,r=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],i=window.crypto||window.msCrypto;let s=0;for(s=0;snew Promise((t,o)=>{let i;try{if(typeof e=="string")return k(e,r),t();if(e instanceof ArrayBuffer)i=new Blob([new Uint8Array(e)],{type:"application/octet-stream"});else if(e instanceof File||e instanceof Blob)i=e;else return o(new Error("downloadAnyFile: Unsupported data type."));const s=URL.createObjectURL(i),n=document.createElement("a");n.href=s,n.download=r,n.style.display="none";const a=()=>{URL.revokeObjectURL(s),document.body.removeChild(n)};n.addEventListener("load",()=>(a(),t())),n.addEventListener("error",c=>(a(),o(c))),document.body.appendChild(n),n.click()}catch(s){return o(s)}});function C(e,r){if(!e)return console.warn(`[omit]: The targetObject is expected to be an object, but got ${e}.`),{};const t=Array.isArray(r)?r:[r];return t.length&&t.forEach(o=>{delete e[o]}),e}function G(e,r){if(!e)return console.warn(`[pick]: The targetObject is expected to be an object, but got ${e}.`),{};const t=Array.isArray(r)?r:[r];return t.length?t.reduce((i,s)=>(Reflect.has(e,s)&&(i[s]=e[s]),i),{}):e}const H=()=>{const e=navigator.userAgent;return/windows/i.test(e)?p.Windows:/macintosh|mac os x/i.test(e)?p.MacOS:/linux/i.test(e)?p.Linux:/android/i.test(e)?p.Android:/iphone|ipad|ipod/i.test(e)?p.IOS:p.Unknown},Q=(e,r)=>{const t=e.endsWith("/"),o=r.endsWith("/");return t&&o?e.slice(0,-1)===r.slice(0,-1):!t&&!o?e===r:e===r||e.slice(0,-1)===r||e===r.slice(0,-1)};function Z(e,r="sessionStorage",t){const{prefix:o,prefixKey:i}=t??{},s=o?i||S:"",n=r==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(n).find(a=>a===s+e)}function O(e,r,t="sessionStorage",o){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:i,prefixKey:s}=o??{},n=i?s||S:"";try{const a=JSON.stringify(r);t==="localStorage"?window.localStorage.setItem(n+e,a):window.sessionStorage.setItem(n+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function T(e,r="sessionStorage",t){const{prefix:o,prefixKey:i,defaultValue:s}=t??{},n=o?i||S:"";try{const a=r==="localStorage"?window.localStorage.getItem(n+e):window.sessionStorage.getItem(n+e);return a===null?s??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),s??null}}const z=(e,r,t)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:o,prefixKey:i}=t??{},s=o?i||S:"",n=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(w,m)=>{(w?[...a,...n]:m==="localStorage"?n:a).forEach(d=>{e==="__all__"?(window.sessionStorage.removeItem(s+d),window.localStorage.removeItem(s+d)):m==="localStorage"?window.localStorage.removeItem(s+d):window.sessionStorage.removeItem(s+d)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:r==="localStorage"?window.localStorage.removeItem(s+e):window.sessionStorage.removeItem(s+e);break}},N=(e,r)=>{var s;const{domToImageOptions:t,printOptions:o}=r??{},{create:i}=A(e,{...t,beforeCreate:n=>{var a;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,n),window==null||window.$loadingBar.start()},created(n,a){var c;(c=t==null?void 0:t.created)==null||c.call(t,n,a),window==null||window.$loadingBar.finish()},createdError(n){var a;(a=t==null?void 0:t.createdError)==null||a.call(t,n),window==null||window.$loadingBar.error()}});(s=i("jpeg"))==null||s.then(n=>{const{print:a}=x(n,{type:"image",base64:!0,targetStyles:["*"],...C(o,["type","base64"])});a()})},ee=(e,r)=>{const t=()=>{const i=f(e);i&&(typeof r=="string"?r.trim().split(" "):r).forEach(n=>{n&&i.classList.add(n)})},o=Vue.watch(()=>f(e),t,{immediate:!0});h(o)},te=(e,r)=>{const t=()=>{const i=f(e);if(i)if(r==="removeAllClass"){const s=i.classList;s.forEach(n=>s.remove(n))}else(typeof r=="string"?r.trim().split(" "):r).forEach(n=>{n&&i.classList.remove(n)})},o=Vue.watch(()=>f(e),t,{immediate:!0});h(o)},re=(e,r)=>{const t=Vue.ref(!1),o=()=>{const s=f(e);if(!s)t.value=!1;else{const n=s.className,a=typeof r=="string"?r.trim().split(" ").filter(c=>c!==""):r;t.value=a.some(c=>n.includes(c))}},i=Vue.watch(()=>f(e),o,{immediate:!0});return h(i),t},R=e=>{const r=["webkit","moz","ms","o"],t={};return r.forEach(o=>{t[`${o}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t},ne=(e,r)=>{const t=(s,n)=>{s.split(";").forEach(a=>{const[c,w]=a.split(":");if(c&&w){const m=c.trim(),g=w.trim();if(c.startsWith("--"))n.style.setProperty(m,g);else if(c.startsWith("-"))n.style[c]=w;else{const d=R(m);Object.keys(d).forEach(E=>{n.style[E]=d[E]}),n.style[m]=g}}})},o=()=>{const s=f(e);s&&(y(r,"String")?t(r,s):y(r,"Array")?r.forEach(n=>{t(n,s)}):Object.keys(r).forEach(a=>{t(`${a}: ${r[a]}`,s)}))},i=Vue.watch(()=>f(e),o,{immediate:!0});h(i)},se=(e,r=1)=>{const t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,o=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/i,i=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/i;let s;if(t.test(e)){const n=e.substring(1);s="rgb("+[parseInt(n.substring(0,2),16),parseInt(n.substring(2,4),16),parseInt(n.substring(4,6),16)].join(", ")+")"}else return o.test(e)||i.test(e),e;return s&&!s.startsWith("rgba")&&(s=s.replace("rgb","rgba").replace(")",`, ${r})`)),s},oe=(e,r)=>{const{defaultElement:t}=r||{};if(!e)return t?[t]:null;const o=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{return Array.from(document.querySelectorAll(o))}catch(i){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,i),t?[t]:null}},ie=(e,r="px")=>typeof e=="number"?e.toString()+r:y(e,"String")&&v.cssUnit.test(e)?e:e+r,u={precision:8,decimal:"."},b=(e,r,t)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((i,s,n,a)=>(i=t==null?void 0:t(i,s,n,a),i),r):0,$=(e,r,t="number")=>{const o=Object.assign({},u,r),i=l(e,o);return t==="number"?i.value:i.toString()},ae=(...e)=>e.length===1?l(e[0],u).add(0):b(e,0,(r,t)=>l(r,u).add(t)),ce=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[o,i]=e;return l(o,u).subtract(i)}const r=_(e),t=r.shift();return r.length?b(r,t,(o,i)=>l(o,u).subtract(i)):t},le=(...e)=>e.length===1?l(e[0],u).multiply(1):b(e,1,(r,t)=>l(r,u).multiply(t)),ue=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[o,i]=e;return l(o,u).divide(i)}const r=_(e),t=r.shift();return b(r,t,(o,i)=>l(o,u).divide(i))},fe=(e,r)=>r<=1?[e||0]:e?l(e,u).distribute(r).map(o=>$(o)):new Array(r).fill(0);function V(e,...r){if(Array.isArray(e))e.forEach(t=>V(t,...r));else return e(...r)}function f(e,r){var o;if(!e)return r;let t;return typeof e=="function"?t=e():Vue.isRef(e)?t=((o=e.value)==null?void 0:o.$el)??e.value:t=e,t}function de(e,r){if(!e){const{defaultElement:t=null}=r??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||y(e,"Object"))return()=>e;if(typeof e=="function")return e}function h(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function pe(e,r){const t=Vue.watchEffect(e,r);h(t)}export{$ as A,fe as B,ae as C,ce as D,le as E,ue as F,ie as a,V as b,se as c,k as d,Y as e,G as f,T as g,Q as h,y as i,z as j,X as k,te as l,ee as m,H as n,re as o,N as p,oe as q,de as r,O as s,h as t,J as u,f as v,pe as w,C as x,ne as y,Z as z}; diff --git a/assets/utils-B_UBRWj5.js.gz b/assets/utils-B_UBRWj5.js.gz new file mode 100644 index 00000000..31d608f2 Binary files /dev/null and b/assets/utils-B_UBRWj5.js.gz differ diff --git a/assets/utils-zTxN2cCS.js b/assets/utils-zTxN2cCS.js deleted file mode 100644 index a83637d2..00000000 --- a/assets/utils-zTxN2cCS.js +++ /dev/null @@ -1 +0,0 @@ -import{A as y,u as A,a as x,b as v}from"./hooks-HESpGiIM.js";import{c as l}from"./currency.js@2.0.4--or6eeOG.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import{c as _}from"./lodash-es@4.17.21-xgd1l9mE.js";var m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{}),I={VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const K=()=>I,P=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)},h=(e,t)=>Object.prototype.toString.call(e).includes(t),M=(e=16,t=62)=>{const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],s=window.crypto||window.msCrypto;let n=0;for(n=0;nnew Promise((r,o)=>{let s;try{if(typeof e=="string")return P(e,t),r();if(e instanceof ArrayBuffer)s=new Blob([new Uint8Array(e)],{type:"application/octet-stream"});else if(e instanceof File||e instanceof Blob)s=e;else return o(new Error("downloadAnyFile: Unsupported data type."));const n=URL.createObjectURL(s),i=document.createElement("a");i.href=n,i.download=t,i.style.display="none";const a=()=>{URL.revokeObjectURL(n),document.body.removeChild(i)};i.addEventListener("load",()=>(a(),r())),i.addEventListener("error",c=>(a(),o(c))),document.body.appendChild(i),i.click()}catch(n){return o(n)}});function k(e,t){if(!e)return console.warn(`[omit]: The targetObject is expected to be an object, but got ${e}.`),{};const r=Array.isArray(t)?t:[t];return r.length&&r.forEach(o=>{delete e[o]}),e}function J(e,t){if(!e)return console.warn(`[pick]: The targetObject is expected to be an object, but got ${e}.`),{};const r=Array.isArray(t)?t:[t];return r.length?r.reduce((s,n)=>(Reflect.has(e,n)&&(s[n]=e[n]),s),{}):e}const Y=()=>{const e=navigator.userAgent;return/windows/i.test(e)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},G=(e,t)=>{const r=e.endsWith("/"),o=t.endsWith("/");return r&&o?e.slice(0,-1)===t.slice(0,-1):!r&&!o?e===t:e===t||e.slice(0,-1)===t||e===t.slice(0,-1)};function H(e,t="sessionStorage",r){const{prefix:o,prefixKey:s}=r??{},n=o?s||y:"",i=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(i).find(a=>a===n+e)}function Q(e,t,r="sessionStorage",o){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:s,prefixKey:n}=o??{},i=s?n||y:"";try{const a=JSON.stringify(t);r==="localStorage"?window.localStorage.setItem(i+e,a):window.sessionStorage.setItem(i+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function Z(e,t="sessionStorage",r){const{prefix:o,prefixKey:s,defaultValue:n}=r??{},i=o?s||y:"";try{const a=t==="localStorage"?window.localStorage.getItem(i+e):window.sessionStorage.getItem(i+e);return a===null?n??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),n??null}}const z=(e,t,r)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:o,prefixKey:s}=r??{},n=o?s||y:"",i=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(g,p)=>{(g?[...a,...i]:p==="localStorage"?i:a).forEach(d=>{e==="__all__"?(window.sessionStorage.removeItem(n+d),window.localStorage.removeItem(n+d)):p==="localStorage"?window.localStorage.removeItem(n+d):window.sessionStorage.removeItem(n+d)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:t==="localStorage"?window.localStorage.removeItem(n+e):window.sessionStorage.removeItem(n+e);break}},N=(e,t)=>{var n;const{domToImageOptions:r,printOptions:o}=t??{},{create:s}=x(e,r);window==null||window.$loadingBar.start(),(n=s("jpeg"))==null||n.then(i=>{const{print:a}=A(i,{type:"image",base64:!0,targetStyles:["*"],...k(o,["type","base64"])});a()}).catch(()=>{window==null||window.$loadingBar.error()}).finally(()=>{window==null||window.$loadingBar.finish()})},ee=(e,t)=>{const r=()=>{const s=f(e);s&&(typeof t=="string"?t.trim().split(" "):t).forEach(i=>{i&&s.classList.add(i)})},o=Vue.watch(()=>f(e),r,{immediate:!0});w(o)},te=(e,t)=>{const r=()=>{const s=f(e);if(s)if(t==="removeAllClass"){const n=s.classList;n.forEach(i=>n.remove(i))}else(typeof t=="string"?t.trim().split(" "):t).forEach(i=>{i&&s.classList.remove(i)})},o=Vue.watch(()=>f(e),r,{immediate:!0});w(o)},re=(e,t)=>{const r=Vue.ref(!1),o=()=>{const n=f(e);if(!n)r.value=!1;else{const i=n.className,a=typeof t=="string"?t.trim().split(" ").filter(c=>c!==""):t;r.value=a.some(c=>i.includes(c))}},s=Vue.watch(()=>f(e),o,{immediate:!0});return w(s),r},C=e=>{const t=["webkit","moz","ms","o"],r={};return t.forEach(o=>{r[`${o}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),r},ne=(e,t)=>{const r=(n,i)=>{n.split(";").forEach(a=>{const[c,g]=a.split(":");if(c&&g){const p=c.trim(),b=g.trim();if(c.startsWith("--"))i.style.setProperty(p,b);else{const d=C(p);Object.keys(d).forEach(E=>{i.style[E]=d[E]}),i.style[p]=b}}})},o=()=>{const n=f(e);n&&(h(t,"String")?r(t,n):h(t,"Array")?t.forEach(i=>{r(i,n)}):Object.keys(t).forEach(a=>{r(`${a}: ${t[a]}`,n)}))},s=Vue.watch(()=>f(e),o,{immediate:!0});w(s)},oe=(e,t=1)=>{const r=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,o=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/i,s=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/i;let n;if(r.test(e)){const i=e.substring(1);n="rgb("+[parseInt(i.substring(0,2),16),parseInt(i.substring(2,4),16),parseInt(i.substring(4,6),16)].join(", ")+")"}else return o.test(e)||s.test(e),e;return n&&!n.startsWith("rgba")&&(n=n.replace("rgb","rgba").replace(")",`, ${t})`)),n},se=(e,t)=>{const{defaultElement:r}=t||{};if(!e)return r?[r]:null;const o=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{return Array.from(document.querySelectorAll(o))}catch(s){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,s),r?[r]:null}},ie=(e,t="px")=>typeof e=="number"?e.toString()+t:h(e,"String")&&v.cssUnit.test(e)?e:e+t,u={precision:8,decimal:"."},S=(e,t,r)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((s,n,i,a)=>(s=r==null?void 0:r(s,n,i,a),s),t):0,R=(e,t,r="number")=>{const o=Object.assign({},u,t),s=l(e,o);return r==="number"?s.value:s.toString()},ae=(...e)=>e.length===1?l(e[0],u).add(0):S(e,0,(t,r)=>l(t,u).add(r)),ce=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[o,s]=e;return l(o,u).subtract(s)}const t=_(e),r=t.shift();return t.length?S(t,r,(o,s)=>l(o,u).subtract(s)):r},le=(...e)=>e.length===1?l(e[0],u).multiply(1):S(e,1,(t,r)=>l(t,u).multiply(r)),ue=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[o,s]=e;return l(o,u).divide(s)}const t=_(e),r=t.shift();return S(t,r,(o,s)=>l(o,u).divide(s))},fe=(e,t)=>t<=1?[e||0]:e?l(e,u).distribute(t).map(o=>R(o)):new Array(t).fill(0);function $(e,...t){if(Array.isArray(e))e.forEach(r=>$(r,...t));else return e(...t)}function f(e,t){var o;if(!e)return t;let r;return typeof e=="function"?r=e():Vue.isRef(e)?r=((o=e.value)==null?void 0:o.$el)??e.value:r=e,r}function de(e,t){if(!e){const{defaultElement:r=null}=t??{};return typeof r=="function"?r:()=>r}if(typeof e=="string"||h(e,"Object"))return()=>e;if(typeof e=="function")return e}function w(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function me(e,t){const r=Vue.watchEffect(e,t);w(r)}export{fe as A,ae as B,ce as C,le as D,ue as E,ie as a,$ as b,oe as c,P as d,X as e,J as f,Z as g,G as h,h as i,z as j,K as k,te as l,ee as m,Y as n,re as o,N as p,se as q,de as r,Q as s,w as t,M as u,f as v,me as w,ne as x,H as y,R as z}; diff --git a/assets/utils-zTxN2cCS.js.gz b/assets/utils-zTxN2cCS.js.gz deleted file mode 100644 index 4c155293..00000000 Binary files a/assets/utils-zTxN2cCS.js.gz and /dev/null differ diff --git a/assets/vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js.gz b/assets/vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js.gz deleted file mode 100644 index d29faf6e..00000000 Binary files a/assets/vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js.gz and /dev/null differ diff --git a/assets/vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js b/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js similarity index 98% rename from assets/vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js rename to assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js index 2993df39..0b8b475d 100644 --- a/assets/vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js +++ b/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js @@ -1 +1 @@ -import{d as Q,t as W,c as U}from"./lodash@4.17.21-yUHHMES2.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import{s as p}from"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";const M=(n,{manual:e,ready:t=!0,refreshDeps:s=[],refreshDepsAction:r})=>{const u=Vue.ref(!1);return Vue.watchEffect(()=>{!e&&n.options.refreshDeps!==!0&&(u.value=Vue.unref(t))}),s instanceof Array?Vue.watch([u,...s],([i])=>{i&&!e&&i&&(r?r():n.refresh())},{deep:!0,immediate:!1}):Vue.watch(u,i=>{!e&&i&&(r?r():n.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!Vue.unref(t))return{stopNow:!0}}}};M.onInit=({ready:n=!0,manual:e})=>({loading:!e&&Vue.unref(n)});const S=new Map,G=(n,e,t)=>{const s=S.get(n);s!=null&&s.timer&&clearTimeout(s.timer);let r;e>-1&&(r=setTimeout(()=>{S.delete(n)},e)),S.set(n,{...t,timer:r})},Y=n=>S.get(n),O=new Map,z=n=>O.get(n),J=(n,e)=>{O.set(n,e),e.then(t=>(O.delete(n),t)).catch(t=>{throw O.delete(n),t})},w={},X=[],Z=(n,e)=>{w[n]&&(w[n].forEach(t=>t(e)),X.forEach(t=>t({type:n,data:e})))},T=(n,e)=>(w[n]||(w[n]=[]),w[n].push(e),function(){const s=w[n].indexOf(e);w[n].splice(s,1)}),K=(n,{cacheKey:e,cacheTime:t=5*60*1e3,staleTime:s=0,setCache:r,getCache:u})=>{const i=Vue.ref(),a=Vue.ref(),o=(l,c)=>{r?r(c):G(l,t,c),Z(l,c.data)},d=(l,c=[])=>u?u(c):Y(l);return Vue.watchEffect(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(n.state.data=l.data,n.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(n.state.loading=!1)),i.value=T(e,c=>{n.setState({data:c})})}),Vue.onScopeDispose(()=>{var l;(l=i.value)==null||l.call(i)}),e?{name:"cachePlugin",onBefore:l=>{const c=d(e,l);return!c||!Object.hasOwnProperty.call(c,"data")?{}:s===-1||new Date().getTime()-c.time<=s?{loading:!1,data:c==null?void 0:c.data,returnNow:!0}:{data:c==null?void 0:c.data}},onRequest:(l,c)=>{let h=z(e);return h&&h!==a.value?{servicePromise:h}:(h=l(...c),a.value=h,J(e,h),{servicePromise:h})},onSuccess:(l,c)=>{var h;e&&((h=i.value)==null||h.call(i),o(e,{data:l,params:c,time:new Date().getTime()}),i.value=T(e,f=>{n.setState({data:f})}))},onMutate:l=>{var c;e&&((c=i.value)==null||c.call(i),o(e,{data:l,params:n.state.params,time:new Date().getTime()}),i.value=T(e,h=>{n.setState({data:h})}))}}:{}},k=(n,{debounceWait:e,debounceLeading:t,debounceTrailing:s,debounceMaxWait:r})=>{const u=Vue.ref(),i=Vue.computed(()=>{const a={},o=Vue.unref(t),d=Vue.unref(s),l=Vue.unref(r);return o!==void 0&&(a.leading=o),d!==void 0&&(a.trailing=d),l!==void 0&&(a.maxWait=l),a});return Vue.watchEffect(a=>{if(Vue.unref(e)){const o=n.runAsync.bind(n);u.value=Q(d=>{d()},Vue.unref(e),i.value),n.runAsync=(...d)=>new Promise((l,c)=>{var h;(h=u.value)==null||h.call(u,()=>{o(...d).then(l).catch(c)})}),a(()=>{var d;(d=u.value)==null||d.cancel(),n.runAsync=o})}}),Vue.unref(e)?{name:"debouncePlugin",onCancel:()=>{var a;(a=u.value)==null||a.cancel()}}:{}};var ee=Object.defineProperty,te=(n,e,t)=>e in n?ee(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,L=(n,e,t)=>(te(n,typeof e!="symbol"?e+"":e,t),t);class ne{constructor(){L(this,"table",{}),L(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new ne;var se=Object.defineProperty,re=(n,e,t)=>e in n?se(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e,t)=>(re(n,typeof e!="symbol"?e+"":e,t),t);class ie{constructor(){$(this,"requestInstances",new Map),$(this,"listeners",[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new ie;const ue=(n,{loadingDelay:e})=>{const t=Vue.ref();if(!Vue.unref(e))return{};const s=()=>{t.value&&clearTimeout(t.value)};return{name:"loadingDelayPlugin",onBefore:()=>(s(),t.value=setTimeout(()=>{n.setState({loading:!0})},Vue.unref(e)),{loading:!1}),onFinally:()=>{s()},onCancel:()=>{s()}}};function D(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const oe=!!(typeof window<"u"&&window.document&&window.document.createElement);function F(){return D()?document.visibilityState!=="hidden":!0}const E=[];function le(n){return E.push(n),function(){const t=E.indexOf(n);E.splice(t,1)}}if(D()){const n=()=>{if(F())for(let e=0;e{const r=Vue.ref(),u=Vue.ref(),i=Vue.ref(0),a=()=>{var o;r.value&&clearInterval(r.value),(o=u.value)==null||o.call(u)};return Vue.watchEffect(()=>{Vue.unref(e)||a()}),Vue.unref(e)?{name:"pollingPlugin",onBefore:()=>{a()},onError:()=>{i.value+=1},onSuccess:()=>{i.value=0},onFinally:()=>{s===-1||s!==-1&&i.value<=s?r.value=setTimeout(()=>{!t&&!F()?u.value=le(()=>{n.refresh()}):n.refresh()},Vue.unref(e)):i.value=0},onCancel:()=>{a()}}:{}};function ce(n,e){let t=!1;return(...s)=>{t||(t=!0,n(...s),setTimeout(()=>{t=!1},e))}}function fe(){return D()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const P=[];function de(n){return P.push(n),function(){const t=P.indexOf(n);t>-1&&P.splice(t,1)}}if(oe){const n=()=>{if(!(!F()||!fe()))for(let e=0;e{const s=Vue.ref(),r=()=>{var u;(u=s.value)==null||u.call(s)};return Vue.watchEffect(u=>{if(Vue.unref(e)){const i=ce(n.refresh.bind(n),Vue.unref(t));s.value=de(()=>{i()})}u(()=>{r()})}),Vue.onScopeDispose(()=>{r()}),{name:"refreshOnWindowFocusPlugin"}},ve=(n,{retryInterval:e,retryCount:t})=>{const s=Vue.ref(),r=Vue.ref(0),u=Vue.ref(!1);return t?{name:"retryPlugin",onBefore:()=>{u.value||(r.value=0),u.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{r.value=0},onError:()=>{if(r.value+=1,t===-1||r.value<=t){const i=e??Math.min(1e3*2**r.value,3e4);s.value=setTimeout(()=>{u.value=!0,n.refresh()},i)}else r.value=0},onCancel:()=>{r.value=0,s.value&&clearTimeout(s.value)}}:{}},me=(n,{throttleWait:e,throttleLeading:t,throttleTrailing:s})=>{const r=Vue.computed(()=>{const i={};return Vue.unref(t)!==void 0&&(i.leading=Vue.unref(t)),Vue.unref(s)!==void 0&&(i.trailing=Vue.unref(s)),i}),u=Vue.computed(()=>W(i=>{i()},Vue.unref(e),r.value));return Vue.watchEffect(i=>{if(Vue.unref(e)){const a=n.runAsync.bind(n);n.runAsync=(...o)=>new Promise((d,l)=>{var c;(c=u.value)==null||c.call(u,()=>{a(...o).then(d).catch(l)})}),i(()=>{var o;n.runAsync=a,(o=u.value)==null||o.cancel()})}}),Vue.unref(e)?{name:"throttlePlugin",onCancel:()=>{var i;(i=u.value)==null||i.cancel()}}:{}},H=n=>typeof n=="function",pe=n=>typeof n=="boolean";var be=Object.defineProperty,ge=(n,e,t)=>e in n?be(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e,t)=>(ge(n,typeof e!="symbol"?e+"":e,t),t);class _e{constructor(e,t,s,r={}){R(this,"pluginImpls"),R(this,"count",0),R(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),R(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=s,this.initState=r,this.state={...this.state,loading:!t.manual,...r}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var s,r,u;const i=(u=(r=(s=this.pluginImpls)==null?void 0:s.map(a=>{var o;return(o=a[e])==null?void 0:o.call(a,...t)}))!=null?r:[])==null?void 0:u.filter(Boolean);return Object.assign({},...i)}async runAsync(...e){var t,s,r,u,i,a,o,d,l,c,h;this.count+=1;const f=this.count,{stopNow:g=!1,returnNow:v=!1,...b}=this.runPluginHandler("onBefore",e);if(g)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...b}),v)return Promise.resolve(b.data);try{(s=(t=this.options).onBefore)==null||s.call(t,e)}catch(m){return this.setState({error:m,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,m,e),this.runPluginHandler("onError",m,e),new Promise(()=>{})}try{let{servicePromise:m}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const I=C=>{var q,B,x,y;if(f!==this.count)return new Promise(()=>{});const _=this.options.formatResult?this.options.formatResult(C):C;return this.setState({data:_,error:void 0,loading:!1}),(B=(q=this.options).onSuccess)==null||B.call(q,_,e),this.runPluginHandler("onSuccess",_,e),this.previousValidData=_,(y=(x=this.options).onFinally)==null||y.call(x,e,_,void 0),f===this.count&&this.runPluginHandler("onFinally",e,_,void 0),_};m||(m=this.serviceRef.value(...e));const j=await m;return I(j)}catch(m){if(f!==this.count)return new Promise(()=>{});throw this.setState({error:m,loading:!1}),(a=(i=this.options).onError)==null||a.call(i,m,e),this.runPluginHandler("onError",m,e),(H((o=this.options)==null?void 0:o.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||pe((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(h=(c=this.options).onFinally)==null||h.call(c,e,void 0,m),f===this.count&&this.runPluginHandler("onFinally",e,void 0,m),m}}run(...e){this.runAsync(...e).catch(t=>{this.options.onError||console.error(t)})}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 t=H(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const Ve=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function we(n){return Object.keys(n).filter(t=>["data","loading","params","error"].includes(t)).length===4}function Ee(n,e={},t=[]){const s=Vue.inject(Ve,{}),{initialData:r=void 0,manual:u=!1,ready:i=!0,...a}={...s??{},...e??{}},o={manual:u,ready:i,...a},d=Vue.ref(n),l=Vue.reactive({data:r,loading:!1,params:void 0,error:void 0}),c=(v,b)=>{b?l[b]=v:we(v)&&(l.data=v.data,l.loading=v.loading,l.error=v.error,l.params=v.params)},h=t.map(v=>{var b;return(b=v==null?void 0:v.onInit)==null?void 0:b.call(v,o)}).filter(Boolean),f=new _e(d,o,c,Object.assign({},...h,l));f.options=o,f.pluginImpls=t.map(v=>v(f,o));const g=Vue.computed(()=>Vue.isRef(i)?i.value:i);if(Vue.watchEffect(()=>{if(!u){const v=f.state.params||e.defaultParams||[];g.value&&f.options.refreshDeps===!0&&d.value&&f.run(...v)}}),!u&&f.options.refreshDeps!==!0){const v=f.state.params||e.defaultParams||[];Vue.unref(i)&&f.run(...v)}return Vue.onScopeDispose(()=>{f.cancel()}),{...Vue.toRefs(l),cancel:f.cancel.bind(f),refresh:f.refresh.bind(f),refreshAsync:f.refreshAsync.bind(f),run:f.run.bind(f),runAsync:f.runAsync.bind(f),mutate:f.mutate.bind(f)}}const Pe=(n,e)=>function(s,r={},u=[]){let i=n;const a=e||[];for(let o=a.length;o--;)i=a[o](i);return i(s,r,u)};function Be(n,e,t){var s;const r=(s=[null,k,ue,ae,he,me,M,K,ve])==null?void 0:s.filter(Boolean);return Pe(Ee,e==null?void 0:e.use)(n,e,[...t||[],...r])}const Re=!!(typeof window<"u"&&window.document&&window.document.createElement);function A(n,e){var t,s;if(!Re)return;if(!n)return e;let r;return typeof n=="function"?r=n():Vue.isRef(n)?r=(s=(t=n.value)==null?void 0:t.$el)!=null?s:n.value:r=n,r}function N(n,e){if(n===e)return!0;for(let t=0;t(t,s,r)=>{const u=Vue.ref(!1),i=Vue.ref([]),a=Vue.ref([]),o=Vue.ref();n(()=>{var d;const c=(Array.isArray(r)?r:[r]).map(h=>A(h));if(!u.value){u.value=!0,i.value=c,a.value=s,o.value=t();return}(c.length!==i.value.length||!N(c,i.value)||!N(s,a.value))&&((d=o.value)==null||d.call(o),i.value=c,a.value=s,o.value=t())}),Vue.onUnmounted(()=>{var d;(d=o.value)==null||d.call(o),u.value=!1})};Se(Vue.watchEffect);var Oe=Object.defineProperty,Ae=(n,e,t)=>e in n?Oe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,V=(n,e,t)=>(Ae(n,typeof e!="symbol"?e+"":e,t),t);class Te{constructor(){V(this,"subscriptions",new Map),V(this,"emitEffectCache",new Map),V(this,"useSubscription",(e,t)=>{const s=Vue.ref();Vue.watchEffect(r=>{var u,i;s.value=t;function a(d){s.value&&s.value(d)}const o=(i=(u=this.subscriptions)==null?void 0:u.get(e))!=null?i:[];o.push(a),this.subscriptions.set(e,o),this.emitEffect(e),r(()=>{this.subscriptions.delete(e)})})}),V(this,"emit",(e,...t)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(r=>{r==null||r({params:U(t),event:e})}),this.emitEffectCache.set(e,{params:U(t),event:e})}else throw new TypeError("event must be string or number !")}),V(this,"emitEffect",e=>{const t=this.emitEffectCache.get(e),s=this.subscriptions.get(e);t&&(s==null||s.forEach(r=>{r==null||r({...t})}))}),V(this,"removeListener",e=>{this.subscriptions.delete(e)}),V(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new Te;const xe=(n,e)=>{const{onExit:t,onEnter:s,defaultElement:r=document.documentElement}=e||{},u=Vue.ref(t),i=Vue.ref(s),a=Vue.ref(!1),o=f=>{a.value=f},d=()=>{var f,g,v;if(p.isEnabled){const b=A(n,r);if(!p.element)(f=u.value)==null||f.call(u),o(!1),p.off("change",d);else{const m=p.element===b;m?(g=i.value)==null||g.call(i):(v=u.value)==null||v.call(u),o(m)}}},l=()=>{const f=A(n,r);if(f&&p.isEnabled)try{p.request(f),p.on("change",d)}catch(g){console.error(g)}},c=()=>{const f=A(n,r);p.isEnabled&&p.element===f&&p.exit()},h=()=>{a.value?c():l()};return Vue.onUnmounted(()=>{p.isEnabled&&p.off("change",d)}),[Vue.readonly(a),{enterFullscreen:l,exitFullscreen:c,toggleFullscreen:h,isEnabled:p.isEnabled}]};export{Be as a,xe as u}; +import{d as Q,t as W,c as U}from"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as p}from"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";const M=(n,{manual:e,ready:t=!0,refreshDeps:s=[],refreshDepsAction:r})=>{const u=Vue.ref(!1);return Vue.watchEffect(()=>{!e&&n.options.refreshDeps!==!0&&(u.value=Vue.unref(t))}),s instanceof Array?Vue.watch([u,...s],([i])=>{i&&!e&&i&&(r?r():n.refresh())},{deep:!0,immediate:!1}):Vue.watch(u,i=>{!e&&i&&(r?r():n.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!Vue.unref(t))return{stopNow:!0}}}};M.onInit=({ready:n=!0,manual:e})=>({loading:!e&&Vue.unref(n)});const S=new Map,G=(n,e,t)=>{const s=S.get(n);s!=null&&s.timer&&clearTimeout(s.timer);let r;e>-1&&(r=setTimeout(()=>{S.delete(n)},e)),S.set(n,{...t,timer:r})},Y=n=>S.get(n),O=new Map,z=n=>O.get(n),J=(n,e)=>{O.set(n,e),e.then(t=>(O.delete(n),t)).catch(t=>{throw O.delete(n),t})},w={},X=[],Z=(n,e)=>{w[n]&&(w[n].forEach(t=>t(e)),X.forEach(t=>t({type:n,data:e})))},T=(n,e)=>(w[n]||(w[n]=[]),w[n].push(e),function(){const s=w[n].indexOf(e);w[n].splice(s,1)}),K=(n,{cacheKey:e,cacheTime:t=5*60*1e3,staleTime:s=0,setCache:r,getCache:u})=>{const i=Vue.ref(),a=Vue.ref(),o=(l,c)=>{r?r(c):G(l,t,c),Z(l,c.data)},d=(l,c=[])=>u?u(c):Y(l);return Vue.watchEffect(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(n.state.data=l.data,n.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(n.state.loading=!1)),i.value=T(e,c=>{n.setState({data:c})})}),Vue.onScopeDispose(()=>{var l;(l=i.value)==null||l.call(i)}),e?{name:"cachePlugin",onBefore:l=>{const c=d(e,l);return!c||!Object.hasOwnProperty.call(c,"data")?{}:s===-1||new Date().getTime()-c.time<=s?{loading:!1,data:c==null?void 0:c.data,returnNow:!0}:{data:c==null?void 0:c.data}},onRequest:(l,c)=>{let h=z(e);return h&&h!==a.value?{servicePromise:h}:(h=l(...c),a.value=h,J(e,h),{servicePromise:h})},onSuccess:(l,c)=>{var h;e&&((h=i.value)==null||h.call(i),o(e,{data:l,params:c,time:new Date().getTime()}),i.value=T(e,f=>{n.setState({data:f})}))},onMutate:l=>{var c;e&&((c=i.value)==null||c.call(i),o(e,{data:l,params:n.state.params,time:new Date().getTime()}),i.value=T(e,h=>{n.setState({data:h})}))}}:{}},k=(n,{debounceWait:e,debounceLeading:t,debounceTrailing:s,debounceMaxWait:r})=>{const u=Vue.ref(),i=Vue.computed(()=>{const a={},o=Vue.unref(t),d=Vue.unref(s),l=Vue.unref(r);return o!==void 0&&(a.leading=o),d!==void 0&&(a.trailing=d),l!==void 0&&(a.maxWait=l),a});return Vue.watchEffect(a=>{if(Vue.unref(e)){const o=n.runAsync.bind(n);u.value=Q(d=>{d()},Vue.unref(e),i.value),n.runAsync=(...d)=>new Promise((l,c)=>{var h;(h=u.value)==null||h.call(u,()=>{o(...d).then(l).catch(c)})}),a(()=>{var d;(d=u.value)==null||d.cancel(),n.runAsync=o})}}),Vue.unref(e)?{name:"debouncePlugin",onCancel:()=>{var a;(a=u.value)==null||a.cancel()}}:{}};var ee=Object.defineProperty,te=(n,e,t)=>e in n?ee(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,L=(n,e,t)=>(te(n,typeof e!="symbol"?e+"":e,t),t);class ne{constructor(){L(this,"table",{}),L(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new ne;var se=Object.defineProperty,re=(n,e,t)=>e in n?se(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e,t)=>(re(n,typeof e!="symbol"?e+"":e,t),t);class ie{constructor(){$(this,"requestInstances",new Map),$(this,"listeners",[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new ie;const ue=(n,{loadingDelay:e})=>{const t=Vue.ref();if(!Vue.unref(e))return{};const s=()=>{t.value&&clearTimeout(t.value)};return{name:"loadingDelayPlugin",onBefore:()=>(s(),t.value=setTimeout(()=>{n.setState({loading:!0})},Vue.unref(e)),{loading:!1}),onFinally:()=>{s()},onCancel:()=>{s()}}};function D(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const oe=!!(typeof window<"u"&&window.document&&window.document.createElement);function F(){return D()?document.visibilityState!=="hidden":!0}const E=[];function le(n){return E.push(n),function(){const t=E.indexOf(n);E.splice(t,1)}}if(D()){const n=()=>{if(F())for(let e=0;e{const r=Vue.ref(),u=Vue.ref(),i=Vue.ref(0),a=()=>{var o;r.value&&clearInterval(r.value),(o=u.value)==null||o.call(u)};return Vue.watchEffect(()=>{Vue.unref(e)||a()}),Vue.unref(e)?{name:"pollingPlugin",onBefore:()=>{a()},onError:()=>{i.value+=1},onSuccess:()=>{i.value=0},onFinally:()=>{s===-1||s!==-1&&i.value<=s?r.value=setTimeout(()=>{!t&&!F()?u.value=le(()=>{n.refresh()}):n.refresh()},Vue.unref(e)):i.value=0},onCancel:()=>{a()}}:{}};function ce(n,e){let t=!1;return(...s)=>{t||(t=!0,n(...s),setTimeout(()=>{t=!1},e))}}function fe(){return D()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const P=[];function de(n){return P.push(n),function(){const t=P.indexOf(n);t>-1&&P.splice(t,1)}}if(oe){const n=()=>{if(!(!F()||!fe()))for(let e=0;e{const s=Vue.ref(),r=()=>{var u;(u=s.value)==null||u.call(s)};return Vue.watchEffect(u=>{if(Vue.unref(e)){const i=ce(n.refresh.bind(n),Vue.unref(t));s.value=de(()=>{i()})}u(()=>{r()})}),Vue.onScopeDispose(()=>{r()}),{name:"refreshOnWindowFocusPlugin"}},ve=(n,{retryInterval:e,retryCount:t})=>{const s=Vue.ref(),r=Vue.ref(0),u=Vue.ref(!1);return t?{name:"retryPlugin",onBefore:()=>{u.value||(r.value=0),u.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{r.value=0},onError:()=>{if(r.value+=1,t===-1||r.value<=t){const i=e??Math.min(1e3*2**r.value,3e4);s.value=setTimeout(()=>{u.value=!0,n.refresh()},i)}else r.value=0},onCancel:()=>{r.value=0,s.value&&clearTimeout(s.value)}}:{}},me=(n,{throttleWait:e,throttleLeading:t,throttleTrailing:s})=>{const r=Vue.computed(()=>{const i={};return Vue.unref(t)!==void 0&&(i.leading=Vue.unref(t)),Vue.unref(s)!==void 0&&(i.trailing=Vue.unref(s)),i}),u=Vue.computed(()=>W(i=>{i()},Vue.unref(e),r.value));return Vue.watchEffect(i=>{if(Vue.unref(e)){const a=n.runAsync.bind(n);n.runAsync=(...o)=>new Promise((d,l)=>{var c;(c=u.value)==null||c.call(u,()=>{a(...o).then(d).catch(l)})}),i(()=>{var o;n.runAsync=a,(o=u.value)==null||o.cancel()})}}),Vue.unref(e)?{name:"throttlePlugin",onCancel:()=>{var i;(i=u.value)==null||i.cancel()}}:{}},H=n=>typeof n=="function",pe=n=>typeof n=="boolean";var be=Object.defineProperty,ge=(n,e,t)=>e in n?be(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e,t)=>(ge(n,typeof e!="symbol"?e+"":e,t),t);class _e{constructor(e,t,s,r={}){R(this,"pluginImpls"),R(this,"count",0),R(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),R(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=s,this.initState=r,this.state={...this.state,loading:!t.manual,...r}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var s,r,u;const i=(u=(r=(s=this.pluginImpls)==null?void 0:s.map(a=>{var o;return(o=a[e])==null?void 0:o.call(a,...t)}))!=null?r:[])==null?void 0:u.filter(Boolean);return Object.assign({},...i)}async runAsync(...e){var t,s,r,u,i,a,o,d,l,c,h;this.count+=1;const f=this.count,{stopNow:g=!1,returnNow:v=!1,...b}=this.runPluginHandler("onBefore",e);if(g)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...b}),v)return Promise.resolve(b.data);try{(s=(t=this.options).onBefore)==null||s.call(t,e)}catch(m){return this.setState({error:m,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,m,e),this.runPluginHandler("onError",m,e),new Promise(()=>{})}try{let{servicePromise:m}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const I=C=>{var q,B,x,y;if(f!==this.count)return new Promise(()=>{});const _=this.options.formatResult?this.options.formatResult(C):C;return this.setState({data:_,error:void 0,loading:!1}),(B=(q=this.options).onSuccess)==null||B.call(q,_,e),this.runPluginHandler("onSuccess",_,e),this.previousValidData=_,(y=(x=this.options).onFinally)==null||y.call(x,e,_,void 0),f===this.count&&this.runPluginHandler("onFinally",e,_,void 0),_};m||(m=this.serviceRef.value(...e));const j=await m;return I(j)}catch(m){if(f!==this.count)return new Promise(()=>{});throw this.setState({error:m,loading:!1}),(a=(i=this.options).onError)==null||a.call(i,m,e),this.runPluginHandler("onError",m,e),(H((o=this.options)==null?void 0:o.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||pe((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(h=(c=this.options).onFinally)==null||h.call(c,e,void 0,m),f===this.count&&this.runPluginHandler("onFinally",e,void 0,m),m}}run(...e){this.runAsync(...e).catch(t=>{this.options.onError||console.error(t)})}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 t=H(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const Ve=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function we(n){return Object.keys(n).filter(t=>["data","loading","params","error"].includes(t)).length===4}function Ee(n,e={},t=[]){const s=Vue.inject(Ve,{}),{initialData:r=void 0,manual:u=!1,ready:i=!0,...a}={...s??{},...e??{}},o={manual:u,ready:i,...a},d=Vue.ref(n),l=Vue.reactive({data:r,loading:!1,params:void 0,error:void 0}),c=(v,b)=>{b?l[b]=v:we(v)&&(l.data=v.data,l.loading=v.loading,l.error=v.error,l.params=v.params)},h=t.map(v=>{var b;return(b=v==null?void 0:v.onInit)==null?void 0:b.call(v,o)}).filter(Boolean),f=new _e(d,o,c,Object.assign({},...h,l));f.options=o,f.pluginImpls=t.map(v=>v(f,o));const g=Vue.computed(()=>Vue.isRef(i)?i.value:i);if(Vue.watchEffect(()=>{if(!u){const v=f.state.params||e.defaultParams||[];g.value&&f.options.refreshDeps===!0&&d.value&&f.run(...v)}}),!u&&f.options.refreshDeps!==!0){const v=f.state.params||e.defaultParams||[];Vue.unref(i)&&f.run(...v)}return Vue.onScopeDispose(()=>{f.cancel()}),{...Vue.toRefs(l),cancel:f.cancel.bind(f),refresh:f.refresh.bind(f),refreshAsync:f.refreshAsync.bind(f),run:f.run.bind(f),runAsync:f.runAsync.bind(f),mutate:f.mutate.bind(f)}}const Pe=(n,e)=>function(s,r={},u=[]){let i=n;const a=e||[];for(let o=a.length;o--;)i=a[o](i);return i(s,r,u)};function Be(n,e,t){var s;const r=(s=[null,k,ue,ae,he,me,M,K,ve])==null?void 0:s.filter(Boolean);return Pe(Ee,e==null?void 0:e.use)(n,e,[...t||[],...r])}const Re=!!(typeof window<"u"&&window.document&&window.document.createElement);function A(n,e){var t,s;if(!Re)return;if(!n)return e;let r;return typeof n=="function"?r=n():Vue.isRef(n)?r=(s=(t=n.value)==null?void 0:t.$el)!=null?s:n.value:r=n,r}function N(n,e){if(n===e)return!0;for(let t=0;t(t,s,r)=>{const u=Vue.ref(!1),i=Vue.ref([]),a=Vue.ref([]),o=Vue.ref();n(()=>{var d;const c=(Array.isArray(r)?r:[r]).map(h=>A(h));if(!u.value){u.value=!0,i.value=c,a.value=s,o.value=t();return}(c.length!==i.value.length||!N(c,i.value)||!N(s,a.value))&&((d=o.value)==null||d.call(o),i.value=c,a.value=s,o.value=t())}),Vue.onUnmounted(()=>{var d;(d=o.value)==null||d.call(o),u.value=!1})};Se(Vue.watchEffect);var Oe=Object.defineProperty,Ae=(n,e,t)=>e in n?Oe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,V=(n,e,t)=>(Ae(n,typeof e!="symbol"?e+"":e,t),t);class Te{constructor(){V(this,"subscriptions",new Map),V(this,"emitEffectCache",new Map),V(this,"useSubscription",(e,t)=>{const s=Vue.ref();Vue.watchEffect(r=>{var u,i;s.value=t;function a(d){s.value&&s.value(d)}const o=(i=(u=this.subscriptions)==null?void 0:u.get(e))!=null?i:[];o.push(a),this.subscriptions.set(e,o),this.emitEffect(e),r(()=>{this.subscriptions.delete(e)})})}),V(this,"emit",(e,...t)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(r=>{r==null||r({params:U(t),event:e})}),this.emitEffectCache.set(e,{params:U(t),event:e})}else throw new TypeError("event must be string or number !")}),V(this,"emitEffect",e=>{const t=this.emitEffectCache.get(e),s=this.subscriptions.get(e);t&&(s==null||s.forEach(r=>{r==null||r({...t})}))}),V(this,"removeListener",e=>{this.subscriptions.delete(e)}),V(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new Te;const xe=(n,e)=>{const{onExit:t,onEnter:s,defaultElement:r=document.documentElement}=e||{},u=Vue.ref(t),i=Vue.ref(s),a=Vue.ref(!1),o=f=>{a.value=f},d=()=>{var f,g,v;if(p.isEnabled){const b=A(n,r);if(!p.element)(f=u.value)==null||f.call(u),o(!1),p.off("change",d);else{const m=p.element===b;m?(g=i.value)==null||g.call(i):(v=u.value)==null||v.call(u),o(m)}}},l=()=>{const f=A(n,r);if(f&&p.isEnabled)try{p.request(f),p.on("change",d)}catch(g){console.error(g)}},c=()=>{const f=A(n,r);p.isEnabled&&p.element===f&&p.exit()},h=()=>{a.value?c():l()};return Vue.onUnmounted(()=>{p.isEnabled&&p.off("change",d)}),[Vue.readonly(a),{enterFullscreen:l,exitFullscreen:c,toggleFullscreen:h,isEnabled:p.isEnabled}]};export{Be as a,xe as u}; diff --git a/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js.gz b/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js.gz new file mode 100644 index 00000000..b7ffc9b6 Binary files /dev/null and b/assets/vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js.gz differ diff --git a/assets/vue@3.4.20_typescript@5.2.2-w40geAFS.js b/assets/vue@3.4.21_typescript@5.2.2-l0sNRNKZ.js similarity index 100% rename from assets/vue@3.4.20_typescript@5.2.2-w40geAFS.js rename to assets/vue@3.4.21_typescript@5.2.2-l0sNRNKZ.js diff --git a/assets/zh-CN-q1Lg5YhR.js b/assets/zh-CN-DfDWFdbg.js similarity index 69% rename from assets/zh-CN-q1Lg5YhR.js rename to assets/zh-CN-DfDWFdbg.js index 2819b284..08987122 100644 --- a/assets/zh-CN-q1Lg5YhR.js +++ b/assets/zh-CN-DfDWFdbg.js @@ -1 +1 @@ -import{x as U}from"./hooks-HESpGiIM.js";import"./@vueuse_core@10.7.1_vue@3.4.20--7WAvkKu.js";import"./@vueuse_shared@10.7.1_vue@3.4.20--52Mx__5.js";import"./vue-hooks-plus@1.8.8_vue@3.4.20-rsCVfHC6.js";import"./lodash@4.17.21-yUHHMES2.js";import"./awesome-qr@2.1.5-rc.0-UnPo3EFD.js";import"./canvas@2.11.2-dZp4QMlu.js";import"./js-binary-schema-parser@2.0.3-CCV6nRej.js";import"./js-cookie@3.0.5-bc0KQLgp.js";import"./screenfull@5.2.0-q9gEF-YC.js";import"./qs@6.11.2-Z-dpNlsu.js";import"./side-channel@1.0.4-JVVpKjRm.js";import"./get-intrinsic@1.2.1-1fqvy-Cp.js";import"./has-symbols@1.0.3-fNtejGuA.js";import"./has-proto@1.0.1-dzJH2Y5C.js";import"./function-bind@1.1.2-HMk2skFd.js";import"./has@1.0.3-vfHSusM3.js";import"./call-bind@1.0.2-X-jYgRcX.js";import"./dayjs@1.11.10-A-QuG2Ol.js";import"./print-js@1.6.0-gYKv6oGQ.js";import"./currency.js@2.0.4--or6eeOG.js";import"./utils-zTxN2cCS.js";import"./lodash-es@4.17.21-xgd1l9mE.js";import"./interactjs@1.10.26-I0IiZoEj.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-fNhqB16x.js";import"./dom-to-image@2.6.0-eHYYUq-2.js";import"./echarts@5.5.0-WNSrrRu3.js";import"./zrender@5.5.0-GTXoC3r-.js";import"./tslib@2.3.0-21A5UWR7.js";import"./@vue_runtime-core@3.4.20-d4vFfH7R.js";import"./@vue_reactivity@3.4.20-tq0PoOjZ.js";import"./@vue_shared@3.4.20-IXQMxlXI.js";const e="当前环境不支持全屏",W={isEnabledFullscreen:e},X=Object.freeze(Object.defineProperty({__proto__:null,default:W,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",Y={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},Z=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:Y},Symbol.toStringTag,{value:"Module"})),i="刷新当前页面",s="锁屏",r="设置",l="Github",a="全屏",p="退出全屏",m="搜索",ee={Reload:i,Lock:s,Setting:r,Github:l,FullScreen:a,CancelFullScreen:p,Search:m},oe=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:p,FullScreen:a,Github:l,Lock:s,Reload:i,Search:m,Setting:r,default:ee},Symbol.toStringTag,{value:"Module"})),_="首页",u="依赖项",d="关于",g="可视化",f="滚动动画",b="请求",h="表格",S="多级菜单(缓存)",O="文档",T="文档 (加速地址)",C="文档(内嵌)",y="办公",D="文档",M="演示",P="表格",j="数字精度",v="指令",R="页面详情模式",z="Mock 数据",N="二维码",I="SVG 图标",L="模板内置 Api",k="模态框",x="右键菜单",F="缓存工具函数",te={Dashboard:_,Rely:u,RelyAbout:d,Error:"错误页",Echart:g,scrollReveal:f,Axios:b,Table:h,MultiMenu:S,Doc:O,DocLocal:T,DocLocalInside:C,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,CalculatePrecision:j,Directive:v,RouterDemo:R,Mock:z,QRCode:N,SvgIcon:I,TemplateHooks:L,Modal:k,ContextMenu:x,CacheDemo:F},ne=Object.freeze(Object.defineProperty({__proto__:null,Axios:b,CacheDemo:F,CalculatePrecision:j,ContextMenu:x,Dashboard:_,Directive:v,Doc:O,DocLocal:T,DocLocalInside:C,Echart:g,Mock:z,Modal:k,MultiMenu:S,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,QRCode:N,Rely:u,RelyAbout:d,RouterDemo:R,SvgIcon:I,Table:h,TemplateHooks:L,default:te,scrollReveal:f},Symbol.toStringTag,{value:"Module"})),w="项目配置",A={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},E="界面显示",ce={Title:w,ThemeOptions:A,InterfaceDisplay:E},ie=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:E,ThemeOptions:A,Title:w,default:ce},Symbol.toStringTag,{value:"Module"})),G="注册",Q="登录",$="扫码登陆",H="请输入用户名",V="请输入密码",q="登 陆",B="用户名",J="密码",K="开箱即用的中后台管理系统",se={Register:G,Signing:Q,QRCodeSigning:$,NamePlaceholder:H,PasswordPlaceholder:V,Login:q,Name:B,Password:J,RayTemplate:K},re=Object.freeze(Object.defineProperty({__proto__:null,Login:q,Name:B,NamePlaceholder:H,Password:J,PasswordPlaceholder:V,QRCodeSigning:$,RayTemplate:K,Register:G,Signing:Q,default:se},Symbol.toStringTag,{value:"Module"})),le=Object.assign({"./zh-CN/globalMessage.json":X,"./zh-CN/headerSettingOptions.json":Z,"./zh-CN/headerTooltip.json":oe,"./zh-CN/menu.json":ne,"./zh-CN/setting.json":ie,"./zh-CN/views/login/index.json":re}),Qe={message:{...U(le,"zh-CN")}};export{Qe as default}; +import{t as U}from"./hooks-C9tZi_HS.js";import"./dayjs@1.11.10-BYZwCyGy.js";import"./print-js@1.6.0-C3lAJnMa.js";import"./awesome-qr@2.1.5-rc.0-Ds7AaOTE.js";import"./vue-hooks-plus@1.8.8_vue@3.4.21-CBeGMwb0.js";import"./lodash@4.17.21-CM7ROh5r.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DuGDi0R7.js";import"./qs@6.11.2-5yoVYNs7.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-C8H4BJij.js";import"./@vueuse_core@10.9.0_vue@3.4.21-Cid0rW1u.js";import"./@vueuse_shared@10.9.0_vue@3.4.21-JDL3uqC1.js";import"./utils-B_UBRWj5.js";import"./interactjs@1.10.26-DmsZVOf4.js";import"./pinia-plugin-persistedstate@3.2.0_pinia@2.1.7-C45aYbGY.js";import"./dom-to-image@2.6.0-CaeIWam-.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.21-DW3iHaBZ.js";import"./@vue_reactivity@3.4.21-8_tu8c_o.js";import"./@vue_shared@3.4.21-DCcVmNGw.js";import"./canvas@2.11.2-CVRTzJty.js";import"./js-binary-schema-parser@2.0.3-D0akQrQ7.js";import"./side-channel@1.0.4-DiPXwnX9.js";import"./get-intrinsic@1.2.1-5uWIhZOj.js";import"./has-symbols@1.0.3-eVqrYdw7.js";import"./has-proto@1.0.1-CgulNy6r.js";import"./function-bind@1.1.2-B8G-TZ45.js";import"./has@1.0.3-B6xjtObm.js";import"./call-bind@1.0.2-BD5aDJOM.js";const e="当前环境不支持全屏",W={isEnabledFullscreen:e},X=Object.freeze(Object.defineProperty({__proto__:null,default:W,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",Y={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},Z=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:Y},Symbol.toStringTag,{value:"Module"})),i="刷新当前页面",s="锁屏",r="设置",l="Github",a="全屏",p="退出全屏",m="搜索",ee={Reload:i,Lock:s,Setting:r,Github:l,FullScreen:a,CancelFullScreen:p,Search:m},oe=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:p,FullScreen:a,Github:l,Lock:s,Reload:i,Search:m,Setting:r,default:ee},Symbol.toStringTag,{value:"Module"})),_="首页",u="依赖项",d="关于",g="可视化",f="滚动动画",b="请求",h="表格",S="多级菜单(缓存)",O="文档",T="文档 (加速地址)",C="文档(内嵌)",y="办公",D="文档",M="演示",P="表格",j="数字精度",v="指令",R="页面详情模式",z="Mock 数据",N="二维码",I="SVG 图标",L="模板内置 Api",k="模态框",x="右键菜单",F="缓存工具函数",te={Dashboard:_,Rely:u,RelyAbout:d,Error:"错误页",Echart:g,scrollReveal:f,Axios:b,Table:h,MultiMenu:S,Doc:O,DocLocal:T,DocLocalInside:C,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,CalculatePrecision:j,Directive:v,RouterDemo:R,Mock:z,QRCode:N,SvgIcon:I,TemplateHooks:L,Modal:k,ContextMenu:x,CacheDemo:F},ne=Object.freeze(Object.defineProperty({__proto__:null,Axios:b,CacheDemo:F,CalculatePrecision:j,ContextMenu:x,Dashboard:_,Directive:v,Doc:O,DocLocal:T,DocLocalInside:C,Echart:g,Mock:z,Modal:k,MultiMenu:S,Office:y,Office_Document:D,Office_Presentation:M,Office_Spreadsheet:P,QRCode:N,Rely:u,RelyAbout:d,RouterDemo:R,SvgIcon:I,Table:h,TemplateHooks:L,default:te,scrollReveal:f},Symbol.toStringTag,{value:"Module"})),w="项目配置",A={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},E="界面显示",ce={Title:w,ThemeOptions:A,InterfaceDisplay:E},ie=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:E,ThemeOptions:A,Title:w,default:ce},Symbol.toStringTag,{value:"Module"})),G="注册",Q="登录",$="扫码登陆",H="请输入用户名",V="请输入密码",q="登 陆",B="用户名",J="密码",K="开箱即用的中后台管理系统",se={Register:G,Signing:Q,QRCodeSigning:$,NamePlaceholder:H,PasswordPlaceholder:V,Login:q,Name:B,Password:J,RayTemplate:K},re=Object.freeze(Object.defineProperty({__proto__:null,Login:q,Name:B,NamePlaceholder:H,Password:J,PasswordPlaceholder:V,QRCodeSigning:$,RayTemplate:K,Register:G,Signing:Q,default:se},Symbol.toStringTag,{value:"Module"})),le=Object.assign({"./zh-CN/globalMessage.json":X,"./zh-CN/headerSettingOptions.json":Z,"./zh-CN/headerTooltip.json":oe,"./zh-CN/menu.json":ne,"./zh-CN/setting.json":ie,"./zh-CN/views/login/index.json":re}),Qe={message:{...U(le,"zh-CN")}};export{Qe as default}; diff --git a/assets/zh-CN-DfDWFdbg.js.gz b/assets/zh-CN-DfDWFdbg.js.gz new file mode 100644 index 00000000..42df53f4 Binary files /dev/null and b/assets/zh-CN-DfDWFdbg.js.gz differ diff --git a/assets/zh-CN-q1Lg5YhR.js.gz b/assets/zh-CN-q1Lg5YhR.js.gz deleted file mode 100644 index 7d810009..00000000 Binary files a/assets/zh-CN-q1Lg5YhR.js.gz and /dev/null differ diff --git a/assets/zrender@5.5.0-GTXoC3r-.js b/assets/zrender@5.5.0-GTXoC3r-.js deleted file mode 100644 index 63a8d94b..00000000 --- a/assets/zrender@5.5.0-GTXoC3r-.js +++ /dev/null @@ -1,16 +0,0 @@ -import{_ as H}from"./tslib@2.3.0-21A5UWR7.js";var es=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),is=function(){function e(){this.browser=new es,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 e}(),or=new is;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(or.wxa=!0,or.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?or.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(or.node=!0,or.svgSupported=!0):ns(navigator.userAgent,or);function ns(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const K=or;var cn=12,as="sans-serif",ur=cn+"px "+as,os=20,ss=100,fs="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function hs(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Hs(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Sn(s,o):Sn(o,s))}function Va(e){return e.nodeName.toUpperCase()==="CANVAS"}var zs=/([&<>"'])/g,ks={"&":"&","<":"<",">":">",'"':""","'":"'"};function yv(e){return e==null?"":(e+"").replace(zs,function(t,r){return ks[r]})}var Ns=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ni=[],$s=K.browser.firefox&&+K.browser.version.split(".")[0]<39;function Yi(e,t,r,i){return r=r||{},i?Dn(e,t,r):$s&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Dn(e,t,r),r}function Dn(e,t,r){if(K.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Va(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Wi(ni,e,i,n)){r.zrX=ni[0],r.zrY=ni[1];return}}r.zrX=r.zrY=0}function gn(e){return e||window.event}function pt(e,t,r){if(t=gn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Yi(e,o,t,r)}else{Yi(e,t,t,r);var a=Ws(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ns.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Ws(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ys(e,t,r,i){e.addEventListener(t,r,i)}function Gs(e,t,r,i){e.removeEventListener(t,r,i)}var Xs=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},qs=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=xn(i)/xn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Zs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Jr(){return[1,0,0,1,0,0]}function Us(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Vs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function oi(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function An(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Qs(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(r),v=Math.cos(r);return e[0]=n*v+s*u,e[1]=-n*u+s*v,e[2]=a*v+f*u,e[3]=-a*u+v*f,e[4]=v*(o-i[0])+u*(h-i[1])+i[0],e[5]=v*(h-i[1])-u*(o-i[0])+i[1],e}function Ks(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Js(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var js=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}();const F=js;var fe=Math.min,he=Math.max,Yt=new F,Gt=new F,Xt=new F,qt=new F,Br=new F,Hr=new F,tf=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=fe(t.x,this.x),i=fe(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=he(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=he(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Jr();return An(a,a,[-r.x,-r.y]),Ks(a,a,[i,n]),An(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=T,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Yt.x=Xt.x=r.x,Yt.y=qt.y=r.y,Gt.x=qt.x=r.x+r.width,Gt.y=Xt.y=r.y+r.height,Yt.transform(i),qt.transform(i),Gt.transform(i),Xt.transform(i),t.x=fe(Yt.x,Gt.x,Xt.x,qt.x),t.y=fe(Yt.y,Gt.y,Xt.y,qt.y);var f=he(Yt.x,Gt.x,Xt.x,qt.x),h=he(Yt.y,Gt.y,Xt.y,qt.y);t.width=f-t.x,t.height=h-t.y},e}();const $=tf;var Qa="silent";function rf(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:ef}}function ef(){Xs(this.event)}var nf=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fr),zr=function(){function e(t,r){this.x=t,this.y=r}return e}(),af=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],si=new $(0,0,0,0),Ka=function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new zr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new nf,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Is(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ft(af,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Ja(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new zr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new zr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=rf(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new zr(r,i);if(En(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new $(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(si.copy(l.getBoundingRect()),l.transform&&si.applyTransform(l.transform),si.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function of(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Qa:!0}return!1}function En(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=of(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Qa)){t.target=o;break}}}function Ja(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}const sf=Ka;var ja=32,kr=7;function ff(e){for(var t=0;e>=ja;)t|=e&1,e>>=1;return e+t}function In(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function hf(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function fi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function hi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function uf(e,t){var r=kr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=kr||M>=kr);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[w+p]=e[b+p];e[T]=o[m];return}for(var M=r;;){var C=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[T--]=e[y--],C++,L=0,--_===0){P=!0;break}}else if(e[T--]=o[m--],L++,C=0,--d===1){P=!0;break}while((C|L)=0;p--)e[w+p]=e[b+p];if(_===0){P=!0;break}}if(e[T--]=o[m--],--d===1){P=!0;break}if(L=d-fi(e[y],o,0,d,d-1,t),L!==0){for(T-=L,m-=L,d-=L,w=T+1,b=m+1,p=0;p=kr||L>=kr);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)e[w+p]=e[b+p];e[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),Fn(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var ot=1,qr=2,wr=4,On=!1;function ui(){On||(On=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var lf=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bn}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(ui(),u.z=0),isNaN(u.z2)&&(ui(),u.z2=0),isNaN(u.zlevel)&&(ui(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const cf=lf;var to;to=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Gi=to;var Ae={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ae.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ae.bounceIn(e*2)*.5:Ae.bounceOut(e*2-1)*.5+.5}};const ro=Ae;var ue=Math.pow,Bt=Math.sqrt,ze=1e-8,eo=1e-4,Hn=Bt(3),ve=1/3,Lt=Ir(),ct=Ir(),xr=Ir();function Ot(e){return e>-ze&&eze||e<-ze}function U(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function zn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function no(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-ue(-m,ve):m=ue(m,ve),T<0?T=-ue(-T,ve):T=ue(T,ve);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Bt(u*u*u)),w=Math.acos(b)/3,M=Bt(u),C=Math.cos(w),_=(-s-2*M*C)/(3*o),p=(-s+M*(C+Hn*Math.sin(w)))/(3*o),L=(-s+M*(C-Hn*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function ao(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(io(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function df(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;Lt[0]=f,Lt[1]=h;for(var y=0;y<1;y+=.05)ct[0]=U(e,r,n,o,y),ct[1]=U(t,i,a,s,y),d=Dr(Lt,ct),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function oo(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ke(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function gf(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Lt[0]=o,Lt[1]=s;for(var l=0;l<1;l+=.05){ct[0]=Q(e,r,n,l),ct[1]=Q(t,i,a,l);var c=Dr(Lt,ct);c=0&&c=1?1:no(0,i,a,1,f,s)&&U(0,n,o,1,s[0])}}}var wf=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Rr,this.ondestroy=t.ondestroy||Rr,this.onrestart=t.onrestart||Rr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Qe(t)?t:ro[t]||so(t)},e}();const Tf=wf;var fo=function(){function e(t){this.value=t}return e}(),bf=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new fo(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Cf=function(){function e(t){this._list=new bf,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new fo(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const je=Cf;var Nn={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 Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function Xi(e){return e<0?0:e>1?1:e}function vi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Xi(parseFloat(t)/100):Xi(parseFloat(t))}function li(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function le(e,t,r){return e+(t-e)*r}function vt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function qi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ho=new je(20),ce=null;function cr(e,t){ce&&qi(ce,t),ce=ho.put(e,ce||t.slice())}function zt(e,t){if(e){t=t||[];var r=ho.get(e);if(r)return qi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Nn)return qi(t,Nn[i]),cr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){vt(t,0,0,0,1);return}return vt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),cr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){vt(t,0,0,0,1);return}return vt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),cr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?vt(t,+h[0],+h[1],+h[2],1):vt(t,0,0,0,1);u=jr(h.pop());case"rgb":if(h.length>=3)return vt(t,vi(h[0]),vi(h[1]),vi(h[2]),h.length===3?u:jr(h[3])),cr(e,t),t;vt(t,0,0,0,1);return;case"hsla":if(h.length!==4){vt(t,0,0,0,1);return}return h[3]=jr(h[3]),$n(h,t),cr(e,t),t;case"hsl":if(h.length!==3){vt(t,0,0,0,1);return}return $n(h,t),cr(e,t),t;default:return}}vt(t,0,0,0,1)}}function $n(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=jr(e[1]),n=jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],vt(t,Ht(li(o,a,r+1/3)*255),Ht(li(o,a,r)*255),Ht(li(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Wn(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return yn(r,r.length===4?"rgba":"rgb")}}function mv(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=yn([Ht(le(o[0],s[0],f)),Ht(le(o[1],s[1],f)),Ht(le(o[2],s[2],f)),Xi(le(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function yn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ne(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Yn=new je(100);function wv(e){if(He(e)){var t=Yn.get(e);return t||(t=Wn(e,-.1),Yn.put(e,t)),t}else if(Ke(e)){var r=k({},e);return r.colorStops=St(e.colorStops,function(i){return{offset:i.offset,color:Wn(i.color,-.1)}}),r}return e}function Mf(e){return e.type==="linear"}function Lf(e){return e.type==="radial"}(function(){return K.hasGlobalWindow&&Qe(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Zi=Array.prototype.slice;function xt(e,t,r){return(t-e)*r+e}function ci(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Xn,f=r;if(Pt(r)){var h=Df(r);s=h,(h===1&&!De(r[0])||h===2&&!De(r[0][0]))&&(o=!0)}else if(De(r)&&!ys(r))s=pe;else if(He(r))if(!isNaN(+r))s=pe;else{var u=zt(r);u&&(f=u,s=Zr)}else if(Ke(r)){var v=k({},f);v.colorStops=St(r.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),Mf(r)?s=Ui:Lf(r)&&(s=Vi),f=v}a===0?this.valType=s:(s!==this.valType||s===Xn)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Qe(i)?i:ro[i]||so(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=_e(n),h=qn(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:l((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?Nr:t[f];if((_e(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(_e(a))a===Fe?ci(y,c[n],_[n],p):Pf(y,c[n],_[n],p);else if(qn(a)){var m=c[n],T=_[n],b=a===Ui;t[f]={type:b?"linear":"radial",x:xt(m.x,T.x,p),y:xt(m.y,T.y,p),colorStops:St(m.colorStops,function(M,C){var L=T.colorStops[C];return{offset:xt(M.offset,L.offset,p),color:Ie(ci([],M.color,L.color,p))}}),global:T.global},b?(t[f].x2=xt(m.x2,T.x2,p),t[f].y2=xt(m.y2,T.y2,p)):t[f].r=xt(m.r,T.r,p)}else if(h)ci(y,c[n],_[n],p),i||(t[f]=Ie(y));else{var w=xt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===pe?t[i]=t[i]+n:r===Zr?(zt(t[i],Nr),de(Nr,Nr,n,1),t[i]=Ie(Nr)):r===Fe?de(t[i],t[i],n,1):r===uo&&Gn(t[i],t[i],n,1)},e}(),Af=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){_n("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ht(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ee(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ee(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const mn=Af;function Mr(){return new Date().getTime()}var Ef=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Mr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Gi(i),!r._paused&&r.update())}Gi(i)},t.prototype.start=function(){this._running||(this._time=Mr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Mr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Mr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new mn(r,i.loop);return this.addAnimator(n),n},t}(Fr);const If=Ef;var Ff=300,di=K.domSupported,pi=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=St(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Zn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Un=!1;function Qi(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Of(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function _i(e){e&&(e.zrByTouch=!0)}function Bf(e,t){return pt(e.dom,new Hf(e,t),!0)}function vo(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Hf=function(){function e(t,r){this.stopPropagation=Rr,this.stopImmediatePropagation=Rr,this.preventDefault=Rr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),_t={mousedown:function(e){e=pt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pt(this.dom,e);var t=e.toElement||e.relatedTarget;vo(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Un=!0,e=pt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Un||(e=pt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pt(this.dom,e),_i(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),_t.mousemove.call(this,e),_t.mousedown.call(this,e)},touchmove:function(e){e=pt(this.dom,e),_i(e),this.handler.processGesture(e,"change"),_t.mousemove.call(this,e)},touchend:function(e){e=pt(this.dom,e),_i(e),this.handler.processGesture(e,"end"),_t.mouseup.call(this,e),+new Date-+this.__lastTouchMomentKn||e<-Kn}var Ut=[],dr=[],yi=Jr(),mi=Math.abs,wn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Zt(this.rotation)||Zt(this.x)||Zt(this.y)||Zt(this.scaleX-1)||Zt(this.scaleY-1)||Zt(this.skewX)||Zt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Qn(i),this.invTransform=null);return}i=i||Jr(),r?this.getLocalTransform(i):Qn(i),t&&(r?oi(i,t,i):Vs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Jr(),Js(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jr(),oi(dr,t.invTransform,r),r=dr);var i=this.originX,n=this.originY;(i||n)&&(yi[4]=i,yi[5]=n,oi(dr,r,yi),dr[4]-=i,dr[5]-=n,r=dr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Kr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Kr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&mi(t[0]-1)>1e-10&&mi(t[3]-1)>1e-10?Math.sqrt(mi(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Yf(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=l*o,h&&Qs(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ie=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yf(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Xf(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=ne(i[0],r.width),h+=ne(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var wi="__zr_normal__",Ti=ie.concat(["ignore"]),qf=Ve(ie,function(e,t){return e[t]=!0,e},{ignore:!1}),pr={},Zf=new $(0,0,0,0),bn=function(){function e(t){this.id=Ya(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;if(a.copyTransform(r),i.position!=null){var u=Zf;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pr,i,u):Xf(pr,i,u),a.x=pr.x,a.y=pr.y,o=pr.align,s=pr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var l=void 0,c=void 0;v==="center"?(l=u.width*.5,c=u.height*.5):(l=ne(v[0],u.width),c=ne(v[1],u.height)),h=!0,a.originX=-a.x+l+(n?0:u.x),a.originY=-a.y+c+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||y!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(f=!0,d.fill=p,d.stroke=y,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=ot,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tn:ji},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,yn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},k(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ft(t))for(var i=t,n=ht(i),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(wi,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===wi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Mt(s,t)>=0&&(r||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){_n("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,r,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,r,i,u),l&&l.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot),h}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,r,l),d&&d.useStates(t,r,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Mt(n,t),o=Mt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o0&&r.during&&a[0].during(function(_,g){r.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,L=void 0,P=void 0;if(s){L={},l&&(C={});for(var T=0;T=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Mt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Mt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r=o;f++)s-=o;var h=ut(r,t);return h>s&&(r="",h=0),s=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=e,n}function wo(e,t){var r=t.containerWidth,i=t.font,n=t.contentWidth;if(!r)return"";var a=ut(e,i);if(a<=r)return e;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?nh(e,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*n/a):0;e=e.substr(0,s),a=ut(e,i)}return e===""&&(e=t.placeholder),e}function nh(e,t,r,i){for(var n=0,a=0,o=e.length;ac&&h){var _=Math.floor(c/s);v=v.slice(0,_)}if(e&&a&&u!=null)for(var g=mo(u,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;ds&&Li(r,e.substring(s,h),t,o),Li(r,f[2],t,o,f[1]),s=Mi.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),d(y,T,m),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var R=M.width,A=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")w.percentWidth=R,u.push(w),w.contentWidth=ut(w.text,P);else{if(A){var x=M.backgroundColor,E=x&&x.image;E&&(E=eh(E),ti(E)&&(w.width=Math.max(w.width,E.width*S/E.height)))}var D=_&&i!=null?i-T:null;D!=null&&D0&&_+i.accumWidth>i.width&&(u=t.split(` -`),h=!0),i.accumWidth=_}else{var g=To(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,v=g.linesWidths,u=g.lines}}else u=t.split(` -`);for(var d=0;d=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var uh=Ve(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function vh(e){return hh(e)?!!uh[e]:!0}function To(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;vr:n+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=c)):_?(a.push(f),o.push(h),f=l,h=c):(a.push(l),o.push(c));continue}u+=c,_?(f+=l,h+=c):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var en="__zr_style_"+Math.round(Math.random()*10),hr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ri={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hr[en]=!0;var ea=["z","z2","invisible"],lh=["invisible"],ch=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ht(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(ge[0]=Di(n)*r+e,ge[1]=Ri(n)*i+t,ye[0]=Di(a)*r+e,ye[1]=Ri(a)*i+t,h(s,ge,ye),u(f,ge,ye),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(me[0]=Di(c)*r+e,me[1]=Ri(c)*i+t,h(s,me,s),u(f,me,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],mt=[],At=[],wt=[],Tt=[],xi=Math.min,Ai=Math.max,Jt=Math.cos,jt=Math.sin,Dt=Math.abs,nn=Math.PI,It=nn*2,Ei=typeof Float32Array<"u",$r=[];function Ii(e){var t=Math.round(e/nn*1e8)/1e8;return t%2*nn}function yh(e,t){var r=Ii(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-Ii(r-n)):t&&r0&&(this._ux=Dt(i/$e/t)||0,this._uy=Dt(i/$e/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(B.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=Dt(t-this._xi),n=Dt(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(B.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(B.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(B.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),$r[0]=n,$r[1]=a,yh($r,o),n=$r[0],a=$r[1];var s=a-n;return this.addData(B.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(B.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Ei&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,At[0]=At[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||Dt(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case B.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],M=t[l++];g=pf(a,o,T,b,d,p,w,M,10),a=w,o=M;break}case B.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=yf(a,o,T,b,d,p,10),a=d,o=p;break}case B.A:var C=t[l++],L=t[l++],P=t[l++],S=t[l++],R=t[l++],A=t[l++],x=A+R;l+=1,_&&(s=Jt(R)*P+C,f=jt(R)*S+L),g=Ai(P,S)*xi(It,Math.abs(A)),a=Jt(x)*P+C,o=jt(x)*S+L;break;case B.R:{s=a=t[l++],f=o=t[l++];var E=t[l++],D=t[l++];g=E*2+D*2;break}case B.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=r<1,_,g,d=0,p=0,y,m=0,T,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var w=0;w0&&(t.lineTo(T,b),m=0),M){case B.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case B.L:{v=i[w++],l=i[w++];var L=Dt(v-h),P=Dt(l-u);if(L>n||P>a){if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;t.lineTo(h*(1-R)+v*R,u*(1-R)+l*R);break t}d+=S}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(T=v,b=l,m=A)}break}case B.C:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++],N=i[w++],W=i[w++];if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;kt(h,x,D,N,R,Qt),kt(u,E,z,W,R,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}d+=S}t.bezierCurveTo(x,E,D,z,N,W),h=N,u=W;break}case B.Q:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++];if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;ke(h,x,D,R,Qt),ke(u,E,z,R,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}d+=S}t.quadraticCurveTo(x,E,D,z),h=D,u=z;break}case B.A:var X=i[w++],Z=i[w++],Y=i[w++],nt=i[w++],at=i[w++],Rt=i[w++],Nt=i[w++],$t=!i[w++],Wt=Y>nt?Y:nt,j=Dt(Y-nt)>.001,q=at+Rt,I=!1;if(c){var S=_[p++];d+S>y&&(q=at+Rt*(y-d)/S,I=!0),d+=S}if(j&&t.ellipse?t.ellipse(X,Z,Y,nt,Nt,at,q,$t):t.arc(X,Z,Wt,at,q,$t),I)break t;C&&(s=Jt(at)*Y+X,f=jt(at)*nt+Z),h=Jt(q)*Y+X,u=jt(q)*nt+Z;break;case B.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var O=i[w++],Or=i[w++];if(c){var S=_[p++];if(d+S>y){var yt=y-d;t.moveTo(v,l),t.lineTo(v+xi(yt,O),l),yt-=O,yt>0&&t.lineTo(v+O,l+xi(yt,Or)),yt-=Or,yt>0&&t.lineTo(v+Ai(O-yt,0),l+Or),yt-=O,yt>0&&t.lineTo(v,l+Ai(Or-yt,0));break t}d+=S}t.rect(v,l,O,Or);break;case B.Z:if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;t.lineTo(h*(1-R)+s*R,u*(1-R)+f*R);break t}d+=S}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=B,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const vr=mh;function _r(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Wr);var l=Math.atan2(f,s);return l<0&&(l+=Wr),l>=i&&l<=n||l+Wr>=i&&l+Wr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=vr.CMD,rr=Math.PI*2,Ch=1e-4;function Mh(e,t){return Math.abs(e-t)t&&h>i&&h>a&&h>s||h1&&Lh(),c=U(t,i,a,s,lt[0]),l>1&&(_=U(t,i,a,s,lt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=Q(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=J[0]+e&&o<=J[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(_r(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(wh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Ph(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(Th(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Sh(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var M=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=tr(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(r){if(bh(p,y,T,b,b+w,M,t,C,n))return!0}else s+=Rh(p,y,T,b,b+w,M,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,c=v+P,r){if(_r(u,v,l,v,t,i,n)||_r(l,v,l,c,t,i,n)||_r(l,c,u,c,t,i,n)||_r(u,c,u,v,t,i,n))return!0}else s+=tr(l,v,l,c,i,n),s+=tr(u,c,u,v,i,n);break;case Et.Z:if(r){if(_r(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!Mh(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function Dh(e,t,r){return Co(e,0,!1,t,r)}function xh(e,t,r,i){return Co(e,t,!0,r,i)}var Mo=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hr),Ah={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ri.style)},Fi=ie.concat(["invisible","culling","z","z2","zlevel","parent"]),Eh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?ji:i>.2?Wf:tn}else if(r)return tn}return ji},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(He(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Ne(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&wr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),xh(s,f/h,r,i)))return!0}if(this.hasFill())return Dh(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:k(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wr)},t.prototype.createStyle=function(r){return Je(Mo,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=k({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=k({},n.shape),k(h,i.shape)):(h=k({},a?this.shape:n.shape),k(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=k({},this.shape);for(var u={},v=ht(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Je(Ih,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=Gf(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(oe);Lo.prototype.type="tspan";const an=Lo;var Fh=gt({x:0,y:0},hr),Oh={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ri.style)};function Bh(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Po=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Je(Fh,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=Bh(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Oh},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new $(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oe);Po.prototype.type="image";const So=Po;function Hh(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Lr=Math.round;function zh(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Lr(i*2)===Lr(n*2)&&(e.x1=e.x2=Pr(i,s,!0)),Lr(a*2)===Lr(o*2)&&(e.y1=e.y2=Pr(a,s,!0))),e}}function kh(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Pr(i,s,!0),e.y=Pr(n,s,!0),e.width=Math.max(Pr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Pr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Pr(e,t,r){if(!t)return e;var i=Lr(e*2);return(i+Lr(t))%2===0?i/2:(i+(r?1:-1))/2}var Nh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),$h={},Ro=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Nh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=kh($h,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Hh(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(G);Ro.prototype.type="rect";const Do=Ro;var sa={fill:"#000"},fa=2,Wh={style:gt({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},ri.style)},xo=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=sa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,R=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,x=0;x=0&&(x=w[A],x.align==="right");)this._placeToken(x,r,C,p,R,"right",m),L-=x.width,R-=x.width,A--;for(S+=(a-(S-d)-(y-R)-L)/2;P<=A;)x=w[P],this._placeToken(x,r,C,p,S+x.width/2,"center",m),S+=x.width,P++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Oi(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var c=!!h.backgroundColor,_=r.textPadding;_&&(o=da(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(an),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=ca("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=la("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=fa,p.stroke):null),w=h.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=v,w&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||ur,d.opacity=xe(h.opacity,i.opacity,1),ua(d,h),b&&(d.lineWidth=xe(h.lineWidth,i.lineWidth,m),d.lineDash=st(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),T&&(d.fill=T);var M=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new $(Ur(d.x,M,d.textAlign),Tr(d.y,C,d.textBaseline),M,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,c=r.borderRadius,_=this,g,d;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(Do),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=st(r.fillOpacity,1)}else if(v){d=this._getOrCreateChild(So),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=st(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=xe(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return qh(r)&&(i=[r.fontStyle,r.fontWeight,Xh(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Xr(i)||r.textFont||r.font},t}(oe),Yh={left:!0,right:1,center:1},Gh={top:1,bottom:1,middle:1},ha=["fontStyle","fontWeight","fontSize","fontFamily"];function Xh(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?cn+"px":e+"px"}function ua(e,t){for(var r=0;r1&&(o*=Bi(_),s*=Bi(_));var g=(n===a?-1:1)*Bi((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(e+r)/2+be(v)*d-Te(v)*p,m=(t+i)/2+Te(v)*d+be(v)*p,T=ya([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],M=ya(b,w);if(on(b,w)<=-1&&(M=Yr),on(b,w)>=1&&(M=0),M<0){var C=Math.round(M/Yr*1e6)/1e6;M=Yr*2+C%2*Yr}u.addData(h,y,m,o,s,T,M,v,a)}var Qh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Kh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jh(e){var t=new vr;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=vr.CMD,f=e.match(Qh);if(!f)return t;for(var h=0;hx*x+E*E&&(C=P,L=S),{cx:C,cy:L,x0:-u,y0:-v,x1:C*(n/b-1),y1:L*(n/b-1)}}function iu(e){var t;if(ee(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function nu(e,t){var r,i=Vr(t.r,0),n=Vr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=wa(h-f),_=c>Hi&&c%Hi;if(_>dt&&(c=_),!(i>dt))e.moveTo(u,v);else if(c>Hi-dt)e.moveTo(u+i*yr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*yr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,M=void 0,C=void 0,L=void 0,P=void 0,S=void 0,R=void 0,A=void 0,x=void 0,E=i*yr(f),D=i*er(f),z=n*yr(h),N=n*er(h),W=c>dt;if(W){var X=t.cornerRadius;X&&(r=iu(X),g=r[0],d=r[1],p=r[2],y=r[3]);var Z=wa(i-n)/2;if(m=bt(Z,p),T=bt(Z,y),b=bt(Z,g),w=bt(Z,d),L=M=Vr(m,T),P=C=Vr(b,w),(M>dt||C>dt)&&(S=i*yr(h),R=i*er(h),A=n*yr(f),x=n*er(f),cdt){var j=bt(p,L),q=bt(y,L),I=Ce(A,x,E,D,i,j,l),O=Ce(S,R,z,N,i,q,l);e.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),L0&&e.arc(u+I.cx,v+I.cy,j,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,i,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),!l),q>0&&e.arc(u+O.cx,v+O.cy,q,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.moveTo(u+E,v+D),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!W)e.lineTo(u+z,v+N);else if(P>dt){var j=bt(g,P),q=bt(d,P),I=Ce(z,N,S,R,n,-q,l),O=Ce(E,D,A,x,n,-j,l);e.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&e.arc(u+I.cx,v+I.cy,q,V(I.y0,I.x0),V(I.y1,I.x1),!l),e.arc(u,v,n,V(I.cy+I.y1,I.cx+I.x1),V(O.cy+O.y1,O.cx+O.x1),l),j>0&&e.arc(u+O.cx,v+O.cy,j,V(O.y1,O.x1),V(O.y0,O.x0),!l))}else e.lineTo(u+z,v+N),e.arc(u,v,n,h,f,l)}e.closePath()}}}var au=function(){function e(){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 e}(),ko=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new au},t.prototype.buildPath=function(r,i){nu(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(G);ko.prototype.type="sector";const Ta=ko;var ou=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),No=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ou},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(G);No.prototype.type="ring";const Dv=No;function su(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=e.length;l=2){if(i){var a=su(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&sr(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function sn(e,t,r){for(var i=t.type==="radial"?Pu(e,t,r):Lu(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:De(e)?[e]:ee(e)?e:null}function Uo(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Ru(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=St(r,function(a){return a/n}),i/=n)}return[r,i]}var Du=new vr(!0);function We(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Ca(e){return typeof e=="string"&&e!=="none"}function Ye(e){var t=e.fill;return t!=null&&t!=="none"}function Ma(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function La(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function fn(e,t,r){var i=yo(t.image,t.__image,r);if(ti(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Cs),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function xu(e,t,r,i){var n,a=We(r),o=Ye(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||Du,v=t.__dirty;if(!i){var l=r.fill,c=r.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?sn(e,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?sn(e,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?fn(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?fn(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?e.fillStyle=y:d&&(T?e.fillStyle=T:o=!1),g?e.strokeStyle=m:p&&(b?e.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,L;e.setLineDash&&r.lineDash&&(n=Uo(t),C=n[0],L=n[1]);var P=!0;(h||v&wr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),C&&(e.setLineDash(C),e.lineDashOffset=L),i||(r.strokeFirst?(a&&La(e,r),o&&Ma(e,r)):(o&&Ma(e,r),a&&La(e,r))),C&&e.setLineDash([])}function Au(e,t,r){var i=t.__image=yo(r.image,t.__image,t,t.onload);if(!(!i||!ti(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function Eu(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||ur,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=Uo(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(We(r)&&e.strokeText(n,r.x,r.y),Ye(r)&&e.fillText(n,r.x,r.y)):(Ye(r)&&e.fillText(n,r.x,r.y),We(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var Pa=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Vo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?hr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||hr.blend);for(var s=0;s2&&i.push(n),n=[A,x]}function u(A,x,E,D){Sr(A,E)&&Sr(x,D)||n.push(A,x,E,D,E,D)}function v(A,x,E,D,z,N){var W=Math.abs(x-A),X=Math.tan(W/4)*4/3,Z=xC:S2&&i.push(n),i}function un(e,t,r,i,n,a,o,s,f,h){if(Sr(e,r)&&Sr(t,i)&&Sr(n,o)&&Sr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=r-e,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),un(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),un(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function ku(e,t){var r=hn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Ko([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=Ko([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new F(g*f+e,g*h+t)}function Wu(e,t,r){var i=new F;F.sub(i,r,t),i.normalize();var n=new F;F.sub(n,e,t);var a=n.dot(i);return a}function mr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function Yu(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),Yu(t,h,u)}function Ge(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Ge(e,a[0],n,i),Ge(e,a[1],r-n,i)}return i}function Gu(e,t){for(var r=[],i=0;i0)for(var b=i/r,w=-i/2;w<=i/2;w+=b){for(var M=Math.sin(w),C=Math.cos(w),L=0,m=0;m0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function qe(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=St(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=St(a,function(s,f){return{cp:s,z:ju(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function rs(e){return Zu(e.path,e.count)}function ln(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Nv(e,t,r){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}x.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,S=0;S0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Re:0),this._needsManuallyCompositing),u.__builtin__||_n("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ft(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Gr(i[t],r,!0):i[t]=r;for(var n=0;n"u"&&typeof self<"u"?G.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(G.node=!0,G.svgSupported=!0):rs(navigator.userAgent,G);function rs(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var ln=12,es="sans-serif",hr=ln+"px "+es,is=20,ns=100,as="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function os(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var f=0;f>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Es(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=e[h].getBoundingClientRect(),v=2*h,l=u.left,c=u.top;o.push(l,c),f=f&&a&&l===a[v]&&c===a[v+1],s.push(e[h].offsetLeft,e[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=r?Pn(s,o):Pn(o,s))}function Ua(e){return e.nodeName.toUpperCase()==="CANVAS"}var Is=/([&<>"'])/g,Fs={"&":"&","<":"<",">":">",'"':""","'":"'"};function nv(e){return e==null?"":(e+"").replace(Is,function(t,r){return Fs[r]})}var Os=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ii=[],Bs=G.browser.firefox&&+G.browser.version.split(".")[0]<39;function Yi(e,t,r,i){return r=r||{},i?Rn(e,t,r):Bs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Rn(e,t,r),r}function Rn(e,t,r){if(G.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Ua(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Wi(ii,e,i,n)){r.zrX=ii[0],r.zrY=ii[1];return}}r.zrX=r.zrY=0}function _n(e){return e||window.event}function pt(e,t,r){if(t=_n(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Yi(e,o,t,r)}else{Yi(e,t,t,r);var a=Hs(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Os.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Hs(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function zs(e,t,r,i){e.addEventListener(t,r,i)}function ks(e,t,r,i){e.removeEventListener(t,r,i)}var Ns=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Ws=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=Dn(i)/Dn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ys(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Kr(){return[1,0,0,1,0,0]}function Gs(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function $s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ai(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],f=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=f,e}function xn(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Xs(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(r),v=Math.cos(r);return e[0]=n*v+s*u,e[1]=-n*u+s*v,e[2]=a*v+f*u,e[3]=-a*u+v*f,e[4]=v*(o-i[0])+u*(h-i[1])+i[0],e[5]=v*(h-i[1])-u*(o-i[0])+i[1],e}function qs(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Zs(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=r*o-a*i;return f?(f=1/f,e[0]=o*f,e[1]=-a*f,e[2]=-i*f,e[3]=r*f,e[4]=(i*s-o*n)*f,e[5]=(a*n-r*s)*f,e):null}var F=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),fe=Math.min,he=Math.max,Gt=new F,$t=new F,Xt=new F,qt=new F,Or=new F,Br=new F,W=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=fe(t.x,this.x),i=fe(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=he(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=he(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Kr();return xn(a,a,[-r.x,-r.y]),qs(a,a,[i,n]),xn(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,f=t.x,h=t.x+t.width,u=t.y,v=t.y+t.height,l=!(a_&&(_=m,g_&&(_=T,p=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gt.x=Xt.x=r.x,Gt.y=qt.y=r.y,$t.x=qt.x=r.x+r.width,$t.y=Xt.y=r.y+r.height,Gt.transform(i),qt.transform(i),$t.transform(i),Xt.transform(i),t.x=fe(Gt.x,$t.x,Xt.x,qt.x),t.y=fe(Gt.y,$t.y,Xt.y,qt.y);var f=he(Gt.x,$t.x,Xt.x,qt.x),h=he(Gt.y,$t.y,Xt.y,qt.y);t.width=f-t.x,t.height=h-t.y},e}(),Va="silent";function Us(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Vs}}function Vs(){Ns(this.event)}var Qs=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ir),Hr=function(){function e(t,r){this.x=t,this.y=r}return e}(),Ks=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],oi=new W(0,0,0,0),Qa=function(e){H(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Hr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Qs,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Ds(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ft(Ks,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Ka(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new Hr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(f,"mousemove",r),h&&h!==s&&this.dispatchToElement(f,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Hr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Us(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Hr(r,i);if(An(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new W(r-h,i-h,f,f),v=a.length-1;v>=0;v--){var l=a[v];l!==n&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)&&(oi.copy(l.getBoundingRect()),l.transform&&oi.applyTransform(l.transform),oi.intersect(u)&&s.push(l))}if(s.length)for(var c=4,_=Math.PI/12,g=Math.PI*2,d=0;d4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Js(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Va:!0}return!1}function An(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=Js(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Va)){t.target=o;break}}}function Ka(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}const js=Qa;var Ja=32,zr=7;function tf(e){for(var t=0;e>=Ja;)t|=e&1,e>>=1;return e+t}function En(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n=0;)n++;return n-t}function rf(e,t,r){for(r--;t>>1,n(a,e[f])<0?s=f:o=f+1;var h=i-o;switch(h){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;h>0;)e[o+h]=e[o+h-1],h--}e[o]=a}}function si(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])>0){for(s=i-n;f0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o>>1);a(e,t[r+u])>0?o=u+1:f=u}return f}function fi(e,t,r,i,n,a){var o=0,s=0,f=1;if(a(e,t[r+n])<0){for(s=n+1;fs&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o>>1);a(e,t[r+u])<0?f=u:o=u+1}return f}function ef(e,t){var r=zr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]=zr||M>=zr);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),_===1){for(p=0;p=0;p--)e[w+p]=e[b+p];e[T]=o[m];return}for(var M=r;;){var C=0,L=0,P=!1;do if(t(o[m],e[y])<0){if(e[T--]=e[y--],C++,L=0,--_===0){P=!0;break}}else if(e[T--]=o[m--],L++,C=0,--d===1){P=!0;break}while((C|L)=0;p--)e[w+p]=e[b+p];if(_===0){P=!0;break}}if(e[T--]=o[m--],--d===1){P=!0;break}if(L=d-si(e[y],o,0,d,d-1,t),L!==0){for(T-=L,m-=L,d-=L,w=T+1,b=m+1,p=0;p=zr||L>=zr);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),d===1){for(T-=_,y-=_,w=T+1,b=y+1,p=_-1;p>=0;p--)e[w+p]=e[b+p];e[T]=o[m]}else{if(d===0)throw new Error;for(b=T-(d-1),p=0;ps&&(f=s),In(e,r,r+f,r+a,t),a=f}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var ot=1,Xr=2,mr=4,Fn=!1;function hi(){Fn||(Fn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function On(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var af=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=On}return e.prototype.traverse=function(t,r){for(var i=0;i0&&(u.__clipPaths=[]),isNaN(u.z)&&(hi(),u.z=0),isNaN(u.z2)&&(hi(),u.z2=0),isNaN(u.zlevel)&&(hi(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,r,i);var l=t.getTextGuideLine();l&&this._updateAndAddDisplayable(l,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),ja;ja=G.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Gi=ja;var Jr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Jr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Jr.bounceIn(e*2)*.5:Jr.bounceOut(e*2-1)*.5+.5}},ue=Math.pow,Bt=Math.sqrt,He=1e-8,to=1e-4,Bn=Bt(3),ve=1/3,Lt=Er(),ct=Er(),Dr=Er();function Ot(e){return e>-He&&eHe||e<-He}function V(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Hn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function eo(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),f=3*(t-e),h=e-n,u=s*s-3*o*f,v=s*f-9*o*h,l=f*f-3*s*h,c=0;if(Ot(u)&&Ot(v))if(Ot(s))a[0]=0;else{var _=-f/s;_>=0&&_<=1&&(a[c++]=_)}else{var g=v*v-4*u*l;if(Ot(g)){var d=v/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var y=Bt(g),m=u*s+1.5*o*(-v+y),T=u*s+1.5*o*(-v-y);m<0?m=-ue(-m,ve):m=ue(m,ve),T<0?T=-ue(-T,ve):T=ue(T,ve);var _=(-s-(m+T))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var b=(2*u*s-3*o*v)/(2*Bt(u*u*u)),w=Math.acos(b)/3,M=Bt(u),C=Math.cos(w),_=(-s-2*M*C)/(3*o),p=(-s+M*(C+Bn*Math.sin(w)))/(3*o),L=(-s+M*(C-Bn*Math.sin(w)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function io(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,f=0;if(Ot(o)){if(ro(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var v=Bt(u),h=(-a+v)/(2*o),l=(-a-v)/(2*o);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function kt(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,f=(i-r)*n+r,h=(s-o)*n+o,u=(f-s)*n+s,v=(u-h)*n+h;a[0]=e,a[1]=o,a[2]=h,a[3]=v,a[4]=v,a[5]=u,a[6]=f,a[7]=i}function of(e,t,r,i,n,a,o,s,f,h,u){var v,l=.005,c=1/0,_,g,d,p;Lt[0]=f,Lt[1]=h;for(var y=0;y<1;y+=.05)ct[0]=V(e,r,n,o,y),ct[1]=V(t,i,a,s,y),d=Rr(Lt,ct),d=0&&d=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Ot(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var v=Bt(u),h=(-o+v)/(2*a),l=(-o-v)/(2*a);h>=0&&h<=1&&(n[f++]=h),l>=0&&l<=1&&(n[f++]=l)}}return f}function no(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function ze(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function hf(e,t,r,i,n,a,o,s,f){var h,u=.005,v=1/0;Lt[0]=o,Lt[1]=s;for(var l=0;l<1;l+=.05){ct[0]=K(e,r,n,l),ct[1]=K(t,i,a,l);var c=Rr(Lt,ct);c=0&&c=1?1:eo(0,i,a,1,f,s)&&V(0,n,o,1,s[0])}}}var lf=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ve(t)?t:Jr[t]||ao(t)},e}();const cf=lf;var oo=function(){function e(t){this.value=t}return e}(),df=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new oo(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Je=function(){function e(t){this._list=new df,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=r:s=new oo(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),kn={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 Ht(e){return e=Math.round(e),e<0?0:e>255?255:e}function $i(e){return e<0?0:e>1?1:e}function ui(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ht(parseFloat(t)/100*255):Ht(parseInt(t,10))}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$i(parseFloat(t)/100):$i(parseFloat(t))}function vi(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function le(e,t,r){return e+(t-e)*r}function vt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Xi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var so=new Je(20),ce=null;function lr(e,t){ce&&Xi(ce,t),ce=so.put(e,ce||t.slice())}function zt(e,t){if(e){t=t||[];var r=so.get(e);if(r)return Xi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in kn)return Xi(t,kn[i]),lr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){vt(t,0,0,0,1);return}return vt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),lr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){vt(t,0,0,0,1);return}return vt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),lr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?vt(t,+h[0],+h[1],+h[2],1):vt(t,0,0,0,1);u=jr(h.pop());case"rgb":if(h.length>=3)return vt(t,ui(h[0]),ui(h[1]),ui(h[2]),h.length===3?u:jr(h[3])),lr(e,t),t;vt(t,0,0,0,1);return;case"hsla":if(h.length!==4){vt(t,0,0,0,1);return}return h[3]=jr(h[3]),Nn(h,t),lr(e,t),t;case"hsl":if(h.length!==3){vt(t,0,0,0,1);return}return Nn(h,t),lr(e,t),t;default:return}}vt(t,0,0,0,1)}}function Nn(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=jr(e[1]),n=jr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],vt(t,Ht(vi(o,a,r+1/3)*255),Ht(vi(o,a,r)*255),Ht(vi(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Wn(e,t){var r=zt(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return gn(r,r.length===4?"rgba":"rgb")}}function av(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(t[n]),s=zt(t[a]),f=i-n,h=gn([Ht(le(o[0],s[0],f)),Ht(le(o[1],s[1],f)),Ht(le(o[2],s[2],f)),$i(le(o[3],s[3],f))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}function gn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ke(e,t){var r=zt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Yn=new Je(100);function ov(e){if(Be(e)){var t=Yn.get(e);return t||(t=Wn(e,-.1),Yn.put(e,t)),t}else if(Qe(e)){var r=k({},e);return r.colorStops=St(e.colorStops,function(i){return{offset:i.offset,color:Wn(i.color,-.1)}}),r}return e}function pf(e){return e.type==="linear"}function _f(e){return e.type==="radial"}(function(){return G.hasGlobalWindow&&Ve(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var qi=Array.prototype.slice;function xt(e,t,r){return(t-e)*r+e}function li(e,t,r,i){for(var n=t.length,a=0;ai?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var f=a;f=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=$n,f=r;if(Pt(r)){var h=wf(r);s=h,(h===1&&!De(r[0])||h===2&&!De(r[0][0]))&&(o=!0)}else if(De(r)&&!ps(r))s=pe;else if(Be(r))if(!isNaN(+r))s=pe;else{var u=zt(r);u&&(f=u,s=qr)}else if(Qe(r)){var v=k({},f);v.colorStops=St(r.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),pf(r)?s=Zi:_f(r)&&(s=Ui),f=v}a===0?this.valType=s:(s!==this.valType||s===$n)&&(o=!0),this.discrete=this.discrete||o;var l={time:t,value:f,rawValue:r,percent:0};return i&&(l.easing=i,l.easingFunc=Ve(i)?i:Jr[i]||ao(i)),n.push(l),l},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=_e(n),h=Xn(n),u=0;u=0&&!(o[u].percent<=r);u--);u=l(u,s-2)}else{for(u=v;ur);u++);u=l(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:l((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var y=i?this._additiveValue:h?kr:t[f];if((_e(a)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:_.rawValue;else if(_e(a))a===Ie?li(y,c[n],_[n],p):gf(y,c[n],_[n],p);else if(Xn(a)){var m=c[n],T=_[n],b=a===Zi;t[f]={type:b?"linear":"radial",x:xt(m.x,T.x,p),y:xt(m.y,T.y,p),colorStops:St(m.colorStops,function(M,C){var L=T.colorStops[C];return{offset:xt(M.offset,L.offset,p),color:Ee(li([],M.color,L.color,p))}}),global:T.global},b?(t[f].x2=xt(m.x2,T.x2,p),t[f].y2=xt(m.y2,T.y2,p)):t[f].r=xt(m.r,T.r,p)}else if(h)li(y,c[n],_[n],p),i||(t[f]=Ee(y));else{var w=xt(c[n],_[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===pe?t[i]=t[i]+n:r===qr?(zt(t[i],kr),de(kr,kr,n,1),t[i]=Ee(kr)):r===Ie?de(t[i],t[i],n,1):r===fo&&Gn(t[i],t[i],n,1)},e}(),yn=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){pn("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ht(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o0&&f.addKeyframe(0,Ae(h),n),this._trackKeys.push(s)}f.addKeyframe(t,Ae(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Cr(){return new Date().getTime()}var bf=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Cr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Gi(i),!r._paused&&r.update())}Gi(i)},t.prototype.start=function(){this._running||(this._time=Cr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Cr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Cr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new yn(r,i.loop);return this.addAnimator(n),n},t}(Ir),Cf=300,ci=G.domSupported,di=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=St(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),qn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zn=!1;function Vi(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Mf(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function pi(e){e&&(e.zrByTouch=!0)}function Lf(e,t){return pt(e.dom,new Pf(e,t),!0)}function ho(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Pf=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),_t={mousedown:function(e){e=pt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pt(this.dom,e);var t=e.toElement||e.relatedTarget;ho(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Zn=!0,e=pt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Zn||(e=pt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pt(this.dom,e),pi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),_t.mousemove.call(this,e),_t.mousedown.call(this,e)},touchmove:function(e){e=pt(this.dom,e),pi(e),this.handler.processGesture(e,"change"),_t.mousemove.call(this,e)},touchend:function(e){e=pt(this.dom,e),pi(e),this.handler.processGesture(e,"end"),_t.mouseup.call(this,e),+new Date-+this.__lastTouchMomentQn||e<-Qn}var Ut=[],cr=[],gi=Kr(),yi=Math.abs,mn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Zt(this.rotation)||Zt(this.x)||Zt(this.y)||Zt(this.scaleX-1)||Zt(this.scaleY-1)||Zt(this.skewX)||Zt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Vn(i),this.invTransform=null);return}i=i||Kr(),r?this.getLocalTransform(i):Vn(i),t&&(r?ai(i,t,i):$s(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ut);var i=Ut[0]<0?-1:1,n=Ut[1]<0?-1:1,a=((Ut[0]-i)*r+i)/Ut[0]||0,o=((Ut[1]-n)*r+n)/Ut[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Kr(),Zs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Kr(),ai(cr,t.invTransform,r),r=cr);var i=this.originX,n=this.originY;(i||n)&&(gi[4]=i,gi[5]=n,ai(cr,r,gi),cr[4]-=i,cr[5]-=n,r=cr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Qr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Qr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&yi(t[0]-1)>1e-10&&yi(t[3]-1)>1e-10?Math.sqrt(yi(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ef(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,v=t.y,l=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var _=i+s,g=n+f;r[4]=-_*a-l*g*o,r[5]=-g*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=l*o,h&&Xs(r,r,h),r[4]+=i+u,r[5]+=n+v,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ie=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ef(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Ff(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,f=r.x,h=r.y,u="left",v="top";if(i instanceof Array)f+=ne(i[0],r.width),h+=ne(i[1],r.height),u=null,v=null;else switch(i){case"left":f-=n,h+=s,u="right",v="middle";break;case"right":f+=n+o,h+=s,v="middle";break;case"top":f+=o/2,h-=n,u="center",v="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",v="middle";break;case"insideLeft":f+=n,h+=s,v="middle";break;case"insideRight":f+=o-n,h+=s,u="right",v="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",v="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,v="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",v="bottom";break}return e=e||{},e.x=f,e.y=h,e.align=u,e.verticalAlign=v,e}var mi="__zr_normal__",wi=ie.concat(["ignore"]),Of=Ue(ie,function(e,t){return e[t]=!0,e},{ignore:!1}),dr={},Bf=new W(0,0,0,0),Tn=function(){function e(t){this.id=Ya(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;if(a.copyTransform(r),i.position!=null){var u=Bf;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(dr,i,u):Ff(dr,i,u),a.x=dr.x,a.y=dr.y,o=dr.align,s=dr.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var l=void 0,c=void 0;v==="center"?(l=u.width*.5,c=u.height*.5):(l=ne(v[0],u.width),c=ne(v[1],u.height)),h=!0,a.originX=-a.x+l+(n?0:u.x),a.originY=-a.y+c+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,y=void 0,m=void 0;g&&this.canBeInsideText()?(p=i.insideFill,y=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,y=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||y!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(f=!0,d.fill=p,d.stroke=y,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=ot,f&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ji:Ji},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&zt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,gn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},k(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ft(t))for(var i=t,n=ht(i),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(mi,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===mi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Mt(s,t)>=0&&(r||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){pn("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,r,!i&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,l=this._textGuide;return v&&v.useState(t,r,i,u),l&&l.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot),h}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f0,_);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,r,l),d&&d.useStates(t,r,l),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ot)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Mt(n,t),o=Mt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o0&&r.during&&a[0].during(function(_,g){r.during(g)});for(var l=0;l0||n.force&&!o.length){var C=void 0,L=void 0,P=void 0;if(s){L={},l&&(C={});for(var T=0;T=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Mt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Mt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r=o;f++)s-=o;var h=ut(r,t);return h>s&&(r="",h=0),s=e-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=e,n}function yo(e,t){var r=t.containerWidth,i=t.font,n=t.contentWidth;if(!r)return"";var a=ut(e,i);if(a<=r)return e;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?qf(e,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*n/a):0;e=e.substr(0,s),a=ut(e,i)}return e===""&&(e=t.placeholder),e}function qf(e,t,r,i){for(var n=0,a=0,o=e.length;ac&&h){var _=Math.floor(c/s);v=v.slice(0,_)}if(e&&a&&u!=null)for(var g=go(u,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),d=0;ds&&Mi(r,e.substring(s,h),t,o),Mi(r,f[2],t,o,f[1]),s=Ci.lastIndex}sn){b>0?(y.tokens=y.tokens.slice(0,b),d(y,T,m),r.lines=r.lines.slice(0,p+1)):r.lines=r.lines.slice(0,p);break t}var R=M.width,A=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")w.percentWidth=R,u.push(w),w.contentWidth=ut(w.text,P);else{if(A){var x=M.backgroundColor,E=x&&x.image;E&&(E=$f(E),je(E)&&(w.width=Math.max(w.width,E.width*S/E.height)))}var D=_&&i!=null?i-T:null;D!=null&&D0&&_+i.accumWidth>i.width&&(u=t.split(` +`),h=!0),i.accumWidth=_}else{var g=mo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,v=g.linesWidths,u=g.lines}}else u=t.split(` +`);for(var d=0;d=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Jf=Ue(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function jf(e){return Kf(e)?!!Jf[e]:!0}function mo(e,t,r,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,v=0;vr:n+u+c>r){u?(s||f)&&(_?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=l,h+=c,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=l,u=c)):_?(a.push(f),o.push(h),f=l,h=c):(a.push(l),o.push(c));continue}u+=c,_?(f+=l,h+=c):(f&&(s+=f,f="",h=0),s+=l)}return!a.length&&!s&&(s=e,f="",h=0),f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var rn="__zr_style_"+Math.round(Math.random()*10),fr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ti={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fr[rn]=!0;var ra=["z","z2","invisible"],th=["invisible"],rh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ht(r),n=0;n1e-4){s[0]=e-r,s[1]=t-i,f[0]=e+r,f[1]=t+i;return}if(ge[0]=Ri(n)*r+e,ge[1]=Si(n)*i+t,ye[0]=Ri(a)*r+e,ye[1]=Si(a)*i+t,h(s,ge,ye),u(f,ge,ye),n=n%Vt,n<0&&(n=n+Vt),a=a%Vt,a<0&&(a=a+Vt),n>a&&!o?a+=Vt:nn&&(me[0]=Ri(c)*r+e,me[1]=Si(c)*i+t,h(s,me,s),u(f,me,f))}var B={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qt=[],Kt=[],mt=[],At=[],wt=[],Tt=[],Di=Math.min,xi=Math.max,Jt=Math.cos,jt=Math.sin,Dt=Math.abs,en=Math.PI,It=en*2,Ai=typeof Float32Array<"u",Nr=[];function Ei(e){var t=Math.round(e/en*1e8)/1e8;return t%2*en}function oh(e,t){var r=Ei(e[0]);r<0&&(r+=It);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=It?n=r+It:t&&r-n>=It?n=r-It:!t&&r>n?n=r+(It-Ei(r-n)):t&&r0&&(this._ux=Dt(i/Ne/t)||0,this._uy=Dt(i/Ne/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(B.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=Dt(t-this._xi),n=Dt(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(B.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(B.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(B.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),Nr[0]=n,Nr[1]=a,oh(Nr,o),n=Nr[0],a=Nr[1];var s=a-n;return this.addData(B.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Jt(a)*i+t,this._yi=jt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(B.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(B.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Ai&&(this.data=new Float32Array(r));for(var i=0;iu.length&&(this._expandData(),u=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,At[0]=At[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;oi||Dt(m)>n||l===r-1)&&(g=Math.sqrt(y*y+m*m),a=d,o=p);break}case B.C:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++],w=t[l++],M=t[l++];g=sf(a,o,T,b,d,p,w,M,10),a=w,o=M;break}case B.Q:{var T=t[l++],b=t[l++],d=t[l++],p=t[l++];g=uf(a,o,T,b,d,p,10),a=d,o=p;break}case B.A:var C=t[l++],L=t[l++],P=t[l++],S=t[l++],R=t[l++],A=t[l++],x=A+R;l+=1,_&&(s=Jt(R)*P+C,f=jt(R)*S+L),g=xi(P,S)*Di(It,Math.abs(A)),a=Jt(x)*P+C,o=jt(x)*S+L;break;case B.R:{s=a=t[l++],f=o=t[l++];var E=t[l++],D=t[l++];g=E*2+D*2;break}case B.Z:{var y=s-a,m=f-o;g=Math.sqrt(y*y+m*m),a=s,o=f;break}}g>=0&&(h[v++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,v,l,c=r<1,_,g,d=0,p=0,y,m=0,T,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var w=0;w0&&(t.lineTo(T,b),m=0),M){case B.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case B.L:{v=i[w++],l=i[w++];var L=Dt(v-h),P=Dt(l-u);if(L>n||P>a){if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;t.lineTo(h*(1-R)+v*R,u*(1-R)+l*R);break t}d+=S}t.lineTo(v,l),h=v,u=l,m=0}else{var A=L*L+P*P;A>m&&(T=v,b=l,m=A)}break}case B.C:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++],N=i[w++],Y=i[w++];if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;kt(h,x,D,N,R,Qt),kt(u,E,z,Y,R,Kt),t.bezierCurveTo(Qt[1],Kt[1],Qt[2],Kt[2],Qt[3],Kt[3]);break t}d+=S}t.bezierCurveTo(x,E,D,z,N,Y),h=N,u=Y;break}case B.Q:{var x=i[w++],E=i[w++],D=i[w++],z=i[w++];if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;ze(h,x,D,R,Qt),ze(u,E,z,R,Kt),t.quadraticCurveTo(Qt[1],Kt[1],Qt[2],Kt[2]);break t}d+=S}t.quadraticCurveTo(x,E,D,z),h=D,u=z;break}case B.A:var q=i[w++],U=i[w++],$=i[w++],nt=i[w++],at=i[w++],Rt=i[w++],Nt=i[w++],Wt=!i[w++],Yt=$>nt?$:nt,j=Dt($-nt)>.001,Z=at+Rt,I=!1;if(c){var S=_[p++];d+S>y&&(Z=at+Rt*(y-d)/S,I=!0),d+=S}if(j&&t.ellipse?t.ellipse(q,U,$,nt,Nt,at,Z,Wt):t.arc(q,U,Yt,at,Z,Wt),I)break t;C&&(s=Jt(at)*$+q,f=jt(at)*nt+U),h=Jt(Z)*$+q,u=jt(Z)*nt+U;break;case B.R:s=h=i[w],f=u=i[w+1],v=i[w++],l=i[w++];var O=i[w++],Fr=i[w++];if(c){var S=_[p++];if(d+S>y){var yt=y-d;t.moveTo(v,l),t.lineTo(v+Di(yt,O),l),yt-=O,yt>0&&t.lineTo(v+O,l+Di(yt,Fr)),yt-=Fr,yt>0&&t.lineTo(v+xi(O-yt,0),l+Fr),yt-=O,yt>0&&t.lineTo(v,l+xi(Fr-yt,0));break t}d+=S}t.rect(v,l,O,Fr);break;case B.Z:if(c){var S=_[p++];if(d+S>y){var R=(y-d)/S;t.lineTo(h*(1-R)+s*R,u*(1-R)+f*R);break t}d+=S}t.closePath(),h=s,u=f}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=B,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function pr(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=e;if(o>t+s&&o>i+s||oe+s&&a>r+s||at+v&&u>i+v&&u>a+v&&u>s+v||ue+v&&h>r+v&&h>n+v&&h>o+v||ht+h&&f>i+h&&f>a+h||fe+h&&s>r+h&&s>n+h||sr||u+hn&&(n+=Wr);var l=Math.atan2(f,s);return l<0&&(l+=Wr),l>=i&&l<=n||l+Wr>=i&&l+Wr<=n}function tr(e,t,r,i,n,a){if(a>t&&a>i||an?s:0}var Et=ur.CMD,rr=Math.PI*2,uh=1e-4;function vh(e,t){return Math.abs(e-t)t&&h>i&&h>a&&h>s||h1&&lh(),c=V(t,i,a,s,lt[0]),l>1&&(_=V(t,i,a,s,lt[1]))),l===2?dt&&s>i&&s>a||s=0&&h<=1){for(var u=0,v=K(t,i,a,h),l=0;lr||s<-r)return 0;var f=Math.sqrt(r*r-s*s);J[0]=-f,J[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=rr-1e-4){i=0,n=rr;var u=a?1:-1;return o>=J[0]+e&&o<=J[1]+e?u:0}if(i>n){var v=i;i=n,n=v}i<0&&(i+=rr,n+=rr);for(var l=0,c=0;c<2;c++){var _=J[c];if(_+e>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=rr+g),(g>=i&&g<=n||g+rr>=i&&g+rr<=n)&&(g>Math.PI/2&&g1&&(r||(s+=tr(f,h,u,v,i,n))),d&&(f=a[_],h=a[_+1],u=f,v=h),g){case Et.M:u=a[_++],v=a[_++],f=u,h=v;break;case Et.L:if(r){if(pr(f,h,a[_],a[_+1],t,i,n))return!0}else s+=tr(f,h,a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.C:if(r){if(sh(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=ch(f,h,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.Q:if(r){if(fh(f,h,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=dh(f,h,a[_++],a[_++],a[_],a[_+1],i,n)||0;f=a[_++],h=a[_++];break;case Et.A:var p=a[_++],y=a[_++],m=a[_++],T=a[_++],b=a[_++],w=a[_++];_+=1;var M=!!(1-a[_++]);l=Math.cos(b)*m+p,c=Math.sin(b)*T+y,d?(u=l,v=c):s+=tr(f,h,l,c,i,n);var C=(i-p)*T/m+p;if(r){if(hh(p,y,T,b,b+w,M,t,C,n))return!0}else s+=ph(p,y,T,b,b+w,M,C,n);f=Math.cos(b+w)*m+p,h=Math.sin(b+w)*T+y;break;case Et.R:u=f=a[_++],v=h=a[_++];var L=a[_++],P=a[_++];if(l=u+L,c=v+P,r){if(pr(u,v,l,v,t,i,n)||pr(l,v,l,c,t,i,n)||pr(l,c,u,c,t,i,n)||pr(u,c,u,v,t,i,n))return!0}else s+=tr(l,v,l,c,i,n),s+=tr(u,c,u,v,i,n);break;case Et.Z:if(r){if(pr(f,h,u,v,t,i,n))return!0}else s+=tr(f,h,u,v,i,n);f=u,h=v;break}}return!r&&!vh(h,v)&&(s+=tr(f,h,u,v,i,n)||0),s!==0}function _h(e,t,r){return To(e,0,!1,t,r)}function gh(e,t,r,i){return To(e,t,!0,r,i)}var bo=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fr),yh={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ti.style)},Ii=ie.concat(["invisible","culling","z","z2","zlevel","parent"]),mh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){r.buildPath(f,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ji:i>.2?Af:ji}else if(r)return ji}return Ji},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Be(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=ke(r,0)0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&mr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),gh(s,f/h,r,i)))return!0}if(this.hasFill())return _h(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=mr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:k(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&mr)},t.prototype.createStyle=function(r){return Ke(bo,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=k({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=k({},n.shape),k(h,i.shape)):(h=k({},a?this.shape:n.shape),k(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=k({},this.shape);for(var u={},v=ht(h),l=0;l0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Ke(wh,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=If(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(oe);Co.prototype.type="tspan";const nn=Co;var Th=gt({x:0,y:0},fr),bh={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ti.style)};function Ch(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Mo=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Ke(Th,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=Ch(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return bh},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new W(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oe);Mo.prototype.type="image";const Lo=Mo;function Mh(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var v;s+f>n&&(v=s+f,s*=n/v,f*=n/v),h+u>n&&(v=h+u,h*=n/v,u*=n/v),f+h>a&&(v=f+h,f*=a/v,h*=a/v),s+u>a&&(v=s+u,s*=a/v,u*=a/v),e.moveTo(r+s,i),e.lineTo(r+n-f,i),f!==0&&e.arc(r+n-f,i+f,f,-Math.PI/2,0),e.lineTo(r+n,i+a-h),h!==0&&e.arc(r+n-h,i+a-h,h,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Mr=Math.round;function Lh(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Mr(i*2)===Mr(n*2)&&(e.x1=e.x2=Lr(i,s,!0)),Mr(a*2)===Mr(o*2)&&(e.y1=e.y2=Lr(a,s,!0))),e}}function Ph(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Lr(i,s,!0),e.y=Lr(n,s,!0),e.width=Math.max(Lr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Lr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Lr(e,t,r){if(!t)return e;var i=Mr(e*2);return(i+Mr(t))%2===0?i/2:(i+(r?1:-1))/2}var Sh=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Rh={},Po=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Sh},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var f=Ph(Rh,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Mh(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(X);Po.prototype.type="rect";const So=Po;var oa={fill:"#000"},sa=2,Dh={style:gt({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},ti.style)},Ro=function(e){H(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=oa,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,R=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,x=0;x=0&&(x=w[A],x.align==="right");)this._placeToken(x,r,C,p,R,"right",m),L-=x.width,R-=x.width,A--;for(S+=(a-(S-d)-(y-R)-L)/2;P<=A;)x=w[P],this._placeToken(x,r,C,p,S+x.width/2,"center",m),S+=x.width,P++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,f){var h=i.rich[r.styleName]||{};h.text=r.text;var u=r.verticalAlign,v=a+n/2;u==="top"?v=a+r.height/2:u==="bottom"&&(v=a+n-r.height/2);var l=!r.isLineHolder&&Fi(h);l&&this._renderBackground(h,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,v-r.height/2,r.width,r.height);var c=!!h.backgroundColor,_=r.textPadding;_&&(o=ca(o,s,_),v-=r.height/2-_[0]-r.innerHeight/2);var g=this._getOrCreateChild(nn),d=g.createStyle();g.useStyle(d);var p=this._defaultStyle,y=!1,m=0,T=la("fill"in h?h.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=va("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||y)?(m=sa,p.stroke):null),w=h.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=v,w&&(d.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,d.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||hr,d.opacity=xe(h.opacity,i.opacity,1),ha(d,h),b&&(d.lineWidth=xe(h.lineWidth,i.lineWidth,m),d.lineDash=st(h.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),T&&(d.fill=T);var M=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new W(Zr(d.x,M,d.textAlign),wr(d.y,C,d.textBaseline),M,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var f=r.backgroundColor,h=r.borderWidth,u=r.borderColor,v=f&&f.image,l=f&&!v,c=r.borderRadius,_=this,g,d;if(l||r.lineHeight||h&&u){g=this._getOrCreateChild(So),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(l){var y=g.style;y.fill=f||null,y.fillOpacity=st(r.fillOpacity,1)}else if(v){d=this._getOrCreateChild(Lo),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=f.image,m.x=n,m.y=a,m.width=o,m.height=s}if(h&&u){var y=g.style;y.lineWidth=h,y.stroke=u,y.strokeOpacity=st(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(g||d).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=xe(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return Ih(r)&&(i=[r.fontStyle,r.fontWeight,Eh(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&$r(i)||r.textFont||r.font},t}(oe),xh={left:!0,right:1,center:1},Ah={top:1,bottom:1,middle:1},fa=["fontStyle","fontWeight","fontSize","fontFamily"];function Eh(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ln+"px":e+"px"}function ha(e,t){for(var r=0;r1&&(o*=Oi(_),s*=Oi(_));var g=(n===a?-1:1)*Oi((o*o*(s*s)-o*o*(c*c)-s*s*(l*l))/(o*o*(c*c)+s*s*(l*l)))||0,d=g*o*c/s,p=g*-s*l/o,y=(e+r)/2+be(v)*d-Te(v)*p,m=(t+i)/2+Te(v)*d+be(v)*p,T=ga([1,0],[(l-d)/o,(c-p)/s]),b=[(l-d)/o,(c-p)/s],w=[(-1*l-d)/o,(-1*c-p)/s],M=ga(b,w);if(an(b,w)<=-1&&(M=Yr),an(b,w)>=1&&(M=0),M<0){var C=Math.round(M/Yr*1e6)/1e6;M=Yr*2+C%2*Yr}u.addData(h,y,m,o,s,T,M,v,a)}var Hh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,zh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kh(e){var t=new ur;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=ur.CMD,f=e.match(Hh);if(!f)return t;for(var h=0;hx*x+E*E&&(C=P,L=S),{cx:C,cy:L,x0:-u,y0:-v,x1:C*(n/b-1),y1:L*(n/b-1)}}function $h(e){var t;if(ee(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Xh(e,t){var r,i=Ur(t.r,0),n=Ur(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var f=t.startAngle,h=t.endAngle;if(!(isNaN(f)||isNaN(h))){var u=t.cx,v=t.cy,l=!!t.clockwise,c=ma(h-f),_=c>Bi&&c%Bi;if(_>dt&&(c=_),!(i>dt))e.moveTo(u,v);else if(c>Bi-dt)e.moveTo(u+i*gr(f),v+i*er(f)),e.arc(u,v,i,f,h,!l),n>dt&&(e.moveTo(u+n*gr(h),v+n*er(h)),e.arc(u,v,n,h,f,l));else{var g=void 0,d=void 0,p=void 0,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0,M=void 0,C=void 0,L=void 0,P=void 0,S=void 0,R=void 0,A=void 0,x=void 0,E=i*gr(f),D=i*er(f),z=n*gr(h),N=n*er(h),Y=c>dt;if(Y){var q=t.cornerRadius;q&&(r=$h(q),g=r[0],d=r[1],p=r[2],y=r[3]);var U=ma(i-n)/2;if(m=bt(U,p),T=bt(U,y),b=bt(U,g),w=bt(U,d),L=M=Ur(m,T),P=C=Ur(b,w),(M>dt||C>dt)&&(S=i*gr(h),R=i*er(h),A=n*gr(f),x=n*er(f),cdt){var j=bt(p,L),Z=bt(y,L),I=Ce(A,x,E,D,i,j,l),O=Ce(S,R,z,N,i,Z,l);e.moveTo(u+I.cx+I.x0,v+I.cy+I.y0),L0&&e.arc(u+I.cx,v+I.cy,j,Q(I.y0,I.x0),Q(I.y1,I.x1),!l),e.arc(u,v,i,Q(I.cy+I.y1,I.cx+I.x1),Q(O.cy+O.y1,O.cx+O.x1),!l),Z>0&&e.arc(u+O.cx,v+O.cy,Z,Q(O.y1,O.x1),Q(O.y0,O.x0),!l))}else e.moveTo(u+E,v+D),e.arc(u,v,i,f,h,!l);if(!(n>dt)||!Y)e.lineTo(u+z,v+N);else if(P>dt){var j=bt(g,P),Z=bt(d,P),I=Ce(z,N,S,R,n,-Z,l),O=Ce(E,D,A,x,n,-j,l);e.lineTo(u+I.cx+I.x0,v+I.cy+I.y0),P0&&e.arc(u+I.cx,v+I.cy,Z,Q(I.y0,I.x0),Q(I.y1,I.x1),!l),e.arc(u,v,n,Q(I.cy+I.y1,I.cx+I.x1),Q(O.cy+O.y1,O.cx+O.x1),l),j>0&&e.arc(u+O.cx,v+O.cy,j,Q(O.y1,O.x1),Q(O.y0,O.x0),!l))}else e.lineTo(u+z,v+N),e.arc(u,v,n,h,f,l)}e.closePath()}}}var qh=function(){function e(){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 e}(),Ho=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new qh},t.prototype.buildPath=function(r,i){Xh(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(X);Ho.prototype.type="sector";const wa=Ho;var Zh=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zo=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Zh},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(X);zo.prototype.type="ring";const pv=zo;function Uh(e,t,r,i){var n=[],a=[],o=[],s=[],f,h,u,v;if(i){u=[1/0,1/0],v=[-1/0,-1/0];for(var l=0,c=e.length;l=2){if(i){var a=Uh(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var f=a[s*2],h=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(f[0],f[1],h[0],h[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;snr[1]){if(s=!1,a)return s;var u=Math.abs(nr[0]-ir[1]),v=Math.abs(ir[0]-nr[1]);Math.min(u,v)>n.len()&&(u=0&&or(f)?f:.5;var h=e.createRadialGradient(o,s,0,o,s,f);return h}function on(e,t,r){for(var i=t.type==="radial"?lu(e,t,r):vu(e,t,r),n=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:De(e)?[e]:ee(e)?e:null}function Xo(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&du(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=St(r,function(a){return a/n}),i/=n)}return[r,i]}var pu=new ur(!0);function We(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ba(e){return typeof e=="string"&&e!=="none"}function Ye(e){var t=e.fill;return t!=null&&t!=="none"}function Ca(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ma(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function sn(e,t,r){var i=_o(t.image,t.__image,r);if(je(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ws),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function _u(e,t,r,i){var n,a=We(r),o=Ye(r),s=r.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||pu,v=t.__dirty;if(!i){var l=r.fill,c=r.stroke,_=o&&!!l.colorStops,g=a&&!!c.colorStops,d=o&&!!l.image,p=a&&!!c.image,y=void 0,m=void 0,T=void 0,b=void 0,w=void 0;(_||g)&&(w=t.getBoundingRect()),_&&(y=v?on(e,l,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=v?on(e,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(T=v||!t.__canvasFillPattern?sn(e,l,t):t.__canvasFillPattern,t.__canvasFillPattern=T),p&&(b=v||!t.__canvasStrokePattern?sn(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),_?e.fillStyle=y:d&&(T?e.fillStyle=T:o=!1),g?e.strokeStyle=m:p&&(b?e.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,L;e.setLineDash&&r.lineDash&&(n=Xo(t),C=n[0],L=n[1]);var P=!0;(h||v&mr)&&(u.setDPR(e.dpr),f?u.setContext(null):(u.setContext(e),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(e,f?s:1),C&&(e.setLineDash(C),e.lineDashOffset=L),i||(r.strokeFirst?(a&&Ma(e,r),o&&Ca(e,r)):(o&&Ca(e,r),a&&Ma(e,r))),C&&e.setLineDash([])}function gu(e,t,r){var i=t.__image=_o(r.image,t.__image,t,t.onload);if(!(!i||!je(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var h=r.sx||0,u=r.sy||0;e.drawImage(i,h,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var h=r.sx,u=r.sy,v=o-h,l=s-u;e.drawImage(i,h,u,v,l,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function yu(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||hr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=Xo(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(We(r)&&e.strokeText(n,r.x,r.y),Ye(r)&&e.fillText(n,r.x,r.y)):(Ye(r)&&e.fillText(n,r.x,r.y),We(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var La=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function qo(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){it(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?fr.opacity:o}(i||t.blend!==r.blend)&&(a||(it(e,n),a=!0),e.globalCompositeOperation=t.blend||fr.blend);for(var s=0;s2&&i.push(n),n=[A,x]}function u(A,x,E,D){Pr(A,E)&&Pr(x,D)||n.push(A,x,E,D,E,D)}function v(A,x,E,D,z,N){var Y=Math.abs(x-A),q=Math.tan(Y/4)*4/3,U=xC:S2&&i.push(n),i}function hn(e,t,r,i,n,a,o,s,f,h){if(Pr(e,r)&&Pr(t,i)&&Pr(n,o)&&Pr(a,s)){f.push(o,s);return}var u=2/h,v=u*u,l=o-e,c=s-t,_=Math.sqrt(l*l+c*c);l/=_,c/=_;var g=r-e,d=i-t,p=n-o,y=a-s,m=g*g+d*d,T=p*p+y*y;if(m=0&&C=0){f.push(o,s);return}var L=[],P=[];kt(e,r,n,o,.5,L),kt(t,i,a,s,.5,P),hn(L[0],P[0],L[1],P[1],L[2],P[2],L[3],P[3],f,h),hn(L[4],P[4],L[5],P[5],L[6],P[6],L[7],P[7],f,h)}function Lu(e,t){var r=fn(e),i=[];t=t||1;for(var n=0;n0)for(var h=0;hMath.abs(h),v=Uo([f,h],u?0:1,t),l=(u?s:h)/v.length,c=0;cn,o=Uo([i,n],a?0:1,t),s=a?"width":"height",f=a?"height":"width",h=a?"x":"y",u=a?"y":"x",v=e[s]/o.length,l=0;l1?null:new F(g*f+e,g*h+t)}function Ru(e,t,r){var i=new F;F.sub(i,r,t),i.normalize();var n=new F;F.sub(n,e,t);var a=n.dot(i);return a}function yr(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function Du(e,t,r){for(var i=e.length,n=[],a=0;ao?(h.x=u.x=s+a/2,h.y=f,u.y=f+o):(h.y=u.y=f+o/2,h.x=s,u.x=s+a),Du(t,h,u)}function Ge(e,t,r,i){if(r===1)i.push(t);else{var n=Math.floor(r/2),a=e(t);Ge(e,a[0],n,i),Ge(e,a[1],r-n,i)}return i}function xu(e,t){for(var r=[],i=0;i0)for(var b=i/r,w=-i/2;w<=i/2;w+=b){for(var M=Math.sin(w),C=Math.cos(w),L=0,m=0;m0;h/=2){var u=0,v=0;(e&h)>0&&(u=1),(t&h)>0&&(v=1),s+=h*h*(3*u^v),v===0&&(u===1&&(e=h-1-e,t=h-1-t),f=e,e=t,t=f)}return s}function Xe(e){var t=1/0,r=1/0,i=-1/0,n=-1/0,a=St(e,function(s){var f=s.getBoundingRect(),h=s.getComputedTransform(),u=f.x+f.width/2+(h?h[4]:0),v=f.y+f.height/2+(h?h[5]:0);return t=Math.min(u,t),r=Math.min(v,r),i=Math.max(u,i),n=Math.max(v,n),[u,v]}),o=St(a,function(s,f){return{cp:s,z:ku(s[0],s[1],t,r,i,n),path:e[f]}});return o.sort(function(s,f){return s.z-f.z}).map(function(s){return s.path})}function Jo(e){return Iu(e.path,e.count)}function vn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Lv(e,t,r){var i=[];function n(b){for(var w=0;w=s)}}for(var v=this.__startIndex;v15)break}}x.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var P=c.dpr,S=0;S0&&t>n[0]){for(f=0;ft);f++);s=i[n[f]]}if(n.splice(f+1,0,t),i[t]=r,!r.virtual)if(s){var h=s.dom;h.nextSibling?o.insertBefore(r.dom,h.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n0?Re:0),this._needsManuallyCompositing),u.__builtin__||pn("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==f&&(u.__dirty=!0),u.__startIndex=f,u.incremental?u.__drawIndex=-1:u.__drawIndex=f,r(f),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=f))}r(f),this.eachBuiltinLayer(function(v,l){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ft(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Gr(i[t],r,!0):i[t]=r;for(var n=0;n - + @@ -16,42 +16,42 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +