diff --git a/javascript/index.js b/javascript/index.js index cfaeb21..fec92c4 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -13,7 +13,7 @@ Promise.resolve().then(async () => { Infinite Image Browsing - + diff --git a/scripts/iib/tag_graph.py b/scripts/iib/tag_graph.py index 96aa470..e07b260 100644 --- a/scripts/iib/tag_graph.py +++ b/scripts/iib/tag_graph.py @@ -18,8 +18,6 @@ TAG_ABSTRACTION_CACHE_VERSION = 2 class TagGraphReq(BaseModel): folder_paths: List[str] - top_n_tags: Optional[int] = 50 - top_n_clusters: Optional[int] = 20 lang: Optional[str] = "en" # Language for LLM output @@ -291,8 +289,7 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } raise HTTPException(400, "No clusters found in result") # === Layer 0: Cluster Nodes === - top_n_clusters = req.top_n_clusters or 20 - top_clusters = sorted(clusters, key=lambda c: c.get("size", 0), reverse=True)[:top_n_clusters] + top_clusters = sorted(clusters, key=lambda c: c.get("size", 0), reverse=True) cluster_nodes = [] cluster_to_tags_links = [] @@ -348,12 +345,11 @@ If unsure about Level 2, OMIT it entirely. Start response with {{ and end with } tag_stats[keyword]["total_images"] += cluster_size # Filter and sort tags - top_n_tags = req.top_n_tags or 50 sorted_tags = sorted( tag_stats.items(), key=lambda x: x[1]["total_images"], reverse=True - )[:top_n_tags] + ) tag_nodes = [] selected_tags = set() diff --git a/vue/dist/assets/Checkbox-59427a1c.js b/vue/dist/assets/Checkbox-951f37ba.js similarity index 97% rename from vue/dist/assets/Checkbox-59427a1c.js rename to vue/dist/assets/Checkbox-951f37ba.js index fa08751..43bec87 100644 --- a/vue/dist/assets/Checkbox-59427a1c.js +++ b/vue/dist/assets/Checkbox-951f37ba.js @@ -1 +1 @@ -import{d as E,bC as $,r as f,m as M,_ as T,a as c,an as W,h as m,c as v,P as z}from"./index-d6594e8e.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,g=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),g({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),q=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,A=t.onKeypress,F=t.onKeyup,y=c(c({},_),t),O=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),R=W(e,q,(n={},m(n,"".concat(e,"-checked"),o.value),m(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V}; +import{d as E,bC as $,r as f,m as M,_ as T,a as c,an as W,h as m,c as v,P as z}from"./index-0205daf8.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,g=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),g({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),q=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,A=t.onKeypress,F=t.onKeyup,y=c(c({},_),t),O=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),R=W(e,q,(n={},m(n,"".concat(e,"-checked"),o.value),m(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V}; diff --git a/vue/dist/assets/FileItem-2eb00024.js b/vue/dist/assets/FileItem-cc53e03a.js similarity index 99% rename from vue/dist/assets/FileItem-2eb00024.js rename to vue/dist/assets/FileItem-cc53e03a.js index e5a35f7..f012dc4 100644 --- a/vue/dist/assets/FileItem-2eb00024.js +++ b/vue/dist/assets/FileItem-cc53e03a.js @@ -1,3 +1,3 @@ -var ut=Object.defineProperty;var dt=(i,n,e)=>n in i?ut(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var q=(i,n,e)=>(dt(i,typeof n!="symbol"?n+"":n,e),e);import{c as I,A as Y,dy as le,O as de,am as ye,bk as ct,di as ft,c0 as ht,dz as gt,r as L,cS as pt,bF as De,dA as mt,p as vt,dB as xe,bB as yt,dC as be,dD as bt,aH as At,G as H,dE as St,C as kt,dF as _t,n as ce,m as ne,aU as It,t as Ue,a1 as Ae,c9 as Je,aJ as wt,dG as We,dH as Ct,Q as Et,x as Tt,ct as fe,d1 as Ke,d2 as Ge,aP as Se,aQ as ke,az as Ye,U as l,a2 as F,dI as Pt,dJ as Ot,dK as Dt,c5 as zt,dL as Nt,at as Qt,V as c,aG as Z,$ as y,a3 as A,Z as V,a8 as x,c6 as ze,c7 as Mt,dM as $t,a7 as qe,ag as W,d as _e,X as S,Y as h,a4 as $,al as Ze,dr as Bt,dq as Ft,M as Xe,W as a,a0 as et,dj as Rt,dN as Ne,af as Lt,dO as Vt,dm as jt,dP as Ht,dQ as xt,dR as ae,cX as Ut,dS as Jt,dT as Wt,dU as Kt}from"./index-d6594e8e.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";import{i as Gt}from"./_isIterateeCall-bfd79848.js";import{_ as Yt}from"./index-30b8f89a.js";import{D as G,a as he}from"./index-9b184148.js";/* empty css */G.Button=he;G.install=function(i){return i.component(G.name,G),i.component(he.name,he),i};var qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Zt=qt;function Qe(i){for(var n=1;n{const r=ht();de(r),X.has(r)||(X.set(r,ye(i(r,t??(n==null?void 0:n())))),ct(()=>{X.delete(r)}));const o=X.get(r);return de(o),{state:o,toRefs(){return ft(o)}}}}}var vi={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const yi=vi;function Be(i){for(var n=1;n{const i=L([]);return{selectdFiles:i,addFiles:e=>{i.value=pt([...i.value,...e])}}});class se{constructor(n,e=mt.CREATED_TIME_DESC){q(this,"root");q(this,"execQueue",[]);q(this,"walkerInitPromsie");this.entryPath=n,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(t=>{De([this.entryPath]).then(async r=>{this.root.info=r[this.entryPath],await this.fetchChildren(this.root),t()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const n=e=>e.children.map(t=>{if(t.info.type==="dir")return n(t);if(be(t.info.name))return t.info}).filter(t=>t).flat(1);return n(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(n){const{files:e}=await vt(n.info.fullpath);return n.children=xe(e,this.sortMethod).map(t=>({info:t,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...n.children.filter(t=>t.info.type==="dir").map(t=>({fn:()=>this.fetchChildren(t),...t}))),n}async next(){await this.walkerInitPromsie;const n=ai(this.execQueue);if(!n)return null;const e=await n.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const n=[this.root.info],e=r=>{for(const o of r.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await De(n.map(r=>r.fullpath));for(const r of n)if(!yt(r,t[r.fullpath]))return!0;return!1}async seamlessRefresh(n,e=L(!1)){const t=performance.now(),r=new se(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.lengthn in i?ut(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var q=(i,n,e)=>(dt(i,typeof n!="symbol"?n+"":n,e),e);import{c as I,A as Y,dy as le,O as de,am as ye,bk as ct,dk as ft,c0 as ht,dz as gt,r as L,cU as pt,bF as De,dA as mt,p as vt,dB as xe,bB as yt,dC as be,dD as bt,aH as At,G as H,dE as St,C as kt,dF as _t,n as ce,m as ne,aU as It,t as Ue,a1 as Ae,c9 as Je,aJ as wt,dG as We,dH as Ct,Q as Et,x as Tt,ct as fe,d3 as Ke,d4 as Ge,aP as Se,aQ as ke,az as Ye,U as l,a2 as F,dI as Pt,dJ as Ot,dK as Dt,c5 as zt,dL as Nt,at as Qt,V as c,aG as Z,$ as y,a3 as A,Z as V,a8 as x,c6 as ze,c7 as Mt,dM as $t,a7 as qe,ag as W,d as _e,X as S,Y as h,a4 as $,al as Ze,dr as Bt,dq as Ft,M as Xe,W as a,a0 as et,dl as Rt,dN as Ne,af as Lt,dO as Vt,dm as jt,dP as Ht,dQ as xt,dR as ae,cZ as Ut,dS as Jt,dT as Wt,dU as Kt}from"./index-0205daf8.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import{i as Gt}from"./_isIterateeCall-7008db8e.js";import{_ as Yt}from"./index-6d8e3499.js";import{D as G,a as he}from"./index-e9cc5bd5.js";/* empty css */G.Button=he;G.install=function(i){return i.component(G.name,G),i.component(he.name,he),i};var qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const Zt=qt;function Qe(i){for(var n=1;n{const r=ht();de(r),X.has(r)||(X.set(r,ye(i(r,t??(n==null?void 0:n())))),ct(()=>{X.delete(r)}));const o=X.get(r);return de(o),{state:o,toRefs(){return ft(o)}}}}}var vi={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const yi=vi;function Be(i){for(var n=1;n{const i=L([]);return{selectdFiles:i,addFiles:e=>{i.value=pt([...i.value,...e])}}});class se{constructor(n,e=mt.CREATED_TIME_DESC){q(this,"root");q(this,"execQueue",[]);q(this,"walkerInitPromsie");this.entryPath=n,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(t=>{De([this.entryPath]).then(async r=>{this.root.info=r[this.entryPath],await this.fetchChildren(this.root),t()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const n=e=>e.children.map(t=>{if(t.info.type==="dir")return n(t);if(be(t.info.name))return t.info}).filter(t=>t).flat(1);return n(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(n){const{files:e}=await vt(n.info.fullpath);return n.children=xe(e,this.sortMethod).map(t=>({info:t,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...n.children.filter(t=>t.info.type==="dir").map(t=>({fn:()=>this.fetchChildren(t),...t}))),n}async next(){await this.walkerInitPromsie;const n=ai(this.execQueue);if(!n)return null;const e=await n.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const n=[this.root.info],e=r=>{for(const o of r.children)o.info.type==="dir"&&(n.push(o.info),e(o))};e(this.root);const t=await De(n.map(r=>r.fullpath));for(const r of n)if(!yt(r,t[r.fullpath]))return!0;return!1}async seamlessRefresh(n,e=L(!1)){const t=performance.now(),r=new se(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.length
'};e.configure=function(u){var d,s;for(d in u)s=u[d],s!==void 0&&u.hasOwnProperty(d)&&(t[d]=s);return this},e.status=null,e.set=function(u){var d=e.isStarted();u=r(u,t.minimum,1),e.status=u===1?null:u;var s=e.render(!d),b=s.querySelector(t.barSelector),w=t.speed,M=t.easing;return s.offsetWidth,f(function(p){t.positionUsing===""&&(t.positionUsing=e.getPositioningCSS()),g(b,v(u,w,M)),u===1?(g(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout(function(){g(s,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){e.remove(),p()},w)},w)):setTimeout(p,w)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var u=function(){setTimeout(function(){e.status&&(e.trickle(),u())},t.trickleSpeed)};return t.trickle&&u(),this},e.done=function(u){return!u&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(u){var d=e.status;return d?d>1?void 0:(typeof u!="number"&&(d>=0&&d<.2?u=.1:d>=.2&&d<.5?u=.04:d>=.5&&d<.8?u=.02:d>=.8&&d<.99?u=.005:u=0),d=r(d+u,0,.994),e.set(d)):e.start()},e.trickle=function(){return e.inc()},function(){var u=0,d=0;e.promise=function(s){return!s||s.state()==="resolved"?this:(d===0&&e.start(),u++,d++,s.always(function(){d--,d===0?(u=0,e.done()):e.set((u-d)/u)}),this)}}(),e.getElement=function(){var u=e.getParent();if(u){var d=Array.prototype.slice.call(u.querySelectorAll(".nprogress")).filter(function(s){return s.parentElement===u});if(d.length>0)return d[0]}return null},e.getParent=function(){if(t.parent instanceof HTMLElement)return t.parent;if(typeof t.parent=="string")return document.querySelector(t.parent)},e.render=function(u){if(e.isRendered())return e.getElement();N(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.className="nprogress",d.innerHTML=t.template;var s=d.querySelector(t.barSelector),b=u?"-100":o(e.status||0),w=e.getParent(),M;return g(s,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),t.showSpinner||(M=d.querySelector(t.spinnerSelector),M&&j(M)),w!=document.body&&N(w,"nprogress-custom-parent"),w.appendChild(d),d},e.remove=function(){e.status=null,T(document.documentElement,"nprogress-busy"),T(e.getParent(),"nprogress-custom-parent");var u=e.getElement();u&&j(u)},e.isRendered=function(){return!!e.getElement()},e.getPositioningCSS=function(){var u=document.body.style,d="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return d+"Perspective"in u?"translate3d":d+"Transform"in u?"translate":"margin"};function r(u,d,s){return us?s:u}function o(u){return(-1+u)*100}function v(u,d,s){var b;return t.positionUsing==="translate3d"?b={transform:"translate3d("+o(u)+"%,0,0)"}:t.positionUsing==="translate"?b={transform:"translate("+o(u)+"%,0)"}:b={"margin-left":o(u)+"%"},b.transition="all "+d+"ms "+s,b}var f=function(){var u=[];function d(){var s=u.shift();s&&s(d)}return function(s){u.push(s),u.length==1&&d()}}(),g=function(){var u=["Webkit","O","Moz","ms"],d={};function s(p){return p.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,E){return E.toUpperCase()})}function b(p){var C=document.body.style;if(p in C)return p;for(var E=u.length,Q=p.charAt(0).toUpperCase()+p.slice(1),m;E--;)if(m=u[E]+Q,m in C)return m;return p}function w(p){return p=s(p),d[p]||(d[p]=b(p))}function M(p,C,E){C=w(C),p.style[C]=E}return function(p,C){var E=arguments,Q,m;if(E.length==2)for(Q in C)m=C[Q],m!==void 0&&C.hasOwnProperty(Q)&&M(p,Q,m);else M(p,E[1],E[2])}}();function _(u,d){var s=typeof u=="string"?u:P(u);return s.indexOf(" "+d+" ")>=0}function N(u,d){var s=P(u),b=s+d;_(s,d)||(u.className=b.substring(1))}function T(u,d){var s=P(u),b;_(u,d)&&(b=s.replace(" "+d+" "," "),u.className=b.substring(1,b.length-1))}function P(u){return(" "+(u&&u.className||"")+" ").replace(/\s+/gi," ")}function j(u){u&&u.parentNode&&u.parentNode.removeChild(u)}return e})})(nt);var wi=nt.exports;const Gs=At(wi);function Ys({fetchNext:i}={}){const{scroller:n,sortedFiles:e,sortMethod:t,currLocation:r,stackViewEl:o,canLoadNext:v,previewIdx:f,props:g,walker:_,getViewableAreaFiles:N}=re().toRefs(),{state:T}=re(),P=L(!1),j=L(K.defaultGridCellWidth),u=H(()=>j.value+16),d=44,{width:s}=St(o),b=H(()=>~~(s.value/u.value)),w=ye(new Map),M=H(()=>{const O=u.value;return{first:O+(j.value<=160?0:d),second:O}}),p=L(!1),C=async()=>{var O;if(!(p.value||g.value.mode!=="walk"||!v.value))try{p.value=!0,await((O=_.value)==null?void 0:O.next())}finally{p.value=!1}},E=async(O=!1)=>{const k=n.value,R=()=>O?f.value:(k==null?void 0:k.$_endIndex)??0,D=()=>{const B=e.value.length,J=50;return B?i?R()>B-J:R()>B-J&&v.value:!0};for(;D();){await Ue(30);const B=await(i??C)();if(typeof B=="boolean"&&!B)return}};T.useEventListen("loadNextDir",kt(async(O=!1)=>{await E(O),g.value.mode==="walk"&&Q()})),T.useEventListen("viewableAreaFilesChange",()=>{const O=N.value(),k=O.filter(D=>D.is_under_scanned_path&&be(D.name)).map(D=>D.fullpath);Ci.fetchImageTags(k);const R=O.filter(D=>D.is_under_scanned_path&&D.type==="dir"&&!w.has(D.fullpath)).map(D=>D.fullpath);R.length&&_t(R).then(D=>{for(const B in D)if(Object.prototype.hasOwnProperty.call(D,B)){const J=D[B];w.set(B,J)}})}),T.useEventListen("refresh",async()=>{T.eventEmitter.emit("viewableAreaFilesChange")});const Q=ce(()=>T.eventEmitter.emit("viewableAreaFilesChange"),300);ne(r,Q);const m=ce(async()=>{await E(),Q()},150);return{gridItems:b,sortedFiles:e,sortMethodConv:It,moreActionsDropdownShow:P,gridSize:u,sortMethod:t,onScroll:m,loadNextDir:C,loadNextDirLoading:p,canLoadNext:v,itemSize:M,cellWidth:j,dirCoverCache:w}}const qs=new Map,K=Ae(),Zs=Ii(),Ci=Je(),Xs=wt(),er=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:tr,useEventListen:ir}=We(),{useHookShareState:re}=mi((i,{images:n})=>{const e=L({tabIdx:-1,paneIdx:-1}),t=H(()=>Et(r.value)),r=L([]),o=H(()=>{var C;return r.value.map(E=>E.curr).slice((C=K.conf)!=null&&C.is_win&&e.value.mode!=="scanned-fixed"?1:0)}),v=H(()=>Tt(...o.value)),f=H(()=>{var C,E;return e.value.mode==="scanned-fixed"?((E=(C=r.value)==null?void 0:C[0])==null?void 0:E.curr)??"":e.value.mode==="walk"?e.value.path??"":r.value.length===1?"/":v.value}),g=L(K.defaultSortingMethod),_=L(e.value.mode=="walk"?new se(e.value.path,g.value):void 0);ne([()=>e.value.mode,()=>e.value.path,g],async([C,E,Q])=>{var m;C==="walk"?(_.value=new se(E,Q),r.value=[{files:[],curr:E}],await Ue(),await((m=_.value)==null?void 0:m.reset()),M.eventEmitter.emit("loadNextDir")):_.value=void 0});const N=ye(new Set);ne(t,()=>N.clear());const T=H(()=>{var m;if(n.value)return n.value;if(_.value)return _.value.images.filter(O=>!N.has(O.fullpath));if(!t.value)return[];const C=((m=t.value)==null?void 0:m.files)??[],E=g.value;return xe((O=>{const k=K.fileTypeFilter;return k.includes("all")||k.length===0?O:O.filter(R=>!!(R.type==="dir"||k.includes("image")&&fe(R.name)||k.includes("video")&&Ke(R.name)||k.includes("audio")&&Ge(R.name)))})(C),E).filter(O=>!N.has(O.fullpath))}),P=L([]),j=L(-1),u=H(()=>_.value?!_.value.isCompleted:!1),d=L(!1),s=L(!1),b=L(),w=()=>{var C,E,Q;return(Q=(E=(C=K.tabList)==null?void 0:C[e.value.tabIdx])==null?void 0:E.panes)==null?void 0:Q[e.value.paneIdx]},M=We();M.useEventListen("selectAll",()=>{console.log(`select all 0 -> ${T.value.length}`),P.value=gi(0,T.value.length)});const p=()=>{const C=b.value;if(C){const E=Math.max(C.$_startIndex-10,0);return T.value.slice(E,C.$_endIndex+10)}return[]};return{previewing:s,spinning:d,canLoadNext:u,multiSelectedIdxs:P,previewIdx:j,basePath:o,currLocation:f,currPage:t,stack:r,sortMethod:g,sortedFiles:T,scroller:b,stackViewEl:L(),props:e,getPane:w,walker:_,deletedFiles:N,getViewableAreaFiles:p,...M}},()=>({images:L()}));function nr(){const{eventEmitter:i,multiSelectedIdxs:n,sortedFiles:e}=re().toRefs();return{onSelectAll:()=>i.value.emit("selectAll"),onReverseSelect:()=>{n.value=e.value.map((v,f)=>f).filter(v=>!n.value.includes(v))},onClearAllSelected:()=>{n.value=[]}}}const sr=()=>{const{stackViewEl:i}=re().toRefs(),n=L(-1);return Ct(i,e=>{var r;let t=e.target;for(;t.parentElement;)if(t=t.parentElement,t.tagName.toLowerCase()==="li"&&t.classList.contains("file-item-trigger")){const o=(r=t.dataset)==null?void 0:r.idx;o&&Number.isSafeInteger(+o)&&(n.value=+o);return}}),{showMenuIdx:n}};function Ei(){var i=window.navigator.userAgent,n=i.indexOf("MSIE ");if(n>0)return parseInt(i.substring(n+5,i.indexOf(".",n)),10);var e=i.indexOf("Trident/");if(e>0){var t=i.indexOf("rv:");return parseInt(i.substring(t+3,i.indexOf(".",t)),10)}var r=i.indexOf("Edge/");return r>0?parseInt(i.substring(r+5,i.indexOf(".",r)),10):-1}let te;function ge(){ge.init||(ge.init=!0,te=Ei()!==-1)}var oe={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ge(),Ye(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const i=document.createElement("object");this._resizeObject=i,i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex",-1),i.onload=this.addResizeHandlers,i.type="text/html",te&&this.$el.appendChild(i),i.data="about:blank",te||this.$el.appendChild(i)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!te&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ti=Pt();Se("data-v-b329ee4c");const Pi={class:"resize-observer",tabindex:"-1"};ke();const Oi=Ti((i,n,e,t,r,o)=>(l(),F("div",Pi)));oe.render=Oi;oe.__scopeId="data-v-b329ee4c";oe.__file="src/components/ResizeObserver.vue";function ie(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(n){return typeof n}:ie=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ie(i)}function Di(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Le(i,n){for(var e=0;ei.length)&&(n=i.length);for(var e=0,t=new Array(n);e2&&arguments[2]!==void 0?arguments[2]:{},t,r,o,v=function(g){for(var _=arguments.length,N=new Array(_>1?_-1:0),T=1;T<_;T++)N[T-1]=arguments[T];if(o=N,!(t&&g===r)){var P=e.leading;typeof P=="function"&&(P=P(g,r)),(!t||g!==r)&&P&&i.apply(void 0,[g].concat(Ve(o))),r=g,clearTimeout(t),t=setTimeout(function(){i.apply(void 0,[g].concat(Ve(o))),t=0},n)}};return v._clear=function(){clearTimeout(t),t=null},v}function st(i,n){if(i===n)return!0;if(ie(i)==="object"){for(var e in i)if(!st(i[e],n[e]))return!1;return!0}return!1}var Ri=function(){function i(n,e,t){Di(this,i),this.el=n,this.observer=null,this.frozen=!1,this.createObserver(e,t)}return zi(i,[{key:"createObserver",value:function(e,t){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Bi(e),this.callback=function(f,g){r.options.callback(f,g),f&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},v=o.leading;this.callback=Fi(this.callback,this.options.throttle,{leading:function(g){return v==="both"||v==="visible"&&g||v==="hidden"&&!g}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var g=f[0];if(f.length>1){var _=f.find(function(T){return T.isIntersecting});_&&(g=_)}if(r.callback){var N=g.isIntersecting&&g.intersectionRatio>=r.threshold;if(N===r.oldResult)return;r.oldResult=N,r.callback(N,g)}},this.options.intersection),Ye(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),i}();function rt(i,n,e){var t=n.value;if(t)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new Ri(i,t,e);i._vue_visibilityState=r}}function Li(i,n,e){var t=n.value,r=n.oldValue;if(!st(t,r)){var o=i._vue_visibilityState;if(!t){ot(i);return}o?o.createObserver(t,e):rt(i,{value:t},e)}}function ot(i){var n=i._vue_visibilityState;n&&(n.destroyObserver(),delete i._vue_visibilityState)}var Vi={beforeMount:rt,updated:Li,unmounted:ot},ji={itemsLimit:1e3},Hi=/(auto|scroll)/;function lt(i,n){return i.parentNode===null?n:lt(i.parentNode,n.concat([i]))}var ue=function(n,e){return getComputedStyle(n,null).getPropertyValue(e)},xi=function(n){return ue(n,"overflow")+ue(n,"overflow-y")+ue(n,"overflow-x")},Ui=function(n){return Hi.test(xi(n))};function je(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var n=lt(i.parentNode,[]),e=0;e{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const i=this.$_lastUpdateScrollPosition;typeof i=="number"&&this.$nextTick(()=>{this.scrollToPosition(i)})},beforeUnmount(){this.removeListeners()},methods:{addView(i,n,e,t,r){const o=Ot({id:Gi++,index:n,used:!0,key:t,type:r}),v=Dt({item:e,position:0,nr:o});return i.push(v),v},unuseView(i,n=!1){const e=this.$_unusedViews,t=i.nr.type;let r=e.get(t);r||(r=[],e.set(t,r)),r.push(i),n||(i.nr.used=!1,i.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(i){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const n=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});n(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&n()},this.updateInterval))}},handleVisibilityChange(i,n){this.ready&&(i||n.boundingClientRect.width!==0||n.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(i,n=!1){const e=this.itemSize,t=this.gridItems||1,r=this.itemSecondarySize||e,o=this.$_computedMinItemSize,v=this.typeField,f=this.simpleArray?null:this.keyField,g=this.items,_=g.length,N=this.sizes,T=this.$_views,P=this.$_unusedViews,j=this.pool,u=this.itemIndexByKey;let d,s,b,w,M;if(!_)d=s=w=M=b=0;else if(this.$_prerender)d=w=0,s=M=Math.min(this.prerender,g.length),b=null;else{const k=this.getScroll();if(n){let B=k.start-this.$_lastUpdateScrollPosition;if(B<0&&(B=-B),e===null&&Bk.start&&(Pe=U),U=~~((J+Pe)/2);while(U!==Oe);for(U<0&&(U=0),d=U,b=N[_-1].accumulator,s=U;s<_&&N[s].accumulator_&&(s=_)),w=d;w<_&&D+N[w].accumulator_&&(s=_),w<0&&(w=0),M>_&&(M=_),b=Math.ceil(_/t)*e}}s-d>ji.itemsLimit&&this.itemsLimitError(),this.totalSize=b;let p;const C=d<=this.$_endIndex&&s>=this.$_startIndex;if(C)for(let k=0,R=j.length;k=s)&&this.unuseView(p));const E=C?null:new Map;let Q,m,O;for(let k=d;k=D.length)&&(p=this.addView(j,k,Q,R,m),this.unuseView(p,!0),D=P.get(m)),p=D[O],E.set(m,O+1)),T.delete(p.nr.key),p.nr.used=!0,p.nr.index=k,p.nr.key=R,p.nr.type=m,T.set(R,p),B=!0;else if(!p.nr.used&&(p.nr.used=!0,p.nr.index=k,B=!0,D)){const J=D.indexOf(p);J!==-1&&D.splice(J,1)}p.item=Q,B&&(k===g.length-1&&this.$emit("scroll-end"),k===0&&this.$emit("scroll-start")),e===null?(p.position=N[k-1].accumulator,p.offset=0):(p.position=Math.floor(k/t)*e,p.offset=k%t*r)}return this.$_startIndex=d,this.$_endIndex=s,this.emitUpdate&&this.$emit("update",d,s,w,M),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:C}},getListenerTarget(){let i=je(this.$el);return window.document&&(i===window.document.documentElement||i===window.document.body)&&(i=window),i},getScroll(){const{$el:i,direction:n}=this,e=n==="vertical";let t;if(this.pageMode){const r=i.getBoundingClientRect(),o=e?r.height:r.width;let v=-(e?r.top:r.left),f=e?window.innerHeight:window.innerWidth;v<0&&(f+=v,v=0),v+f>o&&(f=o-v),t={start:v,end:v+f}}else e?t={start:i.scrollTop,end:i.scrollTop+i.clientHeight}:t={start:i.scrollLeft,end:i.scrollLeft+i.clientWidth};return t},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ve?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(i){let n;const e=this.gridItems||1;this.itemSize===null?n=i>0?this.sizes[i-1].accumulator:0:n=Math.floor(i/e)*this.itemSize,this.scrollToPosition(n)},scrollToPosition(i){const n=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,t,r;if(this.pageMode){const o=je(this.$el),v=o.tagName==="HTML"?0:o[n.scroll],f=o.getBoundingClientRect(),_=this.$el.getBoundingClientRect()[n.start]-f[n.start];e=o,t=n.scroll,r=i+v+_}else e=this.$el,t=n.scroll,r=i;e[t]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((i,n)=>i.nr.index-n.nr.index)}}};const Yi={key:0,ref:"before",class:"vue-recycle-scroller__slot"},qi={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Zi(i,n,e,t,r,o){const v=zt("ResizeObserver"),f=Nt("observe-visibility");return Qt((l(),c("div",{class:W(["vue-recycle-scroller",{ready:r.ready,"page-mode":e.pageMode,[`direction-${i.direction}`]:!0}]),onScrollPassive:n[0]||(n[0]=(...g)=>o.handleScroll&&o.handleScroll(...g))},[i.$slots.before?(l(),c("div",Yi,[Z(i.$slots,"before")],512)):y("v-if",!0),(l(),F(ze(e.listTag),{ref:"wrapper",style:qe({[i.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:W(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:A(()=>[(l(!0),c(V,null,x(r.pool,g=>(l(),F(ze(e.itemTag),Mt({key:g.nr.id,style:r.ready?{transform:`translate${i.direction==="vertical"?"Y":"X"}(${g.position}px) translate${i.direction==="vertical"?"X":"Y"}(${g.offset}px)`,width:e.gridItems?`${i.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${i.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&r.hoverKey===g.nr.key}]]},$t(e.skipHover?{}:{mouseenter:()=>{r.hoverKey=g.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:A(()=>[Z(i.$slots,"default",{item:g.item,index:g.nr.index,active:g.nr.used})]),_:2},1040,["style","class"]))),128)),Z(i.$slots,"empty")]),_:3},8,["style","class"])),i.$slots.after?(l(),c("div",qi,[Z(i.$slots,"after")],512)):y("v-if",!0),I(v,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[f,o.handleVisibilityChange]])}at.render=Zi;at.__file="src/components/RecycleScroller.vue";const He=_e({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},isSelectedMutilFiles:{type:Boolean}},emits:["contextMenuClick"],setup(i,{emit:n}){const e=i,t=Ae(),r=H(()=>{var o;return(((o=t.conf)==null?void 0:o.all_custom_tags)??[]).reduce((v,f)=>[...v,{...f,selected:!!e.selectedTag.find(g=>g.id===f.id)}],[])});return(o,v)=>{const f=Ze,g=Bt,_=Ft,N=Xe;return l(),F(N,{onClick:v[0]||(v[0]=T=>n("contextMenuClick",T,o.file,o.idx))},{default:A(()=>{var T;return[I(f,{key:"deleteFiles"},{default:A(()=>[S(h(o.$t("deleteSelected")),1)]),_:1}),I(f,{key:"openWithDefaultApp"},{default:A(()=>[S(h(o.$t("openWithDefaultApp")),1)]),_:1}),I(f,{key:"saveSelectedAsJson"},{default:A(()=>[S(h(o.$t("saveSelectedAsJson")),1)]),_:1}),o.file.type==="dir"?(l(),c(V,{key:0},[I(f,{key:"openInNewTab"},{default:A(()=>[S(h(o.$t("openInNewTab")),1)]),_:1}),I(f,{key:"openOnTheRight"},{default:A(()=>[S(h(o.$t("openOnTheRight")),1)]),_:1}),I(f,{key:"openWithWalkMode"},{default:A(()=>[S(h(o.$t("openWithWalkMode")),1)]),_:1})],64)):y("",!0),o.file.type==="file"?(l(),c(V,{key:1},[$(be)(o.file.name)?(l(),c(V,{key:0},[I(f,{key:"viewGenInfo"},{default:A(()=>[S(h(o.$t("viewGenerationInfo")),1)]),_:1}),I(f,{key:"tiktokView"},{default:A(()=>[S(h(o.$t("tiktokView")),1)]),_:1}),I(g),((T=$(t).conf)==null?void 0:T.launch_mode)!=="server"?(l(),c(V,{key:0},[I(f,{key:"send2txt2img"},{default:A(()=>[S(h(o.$t("sendToTxt2img")),1)]),_:1}),I(f,{key:"send2img2img"},{default:A(()=>[S(h(o.$t("sendToImg2img")),1)]),_:1}),I(f,{key:"send2inpaint"},{default:A(()=>[S(h(o.$t("sendToInpaint")),1)]),_:1}),I(f,{key:"send2extras"},{default:A(()=>[S(h(o.$t("sendToExtraFeatures")),1)]),_:1}),I(_,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:A(()=>[I(f,{key:"send2controlnet-txt2img"},{default:A(()=>[S("ControlNet - "+h(o.$t("t2i")),1)]),_:1}),I(f,{key:"send2controlnet-img2img"},{default:A(()=>[S("ControlNet - "+h(o.$t("i2i")),1)]),_:1}),I(f,{key:"send2outpaint"},{default:A(()=>[S("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):y("",!0),I(f,{key:"send2BatchDownload"},{default:A(()=>[S(h(o.$t("sendToBatchDownload")),1)]),_:1}),I(_,{key:"copy2target",title:o.$t("copyTo")},{default:A(()=>[(l(!0),c(V,null,x($(t).quickMovePaths,P=>(l(),F(f,{key:`copy-to-${P.dir}`},{default:A(()=>[S(h(P.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),I(_,{key:"move2target",title:o.$t("moveTo")},{default:A(()=>[(l(!0),c(V,null,x($(t).quickMovePaths,P=>(l(),F(f,{key:`move-to-${P.dir}`},{default:A(()=>[S(h(P.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),I(g),o.isSelectedMutilFiles?(l(),c(V,{key:1},[I(_,{key:"batch-add-tag",title:o.$t("batchAddTag")},{default:A(()=>[I(f,{key:"add-custom-tag"},{default:A(()=>[S("+ "+h(o.$t("addNewCustomTag")),1)]),_:1}),(l(!0),c(V,null,x(r.value,P=>(l(),F(f,{key:`batch-add-tag-${P.id}`},{default:A(()=>[S(h(P.name),1)]),_:2},1024))),128))]),_:1},8,["title"]),I(_,{key:"batch-remove-tag",title:o.$t("batchRemoveTag")},{default:A(()=>[(l(!0),c(V,null,x(r.value,P=>(l(),F(f,{key:`batch-remove-tag-${P.id}`},{default:A(()=>[S(h(P.name),1)]),_:2},1024))),128))]),_:1},8,["title"])],64)):(l(),F(_,{key:"toggle-tag",title:o.$t("toggleTag")},{default:A(()=>[I(f,{key:"add-custom-tag"},{default:A(()=>[S("+ "+h(o.$t("addNewCustomTag")),1)]),_:1}),(l(!0),c(V,null,x(r.value,P=>(l(),F(f,{key:`toggle-tag-${P.id}`},{default:A(()=>[S(h(P.name)+" ",1),P.selected?(l(),F($(tt),{key:0})):(l(),F($(it),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"])),I(g),I(f,{key:"openFileLocationInNewTab"},{default:A(()=>[S(h(o.$t("openFileLocationInNewTab")),1)]),_:1}),I(f,{key:"openWithLocalFileBrowser"},{default:A(()=>[S(h(o.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):y("",!0),I(g),I(f,{key:"rename"},{default:A(()=>[S(h(o.$t("rename")),1)]),_:1}),I(f,{key:"previewInNewWindow"},{default:A(()=>[S(h(o.$t("previewInNewWindow")),1)]),_:1}),I(f,{key:"download"},{default:A(()=>[S(h(o.$t("download")),1)]),_:1}),I(f,{key:"copyPreviewUrl"},{default:A(()=>[S(h(o.$t("copySourceFilePreviewLink")),1)]),_:1}),I(f,{key:"copyFilePath"},{default:A(()=>[S(h(o.$t("copyFilePath")),1)]),_:1})],64)):y("",!0)]}),_:1})}}}),z=i=>(Se("data-v-4ea1ffe2"),i=i(),ke(),i),Xi={class:"changeIndicatorWrapper"},en={key:0,class:"changeIndicatorsLeft changeIndicators"},tn={key:0,class:"promptChangeIndicator changeIndicator"},nn={key:1,class:"negpromptChangeIndicator changeIndicator"},sn={key:2,class:"seedChangeIndicator changeIndicator"},rn={key:3,class:"stepsChangeIndicator changeIndicator"},on={key:4,class:"cfgChangeIndicator changeIndicator"},ln={key:5,class:"sizeChangeIndicator changeIndicator"},an={key:6,class:"modelChangeIndicator changeIndicator"},un={key:7,class:"samplerChangeIndicator changeIndicator"},dn={key:8,class:"otherChangeIndicator changeIndicator"},cn={class:"hoverOverlay"},fn=z(()=>a("strong",null,"This file",-1)),hn=z(()=>a("br",null,null,-1)),gn=z(()=>a("br",null,null,-1)),pn={key:0},mn=z(()=>a("td",null,[a("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),vn={key:1},yn=z(()=>a("td",null,[a("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),bn={key:2},An=z(()=>a("td",null,[a("span",{class:"seedChangeIndicator"},"Seed")],-1)),Sn={key:3},kn=z(()=>a("td",null,[a("span",{class:"stepsChangeIndicator"},"Steps")],-1)),_n={key:4},In=z(()=>a("td",null,[a("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),wn={key:5},Cn=z(()=>a("td",null,[a("span",{class:"sizeChangeIndicator"},"Size")],-1)),En={key:6},Tn=z(()=>a("td",null,[a("span",{class:"modelChangeIndicator"},"Model")],-1)),Pn=z(()=>a("br",null,null,-1)),On={key:7},Dn=z(()=>a("td",null,[a("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),zn=z(()=>a("br",null,null,-1)),Nn=z(()=>a("br",null,null,-1)),Qn={key:0},Mn=z(()=>a("span",{class:"otherChangeIndicator"},"Other",-1)),$n=z(()=>a("br",null,null,-1)),Bn=z(()=>a("br",null,null,-1)),Fn={key:1,class:"changeIndicatorsRight changeIndicators"},Rn={key:0,class:"promptChangeIndicator changeIndicator"},Ln={key:1,class:"negpromptChangeIndicator changeIndicator"},Vn={key:2,class:"seedChangeIndicator changeIndicator"},jn={key:3,class:"stepsChangeIndicator changeIndicator"},Hn={key:4,class:"cfgChangeIndicator changeIndicator"},xn={key:5,class:"sizeChangeIndicator changeIndicator"},Un={key:6,class:"modelChangeIndicator changeIndicator"},Jn={key:7,class:"samplerChangeIndicator changeIndicator"},Wn={key:8,class:"otherChangeIndicator changeIndicator"},Kn={class:"hoverOverlay"},Gn=z(()=>a("strong",null,"This file",-1)),Yn=z(()=>a("br",null,null,-1)),qn=z(()=>a("br",null,null,-1)),Zn={key:0},Xn=z(()=>a("td",null,[a("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),es={key:1},ts=z(()=>a("td",null,[a("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),is={key:2},ns=z(()=>a("td",null,[a("span",{class:"seedChangeIndicator"},"Seed")],-1)),ss={key:3},rs=z(()=>a("td",null,[a("span",{class:"stepsChangeIndicator"},"Steps")],-1)),os={key:4},ls=z(()=>a("td",null,[a("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),as={key:5},us=z(()=>a("td",null,[a("span",{class:"sizeChangeIndicator"},"Size")],-1)),ds={key:6},cs=z(()=>a("td",null,[a("span",{class:"modelChangeIndicator"},"Model")],-1)),fs=z(()=>a("br",null,null,-1)),hs={key:7},gs=z(()=>a("td",null,[a("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),ps=z(()=>a("br",null,null,-1)),ms=z(()=>a("br",null,null,-1)),vs={key:0},ys=z(()=>a("span",{class:"otherChangeIndicator"},"Other",-1)),bs=z(()=>a("br",null,null,-1)),As=z(()=>a("br",null,null,-1)),Ss=_e({__name:"ChangeIndicator",props:{genDiffToPrevious:{},genDiffToNext:{},genInfo:{}},setup(i){function n(t){const r=["prompt","negativePrompt","seed","steps","cfgScale","size","Model","others"],o=Object.keys(t).filter(v=>!r.includes(v));return Object.fromEntries(o.map(v=>[v,t[v]]))}function e(t){return Object.keys(n(t)).length>0}return(t,r)=>(l(),c("div",Xi,[t.genDiffToPrevious.empty?y("",!0):(l(),c("div",en,["prompt"in t.genDiffToPrevious.diff?(l(),c("div",tn,"P+")):y("",!0),"negativePrompt"in t.genDiffToPrevious.diff?(l(),c("div",nn,"P-")):y("",!0),"seed"in t.genDiffToPrevious.diff?(l(),c("div",sn,"Se")):y("",!0),"steps"in t.genDiffToPrevious.diff?(l(),c("div",rn,"St")):y("",!0),"cfgScale"in t.genDiffToPrevious.diff?(l(),c("div",on,"Cf")):y("",!0),"size"in t.genDiffToPrevious.diff?(l(),c("div",ln,"Si")):y("",!0),"Model"in t.genDiffToPrevious.diff?(l(),c("div",an,"Mo")):y("",!0),"Sampler"in t.genDiffToPrevious.diff?(l(),c("div",un,"Sa")):y("",!0),e(t.genDiffToPrevious.diff)?(l(),c("div",dn,"Ot")):y("",!0)])),a("div",cn,[a("small",null,[I($(Fe)),fn,S(" vs "+h(t.genDiffToPrevious.otherFile)+" ",1),hn,gn,a("table",null,["prompt"in t.genDiffToPrevious.diff?(l(),c("tr",pn,[mn,a("td",null,h(t.genDiffToPrevious.diff.prompt)+" tokens changed",1)])):y("",!0),"negativePrompt"in t.genDiffToPrevious.diff?(l(),c("tr",vn,[yn,a("td",null,h(t.genDiffToPrevious.diff.negativePrompt)+" tokens changed",1)])):y("",!0),"seed"in t.genDiffToPrevious.diff?(l(),c("tr",bn,[An,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.seed[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.seed[1]),1)])])):y("",!0),"steps"in t.genDiffToPrevious.diff?(l(),c("tr",Sn,[kn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.steps[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.steps[1]),1)])])):y("",!0),"cfgScale"in t.genDiffToPrevious.diff?(l(),c("tr",_n,[In,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.cfgScale[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.cfgScale[1]),1)])])):y("",!0),"size"in t.genDiffToPrevious.diff?(l(),c("tr",wn,[Cn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.size[0]),1),S(" vs "+h(t.genDiffToPrevious.diff.size[1]),1)])])):y("",!0),"Model"in t.genDiffToPrevious.diff?(l(),c("tr",En,[Tn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.Model[0]),1),Pn,S(" vs "+h(t.genDiffToPrevious.diff.Model[1]),1)])])):y("",!0),"Sampler"in t.genDiffToPrevious.diff?(l(),c("tr",On,[Dn,a("td",null,[a("strong",null,h(t.genDiffToPrevious.diff.Sampler[0]),1),zn,S(" vs "+h(t.genDiffToPrevious.diff.Sampler[1]),1)])])):y("",!0)]),Nn,e(t.genDiffToPrevious.diff)?(l(),c("div",Qn,[Mn,S(" props that changed:"),$n,Bn,a("ul",null,[(l(!0),c(V,null,x(n(t.genDiffToPrevious.diff),(o,v)=>(l(),c("li",null,h(v),1))),256))])])):y("",!0)])]),t.genDiffToNext.empty?y("",!0):(l(),c("div",Fn,["prompt"in t.genDiffToNext.diff?(l(),c("div",Rn,"P+")):y("",!0),"negativePrompt"in t.genDiffToNext.diff?(l(),c("div",Ln,"P-")):y("",!0),"seed"in t.genDiffToNext.diff?(l(),c("div",Vn,"Se")):y("",!0),"steps"in t.genDiffToNext.diff?(l(),c("div",jn,"St")):y("",!0),"cfgScale"in t.genDiffToNext.diff?(l(),c("div",Hn,"Cf")):y("",!0),"size"in t.genDiffToNext.diff?(l(),c("div",xn,"Si")):y("",!0),"Model"in t.genDiffToNext.diff?(l(),c("div",Un,"Mo")):y("",!0),"Sampler"in t.genDiffToNext.diff?(l(),c("div",Jn,"Sa")):y("",!0),e(t.genDiffToNext.diff)?(l(),c("div",Wn,"Ot")):y("",!0)])),a("div",Kn,[a("small",null,[I($(Fe)),Gn,S(" vs "+h(t.genDiffToNext.otherFile)+" ",1),Yn,qn,a("table",null,["prompt"in t.genDiffToNext.diff?(l(),c("tr",Zn,[Xn,a("td",null,h(t.genDiffToNext.diff.prompt)+" tokens changed",1)])):y("",!0),"negativePrompt"in t.genDiffToNext.diff?(l(),c("tr",es,[ts,a("td",null,h(t.genDiffToNext.diff.negativePrompt)+" tokens changed",1)])):y("",!0),"seed"in t.genDiffToNext.diff?(l(),c("tr",is,[ns,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.seed[0]),1),S(" vs "+h(t.genDiffToNext.diff.seed[1]),1)])])):y("",!0),"steps"in t.genDiffToNext.diff?(l(),c("tr",ss,[rs,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.steps[0]),1),S(" vs "+h(t.genDiffToNext.diff.steps[1]),1)])])):y("",!0),"cfgScale"in t.genDiffToNext.diff?(l(),c("tr",os,[ls,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.cfgScale[0]),1),S(" vs "+h(t.genDiffToNext.diff.cfgScale[1]),1)])])):y("",!0),"size"in t.genDiffToNext.diff?(l(),c("tr",as,[us,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.size[0]),1),S(" vs "+h(t.genDiffToNext.diff.size[1]),1)])])):y("",!0),"Model"in t.genDiffToNext.diff?(l(),c("tr",ds,[cs,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.Model[0]),1),fs,S(" vs "+h(t.genDiffToNext.diff.Model[1]),1)])])):y("",!0),"Sampler"in t.genDiffToNext.diff?(l(),c("tr",hs,[gs,a("td",null,[a("strong",null,h(t.genDiffToNext.diff.Sampler[0]),1),ps,S(" vs "+h(t.genDiffToNext.diff.Sampler[1]),1)])])):y("",!0)]),ms,e(t.genDiffToNext.diff)?(l(),c("div",vs,[ys,S(" props that changed:"),bs,As,a("ul",null,[(l(!0),c(V,null,x(n(t.genDiffToNext.diff),(o,v)=>(l(),c("li",null,h(v),1))),256))])])):y("",!0)])])]))}});const ks=et(Ss,[["__scopeId","data-v-4ea1ffe2"]]),_s=i=>(Se("data-v-b6f9f791"),i=i(),ke(),i),Is=["data-idx"],ws={key:1,class:"more"},Cs={class:"float-btn-wrap"},Es={key:1,class:"tags-container"},Ts=["url"],Ps={class:"play-icon"},Os=["src"],Ds={key:0,class:"tags-container"},zs=_s(()=>a("div",{class:"audio-icon"},"🎵",-1)),Ns={key:0,class:"tags-container"},Qs={key:5,class:"preview-icon-wrap"},Ms={key:1,class:"dir-cover-container"},$s=["src"],Bs={key:6,class:"profile"},Fs=["title"],Rs={class:"basic-info"},Ls={style:{"margin-right":"4px"}},ee=160,Vs=_e({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{},enableRightClickMenu:{type:Boolean,default:!0},enableCloseIcon:{type:Boolean,default:!1},isSelectedMutilFiles:{type:Boolean},genInfo:{},enableChangeIndicator:{type:Boolean},extraTags:{},coverFiles:{},getGenDiff:{},getGenDiffWatchDep:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick","close-icon-click","tiktokView"],setup(i,{emit:n}){const e=i;Rt(s=>({c9c53b76:s.$props.cellWidth+"px"}));const t=Ae(),r=Je(),o=L(),v=L(),f=ce(()=>{const{getGenDiff:s,file:b,idx:w}=e;s&&(v.value=s(b.gen_info_obj,w,1,b),o.value=s(b.gen_info_obj,w,-1,b))},200+100*Math.random());ne(()=>{var s;return(s=e.getGenDiffWatchDep)==null?void 0:s.call(e,e.idx)},()=>{f()},{immediate:!0,deep:!0});const g=H(()=>r.tagMap.get(e.file.fullpath)??[]),_=H(()=>{const s=t.gridThumbnailResolution;return t.enableThumbnail?Ne(e.file,[s,s].join("x")):Lt(e.file)}),N=H(()=>{var s;return(((s=t.conf)==null?void 0:s.all_custom_tags)??[]).reduce((b,w)=>[...b,{...w,selected:!!g.value.find(M=>M.id===w.id)}],[])}),T=H(()=>N.value.find(s=>s.type==="custom"&&s.name==="like")),P=()=>{de(T.value),n("contextMenuClick",{key:`toggle-tag-${T.value.id}`},e.file,e.idx)},j=s=>{t.magicSwitchTiktokView&&e.file.type==="file"&&fe(e.file.name)?(s.stopPropagation(),s.preventDefault(),n("tiktokView",e.file,e.idx),setTimeout(()=>{Ut()},500)):n("fileItemClick",s,e.file,e.idx)},u=()=>{t.magicSwitchTiktokView?n("tiktokView",e.file,e.idx):Jt(e.file,s=>n("contextMenuClick",{key:`toggle-tag-${s}`},e.file,e.idx),()=>n("tiktokView",e.file,e.idx))},d=()=>{t.magicSwitchTiktokView?n("tiktokView",e.file,e.idx):Wt(e.file,s=>n("contextMenuClick",{key:`toggle-tag-${s}`},e.file,e.idx),()=>n("tiktokView",e.file,e.idx))};return(s,b)=>{const w=G,M=Ze,p=Xe,C=Kt,E=Yt;return l(),F(w,{trigger:["contextmenu"],visible:$(t).longPressOpenContextMenu?typeof s.idx=="number"&&s.showMenuIdx===s.idx:void 0,"onUpdate:visible":b[7]||(b[7]=Q=>typeof s.idx=="number"&&n("update:showMenuIdx",Q?s.idx:-1))},{overlay:A(()=>[s.enableRightClickMenu?(l(),F(He,{key:0,file:s.file,idx:s.idx,"selected-tag":g.value,onContextMenuClick:b[6]||(b[6]=(Q,m,O)=>n("contextMenuClick",Q,m,O)),"is-selected-mutil-files":s.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])):y("",!0)]),default:A(()=>{var Q;return[(l(),c("li",{class:W(["file file-item-trigger grid",{clickable:s.file.type==="dir",selected:s.selected}]),"data-idx":s.idx,key:s.file.name,draggable:"true",onDragstart:b[3]||(b[3]=m=>n("dragstart",m,s.idx)),onDragend:b[4]||(b[4]=m=>n("dragend",m,s.idx)),onClickCapture:b[5]||(b[5]=m=>j(m))},[a("div",null,[s.enableCloseIcon?(l(),c("div",{key:0,class:"close-icon",onClick:b[0]||(b[0]=m=>n("close-icon-click"))},[I($(Vt))])):y("",!0),s.enableRightClickMenu?(l(),c("div",ws,[I(w,null,{overlay:A(()=>[I(He,{file:s.file,idx:s.idx,"selected-tag":g.value,onContextMenuClick:b[1]||(b[1]=(m,O,k)=>n("contextMenuClick",m,O,k)),"is-selected-mutil-files":s.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])]),default:A(()=>[a("div",Cs,[I($(jt))])]),_:1}),s.file.type==="file"?(l(),F(w,{key:0},{overlay:A(()=>[N.value.length>1?(l(),F(p,{key:0,onClick:b[2]||(b[2]=m=>n("contextMenuClick",m,s.file,s.idx))},{default:A(()=>[(l(!0),c(V,null,x(N.value,m=>(l(),F(M,{key:`toggle-tag-${m.id}`},{default:A(()=>[S(h(m.name)+" ",1),m.selected?(l(),F($(tt),{key:0})):(l(),F($(it),{key:1}))]),_:2},1024))),128))]),_:1})):y("",!0)]),default:A(()=>{var m,O;return[a("div",{class:W(["float-btn-wrap",{"like-selected":(m=T.value)==null?void 0:m.selected}]),onClick:P},[(O=T.value)!=null&&O.selected?(l(),F($(Ht),{key:0})):(l(),F($(xt),{key:1}))],2)]}),_:1})):y("",!0)])):y("",!0),$(fe)(s.file.name)?(l(),c("div",{key:s.file.fullpath,class:W(`idx-${s.idx} item-content`)},[s.enableChangeIndicator&&v.value&&o.value?(l(),F(ks,{key:0,"gen-diff-to-next":v.value,"gen-diff-to-previous":o.value},null,8,["gen-diff-to-next","gen-diff-to-previous"])):y("",!0),I(C,{src:_.value,fallback:$(pi),preview:{src:s.fullScreenPreviewImageUrl,onVisibleChange:(m,O)=>n("previewVisibleChange",m,O)}},null,8,["src","fallback","preview"]),g.value&&s.cellWidth>ee?(l(),c("div",Es,[(l(!0),c(V,null,x(s.extraTags??g.value,m=>(l(),F(E,{key:m.id,color:$(r).getColor(m)},{default:A(()=>[S(h(m.name),1)]),_:2},1032,["color"]))),128))])):y("",!0)],2)):$(Ke)(s.file.name)?(l(),c("div",{key:3,class:W(`idx-${s.idx} item-content video`),url:$(ae)(s.file),style:qe({"background-image":`url('${s.file.cover_url??$(ae)(s.file)}')`}),onClick:u},[a("div",Ps,[a("img",{src:$(_i),style:{width:"40px",height:"40px"}},null,8,Os)]),g.value&&s.cellWidth>ee?(l(),c("div",Ds,[(l(!0),c(V,null,x(g.value,m=>(l(),F(E,{key:m.id,color:$(r).getColor(m)},{default:A(()=>[S(h(m.name),1)]),_:2},1032,["color"]))),128))])):y("",!0)],14,Ts)):$(Ge)(s.file.name)?(l(),c("div",{key:4,class:W(`idx-${s.idx} item-content audio`),onClick:d},[zs,g.value&&s.cellWidth>ee?(l(),c("div",Ns,[(l(!0),c(V,null,x(g.value,m=>(l(),F(E,{key:m.id,color:$(r).getColor(m)},{default:A(()=>[S(h(m.name),1)]),_:2},1032,["color"]))),128))])):y("",!0)],2)):(l(),c("div",Qs,[s.file.type==="file"?(l(),F($(ni),{key:0,class:"icon center"})):(Q=s.coverFiles)!=null&&Q.length&&s.cellWidth>160?(l(),c("div",Ms,[(l(!0),c(V,null,x(s.coverFiles,m=>(l(),c("img",{class:"dir-cover-item",src:m.media_type==="image"?$(Ne)(m):$(ae)(m),key:m.fullpath},null,8,$s))),128))])):(l(),F($(li),{key:2,class:"icon center"}))])),s.cellWidth>ee?(l(),c("div",Bs,[a("div",{class:"name line-clamp-1",title:s.file.name},h(s.file.name),9,Fs),a("div",Rs,[a("div",Ls,h(s.file.type)+" "+h(s.file.size),1),a("div",null,h(s.file.date),1)])])):y("",!0)])],42,Is))]}),_:1},8,["visible"])}}});const rr=et(Vs,[["__scopeId","data-v-b6f9f791"]]);export{rr as F,Gs as N,He as _,Ys as a,sr as b,nr as c,at as d,ir as e,Ii as f,K as g,Xs as h,tr as i,Zs as j,er as k,gi as r,qs as s,Ci as t,re as u}; diff --git a/vue/dist/assets/ImgSliPagePane-fc835be8.js b/vue/dist/assets/ImgSliPagePane-5dc424f1.js similarity index 64% rename from vue/dist/assets/ImgSliPagePane-fc835be8.js rename to vue/dist/assets/ImgSliPagePane-5dc424f1.js index c9718e2..67da900 100644 --- a/vue/dist/assets/ImgSliPagePane-fc835be8.js +++ b/vue/dist/assets/ImgSliPagePane-5dc424f1.js @@ -1 +1 @@ -import{d as a,U as t,V as s,c as n,cO as _,a0 as c}from"./index-d6594e8e.js";const o={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",o,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const p=c(i,[["__scopeId","data-v-ec71de83"]]);export{p as default}; +import{d as a,U as t,V as s,c as n,cQ as _,a0 as c}from"./index-0205daf8.js";const o={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",o,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const p=c(i,[["__scopeId","data-v-ec71de83"]]);export{p as default}; diff --git a/vue/dist/assets/MatchedImageGrid-b5a47599.js b/vue/dist/assets/MatchedImageGrid-23b35dd9.js similarity index 89% rename from vue/dist/assets/MatchedImageGrid-b5a47599.js rename to vue/dist/assets/MatchedImageGrid-23b35dd9.js index 83799ab..690476b 100644 --- a/vue/dist/assets/MatchedImageGrid-b5a47599.js +++ b/vue/dist/assets/MatchedImageGrid-23b35dd9.js @@ -1 +1 @@ -import{d as pe,am as ue,bF as fe,m as me,az as ge,a1 as he,U as g,V as I,c as s,a4 as e,a3 as o,a6 as P,W as d,L as ke,Y as c,X as v,a2 as U,af as ve,ag as E,$ as J,ai as we,T as _e,ak as Ce,aP as Se,aQ as Ie,a0 as xe}from"./index-d6594e8e.js";import{S as be}from"./index-4be8cdd9.js";import{o as N,L as ye,R as Me,f as Ae,M as Ve}from"./MultiSelectKeep-ba3817a4.js";import{c as Fe,d as ze,F as De}from"./FileItem-2eb00024.js";import{u as Te}from"./hook-a2b05396.js";import"./shortcut-0468cdd7.js";import"./Checkbox-59427a1c.js";/* empty css */import"./index-cb6a3d31.js";import"./index-e620c28b.js";import"./index-9b184148.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";import"./_isIterateeCall-bfd79848.js";import"./index-30b8f89a.js";import"./useGenInfoDiff-f63a5430.js";const x=r=>(Se("data-v-795e5ef4"),r=r(),Ie(),r),$e={class:"hint"},Ge={class:"action-bar"},Re={class:"title line-clamp-1"},Be=x(()=>d("div",{"flex-placeholder":""},null,-1)),Le=x(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Pe={key:1,class:"no-res-hint"},Ue=x(()=>d("p",{class:"hint"},"暂无结果",-1)),Ee=[Ue],Je={key:2,class:"preview-switch"},Ne=pe({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},id:{},title:{},paths:{}},setup(r){const h=r,t=ue({res:[],load:!1,loading:!1,async next(){var n;if(!(t.loading||t.load)){t.loading=!0;try{const u=t.res.length,f=(h.paths??[]).slice(u,u+200);if(!f.length){t.load=!0;return}const C=await fe(f),m=f.map(S=>C[S]).filter(Boolean);t.res.push(...m),u+200>=(((n=h.paths)==null?void 0:n.length)??0)&&(t.load=!0)}finally{t.loading=!1}}},async reset(){t.res=[],t.load=!1,await t.next()}}),{queue:W,images:l,onContextMenuClickU:b,stackViewEl:K,previewIdx:p,previewing:y,onPreviewVisibleChange:O,previewImgMove:M,canPreview:A,itemSize:V,gridItems:q,showGenInfo:k,imageGenInfo:F,q:Q,multiSelectedIdxs:w,onFileItemClick:X,scroller:z,showMenuIdx:_,onFileDragStart:Y,onFileDragEnd:j,cellWidth:H,onScroll:D,saveAllFileAsJson:Z,saveLoadedFileAsJson:ee,changeIndchecked:te,seedChangeChecked:le,getGenDiff:ie,getGenDiffWatchDep:ne}=Te(t);me(()=>h.paths,async()=>{var n;await t.reset({refetch:!0}),await ge(),(n=z.value)==null||n.scrollToItem(0),D()},{immediate:!0});const se=he(),{onClearAllSelected:oe,onSelectAll:ae,onReverseSelect:de}=Fe(),ce=()=>{l.value.length!==0&&N(l.value,0)};return(n,i)=>{const u=Ve,f=we,C=_e,m=Ce,S=be;return g(),I("div",{class:"container",ref_key:"stackViewEl",ref:K},[s(u,{show:!!e(w).length||e(se).keepMultiSelect,onClearAllSelected:e(oe),onSelectAll:e(ae),onReverseSelect:e(de)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(S,{size:"large",spinning:!e(W).isIdle||t.loading},{default:o(()=>{var T,$,G,R;return[s(C,{visible:e(k),"onUpdate:visible":i[1]||(i[1]=a=>P(k)?k.value=a:null),width:"70vw","mask-closable":"",onOk:i[2]||(i[2]=a=>k.value=!1)},{cancelText:o(()=>[]),default:o(()=>[s(f,{active:"",loading:!e(Q).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:i[0]||(i[0]=a=>e(ke)(e(F)))},[d("div",$e,c(n.$t("doubleClickToCopy")),1),v(" "+c(e(F)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ge,[d("div",Re,"🧩 "+c(h.title),1),Be,s(m,{onClick:ce,disabled:!((T=e(l))!=null&&T.length)},{default:o(()=>[v(c(n.$t("tiktokView")),1)]),_:1},8,["disabled"]),s(m,{onClick:e(ee),disabled:!(($=e(l))!=null&&$.length)},{default:o(()=>[v(c(n.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick","disabled"]),s(m,{onClick:e(Z),disabled:!((G=e(l))!=null&&G.length)},{default:o(()=>[v(c(n.$t("saveAllAsJson")),1)]),_:1},8,["onClick","disabled"])]),(R=e(l))!=null&&R.length?(g(),U(e(ze),{key:0,ref_key:"scroller",ref:z,class:"file-list",items:e(l),"item-size":e(V).first,"key-field":"fullpath","item-secondary-size":e(V).second,gridItems:e(q),onScroll:e(D)},{after:o(()=>[Le]),default:o(({item:a,index:B})=>[s(De,{idx:B,file:a,"cell-width":e(H),"show-menu-idx":e(_),"onUpdate:showMenuIdx":i[3]||(i[3]=L=>P(_)?_.value=L:null),onDragstart:e(Y),onDragend:e(j),onFileItemClick:e(X),onTiktokView:(L,re)=>e(N)(e(l),re),"full-screen-preview-image-url":e(l)[e(p)]?e(ve)(e(l)[e(p)]):"",selected:e(w).includes(B),onContextMenuClick:e(b),onPreviewVisibleChange:e(O),"is-selected-mutil-files":e(w).length>1,"enable-change-indicator":e(te),"seed-change-checked":e(le),"get-gen-diff":e(ie),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):(g(),I("div",Pe,Ee)),e(y)?(g(),I("div",Je,[s(e(ye),{onClick:i[4]||(i[4]=a=>e(M)("prev")),class:E({disable:!e(A)("prev")})},null,8,["class"]),s(e(Me),{onClick:i[5]||(i[5]=a=>e(M)("next")),class:E({disable:!e(A)("next")})},null,8,["class"])])):J("",!0)]}),_:1},8,["spinning"]),e(y)&&e(l)&&e(l)[e(p)]?(g(),U(Ae,{key:0,file:e(l)[e(p)],idx:e(p),onContextMenuClick:e(b)},null,8,["file","idx","onContextMenuClick"])):J("",!0)],512)}}});const st=xe(Ne,[["__scopeId","data-v-795e5ef4"]]);export{st as default}; +import{d as pe,am as ue,bF as fe,m as me,az as ge,a1 as he,U as g,V as I,c as s,a4 as e,a3 as o,a6 as P,W as d,L as ke,Y as c,X as v,a2 as U,af as ve,ag as E,$ as J,ai as we,T as _e,ak as Ce,aP as Se,aQ as Ie,a0 as xe}from"./index-0205daf8.js";import{S as be}from"./index-af89284c.js";import{o as N,L as ye,R as Me,f as Ae,M as Ve}from"./MultiSelectKeep-74181f4c.js";import{c as Fe,d as ze,F as De}from"./FileItem-cc53e03a.js";import{u as Te}from"./hook-4ff6f457.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";/* empty css */import"./index-6a8edab1.js";import"./index-728b29ca.js";import"./index-e9cc5bd5.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./useGenInfoDiff-13d2ea38.js";const x=r=>(Se("data-v-795e5ef4"),r=r(),Ie(),r),$e={class:"hint"},Ge={class:"action-bar"},Re={class:"title line-clamp-1"},Be=x(()=>d("div",{"flex-placeholder":""},null,-1)),Le=x(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Pe={key:1,class:"no-res-hint"},Ue=x(()=>d("p",{class:"hint"},"暂无结果",-1)),Ee=[Ue],Je={key:2,class:"preview-switch"},Ne=pe({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},id:{},title:{},paths:{}},setup(r){const h=r,t=ue({res:[],load:!1,loading:!1,async next(){var n;if(!(t.loading||t.load)){t.loading=!0;try{const u=t.res.length,f=(h.paths??[]).slice(u,u+200);if(!f.length){t.load=!0;return}const C=await fe(f),m=f.map(S=>C[S]).filter(Boolean);t.res.push(...m),u+200>=(((n=h.paths)==null?void 0:n.length)??0)&&(t.load=!0)}finally{t.loading=!1}}},async reset(){t.res=[],t.load=!1,await t.next()}}),{queue:W,images:l,onContextMenuClickU:b,stackViewEl:K,previewIdx:p,previewing:y,onPreviewVisibleChange:O,previewImgMove:M,canPreview:A,itemSize:V,gridItems:q,showGenInfo:k,imageGenInfo:F,q:Q,multiSelectedIdxs:w,onFileItemClick:X,scroller:z,showMenuIdx:_,onFileDragStart:Y,onFileDragEnd:j,cellWidth:H,onScroll:D,saveAllFileAsJson:Z,saveLoadedFileAsJson:ee,changeIndchecked:te,seedChangeChecked:le,getGenDiff:ie,getGenDiffWatchDep:ne}=Te(t);me(()=>h.paths,async()=>{var n;await t.reset({refetch:!0}),await ge(),(n=z.value)==null||n.scrollToItem(0),D()},{immediate:!0});const se=he(),{onClearAllSelected:oe,onSelectAll:ae,onReverseSelect:de}=Fe(),ce=()=>{l.value.length!==0&&N(l.value,0)};return(n,i)=>{const u=Ve,f=we,C=_e,m=Ce,S=be;return g(),I("div",{class:"container",ref_key:"stackViewEl",ref:K},[s(u,{show:!!e(w).length||e(se).keepMultiSelect,onClearAllSelected:e(oe),onSelectAll:e(ae),onReverseSelect:e(de)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(S,{size:"large",spinning:!e(W).isIdle||t.loading},{default:o(()=>{var T,$,G,R;return[s(C,{visible:e(k),"onUpdate:visible":i[1]||(i[1]=a=>P(k)?k.value=a:null),width:"70vw","mask-closable":"",onOk:i[2]||(i[2]=a=>k.value=!1)},{cancelText:o(()=>[]),default:o(()=>[s(f,{active:"",loading:!e(Q).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:i[0]||(i[0]=a=>e(ke)(e(F)))},[d("div",$e,c(n.$t("doubleClickToCopy")),1),v(" "+c(e(F)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ge,[d("div",Re,"🧩 "+c(h.title),1),Be,s(m,{onClick:ce,disabled:!((T=e(l))!=null&&T.length)},{default:o(()=>[v(c(n.$t("tiktokView")),1)]),_:1},8,["disabled"]),s(m,{onClick:e(ee),disabled:!(($=e(l))!=null&&$.length)},{default:o(()=>[v(c(n.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick","disabled"]),s(m,{onClick:e(Z),disabled:!((G=e(l))!=null&&G.length)},{default:o(()=>[v(c(n.$t("saveAllAsJson")),1)]),_:1},8,["onClick","disabled"])]),(R=e(l))!=null&&R.length?(g(),U(e(ze),{key:0,ref_key:"scroller",ref:z,class:"file-list",items:e(l),"item-size":e(V).first,"key-field":"fullpath","item-secondary-size":e(V).second,gridItems:e(q),onScroll:e(D)},{after:o(()=>[Le]),default:o(({item:a,index:B})=>[s(De,{idx:B,file:a,"cell-width":e(H),"show-menu-idx":e(_),"onUpdate:showMenuIdx":i[3]||(i[3]=L=>P(_)?_.value=L:null),onDragstart:e(Y),onDragend:e(j),onFileItemClick:e(X),onTiktokView:(L,re)=>e(N)(e(l),re),"full-screen-preview-image-url":e(l)[e(p)]?e(ve)(e(l)[e(p)]):"",selected:e(w).includes(B),onContextMenuClick:e(b),onPreviewVisibleChange:e(O),"is-selected-mutil-files":e(w).length>1,"enable-change-indicator":e(te),"seed-change-checked":e(le),"get-gen-diff":e(ie),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):(g(),I("div",Pe,Ee)),e(y)?(g(),I("div",Je,[s(e(ye),{onClick:i[4]||(i[4]=a=>e(M)("prev")),class:E({disable:!e(A)("prev")})},null,8,["class"]),s(e(Me),{onClick:i[5]||(i[5]=a=>e(M)("next")),class:E({disable:!e(A)("next")})},null,8,["class"])])):J("",!0)]}),_:1},8,["spinning"]),e(y)&&e(l)&&e(l)[e(p)]?(g(),U(Ae,{key:0,file:e(l)[e(p)],idx:e(p),onContextMenuClick:e(b)},null,8,["file","idx","onContextMenuClick"])):J("",!0)],512)}}});const st=xe(Ne,[["__scopeId","data-v-795e5ef4"]]);export{st as default}; diff --git a/vue/dist/assets/MatchedImageGrid-380ef8e8.js b/vue/dist/assets/MatchedImageGrid-e6c6fa7f.js similarity index 87% rename from vue/dist/assets/MatchedImageGrid-380ef8e8.js rename to vue/dist/assets/MatchedImageGrid-e6c6fa7f.js index 34a6dbc..eaaf03e 100644 --- a/vue/dist/assets/MatchedImageGrid-380ef8e8.js +++ b/vue/dist/assets/MatchedImageGrid-e6c6fa7f.js @@ -1 +1 @@ -import{d as ke,r as he,m as C,az as B,a1 as ve,U as u,V as S,c as n,a4 as e,a3 as o,a6 as G,W as d,L as we,Y as a,X as p,a2 as U,af as Ie,aT as _e,$ as b,ag as E,ai as Ce,T as Se,ak as L,aP as be,aQ as ye,bE as xe,a0 as Me}from"./index-d6594e8e.js";import{S as Te}from"./index-4be8cdd9.js";import{_ as Ae}from"./index-e620c28b.js";import{o as N,L as Ve,R as $e,f as De,M as Fe}from"./MultiSelectKeep-ba3817a4.js";import{c as Re,d as ze,F as Be}from"./FileItem-2eb00024.js";import{c as Ge,u as Ue}from"./hook-a2b05396.js";import"./shortcut-0468cdd7.js";import"./Checkbox-59427a1c.js";/* empty css */import"./index-cb6a3d31.js";import"./index-9b184148.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";import"./_isIterateeCall-bfd79848.js";import"./index-30b8f89a.js";import"./useGenInfoDiff-f63a5430.js";const Ee=r=>(be("data-v-6e837a6f"),r=r(),ye(),r),Le={class:"hint"},Ne={class:"action-bar"},Pe=Ee(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Je={key:1},We={class:"no-res-hint"},Ke={class:"hint"},Oe={key:2,class:"preview-switch"},qe=ke({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(r){const k=r,m=he(!1),g=Ge(t=>xe({...k.selectedTagIds,random_sort:m.value},t)),{queue:P,images:s,onContextMenuClickU:y,stackViewEl:J,previewIdx:c,previewing:x,onPreviewVisibleChange:W,previewImgMove:M,canPreview:T,itemSize:A,gridItems:K,showGenInfo:f,imageGenInfo:V,q:O,multiSelectedIdxs:h,onFileItemClick:q,scroller:v,showMenuIdx:w,onFileDragStart:Q,onFileDragEnd:X,cellWidth:Y,onScroll:I,saveAllFileAsJson:j,props:H,saveLoadedFileAsJson:Z,changeIndchecked:ee,seedChangeChecked:te,getGenDiff:le,getGenDiffWatchDep:ne}=Ue(g);C(()=>k.selectedTagIds,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()},{immediate:!0}),C(m,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()}),C(()=>k,async t=>{H.value=t},{deep:!0,immediate:!0});const se=ve(),{onClearAllSelected:ie,onSelectAll:oe,onReverseSelect:ae}=Re(),de=()=>{s.value.length!==0&&N(s.value,0)};return(t,l)=>{const re=Fe,ce=Ce,ue=Se,pe=Ae,_=L,me=L,ge=Te;return u(),S("div",{class:"container",ref_key:"stackViewEl",ref:J},[n(re,{show:!!e(h).length||e(se).keepMultiSelect,onClearAllSelected:e(ie),onSelectAll:e(oe),onReverseSelect:e(ae)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),n(ge,{size:"large",spinning:!e(P).isIdle},{default:o(()=>{var $,D,F;return[n(ue,{visible:e(f),"onUpdate:visible":l[1]||(l[1]=i=>G(f)?f.value=i:null),width:"70vw","mask-closable":"",onOk:l[2]||(l[2]=i=>f.value=!1)},{cancelText:o(()=>[]),default:o(()=>[n(ce,{active:"",loading:!e(O).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[0]||(l[0]=i=>e(we)(e(V)))},[d("div",Le,a(t.$t("doubleClickToCopy")),1),p(" "+a(e(V)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ne,[n(pe,{checked:m.value,"onUpdate:checked":l[3]||(l[3]=i=>m.value=i),"checked-children":t.$t("randomSort"),"un-checked-children":t.$t("sortByDate")},null,8,["checked","checked-children","un-checked-children"]),n(_,{onClick:de,disabled:!(($=e(s))!=null&&$.length)},{default:o(()=>[p(a(t.$t("tiktokView")),1)]),_:1},8,["disabled"]),n(_,{onClick:e(Z)},{default:o(()=>[p(a(t.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),n(_,{onClick:e(j)},{default:o(()=>[p(a(t.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(D=e(s))!=null&&D.length?(u(),U(e(ze),{key:0,ref_key:"scroller",ref:v,class:"file-list",items:e(s),"item-size":e(A).first,"key-field":"fullpath","item-secondary-size":e(A).second,gridItems:e(K),onScroll:e(I)},{after:o(()=>[Pe]),default:o(({item:i,index:R})=>[n(Be,{idx:R,file:i,"cell-width":e(Y),"show-menu-idx":e(w),"onUpdate:showMenuIdx":l[4]||(l[4]=z=>G(w)?w.value=z:null),onDragstart:e(Q),onDragend:e(X),onFileItemClick:e(q),onTiktokView:(z,fe)=>e(N)(e(s),fe),"full-screen-preview-image-url":e(s)[e(c)]?e(Ie)(e(s)[e(c)]):"",selected:e(h).includes(R),onContextMenuClick:e(y),onPreviewVisibleChange:e(W),"is-selected-mutil-files":e(h).length>1,"enable-change-indicator":e(ee),"seed-change-checked":e(te),"get-gen-diff":e(le),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(g).load&&t.selectedTagIds.and_tags.length===1&&!((F=t.selectedTagIds.folder_paths_str)!=null&&F.trim())?(u(),S("div",Je,[d("div",We,[d("p",Ke,a(t.$t("tagSearchNoResultsMessage")),1),n(me,{onClick:l[5]||(l[5]=i=>e(_e)()),type:"primary"},{default:o(()=>[p(a(t.$t("rebuildImageIndex")),1)]),_:1})])])):b("",!0),e(x)?(u(),S("div",Oe,[n(e(Ve),{onClick:l[6]||(l[6]=i=>e(M)("prev")),class:E({disable:!e(T)("prev")})},null,8,["class"]),n(e($e),{onClick:l[7]||(l[7]=i=>e(M)("next")),class:E({disable:!e(T)("next")})},null,8,["class"])])):b("",!0)]}),_:1},8,["spinning"]),e(x)&&e(s)&&e(s)[e(c)]?(u(),U(De,{key:0,file:e(s)[e(c)],idx:e(c),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):b("",!0)],512)}}});const rt=Me(qe,[["__scopeId","data-v-6e837a6f"]]);export{rt as default}; +import{d as ke,r as he,m as C,az as B,a1 as ve,U as u,V as S,c as n,a4 as e,a3 as o,a6 as G,W as d,L as we,Y as a,X as p,a2 as U,af as Ie,aT as _e,$ as b,ag as E,ai as Ce,T as Se,ak as L,aP as be,aQ as ye,bE as xe,a0 as Me}from"./index-0205daf8.js";import{S as Te}from"./index-af89284c.js";import{_ as Ae}from"./index-728b29ca.js";import{o as N,L as Ve,R as $e,f as De,M as Fe}from"./MultiSelectKeep-74181f4c.js";import{c as Re,d as ze,F as Be}from"./FileItem-cc53e03a.js";import{c as Ge,u as Ue}from"./hook-4ff6f457.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";/* empty css */import"./index-6a8edab1.js";import"./index-e9cc5bd5.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./useGenInfoDiff-13d2ea38.js";const Ee=r=>(be("data-v-6e837a6f"),r=r(),ye(),r),Le={class:"hint"},Ne={class:"action-bar"},Pe=Ee(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Je={key:1},We={class:"no-res-hint"},Ke={class:"hint"},Oe={key:2,class:"preview-switch"},qe=ke({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(r){const k=r,m=he(!1),g=Ge(t=>xe({...k.selectedTagIds,random_sort:m.value},t)),{queue:P,images:s,onContextMenuClickU:y,stackViewEl:J,previewIdx:c,previewing:x,onPreviewVisibleChange:W,previewImgMove:M,canPreview:T,itemSize:A,gridItems:K,showGenInfo:f,imageGenInfo:V,q:O,multiSelectedIdxs:h,onFileItemClick:q,scroller:v,showMenuIdx:w,onFileDragStart:Q,onFileDragEnd:X,cellWidth:Y,onScroll:I,saveAllFileAsJson:j,props:H,saveLoadedFileAsJson:Z,changeIndchecked:ee,seedChangeChecked:te,getGenDiff:le,getGenDiffWatchDep:ne}=Ue(g);C(()=>k.selectedTagIds,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()},{immediate:!0}),C(m,async()=>{var t;await g.reset(),await B(),(t=v.value)==null||t.scrollToItem(0),I()}),C(()=>k,async t=>{H.value=t},{deep:!0,immediate:!0});const se=ve(),{onClearAllSelected:ie,onSelectAll:oe,onReverseSelect:ae}=Re(),de=()=>{s.value.length!==0&&N(s.value,0)};return(t,l)=>{const re=Fe,ce=Ce,ue=Se,pe=Ae,_=L,me=L,ge=Te;return u(),S("div",{class:"container",ref_key:"stackViewEl",ref:J},[n(re,{show:!!e(h).length||e(se).keepMultiSelect,onClearAllSelected:e(ie),onSelectAll:e(oe),onReverseSelect:e(ae)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),n(ge,{size:"large",spinning:!e(P).isIdle},{default:o(()=>{var $,D,F;return[n(ue,{visible:e(f),"onUpdate:visible":l[1]||(l[1]=i=>G(f)?f.value=i:null),width:"70vw","mask-closable":"",onOk:l[2]||(l[2]=i=>f.value=!1)},{cancelText:o(()=>[]),default:o(()=>[n(ce,{active:"",loading:!e(O).isIdle},{default:o(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:l[0]||(l[0]=i=>e(we)(e(V)))},[d("div",Le,a(t.$t("doubleClickToCopy")),1),p(" "+a(e(V)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ne,[n(pe,{checked:m.value,"onUpdate:checked":l[3]||(l[3]=i=>m.value=i),"checked-children":t.$t("randomSort"),"un-checked-children":t.$t("sortByDate")},null,8,["checked","checked-children","un-checked-children"]),n(_,{onClick:de,disabled:!(($=e(s))!=null&&$.length)},{default:o(()=>[p(a(t.$t("tiktokView")),1)]),_:1},8,["disabled"]),n(_,{onClick:e(Z)},{default:o(()=>[p(a(t.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),n(_,{onClick:e(j)},{default:o(()=>[p(a(t.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(D=e(s))!=null&&D.length?(u(),U(e(ze),{key:0,ref_key:"scroller",ref:v,class:"file-list",items:e(s),"item-size":e(A).first,"key-field":"fullpath","item-secondary-size":e(A).second,gridItems:e(K),onScroll:e(I)},{after:o(()=>[Pe]),default:o(({item:i,index:R})=>[n(Be,{idx:R,file:i,"cell-width":e(Y),"show-menu-idx":e(w),"onUpdate:showMenuIdx":l[4]||(l[4]=z=>G(w)?w.value=z:null),onDragstart:e(Q),onDragend:e(X),onFileItemClick:e(q),onTiktokView:(z,fe)=>e(N)(e(s),fe),"full-screen-preview-image-url":e(s)[e(c)]?e(Ie)(e(s)[e(c)]):"",selected:e(h).includes(R),onContextMenuClick:e(y),onPreviewVisibleChange:e(W),"is-selected-mutil-files":e(h).length>1,"enable-change-indicator":e(ee),"seed-change-checked":e(te),"get-gen-diff":e(le),"get-gen-diff-watch-dep":e(ne)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","onTiktokView","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(g).load&&t.selectedTagIds.and_tags.length===1&&!((F=t.selectedTagIds.folder_paths_str)!=null&&F.trim())?(u(),S("div",Je,[d("div",We,[d("p",Ke,a(t.$t("tagSearchNoResultsMessage")),1),n(me,{onClick:l[5]||(l[5]=i=>e(_e)()),type:"primary"},{default:o(()=>[p(a(t.$t("rebuildImageIndex")),1)]),_:1})])])):b("",!0),e(x)?(u(),S("div",Oe,[n(e(Ve),{onClick:l[6]||(l[6]=i=>e(M)("prev")),class:E({disable:!e(T)("prev")})},null,8,["class"]),n(e($e),{onClick:l[7]||(l[7]=i=>e(M)("next")),class:E({disable:!e(T)("next")})},null,8,["class"])])):b("",!0)]}),_:1},8,["spinning"]),e(x)&&e(s)&&e(s)[e(c)]?(u(),U(De,{key:0,file:e(s)[e(c)],idx:e(c),onContextMenuClick:e(y)},null,8,["file","idx","onContextMenuClick"])):b("",!0)],512)}}});const rt=Me(qe,[["__scopeId","data-v-6e837a6f"]]);export{rt as default}; diff --git a/vue/dist/assets/MultiSelectKeep-ba3817a4.js b/vue/dist/assets/MultiSelectKeep-74181f4c.js similarity index 91% rename from vue/dist/assets/MultiSelectKeep-ba3817a4.js rename to vue/dist/assets/MultiSelectKeep-74181f4c.js index 9d7ac79..85d4897 100644 --- a/vue/dist/assets/MultiSelectKeep-ba3817a4.js +++ b/vue/dist/assets/MultiSelectKeep-74181f4c.js @@ -1,10 +1,10 @@ -import{bk as Tt,c as u,A as we,cX as Oe,ct as ae,z as Q,B as x,m as ye,y as Je,cY as ht,cQ as Nt,cc as tt,T as be,cZ as Lt,ak as ve,cM as Bt,c_ as St,c$ as Ye,d0 as Xt,d1 as Et,d2 as At,d3 as Ht,d4 as Jt,af as de,r as ie,Q as Ze,d5 as Ft,H as ft,d6 as Yt,d7 as Ge,d8 as Zt,X as M,ae as Gt,d9 as Ke,R as Te,N as Kt,da as Qt,db as Rt,L as pe,dc as en,dd as tn,cs as nn,de as an,df as on,dg as ln,t as mt,dh as sn,o as It,az as un,a1 as nt,J as ke,K as Qe,am as rn,G as ee,di as cn,n as Ae,aR as dn,d as Pt,dj as gn,c9 as pn,cv as We,aS as hn,U as h,V as z,a4 as c,$ as X,W as k,a2 as se,dk as fn,dl as mn,a3 as b,dm as vt,Z as R,Y as v,a8 as ue,a5 as yt,a7 as Ue,ag as qe,a6 as Le,dn as Ve,dp as vn,al as yn,dq as $n,dr as wn,M as _n,aN as bn,ds as kn,dt as On,aP as zn,aQ as xn,a0 as Dt}from"./index-d6594e8e.js";import{u as Fe,e as Re,g as Z,h as $t,i as ge,r as Cn,t as Ne,j as Mn,s as wt,k as Se,_ as Tn}from"./FileItem-2eb00024.js";import{C as Ln,g as Sn}from"./shortcut-0468cdd7.js";/* empty css */import{_ as En}from"./index-cb6a3d31.js";import{_ as An}from"./index-e620c28b.js";import{D as Fn}from"./index-9b184148.js";const $e=(...e)=>{document.addEventListener(...e),Tt(()=>document.removeEventListener(...e))};var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};const Pn=In;function _t(e){for(var t=1;t{var f;s.value=S,I!=null&&!S&&p&&((f=w.value)==null||f.scrollToItem(I),I=null)},W=()=>{if(!P("next")){if(e!=null&&e.loadNext)return e.loadNext();T.value.mode==="walk"&&a.value&&(Q.info(x("loadingNextFolder")),n.value.emit("loadNextDir",!0))}};$e("keydown",S=>{var p;if(s.value){let f=t.value;if(["ArrowDown","ArrowRight"].includes(S.key))for(f++;i.value[f]&&!ae(i.value[f].name);)f++;else if(["ArrowUp","ArrowLeft"].includes(S.key))for(f--;i.value[f]&&!ae(i.value[f].name);)f--;if(ae((p=i.value[f])==null?void 0:p.name)??""){t.value=f;const E=w.value;E&&!(f>=E.$_startIndex&&f<=E.$_endIndex)&&(I=f)}W()}});const L=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;if(ae((f=i.value[p])==null?void 0:f.name)??""){t.value=p;const E=w.value;E&&!(p>=E.$_startIndex&&p<=E.$_endIndex)&&(I=p)}W()},P=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;return ae((f=i.value[p])==null?void 0:f.name)};return Re("removeFiles",async()=>{s.value&&!A.sortedFiles[t.value]&&Oe()}),{previewIdx:t,onPreviewVisibleChange:V,previewing:s,previewImgMove:L,canPreview:P}}function Be(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bt(e)}function ko(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:a,eventEmitter:s,walker:i}=Fe().toRefs(),w=()=>{a.value=[]};return $e("click",()=>{Z.keepMultiSelect||w()}),$e("blur",()=>{Z.keepMultiSelect||w()}),ye(n,w),{onFileDragStart:(V,W)=>{const L=Je(t.value[W]);$t.fileDragging=!0,console.log("onFileDragStart set drag file ",V,W,L);const P=[L];let S=L.type==="dir";if(a.value.includes(W)){const f=a.value.map(E=>t.value[E]);P.push(...f),S=f.some(E=>E.type==="dir")}const p={includeDir:S,loc:e.value||"search-result",path:ht(P,"fullpath").map(f=>f.fullpath),nodes:ht(P,"fullpath"),__id:"FileTransferData"};V.dataTransfer.setData("text/plain",JSON.stringify(p))},onDrop:async V=>{if(i.value)return;const W=Nt(V);if(!W)return;const L=e.value;if(W.loc===L)return;const P=tt(),S=async()=>P.pushAction(async()=>{await St(W.path,L),s.value.emit("refresh"),be.destroyAll()}),p=()=>P.pushAction(async()=>{await Ye(W.path,L),ge.emit("removeFiles",{paths:W.path,loc:W.loc}),s.value.emit("refresh"),be.destroyAll()});be.confirm({title:x("confirm")+"?",width:"60vw",content:()=>{let f,E,te;return u("div",null,[u("div",null,[`${x("moveSelectedFilesTo")} ${L}`,u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[W.path.map(m=>u("li",null,[m.split(/[/\\]/).pop()]))])]),u(Lt,null,null),u("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[u(ve,{onClick:be.destroyAll},Be(f=x("cancel"))?f:{default:()=>[f]}),u(ve,{type:"primary",loading:!P.isIdle,onClick:S},Be(E=x("copy"))?E:{default:()=>[E]}),u(ve,{type:"primary",loading:!P.isIdle,onClick:p},Be(te=x("move"))?te:{default:()=>[te]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:a,onFileDragEnd:()=>{$t.fileDragging=!1}}}const oa=e=>{const t=Et(e.name),n=At(e.name);let a,s;return t?(a=Ht(e),s="video"):n?(a=Jt(e),s="audio"):(a=de(e),s="image"),{id:e.fullpath,url:a,type:s,originalFile:e,name:e.name,fullpath:e.fullpath}},la=e=>e.filter(t=>t.type==="file"&&(ae(t.name)||Et(t.name)||At(t.name))).map(oa),sa=(e,t=0)=>{t=Math.min(t,e.length-1),t=Math.max(t,0);const n=Xt(),a=la(e);if(a.length===0){console.warn("没有找到可以显示的媒体文件");return}let s=0;if(tw.id===i.fullpath),s===-1&&(s=0)}n.openTiktokView(a,s)};function Oo({openNext:e}){const t=ie(!1),n=ie(""),{sortedFiles:a,previewIdx:s,multiSelectedIdxs:i,stack:w,currLocation:T,spinning:A,previewing:I,stackViewEl:V,eventEmitter:W,props:L,deletedFiles:P}=Fe().toRefs(),S=ft;Re("removeFiles",({paths:m,loc:l})=>{S(l)!==S(T.value)||!Ze(w.value)||(m.forEach($=>P.value.add($)),m.filter(ae).forEach($=>P.value.add($.replace(/\.\w+$/,".txt"))))}),Re("addFiles",({files:m,loc:l})=>{if(S(l)!==S(T.value))return;const y=Ze(w.value);y&&y.files.unshift(...m)});const p=tt(),f=async(m,l,y)=>{s.value=y,Z.fullscreenPreviewInitialUrl=de(l);const $=i.value.indexOf(y);if(m.shiftKey){if($!==-1)i.value.splice($,1);else{i.value.push(y),i.value.sort((U,G)=>U-G);const F=i.value[0],H=i.value[i.value.length-1];i.value=Cn(F,H+1)}m.stopPropagation()}else m.ctrlKey||m.metaKey?($!==-1?i.value.splice($,1):i.value.push(y),m.stopPropagation()):await e(l)},E=async(m,l,y)=>{var ce,ne,ze;const $=de(l),F=T.value,H={IIB_container_id:parent.IIB_container_id},U=()=>{let d=[];return i.value.includes(y)?d=i.value.map(_=>a.value[_]):d.push(l),d},G=async d=>{if(!A.value)try{A.value=!0,await an(l.fullpath),Se.postMessage({...H,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await on(),Se.postMessage({...H,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${d}`})}catch(_){console.error(_),Q.error("发送图像失败,请携带console的错误消息找开发者")}finally{A.value=!1}},K=`${m.key}`;if(K.startsWith("toggle-tag-")){const d=+K.split("toggle-tag-")[1],{is_remove:_}=await Yt({tag_id:d,img_path:l.fullpath}),q=(ne=(ce=Z.conf)==null?void 0:ce.all_custom_tags.find(D=>D.id===d))==null?void 0:ne.name;await Ne.refreshTags([l.fullpath]),Q.success(x(_?"removedTagFromImage":"addedTagToImage",{tag:q}));return}else if(K==="add-custom-tag")Ge();else if(K.startsWith("batch-add-tag-")||K.startsWith("batch-remove-tag-")){const d=+K.split("-tag-")[1],_=K.includes("add")?"add":"remove",q=U().map(D=>D.fullpath);await Zt({tag_id:d,img_paths:q,action:_}),await Ne.refreshTags(q),Q.success(x(_==="add"?"addCompleted":"removeCompleted"));return}else if(K.startsWith("copy-to-")){const d=K.split("copy-to-")[1],_=U(),q=_.map(D=>D.fullpath);await St(q,d,!0),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("copySuccess"));return}else if(K.startsWith("move-to-")){const d=K.split("move-to-")[1],_=U(),q=_.map(D=>D.fullpath);await Ye(q,d,!0),ge.emit("removeFiles",{paths:q,loc:T.value}),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("moveSuccess"));return}switch(m.key){case"previewInNewWindow":return window.open($);case"copyFilePath":return pe(l.fullpath);case"saveSelectedAsJson":return nn(U());case"openWithDefaultApp":return tn(l.fullpath);case"download":{const d=U();en(d.map(_=>de(_,!0)));break}case"copyPreviewUrl":return pe(parent.document.location.origin+$);case"rename":{let d=await Rt(l.fullpath);d=ft(d);const _=Ne.tagMap;_.set(d,_.get(l.fullpath)??[]),_.delete(l.fullpath),l.fullpath=d,l.name=d.split(/[\\/]/).pop()??"";return}case"send2txt2img":return G("txt2img");case"send2img2img":return G("img2img");case"send2inpaint":return G("inpaint");case"send2extras":return G("extras");case"send2savedDir":{const d=Z.quickMovePaths.find(D=>D.key==="outdir_save");if(!d)return Q.error(x("unknownSavedDir"));const _=Qt(d.dir,(ze=Z.conf)==null?void 0:ze.sd_cwd),q=U();await Ye(q.map(D=>D.fullpath),_,!0),ge.emit("removeFiles",{paths:q.map(D=>D.fullpath),loc:T.value}),ge.emit("addFiles",{files:q,loc:_});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const d=m.key.split("-")[1];Se.postMessage({...H,event:"send_to_control_net",type:d,url:de(l)});break}case"send2outpaint":{n.value=await p.pushAction(()=>Ke(l.fullpath)).res;const[d,_]=(n.value||"").split(` -`);Se.postMessage({...H,event:"send_to_outpaint",url:de(l),prompt:d,negPrompt:_.slice(17)});break}case"openWithWalkMode":{wt.set(F,w.value);const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Te(),path:l.fullpath,name:x("local"),stackKey:F,mode:"walk"};d.panes.push(_),d.key=_.key;break}case"openFileLocationInNewTab":case"openInNewTab":{const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Te(),path:m.key==="openInNewTab"?l.fullpath:Kt(l.fullpath),name:x("local"),mode:"scanned-fixed"};d.panes.push(_),d.key=_.key;break}case"openOnTheRight":{wt.set(F,w.value);let d=Z.tabList[L.value.tabIdx+1];d||(d={panes:[],key:"",id:Te()},Z.tabList[L.value.tabIdx+1]=d);const _={type:"local",key:Te(),path:l.fullpath,name:x("local"),stackKey:F};d.panes.push(_),d.key=_.key;break}case"send2BatchDownload":{Mn.addFiles(U());break}case"viewGenInfo":{t.value=!0,n.value=await p.pushAction(()=>Ke(l.fullpath)).res;break}case"tiktokView":{sa(a.value,y);break}case"openWithLocalFileBrowser":{await Gt(l.fullpath);break}case"deleteFiles":{const d=U(),_=async()=>{const q=d.map(D=>D.fullpath);if(await ln(q),Q.success(x("deleteSuccess")),I.value){const D=de(l)===Z.fullscreenPreviewInitialUrl,he=s.value===a.value.length-1;if((D||he)&&(Oe(),await mt(100),D&&a.value.length>1)){const _e=s.value;mt(0).then(()=>sn(_e,V.value))}}ge.emit("removeFiles",{paths:q,loc:T.value})};if(d.length===1&&Z.ignoredConfirmActions.deleteOneOnly)return _();await new Promise(q=>{be.confirm({title:x("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>u("div",null,[u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[d.map(D=>u("li",null,[D.fullpath.split(/[/\\]/).pop()]))]),u(Lt,null,null),u(Ln,{checked:Z.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":D=>Z.ignoredConfirmActions.deleteOneOnly=D},{default:()=>[x("deleteOneOnlySkipConfirm"),M(" ("),x("resetOnGlobalSettingsPage"),M(")")]})]),async onOk(){await _(),q()}})});break}}return{}},{isOutside:te}=Ft(V);return $e("keydown",m=>{var y,$,F;const l=Sn(m);if(I.value){l==="Esc"&&Oe();const H=(y=Object.entries(Z.shortcut).find(U=>U[1]===l&&U[1]))==null?void 0:y[0];if(H){m.stopPropagation(),m.preventDefault();const U=s.value,G=a.value[U];switch(H){case"delete":return E({key:"deleteFiles"},G,U);case"download":return E({key:"download"},G,U);default:{const K=($=/^toggle_tag_(.*)$/.exec(H))==null?void 0:$[1],ce=(F=Z.conf)==null?void 0:F.all_custom_tags.find(ne=>ne.name===K);if(ce)return E({key:`toggle-tag-${ce.id}`},G,U);if(H.startsWith("copy_to_")){const ne=H.split("copy_to_")[1];return E({key:`copy-to-${ne}`},G,U)}if(H.startsWith("move_to_")){const ne=H.split("move_to_")[1];return E({key:`move-to-${ne}`},G,U)}}}}}else!te.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(l)&&(m.preventDefault(),m.stopPropagation(),W.value.emit("selectAll"))}),{onFileItemClick:f,onContextMenuClick:E,showGenInfo:t,imageGenInfo:n,q:p}}function ia(e,t,n,a){let s=0,i=0,w=typeof(a==null?void 0:a.width)=="number"?a.width:0,T=typeof(a==null?void 0:a.height)=="number"?a.height:0,A=typeof(a==null?void 0:a.left)=="number"?a.left:0,I=typeof(a==null?void 0:a.top)=="number"?a.top:0,V=!1;const W=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!t.value)&&(s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,w=e.value.offsetWidth,T=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",L),document.documentElement.addEventListener("touchmove",L),document.documentElement.addEventListener("mouseup",P),document.documentElement.addEventListener("touchend",P))},L=l=>{if(!e.value||!t.value)return;let y=w+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=T+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);e.value.offsetLeft+y>window.innerWidth&&(y=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+$>window.innerHeight&&($=window.innerHeight-e.value.offsetTop),e.value.style.width=`${y}px`,e.value.style.height=`${$}px`,a!=null&&a.onResize&&a.onResize(y,$)},P=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",P),document.documentElement.removeEventListener("touchend",P)},S=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!n.value)&&(V=!0,A=e.value.offsetLeft,I=e.value.offsetTop,s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,document.documentElement.addEventListener("mousemove",p),document.documentElement.addEventListener("touchmove",p),document.documentElement.addEventListener("mouseup",f),document.documentElement.addEventListener("touchend",f))},p=l=>{if(!e.value||!n.value||!V)return;const y=A+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=I+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);y<0?e.value.style.left="0px":y+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${y}px`,$<0?e.value.style.top="0px":$+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${$}px`,a!=null&&a.onDrag&&a.onDrag(y,$)},f=()=>{V=!1,document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f)},E=()=>{if(!e.value||!t.value)return;let l=e.value.offsetLeft,y=e.value.offsetTop,$=e.value.offsetWidth,F=e.value.offsetHeight;l+$>window.innerWidth&&(l=window.innerWidth-$,l<0&&(l=0,$=window.innerWidth)),y+F>window.innerHeight&&(y=window.innerHeight-F,y<0&&(y=0,F=window.innerHeight)),e.value.style.left=`${l}px`,e.value.style.top=`${y}px`,e.value.style.width=`${$}px`,e.value.style.height=`${F}px`},te=()=>{!e.value||!a||(typeof a.width=="number"&&(e.value.style.width=`${a.width}px`),typeof a.height=="number"&&(e.value.style.height=`${a.height}px`),typeof a.left=="number"&&(e.value.style.left=`${a.left}px`),typeof a.top=="number"&&(e.value.style.top=`${a.top}px`),E(),window.addEventListener("resize",E))},m=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",P),document.documentElement.removeEventListener("touchend",P),document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f),window.removeEventListener("resize",E)};return It(te),Tt(m),ye(()=>a==null?void 0:a.disbaled,async l=>{await un(),l!==void 0&&(l?m():te())}),ye(()=>[e.value,t.value,n.value],([l,y,$])=>{l&&y&&(y.addEventListener("mousedown",W),y.addEventListener("touchstart",W)),l&&$&&($.addEventListener("mousedown",S),$.addEventListener("touchstart",S))}),{handleResizeMouseDown:W,handleDragMouseDown:S}}let Ct=null;const ua=()=>{var A,I;const e=nt(),t=ke(Qe+"fullscreen_layout",{enable:!0,panelWidth:384,alwaysOn:!0}),n=rn(Ct??((I=(A=e.conf)==null?void 0:A.app_fe_setting)==null?void 0:I.fullscreen_layout)??Je(t.value)),a="--iib-lr-layout-info-panel-width",s=ee(()=>n.alwaysOn&&n.enable?n.panelWidth:0);ye(n,V=>{t.value=Je(V),Mt(n,a,s),ra(n),Ct=n},{deep:!0}),It(()=>Mt(n,a,s));const{enable:i,panelWidth:w,alwaysOn:T}=cn(n);return{state:n,isLeftRightLayout:i,panelwidtrhStyleVarName:a,lrLayoutInfoPanelWidth:w,lrMenuAlwaysOn:T}},ra=Ae(e=>dn("fullscreen_layout",e),300),Mt=Ae((e,t,n)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${n.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300);/*! +import{bk as Tt,c as u,A as we,cZ as Oe,ct as ae,z as Q,B as x,m as ye,y as Xe,c_ as ht,cS as Nt,cc as tt,T as be,c$ as Lt,ak as ve,cO as Bt,d0 as St,d1 as Ye,d2 as Ht,d3 as Et,d4 as At,d5 as Jt,d6 as Xt,af as de,r as ie,Q as Ze,d7 as Ft,H as ft,d8 as Yt,d9 as Ge,da as Zt,X as M,ae as Gt,db as Ke,R as Te,N as Kt,dc as Qt,dd as Rt,L as pe,de as en,df as tn,cs as nn,dg as an,dh as on,di as ln,t as mt,dj as sn,o as It,az as un,a1 as nt,J as ke,K as Qe,am as rn,G as ee,dk as cn,n as Ae,aR as dn,d as Dt,dl as gn,c9 as pn,cv as We,aS as hn,U as h,V as z,a4 as c,$ as H,W as k,a2 as se,cC as fn,cD as mn,a3 as b,dm as vt,Z as R,Y as v,a8 as ue,a5 as yt,a7 as Ue,ag as qe,a6 as Le,dn as Ve,dp as vn,al as yn,dq as $n,dr as wn,M as _n,aN as bn,ds as kn,dt as On,aP as zn,aQ as xn,a0 as Pt}from"./index-0205daf8.js";import{u as Fe,e as Re,g as Z,h as $t,i as ge,r as Cn,t as Ne,j as Mn,s as wt,k as Se,_ as Tn}from"./FileItem-cc53e03a.js";import{C as Ln,g as Sn}from"./shortcut-eca2d427.js";/* empty css */import{_ as En}from"./index-6a8edab1.js";import{_ as An}from"./index-728b29ca.js";import{D as Fn}from"./index-e9cc5bd5.js";const $e=(...e)=>{document.addEventListener(...e),Tt(()=>document.removeEventListener(...e))};var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};const Dn=In;function _t(e){for(var t=1;t{var f;s.value=S,I!=null&&!S&&p&&((f=w.value)==null||f.scrollToItem(I),I=null)},W=()=>{if(!D("next")){if(e!=null&&e.loadNext)return e.loadNext();T.value.mode==="walk"&&a.value&&(Q.info(x("loadingNextFolder")),n.value.emit("loadNextDir",!0))}};$e("keydown",S=>{var p;if(s.value){let f=t.value;if(["ArrowDown","ArrowRight"].includes(S.key))for(f++;i.value[f]&&!ae(i.value[f].name);)f++;else if(["ArrowUp","ArrowLeft"].includes(S.key))for(f--;i.value[f]&&!ae(i.value[f].name);)f--;if(ae((p=i.value[f])==null?void 0:p.name)??""){t.value=f;const E=w.value;E&&!(f>=E.$_startIndex&&f<=E.$_endIndex)&&(I=f)}W()}});const L=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;if(ae((f=i.value[p])==null?void 0:f.name)??""){t.value=p;const E=w.value;E&&!(p>=E.$_startIndex&&p<=E.$_endIndex)&&(I=p)}W()},D=S=>{var f;let p=t.value;if(S==="next")for(p++;i.value[p]&&!ae(i.value[p].name);)p++;else if(S==="prev")for(p--;i.value[p]&&!ae(i.value[p].name);)p--;return ae((f=i.value[p])==null?void 0:f.name)};return Re("removeFiles",async()=>{s.value&&!A.sortedFiles[t.value]&&Oe()}),{previewIdx:t,onPreviewVisibleChange:V,previewing:s,previewImgMove:L,canPreview:D}}function Be(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bt(e)}function ko(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:a,eventEmitter:s,walker:i}=Fe().toRefs(),w=()=>{a.value=[]};return $e("click",()=>{Z.keepMultiSelect||w()}),$e("blur",()=>{Z.keepMultiSelect||w()}),ye(n,w),{onFileDragStart:(V,W)=>{const L=Xe(t.value[W]);$t.fileDragging=!0,console.log("onFileDragStart set drag file ",V,W,L);const D=[L];let S=L.type==="dir";if(a.value.includes(W)){const f=a.value.map(E=>t.value[E]);D.push(...f),S=f.some(E=>E.type==="dir")}const p={includeDir:S,loc:e.value||"search-result",path:ht(D,"fullpath").map(f=>f.fullpath),nodes:ht(D,"fullpath"),__id:"FileTransferData"};V.dataTransfer.setData("text/plain",JSON.stringify(p))},onDrop:async V=>{if(i.value)return;const W=Nt(V);if(!W)return;const L=e.value;if(W.loc===L)return;const D=tt(),S=async()=>D.pushAction(async()=>{await St(W.path,L),s.value.emit("refresh"),be.destroyAll()}),p=()=>D.pushAction(async()=>{await Ye(W.path,L),ge.emit("removeFiles",{paths:W.path,loc:W.loc}),s.value.emit("refresh"),be.destroyAll()});be.confirm({title:x("confirm")+"?",width:"60vw",content:()=>{let f,E,te;return u("div",null,[u("div",null,[`${x("moveSelectedFilesTo")} ${L}`,u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[W.path.map(m=>u("li",null,[m.split(/[/\\]/).pop()]))])]),u(Lt,null,null),u("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[u(ve,{onClick:be.destroyAll},Be(f=x("cancel"))?f:{default:()=>[f]}),u(ve,{type:"primary",loading:!D.isIdle,onClick:S},Be(E=x("copy"))?E:{default:()=>[E]}),u(ve,{type:"primary",loading:!D.isIdle,onClick:p},Be(te=x("move"))?te:{default:()=>[te]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:a,onFileDragEnd:()=>{$t.fileDragging=!1}}}const oa=e=>{const t=Et(e.name),n=At(e.name);let a,s;return t?(a=Jt(e),s="video"):n?(a=Xt(e),s="audio"):(a=de(e),s="image"),{id:e.fullpath,url:a,type:s,originalFile:e,name:e.name,fullpath:e.fullpath}},la=e=>e.filter(t=>t.type==="file"&&(ae(t.name)||Et(t.name)||At(t.name))).map(oa),sa=(e,t=0)=>{t=Math.min(t,e.length-1),t=Math.max(t,0);const n=Ht(),a=la(e);if(a.length===0){console.warn("没有找到可以显示的媒体文件");return}let s=0;if(tw.id===i.fullpath),s===-1&&(s=0)}n.openTiktokView(a,s)};function Oo({openNext:e}){const t=ie(!1),n=ie(""),{sortedFiles:a,previewIdx:s,multiSelectedIdxs:i,stack:w,currLocation:T,spinning:A,previewing:I,stackViewEl:V,eventEmitter:W,props:L,deletedFiles:D}=Fe().toRefs(),S=ft;Re("removeFiles",({paths:m,loc:l})=>{S(l)!==S(T.value)||!Ze(w.value)||(m.forEach($=>D.value.add($)),m.filter(ae).forEach($=>D.value.add($.replace(/\.\w+$/,".txt"))))}),Re("addFiles",({files:m,loc:l})=>{if(S(l)!==S(T.value))return;const y=Ze(w.value);y&&y.files.unshift(...m)});const p=tt(),f=async(m,l,y)=>{s.value=y,Z.fullscreenPreviewInitialUrl=de(l);const $=i.value.indexOf(y);if(m.shiftKey){if($!==-1)i.value.splice($,1);else{i.value.push(y),i.value.sort((U,G)=>U-G);const F=i.value[0],J=i.value[i.value.length-1];i.value=Cn(F,J+1)}m.stopPropagation()}else m.ctrlKey||m.metaKey?($!==-1?i.value.splice($,1):i.value.push(y),m.stopPropagation()):await e(l)},E=async(m,l,y)=>{var ce,ne,ze;const $=de(l),F=T.value,J={IIB_container_id:parent.IIB_container_id},U=()=>{let d=[];return i.value.includes(y)?d=i.value.map(_=>a.value[_]):d.push(l),d},G=async d=>{if(!A.value)try{A.value=!0,await an(l.fullpath),Se.postMessage({...J,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await on(),Se.postMessage({...J,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${d}`})}catch(_){console.error(_),Q.error("发送图像失败,请携带console的错误消息找开发者")}finally{A.value=!1}},K=`${m.key}`;if(K.startsWith("toggle-tag-")){const d=+K.split("toggle-tag-")[1],{is_remove:_}=await Yt({tag_id:d,img_path:l.fullpath}),q=(ne=(ce=Z.conf)==null?void 0:ce.all_custom_tags.find(P=>P.id===d))==null?void 0:ne.name;await Ne.refreshTags([l.fullpath]),Q.success(x(_?"removedTagFromImage":"addedTagToImage",{tag:q}));return}else if(K==="add-custom-tag")Ge();else if(K.startsWith("batch-add-tag-")||K.startsWith("batch-remove-tag-")){const d=+K.split("-tag-")[1],_=K.includes("add")?"add":"remove",q=U().map(P=>P.fullpath);await Zt({tag_id:d,img_paths:q,action:_}),await Ne.refreshTags(q),Q.success(x(_==="add"?"addCompleted":"removeCompleted"));return}else if(K.startsWith("copy-to-")){const d=K.split("copy-to-")[1],_=U(),q=_.map(P=>P.fullpath);await St(q,d,!0),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("copySuccess"));return}else if(K.startsWith("move-to-")){const d=K.split("move-to-")[1],_=U(),q=_.map(P=>P.fullpath);await Ye(q,d,!0),ge.emit("removeFiles",{paths:q,loc:T.value}),ge.emit("addFiles",{files:_,loc:d}),Q.success(x("moveSuccess"));return}switch(m.key){case"previewInNewWindow":return window.open($);case"copyFilePath":return pe(l.fullpath);case"saveSelectedAsJson":return nn(U());case"openWithDefaultApp":return tn(l.fullpath);case"download":{const d=U();en(d.map(_=>de(_,!0)));break}case"copyPreviewUrl":return pe(parent.document.location.origin+$);case"rename":{let d=await Rt(l.fullpath);d=ft(d);const _=Ne.tagMap;_.set(d,_.get(l.fullpath)??[]),_.delete(l.fullpath),l.fullpath=d,l.name=d.split(/[\\/]/).pop()??"";return}case"send2txt2img":return G("txt2img");case"send2img2img":return G("img2img");case"send2inpaint":return G("inpaint");case"send2extras":return G("extras");case"send2savedDir":{const d=Z.quickMovePaths.find(P=>P.key==="outdir_save");if(!d)return Q.error(x("unknownSavedDir"));const _=Qt(d.dir,(ze=Z.conf)==null?void 0:ze.sd_cwd),q=U();await Ye(q.map(P=>P.fullpath),_,!0),ge.emit("removeFiles",{paths:q.map(P=>P.fullpath),loc:T.value}),ge.emit("addFiles",{files:q,loc:_});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const d=m.key.split("-")[1];Se.postMessage({...J,event:"send_to_control_net",type:d,url:de(l)});break}case"send2outpaint":{n.value=await p.pushAction(()=>Ke(l.fullpath)).res;const[d,_]=(n.value||"").split(` +`);Se.postMessage({...J,event:"send_to_outpaint",url:de(l),prompt:d,negPrompt:_.slice(17)});break}case"openWithWalkMode":{wt.set(F,w.value);const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Te(),path:l.fullpath,name:x("local"),stackKey:F,mode:"walk"};d.panes.push(_),d.key=_.key;break}case"openFileLocationInNewTab":case"openInNewTab":{const d=Z.tabList[L.value.tabIdx],_={type:"local",key:Te(),path:m.key==="openInNewTab"?l.fullpath:Kt(l.fullpath),name:x("local"),mode:"scanned-fixed"};d.panes.push(_),d.key=_.key;break}case"openOnTheRight":{wt.set(F,w.value);let d=Z.tabList[L.value.tabIdx+1];d||(d={panes:[],key:"",id:Te()},Z.tabList[L.value.tabIdx+1]=d);const _={type:"local",key:Te(),path:l.fullpath,name:x("local"),stackKey:F};d.panes.push(_),d.key=_.key;break}case"send2BatchDownload":{Mn.addFiles(U());break}case"viewGenInfo":{t.value=!0,n.value=await p.pushAction(()=>Ke(l.fullpath)).res;break}case"tiktokView":{sa(a.value,y);break}case"openWithLocalFileBrowser":{await Gt(l.fullpath);break}case"deleteFiles":{const d=U(),_=async()=>{const q=d.map(P=>P.fullpath);if(await ln(q),Q.success(x("deleteSuccess")),I.value){const P=de(l)===Z.fullscreenPreviewInitialUrl,he=s.value===a.value.length-1;if((P||he)&&(Oe(),await mt(100),P&&a.value.length>1)){const _e=s.value;mt(0).then(()=>sn(_e,V.value))}}ge.emit("removeFiles",{paths:q,loc:T.value})};if(d.length===1&&Z.ignoredConfirmActions.deleteOneOnly)return _();await new Promise(q=>{be.confirm({title:x("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>u("div",null,[u("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[d.map(P=>u("li",null,[P.fullpath.split(/[/\\]/).pop()]))]),u(Lt,null,null),u(Ln,{checked:Z.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":P=>Z.ignoredConfirmActions.deleteOneOnly=P},{default:()=>[x("deleteOneOnlySkipConfirm"),M(" ("),x("resetOnGlobalSettingsPage"),M(")")]})]),async onOk(){await _(),q()}})});break}}return{}},{isOutside:te}=Ft(V);return $e("keydown",m=>{var y,$,F;const l=Sn(m);if(I.value){l==="Esc"&&Oe();const J=(y=Object.entries(Z.shortcut).find(U=>U[1]===l&&U[1]))==null?void 0:y[0];if(J){m.stopPropagation(),m.preventDefault();const U=s.value,G=a.value[U];switch(J){case"delete":return E({key:"deleteFiles"},G,U);case"download":return E({key:"download"},G,U);default:{const K=($=/^toggle_tag_(.*)$/.exec(J))==null?void 0:$[1],ce=(F=Z.conf)==null?void 0:F.all_custom_tags.find(ne=>ne.name===K);if(ce)return E({key:`toggle-tag-${ce.id}`},G,U);if(J.startsWith("copy_to_")){const ne=J.split("copy_to_")[1];return E({key:`copy-to-${ne}`},G,U)}if(J.startsWith("move_to_")){const ne=J.split("move_to_")[1];return E({key:`move-to-${ne}`},G,U)}}}}}else!te.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(l)&&(m.preventDefault(),m.stopPropagation(),W.value.emit("selectAll"))}),{onFileItemClick:f,onContextMenuClick:E,showGenInfo:t,imageGenInfo:n,q:p}}function ia(e,t,n,a){let s=0,i=0,w=typeof(a==null?void 0:a.width)=="number"?a.width:0,T=typeof(a==null?void 0:a.height)=="number"?a.height:0,A=typeof(a==null?void 0:a.left)=="number"?a.left:0,I=typeof(a==null?void 0:a.top)=="number"?a.top:0,V=!1;const W=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!t.value)&&(s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,w=e.value.offsetWidth,T=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",L),document.documentElement.addEventListener("touchmove",L),document.documentElement.addEventListener("mouseup",D),document.documentElement.addEventListener("touchend",D))},L=l=>{if(!e.value||!t.value)return;let y=w+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=T+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);e.value.offsetLeft+y>window.innerWidth&&(y=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+$>window.innerHeight&&($=window.innerHeight-e.value.offsetTop),e.value.style.width=`${y}px`,e.value.style.height=`${$}px`,a!=null&&a.onResize&&a.onResize(y,$)},D=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",D),document.documentElement.removeEventListener("touchend",D)},S=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!n.value)&&(V=!0,A=e.value.offsetLeft,I=e.value.offsetTop,s=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,i=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,document.documentElement.addEventListener("mousemove",p),document.documentElement.addEventListener("touchmove",p),document.documentElement.addEventListener("mouseup",f),document.documentElement.addEventListener("touchend",f))},p=l=>{if(!e.value||!n.value||!V)return;const y=A+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-s),$=I+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-i);y<0?e.value.style.left="0px":y+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${y}px`,$<0?e.value.style.top="0px":$+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${$}px`,a!=null&&a.onDrag&&a.onDrag(y,$)},f=()=>{V=!1,document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f)},E=()=>{if(!e.value||!t.value)return;let l=e.value.offsetLeft,y=e.value.offsetTop,$=e.value.offsetWidth,F=e.value.offsetHeight;l+$>window.innerWidth&&(l=window.innerWidth-$,l<0&&(l=0,$=window.innerWidth)),y+F>window.innerHeight&&(y=window.innerHeight-F,y<0&&(y=0,F=window.innerHeight)),e.value.style.left=`${l}px`,e.value.style.top=`${y}px`,e.value.style.width=`${$}px`,e.value.style.height=`${F}px`},te=()=>{!e.value||!a||(typeof a.width=="number"&&(e.value.style.width=`${a.width}px`),typeof a.height=="number"&&(e.value.style.height=`${a.height}px`),typeof a.left=="number"&&(e.value.style.left=`${a.left}px`),typeof a.top=="number"&&(e.value.style.top=`${a.top}px`),E(),window.addEventListener("resize",E))},m=()=>{document.documentElement.removeEventListener("mousemove",L),document.documentElement.removeEventListener("touchmove",L),document.documentElement.removeEventListener("mouseup",D),document.documentElement.removeEventListener("touchend",D),document.documentElement.removeEventListener("mousemove",p),document.documentElement.removeEventListener("touchmove",p),document.documentElement.removeEventListener("mouseup",f),document.documentElement.removeEventListener("touchend",f),window.removeEventListener("resize",E)};return It(te),Tt(m),ye(()=>a==null?void 0:a.disbaled,async l=>{await un(),l!==void 0&&(l?m():te())}),ye(()=>[e.value,t.value,n.value],([l,y,$])=>{l&&y&&(y.addEventListener("mousedown",W),y.addEventListener("touchstart",W)),l&&$&&($.addEventListener("mousedown",S),$.addEventListener("touchstart",S))}),{handleResizeMouseDown:W,handleDragMouseDown:S}}let Ct=null;const ua=()=>{var A,I;const e=nt(),t=ke(Qe+"fullscreen_layout",{enable:!0,panelWidth:384,alwaysOn:!0}),n=rn(Ct??((I=(A=e.conf)==null?void 0:A.app_fe_setting)==null?void 0:I.fullscreen_layout)??Xe(t.value)),a="--iib-lr-layout-info-panel-width",s=ee(()=>n.alwaysOn&&n.enable?n.panelWidth:0);ye(n,V=>{t.value=Xe(V),Mt(n,a,s),ra(n),Ct=n},{deep:!0}),It(()=>Mt(n,a,s));const{enable:i,panelWidth:w,alwaysOn:T}=cn(n);return{state:n,isLeftRightLayout:i,panelwidtrhStyleVarName:a,lrLayoutInfoPanelWidth:w,lrMenuAlwaysOn:T}},ra=Ae(e=>dn("fullscreen_layout",e),300),Mt=Ae((e,t,n)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${n.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300);/*! author:kooboy_li@163.com MIT licensed -*/let jt=19968,ca=(40896-jt)/2,et="",Ee=",",da=(()=>{let e=[];for(let t=33;t<127;t++)t!=34&&t!=92&&t!=45&&e.push(String.fromCharCode(t));return e.join(et)})(),rt={a:{yi:"!]#R$!$q(3(p)[*2*g+6+d.C.q0[0w1L2<717l8B8E9?:8;V;[;e;{<)<+.>4??@~A`BbC:CGC^CiDMDjDkF!H/H;JaL?M.M2MoNCN|OgO|P$P)PBPyQ~R%R.S.T;Tk^l$lt?uJv$vMyE|R}a-!}-#&-#8-#L-#b-$Q-%?-+q-,6-,8",yu:"#V$l%S&9&I('(7(=)))m*#*$*B+2+F+v,0,b,i.W0.1F232L2a3(384>6P8n;';i;y<1>(>)>]@iB&X&m&s'2'X'd'f(9(c(i(j)@)l+'+M.).+1y1{2=3K4c6&6'6)606<6B6`9`9{:a`?`AgCLCuD%D2F2GyH&H1I;K~LkLuM&MYO0O3O9P8PbPcQqR5S2SCU0U~V%XYY&Z}[G^P`7cUc}dEeNgOj$j)l?m:n4p,sOuRv.y'{/|i}1~P-$B-%Y-)|-)}-*K-+G-+H-,m-.@-.M-/|-0y-2D-2c-4W-4`-4h-7a-7p-9c-9i",shang:")Y6V9cJvR8UqXJXa])asbQc,s,uSvz-#+-.;",xia:"#Y#w&,&;'''I)1.u/j7=:[<'B[ByCtL'NmNyQOR([0`(cLh[iRkVt/t_u4uezFzM|W|{~d-&)-*4-.}-0a-5;-8S",han:"#,.m/h:l

MFrGXJqNrOUPCPqPrQ|]@`+`2h1lBlZnXp*r;rWrkz9{4{B}x-#c-#y-$;-$l-$y-%Q-%n-(i-(x-)i-/!-3*-5B-9V",wan:"#=$0&o.]0F4@5X5b6*628u9pk@,JhR`b$b`knmtujz'z0}<-#+-'I-*Q-16-7m",san:"3T3q3w3x7~uJuwzA-'n-([-,s",ji:"#r%''l'y)3)d)o*Z+'+9+G+M+T+Z+^+g+x._.c/R090d1S1W2;43484J4R5C5w6)6C6`7f7s878H8t8w9J9X9Z9{;8;<;B;C=(=2>6?YA$B+CHD0D8DbE:EQF2I*I|JEJnKKL)L:LkLzMdN'N5N:NiQ6QyRrUWVcVnWPWQWtX6XEXYXuY(ZAZ|[/]O]e^F^J^U^~`)b#b0c*ckc}dee!e$e9e>eyf+fXfrg)hFhriMjZlrqmr)sRt%uov3vevw|@};}N}g~!~+~F~{-!&-!u-#N-$%-&a-'u-(,-*x-+]-,W-.?-.V-._-.d-.g-/+-0$-0H-1%-1/-10-1^-1o-2/-2@-3'-4)-4o-5>-5H-5U-6,-6J-7/-7P-9e-9g-9h-9i-9j-:l",bu:"0$192,FKJgT=UYZ^e+hhjmm8mFoGpGp}sjw]w{-'7-'E-/m-3#-4.-6=",fou:"4I:L:O:Q~1-3:",mian:"!G!d#4$U$W$]3Y5X6A6_6o9g9w@qB/CkG!H_Q;-!L-!M-!P-/_-7y-7z-8'-8,-8q-8r",gai:"):5=5LD,ErI!J1Z'_/`TaYaac!lnpcw[|O}1",chou:"!+#n$N+0/y0}2:4e5/6#9jB*B.GNLfUmZ+^3^5_4e%e4fWkan]nbo.o6oU}u~$~*-.X-/>",zhuan:"%H'S'V.K0k1B1H1r2?7Z+7+f,8.#.|0K0p2O>#DNE1P.ccd]eMlpt8y>-0&",ju:"!Z$L$w%R*W,c,l/e1~3&3J8#:t=#=`=k@FBGC0DlD}FeGAIaIkJbMrN[OVP`RDTlU|W>Y`[$^Z`Ua*ccc{dWd]dae#e@eFeff8fSg*ga@'@2@KA%C|DQO+O]O^PvR!REScU'UfZw]m`l`na'i[l_m;p-4F-6'-63-91",shi:"!E!Q!e#?$p%$&+'$([(](q*^.&/5/n0[1w204zQQR9VYW2W@W^X2XNYxY{ZI[:[<[v]X^l^{^}_p`DaDbmgqi8ixjdk!kNkpl(lkntoMo^ocoeofp5ppq%q&q*q4qbr=t9x/-&^-&_-&}-'<-'@-(*-(8-)!-)H-+,-/<-0?-0d-0o-0p-2:-2O-3+-38-57-6M-9C-9E",qiu:"*6*7+a0r3k4D5]6j>7CaCeF`HEJXMhNgNjONP;QMQ_RfSWUUX?XUXqXrajc$d'jpjskXl]n@o.oup:r?-#5-#6-$8-/'-/k-0W-0X-1,-2Z-4v-7&-9U-:Y-:Z-:]",bing:"!n)F*4+/,>.75@DsOcZ7l`puqar||>-!:-!q-#,-#G-''-'C-(D-/O",ye:"$>$E(0,a6g=;@?HfSb[]_]lUlfn(oip=rmtDtTtevTx?-!O-!R-$5-%N-'F-'e-(T-*o-4Y-61",cong:"$'&Y1>8==g=l=p=vDIE=I2JUK0LsRZZk]$a}a~sKtBuKu_-*)-*V-+Y",dong:"&&.r0b5D?7?C@JD|G;I#KwQ([&jV~^-)T-/=-0)-4g-5/-6T-9,",si:"'?(b)^)g)p*+.+>0KxL+NLP7PiQnReS&W_`tp1pvp{qTqnr8r`tIuzyB-&6-&R-&^-&c-&s-&{-(:-)L-)q-*8-+.-0.-5j-6`-9N-:o",cheng:"#0$,$P&W*O*[*w+A+{,O,v/l5[7#:`?}FQOoS(UKZV_#cHcJk#m$nhrxtkuxv@vWx=xB|2-!A-$h-'w-)o-*>-+B-/u",diu:"r2xL-&&",liang:"3A3D3{6K@0CRF{Q%Up[,_Oe1h!h2hCiBiHojss-!=-)h-.J-.O",you:"(r)O*I7o8W;L;f=5=M>VDKFoFsFwG/KaOOOSPSQLY8ZN_;`qh%hMjWjnk6kPlYmEn3n>ncodp~r3x&x<-),-.y-/1-1p-1z-7N-8P-9D",yan:"##%F%L&%&F&T&v(Z,j/u1?2$5t7V;!;h?<@@AsCVCYCZD3FmGpH.JlN_PVQAT$UxV9WUX/XkXmXnY?Z3[U^1^C^E_e_~`B`C`RbDbPc;g/g7kIm#mNmsn5nHnsnyoPoVo`x+z7zkzmzn{A{`{e|}}2}b-%'-%,-%B-%v-'0-(#-)~-*$-*F-*j-*s-+C-.4-.H-.Y-0V-3$-3*-3B-3n-5#-5G-5u-7K-7r-8T-8W-8_-8`-8a-8d-8j-9L-9Q-9w-:1-:N",sang:"'EVNts-%2-%{",gun:"#<&#'U6F6z9dJ>JpTFTwUu]4h:?B@}AbB3BwECHxJ1NwOrP'U9UPXM[X[hhLhmq`tetlu.xSyUzTzU{W}4-!S-!s-#F-#`-#j-%f-(A-*%-+t-.3-/K-/U-1u-3T-3z-6g",ya:"#B%C&{'I*{,a.g=UDEKqO;T1WEWGY.^[g=i!j4lUp=s=v7x;}f-3C-3c-4U-6O-6V-9o-:;",pan:"!&!>!?!H!o'L'x2A76=F>R?$AIH+m/V2T4{6b99>j@`BnEkK*O:OBP^R2RKSzTKTNTO[@e^f>ohparHtQv5wbyF-3_-9@",jie:"#S%@&{(.*d+=.G0e4J5,599D;k=(@/CfD,G#G`J[LzOFP&P:PTQ=SKSQSqT/TITPTlU4U7UPVQXOXSX}Z%ZWZh]/^K^~_5ckdve=j^qGtNtXz,|1}.-!m-!u-$U-%c-&v-+i-.l-/@-2&-4{-5$",feng:"!@%N'40m5v7R:3C$FdHnN.PFSaWI[R^c`?b.c5k'n+n;r[u5uXxs-!$-!4-&%-&J-&L-(w-3(-3,-3F-8)",guan:"!'$b$j$k(W)B,Y/f0E6:9&:]:gBVFqIEWSW{X+X.a?bifMh?kmsUu>w7zOzS{,{2}{-'K-(N-0q-1N-1j-2e-2z-6D-7A",kuang:"!Y!z$Y%1%r%w(G+}/O/z5'538V8vZ-8>",chuan:",40jA7BYB`BhBxEvale[hIkJp%wQ-5+",chan:"&6'W)K)q1N6D7$8*8A8[8_:6;xCODJIHKQQ2RGR_R{S1UeW!W`X3ZMZy]B^+^7_N_bfbi|n2n6o@rTr]uWw3xYz%ze{7{g-#Q-%D-%~-(%-(S-+Z",lin:"$B&['t0:393O5{8!S]SrU;VsD5E4GTO$WNYk`LdDdNgjozp?wr~~-!a-&.-.D-.`-/&-/0-1t-1v-1}-9=",dan:"!K%$%5)r,S0N1h4V8A=A=B=H=~>q@9ATAVH*JDOkPUTLV?VoXGX~ZK_'a|bBc3f{mHn&nKn~~t-$I-'G-'s-)*-)a-,C-3Z-8H-8b-8i",wei:"#o$M%}&0'#'D'M6/6p6r7+8y9f;6>n@gC+D!DOE+FCGBH)I&I(I4INJ]K$KJL7LdMDN0PwQ$QDQHR?T3T6V`WkX$Z)[#[^^*^4_I_^e;fefig@hbj>kg?:?k@N?#@!@D@E@nA3C!CWC}D*DFE'E,E]EpFFF|GKHKHjJXKsNSODOGOXOwPIPMQEQIQWTETsTvU.V(V6ViW+WKWMXpYS[C^H`Va4a{b4bXc(c7cRd=dZegh*hPhRiAiLlIm(m*mmnQowo|pFqZYZZ]U_6_9d9fYj6j~lWm)mep)rQrbrctvwkxc{y|U}6~?~C~`~m-!Z-*'-+R-/j-0j-3i-4/-4@-5,-5f-6j-6s-7)-9G-9W-9X",tuo:"%U%V&z0L2J4v?{@$F_H6MUTbT~Y'Yc^QdHdQnVq+r`x1{{|;|<-&d-(.-(z-({-)1-)J-)K-*:-*e-*p-+$-+3-.b-/%-/[-0b-3O-4,-6_-8}-9$-9?",zhe:"#'%+%E'P2f2|_@eB>CADvFAI0I>J:L]M:M~TgWHWfY/Ya[|[}^6_ngmi6k`kll*l9r!tdwhxRzv}!-!j-%=-&9-&T-'(-'=-*&-0u-1I-2f-3;-3]-5F-5Y-7+-9T-:%",zhi:"!7!t$s%=(J(i(k(s(y)2)I)Z*2*>*A*T*^*c+(+)+J+Y,G/k4Q4b5T5W5s6~7^7|9(98;(<0=E=Q=b=}>L>|?+?QA4^4g=0D{OPOZX]Yb[(]G]W^ng=o;t*xHzI{N~J-&t-/9-/a-1{-22-9]-9`",hu:"(1(~.j0Z1M3!3^545r757G?0AMCtCxD5C_{u-$*-'1-(A-1!-1d-2i",yue:"$S%!(a){0^0|242S2_373H4<8sAlM{O,O.ZaZc_>cid2dCdFfZgApDqBw2whw}zczd{[-,V-6:-6B-8Y-:^-:m",lao:"&)'n,71s3<5>9M~CXE%F$H(JWMaOQP%Yg^jgrh>mAqa-$^-(w-/(-1w",pang:"!o'A1+=/>R?$?=A/B|QmWsd@jf~6~|-0k-2g-:K-:M",guai:"0,;%",sheng:"!D!^...t7*7q859e=[=x?*E(KM]^aMb1q2t2|#|Y|u-4_-9B",hao:"*:.,25-%|-0i",mie:"!`(D1G1dJxL>SNS~W]vt-1e-3M",nie:"1&294(4,=G=|B)B0E!GDMlSX^=e)e?eAezforAs$sJu*vfw9wByVyY{&|c}(-%L-%x-:#",xi:"!>#6$3$d%/&(&g'J's(!)P)n*l+7,,,n313z434i5j6H7?7W81878g979U;V;n<2<5<6>c>d@>A6BABBB}FUG]HeI9IbIwJ+JVKzL2NdPjQoQqRYRqSiT!U)UzW9WFWiWlX7XfXjXlZH[K[m]5]F_@`.`/`W`_a(cCcGcfcwesf)fulGlplwm&m4m_n:oIokp2p7pbqLqMqvsYu+ufv&w6wSxJy,z[{5{b}9}?}P}U~#~2~q-!%-&?-'2-'`-'r-(1-(C-*C-*O-*{-.)-/x-0_-1+-1J-2X-2q-46-6*-8I-9O",xiang:"!;)*+50U5Q6Y8b9u:U;E;J<4APC{HGHvLTaU4UI`]a$a]bxdRjGl{m/q#qOrXu,x$x>y`-$a-$e-%c-%d-)B-+5-3J-3q-4(-7i",mao:"!M#i$i*:/66e:uqcsVx,y%-,B-,O-4|",mai:"?W?XF>K^LgS{aKaxj(l+~g~h-!'-5{-7t-7u",luan:";D?dAzA{L=NDW~o{r7w@-4'-6G-6h-:y",ru:"/M7F8G:1>AEgIYJ6KlLhQJSHU:VGW,inlEm`oSr+x_-%E-&!-1]-3)-3K-3x",xue:"$?,(A=C@E@IGLKStTnXd[p_[coe,hdibig~/-!_-#M-18-2k-6%-6^",sha:"%4&G052u4O8F8~<<WIYIuTJU!Zt`m`pgNlNlypHu7wcyZ~0-!d-.x",qian:"'K.(/~0A0t1'2*2D2R2p6+7[8J8q:G;h>b@vA~CnD(EIElF:I%IjK>KLNNO&O8P}VR[*[u]u_q`!`&gSh;i~kjk~p9pEpOq;q?r6sPtYukvqwPwgwtwvx+{x-#U-$z-*+-*/-*=-+U-,y-,z-0x-37-4M-6z-8G-8M",suo:"#*1Z1^4Z797U:?;cFaFbJ7P{VJcuk)tatju3u9xi-/b",gan:"!3%)*1*t.Y/x1*1}3%4s91>GCmE#T>Y^bJbTcAcTcti}nE-+e-.Q-1T-2w-3*-:i",gui:"!q#o$.$C%x%})0)s,E/?1K1T?NERJ;N%P/R*RpUgEi#lilxuyvlzY{P|M~#-#K-*;-.7-.:-.=-/S-1F-1U-2%-2r-34-:Y-:]",jue:"$Z$l$o%6,%525S8#9NA^D=KiKtNnO6RwRxU!WWWbX%X5X>XBXZXiY4Zj]N^f_}a0c[chd7h7x8D9V:4AQCyFOFPNxV}Zm]c_QazkFkHl.uqv!vF}*}/}G}H}w-#$-#r-+|-,/",gen:"CQEHdc",xie:"';(f*&3c4k5+595I5h6g6v7&8>8T92:B:M<3>l?T?V?ZA&LRLTM0Q7QKS+S@SBStTRV*V^W4XKXOXS[B[y^<_Z_mflfnl,lU-!i-!v-#1-#D-#h-$#-%c-/S-2%-9Z-9q-9t-9~-:b",zhai:"%X)3,92qP*Q,Znh5iGj+jM-.N",kang:"%<+U2v3tg1lJpgugwmz={L-17",da:"!W.u/(/S84;H=Xs]Q]fa`d0dhe3gvh_hfi;i?lvnkoHo]p#q]v*xW-'%-(B-*h-+;-/Q-1>-20-3|-5k-5s-78-:a",hai:"5L?Aj9l/lnnro<-'!-'~-)Z-)b-+>-+p",heng:"?J?mMZT9vc-3o-4$-6e",peng:"%c&'&S'+'Z+,.V1+1@5@8P>~AACgE%FdJRMkRiRjU3eSgbh:s9v{zL-$+-$0-):-*A-,X-,b-,q-4K-6y",mu:"!1#N%]+V7`7n:@?.C5DeF~G%O=e/qKqPx!~3~G-#9",ting:"/s5l%>&?qC)FnI7PWQ8ZJ[El=rUxKz`~K-!~-$g-%e-9F",qin:"$j$k*'*Q.d5c=>>MD1DAGZG^GkMRO8Q}RJS7TVWJWrZQc]pXpkriwix{}c-!]-$~-)f-+E-/c-33-4L",qing:"&/&Z'i046+60:ZDaHzQ#Wr[%]%_Agph+i7m;>t?fA!BuC,DrGWH=I'J{L4MmO^U+U,U6VrW5ZL[d]Rd8d_eKf@m3pxq5qFrVtow0wxw|x(yT-'4-'^-(E-(V-(d-(g-).-)[-*^-+)-+~-,$-/0-1=-1}-42-6k",lian:"'K+D2+2P2V6w7b8k94;s{M-#!",ren:"(o*,*e+#4A4U5)5y8x9$>?@AD)E}FGGDTUU2Y!ZC^I^Vg&gFi&p/p;pRqp-!W-![-#[-#w-&i-'#-(2-.^-3{",shen:"!U![$8$r$u%j)#)9,12e2g3T3U3q3w4l96:p:~>i>m?t@BFkHwH}JGK!LCPGPHUNX)Y1YHZ*[2^)_%_L_S_VfylPqRrj-$W-)W-.m-/z-0@-0|-1)-2N-4A-8b",ze:"#R#}$n(+*p/,0J1I=0BsKAS?Vz[(].a@b7b]c:jO-&t-6.-9s-:,",jin:"!#$j$k%M)8)G.U.m/J4W4`6L70:/B6F&F;GcGkJYM!TWW%WzXsTwGy2-!^-'m-(Y-)$-7D-88-::",pu:"$5*k+j0$8LBTBUFXGGGaH~IsIt[D]]_|bEfInprtupv=xbyqyu|[-/m",reng:"(_DGiu|z",zong:"&Y'h+?3P3]4$5z6E6Q6n6x7(7M7X7e7t9%9nz?!?MB'CwE5E7ENE`F4GHHuJbL;NsXHYOYP[I_caFa[bzb~cZcpd(h3hQiJmbp&pmsGtRtuy=yO-$s-$t-,I-/{-0r-2P-4e-9)-9f-9i-9u-:D",zai:"#^7HGHb+g|i9n^",ta:"(d)i2~VAZr]wdBe7etfFfOfpkdkiq+sBt]tex1{'{5{;{={R{o-!s-#*-#B-/?-0t-2d",xian:"!:!O#5$<&#(F(h)X*3+D/D0V2k3B4%4|5A5c5t6,6]7J7r8Z8c8q90:%;];d;h?&@oAnA~B;BvDSDwFzG,LOM'M*MpOKO_O}PJT+T0V_W:WRX,ZXZo[O]d`>awbKb^cYdgd}f;fhgBhHnfo'oPqvr#r$rFrqs0o334=4P4f5i8o8{;z*]+m.?/Q/i345D5N5`9PA@EjJPO1T,Z,cFj|ndq:qYqjxC-')-/L-2*",dai:"0,1n4x7%9AC?OMQ]TdW=Yd^xa7aLbqdff'gCgLg[i%jIk4p0~z-!0-)E-/>-3I-8N-8e",ling:"%d)D*M++.5/+4p6@9];K;U<.=KBqD[GiJJJmL%M|OiT(TcUjYVdLgZh/n8oWpts0x)zN|q~;~O~]~a~c-!2-$L-%`-)C-/$-05-2C-3L-6Y-7E-7q-9z-9{-:A-:T",chao:"!k,h,r2u6?9b;5J@mA+DTGMH!UlUqZfs&sWy+z'z(z0zh{1{a-#d-.0-02-1X-2H-2T-92-:d",sa:"8g?^HDK{LYY@fnpQuwwS}A-!c-!s-&,-&P-)&",fan:"%0(M/1/40i2A2d6R7i8$;o<[AIBcBfE0KNLPM>N!SOVqXva=bcfXo:-+g",wo:"#l&A,R,_6}>I@OAlB!G*HQLgP[Qbe:-(p-:4-:I-:L",jian:"!%#9#`$<$D$I&N&b','r'}(&(<(X+D.p/9/g0#0/0Q181k262I3_5U6Z788(899v:9$>S@fB4BoCICSCTETE~G-#O-#X-'A-'S-(7-(k-,h-0Y-0`-0h-1(-28-2h-37-40-4R-5@-71-7F-7I-7J-7W",fen:"#|%A*9./2x3=3r4S9';M;q;~ARD4IxKmO?O@TGY,`^`ff|hjnOpUvY}K~5-'W-'}-(c-(r-.w-1M-2Q-35-85-8n-9.-9:",bin:"%A8I::A)AiNc`X`cahailKvjya~l-$p-%G-%k-,'-,1-,E-,_-,p-.!",di:"!u#/%W')'.'{)<)_*U.v/*1=2c4+6c:);X;@WDXD_FMG9G_ICJMJrJwJ|M6Q+QVR-0>-69",fang:"!I!n(l4Y9*>TBjD;O!Y;^ed@lLp@siwn|,-,?-.v-1s-3E-51",pei:">Q?(JBSwUrUsauc2hyiPnBn{s5y7|%|f~M-)#",diao:"$#&a,C,k.B1]5FJML|NhOaXxZ8Zv_M`ro~p_r!r:s*s[vawUxExR}v~D-.c-//-0%-2L-2{-3&-4O-9>",dun:"!^?gD'G!O'O(R/RO`ahShWiNu6zlzqzw{<{D{Q{c~4-#?-#{-%(-'f-)(-)4-.r-0g-0z-2V-36-3G-9<",xin:"!=(F?zBID7FkLZSyVtY3Y-%T-%U-*[-,w-.G-.W-1_",tang:"$f'@)f0{3V3j3o;l=)@zA4J4LJQSR$RAcMc~eef&g+m]o=tiu)uTv'wDx[yWyd{1}:-#I-']-'h-5:-96",huo:"!V$S$^(*)>)S*Y*_*`+|,W10=$=4AuCJG.IhMTSI[g`0a:4<%<@?R?U@.AEANAhG{THVmd#uQ}Y-$|",che:"$;%I&?&@=JFjP@gFA}EKFRFcK:LmRBTDW6Y7Zz[Q[o^;_V`$arb;c`cad>dKeagKimjHmDo@pAt(|C|o~H-5T-7]-9l-9m-:=",xun:"!x$Q*p,^4;8MAjEnF:KLKSL[LaMcRzS%XwY#Y)Yt^R^T_+j%jajlkclsmzoTv`-%A-(}-)U-+%-1?-1H-24-5A",chi:"!]!y$).X.y/A0+02133,5W<#<$>?2?D@SE9E|GeO%OHORR;U/U0UkVMYFZ9Zq[t`8aRcBc^d+dfeGj@jBkKkfkrkyl7q7q^qusx~9-&l-(4-(|-+&-.R-3Y-4!-4r-4w-4y-5]-6Z-8(-8C-9k-9v-:<",xuan:"!m!x#d$['5)k0R5?7J7d7w9K-+4",bai:"+&.;3;3M51L^W3b:b_-#k",gu:"!/$J'B)A*~+P.z010?0u3g75:r:v;Q>K@(AfE)G>GhJ,LSOdOjSeXFYR^h`%a]bxgdgehYi,iXk,nYprpws]wwy.}h-%@-%W-'Y-(Q-+`-/;-0'-2I-3^-5?-6S-7%-9*-9+",ni:"!h#P*G2m73=i>$>}@pABA{DqLpOLP.Q!XXZt`~d`h.jhmCpnx3}L~X-(e-0,-2J-7`-:+",ban:"*E2s5!9;>PBgBkQ*QvVKd[iciipPqEwfzx|$-!h-$F-%Z-.n-35",zhou:"!+#U$x&y062.2@2C3+384:777o8p9:B>o?#B^F@GoI$LfY][a]y^r_4_Manc0gkg{h,i0inCqg~Q-);-)`-)t-*r-+[-0(-3~-6f",qu:"$L'o(}.2.F/@2U3?4o5#<1u?/AxDlG:HhKbM}O[OfOpQdRDRlSkSpT'T:U&WxX!X&X=YeYjZj^tcjcld%d*fqf}g2gWw-#)",ga:"g=onsfwH-.A",dian:"&p'v,j1iIiKRPXdXeVewq!x%|8~@-!E-%3-%4-%z-*g-8Q-:8",tian:"!:#;'1'H,j4w6D>v@:BRBXGvWmX9atnTr#rFsXx%xM{%{n-!>-!G-'$-3f-5J-5S-8:",bi:"#L#M'!(w)L*@*C+;.n.o/E/Y0(0)1/1<2r2y4M4m6>7Q8@8};7<,=a>a>r@lA[BlC|E*F.FJG~H:J*>1>2GdYf^ucScxorpC&CqD^FyHSK}Tjh$la-#&-$)-,Z-/`",zuo:"(|*S+!+n/,/p4*7{?'D{F^H`HaJ?Th[(nWp||7-&t",ti:"!g#e')'?)Z)|*v/8285f6|9Y9y:{DXF!KgLIUzV&V'[qd)d2eJemexf~g8jxk=kLo&rDt)xy-%$-%r-*2-+m-,0-,L-,]-,a-/^-0B-2U-4;-4w-4y-5L-5M-5i-6r",zhan:"$H&b.33*6=9oGQLMN2N`NaOeWyYQZ/]h]l^B`#cghUhgiSl0n|zK~V-%~-&*-&N-&e-'|-*b-*l-.Z-1S-2y-37-60-7=-8i-:h",he:"&c()*(0z2i3@4?8r-:`",she:"'y(`BJBKBLJuNpOgP(S5Y>^dagakc'cDg~{!{^-#h-)u-7l",die:"!g!t&w5M9GpB5C6D~PmQ`R@V,V]YU[7_WcbdOdXdreigojNz+-#1-0S-2R-3d",gou:"/01%2)3g6t:&DhO[U#VBWwX;YNY~_(`ob5bgk_pMqHwl}k-#A-#m",kou:"!P!Z#r$$,P.2/W1OD+K=KFp$-5K",ning:"$P=R>!DpLevm-,~-64",yong:"%p&>A]DcIPP=Yre2e]l@mJmio9rHuVyh}n}~-%*-%s-'x-/y-0w-15-2A-2o-5`",wa:"%K,),?,E,`=N@r@xOyTuW1lc-#W-#^-#t-8w",ka:"?8U@qV",bao:",<.~6h?,DgGYHcK`L4MJN^OJTeUdV4V5Vf`ib*d8q/w%x.zs~>-!6-&x-&|-(9-)/-+j-,M-/7-1~-3/-3A-6Q-9r-:B",huai:"=7N3N8VDVSeE-:f",ming:"!C!w#zEDJ'R,WuZ0m^n_q}xT-3.-6L",hen:"Y|-!y",quan:"$b%u/K0B5<6$7:9mEqI3NAP|SlXLZ#_)dkeIgzi=o5qxv%xO{#-#_-%M-&$-)V-*3-,e-0L-2^-9}",tiao:"!~(t),,J,g/!3/4.5F=S?PCdD^H0J@JMJNPnWdZ8Zv_McqdwjCr!rdtyxR-#%-,G-/o-1&-2;-9y-:C",xing:"!D#Z&$0Y0g6J@YApBFEuF7FhHrP9T#XVX_[_lMluo+pBqZqwrhwZx6|D|S-'V-(/-)p-+D-/5-0D",kan:"!N$=$g%?'^.QG&T%h8ho{4{q-%)-.+-:R-:X",lai:"#8#F/X0%2/2MG'H%MSW7Zqaob,c&c4k.mBsgxd-$q-$w-)y-0*-4B-4f-8%",kua:"50?>B~Z=d9dlq~-+s",gong:"'91*44474=8o;z>[OBXQXba6bZfzg$gtrG-!z-,T-:L-:Q-:W-:u",mi:"!s#p$A(w)')w*C1d2b2}3p407c;>;F?bClH{J#K'K/L}N#N6PaU*WZW[WcX1Z.[j[l_g_rjXo4oXoYo_r,z/-!K-66-7X-7Y-7j-82-9&",an:"!(!.;)?I@XEzGlHWHgJSUxZS[N_d`k`{r1s:x]zy}+~=-!w-!x-$1-(l-/E-4I-4u-6v-8c",lu:"!)#Q$_%|&L&d'])E)J*}+[+o071X1v2!2#2G2H3I6S8^9q:f?9A,AtBmBzCFCMCND.G@JcJeJtKcM[NSYXh[~aVb|d$dseCf#gxh^h|i/i>iTk5nwpis2sascu8uMumvGw&w+yr|A|t~x-%J-%_-)+-)r-*N-,3-.q-.t-00-1i-1r-1y-3w-4E-4P-6!-6>-6U-7;-7C-7M-7b-8l",mou:"!|7n:@Oq[[_Ue6t=-#9-3y-8!",cun:".N2nA>lS",lv:"$()(*r+~0`5Z5~6S7_7j9q:*@wA(A8A;HkM,NKV=VZm'rJw#xDz_{T-*u-+*-5a",zhen:"!X!b!c!}%Y'%)5)T)b+I.A0X264N4w5Y7D7L9,:2=I?%B9H5I5IWJ&LnTpUSWaYKZb^pa2afbWc%g^hZi4iqkOnNoxq$r~s`tOu$u%wJyS|0|_~L-)D-,o-1f-3@-6R-8d",ce:"/%/U/^/t0G1W36F/H3HPJA",chai:")&>HCjEJNzS9T[Xz`jp4wY",nong:")v*j+q8C?cAXL,V~]iioipoL-,{-9a",hou:"#c$t0q3Z@AGFyHCKyL2LtNBNMP{DoU1UbVTdPllnm-+o-/R-:p",jun:"&].=/`0<0CFlGCI1O/PeTXWhaeg?m1p^qfr&t'wj|Q}^}l-$j-'8-(J-)m-+F-/]-2?-43-44-47-7U-7^-7d-:Y-:]",zu:"(x*J+10H4}95GqHbIkYm^kd6eLtdu2u;yk|6-!f",hun:"!F#O#W#]F6I8JyXT[=_2hczo{d-'>-(L-.C-9J",su:"';+1+3+],X1U3.324X7K7U:?>,>/@{DWFwJsM+M]MiXWYE[r^o_lcyf(k$khksnZrR-':-*_-+L-/i-1@-5p-6~",pai:"0'1z1|IOhBjLtV",biao:"'c,!1D@3A,A1AoJoM=T@UoVa[3]#b?seuZw$ycz#-&&-&+-&5-&D-&E-&F-&H-&O-&W-&X-*~-+@-+W-,;-2j-7Q",fei:"%[//1!6M9aO>e>r>z>{@GDFGjH$KhP_PuRuUtZp_GaObsvEyP|g~T-!/-!H-!I-&Y-&[-&]-'H-(j-*!-*,-0+-2F-9;",bei:"&i&r)`0'3f>wA[DfJ9M8PAU'V;ZLZwa1bVgch@iDlbm5mQqWrPv[wd|=-!l-#,-#C-+k-4N-6x",dao:")=)H)x+B+K005F8hbdm?n~o,oJqQsMx#y8-$x",chui:"&U0D@8GPsFtny0|n-$u-:_",kong:"%.&V,/0@;gg,sA-#(-4[",juan:"!{#2#H5J5V7Z9S:|;=?w@7AaG[K3SfUM^&mTrZras6u0vHy5yXzt}^}l-#'-&k-'.-6m-:w",luo:"%T&!&='n/>0M2]5>8f9M:n;@@)@UAwF8H9HYJ5N9OrRHS6UvW~X'Z1dbf`g'kAl:uEw>y/yf}s-$f-('-)_-*P-*k-+=-+X-/K-4#-6)",song:"&P.@===yGOY0Z]^b_?jcu1-$@-%[-'[-)e-,c",leng:"#>&h++L@eD",ben:"/&<(DxRuaUblk/sIy&",cai:"#T677P8aGSK+U>a5b[dxeQob",ying:"!R$v&C&|(P)c+_2K2^6U7/8`9^:>:X:Y:c=?A:ASDzEAF7F9G0G1H@HAHBHZJKLqMwOmQ0QPQiR0S8SgVPWv[i]M]|adbHc@g:j/m2twv8vky?~_-##-$.-$i-%g-%o-%p-1V-3g-4q-5*-53-5o-5~-67-6C-74-7>",ruan:"&u(>6^U?sA7C~G3G}HRITJZQgSUb(hKn}o/sL|T-0#-0Q-4i-4~-6{",ruo:"0P1#DnI}mP-0e-0{-5<",dang:"!,#s%2'((2/[1f2&CDF3GbKuN(S)UCW&]b^A_kd&kEvWxB{9~A-8[",huang:"'w+e0f1q7O>=C1F#H|Q@RtSuYv[V[f_Xd,kWt3txu}yI},-$,-'P-*.-0T-1A-2]-5q-86-87",duan:"${'&.I1`2X6a:#IMK(QfRI]1a*g3kxu]yN|F~x-#J-+}-,*-5a",sou:"#v2BC;IQJ(L_M?Qum[o3t~uAyH-&:-&<-&S-'c-(R-*<",yuan:"!9!f)V.i0F6f7':.;m>CD3DYE?I?I_InLGLdO5PRPzQFQXQrT&TYUiUuV3VF[xa3bYh]iQj=k@kgl8lRnPphs'u(|^-%1-)9-*G-.o-30-3U-4V-5%-54-6K-6]-6}-8s-9!-90-95",rong:"+Q+S5E7@9C;^>FEFEfF5J/QhQwQxSDVEghthyb-)R",jiang:"(43u3|5P8:9L:F<>=.A2EaH^ILK.LAQjRM[w]=^W`6ngo>oF|H-#P-%5-12-2_",bang:"&<'A+%5_749B@uC8IcO!O*OvPt[s_olQlVt^y^-#3-,#",shan:"#:'m)K)q+W.s7g7}:D;p;r?pALATBaD&DtR}S,TCWjY%[b]r^ObFc?cVd^gGlAn#p!qtvBwRz4z5z;{@|P|X-'q-*J-+V-/l-1C-1D-2s-2y",que:"&5&E&g'6'7(1(N:P:RI]O6c}z}{*{l{p}a-4Q-6t",nuo:"+<+u3e3y4&5JiKWL.M4N*N+N7N@SPZ:^(^zhxnoqls?vPvvw:yz~<-!*-$O-$_-%7-%}-1Y-6<-9R",zao:",y,~1R3sC#LlMPOC]`d1f4fNk%ktoCwA",cao:"3m>9C=C[EwJ_R:VbV|n)uc-*D-94",ao:"!T'Y}I-*S-+S-0~-2b-5X-8{",cou:"@ThJiK",chuang:"'_,H,L,q{+{E",piao:"$+).1D7a:;_tmuuCuUye-#!-%;-%y-'i-(Z-,t-,u-1*-2m",zun:"8':^U5]Pk|qqv+-1B-2u-4n-5|",deng:"$7'q.M/H1pCCW|`:f9l>mxv6yx}E",tie:"=VH8OhaPbndXq'qzv>vRx'-&z-'Q-*i",seng:"-,v",zhuang:"3:3nF)F]UBUZ",min:"!B%9&`.}/<1l6O6d:,:wDiSSb'pqs7tEzEzZ{K{S-1$-2n-3P-8q-8r",sai:"2'@cb6c9-%#-0_-2X",tai:"0+27>h>yB8BeD]GeLjdIl[nSpfw^-&/-)E-+7-/6-2$",lan:"17212Q4/8K8i9x;+I2F7I@sAHM9N?R1Z@[`l1~u-)S-*B-*v-0s-97",long:"!p$a%n&=(R(S,u.!.6/;1*162N=P>'?6E'[,A6;9l;1;;-&@-&C-&U-'b-(W-)M-)c-*@-*d-+T-.9-0m-5=-5_-7.-76-7[",shou:"6.9h@yC2uA-(_-:s",ran:"7v>ZDZIFOEOYTST`Tz-,A-,K",gang:"%.&q/{639!:N:W:x>Ep+s)ttwe",gua:"506}:z;%>xU^|cnedr#rFxM-&'-&1-*9-3k-6c",zui:"#G)C+15&8d;$KjRdXHi]nInqo!s$s8",qia:"%{'I?1HyU4dUnU-!{-+z",mei:"!L!_#)#a({)]+X0h3p;I;T?S?r@PE&FfI@QGTZdMg0mOnlrKtUtZyMyQ~N-#^-.>-.F-5(-7(-8V-8h",zhun:"+$,56(>UT8YAZ{_Pj.",du:"#K#b*f.T.^1,>DCsFBR&SZSmUyWqZd^$^D_E`3b%bNc)mMo(sDs|v}yL{!{^-!Y-#V-#s-#u-*E-,,-8]-8k",kai:"II`7gysvtbt{vCxGxvy@z<{({U-&;",hua:"%;&K'B3S8/BWD9D:GgIKK[MzR#XKZ&Ze[4[>]A]o_&`0p(p)rbsdunxN-*]-+<-5m-8=",bie:"FTNFObRmVuf6-19-2l-8|-:[",pao:"%e(@(O,!?|H>M=TeTfV>dDdTgfq/x.-!N-!o-7Q-7S-7|",geng:"56575d6m7,9Q;j;uAbArG?HYM3PfQ4Q[SRi_i`l6v|z$-#0-,k-0F",pou:"0$UO",tuan:"1H4'V8a%u<-5V-6#",zuan:"1B2Y808N8U8e:Kb3fjftq)vxw?w~",keng:"%t&3&RZOr>t1uOxg|&",gao:"#R#g)4)6)e*m+N+O/v0~3i7E:5;O;TA'B,GILrMHZ[_:m+ryu#xny]-#o-'_-,4-,5-5R-5v-93",lang:"&7*n/dC(F{IXJ.JHPOQlZEg%lzl~m.rLu&xzz^{]-)h",weng:"#q:b;}=rJ0L(Qstg-56-7,-9_",tao:")?58617A7N9W9kG|PoUhX{Yn[{^MdwhXjPjenzs+|r-!k-!t-#@-#l-#|-&w-'d-'y-)P-)x-9/",nao:"%z&q'*?a@&@ZAkP6R~YZ]Ju|x@zJ{O-.'",zang:";S?_AmAyB$I,K@M#abambLbUb}rC-)A-++-,.",suan:"(z.b/m0;1BI^nn",nian:"':*5*P1Y3*C/K6evf5f[h=iCiS-/4-0;-1x-2K-4%-8B",shuai:"7>:4RNTH",mang:"!5!6&<&D.ZCvEXEiG4G5M_OvRaSAlDp.rsx:-)g",rou:"*!2w3X>3?l@aHdQC]tekhEt$-#2-#f-*7-0R-4t",cen:"+W.m1A",shuang:"(V7;CPuh}z~b-*M-*y-+^-5c-6A-7B",po:"%g%i/70I3'7i<,IlK,jLn%n[o1oKotq9uswMwz|=-$K-%a-)7-,N-.E",a:"@@s@x}|:",tun:"AYAeC~OlVL`G`IgJ~Z-&h-(0-.j-1q-8J",hang:".k/T5*9HBiDHOAT#UAa9j3lJ-$C-%]-.i",shun:"!x$&$1$9BZKo-$:-%S-,g",ne:"!vY6^]",chuo:"'j0^6?8&9bd!e'e`Q`b`va/hpj9k3l/lsn9tCvSyJy{{:{r}i}{-*|-,|-/n-0A-0K-2>-3?-4+-7<",ken:"&#>8>Y>fUFV$`S`wsh-:?-:E",chuai:"A0ACeb",pa:"/bm|roxk-.6-1K",nin:"?[",kun:"#7&H);*s+*5oGEPpUEUJUgV.`wo%sCy*z]zj{Y-)w-,<-,=-,D-0/-2G-4^-5'-6w",qun:"0<;_;`UVU^e.k&-7U",ri:"TMp/p;pd-)%-+(",lve:"+4rgrlxr",zhui:"&U((.h66729r:'@C@|[!b>c6j_o#s>sQvdy1})}Y-)s-+J-4Z",sao:"$O7m8<:A:HAdR4-&<-*#-*I-+Q-,:-0l-1R-2a",en:"J!",zou:"0&6GG=[)_CcNcOlem@mcn.|h-*H-+1-/w-06-2E-83-:.-:7-:n",nv:"2h=TSvSxp8wW",nuan:"-'M",shuo:"$m&+'$0cIvZaZc_>qttmv~x*",niu:"4H9.FxpTwq-!`",rao:"+i8)9FF,KdVvk}}B-'v-(>",niang:"nuoRoZ",shui:"#I)7*q*z@1U[ZaZcZg_>_KzG",nve:"&ONJ",niao:"@%E>K1T^UGVO-2{-6H",kuan:",s,tAqw(-,&-,2",cuan:",',Q,s,t,z1)1[fLfsrZw;yv",te:"?vRgr{xe",zen:"]V_y",zei:"S;a_bv-0M-1Q-2+",zhua:"2(AU-,Y",shuan:"5<@]z3{?",zhuai:"#1dmi'",nou:";v=,tfv;",shai:"/Z121J1e2[[K",sen:"Ve",run:"$1AOz@zQ{F",ei:"ZH_@",gei:"5C9J",miu:"7n:@]+_w",neng:"?LR'",fiao:"WL",shei:"Zg",zhei:"j:",nun:"-84"},m:{yi:"-:~-:<-:;-:4-:3-:#-:!-9~-9T-92-8u-8R-8N-8I-8+-8(-7O-7M-74-6l-6c-6L-5z-5)-40-2U-2Q-2>-11-0o-/_-..-,o-,B-,3-+q-+[-+<-)X-(o-(5-'w-'k-'=-'#-&6-$'-!?~=}E}1|x{Zz|zzxix6x.x%wKw,v%uPs_rurorEr8r)pppdpXojoioVnxn_,^g]|]{]`]/[!Z=Y5XVVTTgT_T7T1SxSsR~RyR;QwQ0Q!PDP6NbN^N,MZMSLXLIL6L$J9I}IUIIHMG?EaEHE4D!CwCFBkBTBEB9B5@2?Y?K?I>K>H>'=a=R;m:~:48c8!7,5g4q3&2}2Y1j1f1`1M1/1'0t.O.K,_,,*x*f(c'G&.&&%b%Y%G%$$b$6$/#x#T!9",ding:"-:}-8q-)?-%!vipfkGiydzY2Ik6u+B&^&[%_",zheng:"-:}-9O-7L-0#{1{,yjuvsRm*lNlIi;eheZe8e4e3d/`x_v]3[+ZSY8Y2XlVFTYT#Q1C@A!4W3w07.),]%*#C",kao:"-:|n{k][#TbL>>R3p/,",qiao:"-:|-:(-6A-5v-4=-3(-2[-.@-,2-$H-$5-!q-!=y/y$xkx4rSm+m!k]k%j:iSi(hqbvaT_wVuV6V$T%KgGaF^FKFGEpDSBCBBB;8<2b1C1>.}#e",yu:"-:|-:p-9^-9P-9J-9H-80-7t-75-6'-5g-5b-5H-4U-3F-2l-20-1F-+K-)O-)+-(J-%a-$p-$K-$9-!7}]}W}5{7zizNzEvyvwv9v3tytjtetcsqsos@rsq|pyp+p%oQn6m%l8kyklk8jfgvguf%eGdWbtb(aLaKa:`1_1^:]e]d]KZOZ!YmXiTDS`SUS7RpQyNvLAKsJKJJJ;IAH|HmHVDVD:D*D#D!CrC[CDC,B*@K=Q<><<<1;h;_:v9G908=7M7I7A535#2{2R1b1:1(0;/q.(.&,1+G+9+7)n)h)F))(+&*%!$M$D$=#V!A!0",qi:"-:{-:r-9{-9E-9;-99-82-8$-5f-5(-3D-2{-1:-0G-.j-(Y-(A-(.-'v-'C-&%-%m-%I-%F-%E-%:-$D-#N-!Z-!B}$zvyHwbw;w1u~t[tFn;n3n$m~l^kkiBg/dpdTcKbJ4GyGJEW8l1T",xia:"-:y-:s-9u-6I-5e-3w-+T-*+-(v-'m-%n-!!}({Mwtwpm/logkeB_3YST)P~M-1A-/j-/i-*P-*J-(^-&C-&9-$k}[{Xtrrbp,n8lJl%dqbm_c_L]cZ(VLV%T]R_R^QRQQPOK9IJCH@l@^@?=k=Z=?y>]=x<`;t;(9.9(857&6{6d5m3D/;.j+?(>(!&8%{%t%4$X$,#H#>#'!w",bu:"-:q-7F-,M-*w-*t-(d-'K-&D{B{?{6zPtOm#izh'gfd,bi[rY}Y{YfQHM,C>C;C:'=",fou:"-:q-(cvCBj4H",mian:"-:o-42-1d-0w-,S-,H-$`tktQsZqpq#aDNWJ^E=D~@p?|;k;,7G/o",gai:"-:n-9w-6e-+u-+t|'uYm@dy^AW%T`QYNaHZGNGM:M8|'{&6!,",chou:"-:m-:l-8m-5_-4=-2A-(m~{t/r!iKhld$b3aS_%[_Y%W~N?N=LJJkI|E?B_0h/O.s.p&3&!%l#v!m",zhuan:"-:k-7o-3G-3+-2y-.I-)n-%+~EzRyPreq;<`,E%g#(",ju:"-:j-:?-9m-7n-62-5`-5S-4x-4j-2l-19-0%-.Z-.:-,.-+n-)H-'d-$|{/ztx_uct_tNt$o{nvnqnOnMmqmil`jYj9j7g+e%d:-(h-(c-%5-!.-!,~|~X}2|L{2xhvCs7*6e4n2x.Q.G,n)Q'(%k%h%@$p#R!U",shi:"-:h-:g-9q-9l-9N-9M-8t-8_-7R-6k-6]-1X-0m-,^-,:-+_-+6-++-*>-);-()-'{-',-%.-#t-#7-!W-!>{>z|y{xn=}:{:s:W:5:'9v7C7?6n4=4%28.3.+.#,0)$&3$}",qiu:"-:f-:^-8m-6#-)u-)9-&+~*|FyTsQl4j2j1cFc&]rWkO%KIHeF8BpAn@s@b?J=o;^:l:k:j2D/T.k+D*'([!P!(",bing:"-:e-:W-8h-8b-6u-5B-4T-3Y-1;-0a-0[{mp1ngnZhbhah&cm[vY,W5R0QpN/MQLQLLJnJbGXE:@~4E)r%,",ye:"-:d-9z-9.-9&-4e-2_-0U-)7-(u-'%-$W-#,-!]{:zIxqxdwgoVm$jxjw[hZzZ!YyY;X:X6UhUcUUUSURQUPxP@P?P,OmOkMYMXIQHsHpCXBh>i-,u-,G-,/-'I|/{)y&u^tXr*mSm>lKl?eNc3_H^LZhXL^>J=,7[6?1e=_=G<8:?7f7d6/05/f*6*2)c%x!'",diu:"-:_-:[",liang:"-:]-:Y-9)-5x-5[-5>-5%-1G-0B-&J-%y-%7-$Ly2bWY7Q*KJIwG%~n}bvRuAq=pZo8o6m1lyh[hZh(d]d$c|cqbY`,^xXkTaS4OVM;LAKGK=H{GFD}DJ@8@(?V?>=g;C:b976B/j/i/O.b.D,?,>+Z+Q&g&d%O%!",yan:"-:X-9d-5]-4]-4O-3;-1u-1Z-1Y-.a-.[-+:-*O-*F-*/-*$-){-)z-'%-&=-&2-%'-$N-$G-!L~~~a~Q~5{GzAydy7xLx@wMw>vPv>uFu@titfrgr?r9qwqfqWpKmhlEl'kuktk0jUjKjJjIjGgM-9<-9:-7m-5K-0W-.$-*H-*G-*A-*?-(s-(H-&n-&'-%;}L}@}9{j{5zbxTuBu3t%q2n,lVlUhKh?[`[ZZZY:XLN'KlIsIFA0A,}>k:c9s84684l0$/w&C&/&,!*",zhong:"-:P-8A-83-7x-4Z-0j-/C-$Tz8ysx$vMvHs^o)i)eqe0dddYS`MKC2@=?G4w2k.T$F!>",jie:"-:N-8i-8<-5$-4~-4W-4!-3j-2]-/@-/?-/)-,r-,a-*j-*i-(e-&c-%d-%H-$m-$8-#q~zzKz7vevOuit>sasVsCs(qSpIoJnpnln*m|lCkvkbjrjqjgjbhihIeEbr^S^;]_[,YZY+X{XwX?W_UmUOUJS9RINXNJL0KxKoI~I1HqHgHfH8EOB,>j>;:z9b882?/'.6+0)H)8&K&J%g%]%M%##D!~",feng:"-:M-8:-5L-4N-2Y-0]-0&-0!-/{-/y-%p{Rz9z5w}w9v7odoYl}l|l5W4MkKPI.E[?m?h=S;Y;#:R8e5Z4i3V3*2g1h/1,O)u%C$B",guan:"-:L-58-1=-0l-*vphb@b?af`LXqW*SRJ+G*D(B2>wRWQkP#L)?N>=0X.X.U",chuan:"-:K-7o-3G-2t-.K-$]}Tz3jFjDPMIRIDCbA?@i,H+<)7",chan:"-:J-91-2y-2R-1~-1/-/:-.k-.J-.*-*~-%$-$F-!n~P~@xBszr>q3l>kJkCkBjXh{hpgWdu^r^lXsX+W;VqVhU#S9RYJsJXDEB#=v:^967o7n71655d5B2V1I,#&v&u",lin:"-:I-9U-2g-0e-00-0/-)v-(l-%PxDlbk,gIgHc=bob)_=_6[MVGS?Q+PGN!FIEmEDQ>L#JuJfJ3J,IoGcDh@j=|=h.h)e)N",zhu:"-:G-:B-9]-7d-7G-7?-6Z-.&-,t-,n-#T-!z~4|=xpx3qVq!ploNnWnIl*i>[[[WT&StS;OqO1O0O.N>M#LzLFGWFmF,DhDbD^D0BH?&>Q;b7t7Z6s5x5>4V4A3y2^2@1+0x0?,K*K%B$J",ba:"-:F-8l-7`-1E-)^-)@-(b-&M-&I|_{[x>wCv0mumIj,fq]o]I]6]#[GZ)O+M'D,5?4R0+.m+@%N#/#!",dan:"-:D-8~-7{-7H-2r-2J-/V-,,-+G-*~-*{-'f-&2-%C-%B-$v-$F-!m-!b~[vTsjiofTfOfEb$aga>_q_P]4[VXuV@V?UjRiM/BeBSA*@)>rc>C=n=$;S;N;0:N:08?837i6R6G5|4]4>4$2]2O2F1]0u02/$.r,[,P,I*~)h);'f&H%!$N#X#U",jing:"-:A-9C-9+-9'-5r-5%-3A-2O-1N-0K-0C-/9-.~-,y-,k-,[|i|g|cyIvQt:t8t+pojAh|fdfZeeeWb/___NUoT+S&S%Q:Q3PIP0KZJpEvBsBn@I@H>m>%=><87]6#,r,'(^(B(<%($u",li:"-:@-6_-5u-5k-5Z-3s-2&-1z-08-/Q-/=-.o-.G-.'-.%-,l-,&-*L-*I-*:-*.-*!-)|-)Z-)X-(z-(2-&U-&0-%g-$C~g~`~A~>|`yrxEu+tat#rjqYq,nAmkm5m.lzjag@b]bXbRbB`l^&]q]gWYU@U3TsTlSpP_P>P%O&NmN^MqMSLnLcLYLUK!JoJdJMG1ECDuDjD_D8D.C/C+?k?[?Z=Y=U=/:/8z7@6C6$5H0a0U/>/=/#.z,~,u*V*$)z(t(_'x'u'l'W%R%F$l#P#A!Y",pie:"-:>rVV]V[PHAD8>",fu:"-:=-9c-8[-8#-7z-73-5y-5m-5j-5U-46-3v-0d-/|-/J-.R-+h-(=-(6-'[-'S-&E-!s|<|!{]wvwWvVvRuru'tDt,sbr5qJq/pmp3oWmgmFi~ifi7hzh;fwfkeje?c{ct^w]l]J]&]%[Y[QZ+YfV7S}SLS)ORN+M]MGM)M'L1KWJ2IYIPHKA:>~>Y=W-8%-6;-5|-4k-2k-2:-1q-.T-,|-,C-+y-+/-*V-(U-(T-(J-(?-(+-&)-%K-#v}4|^zLykxvvxv4u%tjthsurTownkn9n+lmkzk_j6hFgQfudbd`d@c'b[bZbKat_]^[]e]d]]Z4WGTTS7RoROQENvNtNoM&K#FLCVC=B3@[@Z@S?{>T>*=V;^:,874(3C322*1w/V/A+3*4*3(|(P')$h",tuo:"-:6-8X-77-6h-6.-'a-'G-%[-%$|Sz;v8sNrRmck'gzet]i]`[H[F[EZMYuV1NgN^MTM8ITI+GbFBF0AvA_@d?`?_?^-)C-(W-'v-'8|||{|T|:z~z{yFy@x$v%uNtsrGp&m7l0j+iridiahyh5h3ggf5eYeKe4e3dmdUcU`6`*_$^{^E]Y]F]E[u[HZtZpZ]Y{XvWpWVW2V{VvVtUKUJU>TjSMRwRgQ`Q/NOMyMcM2LqLhL6K~K7JjIuI]I*H+GHF_D|DnCAC6BiAJ@t@O@N?v?T?3>V>34`1_/9,x,^(R'w'[&3%c%;%7${$z$k$E",zha:"-:0-48-.N-.=-*C-(w-'X-'?-&K-$j-$O-$Aw/pNd6]s[m[XZdX4WIW#O2M7M1M0LvLlI?H4Fv;X:67u5#4@2N/p&d%.!M!H",hu:"-:/-:'-9j-9F-5E-0Z-+U-+L-'h-'W-%n-%Z-$_-$4-$1-#>-#2~k}v|;x1x0x,uGt4sEr]r[oxm[iphxfxfgdFd*d)cGa{^V^6^4^3^/^.^,^']y]9[xWWW$SXRFR-'$-&N-%z-#p-!}uSr`ljk/cY_f_eYtVZO:L=G5F!=O='8%7a3{/^./*<$f#c",yin:"-:+-7}-6^-0t-0;-*c-(j-(V-%o-$d-!T-!+~l~+~$}`}$|&{w{YzXz:w_u=t0t&p:n}lnlLlfya@`i`B_u_t_0SMO[L:KKEkE@E1DKCwC_BYBGA5>l>d>U<5;~:}:i9}9V6^6]4).],|,j*I(U$7#k#_#:",ping:"-:*-5i-0]-/z-/s-'u|Qz1u/ngnZmTi[iJi4heh&`0_zMfEU?6>6=A[KMbLw",sheng:"-:%-:$-4H-.X-.Q-,?-+0-(9}=x{x7u*k}_VS[RGQJQIOeMuIyG~E{BzBF?%;k;@:q7G2u/M.N*h)i&y&s&`!'",hao:"-:!-65-3k-2)-)6-'j-&_-#k-!t-!Y-!#~xxRvacOblRDR'QBPePaPWP7J!A~Ao=]-'6-&/-%]-$X-$:-!p-![~T~8y?xWwnw'tgs;rCr@nsncn`nRnHkgk9jpj`jZiqiOeceOe9djd_dEcscgcZcKc/bqbeb8ay`r`p_s_r^V^6^4^3]_]O]HW%R:QKQ9Q6PEOzNON)MdLZKSIdIGG{GUFkFRE|EjCzCuCmCMCJA4@e>X>S=f<[;i:+9h9)8p8/8,7N3e3R3K343&2Y2+2)2%1q1P1O1N0}0P/E/?/*.{.t.#+p*r)|(#'h$1!k",xiang:"-9x-9,-9(-6}-3*-1}-,4-,$-*0-(x-&r-%L~Ww~uXk5j)h7gqe'abQXP5LWH^F1DH;!8:*E'g'T",shu:"-9s-61-5g-55-54-1|-1F-)Y-'3yNyGu[tGq4oNoCnWnIg}gxdWchcgcIbt^X].Z.Z#Y>WBU9T'S|PvPtP*OhO1O0O.N[NBMtL`JtFuFYEpBuBKAaA`?c&=L/3,E,B*n*d&f%0$8",mao:"-9k-1,-1(-0|-0z-*dzLwksLmOkzi?a=_?^(S/QvPrN4M@I'B!AcAW?9;F/Y/#,J)E#$",mai:"-9i-7I-,{-,*-*}-#${Kx5",luan:"-9h-9Y-9V-*^}C}Bvmu0qXq:q$m)jOZ[TvOuL2D69K5J59#4#3",ru:"-9f-6K-2C-1K-(N-#{-!$vkv[s7qyq)jciX]kZgUTP+NzL(E0@W>7;Q9u6b+^",xue:"-9e-.x-(Q-!9|Bxbq>q+mmmMjzf=ckT/SlKvFc?!>u9j7>5y1&.B%L%<",sha:"-9b-4c-3?-2H-/,-.t-*+-%t-%^-%H-%4-$R-$0iCgkZEZDW$<%81806O5S4B2Z/J/B/2+%!l",suo:"-9_-9=-3]-&8-%x-$&-#j-#gu&s(as^$ZEZDW:PjKaJz:E9y+|)w)v)!(]",gan:"-9Z-8S-7J-5&-0=-/u-'c|Ro'o%o#o!hfh_dqa5U~T]T6R_NuMDKLH6FNEd@??;<:8f7_7/55+;*w'#%?!T",gui:"-9X-6q-3{-/(-/&-.7-.5-+Q-+J-+I-+F-*%}3{zv2u;s?rhrIp|k$jpj`iLhLh,gmf;cMVxVVTiThRCQ2O%M9L.KeIeI`GTGAG_k_Z^b]7Z`Y~Y9V^V;TnSgKTF7F6D[CvAG@:?!5P2|1d1>0S0G000/+z+M+)+'*](n(G%L$3",liao:"-9R-2|-!rrLovomo[>90%*F",chu:"-9K-5N-3d-3R-2K-2!-0$-/m-/Y-/I-,t-*)-!o{$x!s>n5hjgXcj`g_SWxW$VoTNS=NEIjI&HoHQF|E}EsESE#DsDdCzCG?@9r9q6x4N/+*+(,&;",kui:"-9I-3{-/4-+I-+F-$U-$;-!xwow4s/rBo*mQjVjHb]a.a,_y^BXgQdPyI2I0E&BV:S7x2l.q!/",yun:"-9G-7r-3q-1p-+}-+x-(0-&^-$^}xwEvsvEqOb}aca4a)`c]2[yRNQTP}MwHWF@BmBaA&A%@0=3=!:!7W2h2:202(2$1b.Y+(&P",sui:"-9A-5#-&F-#U{3wytvr1nwn4kpRqEWC1C0Ab=H9[7+6z5}2C1g0~(/'p",gen:"-9@-9?-&pX=X'L7",xie:"-9=-9!-7[-4J-4A-4/-39-1{-0s-0c-,w-,+-+'-+!-*k-*Z-)7-$(-!C~e{ry_wrw8w1u)sOq]opnenVnNm$jrgJeFcT`z`p_BZ~ZWZ8X9WnWMV*UiUFT}SWRePXMZLIK@JwI,HOH?H/FlC]?K>p>A;P9h7B695{5!4Q4P3b3E2,0w0s0O,C+k+e)8",zhai:"-9;-6B-4f-4*-3E-*K-*C-&c~zw{p{os[u[2YxW/UwU>SiSfH#EL#t",tou:"-98-4'-4&{$wNv'sqs@aK]*T0SQ",wang:"-97-8v-87-1JvYo7o1o0o/eoeiefe[dldJa}]>RTQ(OEODO=N1JD@J6;+E",kang:"-96-8)-+X}|rmkKg|dG`8]f](G=8_4d.a",da:"-95-.N-+f-'f-'R-&m-#~-!J{hxrw[v*d'ag_q]nWZVJ@f?}:<4Y0p&@&4$#",jiao:"-94-6n-6D-2q-2j-2I-.B-.6-,6-)B-(<-$H-#M-#K-#?-#(-!^-!=~IuUu1r=r6qcm+m(k1k%k!e.e+cJbl_~_i_KZjZTZ5X&W9VlVCV(ToTJT?T,SwSuSgSSQbPgP2LOIpG!>!:l:k9Y8w8<7b5[5C443,2b1>1*.9+l*X(5#e!v!^!V",hai:"-93-'V-'0-$#-#h~ey]vOq;pL[!A3=N3[,C",heng:"-90-&B-%QuJcXcLbaVKL/FiF&<|42*B",peng:"-90-5,-3J-.F-+o-!~zgyqyYfUe|cyc+`%[tZ?Z6YkXpWvW4OTKCJLIlIWGGFn?6t}sxk~hVhJh)gBg?g;dzZT8T.O)O(NfN^MrMTMSM&KuIRAh?`?^&D$i",men:"-8{-8G-53d8bcbCaz_9_&]VYgS^PZIh@>3=1,+((W",ren:"-8z-8y-8s-8U-8F-88-/d-/cx;vSu`n:n2d|dwdv]XO,NiLPLMK6J7/]",shen:"-8t-7V-6i-6/-5d-1Q-)l-)k-)j-)i-(V-'i-&}z^u|u>ttsys.qmp_pHorn7lui(fp`t`b]b]4WPTFR4P9P3M:J7J(IHHRA9@+=D<0n:(9U7C5[!e",jin:"-8o-8j-8d-7}-6<-35-2^-2=-01-,y-,k-,[-*X-*'-%o-!F~y{Fzkz6yE=q=M:I9$6~6g3h2M0i*Y)y)K(z(d(@(*",pu:"-8n-3$-+k-!S}^}O}<{BzPy(]p[rY{V0UvTeTdQ;PiPPP&O*M,FZE_AS=`:17k6T614r3a+v(C$m",reng:"-8g]m",zong:"-8f-5:-4y-43-3KzFpikxkrkNeJcdaraVY^XXX(W&Q|O>MxJQIKG28L8D8#3+1n1c0{,b,R%E#w",fo:"-8e-8;-73|IJl",lun:"-8c-7i-6S-4u}l}Y{.t*lSlRb9[{YMJa?j<6:3",cang:"-8a-89-7h-5;-3e-07-+OkeDW<];o:Y9g9_8a7;/G+J(!&Y&7",zai:"-8`-3V-2G-1!-&v}8pOl.]j]>L3>f;>:.4|4{3~&Y&7",ta:"-8^-6E-3^-#~-!&~Kz$yyy6vep}lc[HZXW`V&HCG}EqA[?}u.t`tZs~r~rOrNr9q`pUo;o:nBmylxlhjthhgCfhf+dI_a_X_R_'ZPYQXsWnWiVhVXVSU6U'QlQNPKNFMhGiFFEtDRC~ArA@>S=E=7:]:C7Q6*574*0l.=,s,G+f+c+U+O*|*s*T*,'3$c#b#Z",cha:"-8X-6Q-4D-/,-.t-)e-$A-$$~s{yvbu?o|m}kqj3]a]OZ7Z.XZX5WJW1NsM0LvK?I?GjEB@k,<%s",hong:"-8W-)w-).-(X-(K-(;-&{-%}-$)~i{kvXu6pqpjn=j[fvfBa*``XeVNQ[@E?y?<>@=b=S;J;B:R8J7U5(3|31+>+4'T",tong:"-8V-7/-6R-4Z-2h-,/-(}-&|-#Z}o|/mNm>m3h:f(c%`P`)Z1Q]PwwuqtKqdmdmVlQjhekYffd9]bDaxT:RBQtPcIiATX7s5L",fan:"-8E-0)-0(-0'-,1-+R-)a-!hy%v_tDr;r:iwhwdi_h]l[ARvRtNpMLKXJrJAG,FD@w@g?4955t5_3n2E15.l.[(A&O&/&,!.",miao:"-8D-,m-)v-$?vDscrPh>gtgSX^NP<#;A+K",yang:"-8C-7<-6{-3[-15-,f-,@-*g-'Z|J{xwTukswmrl6l3e`d4cEaA`m^}]T[lXRUz>`8N6A4y4D4.2B+6*O)4%Q$|$@#F",ang:"-8C-*gn.RLQoN0!5",wo:"-8?-4s-4L-*l-(/-'&-%q-$atCtBsfi8^TZYYbYSXKV#SRN8I>@1=#YqXmXjX7WmV!UGU'R{PpO_MoM(LEK3JgIfIJICI)HEG]FhFCEKE2DLC&BMBLA]>a>$OYOSN.K&J*J)F)A>@66}5i4v391=16+{+.",bin:"-86-3S-2EpAe}W?UNShJnImGXE:B^BO@r9I6q6Q6M6,+.(j((",di:"-85-7@-5a-4F-3:-*D-'}-&t-&$-%R-%&-#O-!(}0|h|d|@{Q{L{8zMyFy;x|w?tqsmrimUkIjoi`hBg:fofjeld#`7]g[g[=YFX]XGW2TLT!R[NfN(MrM3KAK:JCHiG7AI=g<};T9f9=3F/K.V+=*5'1%c##",fang:"-84-4}-+^|r{Qzcv5er^%TZS:S(RER6N/@<@'8*4c1@/!+m",wen:"-8,-/X-(M-(C-(&-%Jy`vNf)dfde]:X.WRSmQsKNHWH)C$B`@>;z;R:*4s+1*8(}(&$;$.",xin:"-8*-7f-5d-5G-!3-!0~%vSCR9N@N%D$C^4a3$",ai:"-8&-2W-09-)h-'!-&q-&5-%Y-$'-#]-#E-!;{SzIyfxUtgtUrxr'kaa9_7_,ZNYaT&T$QqP^P.CxClB.:%9t6U3.03(k(;#]!s!j!]",xiu:"-7~-5c-5V-''-$/~|p@mfmPh2N~G09~9F8I4+*P*#(N",xu:"-7~-7Y-6Y-6!-49-0x-,F-,E-*Y-)T-)+-'p-$e-$Q-#7-!o-!W}7{Wy,x+v&uxspsArFhHeXckcKc:b(`g^YY4XMTKT@RbRZR!QcP{O^OOLGI9GfC|CtCiCOCKBw@5@4>?=t<>;+;):P9r998W8B433W2H0m+t*N*?&;%T",tang:"-7y-5+-4M-3l-3U-1v-.2-&.-${-#.|XzpyukdilaA^cW^V~OsJFH%F{F<@P/:f8U6y6Y6+525127+_#@",hui:"-7u-7#-2u-1{-+H-+.-'/-&j-$[-#=-!f-!U-!D~p~,~&}u}Fz]xztEsgr7q]onn?n>i*gmg7g5f6f4f3e,e*cDcCcVEQSQCP|PQO]KeIOI3GRF4EiEZEQDqBVB>B=B7@n?D>h>g=y;+:S9X897x796y6:5,5)3t3q3k2h0y0q+h*9)G(=(2$~$)",kuai:"-7u-6@-2M-/p-&f-!8}:|ez&y'jEgMdXUkRrO]Cq=y79.*+g(2",cui:"-7s-5?-3N-04-%I-%>y8lYlWkhdSbE`TV|IxH*GHAg<48P6a331g)p(b%I$L!d",che:"-7n-5`-4I-,%-'y-&*|?vln|nGene/]QY.XcVsV>V<7`3r3b3E0C",chen:"-7h-4_-3e-2'-#|~ZyWyAw]pGoBdRa>[aY]THS~QAP$L[K_K'J(HUG3D]@+@*2n05)l%P$?$$",xun:"-7g-6O-4.-,Q-,A-,)-,(-+5-'3-!k-!P~u|y{=yixYxAw#uHqKq9o`oOmEj@j&j#g=ebe>c]`uXUTfRcP(NqL_KbF`BvB@Au@Y>5=r=l8+7y6V583O2h1{1D130j0Y0Q.5+b*H(L&T",chi:"-7c-7M-6b-6P-5E-3@-,W-,K-+_-*]-)<-)3-))-(:-&W-$z-$I-#l-!g-!=|@|)yLw/vBs6n|fsf$eweve6cBc9`X`7_|_2]`[f[!ZvZ/W+TxTCSNNcMPM3G1ChC6C4BX@T?Y;:8g4~4;3U1K.O'A$Y$U$E$2#G",xuan:"-7b-2N-/.-)o-)'-'(-$Y-$Mz)wsv&sWrqr.p]f[cobMaQaI_I^nX_SyS'RAR,QeQ$Q#PNK@HxHwEf?#;I8d4M3x2e+L*s*)*&)B(Z'~%/#E#<",nu:"-7a-3r-,svjq?ilfed1Wo",bai:"-7`-6z-(1-&:hJ[?[>ZwYeX}WAUfUCTAMFLN,n'D#*#)",gu:"-7_-3T-2e-0F-)I-'s-'N-&<-&;-%G-#y-#@}gzfx#uhrUq@o&lXl=j5j4d*`~]_]9TSNaM.K-27-+8-(%|Nzsznv/v)t'Y'R$*#[",zhou:"-7W-6M-2X-0{-'|-'z-'Q-'5-%X-$i-!G~{v.t/pgjCiceIY%QnQLQ8)<3;[5U3G2o0D(K(8#9",ci:"-7T-7B-6m-47-17-/+-/'-'t-'r-%@|*q}j3h<`hN|MILHD&C??56Z*p*k'E'6%=!{",beng:"-7S-#w-#+{R{#zgyXw!lBkYX0>v)d)[',&k&j$a",ga:"-7Q-'M-#A-#/-!4wIwDoEo>o.RaOM+C",dian:"-7K-7:-3m-18-**~M|P{lyBxfw6v~t6t!kXj]jNjMh@ao^!YOTrTWT9I_GqG_FPF5B?-(7-%`ylybwYvit=nodgc2b:Y#WPQ?LSB{?U-72-66-4E-'L-&,-#!|lmtmsj;h0d6YTV4R%M7M&)e",ti:"-7;-5N-5'-4R-/!-.n-*;-%H-$y-$3~w~rw?smsPnmnYnVl2foeCe6bnbjb#b!aU^)ZHY*X]XGU>OaONL$JxJCCQB]=0;T8O*5)A'r",zhan:"-7:-4>-2y-*s-!IrQnamRl>l)kCkBk.j|d+b0^M^?^5W|SJSGS0RsMjLiL-&t-%H-$j{szSmDl/kIi3c}cPa`^IZbX:QwP!M2HsGUBcAK?I0*/}/n'_&#%q%j%i",gou:"-71-3p-0y-+z-)H-'p-%W|C{uwdwcuTs0mnfM[CX%VcN6M^Gm?q:925.C*o%2",kou:"-71-0f-.C-,g-)J-)DpCp8fId3]^[|VpTV9@",ning:"-70-6>-4a-29-0.-'H-!)r%q!p2p)p'p!ot[4UMM5F/E5?17J6k.<+a&i",yong:"-7*-5t-3M-,U-,T-'T-$t-$+-!:{Oz!yCxcrlkUg{gAe{ceb{bzapaC`w`n`:[6XTU}M4LaGQ@}>x=9:p947:5T/{/i&p&l%)#S#8",wa:"-7)-/n-,e-(/-'P-'&-&x-%h-%A-#y-#nu5tbt3sGnCije[ZaWUTq>.:;8h'V'D'>&A",ka:"-7&-*r-'O-'M-'4-$u{g",bao:"-7%-5h-21-/>-.e-.]-,!-+{-+s~ozPzOz@sBqBpcpMp$ohoee&d:[w[kPPP1P&M]614J2<0_.u.h*G",huai:"-7#-',|mx^xIe_dC_:^oGhDX<25z",ming:"-6x-0g-06-(|-'guEs&`aXxR@PhOFH<>0:7,8",hen:"-6s-&p-!3eac6[0.:$y",quan:"-6p-1H-/.-.#-,5-,#-%%}X}Q{4w5u:t;q[m?jRf`c0b_b%['Y`WKNxJ:I[H_GLFjD>?F>F:a5841/I/H/7.o.n.m.O)2&I%'",tiao:"-6o-%Xr#pWmjmWh4cRZfSQRdQjOLO'NYK.Fo",xing:"-6j-5.-1<-/U-&g|0{auft{t5qljAh`f*cxb>aZUYR/P4Nl>ZG<9;H9<8o6o6l5n5G1z0B,a+T'h",an:"-6W-5J-4<-2D-*P-*J-')-%e-$x{b{&z_sYpwn@n8mXm:hXg~ZnXNQ.PnL'L&A1>M.g*w$V",lu:"-6V-33-1C-.H-,N-,<-*q-*o-!N~q~_};|G|5yVyUxMtVmChGgZgFf9f8^7XzW)V)UzUAU/O{MpLeJ#G&FyEuDvDaARAM>sb._,A$C",jiong:"-69-3'-1.-1$-0}}z|K{;]~]}?M=J7e4t4I3c2T2S1W1.",tui:"-6.-6(-3&y'tmo$ftfodrY(F>24",nan:"-6+-*|-$r~'~#v=tzstrb^e[sXfPqN*M6H}:d29&a&?",xiao:"-6*-5v-5R-3a-.x-,d-'j-'1-&l-&P-$}-$1-#D-#?-#&-!|-!v~c~J~CuUtHqGpPpJoKlGh/fFcJ_iX;V:TPT/SoSnQVQ'P;MiMaLOK+DOCYCLBAB4>B===8M=5;9*7)`$V$O!r",guang:"-5~-2}-1h-'@{~uIhXhTgOZsVKL+>28)5/4b4_4^3s.d+Y*U",ku:"-5}-/3-&Q-$6~R}PzrhDh+gN]dZiZ5OPMgL!I%3N.>$9",jun:"-5{-2T-0q-(n-(G|u{NuHollq_;Z3U5TzQPKMJH@F=l6V3G1B*1&'!Q!K!J",zu:"-5w-5?-+1-+$-&S-%rlYlAd(S#M1Ix0'*e",hun:"-5s-4o}_t9t'o9dMaz`oYDR?Q~JYJRBf=u>=4:&9z828&+F*L(F&r",lia:"-5[-5>",pai:"-5Q-&sg9eP[NY?JU?p>+;j;8/t.w,q",biao:"-5O-36-2/yJtIryi%f!VfNhLjFzEG<.9C66511o0c,k#|",fei:"-5M-.m-+M-*4-(i-%8w%vZt@t?nXh8gpgPbH]xSdQxQ%P:OPNLLxJVH5FOF)Di?Wq>O>N;y8^6F3{/(,T+P*M#y#5!Y",song:"-4q-3I-0D-)'u8pulDk^kOgydYdAb`a3a$`D_MZ#XXW0NK%J`HyEF-#*-!K~Oz%x#s{sXs9s%quqqq_q%kcj[jWhCgDexdha/_AVwV_U0U&R]R.Q:PwO?MHKpK]J{HvHdFbDMDI=_;E:U:K9d9O8K8F6j6i6N6=6&5~5o5j5M5A2w2r2_1x1)0b*:)*(y(S'i'5'%#j#;!B!;",ruan:"-4[zJxQsiVWOUE0):'}",chun:"-4Y-&7sda^RPR(PlOONDIBGrFQE(=T<,:[9N8u/6)C",ruo:"-4S-)[sskPf]Z:YUI8;y3'0^",dang:"-4M-2P-1V-/k-!1}*{fx]swpkl6kdf:aAZUUsTpKiEYD5@|8:7E5D*;(J(6'?%}",huang:"-4@-1L-/w-$PzDz.xtw&s[pEl9jBi0e@clcQa_a#`dXTQgQfPBOEHbH7D{@9:x9i8)4:2c2.1J0X+w)((E#i!}!g!Z",duan:"-4+-.Uz+s`SFS[$XOVUU8U*TwR1Q&PYKrEy6E5K't'k'c",za:"-4$-+Z-'b-'X-'2-$c-!c~B~:~5i}]s[$NyKr?r?a",lou:"-4#-38-.}-$7-#ByMu4tRo{n[kjkEg_`5X)W'HaG#:O9&8~1i'2$5#o#n",sou:"-3z-0J-)Q-)N-#z-#R-#QgsghZ#YvWlW>W0V:U`UBJ/DgCn:#,5#s",yuan:"-3u-1n-1)-0h-.z-*3-*1-)y-(0-&^-$Y-!<}{}t}Z}R}N}M}D{t{_yawlv6v(sSs:s)qhpepH0ErDk@/P>#;L9A8M.|,&&B%y%n%m",bang:"-3n{^ypiNi5h~hme|Z?YrWvS2KEJTJSH@=j/m++",shan:"-3h-3)-2R-/F-/<-.a-.E-*~-$q-$F-#H}'{Gy+y*ulubr2nDj|i(f+]zZ;Y3XuXsWaVhV?UySvQ8NrL|LlIVFSEhCI@`7|7p7O5F4B2Z211~.4*b%U%1",que:"-3f-*_-*W{Pyty$lgbNa+`KX!T8T.JBH$@j4e0|)O#q!N",nuo:"-3Q-1w-$ftxa6_#_!ZLXnWoWbWLK0HJF2Am",can:"-3P-2F-)l-)k-)j-)i-$D-#H~:r(q3amah`W`V`U_[XsVqVhO_BtBg;/784z1!0L(9",lei:"-3O-24-1t-,J-)q-#1|(z0xOx?rrU|U;G'E]DyDxD/?$>I=+JO7F5&2>1#(](7#&#%",cao:"-3L-#GnGk@`v`k`^_DVAUqOgOfG:8x",ao:"-3H-/n-*&-#X-#W|H|4xnxkv}vyvwsDs2rZmxmakAjnga`O_@]I]![DVuUeTBM*K=?>9;7M741m1^0Z,!+~(Y",cou:"-3D-0:Hl;1",chuang:"-3B-/b-/K-/5-.s-.i-.L-$T-!dhvhMd=`|W7O|;z;+:t8(+1*c)o)j)=$R!D",sai:"-2V-#b-#)-!/yod%a2XaAxAb",tai:"-2B-0_-)=}e|Mw[wXwOvzqvqCdodQdB`e[pU]SpR]MeE>@f@D@C>{:=4G4F1$*f",lan:"-2?-1@-)}-%P-!'~3|hx`xXt(qgqaqUmwkwhgb)_8_'^p[5X/UXU(TmSaS_PpLbHXDDD2D1=^9L8i7K6W5`5W5=5<46121%0n0d0I0@0>($'j",meng:"-2;-0k-,Lwaw`qEo2hnh*_._+^qXtUaP)O9K$F;EAANAF:A6h,Z+]'/&X#B!#",qiong:"-28-*fr.pza]`!K}F(3(3%2L1}*))J(G's'f",lie:"-25-0N-/O-,z-,w-,`-'<-&G{D{CuDjaj=djZeZ_YiUEL;JMA{>_=p403f2A1$0a0[.x,h,V+k+[",teng:"-2%i+9]8r1e%6%&",long:"-2#-'J-&]~^|7|6xHxGo2n=k6j_j^g.e([9U.QmOxO8LgKDGYDU>t:g9T9%5w0N*Z'n#f",rang:"-1}-,$~Nx[xC^mU$5b0K+S'X",xiong:"-1m-1j-/q-+v-+p-&zwsdLc?Sy@;>42w2r2#2!",chong:"-1l-0Y-#L{*p`oflelde0dc`+_dXT2NB6[6G5|5u$P",rui:"-1g-1e-1`-)LxFas]0M~KVF.@G)'&t",ke:"-1f-/*-.w-,]-,R-+;-)>-'o-'0-$!|Dzqx4u#p^oUmomIkvknjqc4bra6U4U0!/N//*j%>$O",tu:"-1c-1]-0H-/o-(y-&3-%?}n}c}J}I}A}?zezZyvxipvnUlskikFh.gVeVc}bsZ.YYX@W2K?EL@R=C=::r7u(i$r$>",nei:"-1I-1*-&TtvA(=w::8Q7V631r1[*a)~)%(v(?&S&>&%%r$(#d",shou:"-13-)`-)V-%l-!o{ox)x&pxo[]v]uYITcTN,",mei:"-0I~j|vz>yRv#sks]sTs4r

-+b-+(-(_-(.-&h-#%{@wGuWs}s|rJrDlaWTV}V+NAMvKfIgGKFX9a7c,7&]&+%~",bie:"-/A-/;fGe2`#M'M!$!#I",pao:"-/>-+i-'^~o|2w=hA]$[P?.4J4H3d06.M'^%A!S",geng:"-/7-&A{TzHlrh=ZIOlK4IX=X2p&M",shua:"-//-%j",cuo:"-.y-.p-*5wukWkSh!ZKY&WuV4(o$j$'",kei:"-.woU",la:"-.v-%3-$n~L|8[RXFXEWnUEU2R`MOI6DT:T0['o$A",pou:"-.l-'_-&[{]twtO]+]&Z+YGJS/<",tuan:"-.I~!}~}K}HyPy&f7`>[}XIVmGLE;;.:m8t2[,F%v%p",zuan:"-.)XOTt",keng:"-,x-([|t|kvIZCXlVgBF/C",gao:"-,Z-(I-(>wRlpWjNHGxGwGdG>E~E3Dm,)!y!t",lang:"-,V-&J-$~{Jy[r{llgiSeOIOHO;KRHHG4Cp=[3Y,z*%(s",weng:"-,@-#oyxv{kfU!Pd9o'N'&",tao:"-+m-)E-'+-%DwPwMw*r}i/fl`j[oYBWXL,JkGtE?><=)'v",cen:"-)l-)k-)j-)i{Un#kH@?=1",shuang:"-)byOqeq^`NDB>t8R5w5^0&",po:"-)8-&M-#6~]|ZvztMoZmlmZg9W]TXR+O*E%?E>q>o>D;*:J8;6F3v,9*l!`",a:"-(s-'o-%O-$0",tun:"-(k-(7-%L-!`}}|snFhNdP_mRQPFOC@x=335",hang:"-([{dwSvIj)dGS8NML/@.",shun:"-(ZHnF?",ne:"-(R-(8-(%-&T]0%a",chuo:"-(Q-&@-%=~Hu!t~t.ssqVa|^2Z}UuCClMi@i$fDf@b1`Y_4XyW6TMMzJ$I:GOD{=#gKfVfSfC^P^N^>[zWQW!VySKMlIvGkFdEJ:)8{4[1s/|/z,f,.*{(p%m",pen:"-('-$E-$=-!6CN;'6}'Q!=",pin:"-&~~Yuatnrvq{[AZ{H]@_/c+!)r",ha:"-&wvz",yo:"-&`-%c-$B",o:"-&X-$a-!H-!%",n:"-&)-#a",huan:"-%v-$Z-$Y~G}D{_zWw@w2r.q[pYp0okm8l!h]bVaH_I^iYpXQUnU1KyK2GBD%CPCB>1=c<~;c8V7D734/3>2I.[.;,3+R*})9(1'b$d$:",ken:"-%V{qxjc*_CX~*I",chuai:"-%=XIW}Ch",pa:"-%/vLisihd.]oX|NC@r8608)P#!",se:"-%,-$,yogK_WY%X`W~J/J.Hl",nv:"vkc7OM@!",nuan:"vcPo;`:m2X2W",shuo:"v]a'WhT'S|OKGnCn>>470W+p",niu:"v?q=dKd0]S]![DN?@8@!4u/e/d.W",rao:"u2rA]PU?KkFJ",niang:"t|r&qb",shui:"t]iTZMYuA$A#@{=.=*",nve:"t)%S$%",nen:"sirarYc^",niao:"s!r+qsnwFq9x",kuan:"pBp#ooK)CoCfCd",cuan:"jPV'U*T~TwDtD7BU@o6E5K1S0<",te:"dsdr`R/F/9",zen:"d5VU",zei:"^H",den:"][]C",zhua:"],ZYV#ER0:09",shuan:"[&L^GL{let t=0,n=1;for(let a=e.length;a--;)t+=n*da.indexOf(e.charAt(a)),n*=91;return t},Wt=(e,t)=>{let n,a,s,i,w;for(n in e)if(e.hasOwnProperty(n))for(a=e[n].match(ga),s=0;s(zn("data-v-c7e0b9b7"),e=e(),xn(),e),ya={key:0},$a={class:"container"},wa={class:"action-bar"},_a=["title"],ba=["title"],ka=["title"],Oa=["src"],za={key:0,class:"icon",style:{cursor:"pointer"}},xa={key:2,"flex-placeholder":""},Ca={key:3,class:"action-bar"},Ma={key:0,class:"gen-info"},Ta={class:"info-tags"},La={class:"info-tag"},Sa={class:"name"},Ea=["title"],Aa={class:"name"},Fa=["title","onDblclick"],Ia={key:0,class:"tags-container"},Pa={style:{display:"inline-block",width:"32px"}},Da=["onClick"],ja=["onClick"],Wa={class:"lr-layout-control"},Ua={class:"ctrl-item"},qa={class:"ctrl-item"},Va={class:"ctrl-item"},Na=re(()=>k("br",null,null,-1)),Ba=re(()=>k("h3",null,"Prompt",-1)),Xa=["innerHTML"],Ha=re(()=>k("br",null,null,-1)),Ja=re(()=>k("h3",null,"Negative Prompt",-1)),Ya=["innerHTML"],Za=re(()=>k("br",null,null,-1)),Ga=re(()=>k("h3",null,"Params",-1)),Ka={style:{"font-weight":"600","text-transform":"capitalize"}},Qa=["onDblclick"],Ra=["onDblclick"],eo=re(()=>k("br",null,null,-1)),to=re(()=>k("h3",null,"Extra Meta Info",-1)),no={class:"extra-meta-table"},ao={style:{"font-weight":"600","text-transform":"capitalize"}},oo=["onDblclick"],lo={class:"extra-meta-value"},so=["title"],io=Pt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e;gn(o=>({b7cd59ce:c($)?0:"46px","0e09e1cc":c(y)+"px","62228ae0":`calc(100vw - ${c(y)}px)`}));const a=nt(),s=pn(),i=ie(),w=ee(()=>s.tagMap.get(n.file.fullpath)??[]),T=ie(""),A=tt(),I=ie(""),V=ee(()=>I.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),W=ee(()=>V.value.split(` -`)),L=ee(()=>We(V.value)),P=ee(()=>{let o=We(V.value);return delete o.prompt,delete o.negativePrompt,delete o.extraJsonMetaInfo,o}),S=ee(()=>We(I.value).extraJsonMetaInfo);ye(()=>{var o;return(o=n==null?void 0:n.file)==null?void 0:o.fullpath},async o=>{o&&(A.tasks.forEach(r=>r.cancel()),A.pushAction(()=>Ke(o)).res.then(r=>{I.value=r}))},{immediate:!0});const p=ke("iib@fullScreenContextMenu.prompt-tab","structedData"),f=ie(),E=ie(),te={left:100,top:100,width:512,height:384,expanded:!0},m=ke("fullScreenContextMenu.vue-drag",te);m.value&&(m.value.left<0||m.value.top<0)&&(m.value={...te});const{isLeftRightLayout:l,lrLayoutInfoPanelWidth:y,lrMenuAlwaysOn:$}=ua(),F=l;ia(i,f,E,{disbaled:F,...m.value,onDrag:Ae(function(o,r){m.value={...m.value,left:o,top:r}},300),onResize:Ae(function(o,r){m.value={...m.value,width:o,height:r}},300)});const H=ie(!1),{isOutside:U}=Ft(ee(()=>!F.value||$.value?null:H.value?i.value:Ze(document.querySelectorAll(".iib-tab-edge-trigger"))));ye(U,hn(o=>{H.value=!o},300));function G(o){return o.parentNode}function K(o){let r=0;for(const J of o)/[\u4e00-\u9fa5]/.test(J)?r+=3:r+=1;return r}function ce(o){if(o.length===0)return!1;let r=0;for(const j of o){const O=K(j);if(r+=O,O>50)return!1}return!(r/o.length>30)}function ne(o){if(!o)return"";const r="BREAK",J=o.replace(/>\s/g,"> ,").replace(/\sBREAK\s/g,","+r+",").split(/[\n,]+/).map(C=>C.trim()).filter(C=>C);if(!ce(J))return o.split(` -`).map(C=>C.trim()).filter(C=>C).map(C=>`

${C}

`).join("");const j=[];let O=!1;for(let C=0;CBREAK
');continue}const Y=J[C];O||(O=Y.includes("("));const le=["tag"];O&&le.push("has-parentheses"),Y.length<32&&le.push("short-tag"),j.push(`${Y}`),O&&(O=!Y.includes(")"))}return j.join(a.showCommaInInfoPanel?",":" ")}$e("load",o=>{const r=o.target;r.className==="ant-image-preview-img"&&(T.value=`${r.naturalWidth} x ${r.naturalHeight}`)},{capture:!0});const ze=ee(()=>{const o=[{name:x("fileSize"),val:n.file.size}];return T.value&&o.push({name:x("resolution"),val:T.value}),o}),d=()=>{const o="Negative prompt:",r=I.value.includes(o)?I.value.split(o)[0]:W.value[0]??"";pe(Ve(r.trim()))},_=()=>document.body.requestFullscreen(),q=o=>{pe(typeof o=="object"?JSON.stringify(o,null,4):o)},D=o=>{o.key.startsWith("Arrow")?(o.stopPropagation(),o.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",o))):o.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};$e("dblclick",o=>{var r;((r=o.target)==null?void 0:r.className)==="ant-image-preview-img"&&Oe()});const he=ee(()=>F.value||m.value.expanded),_e=ke(Qe+"contextShowFullPath",!1),Pe=ee(()=>_e.value?n.file.fullpath:n.file.name),xe=ke(Qe+"tagA2ZClassify",!1),Ut=ee(()=>{var J;const o=(J=a.conf)==null?void 0:J.all_custom_tags.map(j=>{var C,Y;return{char:((C=j.display_name)==null?void 0:C[0])||((Y=j.name)==null?void 0:Y[0]),...j}}).reduce((j,O)=>{var Y;let C="#";if(/[a-z]/i.test(O.char))C=O.char.toUpperCase();else if(/[\u4e00-\u9fa5]/.test(O.char))try{C=((Y=/^\[?(\w)/.exec(va(O.char)+""))==null?void 0:Y[1])??"#"}catch(le){console.log("err",le)}return C=C.toUpperCase(),j[C]||(j[C]=[]),j[C].push(O),j},{});return Object.entries(o??{}).sort((j,O)=>j[0].charCodeAt(0)-O[0].charCodeAt(0))}),De=()=>{Oe(),t("contextMenuClick",{key:"tiktokView"},n.file,n.idx)},je=ie(!1),qt=async()=>{var o,r;if(!L.value.prompt){Q.warning(x("aiAnalyzeTagsNoPrompt"));return}if(!((r=(o=a.conf)==null?void 0:o.all_custom_tags)!=null&&r.length)){Q.warning(x("aiAnalyzeTagsNoCustomTags"));return}je.value=!0;try{const J=L.value.prompt,O=`You are a professional AI assistant responsible for analyzing Stable Diffusion prompts and categorizing them into appropriate tags. +*/let jt=19968,ca=(40896-jt)/2,et="",Ee=",",da=(()=>{let e=[];for(let t=33;t<127;t++)t!=34&&t!=92&&t!=45&&e.push(String.fromCharCode(t));return e.join(et)})(),rt={a:{yi:"!]#R$!$q(3(p)[*2*g+6+d.C.q0[0w1L2<717l8B8E9?:8;V;[;e;{<)<+.>4??@~A`BbC:CGC^CiDMDjDkF!H/H;JaL?M.M2MoNCN|OgO|P$P)PBPyQ~R%R.S.T;Tk^l$lt?uJv$vMyE|R}a-!}-#&-#8-#L-#b-$Q-%?-+q-,6-,8",yu:"#V$l%S&9&I('(7(=)))m*#*$*B+2+F+v,0,b,i.W0.1F232L2a3(384>6P8n;';i;y<1>(>)>]@iB&X&m&s'2'X'd'f(9(c(i(j)@)l+'+M.).+1y1{2=3K4c6&6'6)606<6B6`9`9{:a`?`AgCLCuD%D2F2GyH&H1I;K~LkLuM&MYO0O3O9P8PbPcQqR5S2SCU0U~V%XYY&Z}[G^P`7cUc}dEeNgOj$j)l?m:n4p,sOuRv.y'{/|i}1~P-$B-%Y-)|-)}-*K-+G-+H-,m-.@-.M-/|-0y-2D-2c-4W-4`-4h-7a-7p-9c-9i",shang:")Y6V9cJvR8UqXJXa])asbQc,s,uSvz-#+-.;",xia:"#Y#w&,&;'''I)1.u/j7=:[<'B[ByCtL'NmNyQOR([0`(cLh[iRkVt/t_u4uezFzM|W|{~d-&)-*4-.}-0a-5;-8S",han:"#,.m/h:l

MFrGXJqNrOUPCPqPrQ|]@`+`2h1lBlZnXp*r;rWrkz9{4{B}x-#c-#y-$;-$l-$y-%Q-%n-(i-(x-)i-/!-3*-5B-9V",wan:"#=$0&o.]0F4@5X5b6*628u9pk@,JhR`b$b`knmtujz'z0}<-#+-'I-*Q-16-7m",san:"3T3q3w3x7~uJuwzA-'n-([-,s",ji:"#r%''l'y)3)d)o*Z+'+9+G+M+T+Z+^+g+x._.c/R090d1S1W2;43484J4R5C5w6)6C6`7f7s878H8t8w9J9X9Z9{;8;<;B;C=(=2>6?YA$B+CHD0D8DbE:EQF2I*I|JEJnKKL)L:LkLzMdN'N5N:NiQ6QyRrUWVcVnWPWQWtX6XEXYXuY(ZAZ|[/]O]e^F^J^U^~`)b#b0c*ckc}dee!e$e9e>eyf+fXfrg)hFhriMjZlrqmr)sRt%uov3vevw|@};}N}g~!~+~F~{-!&-!u-#N-$%-&a-'u-(,-*x-+]-,W-.?-.V-._-.d-.g-/+-0$-0H-1%-1/-10-1^-1o-2/-2@-3'-4)-4o-5>-5H-5U-6,-6J-7/-7P-9e-9g-9h-9i-9j-:l",bu:"0$192,FKJgT=UYZ^e+hhjmm8mFoGpGp}sjw]w{-'7-'E-/m-3#-4.-6=",fou:"4I:L:O:Q~1-3:",mian:"!G!d#4$U$W$]3Y5X6A6_6o9g9w@qB/CkG!H_Q;-!L-!M-!P-/_-7y-7z-8'-8,-8q-8r",gai:"):5=5LD,ErI!J1Z'_/`TaYaac!lnpcw[|O}1",chou:"!+#n$N+0/y0}2:4e5/6#9jB*B.GNLfUmZ+^3^5_4e%e4fWkan]nbo.o6oU}u~$~*-.X-/>",zhuan:"%H'S'V.K0k1B1H1r2?7Z+7+f,8.#.|0K0p2O>#DNE1P.ccd]eMlpt8y>-0&",ju:"!Z$L$w%R*W,c,l/e1~3&3J8#:t=#=`=k@FBGC0DlD}FeGAIaIkJbMrN[OVP`RDTlU|W>Y`[$^Z`Ua*ccc{dWd]dae#e@eFeff8fSg*ga@'@2@KA%C|DQO+O]O^PvR!REScU'UfZw]m`l`na'i[l_m;p-4F-6'-63-91",shi:"!E!Q!e#?$p%$&+'$([(](q*^.&/5/n0[1w204zQQR9VYW2W@W^X2XNYxY{ZI[:[<[v]X^l^{^}_p`DaDbmgqi8ixjdk!kNkpl(lkntoMo^ocoeofp5ppq%q&q*q4qbr=t9x/-&^-&_-&}-'<-'@-(*-(8-)!-)H-+,-/<-0?-0d-0o-0p-2:-2O-3+-38-57-6M-9C-9E",qiu:"*6*7+a0r3k4D5]6j>7CaCeF`HEJXMhNgNjONP;QMQ_RfSWUUX?XUXqXrajc$d'jpjskXl]n@o.oup:r?-#5-#6-$8-/'-/k-0W-0X-1,-2Z-4v-7&-9U-:Y-:Z-:]",bing:"!n)F*4+/,>.75@DsOcZ7l`puqar||>-!:-!q-#,-#G-''-'C-(D-/O",ye:"$>$E(0,a6g=;@?HfSb[]_]lUlfn(oip=rmtDtTtevTx?-!O-!R-$5-%N-'F-'e-(T-*o-4Y-61",cong:"$'&Y1>8==g=l=p=vDIE=I2JUK0LsRZZk]$a}a~sKtBuKu_-*)-*V-+Y",dong:"&&.r0b5D?7?C@JD|G;I#KwQ([&jV~^-)T-/=-0)-4g-5/-6T-9,",si:"'?(b)^)g)p*+.+>0KxL+NLP7PiQnReS&W_`tp1pvp{qTqnr8r`tIuzyB-&6-&R-&^-&c-&s-&{-(:-)L-)q-*8-+.-0.-5j-6`-9N-:o",cheng:"#0$,$P&W*O*[*w+A+{,O,v/l5[7#:`?}FQOoS(UKZV_#cHcJk#m$nhrxtkuxv@vWx=xB|2-!A-$h-'w-)o-*>-+B-/u",diu:"r2xL-&&",liang:"3A3D3{6K@0CRF{Q%Up[,_Oe1h!h2hCiBiHojss-!=-)h-.J-.O",you:"(r)O*I7o8W;L;f=5=M>VDKFoFsFwG/KaOOOSPSQLY8ZN_;`qh%hMjWjnk6kPlYmEn3n>ncodp~r3x&x<-),-.y-/1-1p-1z-7N-8P-9D",yan:"##%F%L&%&F&T&v(Z,j/u1?2$5t7V;!;h?<@@AsCVCYCZD3FmGpH.JlN_PVQAT$UxV9WUX/XkXmXnY?Z3[U^1^C^E_e_~`B`C`RbDbPc;g/g7kIm#mNmsn5nHnsnyoPoVo`x+z7zkzmzn{A{`{e|}}2}b-%'-%,-%B-%v-'0-(#-)~-*$-*F-*j-*s-+C-.4-.H-.Y-0V-3$-3*-3B-3n-5#-5G-5u-7K-7r-8T-8W-8_-8`-8a-8d-8j-9L-9Q-9w-:1-:N",sang:"'EVNts-%2-%{",gun:"#<&#'U6F6z9dJ>JpTFTwUu]4h:?B@}AbB3BwECHxJ1NwOrP'U9UPXM[X[hhLhmq`tetlu.xSyUzTzU{W}4-!S-!s-#F-#`-#j-%f-(A-*%-+t-.3-/K-/U-1u-3T-3z-6g",ya:"#B%C&{'I*{,a.g=UDEKqO;T1WEWGY.^[g=i!j4lUp=s=v7x;}f-3C-3c-4U-6O-6V-9o-:;",pan:"!&!>!?!H!o'L'x2A76=F>R?$AIH+m/V2T4{6b99>j@`BnEkK*O:OBP^R2RKSzTKTNTO[@e^f>ohparHtQv5wbyF-3_-9@",jie:"#S%@&{(.*d+=.G0e4J5,599D;k=(@/CfD,G#G`J[LzOFP&P:PTQ=SKSQSqT/TITPTlU4U7UPVQXOXSX}Z%ZWZh]/^K^~_5ckdve=j^qGtNtXz,|1}.-!m-!u-$U-%c-&v-+i-.l-/@-2&-4{-5$",feng:"!@%N'40m5v7R:3C$FdHnN.PFSaWI[R^c`?b.c5k'n+n;r[u5uXxs-!$-!4-&%-&J-&L-(w-3(-3,-3F-8)",guan:"!'$b$j$k(W)B,Y/f0E6:9&:]:gBVFqIEWSW{X+X.a?bifMh?kmsUu>w7zOzS{,{2}{-'K-(N-0q-1N-1j-2e-2z-6D-7A",kuang:"!Y!z$Y%1%r%w(G+}/O/z5'538V8vZ-8>",chuan:",40jA7BYB`BhBxEvale[hIkJp%wQ-5+",chan:"&6'W)K)q1N6D7$8*8A8[8_:6;xCODJIHKQQ2RGR_R{S1UeW!W`X3ZMZy]B^+^7_N_bfbi|n2n6o@rTr]uWw3xYz%ze{7{g-#Q-%D-%~-(%-(S-+Z",lin:"$B&['t0:393O5{8!S]SrU;VsD5E4GTO$WNYk`LdDdNgjozp?wr~~-!a-&.-.D-.`-/&-/0-1t-1v-1}-9=",dan:"!K%$%5)r,S0N1h4V8A=A=B=H=~>q@9ATAVH*JDOkPUTLV?VoXGX~ZK_'a|bBc3f{mHn&nKn~~t-$I-'G-'s-)*-)a-,C-3Z-8H-8b-8i",wei:"#o$M%}&0'#'D'M6/6p6r7+8y9f;6>n@gC+D!DOE+FCGBH)I&I(I4INJ]K$KJL7LdMDN0PwQ$QDQHR?T3T6V`WkX$Z)[#[^^*^4_I_^e;fefig@hbj>kg?:?k@N?#@!@D@E@nA3C!CWC}D*DFE'E,E]EpFFF|GKHKHjJXKsNSODOGOXOwPIPMQEQIQWTETsTvU.V(V6ViW+WKWMXpYS[C^H`Va4a{b4bXc(c7cRd=dZegh*hPhRiAiLlIm(m*mmnQowo|pFqZYZZ]U_6_9d9fYj6j~lWm)mep)rQrbrctvwkxc{y|U}6~?~C~`~m-!Z-*'-+R-/j-0j-3i-4/-4@-5,-5f-6j-6s-7)-9G-9W-9X",tuo:"%U%V&z0L2J4v?{@$F_H6MUTbT~Y'Yc^QdHdQnVq+r`x1{{|;|<-&d-(.-(z-({-)1-)J-)K-*:-*e-*p-+$-+3-.b-/%-/[-0b-3O-4,-6_-8}-9$-9?",zhe:"#'%+%E'P2f2|_@eB>CADvFAI0I>J:L]M:M~TgWHWfY/Ya[|[}^6_ngmi6k`kll*l9r!tdwhxRzv}!-!j-%=-&9-&T-'(-'=-*&-0u-1I-2f-3;-3]-5F-5Y-7+-9T-:%",zhi:"!7!t$s%=(J(i(k(s(y)2)I)Z*2*>*A*T*^*c+(+)+J+Y,G/k4Q4b5T5W5s6~7^7|9(98;(<0=E=Q=b=}>L>|?+?QA4^4g=0D{OPOZX]Yb[(]G]W^ng=o;t*xHzI{N~J-&t-/9-/a-1{-22-9]-9`",hu:"(1(~.j0Z1M3!3^545r757G?0AMCtCxD5C_{u-$*-'1-(A-1!-1d-2i",yue:"$S%!(a){0^0|242S2_373H4<8sAlM{O,O.ZaZc_>cid2dCdFfZgApDqBw2whw}zczd{[-,V-6:-6B-8Y-:^-:m",lao:"&)'n,71s3<5>9M~CXE%F$H(JWMaOQP%Yg^jgrh>mAqa-$^-(w-/(-1w",pang:"!o'A1+=/>R?$?=A/B|QmWsd@jf~6~|-0k-2g-:K-:M",guai:"0,;%",sheng:"!D!^...t7*7q859e=[=x?*E(KM]^aMb1q2t2|#|Y|u-4_-9B",hao:"*:.,25-%|-0i",mie:"!`(D1G1dJxL>SNS~W]vt-1e-3M",nie:"1&294(4,=G=|B)B0E!GDMlSX^=e)e?eAezforAs$sJu*vfw9wByVyY{&|c}(-%L-%x-:#",xi:"!>#6$3$d%/&(&g'J's(!)P)n*l+7,,,n313z434i5j6H7?7W81878g979U;V;n<2<5<6>c>d@>A6BABBB}FUG]HeI9IbIwJ+JVKzL2NdPjQoQqRYRqSiT!U)UzW9WFWiWlX7XfXjXlZH[K[m]5]F_@`.`/`W`_a(cCcGcfcwesf)fulGlplwm&m4m_n:oIokp2p7pbqLqMqvsYu+ufv&w6wSxJy,z[{5{b}9}?}P}U~#~2~q-!%-&?-'2-'`-'r-(1-(C-*C-*O-*{-.)-/x-0_-1+-1J-2X-2q-46-6*-8I-9O",xiang:"!;)*+50U5Q6Y8b9u:U;E;J<4APC{HGHvLTaU4UI`]a$a]bxdRjGl{m/q#qOrXu,x$x>y`-$a-$e-%c-%d-)B-+5-3J-3q-4(-7i",mao:"!M#i$i*:/66e:uqcsVx,y%-,B-,O-4|",mai:"?W?XF>K^LgS{aKaxj(l+~g~h-!'-5{-7t-7u",luan:";D?dAzA{L=NDW~o{r7w@-4'-6G-6h-:y",ru:"/M7F8G:1>AEgIYJ6KlLhQJSHU:VGW,inlEm`oSr+x_-%E-&!-1]-3)-3K-3x",xue:"$?,(A=C@E@IGLKStTnXd[p_[coe,hdibig~/-!_-#M-18-2k-6%-6^",sha:"%4&G052u4O8F8~<<WIYIuTJU!Zt`m`pgNlNlypHu7wcyZ~0-!d-.x",qian:"'K.(/~0A0t1'2*2D2R2p6+7[8J8q:G;h>b@vA~CnD(EIElF:I%IjK>KLNNO&O8P}VR[*[u]u_q`!`&gSh;i~kjk~p9pEpOq;q?r6sPtYukvqwPwgwtwvx+{x-#U-$z-*+-*/-*=-+U-,y-,z-0x-37-4M-6z-8G-8M",suo:"#*1Z1^4Z797U:?;cFaFbJ7P{VJcuk)tatju3u9xi-/b",gan:"!3%)*1*t.Y/x1*1}3%4s91>GCmE#T>Y^bJbTcAcTcti}nE-+e-.Q-1T-2w-3*-:i",gui:"!q#o$.$C%x%})0)s,E/?1K1T?NERJ;N%P/R*RpUgEi#lilxuyvlzY{P|M~#-#K-*;-.7-.:-.=-/S-1F-1U-2%-2r-34-:Y-:]",jue:"$Z$l$o%6,%525S8#9NA^D=KiKtNnO6RwRxU!WWWbX%X5X>XBXZXiY4Zj]N^f_}a0c[chd7h7x8D9V:4AQCyFOFPNxV}Zm]c_QazkFkHl.uqv!vF}*}/}G}H}w-#$-#r-+|-,/",gen:"CQEHdc",xie:"';(f*&3c4k5+595I5h6g6v7&8>8T92:B:M<3>l?T?V?ZA&LRLTM0Q7QKS+S@SBStTRV*V^W4XKXOXS[B[y^<_Z_mflfnl,lU-!i-!v-#1-#D-#h-$#-%c-/S-2%-9Z-9q-9t-9~-:b",zhai:"%X)3,92qP*Q,Znh5iGj+jM-.N",kang:"%<+U2v3tg1lJpgugwmz={L-17",da:"!W.u/(/S84;H=Xs]Q]fa`d0dhe3gvh_hfi;i?lvnkoHo]p#q]v*xW-'%-(B-*h-+;-/Q-1>-20-3|-5k-5s-78-:a",hai:"5L?Aj9l/lnnro<-'!-'~-)Z-)b-+>-+p",heng:"?J?mMZT9vc-3o-4$-6e",peng:"%c&'&S'+'Z+,.V1+1@5@8P>~AACgE%FdJRMkRiRjU3eSgbh:s9v{zL-$+-$0-):-*A-,X-,b-,q-4K-6y",mu:"!1#N%]+V7`7n:@?.C5DeF~G%O=e/qKqPx!~3~G-#9",ting:"/s5l%>&?qC)FnI7PWQ8ZJ[El=rUxKz`~K-!~-$g-%e-9F",qin:"$j$k*'*Q.d5c=>>MD1DAGZG^GkMRO8Q}RJS7TVWJWrZQc]pXpkriwix{}c-!]-$~-)f-+E-/c-33-4L",qing:"&/&Z'i046+60:ZDaHzQ#Wr[%]%_Agph+i7m;>t?fA!BuC,DrGWH=I'J{L4MmO^U+U,U6VrW5ZL[d]Rd8d_eKf@m3pxq5qFrVtow0wxw|x(yT-'4-'^-(E-(V-(d-(g-).-)[-*^-+)-+~-,$-/0-1=-1}-42-6k",lian:"'K+D2+2P2V6w7b8k94;s{M-#!",ren:"(o*,*e+#4A4U5)5y8x9$>?@AD)E}FGGDTUU2Y!ZC^I^Vg&gFi&p/p;pRqp-!W-![-#[-#w-&i-'#-(2-.^-3{",shen:"!U![$8$r$u%j)#)9,12e2g3T3U3q3w4l96:p:~>i>m?t@BFkHwH}JGK!LCPGPHUNX)Y1YHZ*[2^)_%_L_S_VfylPqRrj-$W-)W-.m-/z-0@-0|-1)-2N-4A-8b",ze:"#R#}$n(+*p/,0J1I=0BsKAS?Vz[(].a@b7b]c:jO-&t-6.-9s-:,",jin:"!#$j$k%M)8)G.U.m/J4W4`6L70:/B6F&F;GcGkJYM!TWW%WzXsTwGy2-!^-'m-(Y-)$-7D-88-::",pu:"$5*k+j0$8LBTBUFXGGGaH~IsIt[D]]_|bEfInprtupv=xbyqyu|[-/m",reng:"(_DGiu|z",zong:"&Y'h+?3P3]4$5z6E6Q6n6x7(7M7X7e7t9%9nz?!?MB'CwE5E7ENE`F4GHHuJbL;NsXHYOYP[I_caFa[bzb~cZcpd(h3hQiJmbp&pmsGtRtuy=yO-$s-$t-,I-/{-0r-2P-4e-9)-9f-9i-9u-:D",zai:"#^7HGHb+g|i9n^",ta:"(d)i2~VAZr]wdBe7etfFfOfpkdkiq+sBt]tex1{'{5{;{={R{o-!s-#*-#B-/?-0t-2d",xian:"!:!O#5$<&#(F(h)X*3+D/D0V2k3B4%4|5A5c5t6,6]7J7r8Z8c8q90:%;];d;h?&@oAnA~B;BvDSDwFzG,LOM'M*MpOKO_O}PJT+T0V_W:WRX,ZXZo[O]d`>awbKb^cYdgd}f;fhgBhHnfo'oPqvr#r$rFrqs0o334=4P4f5i8o8{;z*]+m.?/Q/i345D5N5`9PA@EjJPO1T,Z,cFj|ndq:qYqjxC-')-/L-2*",dai:"0,1n4x7%9AC?OMQ]TdW=Yd^xa7aLbqdff'gCgLg[i%jIk4p0~z-!0-)E-/>-3I-8N-8e",ling:"%d)D*M++.5/+4p6@9];K;U<.=KBqD[GiJJJmL%M|OiT(TcUjYVdLgZh/n8oWpts0x)zN|q~;~O~]~a~c-!2-$L-%`-)C-/$-05-2C-3L-6Y-7E-7q-9z-9{-:A-:T",chao:"!k,h,r2u6?9b;5J@mA+DTGMH!UlUqZfs&sWy+z'z(z0zh{1{a-#d-.0-02-1X-2H-2T-92-:d",sa:"8g?^HDK{LYY@fnpQuwwS}A-!c-!s-&,-&P-)&",fan:"%0(M/1/40i2A2d6R7i8$;o<[AIBcBfE0KNLPM>N!SOVqXva=bcfXo:-+g",wo:"#l&A,R,_6}>I@OAlB!G*HQLgP[Qbe:-(p-:4-:I-:L",jian:"!%#9#`$<$D$I&N&b','r'}(&(<(X+D.p/9/g0#0/0Q181k262I3_5U6Z788(899v:9$>S@fB4BoCICSCTETE~G-#O-#X-'A-'S-(7-(k-,h-0Y-0`-0h-1(-28-2h-37-40-4R-5@-71-7F-7I-7J-7W",fen:"#|%A*9./2x3=3r4S9';M;q;~ARD4IxKmO?O@TGY,`^`ff|hjnOpUvY}K~5-'W-'}-(c-(r-.w-1M-2Q-35-85-8n-9.-9:",bin:"%A8I::A)AiNc`X`cahailKvjya~l-$p-%G-%k-,'-,1-,E-,_-,p-.!",di:"!u#/%W')'.'{)<)_*U.v/*1=2c4+6c:);X;@WDXD_FMG9G_ICJMJrJwJ|M6Q+QVR-0>-69",fang:"!I!n(l4Y9*>TBjD;O!Y;^ed@lLp@siwn|,-,?-.v-1s-3E-51",pei:">Q?(JBSwUrUsauc2hyiPnBn{s5y7|%|f~M-)#",diao:"$#&a,C,k.B1]5FJML|NhOaXxZ8Zv_M`ro~p_r!r:s*s[vawUxExR}v~D-.c-//-0%-2L-2{-3&-4O-9>",dun:"!^?gD'G!O'O(R/RO`ahShWiNu6zlzqzw{<{D{Q{c~4-#?-#{-%(-'f-)(-)4-.r-0g-0z-2V-36-3G-9<",xin:"!=(F?zBID7FkLZSyVtY3Y-%T-%U-*[-,w-.G-.W-1_",tang:"$f'@)f0{3V3j3o;l=)@zA4J4LJQSR$RAcMc~eef&g+m]o=tiu)uTv'wDx[yWyd{1}:-#I-']-'h-5:-96",huo:"!V$S$^(*)>)S*Y*_*`+|,W10=$=4AuCJG.IhMTSI[g`0a:4<%<@?R?U@.AEANAhG{THVmd#uQ}Y-$|",che:"$;%I&?&@=JFjP@gFA}EKFRFcK:LmRBTDW6Y7Zz[Q[o^;_V`$arb;c`cad>dKeagKimjHmDo@pAt(|C|o~H-5T-7]-9l-9m-:=",xun:"!x$Q*p,^4;8MAjEnF:KLKSL[LaMcRzS%XwY#Y)Yt^R^T_+j%jajlkclsmzoTv`-%A-(}-)U-+%-1?-1H-24-5A",chi:"!]!y$).X.y/A0+02133,5W<#<$>?2?D@SE9E|GeO%OHORR;U/U0UkVMYFZ9Zq[t`8aRcBc^d+dfeGj@jBkKkfkrkyl7q7q^qusx~9-&l-(4-(|-+&-.R-3Y-4!-4r-4w-4y-5]-6Z-8(-8C-9k-9v-:<",xuan:"!m!x#d$['5)k0R5?7J7d7w9K-+4",bai:"+&.;3;3M51L^W3b:b_-#k",gu:"!/$J'B)A*~+P.z010?0u3g75:r:v;Q>K@(AfE)G>GhJ,LSOdOjSeXFYR^h`%a]bxgdgehYi,iXk,nYprpws]wwy.}h-%@-%W-'Y-(Q-+`-/;-0'-2I-3^-5?-6S-7%-9*-9+",ni:"!h#P*G2m73=i>$>}@pABA{DqLpOLP.Q!XXZt`~d`h.jhmCpnx3}L~X-(e-0,-2J-7`-:+",ban:"*E2s5!9;>PBgBkQ*QvVKd[iciipPqEwfzx|$-!h-$F-%Z-.n-35",zhou:"!+#U$x&y062.2@2C3+384:777o8p9:B>o?#B^F@GoI$LfY][a]y^r_4_Manc0gkg{h,i0inCqg~Q-);-)`-)t-*r-+[-0(-3~-6f",qu:"$L'o(}.2.F/@2U3?4o5#<1u?/AxDlG:HhKbM}O[OfOpQdRDRlSkSpT'T:U&WxX!X&X=YeYjZj^tcjcld%d*fqf}g2gWw-#)",ga:"g=onsfwH-.A",dian:"&p'v,j1iIiKRPXdXeVewq!x%|8~@-!E-%3-%4-%z-*g-8Q-:8",tian:"!:#;'1'H,j4w6D>v@:BRBXGvWmX9atnTr#rFsXx%xM{%{n-!>-!G-'$-3f-5J-5S-8:",bi:"#L#M'!(w)L*@*C+;.n.o/E/Y0(0)1/1<2r2y4M4m6>7Q8@8};7<,=a>a>r@lA[BlC|E*F.FJG~H:J*>1>2GdYf^ucScxorpC&CqD^FyHSK}Tjh$la-#&-$)-,Z-/`",zuo:"(|*S+!+n/,/p4*7{?'D{F^H`HaJ?Th[(nWp||7-&t",ti:"!g#e')'?)Z)|*v/8285f6|9Y9y:{DXF!KgLIUzV&V'[qd)d2eJemexf~g8jxk=kLo&rDt)xy-%$-%r-*2-+m-,0-,L-,]-,a-/^-0B-2U-4;-4w-4y-5L-5M-5i-6r",zhan:"$H&b.33*6=9oGQLMN2N`NaOeWyYQZ/]h]l^B`#cghUhgiSl0n|zK~V-%~-&*-&N-&e-'|-*b-*l-.Z-1S-2y-37-60-7=-8i-:h",he:"&c()*(0z2i3@4?8r-:`",she:"'y(`BJBKBLJuNpOgP(S5Y>^dagakc'cDg~{!{^-#h-)u-7l",die:"!g!t&w5M9GpB5C6D~PmQ`R@V,V]YU[7_WcbdOdXdreigojNz+-#1-0S-2R-3d",gou:"/01%2)3g6t:&DhO[U#VBWwX;YNY~_(`ob5bgk_pMqHwl}k-#A-#m",kou:"!P!Z#r$$,P.2/W1OD+K=KFp$-5K",ning:"$P=R>!DpLevm-,~-64",yong:"%p&>A]DcIPP=Yre2e]l@mJmio9rHuVyh}n}~-%*-%s-'x-/y-0w-15-2A-2o-5`",wa:"%K,),?,E,`=N@r@xOyTuW1lc-#W-#^-#t-8w",ka:"?8U@qV",bao:",<.~6h?,DgGYHcK`L4MJN^OJTeUdV4V5Vf`ib*d8q/w%x.zs~>-!6-&x-&|-(9-)/-+j-,M-/7-1~-3/-3A-6Q-9r-:B",huai:"=7N3N8VDVSeE-:f",ming:"!C!w#zEDJ'R,WuZ0m^n_q}xT-3.-6L",hen:"Y|-!y",quan:"$b%u/K0B5<6$7:9mEqI3NAP|SlXLZ#_)dkeIgzi=o5qxv%xO{#-#_-%M-&$-)V-*3-,e-0L-2^-9}",tiao:"!~(t),,J,g/!3/4.5F=S?PCdD^H0J@JMJNPnWdZ8Zv_McqdwjCr!rdtyxR-#%-,G-/o-1&-2;-9y-:C",xing:"!D#Z&$0Y0g6J@YApBFEuF7FhHrP9T#XVX_[_lMluo+pBqZqwrhwZx6|D|S-'V-(/-)p-+D-/5-0D",kan:"!N$=$g%?'^.QG&T%h8ho{4{q-%)-.+-:R-:X",lai:"#8#F/X0%2/2MG'H%MSW7Zqaob,c&c4k.mBsgxd-$q-$w-)y-0*-4B-4f-8%",kua:"50?>B~Z=d9dlq~-+s",gong:"'91*44474=8o;z>[OBXQXba6bZfzg$gtrG-!z-,T-:L-:Q-:W-:u",mi:"!s#p$A(w)')w*C1d2b2}3p407c;>;F?bClH{J#K'K/L}N#N6PaU*WZW[WcX1Z.[j[l_g_rjXo4oXoYo_r,z/-!K-66-7X-7Y-7j-82-9&",an:"!(!.;)?I@XEzGlHWHgJSUxZS[N_d`k`{r1s:x]zy}+~=-!w-!x-$1-(l-/E-4I-4u-6v-8c",lu:"!)#Q$_%|&L&d'])E)J*}+[+o071X1v2!2#2G2H3I6S8^9q:f?9A,AtBmBzCFCMCND.G@JcJeJtKcM[NSYXh[~aVb|d$dseCf#gxh^h|i/i>iTk5nwpis2sascu8uMumvGw&w+yr|A|t~x-%J-%_-)+-)r-*N-,3-.q-.t-00-1i-1r-1y-3w-4E-4P-6!-6>-6U-7;-7C-7M-7b-8l",mou:"!|7n:@Oq[[_Ue6t=-#9-3y-8!",cun:".N2nA>lS",lv:"$()(*r+~0`5Z5~6S7_7j9q:*@wA(A8A;HkM,NKV=VZm'rJw#xDz_{T-*u-+*-5a",zhen:"!X!b!c!}%Y'%)5)T)b+I.A0X264N4w5Y7D7L9,:2=I?%B9H5I5IWJ&LnTpUSWaYKZb^pa2afbWc%g^hZi4iqkOnNoxq$r~s`tOu$u%wJyS|0|_~L-)D-,o-1f-3@-6R-8d",ce:"/%/U/^/t0G1W36F/H3HPJA",chai:")&>HCjEJNzS9T[Xz`jp4wY",nong:")v*j+q8C?cAXL,V~]iioipoL-,{-9a",hou:"#c$t0q3Z@AGFyHCKyL2LtNBNMP{DoU1UbVTdPllnm-+o-/R-:p",jun:"&].=/`0<0CFlGCI1O/PeTXWhaeg?m1p^qfr&t'wj|Q}^}l-$j-'8-(J-)m-+F-/]-2?-43-44-47-7U-7^-7d-:Y-:]",zu:"(x*J+10H4}95GqHbIkYm^kd6eLtdu2u;yk|6-!f",hun:"!F#O#W#]F6I8JyXT[=_2hczo{d-'>-(L-.C-9J",su:"';+1+3+],X1U3.324X7K7U:?>,>/@{DWFwJsM+M]MiXWYE[r^o_lcyf(k$khksnZrR-':-*_-+L-/i-1@-5p-6~",pai:"0'1z1|IOhBjLtV",biao:"'c,!1D@3A,A1AoJoM=T@UoVa[3]#b?seuZw$ycz#-&&-&+-&5-&D-&E-&F-&H-&O-&W-&X-*~-+@-+W-,;-2j-7Q",fei:"%[//1!6M9aO>e>r>z>{@GDFGjH$KhP_PuRuUtZp_GaObsvEyP|g~T-!/-!H-!I-&Y-&[-&]-'H-(j-*!-*,-0+-2F-9;",bei:"&i&r)`0'3f>wA[DfJ9M8PAU'V;ZLZwa1bVgch@iDlbm5mQqWrPv[wd|=-!l-#,-#C-+k-4N-6x",dao:")=)H)x+B+K005F8hbdm?n~o,oJqQsMx#y8-$x",chui:"&U0D@8GPsFtny0|n-$u-:_",kong:"%.&V,/0@;gg,sA-#(-4[",juan:"!{#2#H5J5V7Z9S:|;=?w@7AaG[K3SfUM^&mTrZras6u0vHy5yXzt}^}l-#'-&k-'.-6m-:w",luo:"%T&!&='n/>0M2]5>8f9M:n;@@)@UAwF8H9HYJ5N9OrRHS6UvW~X'Z1dbf`g'kAl:uEw>y/yf}s-$f-('-)_-*P-*k-+=-+X-/K-4#-6)",song:"&P.@===yGOY0Z]^b_?jcu1-$@-%[-'[-)e-,c",leng:"#>&h++L@eD",ben:"/&<(DxRuaUblk/sIy&",cai:"#T677P8aGSK+U>a5b[dxeQob",ying:"!R$v&C&|(P)c+_2K2^6U7/8`9^:>:X:Y:c=?A:ASDzEAF7F9G0G1H@HAHBHZJKLqMwOmQ0QPQiR0S8SgVPWv[i]M]|adbHc@g:j/m2twv8vky?~_-##-$.-$i-%g-%o-%p-1V-3g-4q-5*-53-5o-5~-67-6C-74-7>",ruan:"&u(>6^U?sA7C~G3G}HRITJZQgSUb(hKn}o/sL|T-0#-0Q-4i-4~-6{",ruo:"0P1#DnI}mP-0e-0{-5<",dang:"!,#s%2'((2/[1f2&CDF3GbKuN(S)UCW&]b^A_kd&kEvWxB{9~A-8[",huang:"'w+e0f1q7O>=C1F#H|Q@RtSuYv[V[f_Xd,kWt3txu}yI},-$,-'P-*.-0T-1A-2]-5q-86-87",duan:"${'&.I1`2X6a:#IMK(QfRI]1a*g3kxu]yN|F~x-#J-+}-,*-5a",sou:"#v2BC;IQJ(L_M?Qum[o3t~uAyH-&:-&<-&S-'c-(R-*<",yuan:"!9!f)V.i0F6f7':.;m>CD3DYE?I?I_InLGLdO5PRPzQFQXQrT&TYUiUuV3VF[xa3bYh]iQj=k@kgl8lRnPphs'u(|^-%1-)9-*G-.o-30-3U-4V-5%-54-6K-6]-6}-8s-9!-90-95",rong:"+Q+S5E7@9C;^>FEFEfF5J/QhQwQxSDVEghthyb-)R",jiang:"(43u3|5P8:9L:F<>=.A2EaH^ILK.LAQjRM[w]=^W`6ngo>oF|H-#P-%5-12-2_",bang:"&<'A+%5_749B@uC8IcO!O*OvPt[s_olQlVt^y^-#3-,#",shan:"#:'m)K)q+W.s7g7}:D;p;r?pALATBaD&DtR}S,TCWjY%[b]r^ObFc?cVd^gGlAn#p!qtvBwRz4z5z;{@|P|X-'q-*J-+V-/l-1C-1D-2s-2y",que:"&5&E&g'6'7(1(N:P:RI]O6c}z}{*{l{p}a-4Q-6t",nuo:"+<+u3e3y4&5JiKWL.M4N*N+N7N@SPZ:^(^zhxnoqls?vPvvw:yz~<-!*-$O-$_-%7-%}-1Y-6<-9R",zao:",y,~1R3sC#LlMPOC]`d1f4fNk%ktoCwA",cao:"3m>9C=C[EwJ_R:VbV|n)uc-*D-94",ao:"!T'Y}I-*S-+S-0~-2b-5X-8{",cou:"@ThJiK",chuang:"'_,H,L,q{+{E",piao:"$+).1D7a:;_tmuuCuUye-#!-%;-%y-'i-(Z-,t-,u-1*-2m",zun:"8':^U5]Pk|qqv+-1B-2u-4n-5|",deng:"$7'q.M/H1pCCW|`:f9l>mxv6yx}E",tie:"=VH8OhaPbndXq'qzv>vRx'-&z-'Q-*i",seng:"-,v",zhuang:"3:3nF)F]UBUZ",min:"!B%9&`.}/<1l6O6d:,:wDiSSb'pqs7tEzEzZ{K{S-1$-2n-3P-8q-8r",sai:"2'@cb6c9-%#-0_-2X",tai:"0+27>h>yB8BeD]GeLjdIl[nSpfw^-&/-)E-+7-/6-2$",lan:"17212Q4/8K8i9x;+I2F7I@sAHM9N?R1Z@[`l1~u-)S-*B-*v-0s-97",long:"!p$a%n&=(R(S,u.!.6/;1*162N=P>'?6E'[,A6;9l;1;;-&@-&C-&U-'b-(W-)M-)c-*@-*d-+T-.9-0m-5=-5_-7.-76-7[",shou:"6.9h@yC2uA-(_-:s",ran:"7v>ZDZIFOEOYTST`Tz-,A-,K",gang:"%.&q/{639!:N:W:x>Ep+s)ttwe",gua:"506}:z;%>xU^|cnedr#rFxM-&'-&1-*9-3k-6c",zui:"#G)C+15&8d;$KjRdXHi]nInqo!s$s8",qia:"%{'I?1HyU4dUnU-!{-+z",mei:"!L!_#)#a({)]+X0h3p;I;T?S?r@PE&FfI@QGTZdMg0mOnlrKtUtZyMyQ~N-#^-.>-.F-5(-7(-8V-8h",zhun:"+$,56(>UT8YAZ{_Pj.",du:"#K#b*f.T.^1,>DCsFBR&SZSmUyWqZd^$^D_E`3b%bNc)mMo(sDs|v}yL{!{^-!Y-#V-#s-#u-*E-,,-8]-8k",kai:"II`7gysvtbt{vCxGxvy@z<{({U-&;",hua:"%;&K'B3S8/BWD9D:GgIKK[MzR#XKZ&Ze[4[>]A]o_&`0p(p)rbsdunxN-*]-+<-5m-8=",bie:"FTNFObRmVuf6-19-2l-8|-:[",pao:"%e(@(O,!?|H>M=TeTfV>dDdTgfq/x.-!N-!o-7Q-7S-7|",geng:"56575d6m7,9Q;j;uAbArG?HYM3PfQ4Q[SRi_i`l6v|z$-#0-,k-0F",pou:"0$UO",tuan:"1H4'V8a%u<-5V-6#",zuan:"1B2Y808N8U8e:Kb3fjftq)vxw?w~",keng:"%t&3&RZOr>t1uOxg|&",gao:"#R#g)4)6)e*m+N+O/v0~3i7E:5;O;TA'B,GILrMHZ[_:m+ryu#xny]-#o-'_-,4-,5-5R-5v-93",lang:"&7*n/dC(F{IXJ.JHPOQlZEg%lzl~m.rLu&xzz^{]-)h",weng:"#q:b;}=rJ0L(Qstg-56-7,-9_",tao:")?58617A7N9W9kG|PoUhX{Yn[{^MdwhXjPjenzs+|r-!k-!t-#@-#l-#|-&w-'d-'y-)P-)x-9/",nao:"%z&q'*?a@&@ZAkP6R~YZ]Ju|x@zJ{O-.'",zang:";S?_AmAyB$I,K@M#abambLbUb}rC-)A-++-,.",suan:"(z.b/m0;1BI^nn",nian:"':*5*P1Y3*C/K6evf5f[h=iCiS-/4-0;-1x-2K-4%-8B",shuai:"7>:4RNTH",mang:"!5!6&<&D.ZCvEXEiG4G5M_OvRaSAlDp.rsx:-)g",rou:"*!2w3X>3?l@aHdQC]tekhEt$-#2-#f-*7-0R-4t",cen:"+W.m1A",shuang:"(V7;CPuh}z~b-*M-*y-+^-5c-6A-7B",po:"%g%i/70I3'7i<,IlK,jLn%n[o1oKotq9uswMwz|=-$K-%a-)7-,N-.E",a:"@@s@x}|:",tun:"AYAeC~OlVL`G`IgJ~Z-&h-(0-.j-1q-8J",hang:".k/T5*9HBiDHOAT#UAa9j3lJ-$C-%]-.i",shun:"!x$&$1$9BZKo-$:-%S-,g",ne:"!vY6^]",chuo:"'j0^6?8&9bd!e'e`Q`b`va/hpj9k3l/lsn9tCvSyJy{{:{r}i}{-*|-,|-/n-0A-0K-2>-3?-4+-7<",ken:"&#>8>Y>fUFV$`S`wsh-:?-:E",chuai:"A0ACeb",pa:"/bm|roxk-.6-1K",nin:"?[",kun:"#7&H);*s+*5oGEPpUEUJUgV.`wo%sCy*z]zj{Y-)w-,<-,=-,D-0/-2G-4^-5'-6w",qun:"0<;_;`UVU^e.k&-7U",ri:"TMp/p;pd-)%-+(",lve:"+4rgrlxr",zhui:"&U((.h66729r:'@C@|[!b>c6j_o#s>sQvdy1})}Y-)s-+J-4Z",sao:"$O7m8<:A:HAdR4-&<-*#-*I-+Q-,:-0l-1R-2a",en:"J!",zou:"0&6GG=[)_CcNcOlem@mcn.|h-*H-+1-/w-06-2E-83-:.-:7-:n",nv:"2h=TSvSxp8wW",nuan:"-'M",shuo:"$m&+'$0cIvZaZc_>qttmv~x*",niu:"4H9.FxpTwq-!`",rao:"+i8)9FF,KdVvk}}B-'v-(>",niang:"nuoRoZ",shui:"#I)7*q*z@1U[ZaZcZg_>_KzG",nve:"&ONJ",niao:"@%E>K1T^UGVO-2{-6H",kuan:",s,tAqw(-,&-,2",cuan:",',Q,s,t,z1)1[fLfsrZw;yv",te:"?vRgr{xe",zen:"]V_y",zei:"S;a_bv-0M-1Q-2+",zhua:"2(AU-,Y",shuan:"5<@]z3{?",zhuai:"#1dmi'",nou:";v=,tfv;",shai:"/Z121J1e2[[K",sen:"Ve",run:"$1AOz@zQ{F",ei:"ZH_@",gei:"5C9J",miu:"7n:@]+_w",neng:"?LR'",fiao:"WL",shei:"Zg",zhei:"j:",nun:"-84"},m:{yi:"-:~-:<-:;-:4-:3-:#-:!-9~-9T-92-8u-8R-8N-8I-8+-8(-7O-7M-74-6l-6c-6L-5z-5)-40-2U-2Q-2>-11-0o-/_-..-,o-,B-,3-+q-+[-+<-)X-(o-(5-'w-'k-'=-'#-&6-$'-!?~=}E}1|x{Zz|zzxix6x.x%wKw,v%uPs_rurorEr8r)pppdpXojoioVnxn_,^g]|]{]`]/[!Z=Y5XVVTTgT_T7T1SxSsR~RyR;QwQ0Q!PDP6NbN^N,MZMSLXLIL6L$J9I}IUIIHMG?EaEHE4D!CwCFBkBTBEB9B5@2?Y?K?I>K>H>'=a=R;m:~:48c8!7,5g4q3&2}2Y1j1f1`1M1/1'0t.O.K,_,,*x*f(c'G&.&&%b%Y%G%$$b$6$/#x#T!9",ding:"-:}-8q-)?-%!vipfkGiydzY2Ik6u+B&^&[%_",zheng:"-:}-9O-7L-0#{1{,yjuvsRm*lNlIi;eheZe8e4e3d/`x_v]3[+ZSY8Y2XlVFTYT#Q1C@A!4W3w07.),]%*#C",kao:"-:|n{k][#TbL>>R3p/,",qiao:"-:|-:(-6A-5v-4=-3(-2[-.@-,2-$H-$5-!q-!=y/y$xkx4rSm+m!k]k%j:iSi(hqbvaT_wVuV6V$T%KgGaF^FKFGEpDSBCBBB;8<2b1C1>.}#e",yu:"-:|-:p-9^-9P-9J-9H-80-7t-75-6'-5g-5b-5H-4U-3F-2l-20-1F-+K-)O-)+-(J-%a-$p-$K-$9-!7}]}W}5{7zizNzEvyvwv9v3tytjtetcsqsos@rsq|pyp+p%oQn6m%l8kyklk8jfgvguf%eGdWbtb(aLaKa:`1_1^:]e]d]KZOZ!YmXiTDS`SUS7RpQyNvLAKsJKJJJ;IAH|HmHVDVD:D*D#D!CrC[CDC,B*@K=Q<><<<1;h;_:v9G908=7M7I7A535#2{2R1b1:1(0;/q.(.&,1+G+9+7)n)h)F))(+&*%!$M$D$=#V!A!0",qi:"-:{-:r-9{-9E-9;-99-82-8$-5f-5(-3D-2{-1:-0G-.j-(Y-(A-(.-'v-'C-&%-%m-%I-%F-%E-%:-$D-#N-!Z-!B}$zvyHwbw;w1u~t[tFn;n3n$m~l^kkiBg/dpdTcKbJ4GyGJEW8l1T",xia:"-:y-:s-9u-6I-5e-3w-+T-*+-(v-'m-%n-!!}({Mwtwpm/logkeB_3YST)P~M-1A-/j-/i-*P-*J-(^-&C-&9-$k}[{Xtrrbp,n8lJl%dqbm_c_L]cZ(VLV%T]R_R^QRQQPOK9IJCH@l@^@?=k=Z=?y>]=x<`;t;(9.9(857&6{6d5m3D/;.j+?(>(!&8%{%t%4$X$,#H#>#'!w",bu:"-:q-7F-,M-*w-*t-(d-'K-&D{B{?{6zPtOm#izh'gfd,bi[rY}Y{YfQHM,C>C;C:'=",fou:"-:q-(cvCBj4H",mian:"-:o-42-1d-0w-,S-,H-$`tktQsZqpq#aDNWJ^E=D~@p?|;k;,7G/o",gai:"-:n-9w-6e-+u-+t|'uYm@dy^AW%T`QYNaHZGNGM:M8|'{&6!,",chou:"-:m-:l-8m-5_-4=-2A-(m~{t/r!iKhld$b3aS_%[_Y%W~N?N=LJJkI|E?B_0h/O.s.p&3&!%l#v!m",zhuan:"-:k-7o-3G-3+-2y-.I-)n-%+~EzRyPreq;<`,E%g#(",ju:"-:j-:?-9m-7n-62-5`-5S-4x-4j-2l-19-0%-.Z-.:-,.-+n-)H-'d-$|{/ztx_uct_tNt$o{nvnqnOnMmqmil`jYj9j7g+e%d:-(h-(c-%5-!.-!,~|~X}2|L{2xhvCs7*6e4n2x.Q.G,n)Q'(%k%h%@$p#R!U",shi:"-:h-:g-9q-9l-9N-9M-8t-8_-7R-6k-6]-1X-0m-,^-,:-+_-+6-++-*>-);-()-'{-',-%.-#t-#7-!W-!>{>z|y{xn=}:{:s:W:5:'9v7C7?6n4=4%28.3.+.#,0)$&3$}",qiu:"-:f-:^-8m-6#-)u-)9-&+~*|FyTsQl4j2j1cFc&]rWkO%KIHeF8BpAn@s@b?J=o;^:l:k:j2D/T.k+D*'([!P!(",bing:"-:e-:W-8h-8b-6u-5B-4T-3Y-1;-0a-0[{mp1ngnZhbhah&cm[vY,W5R0QpN/MQLQLLJnJbGXE:@~4E)r%,",ye:"-:d-9z-9.-9&-4e-2_-0U-)7-(u-'%-$W-#,-!]{:zIxqxdwgoVm$jxjw[hZzZ!YyY;X:X6UhUcUUUSURQUPxP@P?P,OmOkMYMXIQHsHpCXBh>i-,u-,G-,/-'I|/{)y&u^tXr*mSm>lKl?eNc3_H^LZhXL^>J=,7[6?1e=_=G<8:?7f7d6/05/f*6*2)c%x!'",diu:"-:_-:[",liang:"-:]-:Y-9)-5x-5[-5>-5%-1G-0B-&J-%y-%7-$Ly2bWY7Q*KJIwG%~n}bvRuAq=pZo8o6m1lyh[hZh(d]d$c|cqbY`,^xXkTaS4OVM;LAKGK=H{GFD}DJ@8@(?V?>=g;C:b976B/j/i/O.b.D,?,>+Z+Q&g&d%O%!",yan:"-:X-9d-5]-4]-4O-3;-1u-1Z-1Y-.a-.[-+:-*O-*F-*/-*$-){-)z-'%-&=-&2-%'-$N-$G-!L~~~a~Q~5{GzAydy7xLx@wMw>vPv>uFu@titfrgr?r9qwqfqWpKmhlEl'kuktk0jUjKjJjIjGgM-9<-9:-7m-5K-0W-.$-*H-*G-*A-*?-(s-(H-&n-&'-%;}L}@}9{j{5zbxTuBu3t%q2n,lVlUhKh?[`[ZZZY:XLN'KlIsIFA0A,}>k:c9s84684l0$/w&C&/&,!*",zhong:"-:P-8A-83-7x-4Z-0j-/C-$Tz8ysx$vMvHs^o)i)eqe0dddYS`MKC2@=?G4w2k.T$F!>",jie:"-:N-8i-8<-5$-4~-4W-4!-3j-2]-/@-/?-/)-,r-,a-*j-*i-(e-&c-%d-%H-$m-$8-#q~zzKz7vevOuit>sasVsCs(qSpIoJnpnln*m|lCkvkbjrjqjgjbhihIeEbr^S^;]_[,YZY+X{XwX?W_UmUOUJS9RINXNJL0KxKoI~I1HqHgHfH8EOB,>j>;:z9b882?/'.6+0)H)8&K&J%g%]%M%##D!~",feng:"-:M-8:-5L-4N-2Y-0]-0&-0!-/{-/y-%p{Rz9z5w}w9v7odoYl}l|l5W4MkKPI.E[?m?h=S;Y;#:R8e5Z4i3V3*2g1h/1,O)u%C$B",guan:"-:L-58-1=-0l-*vphb@b?af`LXqW*SRJ+G*D(B2>wRWQkP#L)?N>=0X.X.U",chuan:"-:K-7o-3G-2t-.K-$]}Tz3jFjDPMIRIDCbA?@i,H+<)7",chan:"-:J-91-2y-2R-1~-1/-/:-.k-.J-.*-*~-%$-$F-!n~P~@xBszr>q3l>kJkCkBjXh{hpgWdu^r^lXsX+W;VqVhU#S9RYJsJXDEB#=v:^967o7n71655d5B2V1I,#&v&u",lin:"-:I-9U-2g-0e-00-0/-)v-(l-%PxDlbk,gIgHc=bob)_=_6[MVGS?Q+PGN!FIEmEDQ>L#JuJfJ3J,IoGcDh@j=|=h.h)e)N",zhu:"-:G-:B-9]-7d-7G-7?-6Z-.&-,t-,n-#T-!z~4|=xpx3qVq!ploNnWnIl*i>[[[WT&StS;OqO1O0O.N>M#LzLFGWFmF,DhDbD^D0BH?&>Q;b7t7Z6s5x5>4V4A3y2^2@1+0x0?,K*K%B$J",ba:"-:F-8l-7`-1E-)^-)@-(b-&M-&I|_{[x>wCv0mumIj,fq]o]I]6]#[GZ)O+M'D,5?4R0+.m+@%N#/#!",dan:"-:D-8~-7{-7H-2r-2J-/V-,,-+G-*~-*{-'f-&2-%C-%B-$v-$F-!m-!b~[vTsjiofTfOfEb$aga>_q_P]4[VXuV@V?UjRiM/BeBSA*@)>rc>C=n=$;S;N;0:N:08?837i6R6G5|4]4>4$2]2O2F1]0u02/$.r,[,P,I*~)h);'f&H%!$N#X#U",jing:"-:A-9C-9+-9'-5r-5%-3A-2O-1N-0K-0C-/9-.~-,y-,k-,[|i|g|cyIvQt:t8t+pojAh|fdfZeeeWb/___NUoT+S&S%Q:Q3PIP0KZJpEvBsBn@I@H>m>%=><87]6#,r,'(^(B(<%($u",li:"-:@-6_-5u-5k-5Z-3s-2&-1z-08-/Q-/=-.o-.G-.'-.%-,l-,&-*L-*I-*:-*.-*!-)|-)Z-)X-(z-(2-&U-&0-%g-$C~g~`~A~>|`yrxEu+tat#rjqYq,nAmkm5m.lzjag@b]bXbRbB`l^&]q]gWYU@U3TsTlSpP_P>P%O&NmN^MqMSLnLcLYLUK!JoJdJMG1ECDuDjD_D8D.C/C+?k?[?Z=Y=U=/:/8z7@6C6$5H0a0U/>/=/#.z,~,u*V*$)z(t(_'x'u'l'W%R%F$l#P#A!Y",pie:"-:>rVV]V[PHAD8>",fu:"-:=-9c-8[-8#-7z-73-5y-5m-5j-5U-46-3v-0d-/|-/J-.R-+h-(=-(6-'[-'S-&E-!s|<|!{]wvwWvVvRuru'tDt,sbr5qJq/pmp3oWmgmFi~ifi7hzh;fwfkeje?c{ct^w]l]J]&]%[Y[QZ+YfV7S}SLS)ORN+M]MGM)M'L1KWJ2IYIPHKA:>~>Y=W-8%-6;-5|-4k-2k-2:-1q-.T-,|-,C-+y-+/-*V-(U-(T-(J-(?-(+-&)-%K-#v}4|^zLykxvvxv4u%tjthsurTownkn9n+lmkzk_j6hFgQfudbd`d@c'b[bZbKat_]^[]e]d]]Z4WGTTS7RoROQENvNtNoM&K#FLCVC=B3@[@Z@S?{>T>*=V;^:,874(3C322*1w/V/A+3*4*3(|(P')$h",tuo:"-:6-8X-77-6h-6.-'a-'G-%[-%$|Sz;v8sNrRmck'gzet]i]`[H[F[EZMYuV1NgN^MTM8ITI+GbFBF0AvA_@d?`?_?^-)C-(W-'v-'8|||{|T|:z~z{yFy@x$v%uNtsrGp&m7l0j+iridiahyh5h3ggf5eYeKe4e3dmdUcU`6`*_$^{^E]Y]F]E[u[HZtZpZ]Y{XvWpWVW2V{VvVtUKUJU>TjSMRwRgQ`Q/NOMyMcM2LqLhL6K~K7JjIuI]I*H+GHF_D|DnCAC6BiAJ@t@O@N?v?T?3>V>34`1_/9,x,^(R'w'[&3%c%;%7${$z$k$E",zha:"-:0-48-.N-.=-*C-(w-'X-'?-&K-$j-$O-$Aw/pNd6]s[m[XZdX4WIW#O2M7M1M0LvLlI?H4Fv;X:67u5#4@2N/p&d%.!M!H",hu:"-:/-:'-9j-9F-5E-0Z-+U-+L-'h-'W-%n-%Z-$_-$4-$1-#>-#2~k}v|;x1x0x,uGt4sEr]r[oxm[iphxfxfgdFd*d)cGa{^V^6^4^3^/^.^,^']y]9[xWWW$SXRFR-'$-&N-%z-#p-!}uSr`ljk/cY_f_eYtVZO:L=G5F!=O='8%7a3{/^./*<$f#c",yin:"-:+-7}-6^-0t-0;-*c-(j-(V-%o-$d-!T-!+~l~+~$}`}$|&{w{YzXz:w_u=t0t&p:n}lnlLlfya@`i`B_u_t_0SMO[L:KKEkE@E1DKCwC_BYBGA5>l>d>U<5;~:}:i9}9V6^6]4).],|,j*I(U$7#k#_#:",ping:"-:*-5i-0]-/z-/s-'u|Qz1u/ngnZmTi[iJi4heh&`0_zMfEU?6>6=A[KMbLw",sheng:"-:%-:$-4H-.X-.Q-,?-+0-(9}=x{x7u*k}_VS[RGQJQIOeMuIyG~E{BzBF?%;k;@:q7G2u/M.N*h)i&y&s&`!'",hao:"-:!-65-3k-2)-)6-'j-&_-#k-!t-!Y-!#~xxRvacOblRDR'QBPePaPWP7J!A~Ao=]-'6-&/-%]-$X-$:-!p-![~T~8y?xWwnw'tgs;rCr@nsncn`nRnHkgk9jpj`jZiqiOeceOe9djd_dEcscgcZcKc/bqbeb8ay`r`p_s_r^V^6^4^3]_]O]HW%R:QKQ9Q6PEOzNON)MdLZKSIdIGG{GUFkFRE|EjCzCuCmCMCJA4@e>X>S=f<[;i:+9h9)8p8/8,7N3e3R3K343&2Y2+2)2%1q1P1O1N0}0P/E/?/*.{.t.#+p*r)|(#'h$1!k",xiang:"-9x-9,-9(-6}-3*-1}-,4-,$-*0-(x-&r-%L~Ww~uXk5j)h7gqe'abQXP5LWH^F1DH;!8:*E'g'T",shu:"-9s-61-5g-55-54-1|-1F-)Y-'3yNyGu[tGq4oNoCnWnIg}gxdWchcgcIbt^X].Z.Z#Y>WBU9T'S|PvPtP*OhO1O0O.N[NBMtL`JtFuFYEpBuBKAaA`?c&=L/3,E,B*n*d&f%0$8",mao:"-9k-1,-1(-0|-0z-*dzLwksLmOkzi?a=_?^(S/QvPrN4M@I'B!AcAW?9;F/Y/#,J)E#$",mai:"-9i-7I-,{-,*-*}-#${Kx5",luan:"-9h-9Y-9V-*^}C}Bvmu0qXq:q$m)jOZ[TvOuL2D69K5J59#4#3",ru:"-9f-6K-2C-1K-(N-#{-!$vkv[s7qyq)jciX]kZgUTP+NzL(E0@W>7;Q9u6b+^",xue:"-9e-.x-(Q-!9|Bxbq>q+mmmMjzf=ckT/SlKvFc?!>u9j7>5y1&.B%L%<",sha:"-9b-4c-3?-2H-/,-.t-*+-%t-%^-%H-%4-$R-$0iCgkZEZDW$<%81806O5S4B2Z/J/B/2+%!l",suo:"-9_-9=-3]-&8-%x-$&-#j-#gu&s(as^$ZEZDW:PjKaJz:E9y+|)w)v)!(]",gan:"-9Z-8S-7J-5&-0=-/u-'c|Ro'o%o#o!hfh_dqa5U~T]T6R_NuMDKLH6FNEd@??;<:8f7_7/55+;*w'#%?!T",gui:"-9X-6q-3{-/(-/&-.7-.5-+Q-+J-+I-+F-*%}3{zv2u;s?rhrIp|k$jpj`iLhLh,gmf;cMVxVVTiThRCQ2O%M9L.KeIeI`GTGAG_k_Z^b]7Z`Y~Y9V^V;TnSgKTF7F6D[CvAG@:?!5P2|1d1>0S0G000/+z+M+)+'*](n(G%L$3",liao:"-9R-2|-!rrLovomo[>90%*F",chu:"-9K-5N-3d-3R-2K-2!-0$-/m-/Y-/I-,t-*)-!o{$x!s>n5hjgXcj`g_SWxW$VoTNS=NEIjI&HoHQF|E}EsESE#DsDdCzCG?@9r9q6x4N/+*+(,&;",kui:"-9I-3{-/4-+I-+F-$U-$;-!xwow4s/rBo*mQjVjHb]a.a,_y^BXgQdPyI2I0E&BV:S7x2l.q!/",yun:"-9G-7r-3q-1p-+}-+x-(0-&^-$^}xwEvsvEqOb}aca4a)`c]2[yRNQTP}MwHWF@BmBaA&A%@0=3=!:!7W2h2:202(2$1b.Y+(&P",sui:"-9A-5#-&F-#U{3wytvr1nwn4kpRqEWC1C0Ab=H9[7+6z5}2C1g0~(/'p",gen:"-9@-9?-&pX=X'L7",xie:"-9=-9!-7[-4J-4A-4/-39-1{-0s-0c-,w-,+-+'-+!-*k-*Z-)7-$(-!C~e{ry_wrw8w1u)sOq]opnenVnNm$jrgJeFcT`z`p_BZ~ZWZ8X9WnWMV*UiUFT}SWRePXMZLIK@JwI,HOH?H/FlC]?K>p>A;P9h7B695{5!4Q4P3b3E2,0w0s0O,C+k+e)8",zhai:"-9;-6B-4f-4*-3E-*K-*C-&c~zw{p{os[u[2YxW/UwU>SiSfH#EL#t",tou:"-98-4'-4&{$wNv'sqs@aK]*T0SQ",wang:"-97-8v-87-1JvYo7o1o0o/eoeiefe[dldJa}]>RTQ(OEODO=N1JD@J6;+E",kang:"-96-8)-+X}|rmkKg|dG`8]f](G=8_4d.a",da:"-95-.N-+f-'f-'R-&m-#~-!J{hxrw[v*d'ag_q]nWZVJ@f?}:<4Y0p&@&4$#",jiao:"-94-6n-6D-2q-2j-2I-.B-.6-,6-)B-(<-$H-#M-#K-#?-#(-!^-!=~IuUu1r=r6qcm+m(k1k%k!e.e+cJbl_~_i_KZjZTZ5X&W9VlVCV(ToTJT?T,SwSuSgSSQbPgP2LOIpG!>!:l:k9Y8w8<7b5[5C443,2b1>1*.9+l*X(5#e!v!^!V",hai:"-93-'V-'0-$#-#h~ey]vOq;pL[!A3=N3[,C",heng:"-90-&B-%QuJcXcLbaVKL/FiF&<|42*B",peng:"-90-5,-3J-.F-+o-!~zgyqyYfUe|cyc+`%[tZ?Z6YkXpWvW4OTKCJLIlIWGGFn?6t}sxk~hVhJh)gBg?g;dzZT8T.O)O(NfN^MrMTMSM&KuIRAh?`?^&D$i",men:"-8{-8G-53d8bcbCaz_9_&]VYgS^PZIh@>3=1,+((W",ren:"-8z-8y-8s-8U-8F-88-/d-/cx;vSu`n:n2d|dwdv]XO,NiLPLMK6J7/]",shen:"-8t-7V-6i-6/-5d-1Q-)l-)k-)j-)i-(V-'i-&}z^u|u>ttsys.qmp_pHorn7lui(fp`t`b]b]4WPTFR4P9P3M:J7J(IHHRA9@+=D<0n:(9U7C5[!e",jin:"-8o-8j-8d-7}-6<-35-2^-2=-01-,y-,k-,[-*X-*'-%o-!F~y{Fzkz6yE=q=M:I9$6~6g3h2M0i*Y)y)K(z(d(@(*",pu:"-8n-3$-+k-!S}^}O}<{BzPy(]p[rY{V0UvTeTdQ;PiPPP&O*M,FZE_AS=`:17k6T614r3a+v(C$m",reng:"-8g]m",zong:"-8f-5:-4y-43-3KzFpikxkrkNeJcdaraVY^XXX(W&Q|O>MxJQIKG28L8D8#3+1n1c0{,b,R%E#w",fo:"-8e-8;-73|IJl",lun:"-8c-7i-6S-4u}l}Y{.t*lSlRb9[{YMJa?j<6:3",cang:"-8a-89-7h-5;-3e-07-+OkeDW<];o:Y9g9_8a7;/G+J(!&Y&7",zai:"-8`-3V-2G-1!-&v}8pOl.]j]>L3>f;>:.4|4{3~&Y&7",ta:"-8^-6E-3^-#~-!&~Kz$yyy6vep}lc[HZXW`V&HCG}EqA[?}u.t`tZs~r~rOrNr9q`pUo;o:nBmylxlhjthhgCfhf+dI_a_X_R_'ZPYQXsWnWiVhVXVSU6U'QlQNPKNFMhGiFFEtDRC~ArA@>S=E=7:]:C7Q6*574*0l.=,s,G+f+c+U+O*|*s*T*,'3$c#b#Z",cha:"-8X-6Q-4D-/,-.t-)e-$A-$$~s{yvbu?o|m}kqj3]a]OZ7Z.XZX5WJW1NsM0LvK?I?GjEB@k,<%s",hong:"-8W-)w-).-(X-(K-(;-&{-%}-$)~i{kvXu6pqpjn=j[fvfBa*``XeVNQ[@E?y?<>@=b=S;J;B:R8J7U5(3|31+>+4'T",tong:"-8V-7/-6R-4Z-2h-,/-(}-&|-#Z}o|/mNm>m3h:f(c%`P`)Z1Q]PwwuqtKqdmdmVlQjhekYffd9]bDaxT:RBQtPcIiATX7s5L",fan:"-8E-0)-0(-0'-,1-+R-)a-!hy%v_tDr;r:iwhwdi_h]l[ARvRtNpMLKXJrJAG,FD@w@g?4955t5_3n2E15.l.[(A&O&/&,!.",miao:"-8D-,m-)v-$?vDscrPh>gtgSX^NP<#;A+K",yang:"-8C-7<-6{-3[-15-,f-,@-*g-'Z|J{xwTukswmrl6l3e`d4cEaA`m^}]T[lXRUz>`8N6A4y4D4.2B+6*O)4%Q$|$@#F",ang:"-8C-*gn.RLQoN0!5",wo:"-8?-4s-4L-*l-(/-'&-%q-$atCtBsfi8^TZYYbYSXKV#SRN8I>@1=#YqXmXjX7WmV!UGU'R{PpO_MoM(LEK3JgIfIJICI)HEG]FhFCEKE2DLC&BMBLA]>a>$OYOSN.K&J*J)F)A>@66}5i4v391=16+{+.",bin:"-86-3S-2EpAe}W?UNShJnImGXE:B^BO@r9I6q6Q6M6,+.(j((",di:"-85-7@-5a-4F-3:-*D-'}-&t-&$-%R-%&-#O-!(}0|h|d|@{Q{L{8zMyFy;x|w?tqsmrimUkIjoi`hBg:fofjeld#`7]g[g[=YFX]XGW2TLT!R[NfN(MrM3KAK:JCHiG7AI=g<};T9f9=3F/K.V+=*5'1%c##",fang:"-84-4}-+^|r{Qzcv5er^%TZS:S(RER6N/@<@'8*4c1@/!+m",wen:"-8,-/X-(M-(C-(&-%Jy`vNf)dfde]:X.WRSmQsKNHWH)C$B`@>;z;R:*4s+1*8(}(&$;$.",xin:"-8*-7f-5d-5G-!3-!0~%vSCR9N@N%D$C^4a3$",ai:"-8&-2W-09-)h-'!-&q-&5-%Y-$'-#]-#E-!;{SzIyfxUtgtUrxr'kaa9_7_,ZNYaT&T$QqP^P.CxClB.:%9t6U3.03(k(;#]!s!j!]",xiu:"-7~-5c-5V-''-$/~|p@mfmPh2N~G09~9F8I4+*P*#(N",xu:"-7~-7Y-6Y-6!-49-0x-,F-,E-*Y-)T-)+-'p-$e-$Q-#7-!o-!W}7{Wy,x+v&uxspsArFhHeXckcKc:b(`g^YY4XMTKT@RbRZR!QcP{O^OOLGI9GfC|CtCiCOCKBw@5@4>?=t<>;+;):P9r998W8B433W2H0m+t*N*?&;%T",tang:"-7y-5+-4M-3l-3U-1v-.2-&.-${-#.|XzpyukdilaA^cW^V~OsJFH%F{F<@P/:f8U6y6Y6+525127+_#@",hui:"-7u-7#-2u-1{-+H-+.-'/-&j-$[-#=-!f-!U-!D~p~,~&}u}Fz]xztEsgr7q]onn?n>i*gmg7g5f6f4f3e,e*cDcCcVEQSQCP|PQO]KeIOI3GRF4EiEZEQDqBVB>B=B7@n?D>h>g=y;+:S9X897x796y6:5,5)3t3q3k2h0y0q+h*9)G(=(2$~$)",kuai:"-7u-6@-2M-/p-&f-!8}:|ez&y'jEgMdXUkRrO]Cq=y79.*+g(2",cui:"-7s-5?-3N-04-%I-%>y8lYlWkhdSbE`TV|IxH*GHAg<48P6a331g)p(b%I$L!d",che:"-7n-5`-4I-,%-'y-&*|?vln|nGene/]QY.XcVsV>V<7`3r3b3E0C",chen:"-7h-4_-3e-2'-#|~ZyWyAw]pGoBdRa>[aY]THS~QAP$L[K_K'J(HUG3D]@+@*2n05)l%P$?$$",xun:"-7g-6O-4.-,Q-,A-,)-,(-+5-'3-!k-!P~u|y{=yixYxAw#uHqKq9o`oOmEj@j&j#g=ebe>c]`uXUTfRcP(NqL_KbF`BvB@Au@Y>5=r=l8+7y6V583O2h1{1D130j0Y0Q.5+b*H(L&T",chi:"-7c-7M-6b-6P-5E-3@-,W-,K-+_-*]-)<-)3-))-(:-&W-$z-$I-#l-!g-!=|@|)yLw/vBs6n|fsf$eweve6cBc9`X`7_|_2]`[f[!ZvZ/W+TxTCSNNcMPM3G1ChC6C4BX@T?Y;:8g4~4;3U1K.O'A$Y$U$E$2#G",xuan:"-7b-2N-/.-)o-)'-'(-$Y-$Mz)wsv&sWrqr.p]f[cobMaQaI_I^nX_SyS'RAR,QeQ$Q#PNK@HxHwEf?#;I8d4M3x2e+L*s*)*&)B(Z'~%/#E#<",nu:"-7a-3r-,svjq?ilfed1Wo",bai:"-7`-6z-(1-&:hJ[?[>ZwYeX}WAUfUCTAMFLN,n'D#*#)",gu:"-7_-3T-2e-0F-)I-'s-'N-&<-&;-%G-#y-#@}gzfx#uhrUq@o&lXl=j5j4d*`~]_]9TSNaM.K-27-+8-(%|Nzsznv/v)t'Y'R$*#[",zhou:"-7W-6M-2X-0{-'|-'z-'Q-'5-%X-$i-!G~{v.t/pgjCiceIY%QnQLQ8)<3;[5U3G2o0D(K(8#9",ci:"-7T-7B-6m-47-17-/+-/'-'t-'r-%@|*q}j3h<`hN|MILHD&C??56Z*p*k'E'6%=!{",beng:"-7S-#w-#+{R{#zgyXw!lBkYX0>v)d)[',&k&j$a",ga:"-7Q-'M-#A-#/-!4wIwDoEo>o.RaOM+C",dian:"-7K-7:-3m-18-**~M|P{lyBxfw6v~t6t!kXj]jNjMh@ao^!YOTrTWT9I_GqG_FPF5B?-(7-%`ylybwYvit=nodgc2b:Y#WPQ?LSB{?U-72-66-4E-'L-&,-#!|lmtmsj;h0d6YTV4R%M7M&)e",ti:"-7;-5N-5'-4R-/!-.n-*;-%H-$y-$3~w~rw?smsPnmnYnVl2foeCe6bnbjb#b!aU^)ZHY*X]XGU>OaONL$JxJCCQB]=0;T8O*5)A'r",zhan:"-7:-4>-2y-*s-!IrQnamRl>l)kCkBk.j|d+b0^M^?^5W|SJSGS0RsMjLiL-&t-%H-$j{szSmDl/kIi3c}cPa`^IZbX:QwP!M2HsGUBcAK?I0*/}/n'_&#%q%j%i",gou:"-71-3p-0y-+z-)H-'p-%W|C{uwdwcuTs0mnfM[CX%VcN6M^Gm?q:925.C*o%2",kou:"-71-0f-.C-,g-)J-)DpCp8fId3]^[|VpTV9@",ning:"-70-6>-4a-29-0.-'H-!)r%q!p2p)p'p!ot[4UMM5F/E5?17J6k.<+a&i",yong:"-7*-5t-3M-,U-,T-'T-$t-$+-!:{Oz!yCxcrlkUg{gAe{ceb{bzapaC`w`n`:[6XTU}M4LaGQ@}>x=9:p947:5T/{/i&p&l%)#S#8",wa:"-7)-/n-,e-(/-'P-'&-&x-%h-%A-#y-#nu5tbt3sGnCije[ZaWUTq>.:;8h'V'D'>&A",ka:"-7&-*r-'O-'M-'4-$u{g",bao:"-7%-5h-21-/>-.e-.]-,!-+{-+s~ozPzOz@sBqBpcpMp$ohoee&d:[w[kPPP1P&M]614J2<0_.u.h*G",huai:"-7#-',|mx^xIe_dC_:^oGhDX<25z",ming:"-6x-0g-06-(|-'guEs&`aXxR@PhOFH<>0:7,8",hen:"-6s-&p-!3eac6[0.:$y",quan:"-6p-1H-/.-.#-,5-,#-%%}X}Q{4w5u:t;q[m?jRf`c0b_b%['Y`WKNxJ:I[H_GLFjD>?F>F:a5841/I/H/7.o.n.m.O)2&I%'",tiao:"-6o-%Xr#pWmjmWh4cRZfSQRdQjOLO'NYK.Fo",xing:"-6j-5.-1<-/U-&g|0{auft{t5qljAh`f*cxb>aZUYR/P4Nl>ZG<9;H9<8o6o6l5n5G1z0B,a+T'h",an:"-6W-5J-4<-2D-*P-*J-')-%e-$x{b{&z_sYpwn@n8mXm:hXg~ZnXNQ.PnL'L&A1>M.g*w$V",lu:"-6V-33-1C-.H-,N-,<-*q-*o-!N~q~_};|G|5yVyUxMtVmChGgZgFf9f8^7XzW)V)UzUAU/O{MpLeJ#G&FyEuDvDaARAM>sb._,A$C",jiong:"-69-3'-1.-1$-0}}z|K{;]~]}?M=J7e4t4I3c2T2S1W1.",tui:"-6.-6(-3&y'tmo$ftfodrY(F>24",nan:"-6+-*|-$r~'~#v=tzstrb^e[sXfPqN*M6H}:d29&a&?",xiao:"-6*-5v-5R-3a-.x-,d-'j-'1-&l-&P-$}-$1-#D-#?-#&-!|-!v~c~J~CuUtHqGpPpJoKlGh/fFcJ_iX;V:TPT/SoSnQVQ'P;MiMaLOK+DOCYCLBAB4>B===8M=5;9*7)`$V$O!r",guang:"-5~-2}-1h-'@{~uIhXhTgOZsVKL+>28)5/4b4_4^3s.d+Y*U",ku:"-5}-/3-&Q-$6~R}PzrhDh+gN]dZiZ5OPMgL!I%3N.>$9",jun:"-5{-2T-0q-(n-(G|u{NuHollq_;Z3U5TzQPKMJH@F=l6V3G1B*1&'!Q!K!J",zu:"-5w-5?-+1-+$-&S-%rlYlAd(S#M1Ix0'*e",hun:"-5s-4o}_t9t'o9dMaz`oYDR?Q~JYJRBf=u>=4:&9z828&+F*L(F&r",lia:"-5[-5>",pai:"-5Q-&sg9eP[NY?JU?p>+;j;8/t.w,q",biao:"-5O-36-2/yJtIryi%f!VfNhLjFzEG<.9C66511o0c,k#|",fei:"-5M-.m-+M-*4-(i-%8w%vZt@t?nXh8gpgPbH]xSdQxQ%P:OPNLLxJVH5FOF)Di?Wq>O>N;y8^6F3{/(,T+P*M#y#5!Y",song:"-4q-3I-0D-)'u8pulDk^kOgydYdAb`a3a$`D_MZ#XXW0NK%J`HyEF-#*-!K~Oz%x#s{sXs9s%quqqq_q%kcj[jWhCgDexdha/_AVwV_U0U&R]R.Q:PwO?MHKpK]J{HvHdFbDMDI=_;E:U:K9d9O8K8F6j6i6N6=6&5~5o5j5M5A2w2r2_1x1)0b*:)*(y(S'i'5'%#j#;!B!;",ruan:"-4[zJxQsiVWOUE0):'}",chun:"-4Y-&7sda^RPR(PlOONDIBGrFQE(=T<,:[9N8u/6)C",ruo:"-4S-)[sskPf]Z:YUI8;y3'0^",dang:"-4M-2P-1V-/k-!1}*{fx]swpkl6kdf:aAZUUsTpKiEYD5@|8:7E5D*;(J(6'?%}",huang:"-4@-1L-/w-$PzDz.xtw&s[pEl9jBi0e@clcQa_a#`dXTQgQfPBOEHbH7D{@9:x9i8)4:2c2.1J0X+w)((E#i!}!g!Z",duan:"-4+-.Uz+s`SFS[$XOVUU8U*TwR1Q&PYKrEy6E5K't'k'c",za:"-4$-+Z-'b-'X-'2-$c-!c~B~:~5i}]s[$NyKr?r?a",lou:"-4#-38-.}-$7-#ByMu4tRo{n[kjkEg_`5X)W'HaG#:O9&8~1i'2$5#o#n",sou:"-3z-0J-)Q-)N-#z-#R-#QgsghZ#YvWlW>W0V:U`UBJ/DgCn:#,5#s",yuan:"-3u-1n-1)-0h-.z-*3-*1-)y-(0-&^-$Y-!<}{}t}Z}R}N}M}D{t{_yawlv6v(sSs:s)qhpepH0ErDk@/P>#;L9A8M.|,&&B%y%n%m",bang:"-3n{^ypiNi5h~hme|Z?YrWvS2KEJTJSH@=j/m++",shan:"-3h-3)-2R-/F-/<-.a-.E-*~-$q-$F-#H}'{Gy+y*ulubr2nDj|i(f+]zZ;Y3XuXsWaVhV?UySvQ8NrL|LlIVFSEhCI@`7|7p7O5F4B2Z211~.4*b%U%1",que:"-3f-*_-*W{Pyty$lgbNa+`KX!T8T.JBH$@j4e0|)O#q!N",nuo:"-3Q-1w-$ftxa6_#_!ZLXnWoWbWLK0HJF2Am",can:"-3P-2F-)l-)k-)j-)i-$D-#H~:r(q3amah`W`V`U_[XsVqVhO_BtBg;/784z1!0L(9",lei:"-3O-24-1t-,J-)q-#1|(z0xOx?rrU|U;G'E]DyDxD/?$>I=+JO7F5&2>1#(](7#&#%",cao:"-3L-#GnGk@`v`k`^_DVAUqOgOfG:8x",ao:"-3H-/n-*&-#X-#W|H|4xnxkv}vyvwsDs2rZmxmakAjnga`O_@]I]![DVuUeTBM*K=?>9;7M741m1^0Z,!+~(Y",cou:"-3D-0:Hl;1",chuang:"-3B-/b-/K-/5-.s-.i-.L-$T-!dhvhMd=`|W7O|;z;+:t8(+1*c)o)j)=$R!D",sai:"-2V-#b-#)-!/yod%a2XaAxAb",tai:"-2B-0_-)=}e|Mw[wXwOvzqvqCdodQdB`e[pU]SpR]MeE>@f@D@C>{:=4G4F1$*f",lan:"-2?-1@-)}-%P-!'~3|hx`xXt(qgqaqUmwkwhgb)_8_'^p[5X/UXU(TmSaS_PpLbHXDDD2D1=^9L8i7K6W5`5W5=5<46121%0n0d0I0@0>($'j",meng:"-2;-0k-,Lwaw`qEo2hnh*_._+^qXtUaP)O9K$F;EAANAF:A6h,Z+]'/&X#B!#",qiong:"-28-*fr.pza]`!K}F(3(3%2L1}*))J(G's'f",lie:"-25-0N-/O-,z-,w-,`-'<-&G{D{CuDjaj=djZeZ_YiUEL;JMA{>_=p403f2A1$0a0[.x,h,V+k+[",teng:"-2%i+9]8r1e%6%&",long:"-2#-'J-&]~^|7|6xHxGo2n=k6j_j^g.e([9U.QmOxO8LgKDGYDU>t:g9T9%5w0N*Z'n#f",rang:"-1}-,$~Nx[xC^mU$5b0K+S'X",xiong:"-1m-1j-/q-+v-+p-&zwsdLc?Sy@;>42w2r2#2!",chong:"-1l-0Y-#L{*p`oflelde0dc`+_dXT2NB6[6G5|5u$P",rui:"-1g-1e-1`-)LxFas]0M~KVF.@G)'&t",ke:"-1f-/*-.w-,]-,R-+;-)>-'o-'0-$!|Dzqx4u#p^oUmomIkvknjqc4bra6U4U0!/N//*j%>$O",tu:"-1c-1]-0H-/o-(y-&3-%?}n}c}J}I}A}?zezZyvxipvnUlskikFh.gVeVc}bsZ.YYX@W2K?EL@R=C=::r7u(i$r$>",nei:"-1I-1*-&TtvA(=w::8Q7V631r1[*a)~)%(v(?&S&>&%%r$(#d",shou:"-13-)`-)V-%l-!o{ox)x&pxo[]v]uYITcTN,",mei:"-0I~j|vz>yRv#sks]sTs4r

-+b-+(-(_-(.-&h-#%{@wGuWs}s|rJrDlaWTV}V+NAMvKfIgGKFX9a7c,7&]&+%~",bie:"-/A-/;fGe2`#M'M!$!#I",pao:"-/>-+i-'^~o|2w=hA]$[P?.4J4H3d06.M'^%A!S",geng:"-/7-&A{TzHlrh=ZIOlK4IX=X2p&M",shua:"-//-%j",cuo:"-.y-.p-*5wukWkSh!ZKY&WuV4(o$j$'",kei:"-.woU",la:"-.v-%3-$n~L|8[RXFXEWnUEU2R`MOI6DT:T0['o$A",pou:"-.l-'_-&[{]twtO]+]&Z+YGJS/<",tuan:"-.I~!}~}K}HyPy&f7`>[}XIVmGLE;;.:m8t2[,F%v%p",zuan:"-.)XOTt",keng:"-,x-([|t|kvIZCXlVgBF/C",gao:"-,Z-(I-(>wRlpWjNHGxGwGdG>E~E3Dm,)!y!t",lang:"-,V-&J-$~{Jy[r{llgiSeOIOHO;KRHHG4Cp=[3Y,z*%(s",weng:"-,@-#oyxv{kfU!Pd9o'N'&",tao:"-+m-)E-'+-%DwPwMw*r}i/fl`j[oYBWXL,JkGtE?><=)'v",cen:"-)l-)k-)j-)i{Un#kH@?=1",shuang:"-)byOqeq^`NDB>t8R5w5^0&",po:"-)8-&M-#6~]|ZvztMoZmlmZg9W]TXR+O*E%?E>q>o>D;*:J8;6F3v,9*l!`",a:"-(s-'o-%O-$0",tun:"-(k-(7-%L-!`}}|snFhNdP_mRQPFOC@x=335",hang:"-([{dwSvIj)dGS8NML/@.",shun:"-(ZHnF?",ne:"-(R-(8-(%-&T]0%a",chuo:"-(Q-&@-%=~Hu!t~t.ssqVa|^2Z}UuCClMi@i$fDf@b1`Y_4XyW6TMMzJ$I:GOD{=#gKfVfSfC^P^N^>[zWQW!VySKMlIvGkFdEJ:)8{4[1s/|/z,f,.*{(p%m",pen:"-('-$E-$=-!6CN;'6}'Q!=",pin:"-&~~Yuatnrvq{[AZ{H]@_/c+!)r",ha:"-&wvz",yo:"-&`-%c-$B",o:"-&X-$a-!H-!%",n:"-&)-#a",huan:"-%v-$Z-$Y~G}D{_zWw@w2r.q[pYp0okm8l!h]bVaH_I^iYpXQUnU1KyK2GBD%CPCB>1=c<~;c8V7D734/3>2I.[.;,3+R*})9(1'b$d$:",ken:"-%V{qxjc*_CX~*I",chuai:"-%=XIW}Ch",pa:"-%/vLisihd.]oX|NC@r8608)P#!",se:"-%,-$,yogK_WY%X`W~J/J.Hl",nv:"vkc7OM@!",nuan:"vcPo;`:m2X2W",shuo:"v]a'WhT'S|OKGnCn>>470W+p",niu:"v?q=dKd0]S]![DN?@8@!4u/e/d.W",rao:"u2rA]PU?KkFJ",niang:"t|r&qb",shui:"t]iTZMYuA$A#@{=.=*",nve:"t)%S$%",nen:"sirarYc^",niao:"s!r+qsnwFq9x",kuan:"pBp#ooK)CoCfCd",cuan:"jPV'U*T~TwDtD7BU@o6E5K1S0<",te:"dsdr`R/F/9",zen:"d5VU",zei:"^H",den:"][]C",zhua:"],ZYV#ER0:09",shuan:"[&L^GL{let t=0,n=1;for(let a=e.length;a--;)t+=n*da.indexOf(e.charAt(a)),n*=91;return t},Wt=(e,t)=>{let n,a,s,i,w;for(n in e)if(e.hasOwnProperty(n))for(a=e[n].match(ga),s=0;s(zn("data-v-c7e0b9b7"),e=e(),xn(),e),ya={key:0},$a={class:"container"},wa={class:"action-bar"},_a=["title"],ba=["title"],ka=["title"],Oa=["src"],za={key:0,class:"icon",style:{cursor:"pointer"}},xa={key:2,"flex-placeholder":""},Ca={key:3,class:"action-bar"},Ma={key:0,class:"gen-info"},Ta={class:"info-tags"},La={class:"info-tag"},Sa={class:"name"},Ea=["title"],Aa={class:"name"},Fa=["title","onDblclick"],Ia={key:0,class:"tags-container"},Da={style:{display:"inline-block",width:"32px"}},Pa=["onClick"],ja=["onClick"],Wa={class:"lr-layout-control"},Ua={class:"ctrl-item"},qa={class:"ctrl-item"},Va={class:"ctrl-item"},Na=re(()=>k("br",null,null,-1)),Ba=re(()=>k("h3",null,"Prompt",-1)),Ha=["innerHTML"],Ja=re(()=>k("br",null,null,-1)),Xa=re(()=>k("h3",null,"Negative Prompt",-1)),Ya=["innerHTML"],Za=re(()=>k("br",null,null,-1)),Ga=re(()=>k("h3",null,"Params",-1)),Ka={style:{"font-weight":"600","text-transform":"capitalize"}},Qa=["onDblclick"],Ra=["onDblclick"],eo=re(()=>k("br",null,null,-1)),to=re(()=>k("h3",null,"Extra Meta Info",-1)),no={class:"extra-meta-table"},ao={style:{"font-weight":"600","text-transform":"capitalize"}},oo=["onDblclick"],lo={class:"extra-meta-value"},so=["title"],io=Dt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e;gn(o=>({b7cd59ce:c($)?0:"46px","0e09e1cc":c(y)+"px","62228ae0":`calc(100vw - ${c(y)}px)`}));const a=nt(),s=pn(),i=ie(),w=ee(()=>s.tagMap.get(n.file.fullpath)??[]),T=ie(""),A=tt(),I=ie(""),V=ee(()=>I.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),W=ee(()=>V.value.split(` +`)),L=ee(()=>We(V.value)),D=ee(()=>{let o=We(V.value);return delete o.prompt,delete o.negativePrompt,delete o.extraJsonMetaInfo,o}),S=ee(()=>We(I.value).extraJsonMetaInfo);ye(()=>{var o;return(o=n==null?void 0:n.file)==null?void 0:o.fullpath},async o=>{o&&(A.tasks.forEach(r=>r.cancel()),A.pushAction(()=>Ke(o)).res.then(r=>{I.value=r}))},{immediate:!0});const p=ke("iib@fullScreenContextMenu.prompt-tab","structedData"),f=ie(),E=ie(),te={left:100,top:100,width:512,height:384,expanded:!0},m=ke("fullScreenContextMenu.vue-drag",te);m.value&&(m.value.left<0||m.value.top<0)&&(m.value={...te});const{isLeftRightLayout:l,lrLayoutInfoPanelWidth:y,lrMenuAlwaysOn:$}=ua(),F=l;ia(i,f,E,{disbaled:F,...m.value,onDrag:Ae(function(o,r){m.value={...m.value,left:o,top:r}},300),onResize:Ae(function(o,r){m.value={...m.value,width:o,height:r}},300)});const J=ie(!1),{isOutside:U}=Ft(ee(()=>!F.value||$.value?null:J.value?i.value:Ze(document.querySelectorAll(".iib-tab-edge-trigger"))));ye(U,hn(o=>{J.value=!o},300));function G(o){return o.parentNode}function K(o){let r=0;for(const X of o)/[\u4e00-\u9fa5]/.test(X)?r+=3:r+=1;return r}function ce(o){if(o.length===0)return!1;let r=0;for(const j of o){const O=K(j);if(r+=O,O>50)return!1}return!(r/o.length>30)}function ne(o){if(!o)return"";const r="BREAK",X=o.replace(/>\s/g,"> ,").replace(/\sBREAK\s/g,","+r+",").split(/[\n,]+/).map(C=>C.trim()).filter(C=>C);if(!ce(X))return o.split(` +`).map(C=>C.trim()).filter(C=>C).map(C=>`

${C}

`).join("");const j=[];let O=!1;for(let C=0;CBREAK
');continue}const Y=X[C];O||(O=Y.includes("("));const le=["tag"];O&&le.push("has-parentheses"),Y.length<32&&le.push("short-tag"),j.push(`${Y}`),O&&(O=!Y.includes(")"))}return j.join(a.showCommaInInfoPanel?",":" ")}$e("load",o=>{const r=o.target;r.className==="ant-image-preview-img"&&(T.value=`${r.naturalWidth} x ${r.naturalHeight}`)},{capture:!0});const ze=ee(()=>{const o=[{name:x("fileSize"),val:n.file.size}];return T.value&&o.push({name:x("resolution"),val:T.value}),o}),d=()=>{const o="Negative prompt:",r=I.value.includes(o)?I.value.split(o)[0]:W.value[0]??"";pe(Ve(r.trim()))},_=()=>document.body.requestFullscreen(),q=o=>{pe(typeof o=="object"?JSON.stringify(o,null,4):o)},P=o=>{o.key.startsWith("Arrow")?(o.stopPropagation(),o.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",o))):o.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};$e("dblclick",o=>{var r;((r=o.target)==null?void 0:r.className)==="ant-image-preview-img"&&Oe()});const he=ee(()=>F.value||m.value.expanded),_e=ke(Qe+"contextShowFullPath",!1),De=ee(()=>_e.value?n.file.fullpath:n.file.name),xe=ke(Qe+"tagA2ZClassify",!1),Ut=ee(()=>{var X;const o=(X=a.conf)==null?void 0:X.all_custom_tags.map(j=>{var C,Y;return{char:((C=j.display_name)==null?void 0:C[0])||((Y=j.name)==null?void 0:Y[0]),...j}}).reduce((j,O)=>{var Y;let C="#";if(/[a-z]/i.test(O.char))C=O.char.toUpperCase();else if(/[\u4e00-\u9fa5]/.test(O.char))try{C=((Y=/^\[?(\w)/.exec(va(O.char)+""))==null?void 0:Y[1])??"#"}catch(le){console.log("err",le)}return C=C.toUpperCase(),j[C]||(j[C]=[]),j[C].push(O),j},{});return Object.entries(o??{}).sort((j,O)=>j[0].charCodeAt(0)-O[0].charCodeAt(0))}),Pe=()=>{Oe(),t("contextMenuClick",{key:"tiktokView"},n.file,n.idx)},je=ie(!1),qt=async()=>{var o,r;if(!L.value.prompt){Q.warning(x("aiAnalyzeTagsNoPrompt"));return}if(!((r=(o=a.conf)==null?void 0:o.all_custom_tags)!=null&&r.length)){Q.warning(x("aiAnalyzeTagsNoCustomTags"));return}je.value=!0;try{const X=L.value.prompt,O=`You are a professional AI assistant responsible for analyzing Stable Diffusion prompts and categorizing them into appropriate tags. Your task is: 1. Analyze the given prompt @@ -15,4 +15,4 @@ Your task is: Available tags: ${a.conf.all_custom_tags.map(N=>N.name).join(", ")} -Please return only tag names, do not include any other content.`,Y=(await vn({messages:[{role:"system",content:O},{role:"user",content:`Please analyze this prompt and return matching tags: ${J}`}],temperature:.3,max_tokens:200})).choices[0].message.content.trim();if(!Y){Q.info(x("aiAnalyzeTagsNoMatchedTags"));return}const le=Y.split(",").map(N=>N.trim()).filter(N=>N),Ce=a.conf.all_custom_tags.filter(N=>le.some(me=>N.name.toLowerCase()===me.toLowerCase()||N.name.toLowerCase().includes(me.toLowerCase())||me.toLowerCase().includes(N.name.toLowerCase()))),Me=new Set(w.value.map(N=>N.id)),fe=Ce.filter(N=>!Me.has(N.id));if(fe.length===0){Ce.length>0?Q.info(x("aiAnalyzeTagsAllTagsAlreadyAdded")):Q.info(x("aiAnalyzeTagsNoValidTags"));return}for(const N of fe)t("contextMenuClick",{key:`toggle-tag-${N.id}`},n.file,n.idx);Q.success(x("aiAnalyzeTagsSuccess",[fe.length.toString(),fe.map(N=>N.name).join(", ")]))}catch(J){console.error("AI分析标签失败:",J),Q.error(x("aiAnalyzeTagsFailed"))}finally{je.value=!1}};return(o,r)=>{var ct,dt,gt;const J=Fn,j=ve,O=yn,C=$n,Y=wn,le=_n,Ce=ve,Me=An,fe=En,N=bn,me=kn,Vt=On;return h(),z("div",{ref_key:"el",ref:i,class:qe(["full-screen-menu",{"unset-size":!c(m).expanded,lr:c(F),"always-on":c($),"mouse-in":H.value}]),onWheelCapture:r[13]||(r[13]=yt(()=>{},["stop"])),onKeydownCapture:D},[c(F)?(h(),z("div",ya)):X("",!0),k("div",$a,[k("div",wa,[c(F)?X("",!0):(h(),z("div",{key:0,ref_key:"dragHandle",ref:E,class:"icon",style:{cursor:"grab"},title:c(x)("dragToMovePanel")},[u(c(Hn))],8,_a)),c(F)?X("",!0):(h(),z("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:r[0]||(r[0]=g=>c(m).expanded=!c(m).expanded),title:c(x)("clickToToggleMaximizeMinimize")},[he.value?(h(),se(c(fn),{key:0})):(h(),se(c(mn),{key:1}))],8,ba)),k("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:c(x)("fullscreenview"),onClick:_},[k("img",{src:c(aa),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Oa)],8,ka),u(J,{"get-popup-container":G},{overlay:b(()=>[u(Tn,{file:o.file,idx:o.idx,"selected-tag":w.value,onContextMenuClick:r[1]||(r[1]=(g,B,oe)=>t("contextMenuClick",g,B,oe))},null,8,["file","idx","selected-tag"])]),default:b(()=>[c(m).expanded?X("",!0):(h(),z("div",za,[u(c(vt))]))]),_:1}),he.value?(h(),z("div",xa)):X("",!0),he.value?(h(),z("div",Ca,[u(J,{trigger:["hover"],"get-popup-container":G},{overlay:b(()=>[u(le,{onClick:r[2]||(r[2]=g=>t("contextMenuClick",g,o.file,o.idx))},{default:b(()=>{var g;return[((g=c(a).conf)==null?void 0:g.launch_mode)!=="server"?(h(),z(R,{key:0},[u(O,{key:"send2txt2img"},{default:b(()=>[M(v(o.$t("sendToTxt2img")),1)]),_:1}),u(O,{key:"send2img2img"},{default:b(()=>[M(v(o.$t("sendToImg2img")),1)]),_:1}),u(O,{key:"send2inpaint"},{default:b(()=>[M(v(o.$t("sendToInpaint")),1)]),_:1}),u(O,{key:"send2extras"},{default:b(()=>[M(v(o.$t("sendToExtraFeatures")),1)]),_:1}),u(C,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:b(()=>[u(O,{key:"send2controlnet-txt2img"},{default:b(()=>[M("ControlNet - "+v(o.$t("t2i")),1)]),_:1}),u(O,{key:"send2controlnet-img2img"},{default:b(()=>[M("ControlNet - "+v(o.$t("i2i")),1)]),_:1}),u(O,{key:"send2outpaint"},{default:b(()=>[M("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):X("",!0),u(O,{key:"send2BatchDownload"},{default:b(()=>[M(v(o.$t("sendToBatchDownload")),1)]),_:1}),u(C,{key:"copy2target",title:o.$t("copyTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`copy-to-${B.dir}`},{default:b(()=>[M(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(C,{key:"move2target",title:o.$t("moveTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`move-to-${B.dir}`},{default:b(()=>[M(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(Y),u(O,{key:"deleteFiles"},{default:b(()=>[M(v(o.$t("deleteSelected")),1)]),_:1}),u(O,{key:"previewInNewWindow"},{default:b(()=>[M(v(o.$t("previewInNewWindow")),1)]),_:1}),u(O,{key:"copyPreviewUrl"},{default:b(()=>[M(v(o.$t("copySourceFilePreviewLink")),1)]),_:1}),u(O,{key:"copyFilePath"},{default:b(()=>[M(v(o.$t("copyFilePath")),1)]),_:1}),u(Y),u(O,{key:"tiktokView",onClick:De},{default:b(()=>[M(v(o.$t("tiktokView")),1)]),_:1})]}),_:1})]),default:b(()=>[u(j,null,{default:b(()=>[M(v(c(x)("openContextMenu")),1)]),_:1})]),_:1}),u(Ce,{onClick:r[3]||(r[3]=g=>t("contextMenuClick",{key:"download"},n.file,n.idx))},{default:b(()=>[M(v(o.$t("download")),1)]),_:1}),I.value?(h(),se(j,{key:0,onClick:r[4]||(r[4]=g=>c(pe)(I.value))},{default:b(()=>[M(v(o.$t("copyPrompt")),1)]),_:1})):X("",!0),I.value?(h(),se(j,{key:1,onClick:d},{default:b(()=>[M(v(o.$t("copyPositivePrompt")),1)]),_:1})):X("",!0),I.value&&((dt=(ct=c(a).conf)==null?void 0:ct.all_custom_tags)!=null&&dt.length)?(h(),se(j,{key:2,onClick:qt,type:"primary",loading:je.value},{default:b(()=>[M(v(o.$t("aiAnalyzeTags")),1)]),_:1},8,["loading"])):X("",!0),u(j,{onClick:De,onTouchstart:yt(De,["prevent"]),type:"default"},{default:b(()=>[M(v(o.$t("tiktokView")),1)]),_:1},8,["onTouchstart"])])):X("",!0)]),he.value?(h(),z("div",Ma,[k("div",Ta,[k("span",La,[k("span",Sa,v(o.$t("fileName")),1),k("span",{class:"value",title:Pe.value,onDblclick:r[5]||(r[5]=g=>c(pe)(Pe.value))},v(Pe.value),41,Ea),k("span",{style:{margin:"0 8px",cursor:"pointer"},title:"Click to expand full path",onClick:r[6]||(r[6]=g=>_e.value=!c(_e))},[u(c(vt))])]),(h(!0),z(R,null,ue(ze.value,g=>(h(),z("span",{class:"info-tag",key:g.name},[k("span",Aa,v(g.name),1),k("span",{class:"value",title:g.val,onDblclick:B=>c(pe)(g.val)},v(g.val),41,Fa)]))),128))]),(gt=c(a).conf)!=null&>.all_custom_tags?(h(),z("div",Ia,[k("div",{class:"sort-tag-switch",onClick:r[7]||(r[7]=g=>xe.value=!c(xe))},[c(xe)?(h(),se(c(jn),{key:1})):(h(),se(c(na),{key:0}))]),k("div",{class:"tag",onClick:r[8]||(r[8]=(...g)=>c(Ge)&&c(Ge)(...g)),style:Ue({"--tag-color":"var(--zp-luminous)"})},"+ "+v(o.$t("add")),5),c(xe)?(h(!0),z(R,{key:0},ue(Ut.value,([g,B])=>(h(),z("div",{key:g,class:"tag-alpha-item"},[k("h4",Pa,v(g)+" : ",1),k("div",null,[(h(!0),z(R,null,ue(B,oe=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(pt=>pt.id===oe.id)}]),onClick:pt=>t("contextMenuClick",{key:`toggle-tag-${oe.id}`},o.file,o.idx),key:oe.id,style:Ue({"--tag-color":c(s).getColor(oe)})},v(oe.name),15,Da))),128))])]))),128)):(h(!0),z(R,{key:1},ue(c(a).conf.all_custom_tags,g=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(B=>B.id===g.id)}]),onClick:B=>t("contextMenuClick",{key:`toggle-tag-${g.id}`},o.file,o.idx),key:g.id,style:Ue({"--tag-color":c(s).getColor(g)})},v(g.name),15,ja))),128))])):X("",!0),k("div",Wa,[k("div",Ua,[M(v(o.$t("experimentalLRLayout"))+": ",1),u(Me,{checked:c(F),"onUpdate:checked":r[9]||(r[9]=g=>Le(F)?F.value=g:null),size:"small"},null,8,["checked"])]),c(F)?(h(),z(R,{key:0},[k("div",qa,[M(v(o.$t("width"))+": ",1),u(fe,{value:c(y),"onUpdate:value":r[10]||(r[10]=g=>Le(y)?y.value=g:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),u(N,{title:o.$t("alwaysOnTooltipInfo")},{default:b(()=>[k("div",Va,[M(v(o.$t("alwaysOn"))+": ",1),u(Me,{checked:c($),"onUpdate:checked":r[11]||(r[11]=g=>Le($)?$.value=g:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):X("",!0)]),u(Vt,{activeKey:c(p),"onUpdate:activeKey":r[12]||(r[12]=g=>Le(p)?p.value=g:null)},{default:b(()=>[u(me,{key:"structedData",tab:o.$t("structuredData")},{default:b(()=>[k("div",null,[L.value.prompt?(h(),z(R,{key:0},[Na,Ba,k("code",{innerHTML:ne(L.value.prompt??"")},null,8,Xa)],64)):X("",!0),L.value.negativePrompt?(h(),z(R,{key:1},[Ha,Ja,k("code",{innerHTML:ne(L.value.negativePrompt??"")},null,8,Ya)],64)):X("",!0)]),Object.keys(P.value).length?(h(),z(R,{key:0},[Za,Ga,k("table",null,[(h(!0),z(R,null,ue(P.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",Ka,v(B),1),typeof g=="object"?(h(),z("td",{key:0,style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",null,v(g),1)],40,Qa)):(h(),z("td",{key:1,style:{cursor:"pointer"},onDblclick:oe=>q(c(Ve)(g))},v(c(Ve)(g)),41,Ra))]))),128))])],64)):X("",!0),S.value&&Object.keys(S.value).length?(h(),z(R,{key:1},[eo,to,k("table",no,[(h(!0),z(R,null,ue(S.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",ao,v(B),1),k("td",{style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",lo,v(typeof g=="string"?g:JSON.stringify(g,null,2)),1)],40,oo)]))),128))])],64)):X("",!0)]),_:1},8,["tab"]),u(me,{key:"sourceText",tab:o.$t("sourceText")},{default:b(()=>[k("code",null,v(I.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):X("",!0)]),c(m).expanded&&!c(F)?(h(),z("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:f,title:c(x)("dragToResizePanel")},[u(c(Vn))],8,so)):X("",!0)],34)}}});const zo=Dt(io,[["__scopeId","data-v-c7e0b9b7"]]),uo={key:0,class:"float-panel"},ro={key:0,class:"select-actions"},co={key:1},go=Pt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const n=nt(),a=()=>{t("clearAllSelected"),n.keepMultiSelect=!1},s=()=>{n.keepMultiSelect=!0};return(i,w)=>{const T=ve;return i.show?(h(),z("div",uo,[c(n).keepMultiSelect?(h(),z("div",ro,[u(T,{size:"small",onClick:w[0]||(w[0]=A=>t("selectAll"))},{default:b(()=>[M(v(i.$t("select-all")),1)]),_:1}),u(T,{size:"small",onClick:w[1]||(w[1]=A=>t("reverseSelect"))},{default:b(()=>[M(v(i.$t("rerverse-select")),1)]),_:1}),u(T,{size:"small",onClick:w[2]||(w[2]=A=>t("clearAllSelected"))},{default:b(()=>[M(v(i.$t("clear-all-selected")),1)]),_:1}),u(T,{size:"small",onClick:a},{default:b(()=>[M(v(i.$t("exit")),1)]),_:1})])):(h(),z("div",co,[u(T,{size:"small",type:"primary",onClick:s},{default:b(()=>[M(v(i.$t("keep-multi-selected")),1)]),_:1})]))])):X("",!0)}}});const xo=Dt(go,[["__scopeId","data-v-b6f9a67c"]]);export{wo as L,xo as M,_o as R,ko as a,Oo as b,bo as c,zo as f,sa as o,$e as u}; +Please return only tag names, do not include any other content.`,Y=(await vn({messages:[{role:"system",content:O},{role:"user",content:`Please analyze this prompt and return matching tags: ${X}`}],temperature:.3,max_tokens:200})).choices[0].message.content.trim();if(!Y){Q.info(x("aiAnalyzeTagsNoMatchedTags"));return}const le=Y.split(",").map(N=>N.trim()).filter(N=>N),Ce=a.conf.all_custom_tags.filter(N=>le.some(me=>N.name.toLowerCase()===me.toLowerCase()||N.name.toLowerCase().includes(me.toLowerCase())||me.toLowerCase().includes(N.name.toLowerCase()))),Me=new Set(w.value.map(N=>N.id)),fe=Ce.filter(N=>!Me.has(N.id));if(fe.length===0){Ce.length>0?Q.info(x("aiAnalyzeTagsAllTagsAlreadyAdded")):Q.info(x("aiAnalyzeTagsNoValidTags"));return}for(const N of fe)t("contextMenuClick",{key:`toggle-tag-${N.id}`},n.file,n.idx);Q.success(x("aiAnalyzeTagsSuccess",[fe.length.toString(),fe.map(N=>N.name).join(", ")]))}catch(X){console.error("AI分析标签失败:",X),Q.error(x("aiAnalyzeTagsFailed"))}finally{je.value=!1}};return(o,r)=>{var ct,dt,gt;const X=Fn,j=ve,O=yn,C=$n,Y=wn,le=_n,Ce=ve,Me=An,fe=En,N=bn,me=kn,Vt=On;return h(),z("div",{ref_key:"el",ref:i,class:qe(["full-screen-menu",{"unset-size":!c(m).expanded,lr:c(F),"always-on":c($),"mouse-in":J.value}]),onWheelCapture:r[13]||(r[13]=yt(()=>{},["stop"])),onKeydownCapture:P},[c(F)?(h(),z("div",ya)):H("",!0),k("div",$a,[k("div",wa,[c(F)?H("",!0):(h(),z("div",{key:0,ref_key:"dragHandle",ref:E,class:"icon",style:{cursor:"grab"},title:c(x)("dragToMovePanel")},[u(c(Jn))],8,_a)),c(F)?H("",!0):(h(),z("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:r[0]||(r[0]=g=>c(m).expanded=!c(m).expanded),title:c(x)("clickToToggleMaximizeMinimize")},[he.value?(h(),se(c(fn),{key:0})):(h(),se(c(mn),{key:1}))],8,ba)),k("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:c(x)("fullscreenview"),onClick:_},[k("img",{src:c(aa),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Oa)],8,ka),u(X,{"get-popup-container":G},{overlay:b(()=>[u(Tn,{file:o.file,idx:o.idx,"selected-tag":w.value,onContextMenuClick:r[1]||(r[1]=(g,B,oe)=>t("contextMenuClick",g,B,oe))},null,8,["file","idx","selected-tag"])]),default:b(()=>[c(m).expanded?H("",!0):(h(),z("div",za,[u(c(vt))]))]),_:1}),he.value?(h(),z("div",xa)):H("",!0),he.value?(h(),z("div",Ca,[u(X,{trigger:["hover"],"get-popup-container":G},{overlay:b(()=>[u(le,{onClick:r[2]||(r[2]=g=>t("contextMenuClick",g,o.file,o.idx))},{default:b(()=>{var g;return[((g=c(a).conf)==null?void 0:g.launch_mode)!=="server"?(h(),z(R,{key:0},[u(O,{key:"send2txt2img"},{default:b(()=>[M(v(o.$t("sendToTxt2img")),1)]),_:1}),u(O,{key:"send2img2img"},{default:b(()=>[M(v(o.$t("sendToImg2img")),1)]),_:1}),u(O,{key:"send2inpaint"},{default:b(()=>[M(v(o.$t("sendToInpaint")),1)]),_:1}),u(O,{key:"send2extras"},{default:b(()=>[M(v(o.$t("sendToExtraFeatures")),1)]),_:1}),u(C,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:b(()=>[u(O,{key:"send2controlnet-txt2img"},{default:b(()=>[M("ControlNet - "+v(o.$t("t2i")),1)]),_:1}),u(O,{key:"send2controlnet-img2img"},{default:b(()=>[M("ControlNet - "+v(o.$t("i2i")),1)]),_:1}),u(O,{key:"send2outpaint"},{default:b(()=>[M("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):H("",!0),u(O,{key:"send2BatchDownload"},{default:b(()=>[M(v(o.$t("sendToBatchDownload")),1)]),_:1}),u(C,{key:"copy2target",title:o.$t("copyTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`copy-to-${B.dir}`},{default:b(()=>[M(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(C,{key:"move2target",title:o.$t("moveTo")},{default:b(()=>[(h(!0),z(R,null,ue(c(a).quickMovePaths,B=>(h(),se(O,{key:`move-to-${B.dir}`},{default:b(()=>[M(v(B.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),u(Y),u(O,{key:"deleteFiles"},{default:b(()=>[M(v(o.$t("deleteSelected")),1)]),_:1}),u(O,{key:"previewInNewWindow"},{default:b(()=>[M(v(o.$t("previewInNewWindow")),1)]),_:1}),u(O,{key:"copyPreviewUrl"},{default:b(()=>[M(v(o.$t("copySourceFilePreviewLink")),1)]),_:1}),u(O,{key:"copyFilePath"},{default:b(()=>[M(v(o.$t("copyFilePath")),1)]),_:1}),u(Y),u(O,{key:"tiktokView",onClick:Pe},{default:b(()=>[M(v(o.$t("tiktokView")),1)]),_:1})]}),_:1})]),default:b(()=>[u(j,null,{default:b(()=>[M(v(c(x)("openContextMenu")),1)]),_:1})]),_:1}),u(Ce,{onClick:r[3]||(r[3]=g=>t("contextMenuClick",{key:"download"},n.file,n.idx))},{default:b(()=>[M(v(o.$t("download")),1)]),_:1}),I.value?(h(),se(j,{key:0,onClick:r[4]||(r[4]=g=>c(pe)(I.value))},{default:b(()=>[M(v(o.$t("copyPrompt")),1)]),_:1})):H("",!0),I.value?(h(),se(j,{key:1,onClick:d},{default:b(()=>[M(v(o.$t("copyPositivePrompt")),1)]),_:1})):H("",!0),I.value&&((dt=(ct=c(a).conf)==null?void 0:ct.all_custom_tags)!=null&&dt.length)?(h(),se(j,{key:2,onClick:qt,type:"primary",loading:je.value},{default:b(()=>[M(v(o.$t("aiAnalyzeTags")),1)]),_:1},8,["loading"])):H("",!0),u(j,{onClick:Pe,onTouchstart:yt(Pe,["prevent"]),type:"default"},{default:b(()=>[M(v(o.$t("tiktokView")),1)]),_:1},8,["onTouchstart"])])):H("",!0)]),he.value?(h(),z("div",Ma,[k("div",Ta,[k("span",La,[k("span",Sa,v(o.$t("fileName")),1),k("span",{class:"value",title:De.value,onDblclick:r[5]||(r[5]=g=>c(pe)(De.value))},v(De.value),41,Ea),k("span",{style:{margin:"0 8px",cursor:"pointer"},title:"Click to expand full path",onClick:r[6]||(r[6]=g=>_e.value=!c(_e))},[u(c(vt))])]),(h(!0),z(R,null,ue(ze.value,g=>(h(),z("span",{class:"info-tag",key:g.name},[k("span",Aa,v(g.name),1),k("span",{class:"value",title:g.val,onDblclick:B=>c(pe)(g.val)},v(g.val),41,Fa)]))),128))]),(gt=c(a).conf)!=null&>.all_custom_tags?(h(),z("div",Ia,[k("div",{class:"sort-tag-switch",onClick:r[7]||(r[7]=g=>xe.value=!c(xe))},[c(xe)?(h(),se(c(jn),{key:1})):(h(),se(c(na),{key:0}))]),k("div",{class:"tag",onClick:r[8]||(r[8]=(...g)=>c(Ge)&&c(Ge)(...g)),style:Ue({"--tag-color":"var(--zp-luminous)"})},"+ "+v(o.$t("add")),5),c(xe)?(h(!0),z(R,{key:0},ue(Ut.value,([g,B])=>(h(),z("div",{key:g,class:"tag-alpha-item"},[k("h4",Da,v(g)+" : ",1),k("div",null,[(h(!0),z(R,null,ue(B,oe=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(pt=>pt.id===oe.id)}]),onClick:pt=>t("contextMenuClick",{key:`toggle-tag-${oe.id}`},o.file,o.idx),key:oe.id,style:Ue({"--tag-color":c(s).getColor(oe)})},v(oe.name),15,Pa))),128))])]))),128)):(h(!0),z(R,{key:1},ue(c(a).conf.all_custom_tags,g=>(h(),z("div",{class:qe(["tag",{selected:w.value.some(B=>B.id===g.id)}]),onClick:B=>t("contextMenuClick",{key:`toggle-tag-${g.id}`},o.file,o.idx),key:g.id,style:Ue({"--tag-color":c(s).getColor(g)})},v(g.name),15,ja))),128))])):H("",!0),k("div",Wa,[k("div",Ua,[M(v(o.$t("experimentalLRLayout"))+": ",1),u(Me,{checked:c(F),"onUpdate:checked":r[9]||(r[9]=g=>Le(F)?F.value=g:null),size:"small"},null,8,["checked"])]),c(F)?(h(),z(R,{key:0},[k("div",qa,[M(v(o.$t("width"))+": ",1),u(fe,{value:c(y),"onUpdate:value":r[10]||(r[10]=g=>Le(y)?y.value=g:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),u(N,{title:o.$t("alwaysOnTooltipInfo")},{default:b(()=>[k("div",Va,[M(v(o.$t("alwaysOn"))+": ",1),u(Me,{checked:c($),"onUpdate:checked":r[11]||(r[11]=g=>Le($)?$.value=g:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):H("",!0)]),u(Vt,{activeKey:c(p),"onUpdate:activeKey":r[12]||(r[12]=g=>Le(p)?p.value=g:null)},{default:b(()=>[u(me,{key:"structedData",tab:o.$t("structuredData")},{default:b(()=>[k("div",null,[L.value.prompt?(h(),z(R,{key:0},[Na,Ba,k("code",{innerHTML:ne(L.value.prompt??"")},null,8,Ha)],64)):H("",!0),L.value.negativePrompt?(h(),z(R,{key:1},[Ja,Xa,k("code",{innerHTML:ne(L.value.negativePrompt??"")},null,8,Ya)],64)):H("",!0)]),Object.keys(D.value).length?(h(),z(R,{key:0},[Za,Ga,k("table",null,[(h(!0),z(R,null,ue(D.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",Ka,v(B),1),typeof g=="object"?(h(),z("td",{key:0,style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",null,v(g),1)],40,Qa)):(h(),z("td",{key:1,style:{cursor:"pointer"},onDblclick:oe=>q(c(Ve)(g))},v(c(Ve)(g)),41,Ra))]))),128))])],64)):H("",!0),S.value&&Object.keys(S.value).length?(h(),z(R,{key:1},[eo,to,k("table",no,[(h(!0),z(R,null,ue(S.value,(g,B)=>(h(),z("tr",{key:B,class:"gen-info-frag"},[k("td",ao,v(B),1),k("td",{style:{cursor:"pointer"},onDblclick:oe=>q(g)},[k("code",lo,v(typeof g=="string"?g:JSON.stringify(g,null,2)),1)],40,oo)]))),128))])],64)):H("",!0)]),_:1},8,["tab"]),u(me,{key:"sourceText",tab:o.$t("sourceText")},{default:b(()=>[k("code",null,v(I.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):H("",!0)]),c(m).expanded&&!c(F)?(h(),z("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:f,title:c(x)("dragToResizePanel")},[u(c(Vn))],8,so)):H("",!0)],34)}}});const zo=Pt(io,[["__scopeId","data-v-c7e0b9b7"]]),uo={key:0,class:"float-panel"},ro={key:0,class:"select-actions"},co={key:1},go=Dt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const n=nt(),a=()=>{t("clearAllSelected"),n.keepMultiSelect=!1},s=()=>{n.keepMultiSelect=!0};return(i,w)=>{const T=ve;return i.show?(h(),z("div",uo,[c(n).keepMultiSelect?(h(),z("div",ro,[u(T,{size:"small",onClick:w[0]||(w[0]=A=>t("selectAll"))},{default:b(()=>[M(v(i.$t("select-all")),1)]),_:1}),u(T,{size:"small",onClick:w[1]||(w[1]=A=>t("reverseSelect"))},{default:b(()=>[M(v(i.$t("rerverse-select")),1)]),_:1}),u(T,{size:"small",onClick:w[2]||(w[2]=A=>t("clearAllSelected"))},{default:b(()=>[M(v(i.$t("clear-all-selected")),1)]),_:1}),u(T,{size:"small",onClick:a},{default:b(()=>[M(v(i.$t("exit")),1)]),_:1})])):(h(),z("div",co,[u(T,{size:"small",type:"primary",onClick:s},{default:b(()=>[M(v(i.$t("keep-multi-selected")),1)]),_:1})]))])):H("",!0)}}});const xo=Pt(go,[["__scopeId","data-v-b6f9a67c"]]);export{wo as L,xo as M,_o as R,ko as a,Oo as b,bo as c,zo as f,sa as o,$e as u}; diff --git a/vue/dist/assets/SubstrSearch-e9faa41c.js b/vue/dist/assets/SubstrSearch-549f6935.js similarity index 93% rename from vue/dist/assets/SubstrSearch-e9faa41c.js rename to vue/dist/assets/SubstrSearch-549f6935.js index 8ae263d..3381453 100644 --- a/vue/dist/assets/SubstrSearch-e9faa41c.js +++ b/vue/dist/assets/SubstrSearch-549f6935.js @@ -1 +1 @@ -import{c as a,A as Fe,d as Ue,c9 as Be,r as w,o as Ee,cd as te,m as He,C as Pe,az as Ge,z as Ke,B as Le,E as ae,ce as je,a1 as qe,U as f,V as U,a3 as t,a4 as e,W as d,X as o,Y as i,a2 as y,$ as k,a5 as B,cp as Ne,ag as O,a6 as le,L as Je,af as We,Z as Qe,T as se,aj as Xe,cq as Ye,ah as Ze,ak as ne,ci as et,ai as tt,aP as at,aQ as lt,cr as st,ck as nt,a0 as it}from"./index-d6594e8e.js";import{S as ot}from"./index-4be8cdd9.js";/* empty css */import"./index-154b94da.js";import"./index-68461333.js";import{c as rt,d as dt,F as ut}from"./FileItem-2eb00024.js";import{M as ct,o as pt,L as ft,R as vt,f as mt}from"./MultiSelectKeep-ba3817a4.js";import{c as gt,u as _t}from"./hook-a2b05396.js";import{f as M,H as ie,_ as ht,a as yt}from"./searchHistory-07858f1f.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";/* empty css */import"./index-cb6a3d31.js";import"./_isIterateeCall-bfd79848.js";import"./index-30b8f89a.js";import"./index-9b184148.js";import"./shortcut-0468cdd7.js";import"./Checkbox-59427a1c.js";import"./index-e620c28b.js";import"./useGenInfoDiff-f63a5430.js";var kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const wt=kt;function oe(u){for(var c=1;c(at("data-v-2a7f2e56"),u=u(),lt(),u),xt={style:{"padding-right":"16px"}},It=H(()=>d("div",null,null,-1)),$t=["title"],At=["src"],Rt={class:"search-bar"},Ot={class:"form-name"},Mt={class:"search-bar last actions"},Tt={class:"hint"},zt={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},Vt={style:{margin:"16px 32px 16px"}},Dt={style:{"padding-right":"16px"}},Ft=H(()=>d("div",null,null,-1)),Ut=H(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Bt={key:2,class:"preview-switch"},Et=Ue({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(u){const c=u,g=Be(),p=w(!1),_=w(""),$=w(!1),S=w(c.searchScope??""),C=w(!1),P=w(0),x=w("all"),T=gt(l=>{const s={cursor:l,regexp:p.value?_.value:"",surstr:p.value?"":_.value,path_only:$.value,folder_paths:(S.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),media_type:x.value};return st(s)}),{queue:b,images:v,onContextMenuClickU:G,stackViewEl:re,previewIdx:I,previewing:K,onPreviewVisibleChange:de,previewImgMove:L,canPreview:j,itemSize:q,gridItems:ue,showGenInfo:A,imageGenInfo:N,q:ce,multiSelectedIdxs:z,onFileItemClick:pe,scroller:J,showMenuIdx:V,onFileDragStart:fe,onFileDragEnd:ve,cellWidth:me,onScroll:W,saveAllFileAsJson:ge,saveLoadedFileAsJson:_e,props:he,changeIndchecked:ye,seedChangeChecked:ke,getGenDiff:we,getGenDiffWatchDep:be}=_t(T),m=w();Ee(async()=>{m.value=await te(),m.value.img_count&&m.value.expired&&await Q(),c.searchScope&&await R()}),He(()=>c,async l=>{he.value=l},{deep:!0,immediate:!0});const Q=Pe(()=>b.pushAction(async()=>(await nt(),m.value=await te(),g.tagMap.clear(),m.value)).res),X=l=>{_.value=l.substr,S.value=l.folder_paths_str,p.value=l.isRegex,x.value=l.mediaType||"all",C.value=!1,R()},R=async()=>{P.value++,M.value.add({substr:_.value,folder_paths_str:S.value,isRegex:p.value,mediaType:x.value}),await T.reset({refetch:!0}),await Ge(),W(),J.value.scrollToItem(0),v.value.length||Ke.info(Le("fuzzy-search-noResults"))};ae("returnToIIB",async()=>{const l=await b.pushAction(je).res;m.value.expired=l.expired}),ae("searchIndexExpired",()=>m.value&&(m.value.expired=!0));const Se=()=>{p.value=!p.value},Ce=qe(),{onClearAllSelected:xe,onSelectAll:Ie,onReverseSelect:$e}=rt();return(l,s)=>{const r=ht,h=yt,Ae=se,Re=Xe,D=Ye,Oe=Ze,Y=ne,Me=et,F=ne,Te=tt,ze=se,Ve=ot;return f(),U(Qe,null,[a(Ae,{visible:C.value,"onUpdate:visible":s[0]||(s[0]=n=>C.value=n),width:"70vw","mask-closable":"",onOk:s[1]||(s[1]=n=>C.value=!1)},{default:t(()=>[a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",xt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),It])]),_:1},8,["records"])]),_:1},8,["visible"]),d("div",{class:"container",ref_key:"stackViewEl",ref:re},[a(ct,{show:!!e(z).length||e(Ce).keepMultiSelect,onClearAllSelected:e(xe),onSelectAll:e(Ie),onReverseSelect:e($e)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),d("div",{class:"search-bar",onKeydown:s[7]||(s[7]=B(()=>{},["stop"]))},[a(Re,{value:_.value,"onUpdate:value":s[2]||(s[2]=n=>_.value=n),placeholder:l.$t("fuzzy-search-placeholder")+" "+l.$t("regexSearchEnabledHint"),disabled:!e(b).isIdle,onKeydown:Ne(R,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),a(Oe,{value:x.value,"onUpdate:value":s[3]||(s[3]=n=>x.value=n),style:{width:"100px",margin:"0 4px"},disabled:!e(b).isIdle},{default:t(()=>[a(D,{value:"all"},{default:t(()=>[o(i(l.$t("all")),1)]),_:1}),a(D,{value:"image"},{default:t(()=>[o(i(l.$t("image")),1)]),_:1}),a(D,{value:"video"},{default:t(()=>[o(i(l.$t("video")),1)]),_:1})]),_:1},8,["value","disabled"]),d("div",{class:O(["regex-icon",{selected:$.value}]),onKeydown:s[4]||(s[4]=B(()=>{},["stop"])),onClick:s[5]||(s[5]=n=>$.value=!$.value),title:l.$t("pathOnly")},[a(e(St))],42,$t),d("div",{class:O(["regex-icon",{selected:p.value}]),onKeydown:s[6]||(s[6]=B(()=>{},["stop"])),onClick:Se,title:"Use Regular Expression"},[d("img",{src:e(Ct)},null,8,At)],34),m.value&&(m.value.expired||!m.value.img_count)?(f(),y(Y,{key:0,onClick:e(Q),loading:!e(b).isIdle,type:"primary"},{default:t(()=>[o(i(m.value.img_count===0?l.$t("generateIndexHint"):l.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(f(),y(Y,{key:1,type:"primary",onClick:R,loading:!e(b).isIdle||e(T).loading},{default:t(()=>[o(i(l.$t("search")),1)]),_:1},8,["loading"]))],32),d("div",Rt,[d("div",Ot,i(l.$t("searchScope")),1),a(Me,{"auto-size":{maxRows:8},value:S.value,"onUpdate:value":s[8]||(s[8]=n=>S.value=n),placeholder:l.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),d("div",Mt,[e(v).length?(f(),y(F,{key:0,onClick:e(_e)},{default:t(()=>[o(i(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):k("",!0),e(v).length?(f(),y(F,{key:1,onClick:e(ge)},{default:t(()=>[o(i(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):k("",!0),a(F,{onClick:s[9]||(s[9]=n=>C.value=!0)},{default:t(()=>[o(i(l.$t("history")),1)]),_:1})]),a(Ve,{size:"large",spinning:!e(b).isIdle},{default:t(()=>[a(ze,{visible:e(A),"onUpdate:visible":s[11]||(s[11]=n=>le(A)?A.value=n:null),width:"70vw","mask-closable":"",onOk:s[12]||(s[12]=n=>A.value=!1)},{cancelText:t(()=>[]),default:t(()=>[a(Te,{active:"",loading:!e(ce).isIdle},{default:t(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:s[10]||(s[10]=n=>e(Je)(e(N)))},[d("div",Tt,i(l.$t("doubleClickToCopy")),1),o(" "+i(e(N)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),P.value===0&&!e(v).length&&e(M).getRecords().length?(f(),U("div",zt,[d("h2",Vt,i(l.$t("restoreFromHistory")),1),a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",Dt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),Ft])]),_:1},8,["records"])])):k("",!0),e(v)?(f(),y(e(dt),{key:1,ref_key:"scroller",ref:J,class:"file-list",items:e(v),"item-size":e(q).first,"key-field":"fullpath","item-secondary-size":e(q).second,gridItems:e(ue),onScroll:e(W)},{after:t(()=>[Ut]),default:t(({item:n,index:Z})=>[a(ut,{idx:Z,file:n,"show-menu-idx":e(V),"onUpdate:showMenuIdx":s[13]||(s[13]=ee=>le(V)?V.value=ee:null),onFileItemClick:e(pe),"full-screen-preview-image-url":e(v)[e(I)]?e(We)(e(v)[e(I)]):"","cell-width":e(me),selected:e(z).includes(Z),onContextMenuClick:e(G),onDragstart:e(fe),onDragend:e(ve),onTiktokView:(ee,De)=>e(pt)(e(v),De),"enable-change-indicator":e(ye),"seed-change-checked":e(ke),"get-gen-diff":e(we),"get-gen-diff-watch-dep":e(be),"is-selected-mutil-files":e(z).length>1,onPreviewVisibleChange:e(de)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onTiktokView","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):k("",!0),e(K)?(f(),U("div",Bt,[a(e(ft),{onClick:s[14]||(s[14]=n=>e(L)("prev")),class:O({disable:!e(j)("prev")})},null,8,["class"]),a(e(vt),{onClick:s[15]||(s[15]=n=>e(L)("next")),class:O({disable:!e(j)("next")})},null,8,["class"])])):k("",!0)]),_:1},8,["spinning"]),e(K)&&e(v)&&e(v)[e(I)]?(f(),y(mt,{key:0,file:e(v)[e(I)],idx:e(I),onContextMenuClick:e(G)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)],64)}}});const na=it(Et,[["__scopeId","data-v-2a7f2e56"]]);export{na as default}; +import{c as a,A as Fe,d as Ue,c9 as Be,r as w,o as Ee,cd as te,m as He,C as Pe,az as Ge,z as Ke,B as Le,E as ae,ce as je,a1 as qe,U as f,V as U,a3 as t,a4 as e,W as d,X as o,Y as i,a2 as y,$ as k,a5 as B,cp as Ne,ag as O,a6 as le,L as Je,af as We,Z as Qe,T as se,aj as Xe,cq as Ye,ah as Ze,ak as ne,ci as et,ai as tt,aP as at,aQ as lt,cr as st,ck as nt,a0 as it}from"./index-0205daf8.js";import{S as ot}from"./index-af89284c.js";/* empty css */import"./index-859cb083.js";import"./index-b9ffc995.js";import{c as rt,d as dt,F as ut}from"./FileItem-cc53e03a.js";import{M as ct,o as pt,L as ft,R as vt,f as mt}from"./MultiSelectKeep-74181f4c.js";import{c as gt,u as _t}from"./hook-4ff6f457.js";import{f as M,H as ie,_ as ht,a as yt}from"./searchHistory-c9de01d4.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";import"./index-728b29ca.js";import"./useGenInfoDiff-13d2ea38.js";var kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const wt=kt;function oe(u){for(var c=1;c(at("data-v-2a7f2e56"),u=u(),lt(),u),xt={style:{"padding-right":"16px"}},It=H(()=>d("div",null,null,-1)),$t=["title"],At=["src"],Rt={class:"search-bar"},Ot={class:"form-name"},Mt={class:"search-bar last actions"},Tt={class:"hint"},zt={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},Vt={style:{margin:"16px 32px 16px"}},Dt={style:{"padding-right":"16px"}},Ft=H(()=>d("div",null,null,-1)),Ut=H(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),Bt={key:2,class:"preview-switch"},Et=Ue({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(u){const c=u,g=Be(),p=w(!1),_=w(""),$=w(!1),S=w(c.searchScope??""),C=w(!1),P=w(0),x=w("all"),T=gt(l=>{const s={cursor:l,regexp:p.value?_.value:"",surstr:p.value?"":_.value,path_only:$.value,folder_paths:(S.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),media_type:x.value};return st(s)}),{queue:b,images:v,onContextMenuClickU:G,stackViewEl:re,previewIdx:I,previewing:K,onPreviewVisibleChange:de,previewImgMove:L,canPreview:j,itemSize:q,gridItems:ue,showGenInfo:A,imageGenInfo:N,q:ce,multiSelectedIdxs:z,onFileItemClick:pe,scroller:J,showMenuIdx:V,onFileDragStart:fe,onFileDragEnd:ve,cellWidth:me,onScroll:W,saveAllFileAsJson:ge,saveLoadedFileAsJson:_e,props:he,changeIndchecked:ye,seedChangeChecked:ke,getGenDiff:we,getGenDiffWatchDep:be}=_t(T),m=w();Ee(async()=>{m.value=await te(),m.value.img_count&&m.value.expired&&await Q(),c.searchScope&&await R()}),He(()=>c,async l=>{he.value=l},{deep:!0,immediate:!0});const Q=Pe(()=>b.pushAction(async()=>(await nt(),m.value=await te(),g.tagMap.clear(),m.value)).res),X=l=>{_.value=l.substr,S.value=l.folder_paths_str,p.value=l.isRegex,x.value=l.mediaType||"all",C.value=!1,R()},R=async()=>{P.value++,M.value.add({substr:_.value,folder_paths_str:S.value,isRegex:p.value,mediaType:x.value}),await T.reset({refetch:!0}),await Ge(),W(),J.value.scrollToItem(0),v.value.length||Ke.info(Le("fuzzy-search-noResults"))};ae("returnToIIB",async()=>{const l=await b.pushAction(je).res;m.value.expired=l.expired}),ae("searchIndexExpired",()=>m.value&&(m.value.expired=!0));const Se=()=>{p.value=!p.value},Ce=qe(),{onClearAllSelected:xe,onSelectAll:Ie,onReverseSelect:$e}=rt();return(l,s)=>{const r=ht,h=yt,Ae=se,Re=Xe,D=Ye,Oe=Ze,Y=ne,Me=et,F=ne,Te=tt,ze=se,Ve=ot;return f(),U(Qe,null,[a(Ae,{visible:C.value,"onUpdate:visible":s[0]||(s[0]=n=>C.value=n),width:"70vw","mask-closable":"",onOk:s[1]||(s[1]=n=>C.value=!1)},{default:t(()=>[a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",xt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),It])]),_:1},8,["records"])]),_:1},8,["visible"]),d("div",{class:"container",ref_key:"stackViewEl",ref:re},[a(ct,{show:!!e(z).length||e(Ce).keepMultiSelect,onClearAllSelected:e(xe),onSelectAll:e(Ie),onReverseSelect:e($e)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),d("div",{class:"search-bar",onKeydown:s[7]||(s[7]=B(()=>{},["stop"]))},[a(Re,{value:_.value,"onUpdate:value":s[2]||(s[2]=n=>_.value=n),placeholder:l.$t("fuzzy-search-placeholder")+" "+l.$t("regexSearchEnabledHint"),disabled:!e(b).isIdle,onKeydown:Ne(R,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),a(Oe,{value:x.value,"onUpdate:value":s[3]||(s[3]=n=>x.value=n),style:{width:"100px",margin:"0 4px"},disabled:!e(b).isIdle},{default:t(()=>[a(D,{value:"all"},{default:t(()=>[o(i(l.$t("all")),1)]),_:1}),a(D,{value:"image"},{default:t(()=>[o(i(l.$t("image")),1)]),_:1}),a(D,{value:"video"},{default:t(()=>[o(i(l.$t("video")),1)]),_:1})]),_:1},8,["value","disabled"]),d("div",{class:O(["regex-icon",{selected:$.value}]),onKeydown:s[4]||(s[4]=B(()=>{},["stop"])),onClick:s[5]||(s[5]=n=>$.value=!$.value),title:l.$t("pathOnly")},[a(e(St))],42,$t),d("div",{class:O(["regex-icon",{selected:p.value}]),onKeydown:s[6]||(s[6]=B(()=>{},["stop"])),onClick:Se,title:"Use Regular Expression"},[d("img",{src:e(Ct)},null,8,At)],34),m.value&&(m.value.expired||!m.value.img_count)?(f(),y(Y,{key:0,onClick:e(Q),loading:!e(b).isIdle,type:"primary"},{default:t(()=>[o(i(m.value.img_count===0?l.$t("generateIndexHint"):l.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(f(),y(Y,{key:1,type:"primary",onClick:R,loading:!e(b).isIdle||e(T).loading},{default:t(()=>[o(i(l.$t("search")),1)]),_:1},8,["loading"]))],32),d("div",Rt,[d("div",Ot,i(l.$t("searchScope")),1),a(Me,{"auto-size":{maxRows:8},value:S.value,"onUpdate:value":s[8]||(s[8]=n=>S.value=n),placeholder:l.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),d("div",Mt,[e(v).length?(f(),y(F,{key:0,onClick:e(_e)},{default:t(()=>[o(i(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):k("",!0),e(v).length?(f(),y(F,{key:1,onClick:e(ge)},{default:t(()=>[o(i(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):k("",!0),a(F,{onClick:s[9]||(s[9]=n=>C.value=!0)},{default:t(()=>[o(i(l.$t("history")),1)]),_:1})]),a(Ve,{size:"large",spinning:!e(b).isIdle},{default:t(()=>[a(ze,{visible:e(A),"onUpdate:visible":s[11]||(s[11]=n=>le(A)?A.value=n:null),width:"70vw","mask-closable":"",onOk:s[12]||(s[12]=n=>A.value=!1)},{cancelText:t(()=>[]),default:t(()=>[a(Te,{active:"",loading:!e(ce).isIdle},{default:t(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:s[10]||(s[10]=n=>e(Je)(e(N)))},[d("div",Tt,i(l.$t("doubleClickToCopy")),1),o(" "+i(e(N)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),P.value===0&&!e(v).length&&e(M).getRecords().length?(f(),U("div",zt,[d("h2",Vt,i(l.$t("restoreFromHistory")),1),a(ie,{records:e(M),onReuseRecord:X},{default:t(({record:n})=>[d("div",Dt,[a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(f(),y(h,{key:0},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("searchScope"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.isRegex),1)]),_:2},1024)]),_:2},1024),n.mediaType?(f(),y(h,{key:1},{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("mediaType"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.mediaType),1)]),_:2},1024)]),_:2},1024)):k("",!0),a(h,null,{default:t(()=>[a(r,{span:4},{default:t(()=>[o(i(l.$t("time"))+":",1)]),_:1}),a(r,{span:20},{default:t(()=>[o(i(n.time),1)]),_:2},1024)]),_:2},1024),Ft])]),_:1},8,["records"])])):k("",!0),e(v)?(f(),y(e(dt),{key:1,ref_key:"scroller",ref:J,class:"file-list",items:e(v),"item-size":e(q).first,"key-field":"fullpath","item-secondary-size":e(q).second,gridItems:e(ue),onScroll:e(W)},{after:t(()=>[Ut]),default:t(({item:n,index:Z})=>[a(ut,{idx:Z,file:n,"show-menu-idx":e(V),"onUpdate:showMenuIdx":s[13]||(s[13]=ee=>le(V)?V.value=ee:null),onFileItemClick:e(pe),"full-screen-preview-image-url":e(v)[e(I)]?e(We)(e(v)[e(I)]):"","cell-width":e(me),selected:e(z).includes(Z),onContextMenuClick:e(G),onDragstart:e(fe),onDragend:e(ve),onTiktokView:(ee,De)=>e(pt)(e(v),De),"enable-change-indicator":e(ye),"seed-change-checked":e(ke),"get-gen-diff":e(we),"get-gen-diff-watch-dep":e(be),"is-selected-mutil-files":e(z).length>1,onPreviewVisibleChange:e(de)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","onTiktokView","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):k("",!0),e(K)?(f(),U("div",Bt,[a(e(ft),{onClick:s[14]||(s[14]=n=>e(L)("prev")),class:O({disable:!e(j)("prev")})},null,8,["class"]),a(e(vt),{onClick:s[15]||(s[15]=n=>e(L)("next")),class:O({disable:!e(j)("next")})},null,8,["class"])])):k("",!0)]),_:1},8,["spinning"]),e(K)&&e(v)&&e(v)[e(I)]?(f(),y(mt,{key:0,file:e(v)[e(I)],idx:e(I),onContextMenuClick:e(G)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)],64)}}});const na=it(Et,[["__scopeId","data-v-2a7f2e56"]]);export{na as default}; diff --git a/vue/dist/assets/TagSearch-ff931640.js b/vue/dist/assets/TagSearch-3cb5874b.js similarity index 99% rename from vue/dist/assets/TagSearch-ff931640.js rename to vue/dist/assets/TagSearch-3cb5874b.js index cb5ed8c..7dde127 100644 --- a/vue/dist/assets/TagSearch-ff931640.js +++ b/vue/dist/assets/TagSearch-3cb5874b.js @@ -1,4 +1,4 @@ -import{P as Ze,ay as Xi,d as se,bC as Lo,b9 as Ji,r as W,bG as Zi,m as Qe,u as Do,G as J,an as yn,h as he,c as P,a as Gt,bH as Qi,b as el,f as tl,bI as nl,ap as ha,bJ as rl,b0 as al,i as ol,bh as il,bK as ll,at as en,au as mn,as as sl,A as ul,b3 as cl,b1 as dl,bL as pr,b2 as fl,bM as pl,bN as No,bx as vl,bO as Vo,bP as hl,bQ as gl,bR as yl,bS as ml,bT as bl,bv as Cl,bU as ga,bV as Fo,bW as _l,bX as xl,bY as wl,am as Te,bZ as jt,az as Ko,b_ as fe,b$ as Sl,J as $r,av as Wo,c0 as kl,c1 as We,o as zo,U as A,V as L,W as S,ag as le,a7 as ce,Z as $e,a8 as lt,$ as K,c2 as Al,X as ae,Y as z,ax as Ol,c3 as $l,c4 as El,c5 as ne,a2 as G,a3 as q,c6 as ya,c7 as ma,aG as vr,c8 as Rl,aP as dt,aQ as ft,c9 as Uo,a5 as bn,a4 as xe,ca as Tl,cb as Ml,a0 as Go,a1 as Pl,cc as Il,n as jl,y as Hl,R as Bl,cd as ba,t as Ll,E as Ca,C as Dl,ce as Nl,ac as Un,aM as Vl,cf as Fl,z as _a,B as Gn,T as xa,cg as Kl,ch as Wl,ak as wa,ci as zl,aj as Ul,cj as Gl,ck as ql}from"./index-d6594e8e.js";import{S as Yl}from"./index-4be8cdd9.js";/* empty css */import"./index-154b94da.js";import{t as Sa,_ as Xl,a as Jl,H as Zl}from"./searchHistory-07858f1f.js";import"./index-68461333.js";import{b as Ql,i as es}from"./isArrayLikeObject-70bd2074.js";import{i as ts}from"./_isIterateeCall-bfd79848.js";var ns=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:Ze.object,expandIconPosition:Ze.oneOf(Xi("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},qo=function(){return{openAnimation:Ze.object,prefixCls:String,header:Ze.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:Ze.any,panelKey:Ze.oneOfType([Ze.string,Ze.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function ka(e){var t=e;if(!Array.isArray(t)){var n=el(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}const qt=se({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Lo(ns(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Ji("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(t,n){var r=n.attrs,a=n.slots,o=n.emit,s=W(ka(Zi([t.activeKey,t.defaultActiveKey])));Qe(function(){return t.activeKey},function(){s.value=ka(t.activeKey)},{deep:!0});var i=Do("collapse",t),l=i.prefixCls,c=i.direction,u=J(function(){var g=t.expandIconPosition;return g!==void 0?g:c.value==="rtl"?"right":"left"}),d=function(p){var C=t.expandIcon,_=C===void 0?a.expandIcon:C,w=_?_(p):P(rl,{rotate:p.isActive?90:void 0},null);return P("div",null,[al(Array.isArray(_)?w[0]:w)?ha(w,{class:"".concat(l.value,"-arrow")},!1):w])},v=function(p){t.activeKey===void 0&&(s.value=p);var C=t.accordion?p[0]:p;o("update:activeKey",C),o("change",C)},f=function(p){var C=s.value;if(t.accordion)C=C[0]===p?[]:[p];else{C=ol(C);var _=C.indexOf(p),w=_>-1;w?C.splice(_,1):C.push(p)}v(C)},m=function(p,C){var _,w,$;if(!nl(p)){var O=s.value,M=t.accordion,D=t.destroyInactivePanel,j=t.collapsible,F=t.openAnimation,b=String((_=p.key)!==null&&_!==void 0?_:C),R=p.props||{},T=R.header,H=T===void 0?(w=p.children)===null||w===void 0||($=w.header)===null||$===void 0?void 0:$.call(w):T,N=R.headerClass,U=R.collapsible,h=R.disabled,x=!1;M?x=O[0]===b:x=O.indexOf(b)>-1;var E=U??j;(h||h==="")&&(E="disabled");var V={key:b,panelKey:b,header:H,headerClass:N,isActive:x,prefixCls:l.value,destroyInactivePanel:D,openAnimation:F,accordion:M,onItemClick:E==="disabled"?null:f,expandIcon:d,collapsible:E};return ha(p,V)}},y=function(){var p;return tl((p=a.default)===null||p===void 0?void 0:p.call(a)).map(m)};return function(){var g,p=t.accordion,C=t.bordered,_=t.ghost,w=yn((g={},he(g,l.value,!0),he(g,"".concat(l.value,"-borderless"),!C),he(g,"".concat(l.value,"-icon-position-").concat(u.value),!0),he(g,"".concat(l.value,"-rtl"),c.value==="rtl"),he(g,"".concat(l.value,"-ghost"),!!_),he(g,r.class,!!r.class),g));return P("div",Gt(Gt({class:w},Qi(r)),{},{style:r.style,role:p?"tablist":null}),[y()])}}}),rs=se({compatConfig:{MODE:3},name:"PanelContent",props:qo(),setup:function(t,n){var r=n.slots,a=W(!1);return il(function(){(t.isActive||t.forceRender)&&(a.value=!0)}),function(){var o,s;if(!a.value)return null;var i=t.prefixCls,l=t.isActive,c=t.role;return P("div",{ref:W,class:yn("".concat(i,"-content"),(o={},he(o,"".concat(i,"-content-active"),l),he(o,"".concat(i,"-content-inactive"),!l),o)),role:c},[P("div",{class:"".concat(i,"-content-box")},[(s=r.default)===null||s===void 0?void 0:s.call(r)])])}}}),Cn=se({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Lo(qo(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(t,n){var r=n.slots,a=n.emit,o=n.attrs;ll(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var s=Do("collapse",t),i=s.prefixCls,l=function(){a("itemClick",t.panelKey)},c=function(d){(d.key==="Enter"||d.keyCode===13||d.which===13)&&l()};return function(){var u,d,v,f,m=t.header,y=m===void 0?(u=r.header)===null||u===void 0?void 0:u.call(r):m,g=t.headerClass,p=t.isActive,C=t.showArrow,_=t.destroyInactivePanel,w=t.accordion,$=t.forceRender,O=t.openAnimation,M=t.expandIcon,D=M===void 0?r.expandIcon:M,j=t.extra,F=j===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):j,b=t.collapsible,R=b==="disabled",T=i.value,H=yn("".concat(T,"-header"),(v={},he(v,g,g),he(v,"".concat(T,"-header-collapsible-only"),b==="header"),v)),N=yn((f={},he(f,"".concat(T,"-item"),!0),he(f,"".concat(T,"-item-active"),p),he(f,"".concat(T,"-item-disabled"),R),he(f,"".concat(T,"-no-arrow"),!C),he(f,"".concat(o.class),!!o.class),f)),U=P("i",{class:"arrow"},null);C&&typeof D=="function"&&(U=D(t));var h=en(P(rs,{prefixCls:T,isActive:p,forceRender:$,role:w?"tabpanel":null},{default:r.default}),[[mn,p]]),x=Gt({appear:!1,css:!1},O);return P("div",Gt(Gt({},o),{},{class:N}),[P("div",{class:H,onClick:function(){return b!=="header"&&l()},role:w?"tab":"button",tabindex:R?-1:0,"aria-expanded":p,onKeypress:c},[C&&U,b==="header"?P("span",{onClick:l,class:"".concat(T,"-header-text")},[y]):y,F&&P("div",{class:"".concat(T,"-extra")},[F])]),P(sl,x,{default:function(){return[!_||p?h:null]}})])}}});qt.Panel=Cn;qt.install=function(e){return e.component(qt.name,qt),e.component(Cn.name,Cn),e};var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const os=as;function Aa(e){for(var t=1;t1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,s&&ts(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(js,arguments)},brighten:function(){return this._applyModification(Hs,arguments)},darken:function(){return this._applyModification(Bs,arguments)},desaturate:function(){return this._applyModification(Ms,arguments)},saturate:function(){return this._applyModification(Ps,arguments)},greyscale:function(){return this._applyModification(Is,arguments)},spin:function(){return this._applyModification(Ls,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Vs,arguments)},complement:function(){return this._applyCombination(Ds,arguments)},monochromatic:function(){return this._applyCombination(Fs,arguments)},splitcomplement:function(){return this._applyCombination(Ns,arguments)},triad:function(){return this._applyCombination(Ta,[3])},tetrad:function(){return this._applyCombination(Ta,[4])}};k.fromRatio=function(e,t){if(_n(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=zt(e[r]));e=n}return k(e,t)};function Os(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=Gs(e)),_n(e)=="object"&&(Fe(e.r)&&Fe(e.g)&&Fe(e.b)?(t=$s(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fe(e.h)&&Fe(e.s)&&Fe(e.v)?(r=zt(e.s),a=zt(e.v),t=Rs(e.h,r,a),s=!0,i="hsv"):Fe(e.h)&&Fe(e.s)&&Fe(e.l)&&(r=zt(e.s),o=zt(e.l),t=Es(e.h,r,o),s=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Jo(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function $s(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Oa(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=(r+a)/2;if(r==a)o=s=0;else{var l=r-a;switch(s=i>.5?l/(2-r-a):l/(r+a),r){case e:o=(t-n)/l+(t1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=a=o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=s(l,i,e+1/3),a=s(l,i,e),o=s(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function $a(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=r,l=r-a;if(s=r===0?0:l/r,r==a)o=0;else{switch(r){case e:o=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(k(r));return o}function Fs(e,t){t=t||6;for(var n=k(e).toHsv(),r=n.h,a=n.s,o=n.v,s=[],i=1/t;t--;)s.push(k({h:r,s:a,v:o})),o=(o+i)%1;return s}k.mix=function(e,t,n){n=n===0?0:n||50;var r=k(e).toRgb(),a=k(t).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return k(s)};k.readability=function(e,t){var n=k(e),r=k(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};k.isReadable=function(e,t,n){var r=k.readability(e,t),a,o;switch(o=!1,a=qs(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};k.mostReadable=function(e,t,n){var r=null,a=0,o,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var c=0;ca&&(a=o,r=k(t[c]));return k.isReadable(e,r,{level:i,size:l})||!s?r:(n.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],n))};var yr=k.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ks=k.hexNames=Ws(yr);function Ws(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Jo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X(e,t){zs(e)&&(e="100%");var n=Us(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function jn(e){return Math.min(1,Math.max(0,e))}function _e(e){return parseInt(e,16)}function zs(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Us(e){return typeof e=="string"&&e.indexOf("%")!=-1}function He(e){return e.length==1?"0"+e:""+e}function zt(e){return e<=1&&(e=e*100+"%"),e}function Zo(e){return Math.round(parseFloat(e)*255).toString(16)}function Ma(e){return _e(e)/255}var je=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fe(e){return!!je.CSS_UNIT.exec(e)}function Gs(e){e=e.replace(ks,"").replace(As,"").toLowerCase();var t=!1;if(yr[e])e=yr[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=je.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=je.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=je.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=je.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=je.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=je.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=je.hex8.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),a:Ma(n[4]),format:t?"name":"hex8"}:(n=je.hex6.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),format:t?"name":"hex"}:(n=je.hex4.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),a:Ma(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=je.hex3.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function qs(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var pt=pt||{};pt.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),a=e.visit(t.style);return a&&(n+=" "+a),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,a=e.visit(n.length);return a&&(r+=" "+a),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(a,o){n+=e.visit(a),o0&&n("Invalid input not EOF"),h}function a(){return _(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,d)||s("repeating-radial-gradient",e.repeatingRadialGradient,d)}function s(h,x,E){return i(x,function(V){var ue=E();return ue&&(N(e.comma)||n("Missing comma before color stops")),{type:h,orientation:ue,colorStops:_(w)}})}function i(h,x){var E=N(h);if(E){N(e.startCall)||n("Missing (");var V=x(E);return N(e.endCall)||n("Missing )"),V}}function l(){return c()||u()}function c(){return H("directional",e.sideOrCorner,1)}function u(){return H("angular",e.angleValue,1)}function d(){var h,x=v(),E;return x&&(h=[],h.push(x),E=t,N(e.comma)&&(x=v(),x?h.push(x):t=E)),h}function v(){var h=f()||m();if(h)h.at=g();else{var x=y();if(x){h=x;var E=g();E&&(h.at=E)}else{var V=p();V&&(h={type:"default-radial",at:V})}}return h}function f(){var h=H("shape",/^(circle)/i,0);return h&&(h.style=T()||y()),h}function m(){var h=H("shape",/^(ellipse)/i,0);return h&&(h.style=b()||y()),h}function y(){return H("extent-keyword",e.extentKeywords,1)}function g(){if(H("position",/^at/,0)){var h=p();return h||n("Missing positioning value"),h}}function p(){var h=C();if(h.x||h.y)return{type:"position",value:h}}function C(){return{x:b(),y:b()}}function _(h){var x=h(),E=[];if(x)for(E.push(x);N(e.comma);)x=h(),x?E.push(x):n("One extra comma");return E}function w(){var h=$();return h||n("Expected color definition"),h.length=b(),h}function $(){return M()||j()||D()||O()}function O(){return H("literal",e.literalColor,0)}function M(){return H("hex",e.hexColor,1)}function D(){return i(e.rgbColor,function(){return{type:"rgb",value:_(F)}})}function j(){return i(e.rgbaColor,function(){return{type:"rgba",value:_(F)}})}function F(){return N(e.number)[1]}function b(){return H("%",e.percentageValue,1)||R()||T()}function R(){return H("position-keyword",e.positionKeywords,1)}function T(){return H("px",e.pixelValue,1)||H("em",e.emValue,1)}function H(h,x,E){var V=N(x);if(V)return{type:h,value:V[E]}}function N(h){var x,E;return E=/^[\n\r\t\s]+/.exec(t),E&&U(E[0].length),x=h.exec(t),x&&U(x[0].length),x}function U(h){t=t.substr(h)}return function(h){return t=h.toString(),r()}}();var Ys=pt.parse,Xs=pt.stringify,me="top",Me="bottom",Pe="right",be="left",Rr="auto",on=[me,Me,Pe,be],kt="start",tn="end",Js="clippingParents",Qo="viewport",Vt="popper",Zs="reference",Pa=on.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+tn])},[]),ei=[].concat(on,[Rr]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+tn])},[]),Qs="beforeRead",eu="read",tu="afterRead",nu="beforeMain",ru="main",au="afterMain",ou="beforeWrite",iu="write",lu="afterWrite",su=[Qs,eu,tu,nu,ru,au,ou,iu,lu];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Se(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){var t=Se(e).Element;return e instanceof t||e instanceof Element}function Ee(e){var t=Se(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tr(e){if(typeof ShadowRoot>"u")return!1;var t=Se(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uu(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Ee(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function cu(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ee(a)||!Ne(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const du={name:"applyStyles",enabled:!0,phase:"write",fn:uu,effect:cu,requires:["computeStyles"]};function Le(e){return e.split("-")[0]}var it=Math.max,xn=Math.min,At=Math.round;function mr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ti(){return!/^((?!chrome|android).)*safari/i.test(mr())}function Ot(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&Ee(e)&&(a=e.offsetWidth>0&&At(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&At(r.height)/e.offsetHeight||1);var s=st(e)?Se(e):window,i=s.visualViewport,l=!ti()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/a,u=(r.top+(l&&i?i.offsetTop:0))/o,d=r.width/a,v=r.height/o;return{width:d,height:v,top:u,right:c+d,bottom:u+v,left:c,x:c,y:u}}function Mr(e){var t=Ot(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ni(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ue(e){return Se(e).getComputedStyle(e)}function fu(e){return["table","td","th"].indexOf(Ne(e))>=0}function rt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Tr(e)?e.host:null)||rt(e)}function Ia(e){return!Ee(e)||Ue(e).position==="fixed"?null:e.offsetParent}function pu(e){var t=/firefox/i.test(mr()),n=/Trident/i.test(mr());if(n&&Ee(e)){var r=Ue(e);if(r.position==="fixed")return null}var a=Hn(e);for(Tr(a)&&(a=a.host);Ee(a)&&["html","body"].indexOf(Ne(a))<0;){var o=Ue(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function ln(e){for(var t=Se(e),n=Ia(e);n&&fu(n)&&Ue(n).position==="static";)n=Ia(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&Ue(n).position==="static")?t:n||pu(e)||t}function Pr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yt(e,t,n){return it(e,xn(t,n))}function vu(e,t,n){var r=Yt(e,t,n);return r>n?n:r}function ri(){return{top:0,right:0,bottom:0,left:0}}function ai(e){return Object.assign({},ri(),e)}function oi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hu=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ai(typeof t!="number"?t:oi(t,on))};function gu(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Le(n.placement),l=Pr(i),c=[be,Pe].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!s)){var d=hu(a.padding,n),v=Mr(o),f=l==="y"?me:be,m=l==="y"?Me:Pe,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],p=ln(o),C=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,_=y/2-g/2,w=d[f],$=C-v[u]-d[m],O=C/2-v[u]/2+_,M=Yt(w,O,$),D=l;n.modifiersData[r]=(t={},t[D]=M,t.centerOffset=M-O,t)}}function yu(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ni(t.elements.popper,a)&&(t.elements.arrow=a))}const mu={name:"arrow",enabled:!0,phase:"main",fn:gu,effect:yu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(e){return e.split("-")[1]}var bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cu(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:At(n*a)/a||0,y:At(r*a)/a||0}}function ja(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,v=s.x,f=v===void 0?0:v,m=s.y,y=m===void 0?0:m,g=typeof u=="function"?u({x:f,y}):{x:f,y};f=g.x,y=g.y;var p=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),_=be,w=me,$=window;if(c){var O=ln(n),M="clientHeight",D="clientWidth";if(O===Se(n)&&(O=rt(n),Ue(O).position!=="static"&&i==="absolute"&&(M="scrollHeight",D="scrollWidth")),O=O,a===me||(a===be||a===Pe)&&o===tn){w=Me;var j=d&&O===$&&$.visualViewport?$.visualViewport.height:O[M];y-=j-r.height,y*=l?1:-1}if(a===be||(a===me||a===Me)&&o===tn){_=Pe;var F=d&&O===$&&$.visualViewport?$.visualViewport.width:O[D];f-=F-r.width,f*=l?1:-1}}var b=Object.assign({position:i},c&&bu),R=u===!0?Cu({x:f,y},Se(n)):{x:f,y};if(f=R.x,y=R.y,l){var T;return Object.assign({},b,(T={},T[w]=C?"0":"",T[_]=p?"0":"",T.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",T))}return Object.assign({},b,(t={},t[w]=C?y+"px":"",t[_]=p?f+"px":"",t.transform="",t))}function _u(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:Le(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ja(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ja(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_u,data:{}};var dn={passive:!0};function wu(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,i=s===void 0?!0:s,l=Se(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,dn)}),i&&l.addEventListener("resize",n.update,dn),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,dn)}),i&&l.removeEventListener("resize",n.update,dn)}}const Su={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wu,data:{}};var ku={left:"right",right:"left",bottom:"top",top:"bottom"};function hn(e){return e.replace(/left|right|bottom|top/g,function(t){return ku[t]})}var Au={start:"end",end:"start"};function Ha(e){return e.replace(/start|end/g,function(t){return Au[t]})}function Ir(e){var t=Se(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jr(e){return Ot(rt(e)).left+Ir(e).scrollLeft}function Ou(e,t){var n=Se(e),r=rt(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=ti();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+jr(e),y:l}}function $u(e){var t,n=rt(e),r=Ir(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=it(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+jr(e),l=-r.scrollTop;return Ue(a||n).direction==="rtl"&&(i+=it(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Hr(e){var t=Ue(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ii(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Ee(e)&&Hr(e)?e:ii(Hn(e))}function Xt(e,t){var n;t===void 0&&(t=[]);var r=ii(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Se(r),s=a?[o].concat(o.visualViewport||[],Hr(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(Xt(Hn(s)))}function br(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Eu(e,t){var n=Ot(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ba(e,t,n){return t===Qo?br(Ou(e,n)):st(t)?Eu(t,n):br($u(rt(e)))}function Ru(e){var t=Xt(Hn(e)),n=["absolute","fixed"].indexOf(Ue(e).position)>=0,r=n&&Ee(e)?ln(e):e;return st(r)?t.filter(function(a){return st(a)&&ni(a,r)&&Ne(a)!=="body"}):[]}function Tu(e,t,n,r){var a=t==="clippingParents"?Ru(e):[].concat(t),o=[].concat(a,[n]),s=o[0],i=o.reduce(function(l,c){var u=Ba(e,c,r);return l.top=it(u.top,l.top),l.right=xn(u.right,l.right),l.bottom=xn(u.bottom,l.bottom),l.left=it(u.left,l.left),l},Ba(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function li(e){var t=e.reference,n=e.element,r=e.placement,a=r?Le(r):null,o=r?$t(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case me:l={x:s,y:t.y-n.height};break;case Me:l={x:s,y:t.y+t.height};break;case Pe:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Pr(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case kt:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function nn(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?Js:i,c=n.rootBoundary,u=c===void 0?Qo:c,d=n.elementContext,v=d===void 0?Vt:d,f=n.altBoundary,m=f===void 0?!1:f,y=n.padding,g=y===void 0?0:y,p=ai(typeof g!="number"?g:oi(g,on)),C=v===Vt?Zs:Vt,_=e.rects.popper,w=e.elements[m?C:v],$=Tu(st(w)?w:w.contextElement||rt(e.elements.popper),l,u,s),O=Ot(e.elements.reference),M=li({reference:O,element:_,strategy:"absolute",placement:a}),D=br(Object.assign({},_,M)),j=v===Vt?D:O,F={top:$.top-j.top+p.top,bottom:j.bottom-$.bottom+p.bottom,left:$.left-j.left+p.left,right:j.right-$.right+p.right},b=e.modifiersData.offset;if(v===Vt&&b){var R=b[a];Object.keys(F).forEach(function(T){var H=[Pe,Me].indexOf(T)>=0?1:-1,N=[me,Me].indexOf(T)>=0?"y":"x";F[T]+=R[N]*H})}return F}function Mu(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ei:l,u=$t(r),d=u?i?Pa:Pa.filter(function(m){return $t(m)===u}):on,v=d.filter(function(m){return c.indexOf(m)>=0});v.length===0&&(v=d);var f=v.reduce(function(m,y){return m[y]=nn(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[Le(y)],m},{});return Object.keys(f).sort(function(m,y){return f[m]-f[y]})}function Pu(e){if(Le(e)===Rr)return[];var t=hn(e);return[Ha(e),t,Ha(t)]}function Iu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,v=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,y=n.allowedAutoPlacements,g=t.options.placement,p=Le(g),C=p===g,_=l||(C||!m?[hn(g)]:Pu(g)),w=[g].concat(_).reduce(function(Be,Ce){return Be.concat(Le(Ce)===Rr?Mu(t,{placement:Ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):Ce)},[]),$=t.rects.reference,O=t.rects.popper,M=new Map,D=!0,j=w[0],F=0;F=0,N=H?"width":"height",U=nn(t,{placement:b,boundary:u,rootBoundary:d,altBoundary:v,padding:c}),h=H?T?Pe:be:T?Me:me;$[N]>O[N]&&(h=hn(h));var x=hn(h),E=[];if(o&&E.push(U[R]<=0),i&&E.push(U[h]<=0,U[x]<=0),E.every(function(Be){return Be})){j=b,D=!1;break}M.set(b,E)}if(D)for(var V=m?3:1,ue=function(Ce){var Ye=w.find(function(yt){var Ve=M.get(yt);if(Ve)return Ve.slice(0,Ce).every(function(Dt){return Dt})});if(Ye)return j=Ye,"break"},Ae=V;Ae>0;Ae--){var ye=ue(Ae);if(ye==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const ju={name:"flip",enabled:!0,phase:"main",fn:Iu,requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Da(e){return[me,Pe,Me,be].some(function(t){return e[t]>=0})}function Hu(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=nn(t,{elementContext:"reference"}),i=nn(t,{altBoundary:!0}),l=La(s,r),c=La(i,a,o),u=Da(l),d=Da(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Bu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hu};function Lu(e,t,n){var r=Le(e),a=[be,me].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[be,Pe].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Du(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=ei.reduce(function(u,d){return u[d]=Lu(d,t.rects,o),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Du};function Vu(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fu={name:"popperOffsets",enabled:!0,phase:"read",fn:Vu,data:{}};function Ku(e){return e==="x"?"y":"x"}function Wu(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,v=n.tether,f=v===void 0?!0:v,m=n.tetherOffset,y=m===void 0?0:m,g=nn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Le(t.placement),C=$t(t.placement),_=!C,w=Pr(p),$=Ku(w),O=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(O){if(o){var T,H=w==="y"?me:be,N=w==="y"?Me:Pe,U=w==="y"?"height":"width",h=O[w],x=h+g[H],E=h-g[N],V=f?-D[U]/2:0,ue=C===kt?M[U]:D[U],Ae=C===kt?-D[U]:-M[U],ye=t.elements.arrow,Be=f&&ye?Mr(ye):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ri(),Ye=Ce[H],yt=Ce[N],Ve=Yt(0,M[U],Be[U]),Dt=_?M[U]/2-V-Ve-Ye-F.mainAxis:ue-Ve-Ye-F.mainAxis,Kn=_?-M[U]/2+V+Ve+yt+F.mainAxis:Ae+Ve+yt+F.mainAxis,B=t.elements.arrow&&ln(t.elements.arrow),Nt=B?w==="y"?B.clientTop||0:B.clientLeft||0:0,ee=(T=b==null?void 0:b[w])!=null?T:0,Wn=h+Dt-ee-Nt,Xe=h+Kn-ee,la=Yt(f?xn(x,Wn):x,h,f?it(E,Xe):E);O[w]=la,R[w]=la-h}if(i){var sa,qi=w==="x"?me:be,Yi=w==="x"?Me:Pe,at=O[$],cn=$==="y"?"height":"width",ua=at+g[qi],ca=at-g[Yi],zn=[me,be].indexOf(p)!==-1,da=(sa=b==null?void 0:b[$])!=null?sa:0,fa=zn?ua:at-M[cn]-D[cn]-da+F.altAxis,pa=zn?at+M[cn]+D[cn]-da-F.altAxis:ca,va=f&&zn?vu(fa,at,pa):Yt(f?fa:ua,at,f?pa:ca);O[$]=va,R[$]=va-at}t.modifiersData[r]=R}}const zu={name:"preventOverflow",enabled:!0,phase:"main",fn:Wu,requiresIfExists:["offset"]};function Uu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gu(e){return e===Se(e)||!Ee(e)?Ir(e):Uu(e)}function qu(e){var t=e.getBoundingClientRect(),n=At(t.width)/e.offsetWidth||1,r=At(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Yu(e,t,n){n===void 0&&(n=!1);var r=Ee(t),a=Ee(t)&&qu(t),o=rt(t),s=Ot(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Hr(o))&&(i=Gu(t)),Ee(t)?(l=Ot(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jr(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Xu(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function Ju(e){var t=Xu(e);return su.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Zu(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qu(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Na={placement:"bottom",modifiers:[],strategy:"absolute"};function Va(){for(var e=arguments.length,t=new Array(e),n=0;n-1;w?C.splice(_,1):C.push(p)}v(C)},m=function(p,C){var _,w,$;if(!nl(p)){var O=s.value,M=t.accordion,D=t.destroyInactivePanel,j=t.collapsible,F=t.openAnimation,b=String((_=p.key)!==null&&_!==void 0?_:C),R=p.props||{},T=R.header,H=T===void 0?(w=p.children)===null||w===void 0||($=w.header)===null||$===void 0?void 0:$.call(w):T,N=R.headerClass,U=R.collapsible,h=R.disabled,x=!1;M?x=O[0]===b:x=O.indexOf(b)>-1;var E=U??j;(h||h==="")&&(E="disabled");var V={key:b,panelKey:b,header:H,headerClass:N,isActive:x,prefixCls:l.value,destroyInactivePanel:D,openAnimation:F,accordion:M,onItemClick:E==="disabled"?null:f,expandIcon:d,collapsible:E};return ha(p,V)}},y=function(){var p;return tl((p=a.default)===null||p===void 0?void 0:p.call(a)).map(m)};return function(){var g,p=t.accordion,C=t.bordered,_=t.ghost,w=yn((g={},he(g,l.value,!0),he(g,"".concat(l.value,"-borderless"),!C),he(g,"".concat(l.value,"-icon-position-").concat(u.value),!0),he(g,"".concat(l.value,"-rtl"),c.value==="rtl"),he(g,"".concat(l.value,"-ghost"),!!_),he(g,r.class,!!r.class),g));return P("div",Gt(Gt({class:w},Qi(r)),{},{style:r.style,role:p?"tablist":null}),[y()])}}}),rs=se({compatConfig:{MODE:3},name:"PanelContent",props:qo(),setup:function(t,n){var r=n.slots,a=W(!1);return il(function(){(t.isActive||t.forceRender)&&(a.value=!0)}),function(){var o,s;if(!a.value)return null;var i=t.prefixCls,l=t.isActive,c=t.role;return P("div",{ref:W,class:yn("".concat(i,"-content"),(o={},he(o,"".concat(i,"-content-active"),l),he(o,"".concat(i,"-content-inactive"),!l),o)),role:c},[P("div",{class:"".concat(i,"-content-box")},[(s=r.default)===null||s===void 0?void 0:s.call(r)])])}}}),Cn=se({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Lo(qo(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(t,n){var r=n.slots,a=n.emit,o=n.attrs;ll(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var s=Do("collapse",t),i=s.prefixCls,l=function(){a("itemClick",t.panelKey)},c=function(d){(d.key==="Enter"||d.keyCode===13||d.which===13)&&l()};return function(){var u,d,v,f,m=t.header,y=m===void 0?(u=r.header)===null||u===void 0?void 0:u.call(r):m,g=t.headerClass,p=t.isActive,C=t.showArrow,_=t.destroyInactivePanel,w=t.accordion,$=t.forceRender,O=t.openAnimation,M=t.expandIcon,D=M===void 0?r.expandIcon:M,j=t.extra,F=j===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):j,b=t.collapsible,R=b==="disabled",T=i.value,H=yn("".concat(T,"-header"),(v={},he(v,g,g),he(v,"".concat(T,"-header-collapsible-only"),b==="header"),v)),N=yn((f={},he(f,"".concat(T,"-item"),!0),he(f,"".concat(T,"-item-active"),p),he(f,"".concat(T,"-item-disabled"),R),he(f,"".concat(T,"-no-arrow"),!C),he(f,"".concat(o.class),!!o.class),f)),U=P("i",{class:"arrow"},null);C&&typeof D=="function"&&(U=D(t));var h=en(P(rs,{prefixCls:T,isActive:p,forceRender:$,role:w?"tabpanel":null},{default:r.default}),[[mn,p]]),x=Gt({appear:!1,css:!1},O);return P("div",Gt(Gt({},o),{},{class:N}),[P("div",{class:H,onClick:function(){return b!=="header"&&l()},role:w?"tab":"button",tabindex:R?-1:0,"aria-expanded":p,onKeypress:c},[C&&U,b==="header"?P("span",{onClick:l,class:"".concat(T,"-header-text")},[y]):y,F&&P("div",{class:"".concat(T,"-extra")},[F])]),P(sl,x,{default:function(){return[!_||p?h:null]}})])}}});qt.Panel=Cn;qt.install=function(e){return e.component(qt.name,qt),e.component(Cn.name,Cn),e};var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const os=as;function Aa(e){for(var t=1;t1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,s&&ts(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(js,arguments)},brighten:function(){return this._applyModification(Hs,arguments)},darken:function(){return this._applyModification(Bs,arguments)},desaturate:function(){return this._applyModification(Ms,arguments)},saturate:function(){return this._applyModification(Ps,arguments)},greyscale:function(){return this._applyModification(Is,arguments)},spin:function(){return this._applyModification(Ls,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Vs,arguments)},complement:function(){return this._applyCombination(Ds,arguments)},monochromatic:function(){return this._applyCombination(Fs,arguments)},splitcomplement:function(){return this._applyCombination(Ns,arguments)},triad:function(){return this._applyCombination(Ta,[3])},tetrad:function(){return this._applyCombination(Ta,[4])}};k.fromRatio=function(e,t){if(_n(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=zt(e[r]));e=n}return k(e,t)};function Os(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=Gs(e)),_n(e)=="object"&&(Fe(e.r)&&Fe(e.g)&&Fe(e.b)?(t=$s(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fe(e.h)&&Fe(e.s)&&Fe(e.v)?(r=zt(e.s),a=zt(e.v),t=Rs(e.h,r,a),s=!0,i="hsv"):Fe(e.h)&&Fe(e.s)&&Fe(e.l)&&(r=zt(e.s),o=zt(e.l),t=Es(e.h,r,o),s=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Jo(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function $s(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Oa(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=(r+a)/2;if(r==a)o=s=0;else{var l=r-a;switch(s=i>.5?l/(2-r-a):l/(r+a),r){case e:o=(t-n)/l+(t1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=a=o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=s(l,i,e+1/3),a=s(l,i,e),o=s(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function $a(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=r,l=r-a;if(s=r===0?0:l/r,r==a)o=0;else{switch(r){case e:o=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(k(r));return o}function Fs(e,t){t=t||6;for(var n=k(e).toHsv(),r=n.h,a=n.s,o=n.v,s=[],i=1/t;t--;)s.push(k({h:r,s:a,v:o})),o=(o+i)%1;return s}k.mix=function(e,t,n){n=n===0?0:n||50;var r=k(e).toRgb(),a=k(t).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return k(s)};k.readability=function(e,t){var n=k(e),r=k(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};k.isReadable=function(e,t,n){var r=k.readability(e,t),a,o;switch(o=!1,a=qs(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};k.mostReadable=function(e,t,n){var r=null,a=0,o,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var c=0;ca&&(a=o,r=k(t[c]));return k.isReadable(e,r,{level:i,size:l})||!s?r:(n.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],n))};var yr=k.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ks=k.hexNames=Ws(yr);function Ws(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Jo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X(e,t){zs(e)&&(e="100%");var n=Us(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function jn(e){return Math.min(1,Math.max(0,e))}function _e(e){return parseInt(e,16)}function zs(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Us(e){return typeof e=="string"&&e.indexOf("%")!=-1}function He(e){return e.length==1?"0"+e:""+e}function zt(e){return e<=1&&(e=e*100+"%"),e}function Zo(e){return Math.round(parseFloat(e)*255).toString(16)}function Ma(e){return _e(e)/255}var je=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fe(e){return!!je.CSS_UNIT.exec(e)}function Gs(e){e=e.replace(ks,"").replace(As,"").toLowerCase();var t=!1;if(yr[e])e=yr[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=je.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=je.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=je.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=je.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=je.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=je.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=je.hex8.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),a:Ma(n[4]),format:t?"name":"hex8"}:(n=je.hex6.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),format:t?"name":"hex"}:(n=je.hex4.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),a:Ma(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=je.hex3.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function qs(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var pt=pt||{};pt.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),a=e.visit(t.style);return a&&(n+=" "+a),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,a=e.visit(n.length);return a&&(r+=" "+a),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(a,o){n+=e.visit(a),o0&&n("Invalid input not EOF"),h}function a(){return _(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,d)||s("repeating-radial-gradient",e.repeatingRadialGradient,d)}function s(h,x,E){return i(x,function(V){var ue=E();return ue&&(N(e.comma)||n("Missing comma before color stops")),{type:h,orientation:ue,colorStops:_(w)}})}function i(h,x){var E=N(h);if(E){N(e.startCall)||n("Missing (");var V=x(E);return N(e.endCall)||n("Missing )"),V}}function l(){return c()||u()}function c(){return H("directional",e.sideOrCorner,1)}function u(){return H("angular",e.angleValue,1)}function d(){var h,x=v(),E;return x&&(h=[],h.push(x),E=t,N(e.comma)&&(x=v(),x?h.push(x):t=E)),h}function v(){var h=f()||m();if(h)h.at=g();else{var x=y();if(x){h=x;var E=g();E&&(h.at=E)}else{var V=p();V&&(h={type:"default-radial",at:V})}}return h}function f(){var h=H("shape",/^(circle)/i,0);return h&&(h.style=T()||y()),h}function m(){var h=H("shape",/^(ellipse)/i,0);return h&&(h.style=b()||y()),h}function y(){return H("extent-keyword",e.extentKeywords,1)}function g(){if(H("position",/^at/,0)){var h=p();return h||n("Missing positioning value"),h}}function p(){var h=C();if(h.x||h.y)return{type:"position",value:h}}function C(){return{x:b(),y:b()}}function _(h){var x=h(),E=[];if(x)for(E.push(x);N(e.comma);)x=h(),x?E.push(x):n("One extra comma");return E}function w(){var h=$();return h||n("Expected color definition"),h.length=b(),h}function $(){return M()||j()||D()||O()}function O(){return H("literal",e.literalColor,0)}function M(){return H("hex",e.hexColor,1)}function D(){return i(e.rgbColor,function(){return{type:"rgb",value:_(F)}})}function j(){return i(e.rgbaColor,function(){return{type:"rgba",value:_(F)}})}function F(){return N(e.number)[1]}function b(){return H("%",e.percentageValue,1)||R()||T()}function R(){return H("position-keyword",e.positionKeywords,1)}function T(){return H("px",e.pixelValue,1)||H("em",e.emValue,1)}function H(h,x,E){var V=N(x);if(V)return{type:h,value:V[E]}}function N(h){var x,E;return E=/^[\n\r\t\s]+/.exec(t),E&&U(E[0].length),x=h.exec(t),x&&U(x[0].length),x}function U(h){t=t.substr(h)}return function(h){return t=h.toString(),r()}}();var Ys=pt.parse,Xs=pt.stringify,me="top",Me="bottom",Pe="right",be="left",Rr="auto",on=[me,Me,Pe,be],kt="start",tn="end",Js="clippingParents",Qo="viewport",Vt="popper",Zs="reference",Pa=on.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+tn])},[]),ei=[].concat(on,[Rr]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+tn])},[]),Qs="beforeRead",eu="read",tu="afterRead",nu="beforeMain",ru="main",au="afterMain",ou="beforeWrite",iu="write",lu="afterWrite",su=[Qs,eu,tu,nu,ru,au,ou,iu,lu];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Se(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){var t=Se(e).Element;return e instanceof t||e instanceof Element}function Ee(e){var t=Se(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tr(e){if(typeof ShadowRoot>"u")return!1;var t=Se(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uu(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Ee(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function cu(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ee(a)||!Ne(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const du={name:"applyStyles",enabled:!0,phase:"write",fn:uu,effect:cu,requires:["computeStyles"]};function Le(e){return e.split("-")[0]}var it=Math.max,xn=Math.min,At=Math.round;function mr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ti(){return!/^((?!chrome|android).)*safari/i.test(mr())}function Ot(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&Ee(e)&&(a=e.offsetWidth>0&&At(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&At(r.height)/e.offsetHeight||1);var s=st(e)?Se(e):window,i=s.visualViewport,l=!ti()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/a,u=(r.top+(l&&i?i.offsetTop:0))/o,d=r.width/a,v=r.height/o;return{width:d,height:v,top:u,right:c+d,bottom:u+v,left:c,x:c,y:u}}function Mr(e){var t=Ot(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ni(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ue(e){return Se(e).getComputedStyle(e)}function fu(e){return["table","td","th"].indexOf(Ne(e))>=0}function rt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Tr(e)?e.host:null)||rt(e)}function Ia(e){return!Ee(e)||Ue(e).position==="fixed"?null:e.offsetParent}function pu(e){var t=/firefox/i.test(mr()),n=/Trident/i.test(mr());if(n&&Ee(e)){var r=Ue(e);if(r.position==="fixed")return null}var a=Hn(e);for(Tr(a)&&(a=a.host);Ee(a)&&["html","body"].indexOf(Ne(a))<0;){var o=Ue(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function ln(e){for(var t=Se(e),n=Ia(e);n&&fu(n)&&Ue(n).position==="static";)n=Ia(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&Ue(n).position==="static")?t:n||pu(e)||t}function Pr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yt(e,t,n){return it(e,xn(t,n))}function vu(e,t,n){var r=Yt(e,t,n);return r>n?n:r}function ri(){return{top:0,right:0,bottom:0,left:0}}function ai(e){return Object.assign({},ri(),e)}function oi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hu=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ai(typeof t!="number"?t:oi(t,on))};function gu(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Le(n.placement),l=Pr(i),c=[be,Pe].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!s)){var d=hu(a.padding,n),v=Mr(o),f=l==="y"?me:be,m=l==="y"?Me:Pe,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],p=ln(o),C=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,_=y/2-g/2,w=d[f],$=C-v[u]-d[m],O=C/2-v[u]/2+_,M=Yt(w,O,$),D=l;n.modifiersData[r]=(t={},t[D]=M,t.centerOffset=M-O,t)}}function yu(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ni(t.elements.popper,a)&&(t.elements.arrow=a))}const mu={name:"arrow",enabled:!0,phase:"main",fn:gu,effect:yu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(e){return e.split("-")[1]}var bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cu(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:At(n*a)/a||0,y:At(r*a)/a||0}}function ja(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,v=s.x,f=v===void 0?0:v,m=s.y,y=m===void 0?0:m,g=typeof u=="function"?u({x:f,y}):{x:f,y};f=g.x,y=g.y;var p=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),_=be,w=me,$=window;if(c){var O=ln(n),M="clientHeight",D="clientWidth";if(O===Se(n)&&(O=rt(n),Ue(O).position!=="static"&&i==="absolute"&&(M="scrollHeight",D="scrollWidth")),O=O,a===me||(a===be||a===Pe)&&o===tn){w=Me;var j=d&&O===$&&$.visualViewport?$.visualViewport.height:O[M];y-=j-r.height,y*=l?1:-1}if(a===be||(a===me||a===Me)&&o===tn){_=Pe;var F=d&&O===$&&$.visualViewport?$.visualViewport.width:O[D];f-=F-r.width,f*=l?1:-1}}var b=Object.assign({position:i},c&&bu),R=u===!0?Cu({x:f,y},Se(n)):{x:f,y};if(f=R.x,y=R.y,l){var T;return Object.assign({},b,(T={},T[w]=C?"0":"",T[_]=p?"0":"",T.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",T))}return Object.assign({},b,(t={},t[w]=C?y+"px":"",t[_]=p?f+"px":"",t.transform="",t))}function _u(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:Le(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ja(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ja(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_u,data:{}};var dn={passive:!0};function wu(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,i=s===void 0?!0:s,l=Se(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,dn)}),i&&l.addEventListener("resize",n.update,dn),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,dn)}),i&&l.removeEventListener("resize",n.update,dn)}}const Su={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wu,data:{}};var ku={left:"right",right:"left",bottom:"top",top:"bottom"};function hn(e){return e.replace(/left|right|bottom|top/g,function(t){return ku[t]})}var Au={start:"end",end:"start"};function Ha(e){return e.replace(/start|end/g,function(t){return Au[t]})}function Ir(e){var t=Se(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jr(e){return Ot(rt(e)).left+Ir(e).scrollLeft}function Ou(e,t){var n=Se(e),r=rt(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=ti();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+jr(e),y:l}}function $u(e){var t,n=rt(e),r=Ir(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=it(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+jr(e),l=-r.scrollTop;return Ue(a||n).direction==="rtl"&&(i+=it(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Hr(e){var t=Ue(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ii(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Ee(e)&&Hr(e)?e:ii(Hn(e))}function Xt(e,t){var n;t===void 0&&(t=[]);var r=ii(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Se(r),s=a?[o].concat(o.visualViewport||[],Hr(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(Xt(Hn(s)))}function br(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Eu(e,t){var n=Ot(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ba(e,t,n){return t===Qo?br(Ou(e,n)):st(t)?Eu(t,n):br($u(rt(e)))}function Ru(e){var t=Xt(Hn(e)),n=["absolute","fixed"].indexOf(Ue(e).position)>=0,r=n&&Ee(e)?ln(e):e;return st(r)?t.filter(function(a){return st(a)&&ni(a,r)&&Ne(a)!=="body"}):[]}function Tu(e,t,n,r){var a=t==="clippingParents"?Ru(e):[].concat(t),o=[].concat(a,[n]),s=o[0],i=o.reduce(function(l,c){var u=Ba(e,c,r);return l.top=it(u.top,l.top),l.right=xn(u.right,l.right),l.bottom=xn(u.bottom,l.bottom),l.left=it(u.left,l.left),l},Ba(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function li(e){var t=e.reference,n=e.element,r=e.placement,a=r?Le(r):null,o=r?$t(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case me:l={x:s,y:t.y-n.height};break;case Me:l={x:s,y:t.y+t.height};break;case Pe:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Pr(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case kt:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function nn(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?Js:i,c=n.rootBoundary,u=c===void 0?Qo:c,d=n.elementContext,v=d===void 0?Vt:d,f=n.altBoundary,m=f===void 0?!1:f,y=n.padding,g=y===void 0?0:y,p=ai(typeof g!="number"?g:oi(g,on)),C=v===Vt?Zs:Vt,_=e.rects.popper,w=e.elements[m?C:v],$=Tu(st(w)?w:w.contextElement||rt(e.elements.popper),l,u,s),O=Ot(e.elements.reference),M=li({reference:O,element:_,strategy:"absolute",placement:a}),D=br(Object.assign({},_,M)),j=v===Vt?D:O,F={top:$.top-j.top+p.top,bottom:j.bottom-$.bottom+p.bottom,left:$.left-j.left+p.left,right:j.right-$.right+p.right},b=e.modifiersData.offset;if(v===Vt&&b){var R=b[a];Object.keys(F).forEach(function(T){var H=[Pe,Me].indexOf(T)>=0?1:-1,N=[me,Me].indexOf(T)>=0?"y":"x";F[T]+=R[N]*H})}return F}function Mu(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ei:l,u=$t(r),d=u?i?Pa:Pa.filter(function(m){return $t(m)===u}):on,v=d.filter(function(m){return c.indexOf(m)>=0});v.length===0&&(v=d);var f=v.reduce(function(m,y){return m[y]=nn(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[Le(y)],m},{});return Object.keys(f).sort(function(m,y){return f[m]-f[y]})}function Pu(e){if(Le(e)===Rr)return[];var t=hn(e);return[Ha(e),t,Ha(t)]}function Iu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,v=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,y=n.allowedAutoPlacements,g=t.options.placement,p=Le(g),C=p===g,_=l||(C||!m?[hn(g)]:Pu(g)),w=[g].concat(_).reduce(function(Be,Ce){return Be.concat(Le(Ce)===Rr?Mu(t,{placement:Ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):Ce)},[]),$=t.rects.reference,O=t.rects.popper,M=new Map,D=!0,j=w[0],F=0;F=0,N=H?"width":"height",U=nn(t,{placement:b,boundary:u,rootBoundary:d,altBoundary:v,padding:c}),h=H?T?Pe:be:T?Me:me;$[N]>O[N]&&(h=hn(h));var x=hn(h),E=[];if(o&&E.push(U[R]<=0),i&&E.push(U[h]<=0,U[x]<=0),E.every(function(Be){return Be})){j=b,D=!1;break}M.set(b,E)}if(D)for(var V=m?3:1,ue=function(Ce){var Ye=w.find(function(yt){var Ve=M.get(yt);if(Ve)return Ve.slice(0,Ce).every(function(Dt){return Dt})});if(Ye)return j=Ye,"break"},Ae=V;Ae>0;Ae--){var ye=ue(Ae);if(ye==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const ju={name:"flip",enabled:!0,phase:"main",fn:Iu,requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Da(e){return[me,Pe,Me,be].some(function(t){return e[t]>=0})}function Hu(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=nn(t,{elementContext:"reference"}),i=nn(t,{altBoundary:!0}),l=La(s,r),c=La(i,a,o),u=Da(l),d=Da(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Bu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hu};function Lu(e,t,n){var r=Le(e),a=[be,me].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[be,Pe].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Du(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=ei.reduce(function(u,d){return u[d]=Lu(d,t.rects,o),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Du};function Vu(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fu={name:"popperOffsets",enabled:!0,phase:"read",fn:Vu,data:{}};function Ku(e){return e==="x"?"y":"x"}function Wu(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,v=n.tether,f=v===void 0?!0:v,m=n.tetherOffset,y=m===void 0?0:m,g=nn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Le(t.placement),C=$t(t.placement),_=!C,w=Pr(p),$=Ku(w),O=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(O){if(o){var T,H=w==="y"?me:be,N=w==="y"?Me:Pe,U=w==="y"?"height":"width",h=O[w],x=h+g[H],E=h-g[N],V=f?-D[U]/2:0,ue=C===kt?M[U]:D[U],Ae=C===kt?-D[U]:-M[U],ye=t.elements.arrow,Be=f&&ye?Mr(ye):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ri(),Ye=Ce[H],yt=Ce[N],Ve=Yt(0,M[U],Be[U]),Dt=_?M[U]/2-V-Ve-Ye-F.mainAxis:ue-Ve-Ye-F.mainAxis,Kn=_?-M[U]/2+V+Ve+yt+F.mainAxis:Ae+Ve+yt+F.mainAxis,B=t.elements.arrow&&ln(t.elements.arrow),Nt=B?w==="y"?B.clientTop||0:B.clientLeft||0:0,ee=(T=b==null?void 0:b[w])!=null?T:0,Wn=h+Dt-ee-Nt,Xe=h+Kn-ee,la=Yt(f?xn(x,Wn):x,h,f?it(E,Xe):E);O[w]=la,R[w]=la-h}if(i){var sa,qi=w==="x"?me:be,Yi=w==="x"?Me:Pe,at=O[$],cn=$==="y"?"height":"width",ua=at+g[qi],ca=at-g[Yi],zn=[me,be].indexOf(p)!==-1,da=(sa=b==null?void 0:b[$])!=null?sa:0,fa=zn?ua:at-M[cn]-D[cn]-da+F.altAxis,pa=zn?at+M[cn]+D[cn]-da-F.altAxis:ca,va=f&&zn?vu(fa,at,pa):Yt(f?fa:ua,at,f?pa:ca);O[$]=va,R[$]=va-at}t.modifiersData[r]=R}}const zu={name:"preventOverflow",enabled:!0,phase:"main",fn:Wu,requiresIfExists:["offset"]};function Uu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gu(e){return e===Se(e)||!Ee(e)?Ir(e):Uu(e)}function qu(e){var t=e.getBoundingClientRect(),n=At(t.width)/e.offsetWidth||1,r=At(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Yu(e,t,n){n===void 0&&(n=!1);var r=Ee(t),a=Ee(t)&&qu(t),o=rt(t),s=Ot(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Hr(o))&&(i=Gu(t)),Ee(t)?(l=Ot(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jr(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Xu(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function Ju(e){var t=Xu(e);return su.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Zu(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qu(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Na={placement:"bottom",modifiers:[],strategy:"absolute"};function Va(){for(var e=arguments.length,t=new Array(e),n=0;n * * Copyright (c) 2014-2017, Jon Schlinkert. diff --git a/vue/dist/assets/TopicSearch-4fe24c7f.js b/vue/dist/assets/TopicSearch-4fe24c7f.js new file mode 100644 index 0000000..172872e --- /dev/null +++ b/vue/dist/assets/TopicSearch-4fe24c7f.js @@ -0,0 +1,72 @@ +import{ay as Jl,P as zl,bK as kA,d as Kn,G as zt,a as Me,c as _t,Z as Lc,_ as RA,cz as rg,r as $t,cA as BR,bC as EA,cB as zR,b7 as OA,h as pr,u as NA,be as VR,cb as GR,bc as FR,ca as HR,cw as BA,m as fs,an as WR,ao as $R,B as Wt,az as Ch,o as zA,I as UR,U as Kt,V as Re,W as Ct,Y as Bt,a4 as Ae,a3 as se,X as Ke,cp as VA,a2 as pa,cC as YR,cD as ZR,$ as vr,z as $a,cE as XR,aO as GA,ah as FA,aj as HA,ak as WA,aP as $A,aQ as UA,a0 as YA,a1 as qR,J as KR,bk as jR,a9 as JR,a8 as QR,cF as tE,cG as eE,cH as rE,ck as aE,cI as nE,cJ as iE,R as Ao,T as oE,cK as sE}from"./index-0205daf8.js";import{u as lE}from"./index-859cb083.js";import{S as ZA}from"./index-af89284c.js";import{_ as uE}from"./index-728b29ca.js";import{_ as XA}from"./index-6a8edab1.js";/* empty css */import{_ as qA}from"./index-6d8e3499.js";var KA=Jl("normal","exception","active","success"),fE=Jl("line","circle","dashboard"),cE=Jl("default","small"),Bv=function(){return{prefixCls:String,type:zl.oneOf(fE),percent:Number,format:{type:Function},status:zl.oneOf(KA),showInfo:{type:Boolean,default:void 0},strokeWidth:Number,strokeLinecap:String,strokeColor:{type:[String,Object],default:void 0},trailColor:String,width:Number,success:{type:Object,default:function(){return{}}},gapDegree:Number,gapPosition:String,size:zl.oneOf(cE),steps:Number,successPercent:Number,title:String}};function Ui(r){return!r||r<0?0:r>100?100:r}function Ic(r){var t=r.success,e=r.successPercent,a=e;return t&&"progress"in t&&(kA(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var vE=["from","to","direction"],hE=function(){return Me(Me({},Bv()),{},{prefixCls:String,direction:{type:String}})},dE=function(t){var e=[];return Object.keys(t).forEach(function(a){var n=parseFloat(a.replace(/%/g,""));isNaN(n)||e.push({key:n,value:t[a]})}),e=e.sort(function(a,n){return a.key-n.key}),e.map(function(a){var n=a.key,i=a.value;return"".concat(i," ").concat(n,"%")}).join(", ")},pE=function(t,e){var a=t.from,n=a===void 0?rg.blue:a,i=t.to,o=i===void 0?rg.blue:i,s=t.direction,l=s===void 0?e==="rtl"?"to left":"to right":s,u=RA(t,vE);if(Object.keys(u).length!==0){var f=dE(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(n,", ").concat(o,")")}};const gE=Kn({compatConfig:{MODE:3},name:"Line",props:hE(),setup:function(t,e){var a=e.slots,n=zt(function(){var u=t.strokeColor,f=t.direction;return u&&typeof u!="string"?pE(u,f):{background:u}}),i=zt(function(){return t.trailColor?{backgroundColor:t.trailColor}:void 0}),o=zt(function(){var u=t.percent,f=t.strokeWidth,c=t.strokeLinecap,v=t.size;return Me({width:"".concat(Ui(u),"%"),height:"".concat(f||(v==="small"?6:8),"px"),borderRadius:c==="square"?0:""},n.value)}),s=zt(function(){return Ic(t)}),l=zt(function(){var u=t.strokeWidth,f=t.size,c=t.strokeLinecap,v=t.success;return{width:"".concat(Ui(s.value),"%"),height:"".concat(u||(f==="small"?6:8),"px"),borderRadius:c==="square"?0:"",backgroundColor:v==null?void 0:v.strokeColor}});return function(){var u;return _t(Lc,null,[_t("div",{class:"".concat(t.prefixCls,"-outer")},[_t("div",{class:"".concat(t.prefixCls,"-inner"),style:i.value},[_t("div",{class:"".concat(t.prefixCls,"-bg"),style:o.value},null),s.value!==void 0?_t("div",{class:"".concat(t.prefixCls,"-success-bg"),style:l.value},null):null])]),(u=a.default)===null||u===void 0?void 0:u.call(a)])}}});var yE={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},mE=function(t){var e=$t(null);return BR(function(){var a=Date.now(),n=!1;t.value.forEach(function(i){var o=(i==null?void 0:i.$el)||i;if(o){n=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",e.value&&a-e.value<100&&(s.transitionDuration="0s, 0s")}}),n&&(e.value=Date.now())}),t},_E={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},SE=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],W_=0;function $_(r){return+r.replace("%","")}function U_(r){return Array.isArray(r)?r:[r]}function Y_(r,t,e,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,o=50-a/2,s=0,l=-o,u=0,f=-2*o;switch(i){case"left":s=-o,l=0,u=2*o,f=0;break;case"right":s=o,l=0,u=-2*o,f=0;break;case"bottom":l=o,f=2*o;break}var c="M 50,50 m ".concat(s,",").concat(l,` + a `).concat(o,",").concat(o," 0 1 1 ").concat(u,",").concat(-f,` + a `).concat(o,",").concat(o," 0 1 1 ").concat(-u,",").concat(f),v=Math.PI*2*o,h={stroke:e,strokeDasharray:"".concat(t/100*(v-n),"px ").concat(v,"px"),strokeDashoffset:"-".concat(n/2+r/100*(v-n),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:c,pathStyle:h}}const xE=Kn({compatConfig:{MODE:3},name:"VCCircle",props:EA(_E,yE),setup:function(t){W_+=1;var e=$t(W_),a=zt(function(){return U_(t.percent)}),n=zt(function(){return U_(t.strokeColor)}),i=zR(),o=OA(i,2),s=o[0],l=o[1];mE(l);var u=function(){var c=t.prefixCls,v=t.strokeWidth,h=t.strokeLinecap,d=t.gapDegree,p=t.gapPosition,g=0;return a.value.map(function(y,m){var _=n.value[m]||n.value[n.value.length-1],S=Object.prototype.toString.call(_)==="[object Object]"?"url(#".concat(c,"-gradient-").concat(e.value,")"):"",b=Y_(g,y,_,v,d,p),x=b.pathString,w=b.pathStyle;g+=y;var T={key:m,d:x,stroke:S,"stroke-linecap":h,"stroke-width":v,opacity:y===0?0:1,"fill-opacity":"0",class:"".concat(c,"-circle-path"),style:w};return _t("path",Me({ref:s(m)},T),null)})};return function(){var f=t.prefixCls,c=t.strokeWidth,v=t.trailWidth,h=t.gapDegree,d=t.gapPosition,p=t.trailColor,g=t.strokeLinecap;t.strokeColor;var y=RA(t,SE),m=Y_(0,100,p,c,h,d),_=m.pathString,S=m.pathStyle;delete y.percent;var b=n.value.find(function(w){return Object.prototype.toString.call(w)==="[object Object]"}),x={d:_,stroke:p,"stroke-linecap":g,"stroke-width":v||c,"fill-opacity":"0",class:"".concat(f,"-circle-trail"),style:S};return _t("svg",Me({class:"".concat(f,"-circle"),viewBox:"0 0 100 100"},y),[b&&_t("defs",null,[_t("linearGradient",{id:"".concat(f,"-gradient-").concat(e.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(b).sort(function(w,T){return $_(w)-$_(T)}).map(function(w,T){return _t("stop",{key:T,offset:w,"stop-color":b[w]},null)})])]),_t("path",x,null),u().reverse()])}}});function bE(r){var t=r.percent,e=r.success,a=r.successPercent,n=Ui(Ic({success:e,successPercent:a}));return[n,Ui(Ui(t)-n)]}function wE(r){var t=r.success,e=t===void 0?{}:t,a=r.strokeColor,n=e.strokeColor;return[n||rg.green,a||null]}const TE=Kn({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:Bv(),setup:function(t,e){var a=e.slots,n=zt(function(){if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),i=zt(function(){var v=t.width||120;return{width:typeof v=="number"?"".concat(v,"px"):v,height:typeof v=="number"?"".concat(v,"px"):v,fontSize:"".concat(v*.15+6,"px")}}),o=zt(function(){return t.strokeWidth||6}),s=zt(function(){return t.gapPosition||t.type==="dashboard"&&"bottom"||"top"}),l=zt(function(){return bE(t)}),u=zt(function(){return Object.prototype.toString.call(t.strokeColor)==="[object Object]"}),f=zt(function(){return wE({success:t.success,strokeColor:t.strokeColor})}),c=zt(function(){var v;return v={},pr(v,"".concat(t.prefixCls,"-inner"),!0),pr(v,"".concat(t.prefixCls,"-circle-gradient"),u.value),v});return function(){var v;return _t("div",{class:c.value,style:i.value},[_t(xE,{percent:l.value,strokeWidth:o.value,trailWidth:o.value,strokeColor:f.value,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,prefixCls:t.prefixCls,gapDegree:n.value,gapPosition:s.value},null),(v=a.default)===null||v===void 0?void 0:v.call(a)])}}});var CE=function(){return Me(Me({},Bv()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})};const AE=Kn({compatConfig:{MODE:3},name:"Steps",props:CE(),setup:function(t,e){var a=e.slots,n=zt(function(){return Math.round(t.steps*((t.percent||0)/100))}),i=zt(function(){return t.size==="small"?2:14}),o=zt(function(){for(var s=t.steps,l=t.strokeWidth,u=l===void 0?8:l,f=t.strokeColor,c=t.trailColor,v=t.prefixCls,h=[],d=0;d=100?"success":c||"normal"}),f=function(){var v=t.showInfo,h=t.format,d=t.type,p=t.percent,g=t.title,y=Ic(t);if(!v)return null;var m,_=h||(a==null?void 0:a.format)||function(b){return"".concat(b,"%")},S=d==="line";return h||a!=null&&a.format||u.value!=="exception"&&u.value!=="success"?m=_(Ui(p),Ui(y)):u.value==="exception"?m=S?_t(VR,null,null):_t(GR,null,null):u.value==="success"&&(m=S?_t(FR,null,null):_t(HR,null,null)),_t("span",{class:"".concat(i.value,"-text"),title:g===void 0&&typeof m=="string"?m:void 0},[m])};return function(){var c=t.type,v=t.steps,h=t.strokeColor,d=t.title,p=f(),g;c==="line"?g=v?_t(AE,Me(Me({},t),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:i.value,steps:v}),{default:function(){return[p]}}):_t(gE,Me(Me({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}):(c==="circle"||c==="dashboard")&&(g=_t(TE,Me(Me({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}));var y=Me(Me({},s.value),{},pr({},"".concat(i.value,"-status-").concat(u.value),!0));return _t("div",{class:y,title:d},[g])}}}),DE=BA(ME);var LE={small:8,middle:16,large:24},IE=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:zl.oneOf(Jl("horizontal","vertical")).def("horizontal"),align:zl.oneOf(Jl("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function PE(r){return typeof r=="string"?LE[r]:r||0}var kE=Kn({compatConfig:{MODE:3},name:"ASpace",props:IE(),slots:["split"],setup:function(t,e){var a=e.slots,n=NA("space",t),i=n.prefixCls,o=n.space,s=n.direction,l=lE(),u=zt(function(){var g,y,m;return(g=(y=t.size)!==null&&y!==void 0?y:(m=o.value)===null||m===void 0?void 0:m.size)!==null&&g!==void 0?g:"small"}),f=$t(),c=$t();fs(u,function(){var g=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(function(m){return PE(m)}),y=OA(g,2);f.value=y[0],c.value=y[1]},{immediate:!0});var v=zt(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),h=zt(function(){var g;return WR(i.value,"".concat(i.value,"-").concat(t.direction),(g={},pr(g,"".concat(i.value,"-rtl"),s.value==="rtl"),pr(g,"".concat(i.value,"-align-").concat(v.value),v.value),g))}),d=zt(function(){return s.value==="rtl"?"marginLeft":"marginRight"}),p=zt(function(){var g={};return l.value&&(g.columnGap="".concat(f.value,"px"),g.rowGap="".concat(c.value,"px")),Me(Me({},g),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-c.value,"px")})});return function(){var g,y,m=t.wrap,_=t.direction,S=_===void 0?"horizontal":_,b=(g=a.default)===null||g===void 0?void 0:g.call(a),x=$R(b),w=x.length;if(w===0)return null;var T=(y=a.split)===null||y===void 0?void 0:y.call(a),C="".concat(i.value,"-item"),M=f.value,D=w-1;return _t("div",{class:h.value,style:p.value},[x.map(function(I,L){var k=b.indexOf(I),R={};return l.value||(S==="vertical"?L"u"&&typeof self<"u"?xn.worker=!0:!xn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(xn.node=!0,xn.svgSupported=!0):NE(navigator.userAgent,xn);function NE(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}const Nt=xn;var dm=12,jA="sans-serif",Qa=dm+"px "+jA,BE=20,zE=100,VE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function GE(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){A(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function lO(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?K_(s,o):K_(o,s))}function nM(r){return r.nodeName.toUpperCase()==="CANVAS"}var uO=/([&<>"'])/g,fO={"&":"&","<":"<",">":">",'"':""","'":"'"};function $e(r){return r==null?"":(r+"").replace(uO,function(t,e){return fO[e]})}var cO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mh=[],vO=Nt.browser.firefox&&+Nt.browser.version.split(".")[0]<39;function fg(r,t,e,a){return e=e||{},a?j_(r,t,e):vO&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):j_(r,t,e),e}function j_(r,t,e){if(Nt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(nM(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(ug(Mh,r,a,n)){e.zrX=Mh[0],e.zrY=Mh[1];return}}e.zrX=e.zrY=0}function xm(r){return r||window.event}function Dr(r,t,e){if(t=xm(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&fg(r,o,t,e)}else{fg(r,t,t,e);var i=hO(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&cO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function hO(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function cg(r,t,e,a){r.addEventListener(t,e,a)}function dO(r,t,e,a){r.removeEventListener(t,e,a)}var tn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function J_(r){return r.which===2||r.which===3}var pO=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&a&&a.length>1){var i=Q_(a)/Q_(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=gO(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Oe(){return[1,0,0,1,0,0]}function Hv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Wv(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Aa(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Pa(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function jn(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=i*c+l*f,r[3]=-i*f+c*l,r[4]=c*(o-a[0])+f*(u-a[1])+a[0],r[5]=c*(u-a[1])-f*(o-a[0])+a[1],r}function bm(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function Qr(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function yO(r){var t=Oe();return Wv(t,r),t}var mO=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}();const ct=mO;var zi=Math.min,as=Math.max,vg=Math.abs,t1=["x","y"],_O=["width","height"],ei=new ct,ri=new ct,ai=new ct,ni=new ct,dr=iM(),Cl=dr.minTv,hg=dr.maxTv,Gl=[0,0],wm=function(){function r(t,e,a,n){r.set(this,t,e,a,n)}return r.set=function(t,e,a,n,i){return n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),t.x=e,t.y=a,t.width=n,t.height=i,t},r.prototype.union=function(t){var e=zi(t.x,this.x),a=zi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=as(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=as(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Oe();return Pa(i,i,[-e.x,-e.y]),bm(i,i,[a,n]),Pa(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e,a){return r.intersect(this,t,e,a)},r.intersect=function(t,e,a,n){a&&ct.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(SO,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(xO,e.x,e.y,e.width,e.height));var s=!!a;dr.reset(n,s);var l=dr.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,v=t.y+t.height-l,h=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||c>v||h>d||p>g)return!1;var y=!(f=t.x&&e<=t.x+t.width&&a>=t.y&&a<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ei.x=ai.x=e.x,ei.y=ni.y=e.y,ri.x=ni.x=e.x+e.width,ri.y=ai.y=e.y+e.height,ei.transform(a),ni.transform(a),ri.transform(a),ai.transform(a),t.x=zi(ei.x,ri.x,ai.x,ni.x),t.y=zi(ei.y,ri.y,ai.y,ni.y);var l=as(ei.x,ri.x,ai.x,ni.x),u=as(ei.y,ri.y,ai.y,ni.y);t.width=l-t.x,t.height=u-t.y},r}(),SO=new wm(0,0,0,0),xO=new wm(0,0,0,0);function e1(r,t,e,a,n,i,o,s){var l=vg(t-e),u=vg(a-r),f=zi(l,u),c=t1[n],v=t1[1-n],h=_O[n];t=u||!dr.bidirectional)&&(Cl[c]=-u,Cl[v]=0,dr.useDir&&dr.calcDirMTV())))}function iM(){var r=0,t=new ct,e=new ct,a={minTv:new ct,maxTv:new ct,useDir:!1,dirMinTv:new ct,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=as(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),e.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(a.bidirectional||t.dot(e)>0)&&e.len()=0;c--){var v=i[c];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Lh.copy(v.getBoundingRect()),v.transform&&Lh.applyTransform(v.transform),Lh.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function AO(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?oM:!0}return!1}function r1(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=AO(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==oM)){t.target=o;break}}}function lM(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}const MO=sM;var uM=32,Xs=7;function DO(r){for(var t=0;r>=uM;)t|=r&1,r>>=1;return r+t}function a1(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function LO(r,t,e){for(e--;t>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Ih(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Ph(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function IO(r,t){var e=Xs,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]=Xs||w>=Xs);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Ih(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=Xs||C>=Xs);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),n1(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var gr=1,Al=2,Qo=4,i1=!1;function kh(){i1||(i1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function o1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var PO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=o1}return r.prototype.traverse=function(t,e){for(var a=0;a=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const kO=PO;var fM;fM=Nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const dg=fM;var cc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-cc.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?cc.bounceIn(r*2)*.5:cc.bounceOut(r*2-1)*.5+.5}};const cM=cc;var Zu=Math.pow,On=Math.sqrt,Rc=1e-8,vM=1e-4,s1=On(3),Xu=1/3,ya=vo(),kr=vo(),cs=vo();function Ln(r){return r>-Rc&&rRc||r<-Rc}function De(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function l1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Ec(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Ln(f)&&Ln(c))if(Ln(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=c*c-4*f*v;if(Ln(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=On(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Zu(-_,Xu):_=Zu(_,Xu),S<0?S=-Zu(-S,Xu):S=Zu(S,Xu);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*On(f*f*f)),x=Math.acos(b)/3,w=On(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+s1*Math.sin(x)))/(3*o),C=(-s+w*(T-s1*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function dM(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(Ln(o)){if(hM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Ln(f))n[0]=-i/(2*o);else if(f>0){var c=On(f),u=(-i+c)/(2*o),v=(-i-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Hn(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=a}function pM(r,t,e,a,n,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;ya[0]=l,ya[1]=u;for(var m=0;m<1;m+=.05)kr[0]=De(r,e,n,o,m),kr[1]=De(t,a,i,s,m),g=Yi(ya,kr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Ln(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=On(f),u=(-o+c)/(2*i),v=(-o-c)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function gM(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function tu(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function yM(r,t,e,a,n,i,o,s,l){var u,f=.005,c=1/0;ya[0]=o,ya[1]=s;for(var v=0;v<1;v+=.05){kr[0]=Ee(r,e,n,v),kr[1]=Ee(t,a,i,v);var h=Yi(ya,kr);h=0&&h=1?1:Ec(0,a,i,1,l,s)&&De(0,n,o,1,s[0])}}}var BO=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||fe,this.ondestroy=t.ondestroy||fe,this.onrestart=t.onrestart||fe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ot(t)?t:cM[t]||Tm(t)},r}();const zO=BO;var mM=function(){function r(t){this.value=t}return r}(),VO=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new mM(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),GO=function(){function r(t){this._list=new VO,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new mM(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const ys=GO;var u1={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 qr(r){return r=Math.round(r),r<0?0:r>255?255:r}function FO(r){return r=Math.round(r),r<0?0:r>360?360:r}function eu(r){return r<0?0:r>1?1:r}function Rh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qr(parseFloat(t)/100*255):qr(parseInt(t,10))}function Nn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?eu(parseFloat(t)/100):eu(parseFloat(t))}function Eh(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function In(r,t,e){return r+(t-r)*e}function Mr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function gg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var _M=new ys(20),qu=null;function Do(r,t){qu&&gg(qu,t),qu=_M.put(r,qu||t.slice())}function lr(r,t){if(r){t=t||[];var e=_M.get(r);if(e)return gg(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in u1)return gg(t,u1[a]),Do(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Mr(t,0,0,0,1);return}return Mr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Do(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Mr(t,0,0,0,1);return}return Mr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Do(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Mr(t,+u[0],+u[1],+u[2],1):Mr(t,0,0,0,1);f=Nn(u.pop());case"rgb":if(u.length>=3)return Mr(t,Rh(u[0]),Rh(u[1]),Rh(u[2]),u.length===3?f:Nn(u[3])),Do(r,t),t;Mr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Mr(t,0,0,0,1);return}return u[3]=Nn(u[3]),yg(u,t),Do(r,t),t;case"hsl":if(u.length!==3){Mr(t,0,0,0,1);return}return yg(u,t),Do(r,t),t;default:return}}Mr(t,0,0,0,1)}}function yg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Nn(r[1]),n=Nn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Mr(t,qr(Eh(o,i,e+1/3)*255),qr(Eh(o,i,e)*255),qr(Eh(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function HO(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,v=((i-a)/6+o/2)/o;t===i?l=v-c:e===i?l=1/3+f-v:a===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function mg(r,t){var e=lr(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return Ma(e,e.length===4?"rgba":"rgb")}}function Oh(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=qr(In(o[0],s[0],l)),e[1]=qr(In(o[1],s[1],l)),e[2]=qr(In(o[2],s[2],l)),e[3]=eu(In(o[3],s[3],l)),e}}function WO(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=lr(t[n]),s=lr(t[i]),l=a-n,u=Ma([qr(In(o[0],s[0],l)),qr(In(o[1],s[1],l)),qr(In(o[2],s[2],l)),eu(In(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Bn(r,t,e,a){var n=lr(r);if(r)return n=HO(n),t!=null&&(n[0]=FO(ot(t)?t(n[0]):t)),e!=null&&(n[1]=Nn(ot(e)?e(n[1]):e)),a!=null&&(n[2]=Nn(ot(a)?a(n[2]):a)),Ma(yg(n),"rgba")}function Oc(r,t){var e=lr(r);if(e&&t!=null)return e[3]=eu(t),Ma(e,"rgba")}function Ma(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Nc(r,t){var e=lr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var f1=new ys(100);function _g(r){if(Q(r)){var t=f1.get(r);return t||(t=mg(r,-.1),f1.put(r,t)),t}else if(Vv(r)){var e=$({},r);return e.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:mg(a.color,-.1)}}),e}return r}var Bc=Math.round;function ru(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=lr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var c1=1e-4;function Pn(r){return r-c1}function Ku(r){return Bc(r*1e3)/1e3}function Sg(r){return Bc(r*1e4)/1e4}function $O(r){return"matrix("+Ku(r[0])+","+Ku(r[1])+","+Ku(r[2])+","+Ku(r[3])+","+Sg(r[4])+","+Sg(r[5])+")"}var UO={left:"start",right:"end",center:"middle",middle:"middle"};function YO(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function ZO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function XO(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function SM(r){return r&&!!r.image}function qO(r){return r&&!!r.svgElement}function Cm(r){return SM(r)||qO(r)}function xM(r){return r.type==="linear"}function bM(r){return r.type==="radial"}function wM(r){return r&&(r.type==="linear"||r.type==="radial")}function $v(r){return"url(#"+r+")"}function TM(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function CM(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*sc,n=nt(r.scaleX,1),i=nt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Bc(o*sc)+"deg, "+Bc(s*sc)+"deg)"),l.join(" ")}var KO=function(){return Nt.hasGlobalWindow&&ot(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),xg=Array.prototype.slice;function Ha(r,t,e){return(t-r)*e+r}function Nh(r,t,e,a){for(var n=t.length,i=0;ia?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=h1,l=e;if(Ye(e)){var u=tN(e);s=u,(u===1&&!Pt(e[0])||u===2&&!Pt(e[0][0]))&&(o=!0)}else if(Pt(e)&&!Ue(e))s=Ju;else if(Q(e))if(!isNaN(+e))s=Ju;else{var f=lr(e);f&&(l=f,s=Ml)}else if(Vv(e)){var c=$({},l);c.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:lr(h.color)}}),xM(e)?s=bg:bM(e)&&(s=wg),l=c}i===0?this.valType=s:(s!==this.valType||s===h1)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=ot(a)?a:cM[a]||Tm(a)),n.push(v),v},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Qu(n),u=d1(n),f=0;f=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=c;fe);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-h.percent,y=g===0?1:v((e-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?qs:t[l];if((Qu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(Qu(i))i===hc?Nh(m,h[n],d[n],y):jO(m,h[n],d[n],y);else if(d1(i)){var _=h[n],S=d[n],b=i===bg;t[l]={type:b?"linear":"radial",x:Ha(_.x,S.x,y),y:Ha(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Ha(w.offset,C.offset,y),color:vc(Nh([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=Ha(_.x2,S.x2,y),t[l].y2=Ha(_.y2,S.y2,y)):t[l].r=Ha(_.r,S.r,y)}else if(u)Nh(m,h[n],d[n],y),a||(t[l]=vc(m));else{var x=Ha(h[n],d[n],y);a?this._additiveValue=x:t[l]=x}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===Ju?t[a]=t[a]+n:e===Ml?(lr(t[a],qs),ju(qs,qs,n,1),t[a]=vc(qs)):e===hc?ju(t[a],t[a],n,1):e===AM&&v1(t[a],t[a],n,1)},r}(),Am=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){ym("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,It(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Fl(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Fl(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function ns(){return new Date().getTime()}var rN=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=ns()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(dg(a),!e._paused&&e.update())}dg(a)},t.prototype.start=function(){this._running||(this._time=ns(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ns(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ns()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new Am(e,a.loop);return this.addAnimator(n),n},t}(Fr);const aN=rN;var nN=300,Bh=Nt.domSupported,zh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),p1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},g1=!1;function Tg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function iN(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Vh(r){r&&(r.zrByTouch=!0)}function oN(r,t){return Dr(r.dom,new sN(r,t),!0)}function MM(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var sN=function(){function r(t,e){this.stopPropagation=fe,this.stopImmediatePropagation=fe,this.preventDefault=fe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ur={mousedown:function(r){r=Dr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Dr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Dr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Dr(this.dom,r);var t=r.toElement||r.relatedTarget;MM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){g1=!0,r=Dr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){g1||(r=Dr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Dr(this.dom,r),Vh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ur.mousemove.call(this,r),Ur.mousedown.call(this,r)},touchmove:function(r){r=Dr(this.dom,r),Vh(r),this.handler.processGesture(r,"change"),Ur.mousemove.call(this,r)},touchend:function(r){r=Dr(this.dom,r),Vh(r),this.handler.processGesture(r,"end"),Ur.mouseup.call(this,r),+new Date-+this.__lastTouchMoment_1||r<-_1}var oi=[],Lo=[],Fh=Oe(),Hh=Math.abs,hN=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return ii(this.rotation)||ii(this.x)||ii(this.y)||ii(this.scaleX-1)||ii(this.scaleY-1)||ii(this.skewX)||ii(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(m1(a),this.invTransform=null);return}a=a||Oe(),e?this.getLocalTransform(a):m1(a),t&&(e?Aa(a,t,a):Wv(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(oi);var a=oi[0]<0?-1:1,n=oi[1]<0?-1:1,i=((oi[0]-a)*e+a)/oi[0]||0,o=((oi[1]-n)*e+n)/oi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Oe(),Qr(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Oe(),Aa(Lo,t.invTransform,e),e=Lo);var a=this.originX,n=this.originY;(a||n)&&(Fh[4]=a,Fh[5]=n,Aa(Lo,e,Fh),Lo[4]-=a,Lo[5]-=n,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&ce(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&ce(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Hh(t[0]-1)>1e-10&&Hh(t[3]-1)>1e-10?Math.sqrt(Hh(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Vc(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;e[4]=-d*i-v*p*o,e[5]=-p*o-h*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=h*i,e[2]=v*o,u&&jn(e,e,u),e[4]+=a+f,e[5]+=n+c,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),ka=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Vc(r,t){for(var e=0;e=S1)){r=r||Qa;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=Jr.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?Wh=S1:n>2&&Wh++,t}}var Wh=0,S1=5;function LM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=dN(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function La(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=Jr.measureText(t,r.font).width,e.put(t,a)),a}function x1(r,t,e,a){var n=La(Da(t),r),i=Iu(t),o=ms(0,n,e),s=Zi(0,i,a),l=new dt(o,s,n,i);return l}function Uv(r,t,e,a){var n=((r||"")+"").split(` +`),i=n.length;if(i===1)return x1(n[0],t,e,a);for(var o=new dt(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Gc(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(a instanceof Array)l+=ta(a[0],e.width),u+=ta(a[1],e.height),f=null,c=null;else switch(a){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var $h="__zr_normal__",Uh=ka.concat(["ignore"]),pN=Ia(ka,function(r,t){return r[t]=!0,r},{ignore:!1}),Io={},gN=new dt(0,0,0,0),ef=[],Mm=function(){function r(t){this.id=tM(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var f=a.position!=null,c=a.autoOverflowArea,v=void 0;if((c||f)&&(v=gN,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Io,a,v):Gc(Io,a,v),i.x=Io.x,i.y=Io.y,o=Io.align,s=Io.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=ta(h[0],v.width),p=ta(h[1],v.height)),u=!0,i.originX=-i.x+d+(n?0:v.x),i.originY=-i.y+p+(n?0:v.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new dt(0,0,0,0);i.getLocalTransform(ef),Qr(ef,ef),dt.copy(m,v),m.applyTransform(ef)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,b=void 0,x=void 0;_&&this.canBeInsideText()?(S=a.insideFill,b=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),x=!0)):(S=a.outsideFill,b=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||b!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=b,y.autoStroke=x,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=gr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Dg:Mg},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&lr(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Ma(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},$(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ht(t))for(var a=t,n=It(a),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState($h,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===$h,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(bt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){ym("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,v=this._textGuide;return c&&c.useState(t,e,a,f),v&&v.useState(t,e,a,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gr),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gr)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=bt(n,t),o=bt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var v=0;v0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?T[y]=a[y]:e[y]=a[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=Fl(e[y]),mN(e,a,y)}}var b=new Am(e,!1,!1,c?Ft(d,function(I){return I.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,p),M&&b.whenWithKeys(0,M,p),b.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}const PM=Mm;var kM=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,n=0;n=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=bt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=bt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var J=DN;function DN(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Fc(r,t,e)}function Fc(r,t,e){return Q(r)?MN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function de(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),EM),r=(+r).toFixed(t),e?r:+r}function Br(r){return r.sort(function(t,e){return t-e}),r}function xa(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 LN(r)}function LN(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function OM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Sa(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function IN(r,t){var e=Ia(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Y(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Y(n,function(h){return Math.floor(h)}),s=Ia(o,function(h,d){return h+d},0),l=Y(n,function(h,d){return h-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Y(o,function(h){return h/a})}function PN(r,t){var e=Math.max(xa(r),xa(t)),a=r+t;return e>EM?a:de(a,e)}var T1=9007199254740991;function NM(r){var t=Math.PI*2;return(r%t+t)%t}function au(r){return r>-w1&&r=10&&t++,t}function BM(r,t){var e=Dm(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Xh(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function C1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function qh(r){r.option=r.parentModel=r.ecModel=null}var JN=".",si="___EC__COMPONENT__CONTAINER___",XM="___EC__EXTENDED_CLASS___";function ba(r){var t={main:"",sub:""};if(r){var e=r.split(JN);t.main=e[0]||"",t.sub=e[1]||""}return t}function QN(r){Ze(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function tB(r){return!!(r&&r[XM])}function Pm(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return eB(a)?n=function(i){z(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},YE(n,this)),$(n.prototype,e),n[XM]=!0,n.extend=this.extend,n.superCall=nB,n.superApply=iB,n.superClass=a,n}}function eB(r){return ot(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function qM(r,t){r.extend=t.extend}var rB=Math.round(Math.random()*10);function aB(r){var t=["__\0is_clz",rB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function nB(r,t){for(var e=[],a=2;a=0||i&&bt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var oB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],sB=no(oB),lB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return sB(this,t,e)},r}(),Pg=new ys(50);function uB(r){if(typeof r=="string"){var t=Pg.get(r);return t&&t.image}else return r}function km(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Pg.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!Zv(t)&&i.pending.push(o)):(t=Jr.loadImage(r,I1,I1),t.__zrImageSrc=r,Pg.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function I1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;u++)l-=s;var f=La(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function jM(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=La(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?cB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=La(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function cB(r,t,e){for(var a=0,n=0,i=r.length;ng&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(n&&f&&p!=null)for(var S=KM(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},x=0;xd&&jh(i,o.substring(d,g),t,h),jh(i,p[2],t,h,p[1]),d=Kh.lastIndex}dc){var B=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,M),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length0&&d+a.accumWidth>a.width&&(f=t.split(` +`),u=!0),a.accumWidth=d}else{var p=JM(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=t.split(` +`));for(var g=Da(l),y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var yB=Ia(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function mB(r){return gB(r)?!!yB[r]:!0}function JM(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,c=Da(t),v=0;ve:n+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function k1(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;dt.set(R1,ms(e,o,n),Zi(a,s,i),o,s),dt.intersect(t,R1,null,E1);var l=E1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=ms(l.x,l.width,n,!0),r.baseY=Zi(l.y,l.height,i,!0)}}var R1=new dt(0,0,0,0),E1={outIntersectRect:{},clamp:!0};function Rm(r){return r!=null?r+="":r=""}function _B(r){var t=Rm(r.text),e=r.font,a=La(Da(e),t),n=Iu(e);return kg(r,a,n,null)}function kg(r,t,e,a){var n=new dt(ms(r.x||0,t,r.textAlign),Zi(r.y||0,e,r.textBaseline),t,e),i=a??(QM(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function QM(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Rg="__zr_style_"+Math.round(Math.random()*10),Xi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xi[Rg]=!0;var O1=["z","z2","invisible"],SB=["invisible"],xB=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=It(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(rf[0]=ed(n)*e+r,rf[1]=td(n)*a+t,af[0]=ed(i)*e+r,af[1]=td(i)*a+t,u(s,rf,af),f(l,rf,af),n=n%li,n<0&&(n=n+li),i=i%li,i<0&&(i=i+li),n>i&&!o?i+=li:nn&&(nf[0]=ed(h)*e+r,nf[1]=td(h)*a+t,u(s,nf,s),f(l,nf,l))}var Yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ui=[],fi=[],oa=[],vn=[],sa=[],la=[],rd=Math.min,ad=Math.max,ci=Math.cos,vi=Math.sin,Ba=Math.abs,Eg=Math.PI,bn=Eg*2,nd=typeof Float32Array<"u",Ks=[];function id(r){var t=Math.round(r/Eg*1e8)/1e8;return t%2*Eg}function Kv(r,t){var e=id(r[0]);e<0&&(e+=bn);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=bn?n=e+bn:t&&e-n>=bn?n=e-bn:!t&&e>n?n=e+(bn-id(e-n)):t&&e0&&(this._ux=Ba(a/zc/t)||0,this._uy=Ba(a/zc/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Yt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Ba(t-this._xi),n=Ba(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Yt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Yt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Yt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Ks[0]=n,Ks[1]=i,Kv(Ks,o),n=Ks[0],i=Ks[1];var s=i-n;return this.addData(Yt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=ci(i)*a+t,this._yi=vi(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Yt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Yt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&nd&&(this.data=new Float32Array(e));for(var a=0;a0&&o))for(var s=0;sf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){oa[0]=oa[1]=sa[0]=sa[1]=Number.MAX_VALUE,vn[0]=vn[1]=la[0]=la[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;oa||Ba(_)>n||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Yt.C:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++],x=t[v++],w=t[v++];p=RO(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case Yt.Q:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++];p=OO(i,o,S,b,g,y,10),i=g,o=y;break}case Yt.A:var T=t[v++],C=t[v++],M=t[v++],D=t[v++],I=t[v++],L=t[v++],k=L+I;v+=1,d&&(s=ci(I)*M+T,l=vi(I)*D+C),p=ad(M,D)*rd(bn,Math.abs(L)),i=ci(k)*M+T,o=vi(k)*D+C;break;case Yt.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],P=t[v++];p=R*2+P*2;break}case Yt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=e<1,d,p,g=0,y=0,m,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var x=0;x0&&(t.lineTo(S,b),_=0),w){case Yt.M:s=u=a[x++],l=f=a[x++],t.moveTo(u,f);break;case Yt.L:{c=a[x++],v=a[x++];var C=Ba(c-u),M=Ba(v-f);if(C>n||M>i){if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+c*I,f*(1-I)+v*I);break t}g+=D}t.lineTo(c,v),u=c,f=v,_=0}else{var L=C*C+M*M;L>_&&(S=c,b=v,_=L)}break}case Yt.C:{var k=a[x++],R=a[x++],P=a[x++],O=a[x++],E=a[x++],B=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Hn(u,k,P,E,I,ui),Hn(f,R,O,B,I,fi),t.bezierCurveTo(ui[1],fi[1],ui[2],fi[2],ui[3],fi[3]);break t}g+=D}t.bezierCurveTo(k,R,P,O,E,B),u=E,f=B;break}case Yt.Q:{var k=a[x++],R=a[x++],P=a[x++],O=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;tu(u,k,P,I,ui),tu(f,R,O,I,fi),t.quadraticCurveTo(ui[1],fi[1],ui[2],fi[2]);break t}g+=D}t.quadraticCurveTo(k,R,P,O),u=P,f=O;break}case Yt.A:var V=a[x++],H=a[x++],W=a[x++],X=a[x++],j=a[x++],q=a[x++],it=a[x++],St=!a[x++],at=W>X?W:X,N=Ba(W-X)>.001,F=j+q,Z=!1;if(h){var D=d[y++];g+D>m&&(F=j+q*(m-g)/D,Z=!0),g+=D}if(N&&t.ellipse?t.ellipse(V,H,W,X,it,j,F,St):t.arc(V,H,at,j,F,St),Z)break t;T&&(s=ci(j)*W+V,l=vi(j)*X+H),u=ci(F)*W+V,f=vi(F)*X+H;break;case Yt.R:s=u=a[x],l=f=a[x+1],c=a[x++],v=a[x++];var K=a[x++],mt=a[x++];if(h){var D=d[y++];if(g+D>m){var gt=m-g;t.moveTo(c,v),t.lineTo(c+rd(gt,K),v),gt-=K,gt>0&&t.lineTo(c+K,v+rd(gt,mt)),gt-=mt,gt>0&&t.lineTo(c+ad(K-gt,0),v+mt),gt-=K,gt>0&&t.lineTo(c,v+ad(mt-gt,0));break t}g+=D}t.rect(c,v,K,mt);break;case Yt.Z:if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Yt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Ra=AB;function Tn(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||or+s&&i>e+s||it+c&&f>a+c&&f>i+c&&f>s+c||fr+c&&u>e+c&&u>n+c&&u>o+c||ut+u&&l>a+u&&l>i+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=js);var v=Math.atan2(l,s);return v<0&&(v+=js),v>=a&&v<=n||v+js>=a&&v+js<=n}function Wa(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var hn=Ra.CMD,hi=Math.PI*2,LB=1e-4;function IB(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&PB(),h=De(t,a,i,s,Ir[0]),v>1&&(d=De(t,a,i,s,Ir[1]))),v===2?gt&&s>a&&s>i||s=0&&u<=1){for(var f=0,c=Ee(t,a,i,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Je[0]=-l,Je[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=hi-1e-4){a=0,n=hi;var f=i?1:-1;return o>=Je[0]+r&&o<=Je[1]+r?f:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=hi,n+=hi);for(var v=0,h=0;h<2;h++){var d=Je[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=hi+p),(p>=a&&p<=n||p+hi>=a&&p+hi<=n)&&(p>Math.PI/2&&p1&&(e||(s+=Wa(l,u,f,c,a,n))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case hn.M:f=i[d++],c=i[d++],l=f,u=c;break;case hn.L:if(e){if(Tn(l,u,i[d],i[d+1],t,a,n))return!0}else s+=Wa(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.C:if(e){if(MB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=kB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.Q:if(e){if(tD(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=RB(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case hn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(b)*_+y,h=Math.sin(b)*S+m,g?(f=v,c=h):s+=Wa(l,u,v,h,a,n);var T=(a-y)*S/_+y;if(e){if(DB(y,m,S,b,b+x,w,t,T,n))return!0}else s+=EB(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case hn.R:f=l=i[d++],c=u=i[d++];var C=i[d++],M=i[d++];if(v=f+C,h=c+M,e){if(Tn(f,c,v,c,t,a,n)||Tn(v,c,v,h,t,a,n)||Tn(v,h,f,h,t,a,n)||Tn(f,h,f,c,t,a,n))return!0}else s+=Wa(v,c,v,h,a,n),s+=Wa(f,h,f,c,a,n);break;case hn.Z:if(e){if(Tn(l,u,f,c,t,a,n))return!0}else s+=Wa(l,u,f,c,a,n);l=f,u=c;break}}return!e&&!IB(u,c)&&(s+=Wa(l,u,f,c,a,n)||0),s!==0}function OB(r,t,e){return eD(r,0,!1,t,e)}function NB(r,t,e,a){return eD(r,t,!0,e,a)}var Hc=vt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xi),BB={style:vt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xv.style)},od=ka.concat(["invisible","culling","z","z2","zlevel","parent"]),zB=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Mg:a>.2?vN:Dg}else if(e)return Dg}return Mg},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(Q(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Nc(e,0)0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Qo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),NB(s,l/u,e,a)))return!0}if(this.hasFill())return OB(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:$(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qo)},t.prototype.createStyle=function(e){return Fv(Hc,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=$({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=$({},n.shape),$(u,a.shape)):(u=$({},i?this.shape:n.shape),$(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=$({},this.shape);for(var f={},c=It(u),v=0;vn&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var is=Math.round;function jv(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(is(a*2)===is(n*2)&&(r.x1=r.x2=mr(a,s,!0)),is(i*2)===is(o*2)&&(r.y1=r.y2=mr(i,s,!0))),r}}function nD(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=mr(a,s,!0),r.y=mr(n,s,!0),r.width=Math.max(mr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(mr(n+o,s,!1)-r.y,o===0?0:1)),r}}function mr(r,t,e){if(!t)return r;var a=is(r*2);return(a+is(t))%2===0?a/2:(a+(e?1:-1))/2}var $B=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),UB={},iD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $B},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=nD(UB,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?WB(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Lt);iD.prototype.type="rect";const Mt=iD;var G1={fill:"#000"},F1=2,ua={},YB={style:vt({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},Xv.style)},oD=function(r){z(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=G1,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=0;I=0&&(k=x[L],k.align==="right");)this._placeToken(k,e,T,y,I,"right",_),C-=k.width,I-=k.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)k=x[M],this._placeToken(k,e,T,y,D+k.width/2,"center",_),D+=k.width,M++;y+=T}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+n/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+n-e.height/2);var v=!e.isLineHolder&&sd(u);v&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var h=!!u.backgroundColor,d=e.textPadding;d&&(o=Z1(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(iu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,b=Y1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),x=U1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=F1,S=!0,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Qa,g.opacity=_r(u.opacity,a.opacity,1),W1(g,u),x&&(g.lineWidth=_r(u.lineWidth,a.lineWidth,_),g.lineDash=nt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=x),b&&(g.fill=b),p.setBoundingRect(kg(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,v=l&&!c,h=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(Mt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=nt(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Fe),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=nt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=_r(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return lD(e)&&(a=[e.fontStyle,e.fontWeight,sD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Nr(a)||e.textFont||e.font},t}(Vr),ZB={left:!0,right:1,center:1},XB={top:1,bottom:1,middle:1},H1=["fontStyle","fontWeight","fontSize","fontFamily"];function sD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?dm+"px":r+"px"}function W1(r,t){for(var e=0;e=0,i=!1;if(r instanceof Lt){var o=uD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Po(s)||Po(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=$({},a),u=$({},u),u.fill=s):!Po(u.fill)&&Po(s)?(i=!0,a=$({},a),u=$({},u),u.fill=_g(s)):!Po(u.stroke)&&Po(l)&&(i||(a=$({},a),u=$({},u)),u.stroke=_g(l)),a.style=u}}if(a&&a.z2==null){i||(a=$({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Es)}return a}function ez(r,t,e){if(e&&e.z2==null){e=$({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??KB)}return e}function rz(r,t,e){var a=bt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:QB(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=$({},e),o=$({opacity:a?n:i.opacity*.1},o),e.style=o),e}function ld(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return tz(this,r,t,e);if(r==="blur")return rz(this,r,e);if(r==="select")return ez(this,r,e)}return e}function io(r){r.stateProxy=ld;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=ld),e&&(e.stateProxy=ld)}function J1(r,t){!gD(r,t)&&!r.__highByOuter&&un(r,fD)}function Q1(r,t){!gD(r,t)&&!r.__highByOuter&&un(r,cD)}function rn(r,t){r.__highByOuter|=1<<(t||0),un(r,fD)}function an(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&un(r,cD)}function hD(r){un(r,Bm)}function zm(r){un(r,vD)}function dD(r){un(r,jB)}function pD(r){un(r,JB)}function gD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function yD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Em(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){vD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Bg(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ki(r,t,e){Vi(r,!0),un(r,io),Vg(r,t,e)}function lz(r){Vi(r,!1)}function Jt(r,t,e,a){a?lz(r):Ki(r,t,e)}function Vg(r,t,e){var a=pt(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var eS=["emphasis","blur","select"],uz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function we(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=ud(d),s*=ud(d));var p=(n===i?-1:1)*ud((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(r+e)/2+sf(c)*g-of(c)*y,_=(t+a)/2+of(c)*g+sf(c)*y,S=iS([1,0],[(v-g)/o,(h-y)/s]),b=[(v-g)/o,(h-y)/s],x=[(-1*v-g)/o,(-1*h-y)/s],w=iS(b,x);if(Fg(b,x)<=-1&&(w=Js),Fg(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Js*1e6)/1e6;w=Js*2+T%2*Js}f.addData(u,m,_,o,s,S,w,c,i)}var pz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function yz(r){var t=new Ra;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Ra.CMD,l=r.match(pz);if(!l)return t;for(var u=0;uk*k+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(n/b-1),y1:C*(n/b-1)}}function Tz(r){var t;if(U(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Cz(r,t){var e,a=Dl(t.r,0),n=Dl(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=sS(u-l),d=h>fd&&h%fd;if(d>$r&&(h=d),!(a>$r))r.moveTo(f,c);else if(h>fd-$r)r.moveTo(f+a*Ro(l),c+a*di(l)),r.arc(f,c,a,l,u,!v),n>$r&&(r.moveTo(f+n*Ro(u),c+n*di(u)),r.arc(f,c,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,k=void 0,R=a*Ro(l),P=a*di(l),O=n*Ro(u),E=n*di(u),B=h>$r;if(B){var V=t.cornerRadius;V&&(e=Tz(V),p=e[0],g=e[1],y=e[2],m=e[3]);var H=sS(a-n)/2;if(_=fa(H,y),S=fa(H,m),b=fa(H,p),x=fa(H,g),C=w=Dl(_,S),M=T=Dl(b,x),(w>$r||T>$r)&&(D=a*Ro(u),I=a*di(u),L=n*Ro(l),k=n*di(l),h$r){var N=fa(y,C),F=fa(m,C),Z=lf(L,k,R,P,a,N,v),K=lf(D,I,O,E,a,F,v);r.moveTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),C0&&r.arc(f+Z.cx,c+Z.cy,N,He(Z.y0,Z.x0),He(Z.y1,Z.x1),!v),r.arc(f,c,a,He(Z.cy+Z.y1,Z.cx+Z.x1),He(K.cy+K.y1,K.cx+K.x1),!v),F>0&&r.arc(f+K.cx,c+K.cy,F,He(K.y1,K.x1),He(K.y0,K.x0),!v))}else r.moveTo(f+R,c+P),r.arc(f,c,a,l,u,!v);if(!(n>$r)||!B)r.lineTo(f+O,c+E);else if(M>$r){var N=fa(p,M),F=fa(g,M),Z=lf(O,E,D,I,n,-F,v),K=lf(R,P,L,k,n,-N,v);r.lineTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),M0&&r.arc(f+Z.cx,c+Z.cy,F,He(Z.y0,Z.x0),He(Z.y1,Z.x1),!v),r.arc(f,c,n,He(Z.cy+Z.y1,Z.cx+Z.x1),He(K.cy+K.y1,K.cx+K.x1),v),N>0&&r.arc(f+K.cx,c+K.cy,N,He(K.y1,K.x1),He(K.y0,K.x0),!v))}else r.lineTo(f+O,c+E),r.arc(f,c,n,u,l,v)}r.closePath()}}}var Az=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),AD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Az},t.prototype.buildPath=function(e,a){Cz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Lt);AD.prototype.type="sector";const rr=AD;var Mz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),MD=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Mz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(Lt);MD.prototype.type="ring";const th=MD;function Dz(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,c;if(a){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=r.length;v=2){if(a){var i=Dz(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;sgi[1]){if(i=!1,ke.negativeSize||a)return i;var l=uf(gi[0]-pi[1]),u=uf(pi[0]-gi[1]);cd(l,u)>cf.len()&&(l=u||!ke.bidirectional)&&(ct.scale(ff,s,-u*n),ke.useDir&&ke.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,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 Et(r,t,e,a,n,i){Wm("update",r,t,e,a,n,i)}function jt(r,t,e,a,n,i){Wm("enter",r,t,e,a,n,i)}function hs(r){if(!r.__zr)return!0;for(var t=0;tSa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fS(r){return!r.isGroup}function qz(r){return r.shape!=null}function ku(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){fS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return qz(o)&&(s.shape=st(o.shape)),s}var i=a(r);t.traverse(function(o){if(fS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Et(o,l,e,pt(o).dataIndex)}}})}function FD(r,t){return Y(r,function(e){var a=e[0];a=ue(a,t.x),a=Sr(a,t.x+t.width);var n=e[1];return n=ue(n,t.y),n=Sr(n,t.y+t.height),[a,n]})}function Kz(r,t){var e=ue(r.x,t.x),a=Sr(r.x+r.width,t.x+t.width),n=ue(r.y,t.y),i=Sr(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Ru(r,t,e){var a=$({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),vt(n,e),new Fe(a)):lu(r.replace("path://",""),a,e,"center")}function Ll(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=vd(h,d,f,c)/v;return!(g<0||g>1)}function vd(r,t,e,a){return r*a-e*t}function jz(r){return r<=1e-6&&r>=-1e-6}function oo(r,t,e,a,n){return t==null||(Pt(t)?ee[0]=ee[1]=ee[2]=ee[3]=t:(ee[0]=t[0],ee[1]=t[1],ee[2]=t[2],ee[3]=t[3]),a&&(ee[0]=ue(0,ee[0]),ee[1]=ue(0,ee[1]),ee[2]=ue(0,ee[2]),ee[3]=ue(0,ee[3])),e&&(ee[0]=-ee[0],ee[1]=-ee[1],ee[2]=-ee[2],ee[3]=-ee[3]),cS(r,ee,"x","width",3,1,n&&n[0]||0),cS(r,ee,"y","height",0,2,n&&n[1]||0)),r}var ee=[0,0,0,0];function cS(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=ue(0,Sr(o,l)),r[a]=0?-t[n]:t[i]>=0?l+t[i]:Sa(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function fn(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=Q(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(It(l),function(f){et(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=pt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:vt({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Wg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Qn(r,t){if(r)if(U(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function nh(r,t,e){$D(r,t,e,-1/0)}function $D(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l=0&&s.push(l)}),s}}function ti(r,t){return wt(wt({},r,!0),t,!0)}const fV={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:". "}}}},cV={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 Xc="ZH",Zm="EN",ds=Zm,mc={},Xm={},KD=Nt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ds).toUpperCase();return r.indexOf(Xc)>-1?Xc:ds}():ds;function jD(r,t){r=r.toUpperCase(),Xm[r]=new Ot(t),mc[r]=t}function vV(r){if(Q(r)){var t=mc[r.toUpperCase()]||{};return r===Xc||r===Zm?st(t):wt(st(t),st(mc[ds]),!1)}else return wt(st(r),st(mc[ds]),!1)}function Ug(r){return Xm[r]}function hV(){return Xm[ds]}jD(Zm,fV);jD(Xc,cV);var Yg=null;function dV(r){Yg||(Yg=r)}function pe(){return Yg}var qm=1e3,Km=qm*60,$l=Km*60,Or=$l*24,gS=Or*365,pV={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},_c={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},gV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",hf="{yyyy}-{MM}-{dd}",yS={year:"{yyyy}",month:"{yyyy}-{MM}",day:hf,hour:hf+" "+_c.hour,minute:hf+" "+_c.minute,second:hf+" "+_c.second,millisecond:gV},hr=["year","month","day","hour","minute","second","millisecond"],yV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function mV(r){return!Q(r)&&!ot(r)?_V(r):r}function _V(r){r=r||{};var t={},e=!0;return A(hr,function(a){e&&(e=r[a]==null)}),A(hr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=hr[s],u=ht(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):Q(u)?(o=u,f=[o]):(o==null?o=_c[a]:pV[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function dn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ul(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 SV(r){return r===Ul(r)}function xV(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oh(r,t,e,a){var n=ho(r),i=n[JD(e)](),o=n[jm(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Jm(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Qm(e)](),c=(f-1)%12+1,v=n[t0(e)](),h=n[e0(e)](),d=n[r0(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof Ot?a:Ug(a||KD)||hV(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,dn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,dn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,dn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,dn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,dn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,dn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,dn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,dn(d,3)).replace(/{S}/g,d+"")}function bV(r,t,e,a,n){var i=null;if(Q(e))i=e;else if(ot(e)){var o={time:r.time,level:r.time.level},s=pe();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=ss(r.value,n);i=e[f][f][0]}}return oh(new Date(r.value),i,n,a)}function ss(r,t){var e=ho(r),a=e[jm(t)]()+1,n=e[Jm(t)](),i=e[Qm(t)](),o=e[t0(t)](),s=e[e0(t)](),l=e[r0(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&i===0,h=v&&n===1,d=h&&a===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Zg(r,t,e){switch(t){case"year":r[QD(e)](0);case"month":r[tL(e)](1);case"day":r[eL(e)](0);case"hour":r[rL(e)](0);case"minute":r[aL(e)](0);case"second":r[nL(e)](0)}return r}function JD(r){return r?"getUTCFullYear":"getFullYear"}function jm(r){return r?"getUTCMonth":"getMonth"}function Jm(r){return r?"getUTCDate":"getDate"}function Qm(r){return r?"getUTCHours":"getHours"}function t0(r){return r?"getUTCMinutes":"getMinutes"}function e0(r){return r?"getUTCSeconds":"getSeconds"}function r0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function wV(r){return r?"setUTCFullYear":"setFullYear"}function QD(r){return r?"setUTCMonth":"setMonth"}function tL(r){return r?"setUTCDate":"setDate"}function eL(r){return r?"setUTCHours":"setHours"}function rL(r){return r?"setUTCMinutes":"setMinutes"}function aL(r){return r?"setUTCSeconds":"setSeconds"}function nL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function iL(r){if(!zM(r))return Q(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function oL(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Eu=Gv;function Xg(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Nr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ho(r):r;if(isNaN(+l)){if(s)return"-"}else return oh(l,a,e)}if(t==="ordinal")return ng(r)?n(r):Pt(r)&&i(r)?r+"":"-";var u=en(r);return i(u)?iL(u):ng(r)?n(r):typeof r=="boolean"?r+"":"-"}var mS=["a","b","c","d","e","f","g"],pd=function(r,t){return"{"+r+(t??"")+"}"};function sL(r,t,e){U(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function lo(r,t){return t=t||"transparent",Q(r)?r:ht(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function qc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sc={},gd={},AV=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Sc),this._normalMasterList=a(gd);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){A(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Sc[t]=e;return}gd[t]=e},r.get=function(t){return gd[t]||Sc[t]},r}();function MV(r){return!!Sc[r]}var qg={coord:1,coord2:2};function DV(r){lL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var lL=rt();function LV(r){var t=r.getShallow("coord",!0),e=qg.coord;if(t==null){var a=lL.get(r.type);a&&a.getCoord2&&(e=qg.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var ma={none:0,dataCoordSys:1,boxCoordSys:2};function uL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=ma.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=ma.dataCoordSys,i||(n=ma.none)):a==="box"&&(n=ma.boxCoordSys,!i&&!MV(e)&&(n=ma.none))}return{coordSysType:e,kind:n}}function Ou(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=uL(t),o=i.kind,s=i.coordSysType;if(n&&o!==ma.dataCoordSys&&(o=ma.dataCoordSys,s=e),o===ma.none||s!==e)return!1;var l=a(e,t);return l?(o===ma.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var fL=function(r,t){var e=t.getReferringComponents(r,ae).models[0];return e&&e.coordinateSystem};const Nu=AV;var xc=A,cL=["left","right","top","bottom","width","height"],Gi=[["width","left","right"],["height","top","bottom"]];function a0(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Ji=a0;xt(a0,"vertical");xt(a0,"horizontal");function vL(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function IV(r,t){var e=Ce(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Il.point)i=e.refPoint,n=Qt(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=Qt(a,e.refContainer),i=e.boxCoordFrom===qg.coord2?e.refPoint:[J(s[0],n.width)+n.x,J(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function hL(r,t){var e=IV(r,t),a=e.viewRect,n=e.center,i=r.get("radius");U(i)||(i=[0,i]);var o=J(a.width,t.getWidth()),s=J(a.height,t.getHeight()),l=Math.min(o,s),u=J(i[0],l/2),f=J(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function Qt(r,t,e){e=Eu(e||0);var a=t.width,n=t.height,i=J(r.left,a),o=J(r.top,n),s=J(r.right,a),l=J(r.bottom,n),u=J(r.width,a),f=J(r.height,n),c=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new dt((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function dL(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n=p)return c;for(var g=0;g=0;l--)s=wt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Rs(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return vL(this,!1)},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}(Ot);qM(Vs,Ot);Yv(Vs);lV(Vs);uV(Vs,RV);function RV(r){var t=[];return A(Vs.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ba(e).main}),r!=="dataset"&&bt(t,"dataset")<=0&&t.unshift("dataset"),t}const kt=Vs;var Fi={color:{},darkColor:{},size:{}},oe=Fi.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};$(oe,{primary:oe.neutral80,secondary:oe.neutral70,tertiary:oe.neutral60,quaternary:oe.neutral50,disabled:oe.neutral20,border:oe.neutral30,borderTint:oe.neutral20,borderShade:oe.neutral40,background:oe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:oe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:oe.neutral70,axisLineTint:oe.neutral40,axisTick:oe.neutral70,axisTickMinor:oe.neutral60,axisLabel:oe.neutral70,axisSplitLine:oe.neutral15,axisMinorSplitLine:oe.neutral05});for(var yi in oe)if(oe.hasOwnProperty(yi)){var _S=oe[yi];yi==="theme"?Fi.darkColor.theme=oe.theme.slice():yi==="highlight"?Fi.darkColor.highlight="rgba(255,231,130,0.4)":yi.indexOf("accent")===0?Fi.darkColor[yi]=Bn(_S,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Fi.darkColor[yi]=Bn(_S,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Fi.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const G=Fi;var gL="";typeof navigator<"u"&&(gL=navigator.platform||"");var Eo="rgba(0, 0, 0, 0.2)",yL=G.color.theme[0],EV=Bn(yL,null,null,.9);const OV={darkMode:"auto",colorBy:"series",color:G.color.theme,gradientColor:[EV,yL],aria:{decal:{decals:[{color:Eo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Eo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Eo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Eo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Eo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Eo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gL.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 mL=rt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),xr="original",Ne="arrayRows",br="objectRows",aa="keyedColumns",Vn="typedArray",_L="unknown",jr="column",mo="row",Be={Must:1,Might:2,Not:3},SL=Dt();function NV(r){SL(r).datasetMap=rt()}function xL(r,t,e){var a={},n=i0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=SL(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),A(r,function(p,g){var y=ht(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(a[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(a[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(a[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;mt)return r[a];return r[e-1]}function TL(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:FV(a,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function HV(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var df,Qs,xS,bS="\0_ec_inner",WV=1,CL=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Ot(i),this._locale=new Ot(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=CS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,CS(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?xS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=rt(),u=a&&a.replaceMergeMainTypeMap;NV(this),A(e,function(c,v){c!=null&&(kt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?st(c):wt(n[v],c,!0))}),u&&u.each(function(c,v){kt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),kt.topologicalTravel(s,kt.getAllClassMainTypes(),f,this);function f(c){var v=VV(this,c,Ut(e[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=$M(h,v,d);UN(p,c,kt),n[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;A(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=kt.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=$({componentIndex:b},S.keyInfo);x=new C(w,this,this,M),$(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[c]=g,i.set(c,y),o.set(c,m),c==="series"&&df(this)}this._seriesIndices||df(this)},t.prototype.getOption=function(){var e=st(this.option);return A(e,function(a,n){if(kt.hasClass(n)){for(var i=Ut(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!nu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[bS],e},t.prototype.setTheme=function(e){this._theme=new Ot(e),this._resetOption("recreate",null)},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,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function QV(r,t){return r.join(",")===t.join(",")}const t5=qV;var Wr=A,cu=ht,AS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yd(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=AS.length;e0?e[o-1].seriesModel:null)}),u5(e)}})}function u5(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=PN(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var lh=function(){function r(t){this.data=t.data||(t.sourceFormat===aa?{}:[]),this.sourceFormat=t.sourceFormat||_L,this.seriesLayoutBy=t.seriesLayoutBy||jr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};RS=(t={},t[Ne+"_"+jr]={pure:!0,appendData:i},t[Ne+"_"+mo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[br]={pure:!0,appendData:i},t[aa]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[xr]={appendData:i},t[Vn]={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 Ss(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function BS(r){var t,e;return ht(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Yl(r){return new y5(r)}var y5=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,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(c||h1&&a>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},_5=function(){function r(t,e){if(!Pt(e)){var a="";Vt(a)}this._opFn=BL[t],this._rvalFloat=en(e)}return r.prototype.evaluate=function(t){return Pt(t)?this._opFn(t,this._rvalFloat):this._opFn(en(t),this._rvalFloat)},r}(),zL=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=Pt(t)?t:en(t),n=Pt(e)?e:en(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Q(t),l=Q(e);s&&(a=l?t:0),l&&(n=s?e:0)}return an?-this._resultLT:0},r}(),S5=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=en(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=en(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function x5(r,t){return r==="eq"||r==="ne"?new S5(r==="eq",t):et(BL,r)?new _5(r,t):null}var b5=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 Gn(t,e)},r}();function w5(r,t){var e=new b5,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==jr&&Vt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";et(l,y)&&Vt(_),l[y]=m}});else for(var f=0;f65535?P5:k5}function No(){return[1/0,-1/0]}function R5(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function GS(r,t,e,a,n){var i=FL[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.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,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],S=t[n[1]][0],b=t[n[1]][1],y=0;y=c&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=c&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;yt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,v,h=new(Oo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;df&&(f=c,v=S)}D>0&&Ds&&(p=s-f);for(var g=0;gd&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=c)}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 a=[],n=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,a,n,i){return Gn(e[i],this._dimensions[i])}Sd={arrayRows:t,objectRows:function(e,a,n,i){return Gn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Gn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),HL=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(),a=!!e.length,n,i;if(gf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=ur(s)?Vn:xr,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=nt(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=nt(c.sourceHeader,v.sourceHeader),p=nt(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[Jg(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Jg(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&HS(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&HS(c),s.push(f),l.push(u._getVersionSign())}),a?o=L5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[f5(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 A(r.blocks,function(n){var i=YL(n);i>=t&&(t=i+ +(a&&(!i||ty(n)&&!n.noHeader)))}),t}return 0}function B5(r,t,e,a){var n=t.noHeader,i=V5(YL(t)),o=[],s=t.blocks||[];Ze(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(et(u,l)){var f=new zL(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=UL(p)(y?$($({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):ey(a,o.join(""),n?e:i.html);if(n)return c;var v=Xg(t.header,"ordinal",r.useUTC),h=$L(a,r.renderMode).nameStyle,d=WL(a);return r.renderMode==="richText"?ZL(r,v,h)+i.richText+c:ey(a,'
'+$e(v)+"
"+c,e)}function z5(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],Y(S,function(b,x){return Xg(b,U(h)?h[x]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||G.color.secondary,n),v=i?"":Xg(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=$L(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":c)+(i?"":ZL(r,v,m))+(o?"":H5(r,d,p,g,_)):ey(a,(s?"":c)+(i?"":G5(v,!s,m))+(o?"":F5(d,p,g,_)),e)}}function WS(r,t,e,a,n,i){if(r){var o=UL(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function V5(r){return{html:O5[r],richText:N5[r]}}function ey(r,t,e){var a='
',n="margin: "+e+"px 0 0",i=WL(r);return'
'+t+a+"
"}function G5(r,t,e){var a=t?"margin-left:2px":"";return''+$e(r)+""}function F5(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+Y(r,function(o){return $e(o)}).join("  ")+""}function ZL(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function H5(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,i)}function XL(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return lo(a)}function qL(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var xd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=VM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=CV({color:e,type:t,renderMode:a,markerId:n});return Q(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};U(e)?A(e,function(i){return $(a,i)}):$(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function KL(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=U(s),u=XL(t,e),f,c,v,h;if(o>1||l&&!o){var d=W5(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=f=Ss(n,e,i[0]),c=p.type}else h=f=l?s[0]:s;var g=Lm(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return ye("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[ye("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Nr(_),value:f,valueType:c,dataIndex:e})].concat(v||[])})}function W5(r,t,e,a,n){var i=t.getData(),o=Ia(r,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(c){f(Ss(i,e,c),c)}):A(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ye("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var pn=Dt();function yf(r,t){return r.getName(t)||r.getId(t)}var bc="__universalTransitionEnabled",ch=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Yl({count:U5,reset:Y5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=pn(this).sourceManager=new HL(this);i.prepareSource();var o=this.getInitialData(e,n);US(o,this),this.dataTask.context.data=o,pn(this).dataBeforeProcessed=o,$S(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=fu(this),i=n?yo(e):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),wt(e,a.getTheme().get(this.subType)),wt(e,this.getDefaultOption()),ro(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Ea(e,i,n)},t.prototype.mergeOption=function(e,a){e=wt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=fu(this);n&&Ea(this.option,e,n);var i=pn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);US(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,pn(this).dataBeforeProcessed=o,$S(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ur(e))for(var a=["show"],n=0;n=0&&v<0)&&(c=m,v=y,h=0),y===v&&(f[h++]=p))}),f.length=h,f},t.prototype.formatTooltip=function(e,a,n){return KL({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Nt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=o0.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),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,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[yf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[bc])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ht(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,a)}},t.registerClass=function(e){return kt.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}(kt);_e(ch,uh);_e(ch,o0);qM(ch,kt);function $S(r){var t=r.name;Lm(r)||(r.name=$5(r)||t)}function $5(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function U5(r){return r.model.getRawData().count()}function Y5(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Z5}function Z5(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function US(r,t){A(Ql(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,xt(X5,t))})}function X5(r,t){var e=ry(r);return e&&e.setOutputEnd((t||this).count()),t}function ry(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const te=ch;var c0=function(){function r(){this.group=new lt,this.uid=zs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Pm(c0);Yv(c0);const re=c0;function Gs(){var r=Dt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var jL=Dt(),q5=Gs(),v0=function(){function r(){this.group=new lt,this.uid=zs("viewChart"),this.renderTask=Yl({plan:K5,reset:j5}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZS(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&ZS(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Qn(this.group,t)},r.markUpdateMethod=function(t,e){jL(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function YS(r,t,e){r&&su(r)&&(t==="emphasis"?rn:an)(r,e)}function ZS(r,t,e){var a=ao(r,t),n=t&&t.highlightKey!=null?cz(t.highlightKey):null;a!=null?A(Ut(a),function(i){YS(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){YS(i,e,n)})}Pm(v0);Yv(v0);function K5(r){return q5(r.model)}function j5(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&jL(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),J5[l]}var J5={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 Xt=v0;var Kc="\0__throttleOriginMethod",XS="\0__throttleRate",qS="\0__throttleType";function h0(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d=0?c():o=setTimeout(c,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Fs(r,t,e,a){var n=r[t];if(n){var i=n[Kc]||n,o=n[qS],s=n[XS];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=h0(i,e,a==="debounce"),n[Kc]=i,n[qS]=a,n[XS]=e}return n}}function vu(r,t){var e=r[t];e&&e[Kc]&&(e.clear&&e.clear(),r[t]=e[Kc])}var KS=Dt(),jS={itemStyle:no(qD,!0),lineStyle:no(XD,!0)},Q5={lineStyle:"stroke",itemStyle:"fill"};function JL(r,t){var e=r.visualStyleMapper||jS[t];return e||(console.warn("Unknown style type '"+t+"'."),jS.itemStyle)}function QL(r,t){var e=r.visualDrawType||Q5[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var tG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=JL(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=QL(r,a),u=o[l],f=ot(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ot(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ot(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=$({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},el=new Ot,eG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=JL(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){el.option=l[a];var u=n(el),f=o.ensureUniqueItemVisual(s,"style");$(f,u),el.option.decal&&(o.setItemVisual(s,"decal",el.option.decal),el.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},rG={performRawSeries:!0,overallReset:function(r){var t=rt();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),KS(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=KS(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=QL(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var v=i.ensureUniqueItemVisual(f,"style"),h=a.getName(u)||u+"",d=a.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},mf=Math.PI;function aG(r,t){t=t||{},vt(t,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new lt,a=new Mt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Rt({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 Mt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Hm({shape:{startAngle:-mf/2,endAngle:-mf/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:mf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:mf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.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),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var nG=function(){function r(t,e,a,n){this._stageTaskMap=rt(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=rt();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";Ze(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,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,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.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,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Yl({plan:uG,reset:fG,count:vG}));h.context={model:c,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Yl({reset:iG});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=rt(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";Ze(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Yl({reset:oG,onDirty:lG})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return ot(t)&&(t={overallReset:t,seriesType:hG(t)}),t.uid=zs("stageHandler"),e&&(t.visualType=e),t},r}();function iG(r){r.overallReset(r.ecModel,r.api,r.payload)}function oG(r){return r.overallProgress&&sG}function sG(){this.agent.dirty(),this.getDownstream().dirty()}function lG(){this.agent&&this.agent.dirty()}function uG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function fG(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ut(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,a){return t2(a)}):cG}var cG=t2(0);function t2(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ay=["symbol","symbolSize","symbolRotate","symbolOffset"],QS=ay.concat(["symbolKeepAspect"]),yG={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 a={},n={},i=!1,o=0;o=0&&Wi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function ny(r,t,e){for(var a=t.type==="radial"?RG(r,t,e):kG(r,t,e),n=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Pt(r)?[r]:U(r)?r:null}function p0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&OG(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Y(e,function(i){return i/n}),a/=n)}return[e,a]}var NG=new Ra(!0);function Qc(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function tx(r){return typeof r=="string"&&r!=="none"}function tv(r){var t=r.fill;return t!=null&&t!=="none"}function ex(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function rx(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function iy(r,t,e){var a=km(t.image,t.__image,e);if(Zv(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*sc),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function BG(r,t,e,a){var n,i=Qc(e),o=tv(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||NG,c=t.__dirty;if(!a){var v=e.fill,h=e.stroke,d=o&&!!v.colorStops,p=i&&!!h.colorStops,g=o&&!!v.image,y=i&&!!h.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=c?ny(r,v,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?ny(r,h,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?iy(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?iy(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(n=p0(t),T=n[0],C=n[1]);var M=!0;(u||c&Qo)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,a),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(e.strokeFirst?(i&&rx(r,e),o&&ex(r,e)):(o&&ex(r,e),i&&rx(r,e))),T&&r.setLineDash([])}function zG(r,t,e){var a=t.__image=km(e.image,t.__image,t,t.onload);if(!(!a||!Zv(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,v=s-f;r.drawImage(a,u,f,c,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function VG(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Qa,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=p0(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Qc(e)&&r.strokeText(n,e.x,e.y),tv(e)&&r.fillText(n,e.x,e.y)):(tv(e)&&r.fillText(n,e.x,e.y),Qc(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var ax=["shadowBlur","shadowOffsetX","shadowOffsetY"],nx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function s2(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){sr(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Xi.opacity:o}(a||t.blend!==e.blend)&&(i||(sr(r,n),i=!0),r.globalCompositeOperation=t.blend||Xi.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[Se]){if(this._disposed){this.id;return}var i,o,s;if(ht(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Se]=!0,Go(this),!this._model||a){var l=new t5(this._api),u=this._theme,f=this._model=new AL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},uy);var c={seriesTransition:s,optionChanged:!0};if(n)this[Pe]={silent:i,updateParams:c},this[Se]=!1,this.getZr().wakeUp();else{try{bi(this),Va.update.call(this,null,c)}catch(v){throw this[Pe]=null,this[Se]=!1,v}this._ssr||this._zr.flush(),this[Pe]=null,this[Se]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Se]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Pe]&&(i==null&&(i=this[Pe].silent),o=this[Pe].updateParams,this[Pe]=null),this[Se]=!0,Go(this);try{this._updateTheme(e),n.setTheme(this._theme),bi(this),Va.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Se]=!1,s}this[Se]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype._updateTheme=function(e){Q(e)&&(e=C2[e]),e&&(e=st(e),e&&LL(e,!0),this._theme=e)},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||Nt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(_x[n]){var l=s,u=s,f=-s,c=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();A(Zl,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(st(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),v.push({dom:b,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=Jr.createCanvas(),y=b1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(v,function(_){var S=_.left-l,b=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Mt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new Fe({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return bf(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return bf(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return bf(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=vs(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=vs(n,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?d0(s,l,a):Bu(s,a)},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;A(hF,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Hi(l,function(p){var g=pt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=$({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;A(sy,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),_G(a,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&&YM(this.getDom(),m0,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Zl[a.id]},t.prototype.resize=function(e){if(!this[Se]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Pe]&&(i==null&&(i=this[Pe].silent),n=!0,this[Pe]=null),this[Se]=!0,Go(this);try{n&&bi(this),Va.update.call(this,{type:"resize",animation:$({duration:0},e&&e.animation)})}catch(o){throw this[Se]=!1,o}this[Se]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(ht(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!fy[e]){var n=fy[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},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 a=$({},e);return a.type=oy[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(ht(a)||(a={silent:!!a}),!!ev[e.type]&&this._model){if(this[Se]){this._pendingActions.push(e);return}var n=a.silent;Md.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Nt.browser.weChat&&this._throttledZrFlush(),zo.call(this,n),Vo.call(this,n)}},t.prototype.updateLabelLayout=function(){Yr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){bi=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),Cd(c,!0),Cd(c,!1),v.plan()},Cd=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_v.get("hoverLayerThreshold")&&!Nt.node&&!Nt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=so(c);v.eachRendered(function(d){return nh(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!hs(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(hs(y))return;if(y instanceof Lt&&vz(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}yx=function(c){return new(function(v){z(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){rn(d,p),Tr(c)},h.prototype.leaveEmphasis=function(d,p){an(d,p),Tr(c)},h.prototype.enterBlur=function(d){hD(d),Tr(c)},h.prototype.leaveBlur=function(d){zm(d),Tr(c)},h.prototype.enterSelect=function(d){dD(d),Tr(c)},h.prototype.leaveSelect=function(d){pD(d),Tr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return c[Sf]},h}(ML))(c)},w2=function(c){function v(h,d){for(var p=0;p=0)){Sx.push(e);var i=a2.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function L2(r,t){fy[r]=t}function xF(r,t,e){var a=KG("registerMap");a&&a(r,t,e)}var bF=D5;So(g0,tG);So(vh,eG);So(vh,rG);So(g0,yG);So(vh,mG);So(y2,ZG);M2(LL);D2(eF,l5);L2("default",aG);Na({type:qi,event:qi,update:qi},fe);Na({type:gc,event:gc,update:gc},fe);Na({type:Wc,event:Nm,update:Wc,action:fe,refineEvent:x0,publishNonRefinedEvent:!0});Na({type:Ng,event:Nm,update:Ng,action:fe,refineEvent:x0,publishNonRefinedEvent:!0});Na({type:$c,event:Nm,update:$c,action:fe,refineEvent:x0,publishNonRefinedEvent:!0});function x0(r,t,e,a){return{eventContent:{selected:sz(e),isFromClick:t.isFromClick||!1}}}A2("default",{});A2("dark",pG);var xx=[],wF={registerPreprocessor:M2,registerProcessor:D2,registerPostInit:yF,registerPostUpdate:mF,registerUpdateLifecycle:_0,registerAction:Na,registerCoordinateSystem:_F,registerLayout:SF,registerVisual:So,registerTransform:bF,registerLoading:L2,registerMap:xF,registerImpl:qG,PRIORITY:fF,ComponentModel:kt,ComponentView:re,SeriesModel:te,ChartView:Xt,registerComponentModel:function(r){kt.registerClass(r)},registerComponentView:function(r){re.registerClass(r)},registerSeriesModel:function(r){te.registerClass(r)},registerChartView:function(r){Xt.registerClass(r)},registerCustomSeries:function(r,t){jG(r,t)},registerSubTypeDefaulter:function(r,t){kt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){TN(r,t)}};function Tt(r){if(U(r)){A(r,function(t){Tt(t)});return}bt(xx,r)>=0||(xx.push(r),ot(r)&&(r={install:r}),r.install(wF))}function al(r){return r==null?0:r.length||1}function bx(r){return r}var TF=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||bx,this._newKeyGetter=n||bx,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,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h1)for(var s=0;s30}var nl=ht,gn=Y,PF=typeof Int32Array>"u"?Array:Int32Array,kF="e\0\0",Tx=-1,RF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],EF=["_approximateExtent"],Cx,Tf,il,ol,Id,sl,Pd,OF=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;P2(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===xr;if(l&&!n.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),U(i)?i=i.slice():nl(i)&&(i=$({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,nl(e)?$(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){nl(t)?$(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,a){this._itemLayouts[t]=a?$(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Og(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:gn(this.dimensions,this._getDimInfo,this),this.hostModel)),Id(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];ot(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(_m(arguments)))})},r.internalField=function(){Cx=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new PF(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();const tr=OF;function zu(r,t){s0(r)||(r=l0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=rt(),i=[],o=BF(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&E2(o),l=a===r.dimensionsDefine,u=l?R2(r):k2(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=rt(f),v=new GL(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function BF(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;ht(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function zF(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var VF=function(){function r(t){this.coordSysDims=[],this.axisMap=rt(),this.categoryAxisMap=rt(),this.coordSysName=t}return r}();function GF(r){var t=r.get("coordinateSystem"),e=new VF(t),a=FF[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var FF={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",ae).models[0],i=r.getReferringComponents("yAxis",ae).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Fo(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Fo(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",ae).models[0];t.coordSysDims=["single"],e.set("single",n),Fo(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",ae).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Fo(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Fo(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Fo(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",ae).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function Fo(r){return r.get("type")==="category"}function HF(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;WF(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,v;if(A(i,function(m,_){Q(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:c}}function WF(r){return!P2(r.schema)}function $n(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function O2(r,t){return $n(r,t)?r.getCalculationInfo("stackResultDimension"):t}function $F(r,t){var e=r.get("coordinateSystem"),a=Nu.get(e),n;return t&&t.coordSysDims&&(n=Y(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=av(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function UF(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function cn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=l0(r)):(n=a.getSource(),i=n.sourceFormat===xr);var o=GF(t),s=$F(t,o),l=e.useEncodeDefaulter,u=ot(l)?l:l?xt(xL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=zu(n,f),v=UF(c.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(c),d=HF(t,{schema:c,store:h}),p=new tr(c,t);p.setCalculationInfo(d);var g=v!=null&&YF(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function YF(r){if(r.sourceFormat===xr){var t=ZF(r.data||[]);return!U(ks(t))}}function ZF(r){for(var t=0;tn&&(o=i.interval=n);var s=i.intervalPrecision=pu(o),l=i.niceTickExtent=[de(Math.ceil(r[0]/o)*o,s),de(Math.floor(r[1]/o)*o,s)];return qF(l,r),i}function kd(r){var t=Math.pow(10,Dm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,de(e*t)}function pu(r){return xa(r)+2}function Ax(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function qF(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Ax(r,0,t),Ax(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function b0(r,t){return r>=t[0]&&r<=t[1]}var KF=function(){function r(){this.normalize=Mx,this.scale=Dx}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=tt(t.normalize,t),this.scale=tt(t.scale,t)):(this.normalize=Mx,this.scale=Dx)},r}();function Mx(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Dx(r,t){return r*(t[1]-t[0])+t[0]}function vy(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var N2=function(){function r(t){this._calculator=new KF,this._setting=t||{},this._extent=[1/0,-1/0];var e=pe();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){var e=pe();e&&this._innerSetBreak(e.parseAxisBreakOption(t,tt(this.parse,this)))},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},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}();Yv(N2);const xo=N2;var jF=0,JF=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jF,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Y(a,QF);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!Q(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=rt(this.categories))},r}();function QF(r){return ht(r)&&r.value!=null?r.value:r+""}const gu=JF;var B2=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new gu({})),U(n)&&(n=new gu({categories:Y(n,function(i){return ht(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:Q(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return b0(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(xo);xo.registerClass(B2);const yu=B2;var yn=de,z2=function(r){z(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==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return b0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=pu(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=pe(),l=[];if(!a)return l;if(e.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;n[0]=0&&(c=yn(c+v*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:i[1];return n[1]>h&&(e.expandToNicedExtent?l.push({value:yn(h+a,o)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(e.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),e.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;oi[0]&&d0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function F2(r){var t=r3(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=J(a.get("barWidth"),s),p=J(a.get("barMaxWidth"),s),g=J(a.get("barMinWidth")||(Y2(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:T0(i),stackId:w0(a)})}),H2(e)}function H2(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);var v=a.barMinWidth;v&&(l[u].minWidth=v);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=It(i).length;s=Math.max(35-l*4,15)+"%"}var u=J(s,o),f=J(a.gap,1),c=a.remainedWidth,v=a.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,v--}else{var S=h;m&&mS&&(S=_),S!==h&&(y.width=S,c-=S+f*S,v--)}}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var d=0,p;A(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function a3(r,t,e){if(r&&t){var a=r[T0(t)];return a!=null&&e!=null?a[w0(e)]:a}}function W2(r,t){var e=G2(r,t),a=F2(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=w0(n),u=a[T0(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function $2(r){return{seriesType:r,plan:Gs(),reset:function(t){if(U2(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=$n(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=n3(n,i),d=Y2(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&wa(b*3),w=d&&l&&wa(b*3),T=d&&wa(b),C=a.master.getRect(),M=v?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var k=I.get(c?g:o,D),R=I.get(s,D),P=h,O=void 0;c&&(O=+k-I.get(o,D));var E=void 0,B=void 0,V=void 0,H=void 0;if(v){var W=a.dataToPoint([k,R]);if(c){var X=a.dataToPoint([O,R]);P=X[0]}E=P,B=W[1]+m,V=W[0]-P,H=y,Math.abs(V)0?e:1:e))}var i3=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var o=Cf.length,s=Math.min(i3(Cf,this._approxInterval,0,o),o-1);this._interval=Cf[s][1],this._intervalPrecision=pu(this._interval),this._minLevelUnit=Cf[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Pt(e)?e:+ho(e)},t.prototype.contain=function(e){return b0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(Un),Cf=[["second",qm],["minute",Km],["hour",$l],["quarter-day",$l*6],["half-day",$l*12],["day",Or*1.2],["half-week",Or*3.5],["week",Or*7],["month",Or*31],["quarter",Or*95],["half-year",gS/2],["year",gS]];function X2(r,t,e,a){return Zg(new Date(t),r,a).getTime()===Zg(new Date(e),r,a).getTime()}function o3(r,t){return r/=Or,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function s3(r){var t=30*Or;return r/=t,r>6?6:r>3?3:r>2?2:1}function l3(r){return r/=$l,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Lx(r,t){return r/=t?Km:qm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function u3(r){return BM(r,!0)}function f3(r,t,e){var a=Math.max(0,bt(hr,t)-1);return Zg(new Date(r),hr[a],e).getTime()}function c3(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function v3(r,t,e,a,n,i){var o=1e4,s=yV,l=0;function u(L,k,R,P,O,E,B){for(var V=c3(O,L),H=k,W=new Date(H);Ho));)if(W[O](W[P]()+L),H=W.getTime(),i){var X=i.calcNiceTickMultiple(H,V);X>0&&(W[O](W[P]()+X*L),H=W.getTime())}B.push({value:H,notAdd:!0})}function f(L,k,R){var P=[],O=!k.length;if(!X2(Ul(L),a[0],a[1],e)){O&&(k=[{value:f3(a[0],L,e)},{value:a[1]}]);for(var E=0;E=a[0]&&B<=a[1]&&u(H,B,V,W,X,j,P),L==="year"&&R.length>1&&E===0&&R.unshift({value:R[0].value-H})}}for(var E=0;E=a[0]&&S<=a[1]&&h++)}var b=n/t;if(h>b*1.5&&d>b/1.5||(c.push(m),h>b||r===s[p]))break}v=[]}}}for(var x=Ft(Y(c,function(L){return Ft(L,function(k){return k.value>=a[0]&&k.value<=a[1]&&!k.notAdd})}),function(L){return L.length>0}),w=[],T=x.length-1,p=0;p0;)i*=10;var s=[dy(d3(a[0]/i)*i),dy(h3(a[1]/i)*i)];this._interval=i,this._intervalPrecision=pu(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Mf(e)/Mf(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Mf(e)/Mf(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Af(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=pe();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,tt(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(Un);function Df(r,t){return dy(r,xa(t))}xo.registerClass(K2);const p3=K2;var g3=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[m3[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=y3[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),y3={min:"_determinedMin",max:"_determinedMax"},m3={min:"_dataMin",max:"_dataMax"};function j2(r,t,e){var a=r.rawExtentInfo;return a||(a=new g3(r,t,e),r.rawExtentInfo=a,a)}function Lf(r,t){return t==null?null:Ue(t)?NaN:r.parse(t)}function J2(r,t){var e=r.type,a=j2(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=G2("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=F2(s),f=_3(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function _3(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=a3(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,v=f/c-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function bs(r,t){var e=t,a=J2(r,e),n=a.extent,i=e.get("splitNumber");r instanceof p3&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(tI(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function hh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new yu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new q2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(xo.getClass(t)||Un)}}function S3(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Ws(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=mV(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(Q(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(ot(t)){if(r.type==="category")return function(n,i){return t(nv(r,n),n.value-r.scale.getExtent()[0],null)};var a=pe();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(nv(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function nv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function C0(r){var t=r.get("interval");return t??"auto"}function Q2(r){return r.type==="category"&&C0(r.getLabelModel())===0}function iv(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[O2(r,a)]=!0}),It(e)}function x3(r,t,e){t&&A(iv(t,e),function(a){var n=t.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}function ws(r){return r==="middle"||r==="center"}function mu(r){return r.getShallow("show")}function tI(r){var t=r.get("breaks",!0);if(t!=null)return!pe()||!b3(r.axis)?void 0:t}function b3(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Vu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),w3=1e-8;function Ix(r,t){return Math.abs(r-t)n&&(a=o,n=l)}if(a)return C3(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Px(s.exterior,n,i,e):A(s.points,function(l){Px(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new dt(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function D3(r,t){return r=M3(r),Y(Ft(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new kx(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new kx(l[0],l.slice(1)))});break;case"LineString":i.push(new Rx([n.coordinates]));break;case"MultiLineString":i.push(new Rx(n.coordinates))}var s=new rI(a[t||"name"],i,a.cp);return s.properties=a,s})}var L3=Dt(),Xl=Dt(),ea={estimate:1,determine:2};function ov(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function nI(r,t){var e=Y(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function I3(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Ws(r),n=r.scale.getExtent(),i=nI(r,e),o=Ft(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?k3(r,t):E3(r)}function P3(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=nI(r,a);return{ticks:Ft(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?R3(r,t):{ticks:Y(r.scale.getTicks(e),function(o){return o.value})}}function k3(r,t){var e=r.getLabelModel(),a=iI(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function iI(r,t,e){var a=N3(r),n=C0(t),i=e.kind===ea.estimate;if(!i){var o=sI(a,n);if(o)return o}var s,l;ot(n)?s=fI(r,n):(l=n==="auto"?B3(r,e):n,s=uI(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return py(a,n,u),!0}):py(a,n,u),u}function R3(r,t){var e=O3(r),a=C0(t),n=sI(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),ot(a))i=fI(r,a,!0);else if(a==="auto"){var s=iI(r,r.getLabelModel(),ov(ea.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=a,i=uI(r,o,!0);return py(e,a,{ticks:i,tickCategoryInterval:o})}function E3(r){var t=r.scale.getTicks(),e=Ws(r);return{labels:Y(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var O3=oI("axisTick"),N3=oI("axisLabel");function oI(r){return function(e){return Xl(e)[r]||(Xl(e)[r]={list:[]})}}function sI(r,t){for(var e=0;ef&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=Uv(n({value:c}),a.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(e===ea.estimate)return t.out.noPxChangeTryDetermine.push(tt(V3,null,r,x,l)),x;var w=lI(r,x,l);return w??x}function V3(r,t,e){return lI(r,t,e)==null}function lI(r,t,e){var a=L3(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function G3(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 uI(r,t,e){var a=Ws(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Q2(r),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function fI(r,t,e){var a=r.scale,n=Ws(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Ex=[0,1],F3=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return OM(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ox(a,n.count())),Gt(t,Ex,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ox(a,n.count()));var i=Gt(t,a,Ex,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(),a=P3(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=Y(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return H3(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 a=this.scale.getMinorTicks(e),n=Y(a,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||ov(ea.determine),I3(this,t).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(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||ov(ea.determine),z3(this,t)},r}();function Ox(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function H3(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(h){h.coord-=u/2,h.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function v(h,d){return h=de(h),d=de(d),c?h>d:hn&&(n+=ll);var h=Math.atan2(s,o);if(h<0&&(h+=ll),h>=a&&h<=n||h+ll>=a&&h+ll<=n)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function sv(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,c=a-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function cI(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Zr=[];function Y3(r,t,e){var a=cI(t.x,t.y,t.width,t.height,r.x,r.y,Zr);return e.set(Zr[0],Zr[1]),a}function Z3(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,v=r.y,h=0;h0){t=t/180*Math.PI,Xr.fromArray(r[0]),qt.fromArray(r[1]),le.fromArray(r[2]),ct.sub(Ta,Xr,qt),ct.sub(_a,le,qt);var e=Ta.len(),a=_a.len();if(!(e<.001||a<.001)){Ta.scale(1/e),_a.scale(1/a);var n=Ta.dot(_a),i=Math.cos(t);if(i1&&ct.copy(Qe,le),Qe.toArray(r[1])}}}}function X3(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Xr.fromArray(r[0]),qt.fromArray(r[1]),le.fromArray(r[2]),ct.sub(Ta,qt,Xr),ct.sub(_a,le,qt);var a=Ta.len(),n=_a.len();if(!(a<.001||n<.001)){Ta.scale(1/a),_a.scale(1/n);var i=Ta.dot(t),o=Math.cos(e);if(i=l)ct.copy(Qe,le);else{Qe.scaleAndAdd(_a,s/Math.tan(Math.PI/2-f));var c=le.x!==qt.x?(Qe.x-qt.x)/(le.x-qt.x):(Qe.y-qt.y)/(le.y-qt.y);if(isNaN(c))return;c<0?ct.copy(Qe,qt):c>1&&ct.copy(Qe,le)}Qe.toArray(r[1])}}}}function Od(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function q3(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=An(a[0],a[1]),i=An(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=uc([],a[1],a[0],o/n),l=uc([],a[1],a[2],o/i),u=uc([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&n&&x(-c/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-e,_=a-y.rect[o]-y.rect[s]}function b(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){x(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function x(C,M,D){C!==0&&(f=!0);for(var I=M;I0)for(var L=0;L0;L--){var O=D[L-1]*P;x(-O,L,i)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),I=0;I0?x(D,0,I+1):x(-D,i-I-1,i),C-=D,C<=0)return}return f}function J3(r){for(var t=0;t=0&&a.attr(i.oldLayoutSelect),bt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Et(a,u,e,l)}else if(a.attr(u),!Bs(a).valueAnimation){var c=nt(a.style.opacity,1);a.style.opacity=0,jt(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};If(h,u,Pf),If(h,a.states.select,Pf)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};If(d,u,Pf),If(d,a.states.emphasis,Pf)}ZD(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=eH(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Et(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,jt(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const aH=rH;var zd=Dt();function nH(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=zd(e).labelManager;n||(n=zd(e).labelManager=new aH),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=zd(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Vd=Math.sin,Gd=Math.cos,yI=Math.PI,Ti=Math.PI*2,iH=180/yI,oH=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Pn(c-Ti)||(f?u>=Ti:-u>=Ti),h=u>0?u%Ti:u%Ti+Ti,d=!1;v?d=!0:Pn(c)?d=!1:d=h>=yI==!!f;var p=t+a*Gd(o),g=e+n*Vd(o);this._start&&this._add("M",p,g);var y=Math.round(i*iH);if(v){var m=1/this._p,_=(f?1:-1)*(Ti-m);this._add("A",a,n,y,1,+f,t+a*Gd(o+_),e+n*Vd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*Gd(s),b=e+n*Vd(s);this._add("A",a,n,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var f=[],c=this._p,v=1;v"}function pH(r){return""}function D0(r,t){t=t||{};var e=t.newline?` +`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return dH(o,s)+(o!=="style"?$e(l):l||"")+(i?""+e+Y(i,function(u){return a(u)}).join(e)+e:"")+pH(o)}return a(r)}function gH(r,t,e){e=e||{};var a=e.newline?` +`:"",n=" {"+a,i=a+"}",o=Y(It(r),function(l){return l+n+Y(It(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Y(It(t),function(l){return"@keyframes "+l+n+Y(It(t[l]),function(u){return u+n+Y(It(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function Sy(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fx(r,t,e,a){return Le("svg","root",{width:r,height:t,xmlns:_I,"xmlns:xlink":SI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var yH=0;function bI(){return yH++}var Hx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Mi="transform-origin";function mH(r,t,e){var a=$({},r.shape);$(a,t),r.buildPath(e,a);var n=new mI;return n.reset(TM(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function _H(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Mi]=e+"px "+a+"px")}var SH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wI(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function xH(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=Sy(e.zrId);u.animation=!0,ph(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=It(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=wI(n,e);return i.replace(o,s)}}function Wx(r){return Q(r)?Hx[r]?"cubic-bezier("+Hx[r]+")":Tm(r)?r:"":""}function ph(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof rh){var s=xH(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var St=wI(w,e);return St+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+bI();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function bH(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};$x(a,t,e,!0)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=_g(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),$x(a,t,e,!0)}}function $x(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+bI(),e.cssStyleCache[n]=i,e.cssNodes["."+i+(a?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var _u=Math.round;function TI(r){return r&&Q(r.src)}function CI(r){return r&&ot(r.toDataURL)}function L0(r,t,e,a){cH(function(n,i){var o=n==="fill"||n==="stroke";o&&wM(i)?MI(t,r,n,a):o&&Cm(i)?DI(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),LH(e,r,a)}function I0(r,t){var e=CN(t);e&&(e.each(function(a,n){a!=null&&(r[(Gx+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[Gx+"silent"]="true"))}function Ux(r){return Pn(r[0]-1)&&Pn(r[1])&&Pn(r[2])&&Pn(r[3]-1)}function wH(r){return Pn(r[4])&&Pn(r[5])}function P0(r,t,e){if(t&&!(wH(t)&&Ux(t))){var a=e?10:1e4;r.transform=Ux(t)?"translate("+_u(t[4]*a)/a+" "+_u(t[5]*a)/a+")":$O(t)}}function Yx(r,t,e){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ze(v,g),Ze(h,g)}else if(v==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=v||D.width,k=h||D.height;M.tag==="pattern"&&(u?(k=1,L/=i.width):f&&(L=1,k/=i.height)),M.attrs.width=L,M.attrs.height=k,I&&(I.setAttribute("width",L),I.setAttribute("height",k))}},m=km(d,null,r,function(M){l||y(x,M),y(c,M)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=Le("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else n.svgElement&&(c=st(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=CM(n);b&&(o.patternTransform=b);var x=Le("pattern","",o,[c]),w=D0(x),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,x=a.defs[C]=Le("pattern",C,o,[c])),t[e]=$v(C)}}function IH(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=Le("clipPath",i,o,[AI(r,e)])}t["clip-path"]=$v(i)}function qx(r){return document.createTextNode(r)}function Ei(r,t,e){r.insertBefore(t,e)}function Kx(r,t){r.removeChild(t)}function jx(r,t){r.appendChild(t)}function LI(r){return r.parentNode}function II(r){return r.nextSibling}function Fd(r,t){r.textContent=t}var Jx=58,PH=120,kH=Le("","");function xy(r){return r===void 0}function ga(r){return r!==void 0}function RH(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function kl(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Su(r){var t,e=r.children,a=r.tag;if(ga(a)){var n=r.elm=xI(a);if(k0(kH,r),U(e))for(t=0;ti?(d=e[l+1]==null?null:e[l+1].elm,PI(r,d,e,n,l)):cv(r,t,a,i))}function ts(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(k0(r,t),xy(t.text)?ga(a)&&ga(n)?a!==n&&EH(e,a,n):ga(n)?(ga(r.text)&&Fd(e,""),PI(e,null,n,0,n.length-1)):ga(a)?cv(e,a,0,a.length-1):ga(r.text)&&Fd(e,""):r.text!==t.text&&(ga(a)&&cv(e,a,0,a.length-1),Fd(e,t.text)))}function OH(r,t){if(kl(r,t))ts(r,t);else{var e=r.elm,a=LI(e);Su(t),a!==null&&(Ei(a,t.elm,II(e)),cv(a,[r],0,0))}return t}var NH=0,BH=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Qx(),this.configLayer=Qx(),this.storage=e,this._opts=a=$({},a),this.root=t,this._id="zr"+NH++,this._oldVNode=Fx(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=xI("svg");k0(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",OH(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Xx(t,Sy(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Sy(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=zH(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Le("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Y(It(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(Le("defs","defs",{},u)),t.animation){var f=gH(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Le("style","stl",{},[],f);o.push(c)}}return Fx(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},D0(this.renderToVNode({animation:nt(t.cssAnimation,!0),emphasis:nt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:nt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var c=this.__startIndex;c15)break}}k.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,D=0;D0&&t>n[0]){for(l=0;lt);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n0?kf:0),this._needsManuallyCompositing),f.__builtin__||ym("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),n.__dirty&gr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?wt(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=G.color.neutral00,u.style.lineWidth=2),a},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(te);const qH=XH;function Ts(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Ss(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var KH=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=me(e,-1,-1,2,2,null,s);l.attr({z2:nt(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=jH,this._symbolType=e,this.add(l)},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(){rn(this.childAt(0))},t.prototype.downplay=function(){an(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var v=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Et(h,d,s,a),Gr(h)}if(this._updateCommon(e,a,l,n,i),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,jt(h,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Te(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=_o(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(a,"style"),w=x.fill;if(s instanceof Fe){var T=s.style;s.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle($({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ie(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):Ts(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*k,L.scaleY=this._sizeY*k,this.setSymbolScale(1),Jt(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=pt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Wn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Wn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Hs(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(lt);function jH(r,t){this.parent.drift(r,t)}const Gu=KH;function Wd(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function rb(r){return r!=null&&!ht(r)&&(r={isIgnore:r}),r||{}}function ab(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:Te(t),cursorStyle:t.get("cursor")}}var JH=function(){function r(t){this.group=new lt,this._SymbolCtor=t||Gu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=rb(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=ab(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||a.removeAll(),t.diff(i).add(function(c){var v=f(c);if(Wd(t,v,c,e)){var h=new o(t,c,l,u);h.setPosition(v),t.setItemGraphicEl(c,h),a.add(h)}}).update(function(c,v){var h=i.getItemGraphicEl(v),d=f(c);if(!Wd(t,d,c,e)){a.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Et(h,y,n)}a.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=i.getItemGraphicEl(c);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ab(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=rb(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function EI(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function t4(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function e4(r,t,e,a,n,i,o,s){for(var l=t4(r,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=RI(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(Qi(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g=a||Qi(x,w))h=y,d=m;else{M=x-u,D=w-f;var k=y-u,R=x-y,P=m-f,O=w-m,E=void 0,B=void 0;if(s==="x"){E=Math.abs(k),B=Math.abs(R);var V=M>0?1:-1;h=y-V*E*o,d=m,I=y+V*B*o,L=m}else if(s==="y"){E=Math.abs(P),B=Math.abs(O);var H=D>0?1:-1;h=y,d=m-H*E*o,I=y,L=m+H*B*o}else E=Math.sqrt(k*k+P*P),B=Math.sqrt(R*R+O*O),C=B/(B+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=mn(I,_n(x,y)),L=mn(L,_n(w,m)),I=_n(I,mn(x,y)),L=_n(L,mn(w,m)),M=I-y,D=L-m,h=y-M*E/B,d=m-D*E/B,h=mn(h,_n(u,y)),d=mn(d,_n(f,m)),h=_n(h,mn(u,y)),d=_n(d,mn(f,m)),M=y-h,D=m-d,I=y+M*B/E,L=m+D*B/E}r.bezierCurveTo(c,v,h,d,y,m),c=I,v=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var OI=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),r4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new OI},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Qi(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[e,S]:[S,e]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?Ec(s,h,p,y,e,f):Ec(l,d,g,m,e,f);if(b>0)for(var x=0;x=0){var S=u?De(l,d,g,m,w):De(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Lt),a4=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(OI),NI=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new a4},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Qi(n[s*2-2],n[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function o4(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=Y(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=i4(u,n==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new Os(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function s4(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&l4(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function l4(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function u4(r,t){return isNaN(r)||isNaN(t)}function f4(r){for(var t=r.length/2;t>0&&u4(r[t*2-2],r[t*2-1]);t--);return t-1}function lb(r,t){return[r[t*2],r[t*2+1]]}function c4(r,t,e){for(var a=r.length/2,n=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 VI(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}pt(d).seriesIndex=e.seriesIndex,Jt(d,P,O,E);var V=sb(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:H,connectNulls:w}),p){var W=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(vt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(X=sb(W.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:X,smoothMonotone:H,connectNulls:w}),we(p,e,"areaStyle"),pt(p).seriesIndex=e.seriesIndex,Jt(p,P,O,E)}var j=this._changePolyState;s.eachItemGraphicEl(function(q){q&&(q.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){pt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=ao(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=e.get("zlevel")||0,h=e.get("z")||0;u=new Gu(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Xt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=ao(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 Xt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Uc(this._polyline,e),a&&Uc(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new r4({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new NI({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");ot(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ot(c)?c(null):c;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=h.x):(y=x.y+x.height,m=x.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=ot(c)?c(d):f*w+v,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(VI(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 Rt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=f4(l);f>=0&&(Ie(s,Te(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?kI(o,h):Ts(o,c)},enableTextSetter:!0},v4(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),v=n.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=c4(c,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=lb(c,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=v.getRawValue(C[0]),k=v.getRawValue(C[1]);o&&(D=ZM(n,d,L,k,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=lb(c,R);o&&(D=v.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var P=Bs(u);typeof P.setLabelText=="function"&&P.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,v=e4(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Sn(v.stackedOnCurrent,v.current,n,o,l),h=Sn(v.current,null,n,o,l),g=Sn(v.stackedOnNext,v.next,n,o,l),p=Sn(v.next,null,n,o,l)),ob(h,p)>3e3||f&&ob(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),Et(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Et(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;Q(i)?d=p4[i]:ot(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,g4))}}}}}function y4(r){r.registerChartView(d4),r.registerSeriesModel(qH),r.registerLayout(Wu("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GI("line"))}var FI=function(r){z(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,a){return cn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(v,h){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;bg){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/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",defaultBarGap:"10%"},t}(te);te.registerClass(FI);const vv=FI;var m4=function(r){z(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 cn(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"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ti(vv.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:G.color.primary,borderWidth:2}},realtimeSort:!1}),t}(vv);const _4=m4;var S4=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}(),x4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new S4},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,v=a.clockwise,h=Math.PI*2,d=v?c-fMath.PI/2&&fs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){qa(i,e,pt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Xt),ub={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Ud(t.x,r.x),s=Yd(t.x+t.width,n),l=Ud(t.y,r.y),u=Yd(t.y+t.height,i),f=sn?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=Yd(t.r,r.r),i=Ud(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},fb={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new Mt({shape:$({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?hv:rr,f=new u({shape:a,z2:1});f.name="item";var c=HI(n);if(f.calculateTextPosition=b4(c,{isRoundCap:u===hv}),i){var v=f.shape,h=n?"r":"endAngle",d={};v[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Et:jt)(f,{shape:d},i)}return f}};function A4(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function cb(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Et:jt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Et:jt)(e,{shape:u},f,n)}function vb(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function L4(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function HI(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function db(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Ca(a.getModel("itemStyle"),f,!0);$(f,c),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Te(a);Ie(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Ts(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,w4(r,g==="outside"?h:g,HI(o),a.get(["label","rotate"]))}YD(p,d,i.getRawValue(e),function(m){return kI(t,m)});var y=a.getModel(["emphasis"]);Jt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),we(r,a),L4(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function I4(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var P4=function(){function r(){}return r}(),pb=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new P4},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function k4(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function WI(r,t,e){if(Yn(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function R4(r,t,e){var a=r.type==="polar"?rr:Mt;return new a({shape:WI(t,e,r),silent:!0,z2:0})}const E4=C4;function O4(r){r.registerChartView(E4),r.registerSeriesModel(_4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(W2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GI("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var mb=Math.PI*2,Nf=Math.PI/180;function N4(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=hL(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-a.get("startAngle")*Nf,h=a.get("endAngle"),d=a.get("padAngle")*Nf;h=h==="auto"?v-mb:-h*Nf;var p=a.get("minAngle")*Nf,g=p+d,y=0;n.each(i,function(O){!isNaN(O)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[v,h],M=T*d/2;Kv(C,!S),v=C[0],h=C[1];var D=$I(a);D.startAngle=v,D.endAngle=h,D.clockwise=S,D.cx=s,D.cy=l,D.r=u,D.r0=f;var I=Math.abs(h-v),L=I,k=0,R=v;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(O,E){var B;if(isNaN(O)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?B=m===0&&x?_:O*_:B=I/y,BB?(H=R+T*B/2,W=H):(H=R+M,W=V-M),n.setItemLayout(E,{angle:B,startAngle:H,endAngle:W,clockwise:S,cx:s,cy:l,r0:f,r:b?Gt(O,w,[f,u]):u}),R=V}),Le?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;a.setStyle("width",h)}YI(i,a)}}}function YI(r,t){Sb.rect=r,pI(Sb,t,V4)}var V4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Sb={};function Zd(r){return r.position==="center"}function G4(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*B4,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),P=J(I.get("edgeDistance"),u),O=I.get("bleedMargin");O==null&&(O=Math.min(u,v)>200?10:2);var E=D.getModel("labelLine"),B=E.get("length");B=J(B,u);var V=E.get("length2");if(V=J(V,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":W>0?"left":"right"}var ut=Math.PI,At=0,Ht=I.get("rotate");if(Pt(Ht))At=Ht*(ut/180);else if(L==="center")At=0;else if(Ht==="radial"||Ht===!0){var ne=W<0?-H+ut:-H;At=ne}else if(Ht==="tangential"&&L!=="outside"&&L!=="outer"){var ie=Math.atan2(W,X);ie<0&&(ie=ut*2+ie);var fr=X>0;fr&&(ie=ut+ie),At=ie-ut}if(i=!!At,C.x=j,C.y=q,C.rotation=At,C.setStyle({verticalAlign:"middle"}),at){C.setStyle({align:St});var ia=C.states.select;ia&&(ia.x+=C.x,ia.y+=C.y)}else{var wr=new dt(0,0,0,0);YI(wr,C),e.push({label:C,labelLine:M,position:L,len:B,len2:V,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new ct(W,X),linePoints:it,textAlign:St,labelDistance:k,labelAlignTo:R,edgeDistance:P,bleedMargin:O,rect:wr,unconstrainedWidth:wr.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:at})}}),!i&&r.get("avoidLabelOverlap")&&z4(e,a,n,l,u,v,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=i.r0}},t.type="pie",t}(Xt);const W4=H4;function Us(r,t,e){t=U(t)&&{coordDimensions:t}||$({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=zu(a,t).dimensions,i=new tr(n,r);return i.initData(a,e),i}var $4=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 a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Ys=$4;var U4=Dt(),ZI=function(r){z(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 Ys(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Us(this,{coordDimensions:["value"],encodeDefaulter:xt(n0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=U4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=IN(o,a.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){ro(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(te);DV({fullType:ZI.type,getCoord2:function(r){return r.getShallow("center")}});const Y4=ZI;function Z4(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Pt(o)&&!isNaN(o)&&o<0)})}}}function X4(r){r.registerChartView(W4),r.registerSeriesModel(Y4),o2("pie",r.registerAction),r.registerLayout(xt(N4,"pie")),r.registerProcessor($s("pie")),r.registerProcessor(Z4("pie"))}var q4=function(r){z(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,a){return cn(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,a,n){return n.point(a.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","matrix"],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:G.color.primary}},universalTransition:{divideShape:"clone"}},t}(te);const K4=q4;var XI=4,j4=function(){function r(){}return r}(),J4=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new j4},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,c=i[f]-s/2,v=i[f+1]-l/2;if(e>=c&&a>=v&&e<=c+s&&a<=v+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const tW=Q4;var eW=function(r){z(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,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Wu("").reset(e,a,n);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 a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new tW:new Fu,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Xt);const rW=eW;var qI={left:0,right:0,top:0,bottom:0},dv=["25%","25%"],aW=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=yo(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Ea(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Ea(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:qI,outerBoundsContain:"all",outerBoundsClampWidth:dv[0],outerBoundsClampHeight:dv[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},t}(kt);const nW=aW;var wy=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ae).models[0]},t.type="cartesian2dAxis",t}(kt);_e(wy,Vu);var KI={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:G.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},iW=wt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},KI),R0=wt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},KI),oW=wt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R0),sW=vt({logBase:10},R0);const jI={category:iW,value:R0,time:oW,log:sW};var lW={value:1,category:1,time:1,log:1},Ty=null;function uW(r){Ty||(Ty=r)}function $u(){return Ty}function Cs(r,t,e,a){A(lW,function(n,i){var o=wt(wt({},jI[i],!0),a,!0),s=function(l){z(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=fu(this),h=v?yo(f):{},d=c.getTheme();wt(f,d.get(i+"Axis")),wt(f,this.getDefaultOption()),f.type=xb(f),v&&Ea(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=gu.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=$u();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",xb)}function xb(r){return r.type||(r.data?"category":"value")}var fW=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 Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ft(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 cW=fW;var Cy=["x","y"];function bb(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var vW=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Cy,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!bb(e)||!bb(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-n[0]*f,h=o[1]-i[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Qr([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.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,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new dt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ce(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return ce(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new dt(i,o,s,l)},t}(cW),hW=function(r){z(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||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 a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(na);const JI=hW;var gh="expandAxisBreak",QI="collapseAxisBreak",tP="toggleAxisBreak",E0="axisbreakchanged",dW={type:gh,event:E0,update:"update",refineEvent:O0},pW={type:QI,event:E0,update:"update",refineEvent:O0},gW={type:tP,event:E0,update:"update",refineEvent:O0};function O0(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function yW(r){r.registerAction(dW,t),r.registerAction(pW,t),r.registerAction(gW,t);function t(e,a){var n=[],i=vs(a,e);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(e);A(f.breaks,function(c){var v;n.push(vt((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var kn=Math.PI,mW=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_W=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],As=Dt(),eP=Dt(),rP=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r}();function SW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=N0(r.axisName)&&ws(r.nameLocation);A(a,function(d){var p=Oa(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Qr(ul,g.transform):Hv(ul),p.transform&&Aa(ul,ul,p.transform),dt.copy(Bf,p.localRect),Bf.applyTransform(ul),s?s.union(Bf):dt.copy(s=new dt(0,0,0,0),Bf))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new dt(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var ul=Oe(),Bf=new dt(0,0,0,0),aP=function(r,t,e,a,n,i){if(ws(r.nameLocation)){var o=i.stOccupiedRect;o&&nP(j3({},o,i.transGroup.transform),a,n)}else iP(i.labelInfoList,i.dirVec,a,n)};function nP(r,t,e){var a=new ct;dh(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&gy(t,a)}function iP(r,t,e,a){for(var n=ct.dot(a,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):au(n-kn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(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}(),xW=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],bW={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(ce(f,f,u),ce(c,c,u));var h=$({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())$u().buildAxisBreakLine(a,n,i,d);else{var p=new be($({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));_s(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);Q(g)&&(g=[g,g]),(Q(y)||Pt(y))&&(y=[y,y]);var m=_o(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];A([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(g[x]!=="none"&&g[x]!=null){var w=me(g[x],-_/2,-S/2,_,S,h.stroke,!0),T=b.r+b.offset,C=v?c:f;w.attr({rotation:b.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=Tb(t,n,s);l&&wb(r,t,e,a,n,i,o,ea.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Tb(t,n,s);l&&wb(r,t,e,a,n,i,o,ea.determine);var u=AW(r,n,i,a);CW(r,t.labelLayoutList,u),MW(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(N0(u)){var f=r.nameLocation,c=r.nameDirection,v=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,g=new ct(0,0),y=new ct(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*h,y.y=c);var m=Oe();y.transform(jn(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*kn/180);var S,b;ws(f)?S=to.innerTextLayout(r.rotation,_??r.rotation,c):(S=wW(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=v.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Ve(r.raw.nameTruncateMaxWidth,w.maxWidth,b),M=s.nameMarginLevel||0,D=new Rt({x:g.x,y:g.y,rotation:S.rotation,silent:to.isLabelSilent(a),style:Zt(v,{text:u,font:x,overflow:"truncate",width:C,ellipsis:T,fill:v.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(fn({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=to.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,pt(D).eventData=I}i.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=Oa({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ws(f)?mW[M]:_W[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var k=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,y,k)}}}};function wb(r,t,e,a,n,i,o,s){sP(t)||DW(r,t,n,s,a,o);var l=t.labelLayoutList;LW(r,a,l,i),kW(a,r.rotation,l);var u=r.optionHideOverlap;TW(a,l,u),u&&gI(Ft(l,function(f){return f&&!f.label.ignore})),SW(r,e,a,l)}function wW(r,t,e,a){var n=NM(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return au(n-kn/2)?(o=l?"bottom":"top",i="center"):au(n-kn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nkn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function TW(r,t,e){if(Q2(r.axis))return;function a(s,l,u){var f=Oa(t[l]),c=Oa(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Rl(f.label);return}if(c.suggestIgnore){Rl(c.label);return}var v=.1;if(!e){var h=[0,0,0,0];f=yy({marginForce:h},f),c=yy({marginForce:h},c)}dh(f,c,null,{touchThreshold:v})&&Rl(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function CW(r,t,e){r.showMinorTicks||A(t,function(a){if(a&&a.label.ignore)for(var n=0;nu[0]&&isFinite(d)&&isFinite(u[0]);)h=kd(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=kd(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=de(p-y),d<0&&u[0]>=0?(d=0,p=de(y)):p>0&&u[1]<=0&&(p=0,d=-de(y))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+h*m,p+h*_),a.setInterval.call(r,h),(m||_)&&a.setNiceExtent.call(r,d+h,p-h)}var Ab=[[3,1],[0,2]],NW=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Cy,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=It(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var v=+l[c],h=o[v],d=h.model,p=h.scale;cy(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(bs(p,d),cy(p)&&(s=h))}f.length&&(s||(s=f.pop(),bs(s.scale,s.model)),A(f,function(g){lP(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Mb(a,"y",o,i)}),A(a.y,function(o){Mb(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=Ce(t,e),i=this._rect=Qt(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(My(o,i),!a){var u=VW(i,s,o,l,e),f=void 0;if(l)Dy?(Dy(this._axesList,i),My(o,i)):f=Ib(i.clone(),"axisLabel",null,i,o,u,n);else{var c=GW(t,i,n),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=Ib(v,h,d,i,o,u,n))}uP(i,o,ea.determine,null,f,n)}A(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}ht(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0})==null;return oo(a,s,!0,!0,e),My(n,a),l;function u(v){A(n[yt[v]],function(h){if(mu(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g0&&!Ue(h)&&h>1e-4&&(v/=h),v}}function VW(r,t,e,a,n){var i=new rP(FW);return A(e,function(o){return A(o,function(s){if(mu(s.model)){var l=!a;s.axisBuilder=EW(r,t,s.model,n,i,l)}})}),i}function uP(r,t,e,a,n,i){var o=e===ea.determine;A(t,function(u){return A(u,function(f){mu(f.model)&&(OW(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[yt[1-u]]=r[ge[u]]<=i.refContainer[ge[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(c){mu(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function GW(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=Qt(r.get("outerBounds",!0)||qI,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||bt(["all","axisLabel"],i)<0?o="all":o=i;var s=[Fc(nt(r.get("outerBoundsClampWidth",!0),dv[0]),t.width),Fc(nt(r.get("outerBoundsClampHeight",!0),dv[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var FW=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";aP(r,t,e,a,n,i),ws(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&iP(s.labelInfoList,s.dirVec,a,n)})};const HW=NW;function WW(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $W(e,r,t),e.seriesInvolved&&YW(e,r),e}function $W(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=xu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(A(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&A(d.baseAxes,xt(p,h?"cross":!0,v)),h&&A(d.otherAxes,xt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Ly(_))){y==null&&(y=_.get("triggerTooltip")),_=g?UW(m,c,n,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=xu(m.model),T=y||b||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:Ly(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=ZW(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=i[M].mapper,C.linkGroup=D}}}})}function UW(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(v){l[v]=st(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&vt(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ot(l,e,a))}function YW(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[xu(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function ZW(r,t){for(var e=t.model,a=t.dim,n=0;n=0||r===t}function XW(r){var t=B0(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=Ly(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0;return o&&s}var r$=Dt();function Rb(r,t,e,a){if(r instanceof JI){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return e}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?pP(e,o,u,a):a$(r,t,e,a,o,l):e}function pP(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function a$(r,t,e,a,n,i){var o=r$(r);o.items||(o.items=[]);var s=o.items,l=Eb(s,t,e,a,n,i,1),u=Eb(s,t,e,a,n,i,-1),f=Math.abs(l-e)n/2||c&&v>c/2-a?pP(e,n,c,a):(s.push({fixedCoord:t,floatCoord:f,r:a}),f)}function Eb(r,t,e,a,n,i,o){for(var s=e,l=0;ln/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=vt({color:d.color},l));var g=wt(st(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:v},!1);if(Q(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else ot(f)&&(g.name=f(g.name,g));var m=new Ot(g,null,this.ecModel);return _e(m,Vu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:G.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:wt({lineStyle:{color:G.color.neutral20}},fl.axisLine),axisLabel:zf(fl.axisLabel,!1),axisTick:zf(fl.axisTick,!1),splitLine:zf(fl.splitLine,!0),splitArea:zf(fl.splitArea,!0),indicator:[]},t}(kt);const d$=h$;var p$=function(r){z(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,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=Y(i,function(s){var l=s.model.get("showName")?s.name:"",u=new on(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=U(v)?v:[v],p=U(h)?h:[h],g=[],y=[];function m(R,P,O){var E=O%P.length;return R[E]=R[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new Jn({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,p,x);y[w].push(new th({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=Y(n,function(R,P){var O=R.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Y(O,function(E){return a.coordToPoint(E.coord,P)})}),M=[],x=0;x<=T;x++){for(var D=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),v=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Bb(this._zr,"globalPan")||cl(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(tn(i.event),i.__ecRoamConsumed=!0,zb(e,a,n,i,o))},t}(Fr);function cl(r){return r.__ecRoamConsumed}var M$=Dt();function yh(r){var t=M$(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function vl(r,t,e,a){for(var n=yh(r),i=n.roam,o=i[t]=i[t]||[],s=0;s=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=xP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=n;n=new lt,n.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Mt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Kd[s];if(f&&et(Kd,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var h=Hb[s];if(h&&et(Hb,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new iu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),P$(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){Kd={g:function(t,e){var a=new lt;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Mt;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new Jn;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new be;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Fm;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Ub(a));var i=new ar({shape:{points:n||[]},silent:!0});return Cr(e,i),cr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Ub(a));var i=new Xe({shape:{points:n||[]},silent:!0});return Cr(e,i),cr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Fe;return Cr(e,a),cr(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new lt;return Cr(e,s),cr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new lt;return Cr(e,s),cr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=bD(a);return Cr(e,n),cr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Hb={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Os(t,e,a,n);return Wb(r,i),$b(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new OD(t,e,a);return Wb(r,n),$b(r,n),n}};function Wb(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function $b(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};SP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=lr(o),u=l&&l[3];u&&(l[3]*=Nn(s),o=Ma(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function Cr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),vt(t.__inheritedStyle,r.__inheritedStyle))}function Ub(r){for(var t=_h(r),e=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=_h(o);switch(n=n||Oe(),s){case"translate":Pa(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":bm(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":jn(n,n,-parseFloat(l[0])*jd,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*jd);Aa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*jd);Aa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var Zb=/([^\s:;]+)\s*:\s*([^:;]+)/g;function SP(r,t,e){var a=r.getAttribute("style");if(a){Zb.lastIndex=0;for(var n;(n=Zb.exec(a))!=null;){var i=n[1],o=et(gv,i)?gv[i]:null;o&&(t[o]=n[2]);var s=et(yv,i)?yv[i]:null;s&&(e[s]=n[2])}}}function B$(r,t,e){for(var a=0;a0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=rt(),a=rt(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function c(h){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ie(t,Te(a),{labelFetcher:v,labelDataIndex:c,defaultText:e},h);var d=t.getTextContent();if(d&&(bP(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Jb(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):pt(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Qb(r,t,e,a,n){r.data||fn({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function tw(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Jt(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&fz(t,n,e),o}function ew(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill=G.color.neutral00,n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:G.color.tertiary},itemStyle:{borderWidth:.5,borderColor:G.color.border,areaColor:G.color.background},emphasis:{label:{show:!0,color:G.color.primary},itemStyle:{areaColor:G.color.highlight}},select:{label:{show:!0,color:G.color.primary},itemStyle:{color:G.color.highlight}},nameProperty:"name"},t}(te);const iU=nU;function oU(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f1?(_.width=m,_.height=m/p):(_.height=m,_.width=m*p),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=p,_=Qt(S,d),_=dL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function cU(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var vU=function(){function r(){this.dimensions=TP}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new iw(l+s,l,$({nameMap:o.get("nameMap"),api:e,ecModel:t},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=ow,u.resize(o,e)}),t.eachSeries(function(o){Ou({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",ae).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=Y(o,function(f){return f.get("nameMap")}),u=new iw(s,s,$({nameMap:mm(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=Ve.apply(null,Y(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=ow,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,cU(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=rt(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function xU(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){wU(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=TU(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function bU(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function sw(r){return arguments.length?r:MU}function El(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function wU(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function TU(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=Jd(s),i=Qd(i),s&&i;){n=Jd(n),o=Qd(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+a(s,i);v>0&&(AU(CU(s,r,e),r,v),u+=v,l+=v),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Jd(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!Qd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function Jd(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Qd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function CU(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function AU(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function MU(r,t){return r.parentNode===t.parentNode?1:2}var DU=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),LU=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new DU},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,v=J(a.forkPosition,1),h=[];h[f]=o[f],h[c]=o[c]+(l[c]-o[c])*v,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[f]=s[f],e.lineTo(h[0],h[1]),h[f]=l[f],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var d=1;dm.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Ql(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(pt(e).focus=L),PU(n,o,f,e,d,h,p,a),e.__edge&&(e.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Pu||Uc(e.__edge,k)}})}function PU(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),v=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new eh({shape:ky(f,c,v,n,n)})),Et(p,{shape:ky(f,c,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;me&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var a=e.getData().tree.root,n=r.targetNode;if(Q(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function PP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function U0(r,t){var e=PP(r);return bt(e,t)>=0}function Sh(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var HU=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new Ot(n,this,this.ecModel),o=$0.createTree(a,this,s);function s(c){c.wrapMethod("getItemModel",function(v,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var v=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=v&&v.collapsed!=null?!v.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ye("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:G.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(te);const WU=HU;function $U(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)e.push(n[i])}}function UU(r,t){r.eachSeriesByType("tree",function(e){YU(e,t)})}function YU(r,t){var e=Ce(r,t).refContainer,a=Qt(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=sw(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=sw());var l=r.getData().tree.root,u=l.children[0];if(u){SU(l),$U(u,xU,s),l.hierNode.modifier=-u.hierNode.prelim,pl(u,bU);var f=u,c=u,v=u;pl(u,function(S){var b=S.getLayout().x;bc.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=f===c?1:s(f,c)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(n==="radial")p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var b=El(y,m);S.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+h+d),p=i/(v.depth-1||1),pl(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function ZU(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");$(s,o)})})}function XU(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function qU(r){r.registerChartView(kU),r.registerSeriesModel(WU),r.registerLayout(UU),r.registerVisual(ZU),XU(r)}var vw=["treemapZoomToNode","treemapRender","treemapMove"];function KU(r){for(var t=0;t1;)i=i.parentNode;var o=jg(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var jU=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};RP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ot({itemStyle:o},this,a);i=e.levels=JU(i,a);var l=Y(i||[],function(c){return new Ot(c,s,a)},this),u=$0.createTree(n,this,f);function f(c){c.wrapMethod("getItemModel",function(v,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return ye("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=rt(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){kP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:G.size.l,top:G.size.xxxl,right:G.size.l,bottom:G.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:G.size.m,emptyItemWidth:25,itemStyle:{color:G.color.backgroundShade,textStyle:{color:G.color.secondary}},emphasis:{itemStyle:{color:G.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:G.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:G.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(te);function RP(r){var t=0;A(r.children,function(a){RP(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}function JU(r,t){var e=Ut(t.get("color")),a=Ut(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new Ot(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}const QU=jU;var t8=8,hw=8,tp=5,e8=function(){function r(t){this.group=new lt,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=Ce(t,e).refContainer,v={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=Qt(v,c);this._prepare(a,h,u),this._renderContent(t,h,d,s,l,u,f,n),sh(o,v,c)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=xe(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+t8*2,e.emptyItemWidth);e.totalWidth+=s+hw,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s,l){for(var u=0,f=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=e.totalWidth,h=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;v>a.width&&(v-=m-f,m=f,_=null);var S=new ar({shape:{points:r8(u,0,m,c,p===h.length-1,p===0)},style:vt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Rt({style:Zt(o,{text:_})}),textConfig:{position:"inside"},z2:Es*1e4,onclick:xt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(s,{text:_}),S.ensureState("emphasis").style=d,Jt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),a8(S,t,y),u+=m+hw}},r.prototype.remove=function(){this.group.removeAll()},r}();function r8(r,t,e,a,n,i){var o=[[n?r:r-tp,t],[r+e,t],[r+e,t+a],[n?r:r-tp,t+a]];return!i&&o.splice(2,0,[r+e+tp,t+a/2]),!n&&o.push([r,t+a/2]),o}function a8(r,t,e){pt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Sh(e,t)}}const n8=e8;var i8=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;npw||Math.abs(e.dy)>pw)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new dt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=i,u){var v=u.min||0,h=u.max||1/0;c=Math.max(Math.min(h,c),v)}var d=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=Oe();Pa(g,g,[-a,-n]),bm(g,g,[d,d]),Pa(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&qc(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new n8(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(U0(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=gl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Xt);function gl(){return{nodeGroup:[],background:[],content:[]}}function c8(r,t,e,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),v=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=q("nodeGroup",Ry);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),mv(D).nodeWidth=h,mv(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=q("background",dw,u,l8);I&&V(D,I,b&&f.upperLabelHeight);var L=v.getModel("emphasis"),k=L.get("focus"),R=L.get("blurScope"),P=L.get("disabled"),O=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(b)su(D)&&Vi(D,!1),I&&(Vi(I,!P),c.setItemGraphicEl(o.dataIndex,I),Vg(I,O,R));else{var E=q("content",dw,u,u8);E&&H(D,E),I.disableMorphing=!0,I&&su(I)&&Vi(I,!1),Vi(D,!P),c.setItemGraphicEl(o.dataIndex,D);var B=v.getShallow("cursor");B&&E.attr("cursor",B),Vg(D,O,R)}return D;function V(at,N,F){var Z=pt(N);if(Z.dataIndex=o.dataIndex,Z.seriesIndex=r.seriesIndex,N.setShape({x:0,y:0,width:h,height:d,r:M}),g)W(N);else{N.invisible=!1;var K=o.getVisual("style"),mt=K.stroke,gt=mw(x);gt.fill=mt;var ut=Li(w);ut.fill=w.get("borderColor");var At=Li(T);At.fill=T.get("borderColor");var Ht=Li(C);if(Ht.fill=C.get("borderColor"),F){var ne=h-2*p;X(N,mt,K.opacity,{x:p,y:0,width:ne,height:S})}else N.removeTextContent();N.setStyle(gt),N.ensureState("emphasis").style=ut,N.ensureState("blur").style=At,N.ensureState("select").style=Ht,io(N)}at.add(N)}function H(at,N){var F=pt(N);F.dataIndex=o.dataIndex,F.seriesIndex=r.seriesIndex;var Z=Math.max(h-2*p,0),K=Math.max(d-2*p,0);if(N.culling=!0,N.setShape({x:p,y:p,width:Z,height:K,r:M}),g)W(N);else{N.invisible=!1;var mt=o.getVisual("style"),gt=mt.fill,ut=mw(x);ut.fill=gt,ut.decal=mt.decal;var At=Li(w),Ht=Li(T),ne=Li(C);X(N,gt,mt.opacity,null),N.setStyle(ut),N.ensureState("emphasis").style=At,N.ensureState("blur").style=Ht,N.ensureState("select").style=ne,io(N)}at.add(N)}function W(at){!at.invisible&&i.push(at)}function X(at,N,F,Z){var K=v.getModel(Z?yw:gw),mt=xe(v.get("name"),null),gt=K.getShallow("show");Ie(at,Te(v,Z?yw:gw),{defaultText:gt?mt:null,inheritColor:N,defaultOpacity:F,labelFetcher:r,labelDataIndex:o.dataIndex});var ut=at.getTextContent();if(ut){var At=ut.style,Ht=Gv(At.padding||0);Z&&(at.setTextConfig({layoutRect:Z}),ut.disableLabelLayout=!0),ut.beforeUpdate=function(){var ie=Math.max((Z?Z.width:at.shape.width)-Ht[1]-Ht[3],0),fr=Math.max((Z?Z.height:at.shape.height)-Ht[0]-Ht[2],0);(At.width!==ie||At.height!==fr)&&ut.setStyle({width:ie,height:fr})},At.truncateMinChar=2,At.lineOverflow="truncate",j(At,Z,f);var ne=ut.getState("emphasis");j(ne?ne.style:null,Z,f)}}function j(at,N,F){var Z=at?at.text:null;if(!N&&F.isLeafRoot&&Z!=null){var K=r.get("drillDownIcon",!0);at.text=K?K+" "+Z:Z}}function q(at,N,F,Z){var K=m!=null&&e[at][m],mt=n[at];return K?(e[at][m]=null,it(mt,K)):g||(K=new N,K instanceof Vr&&(K.z2=v8(F,Z)),St(mt,K)),t[at][y]=K}function it(at,N){var F=at[y]={};N instanceof Ry?(F.oldX=N.x,F.oldY=N.y):F.oldShape=$({},N.shape)}function St(at,N){var F=at[y]={},Z=o.parentNode,K=N instanceof lt;if(Z&&(!a||a.direction==="drillDown")){var mt=0,gt=0,ut=n.background[Z.getRawIndex()];!a&&ut&&ut.oldShape&&(mt=ut.oldShape.width,gt=ut.oldShape.height),K?(F.oldX=0,F.oldY=gt):F.oldShape={x:mt,y:gt,width:0,height:0}}F.fadein=!K}}function v8(r,t){return r*s8+t}const h8=f8;var wu=A,d8=ht,_v=-1,Y0=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=st(t);this.type=a,this.mappingMethod=e,this._normalizeData=y8[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(ep(n),p8(n)):e==="category"?n.categories?g8(n):ep(n,!0):(Ze(e!=="linear"||n.dataExtent),ep(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return tt(this._normalizeData,this)},r.listVisualTypes=function(){return It(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){ht(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=U(t)?[]:ht(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&wu(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(U(t))t=t.slice();else if(d8(t)){var e=[];wu(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function ep(r,t){var e=r.visual,a=[];ht(e)?wu(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),EP(r,a)}function Gf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Ey([0,1])}}function _w(r){var t=this.option.visual;return t[Math.round(Gt(r,[0,1],[0,t.length-1],!0))]||{}}function yl(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Ol(r){var t=this.option.visual;return t[this.option.loop&&r!==_v?r%t.length:r]}function Ii(){return this.option.visual[0]}function Ey(r){return{linear:function(t){return Gt(t,r,this.option.visual,!0)},category:Ol,piecewise:function(t,e){var a=Oy.call(this,e);return a==null&&(a=Gt(t,r,this.option.visual,!0)),a},fixed:Ii}}function Oy(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Y0.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function EP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var a=lr(e);return a||[0,0,0,1]})),t}var y8={linear:function(r){return Gt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Y0.findPieceIndex(r,t,!0);if(e!=null)return Gt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??_v},fixed:fe};function Ff(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=w8(n,l,p,g,d,a);NP(p,y,e,a)}})}}}function S8(r,t,e){var a=$({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function Sw(r){var t=rp(r,"color");if(t){var e=rp(r,"colorAlpha"),a=rp(r,"colorSaturation");return a&&(t=Bn(t,null,null,a)),e&&(t=Oc(t,e)),t}}function x8(r,t){return t!=null?Bn(t,null,null,r):null}function rp(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function b8(r,t,e,a,n,i){if(!(!i||!i.length)){var o=ap(t,"color")||n.color!=null&&n.color!=="none"&&(ap(t,"colorAlpha")||ap(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var v=new Ge(c);return OP(v).drColorMappingBy=f,v}}}function ap(r,t){var e=r.get(t);return U(e)&&e.length?{name:t,range:e}:null}function w8(r,t,e,a,n,i){var o=$({},t);if(n){var s=n.type,l=s==="color"&&OP(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Tu=Math.max,Sv=Math.min,xw=Ve,Z0=A,BP=["itemStyle","borderWidth"],T8=["itemStyle","gapWidth"],C8=["upperLabel","show"],A8=["upperLabel","height"];const M8={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=Ce(r,e).refContainer,o=Qt(r.getBoxLayoutParams(),i),s=n.size||[],l=J(xw(o.width,s[0]),i.width),u=J(xw(o.height,s[1]),i.height),f=a&&a.type,c=["treemapZoomToNode","treemapRootToNode"],v=bu(a,c,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=PP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?R8(r,v,d,l,u):h?[h.width,h.height]:[l,u],y=n.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),zP(d,m,!1,0),_=d.getLayout(),Z0(p,function(b,x){var w=(p[x+1]||d).getValue();b.setLayout($({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(E8(o,h,v),!0),r.setLayoutInfo(o),VP(S,new dt(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function zP(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(BP),u=s.get(T8)/2,f=GP(s),c=Math.max(l,f),v=l-u,h=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),n=Tu(n-2*v,0),i=Tu(i-v-h,0);var d=n*i,p=D8(r,s,d,t,e,a);if(p.length){var g={x:v,y:h,width:n,height:i},y=Sv(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function k8(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Tu(u*a/l,l/(u*n)):1/0}function bw(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(n||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,v=r.length;cT1&&(u=T1),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0].8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(lt);const j0=J8;var Q8=function(){function r(t){this.group=new lt,this._LineCtor=t||j0}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Dw(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Dw(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!t6(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function Dw(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Te(t)}}function Lw(r){return isNaN(r[0])||isNaN(r[1])}function lp(r){return r&&!Lw(r[0])&&!Lw(r[1])}const J0=Q8;var up=[],fp=[],cp=[],$o=Ee,vp=Yi,Iw=Math.abs;function Pw(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){up[0]=$o(a[0],n[0],i[0],f),up[1]=$o(a[1],n[1],i[1],f);var c=Iw(vp(up,t)-l);c=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function hp(r,t){var e=[],a=tu,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Xa(u[0]),Xa(u[1])],u[2]&&u.__original.push(Xa(u[2])));var v=u.__original;if(u[2]!=null){if(je(n[0],v[0]),je(n[1],v[2]),je(n[2],v[1]),f&&f!=="none"){var h=Bl(s.node1),d=Pw(n,v[0],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(c&&c!=="none"){var h=Bl(s.node2),d=Pw(n,v[1],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}je(u[0],n[0]),je(u[1],n[2]),je(u[2],n[1])}else{if(je(i[0],v[0]),je(i[1],v[1]),Bi(o,i[1],i[0]),Ps(o,o),f&&f!=="none"){var h=Bl(s.node1);ig(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=Bl(s.node2);ig(i[1],i[1],o,-h*t)}je(u[0],i[0]),je(u[1],i[1])}})}var ZP=Dt();function e6(r){if(r)return ZP(r).bridge}function kw(r,t){r&&(ZP(r).bridge=t)}function Rw(r){return r.type==="view"}var r6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Fu,i=new J0,o=this.group,s=new lt;this._controller=new wo(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(Rw(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Et(this._mainGroup,c,e)}hp(e.getGraph(),Nl(e));var v=e.getData();u.updateData(v);var h=e.getEdgeData();f.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var g=e.get("layout");v.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var T=w.get("draggable");T&&x.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),v.setItemLayout(b,[x.x,x.y]);break;case"circular":v.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),K0(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(b,[x.x,x.y]),q0(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(pt(x).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(pt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){$P(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!Rw(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!e||e.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(V0(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(G0(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),hp(e.getGraph(),Nl(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=Nl(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(hp(e.getGraph(),Nl(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=e6(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new lt,l=n.group.children(),u=i.group.children(),f=new lt,c=new lt;s.add(c),s.add(f);for(var v=0;v=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Pi||(e=this._nodesMap[Uo(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),XP=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=rt(),e=rt();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i=0&&!t.hasKey(c)&&(t.set(c,!0),a.push(f.node1))}for(i=0;i=0&&!t.hasKey(p)&&(t.set(p,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r}();function qP(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}_e(Pi,qP("hostGraph","data"));_e(XP,qP("hostGraph","edgeData"));const i6=n6;function Q0(r,t,e,a,n){for(var i=new i6(a),o=0;o "+v)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=cn(r,e);else{var p=Nu.get(h),g=p?p.dimensions||[]:[];bt(g,"value")<0&&g.concat(["value"]);var y=zu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new tr(y,e),d.initData(r)}var m=new tr(["value"],e);return m.initData(l,s),n&&n(d,m),LP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var o6=function(r){z(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.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ys(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ro(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){F8(this);var s=Q0(i,n,this,!0,l);return A(s.edges,function(u){H8(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Ot.prototype.getModel;function v(d,p){var g=c.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=v,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ye("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=KL({series:this,dataIndex:e,multipleSeries:a});return c},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(n){return n.value!=null?n:$({value:0},n)}),a=new tr(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:G.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:G.color.primary}}},t}(te);const s6=o6;function l6(r){r.registerChartView(a6),r.registerSeriesModel(s6),r.registerProcessor(N8),r.registerVisual(B8),r.registerVisual(z8),r.registerLayout(W8),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,U8),r.registerLayout(Z8),r.registerCoordinateSystem("graphView",{dimensions:To.dimensions,create:q8}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},fe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},fe),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,s=mh(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var u6=function(r){z(t,r);function t(e,a,n){var i=r.call(this)||this;pt(i).dataType="node",i.z2=2;var o=new Rt;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.graph.getNodeByIndex(a),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=e.getItemLayout(a),v=$(Ca(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):Et(h,{shape:v},l,a);var d=$(Ca(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(e.getItemVisual(a,"style")),we(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),we(h,u,"itemStyle");var p=f.get("focus");Jt(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=a.getModel("label");i.ignore=!f.get("show");var c=Te(a),v=n.getVisual("style");Ie(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,b,x,w){return e.getFormattedLabel(m,_,"node",b,_r(x,c.normal&&c.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(rr);const Ew=u6;var f6=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;return pt(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var s=e.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),f=l.node1.getModel(),c=a.getItemModel(l.dataIndex),v=c.getModel("lineStyle"),h=c.getModel("emphasis"),d=h.get("focus"),p=$(Ca(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Ow(g,l,e,v)):(Gr(g),Ow(g,l,e,v),Et(g,{shape:p},s,n)),Jt(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),we(g,c,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Lt);function Ow(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(Q(l)&&Q(u)){var f=r.shape,c=(f.s1[0]+f.s2[0])/2,v=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new Os(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var c6=Math.PI/180,v6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*c6;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new Ew(i,f,l);pt(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&qa(v,e,c);return}v?v.updateData(i,f,l):v=new Ew(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&qa(c,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=J(u[0],n.getWidth()),this.group.originY=J(u[1],n.getHeight()),jt(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new f6(n,i,l,a);pt(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,i,l,a),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&qa(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Xt);const h6=v6;var d6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Ys(tt(this.getData,this),tt(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=Q0(i,n,this,!0,s);return o.data}function s(l,u){var f=Ot.prototype.getModel;function c(h,d){var p=f.call(this,h,d);return p.resolveParentPath=v,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ye("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return ye("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(te);const p6=d6;var dp=Math.PI/180;function g6(r,t){r.eachSeriesByType("chord",function(e){y6(e,t)})}function y6(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=hL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((r.get("padAngle")||0)*dp,0),v=Math.max((r.get("minAngle")||0)*dp,0),h=-r.get("startAngle")*dp,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Kv(y,!p);var m=y[0],_=y[1],S=_-m,b=e.getSum("value")===0&&n.getSum("value")===0,x=[],w=0;a.eachEdge(function(E){var B=b?1:E.getValue("value");b&&(B>0||v)&&(w+=2);var V=E.node1.dataIndex,H=E.node2.dataIndex;x[V]=(x[V]||0)+B,x[H]=(x[H]||0)+B});var T=0;if(a.eachNode(function(E){var B=E.getValue("value");isNaN(B)||(x[E.dataIndex]=Math.max(B,x[E.dataIndex]||0)),!b&&(x[E.dataIndex]>0||v)&&w++,T+=x[E.dataIndex]||0}),!(w===0||T===0)){c*w>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-v*w)/w)),(c+v)*w>=Math.abs(S)&&(v=(Math.abs(S)-c*w)/w);var C=(S-c*w*g)/T,M=0,D=0,I=0;a.eachNode(function(E){var B=x[E.dataIndex]||0,V=C*(T?B:1)*g;Math.abs(V)D){var k=M/D;a.eachNode(function(E){var B=E.getLayout().angle;Math.abs(B)>=v?E.setLayout({angle:B*k,ratio:k},!0):E.setLayout({angle:v,ratio:v===0?1:B/v},!0)})}else a.eachNode(function(E){if(!L){var B=E.getLayout().angle,V=Math.min(B/I,1),H=V*M;B-Hv&&v>0){var V=L?1:Math.min(B/I,1),H=B-v,W=Math.min(H,Math.min(R,M*V));R-=W,E.setLayout({angle:B-W,ratio:(B-W)/B},!0)}else v>0&&E.setLayout({angle:v,ratio:B===0?1:v/B},!0)}});var P=m,O=[];a.eachNode(function(E){var B=Math.max(E.getLayout().angle,v);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:P,endAngle:P+B*g,clockwise:p},!0),O[E.dataIndex]=P,P+=(B+c)*g}),a.eachEdge(function(E){var B=b?1:E.getValue("value"),V=C*(T?B:1)*g,H=E.node1.dataIndex,W=O[H]||0,X=Math.abs((E.node1.getLayout().ratio||1)*V),j=W+X*g,q=[s+f*Math.cos(W),l+f*Math.sin(W)],it=[s+f*Math.cos(j),l+f*Math.sin(j)],St=E.node2.dataIndex,at=O[St]||0,N=Math.abs((E.node2.getLayout().ratio||1)*V),F=at+N*g,Z=[s+f*Math.cos(at),l+f*Math.sin(at)],K=[s+f*Math.cos(F),l+f*Math.sin(F)];E.setLayout({s1:q,s2:it,sStartAngle:W,sEndAngle:j,t1:Z,t2:K,tStartAngle:at,tEndAngle:F,cx:s,cy:l,r:f,value:B,clockwise:p}),O[H]=j,O[St]=F})}}}function m6(r){r.registerChartView(h6),r.registerSeriesModel(p6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,g6),r.registerProcessor($s("chord"))}var _6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),S6=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new _6},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(Lt);const x6=S6;function b6(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=J(e[0],t.getWidth()),s=J(e[1],t.getHeight()),l=J(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Wf(r,t){var e=r==null?"":r+"";return t&&(Q(t)?e=t.replace("{value}",e):ot(t)&&(e=t(r))),e}var w6=function(r){z(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,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=b6(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),v=c.get("roundCap"),h=v?hv:rr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];Kv(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b=C&&(M===0?0:i[M-1][0])Math.PI/2&&(j+=Math.PI)):X==="tangential"?j=-T-Math.PI/2:Pt(X)&&(j=X*Math.PI/180),j===0?c.add(new Rt({style:Zt(_,{text:B,x:H,y:W,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:V}),silent:!0})):c.add(new Rt({style:Zt(_,{text:B,x:H,y:W,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:H,originY:W,rotation:j}))}if(m.get("show")&&P!==S){var O=m.get("distance");O=O?O+f:f;for(var q=0;q<=b;q++){k=Math.cos(T),R=Math.sin(T);var it=new be({shape:{x1:k*(d-O)+v,y1:R*(d-O)+h,x2:k*(d-w-O)+v,y2:R*(d-w-O)+h},silent:!0,style:I});I.stroke==="auto"&&it.setStyle({stroke:i((P+q/b)/S)}),c.add(it),T+=M}T-=M}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),x=[S,b],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),k=J(L.get("width"),o.r),R=J(L.get("length"),o.r),P=e.get(["pointer","icon"]),O=L.get("offsetCenter"),E=J(O[0],o.r),B=J(O[1],o.r),V=L.get("keepAspect"),H;return P?H=me(P,E-k/2,B-R,k,R,null,V):H=new x6({shape:{angle:-Math.PI/2,width:k,r:R,x:E,y:B}}),H.rotation=-(D+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(M,D){var I=g.get("roundCap"),L=I?hv:rr,k=g.get("overlap"),R=k?g.get("width"):f/m.count(),P=k?o.r-R:o.r-(M+1)*R,O=k?o.r:o.r-M*R,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:O}});return k&&(E.z2=Gt(m.get(_,M),[S,b],[100,0],!0)),E}(y||p)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);jt(I,{rotation:-((isNaN(+D)?w[0]:Gt(D,x,w,!0))+Math.PI/2)},e),c.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),k=g.get("clip");jt(L,{shape:{endAngle:Gt(D,x,w,k)}},e),c.add(L),Og(e.seriesIndex,m.dataType,M,L),d[M]=L}}).update(function(M,D){var I=m.get(_,M);if(p){var L=v.getItemGraphicEl(D),k=L?L.rotation:s,R=T(M,k);R.rotation=k,Et(R,{rotation:-((isNaN(+I)?w[0]:Gt(I,x,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(M,R)}if(y){var P=h[D],O=P?P.shape.endAngle:s,E=C(M,O),B=g.get("clip");Et(E,{shape:{endAngle:Gt(I,x,w,B)}},e),c.add(E),Og(e.seriesIndex,m.dataType,M,E),d[M]=E}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(p){var P=m.getItemGraphicEl(M),O=m.getItemVisual(M,"style"),E=O.fill;if(P instanceof Fe){var B=P.style;P.useStyle($({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},O))}else P.useStyle(O),P.type!=="pointer"&&P.setColor(E);P.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(Gt(m.get(_,M),x,[0,1],!0))),P.z2EmphasisLift=0,we(P,D),Jt(P,L,k,R)}if(y){var V=d[M];V.useStyle(m.getItemVisual(M,"style")),V.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,we(V,D),Jt(V,L,k,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=me(s,a.cx-o/2+J(l[0],a.r),a.cy-o/2+J(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),v=new lt,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Rt({silent:!0}),d[y]=new Rt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new lt,b=i(Gt(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+J(w[0],o.r),C=o.cy+J(w[1],o.r),M=h[y];M.attr({z2:g?0:2,style:Zt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+J(I[0],o.r),k=o.cy+J(I[1],o.r),R=J(D.get("width"),o.r),P=J(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:Zt(D,{x:L,y:k,text:Wf(_,E),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:O})}),YD(M,{normal:D},_,function(V){return Wf(V,E)}),p&&ZD(M,y,l,e,{getFormattedLabel:function(V,H,W,X,j,q){return Wf(q?q.interpolatedValue:_,E)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Xt);const T6=w6;var C6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Us(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,G.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:G.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:G.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:G.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:G.color.neutral00,borderWidth:0,borderColor:G.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:G.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:G.color.transparent,borderWidth:0,borderColor:G.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:G.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(te);const A6=C6;function M6(r){r.registerChartView(T6),r.registerSeriesModel(A6)}var D6=["itemStyle","opacity"],L6=function(r){z(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Xe,s=new Rt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(D6);f=f??1,n||Gr(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,jt(i,{style:{opacity:f}},o,a)):Et(i,{style:{opacity:f},shape:{points:l.points}},o,a),we(i,s),this._updateLabel(e,a),Jt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),f=u.label,c=e.getItemVisual(a,"style"),v=c.fill;Ie(o,Te(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:c.opacity,defaultText:e.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new ct(g[0][0],g[0][1]):null},Et(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),A0(n,M0(l),{stroke:v})},t}(ar),I6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new L6(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);qa(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Xt);const P6=I6;var k6=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Us(this,{coordDimensions:["value"],encodeDefaulter:xt(n0,this)})},t.prototype._defaultLabelLine=function(e){ro(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:G.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:G.color.primary}}},t}(te);const R6=k6;function E6(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();oQ6)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!gp(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function gp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const rY=tY;var aY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&wt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=Ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(kt);const nY=aY;var iY=function(r){z(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(na);const oY=iY;function Zn(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Yo(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Yo(s,[0,o]),n=i=Yo(s,[n,i]),a=0}t[0]=Yo(t[0],e),t[1]=Yo(t[1],e);var l=yp(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Yo(t[a],f);var c;return c=yp(t,a),n!=null&&(c.sign!==l.sign||c.spani&&(t[1-a]=t[a]+c.sign*i),t}function yp(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 Yo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var mp=A,jP=Math.min,JP=Math.max,zw=Math.floor,sY=Math.ceil,Vw=de,lY=Math.PI,uY=function(){function r(t,e,a){this.type="parallel",this._axesMap=rt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;mp(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new oY(o,hh(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();mp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),bs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=Ce(t,e).refContainer;this._rect=Qt(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=$f(t.get("axisExpandWidth"),l),c=$f(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=$f(h[1]-h[0],l),h[1]=h[0]+d;else{d=$f(f*(c-1),l);var p=t.get("axisExpandCenter")||zw(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[zw(Vw(h[0]/f,1))+1,sY(Vw(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),mp(a,function(o,s){var l=(n.axisExpandable?cY:fY)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:lY/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],v=f[i],h=Oe();jn(h,h,v),Pa(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Zn(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[JP(0,d-h/2)],n[1]=jP(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function $f(r,t){return jP(JP(r,t[0]),t[1])}function fY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function cY(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)Br(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;imY}function ik(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function ok(r,t,e,a){var n=new lt;return n.add(new Mt({name:"main",style:a_(e),silent:!0,draggable:!0,cursor:"move",drift:xt(Ww,r,t,n,["n","s","w","e"]),ondragend:xt(fo,t,{isEnd:!0})})),A(a,function(i){n.add(new Mt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(Ww,r,t,n,i),ondragend:xt(fo,t,{isEnd:!0})}))}),n}function sk(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Ms(n,_Y),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],c=e[1][1],v=f-i+n/2,h=c-i+n/2,d=f-o,p=c-s,g=d+n,y=p+n;Fa(r,t,"main",o,s,d,p),a.transformable&&(Fa(r,t,"w",l,u,i,y),Fa(r,t,"e",v,u,i,y),Fa(r,t,"n",l,u,g,i),Fa(r,t,"s",l,h,g,i),Fa(r,t,"nw",l,u,i,i),Fa(r,t,"ne",v,u,i,i),Fa(r,t,"sw",l,h,i,i),Fa(r,t,"se",v,h,i,i))}function Gy(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(a_(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Fy(r,i[0]):AY(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?xY[s]+"-resize":null})})}function Fa(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(DY(n_(r,t,[[a,n],[a+i,n+o]])))}function a_(r){return vt({strokeNoScale:!0},r.brushStyle)}function lk(r,t,e,a){var n=[Au(r,e),Au(t,a)],i=[Ms(r,e),Ms(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function CY(r){return ji(r.group)}function Fy(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=ah(e[t],CY(r));return a[n]}function AY(r,t){var e=[Fy(r,t[0]),Fy(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Ww(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=uk(t,n,i);A(a,function(u){var f=SY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(lk(s[0][0],s[1][0],s[0][1],s[1][1])),t_(t,e),fo(t,{isEnd:!1})}function MY(r,t,e,a){var n=t.__brushOption.range,i=uk(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),t_(r,t),fo(r,{isEnd:!1})}function uk(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function n_(r,t,e){var a=nk(r,t);return a&&a!==uo?a.clipPath(e,r._transform):st(e)}function DY(r){var t=Au(r[0][0],r[1][0]),e=Au(r[0][1],r[1][1]),a=Ms(r[0][0],r[1][0]),n=Ms(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function LY(r,t,e){if(!(!r._brushType||PY(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=r_(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var bh={lineX:Yw(0),lineY:Yw(1),rect:{createCover:function(r,t){function e(a){return a}return ok({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ik(r);return lk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){sk(r,t,e,a)},updateCommon:Gy,contain:Wy},polygon:{createCover:function(r,t){var e=new lt;return e.add(new Xe({name:"main",style:a_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ar({name:"main",draggable:!0,drift:xt(MY,r,t),ondragend:xt(fo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:n_(r,t,e)})},updateCommon:Gy,contain:Wy}};function Yw(r){return{createCover:function(t,e){return ok({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ik(t),a=Au(e[0][r],e[1][r]),n=Ms(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=nk(t,e);if(o!==uo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),sk(t,e,l,n)},updateCommon:Gy,contain:Wy}}const i_=wY;function ck(r){return r=o_(r),function(t){return FD(t,r)}}function vk(r,t){return r=o_(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function hk(r,t,e){var a=o_(r);return function(n,i){return a.contain(i[0],i[1])&&!gP(n,t,e)}}function o_(r){return dt.create(r)}var kY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new i_(a.getZr())).on("brush",tt(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!RY(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new lt,this.group.add(this._axisGroup),!!e.get("show")){var s=OY(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,v=l.getAxisLayout(c),h=$({strokeContainThreshold:f},v),d=new on(e,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,n),ku(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=dt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ck(c),isTargetByCursor:hk(c,s,i),getLinearBrushOtherExtent:vk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(EY(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Y(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(re);function RY(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function EY(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function OY(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const NY=kY;var BY={type:"axisAreaSelect",event:"axisAreaSelected"};function zY(r){r.registerAction(BY,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var VY={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dk(r){r.registerComponentView(rY),r.registerComponentModel(nY),r.registerCoordinateSystem("parallel",pY),r.registerPreprocessor(K6),r.registerComponentModel(Gw),r.registerComponentView(NY),Cs(r,"parallel",Gw,VY),zY(r)}function GY(r){Tt(dk),r.registerChartView(H6),r.registerSeriesModel(Y6),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,q6)}var FY=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),HY=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new FY},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){rn(this)},t.prototype.downplay=function(){an(this)},t}(Lt),WY=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new lt,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new wo(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this._mainGroup,l=e.layoutInfo,u=l.width,f=l.height,c=e.getData(),v=e.getData("edge"),h=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(e,n),yP(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new HY,g=pt(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,k,R,P,O,E,B,V;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,k=(w!=null?w*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+I.ty,P=D!=null?D*f:T.y,O=L,E=k*(1-_)+P*_,B=R,V=k*_+P*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,k=(w!=null?w*f:S.y)+I.sy,R=M!=null?M*u:T.x,P=(D!=null?D*f:T.y)+I.ty,O=L*(1-_)+R*_,E=k,B=L*_+R*(1-_),V=P),p.setShape({x1:L,y1:k,x2:R,y2:P,cpx1:O,cpy1:E,cpx2:B,cpy2:V}),p.useStyle(m.getItemStyle()),Zw(p.style,h,d);var H=""+y.get("value"),W=Te(y,"edgeLabel");Ie(p,W,{labelFetcher:{getFormattedLabel:function(q,it,St,at,N,F){return e.getFormattedLabel(q,it,"edge",at,_r(N,W.normal&&W.normal.get("formatter"),H),F)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var X=y.getModel("emphasis");we(p,y,"lineStyle",function(q){var it=q.getItemStyle();return Zw(it,h,d),it}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var j=X.get("focus");Jt(p,j==="adjacency"?d.getAdjacentDataIndices():j==="trajectory"?d.getTrajectoryDataIndices():j,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new Mt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ie(b,Te(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),we(b,g),s.add(b),c.setItemGraphicEl(d.dataIndex,b),pt(b).dataType="node";var x=_.get("focus");Jt(b,x==="adjacency"?d.getAdjacentDataIndices():x==="trajectory"?d.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath($Y(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=n.width,o=n.height,s=e.coordinateSystem=new To(null,{api:a,ecModel:e.ecModel});s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Xt);function Zw(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");Q(a)&&Q(n)&&(r.fill=new Os(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function $Y(r,t,e){var a=new Mt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return jt(a,{shape:{width:r.width+20}},t,e),a}const UY=WY;var YY=function(r){z(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,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Ot(o[l],this,a));var u=Q0(i,n,this,!0,f);return u.data;function f(c,v){c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ye("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,v=this.getDataParams(e,n).data.name;return ye("nameValue",{name:v!=null?v+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:G.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:G.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(te);const ZY=YY;function XY(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=Ce(e,t).refContainer,o=Qt(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,c=u.edges;KY(f);var v=Ft(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");qY(f,c,a,n,s,l,h,d,p)})}function qY(r,t,e,a,n,i,o,s,l){jY(r,t,e,n,i,s,l),e7(r,t,i,n,a,o,s),f7(r,s)}function KY(r){A(r,function(t){var e=Fn(t.outEdges,xv),a=Fn(t.inEdges,xv),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function jY(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],f=[],c=0,v=0;v=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;mc-1?h:c-1;o&&o!=="left"&&JY(r,o,i,w);var T=i==="vertical"?(n-e)/w:(a-e)/w;t7(r,T,i)}function pk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function JY(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,n7(s,l,o),_p(s,n,e,a,o),u7(s,l,o),_p(s,n,e,a,o)}function r7(r,t){var e=[],a=t==="vertical"?"y":"x",n=Ig(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function a7(r,t,e,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=n==="vertical"?a:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function n7(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=Fn(n.outEdges,i7,e)/Fn(n.outEdges,xv);if(isNaN(i)){var o=n.outEdges.length;i=o?Fn(n.outEdges,o7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Xn(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Xn(n,e))*t;n.setLayout({y:l},!0)}}})})}function i7(r,t){return Xn(r.node2,t)*r.getValue()}function o7(r,t){return Xn(r.node2,t)}function s7(r,t){return Xn(r.node1,t)*r.getValue()}function l7(r,t){return Xn(r.node1,t)}function Xn(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function xv(r){return r.getValue()}function Fn(r,t,e){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new Ge({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function v7(r){r.registerChartView(UY),r.registerSeriesModel(ZY),r.registerLayout(XY),r.registerVisual(c7),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var gk=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],v=u[1-f],h=[n,i],d=h[f].get("type"),p=h[1-f].get("type"),g=t.data;if(g&&l){var y=[];A(g,function(S,b){var x;U(S)?(x=S.slice(),S.unshift(b)):U(S.value)?(x=$({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:av(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:av(p),dimsDef:m.slice()}];return Us(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:xt(xL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),yk=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:G.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:G.color.shadow}},animationDuration:800},t}(te);_e(yk,gk,!0);const h7=yk;var d7=function(r){z(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,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=Xw(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var v=i.getItemLayout(u);c?(Gr(c),mk(v,c,i,u)):c=Xw(v,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(Xt),p7=function(){function r(){}return r}(),g7=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new p7},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:e,outliers:a}}var T7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ne){var a="";Vt(a)}var n=w7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function C7(r){r.registerSeriesModel(h7),r.registerChartView(m7),r.registerLayout(_7),r.registerTransform(T7)}var A7=["itemStyle","borderColor"],M7=["itemStyle","borderColor0"],D7=["itemStyle","borderColorDoji"],L7=["itemStyle","color"],I7=["itemStyle","color0"];function s_(r,t){return t.get(r>0?L7:I7)}function l_(r,t){return t.get(r===0?D7:r>0?A7:M7)}var P7={seriesType:"candlestick",plan:Gs(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=s_(s,o),l.stroke=l_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");$(u,l)}}}}}};const k7=P7;var R7=["color","borderColor"],E7=function(r){z(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,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Qn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var c=a.getItemLayout(f);if(s&&qw(u,c))return;var v=Sp(c,f,!0);jt(v,{shape:{points:c.ends}},e,f),xp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,c){var v=n.getItemGraphicEl(c);if(!a.hasValue(f)){i.remove(v);return}var h=a.getItemLayout(f);if(s&&qw(u,h)){i.remove(v);return}v?(Et(v,{shape:{points:h.ends}},e,f),Gr(v)):v=Sp(h),xp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var c=n.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),Kw(e,this.group);var a=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=Sp(s);xp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){Kw(a,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}(Xt),O7=function(){function r(){}return r}(),N7=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new O7},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Lt);function Sp(r,t,e){var a=r.ends;return new N7({shape:{points:e?B7(a,r):a},z2:100})}function qw(r,t){for(var e=!0,a=0;ab?D[i]:M[i],ends:k,brushRect:B(x,w,_)})}function O(H,W){var X=[];return X[n]=W,X[i]=H,isNaN(W)||isNaN(H)?[NaN,NaN]:t.dataToPoint(X)}function E(H,W,X){var j=W.slice(),q=W.slice();j[n]=yc(j[n]+a/2,1,!1),q[n]=yc(q[n]-a/2,1,!0),X?H.push(j,q):H.push(q,j)}function B(H,W,X){var j=O(H,X),q=O(W,X);return j[n]-=a/2,q[n]-=a/2,{x:j[0],y:j[1],width:a,height:q[1]-j[1]}}function V(H){return H[n]=yc(H[n],1),H}}function d(p,g){for(var y=wa(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),I=w.get(c,x),L=w.get(v,x);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=jw(w,x,M,D,f,T),S[n]=C,S[i]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function jw(r,t,e,a,n,i){var o;return e>a?o=-1:e0?r.get(n,t-1)<=a?1:-1:1,o}function W7(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=J(nt(r.get("barMaxWidth"),n),n),o=J(nt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?J(s,n):Math.max(Math.min(n/2,i),o)}const $7=H7;function U7(r){r.registerChartView(V7),r.registerSeriesModel(G7),r.registerPreprocessor(F7),r.registerVisual(k7),r.registerLayout($7)}function Jw(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Y7=function(r){z(t,r);function t(e,a){var n=r.call(this)||this,i=new Gu(e,a),o=new lt;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;ot(c)?v=c(n):v=c,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return An(e.__p1,e.__cp1)+An(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Ee,f=pg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var c=e.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=e.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(v,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),c=n[l],v=n[l+1];e.x=c[0]*(1-f)+f*v[0],e.y=c[1]*(1-f)+f*v[1];var h=e.__t<1?v[0]-c[0]:c[0]-v[0],d=e.__t<1?v[1]-c[1]:c[1]-v[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(Sk);const r9=e9;var a9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),n9=function(r){z(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new a9},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){e.moveTo(n[o++],n[o++]);for(var l=1;l0){var h=(u+c)/2-(f-v)*i,d=(f+v)/2-(c-u)*i;e.quadraticCurveTo(h,d,c,v)}else e.lineTo(c,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var c=i[u++],v=i[u++],h=1;h0){var g=(c+d)/2-(v-p)*o,y=(v+p)/2-(d-c)*o;if(tD(c,v,g,y,d,p,s,e,a))return l}else if(Tn(c,v,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const o9=i9;var s9={seriesType:"lines",plan:Gs(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=e.get("clip",!0)&&Hu(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=bk.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new o9:new J0(o?i?r9:xk:i?Sk:j0),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Xt);const u9=l9;var f9=typeof Uint32Array>"u"?Array:Uint32Array,c9=typeof Float64Array>"u"?Array:Float64Array;function Qw(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),mm([n,e[0],e[1]])}))}var v9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Qw(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Qw(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Ql(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Ql(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(te);const h9=v9;function Uf(r){return r instanceof Array||(r=[r,r]),r}var d9={seriesType:"lines",reset:function(r){var t=Uf(r.get("symbol")),e=Uf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Uf(s.getShallow("symbol",!0)),u=Uf(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};const p9=d9;function g9(r){r.registerChartView(u9),r.registerSeriesModel(h9),r.registerLayout(bk),r.registerVisual(p9)}var y9=256,m9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Jr.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,v=c.getContext("2d"),h=t.length;c.width=e,c.height=a;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*M+T),b[x++]=I[D],b[x++]=I[D+1],b[x++]=I[D+2],b[x++]=I[D+3]*_*256}else x+=4}return v.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Jr.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=G.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const _9=m9;function S9(r,t,e){var a=r[1]-r[0];t=Y(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&a<=t[1]}}function tT(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var b9=function(r){z(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,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):tT(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(tT(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Qn(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=Yn(s,"cartesian2d"),u=Yn(s,"matrix"),f,c,v,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,v=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),x=Te(e),w=e.getModel("emphasis"),T=w.get("focus"),C=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],I=n;Iv[1]||Ph[1])continue;var O=s.dataToPoint([R,P]);L=new Mt({shape:{x:O[0]-f/2,y:O[1]-c/2,width:f,height:c},style:k})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(Ue(E.x))continue;L=new Mt({z2:1,shape:E,style:k})}else{if(isNaN(y.get(D[1],I)))continue;var B=s.dataToLayout([y.get(D[0],I)]),E=B.contentRect||B.rect;if(Ue(E.x)||Ue(E.y))continue;L=new Mt({z2:1,shape:E,style:k})}if(y.hasItemOption){var V=y.getItemModel(I),H=V.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),S=V.getModel(["select","itemStyle"]).getItemStyle(),b=V.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),M=H.get("disabled"),x=Te(V)}L.shape.r=b;var W=e.getRawValue(I),X="-";W&&W[2]!=null&&(X=W[2]+""),Ie(L,x,{labelFetcher:e,labelDataIndex:I,defaultOpacity:k.opacity,defaultText:X}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Jt(L,T,C,M),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new _9;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var v=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=e.dataToPoint([w,T]);return M[0]-=v,M[1]-=h,M.push(C),M}),S=n.getExtent(),b=n.type==="visualMap.continuous"?x9(S,n.option.range):S9(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Fe({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Xt);const w9=b9;var T9=function(r){z(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,a){return cn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Nu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:G.color.primary}}},t}(te);const C9=T9;function A9(r){r.registerChartView(w9),r.registerSeriesModel(C9)}var M9=["itemStyle","borderWidth"],eT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Tp=new Jn,D9=function(r){z(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,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:eT[+f],categoryDim:eT[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=aT(o,d),g=rT(o,d,p,v),y=nT(o,v,g);o.setItemGraphicEl(d,y),i.add(y),oT(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=aT(o,d),m=rT(o,d,y,v),_=Dk(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?O9(g,v,m):g=nT(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),oT(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&iT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){iT(i,pt(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Xt);function rT(r,t,e,a){var n=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,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),v={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};L9(e,i,n,a,v),I9(r,t,n,i,o,v.boundingLength,v.pxSign,f,a,v),P9(e,v.symbolScale,u,a,v);var h=v.symbolSize,d=_o(e.get("symbolOffset"),h);return k9(e,h,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function L9(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(U(o)){var c=[Cp(s,o[0])-l,Cp(s,o[1])-l];c[1]=0?1:-1:f>0?1:-1}function Cp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function I9(r,t,e,a,n,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,v=Math.abs(e[c.wh]),h=r.getItemVisual(t,"symbolSize"),d;U(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[c.index]=J(d[c.index],v),d[f.index]=J(d[f.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function P9(r,t,e,a,n){var i=r.get(M9)||0;i&&(Tp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Tp.updateTransform(),i/=Tp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function k9(r,t,e,a,n,i,o,s,l,u,f,c){var v=f.categoryDim,h=f.valueDim,d=c.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=Ve(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=J(m,t[h.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=zM(a),T=w?a:sT((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?sT((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var M=d*(g/2),D=c.pathPosition=[];D[v.index]=e[v.wh]/2,D[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=c.bundlePosition=[];I[v.index]=e[v.xy],I[h.index]=e[h.xy];var L=c.barRectShape=$({},e);L[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(D[h.index]+M)),L[v.wh]=e[v.wh];var k=c.clipShape={};k[v.xy]=-e[v.xy],k[v.wh]=f.ecSize[v.wh],k[h.xy]=0,k[h.wh]=e[h.wh]}function wk(r){var t=r.symbolPatternSize,e=me(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Tk(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(u_(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Ck(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ps(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=wk(e),n.add(i),ps(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,a))}function Ak(r,t,e){var a=$({},t.barRectShape),n=r.__pictorialBarRect;n?ps(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Mt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Mk(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=$({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)Et(n,{shape:i},s,l);else{i[o.wh]=0,n=new Mt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],po[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function aT(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=R9,e.isAnimationEnabled=E9,e}function R9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function E9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nT(r,t,e,a){var n=new lt,i=new lt;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Tk(n,t,e):Ck(n,t,e),Ak(n,e,a),Mk(n,t,e,a),n.__pictorialShapeStr=Dk(r,e),n.__pictorialSymbolMeta=e,n}function O9(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;Et(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Tk(r,t,e,!0):Ck(r,t,e,!0),Ak(r,e,!0),Mk(r,t,e,!0)}function iT(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];u_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Wn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Dk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function u_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function ps(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&po[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function oT(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),v=i.get("scale");u_(r,function(p){if(p instanceof Fe){var g=p.style;p.useStyle($({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Ie(d,Te(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Ts(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),Jt(r,f,c,i.get("disabled"))}function sT(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const N9=D9;var B9=function(r){z(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=ti(vv.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:G.color.primary}}}),t}(vv);const z9=B9;function V9(r){r.registerChartView(N9),r.registerSeriesModel(z9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(W2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$2("pictorialBar"))}var G9=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function v(g){return g.name}var h=new nn(this._layersSeries||[],l,v,v),d=[];h.add(tt(p,this,"add")).update(tt(p,this,"update")).remove(tt(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=c)}return{y0:n,max:i}}function Z9(r){r.registerChartView(H9),r.registerSeriesModel($9),r.registerLayout(U9),r.registerProcessor($s("themeRiver"))}var X9=2,q9=4,K9=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=X9,o.textConfig={inside:!0},pt(o).seriesIndex=a.seriesIndex;var s=new Rt({z2:q9,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;pt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),c=$({},f);c.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var h=a.getVisual("decal");h&&(v.decal=xs(h,o));var d=Ca(l.getModel("itemStyle"),c,!0);$(c,d),A(er,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Ca(S,c);b&&(_.shape=b)}),e?(s.setShape(c),s.shape.r=f.r0,jt(s,{shape:{r:f.r}},n,a.dataIndex)):(Et(s,{shape:c},n),Gr(s)),s.useStyle(v),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Ql(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Jt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,v=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)k&&!au(P-k)&&P0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new uT(m,e,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";qc(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$y,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Xt);const tZ=Q9;var eZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Lk(n);var i=this._levelModels=Y(e.levels||[],function(l){return new Ot(l,this,a)},this),o=$0.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),v=i[c.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Sh(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){kP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(te);function Lk(r){var t=0;A(r.children,function(a){Lk(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}const rZ=eZ;var cT=Math.PI/180;function aZ(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");U(i)||(i=[0,i]),U(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=J(n[0],o),f=J(n[1],s),c=J(i[0],l/2),v=J(i[1],l/2),h=-a.get("startAngle")*cT,d=a.get("minAngle")*cT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&Ik(g,m);var _=0;A(g.children,function(P){!isNaN(P.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(v-c)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(P,O){if(P){var E=O;if(P!==p){var B=P.getValue(),V=S===0&&M?b:B*b;V1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&Q(s)&&(s=mg(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");$(u,l)})})}function oZ(r){r.registerChartView(tZ),r.registerSeriesModel(rZ),r.registerLayout(xt(aZ,"sunburst")),r.registerProcessor(xt($s,"sunburst")),r.registerVisual(iZ),J9(r)}var vT={color:"fill",borderColor:"stroke"},sZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ka=Dt(),lZ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return cn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Ka(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(te);const uZ=lZ;function fZ(r,t){return t=t||[0,0],Y(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function cZ(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(fZ,r)}}}function vZ(r,t){return t=t||[0,0],Y([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function hZ(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:tt(vZ,r)}}}function dZ(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function pZ(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(dZ,r)}}}function gZ(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function yZ(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:tt(gZ,r)}}}function mZ(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function _Z(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function Pk(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||et(r,"text")))}function kk(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},et(a,"text")&&(o.text=a.text),et(a,"rich")&&(o.rich=a.rich),et(a,"textFill")&&(o.fill=a.textFill),et(a,"textStroke")&&(o.stroke=a.textStroke),et(a,"fontFamily")&&(o.fontFamily=a.fontFamily),et(a,"fontSize")&&(o.fontSize=a.fontSize),et(a,"fontStyle")&&(o.fontStyle=a.fontStyle),et(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=et(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),et(a,"textPosition")&&(n.position=a.textPosition),et(a,"textOffset")&&(n.offset=a.textOffset),et(a,"textRotation")&&(n.rotation=a.textRotation),et(a,"textDistance")&&(n.distance=a.textDistance)}return hT(o,r),A(o.rich,function(l){hT(l,l)}),{textConfig:n,textContent:i}}function hT(r,t){t&&(t.font=t.textFont||t.font,et(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),et(t,"textAlign")&&(r.align=t.textAlign),et(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),et(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),et(t,"textWidth")&&(r.width=t.textWidth),et(t,"textHeight")&&(r.height=t.textHeight),et(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),et(t,"textPadding")&&(r.padding=t.textPadding),et(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),et(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),et(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),et(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),et(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),et(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),et(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function dT(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||G.color.neutral99;pT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||G.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||G.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){pT(s,s)}),a}function pT(r,t){t&&(et(t,"fill")&&(r.textFill=t.fill),et(t,"stroke")&&(r.textStroke=t.fill),et(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),et(t,"font")&&(r.font=t.font),et(t,"fontStyle")&&(r.fontStyle=t.fontStyle),et(t,"fontWeight")&&(r.fontWeight=t.fontWeight),et(t,"fontSize")&&(r.fontSize=t.fontSize),et(t,"fontFamily")&&(r.fontFamily=t.fontFamily),et(t,"align")&&(r.textAlign=t.align),et(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),et(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),et(t,"width")&&(r.textWidth=t.width),et(t,"height")&&(r.textHeight=t.height),et(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),et(t,"padding")&&(r.textPadding=t.padding),et(t,"borderColor")&&(r.textBorderColor=t.borderColor),et(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),et(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),et(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),et(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),et(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),et(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),et(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),et(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),et(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),et(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Rk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},gT=It(Rk);Ia(ka,function(r,t){return r[t]=1,r},{});ka.join(", ");var bv=["","style","shape","extra"],Ds=Dt();function f_(r,t,e,a,n){var i=r+"Animation",o=Ns(r,a,n)||{},s=Ds(t).userDuring;return o.duration>0&&(o.during=s?tt(TZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),$(o,e[i]),o}function Cc(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=Ds(r),u=t.style;l.userDuring=t.during;var f={},c={};if(AZ(r,t,c),r.type==="compound")for(var v=r.shape.paths,h=t.shape.paths,d=0;d0&&r.animateFrom(g,y)}else xZ(r,t,n||0,e,f);Ek(r,t),u?r.dirty():r.markRedraw()}function Ek(r,t){for(var e=Ds(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function bZ(r,t){et(t,"silent")&&(r.silent=t.silent),et(t,"ignore")&&(r.ignore=t.ignore),r instanceof Vr&&et(t,"invisible")&&(r.invisible=t.invisible),r instanceof Lt&&et(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var ha={},wZ={setTransform:function(r,t){return ha.el[r]=t,this},getTransform:function(r){return ha.el[r]},setShape:function(r,t){var e=ha.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=ha.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=ha.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=ha.el.style;if(t)return t[r]},setExtra:function(r,t){var e=ha.el.extra||(ha.el.extra={});return e[r]=t,this},getExtra:function(r){var t=ha.el.extra;if(t)return t[r]}};function TZ(){var r=this,t=r.el;if(t){var e=Ds(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}ha.el=t,a(wZ)}}function yT(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),eo(l))$(o,i);else for(var u=Ut(l),f=0;f=0){!o&&(o=a[r]={});for(var h=It(i),f=0;f=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=a.style={});for(var d=It(e),u=0;u=0?t.getStore().get(E,P):void 0}var B=t.get(O.name,P),V=O&&O.ordinalMeta;return V?V.categories[B]:B}function w(R,P){P==null&&(P=f);var O=t.getItemVisual(P,"style"),E=O&&O.fill,B=O&&O.opacity,V=_(P,Rn).getItemStyle();E!=null&&(V.fill=E),B!=null&&(V.opacity=B);var H={inheritColor:Q(E)?E:G.color.neutral99},W=S(P,Rn),X=Zt(W,null,H,!1,!0);X.text=W.getShallow("show")?nt(r.getFormattedLabel(P,Rn),Ts(t,P)):null;var j=Zc(W,H,!1);return M(R,V),V=dT(V,X,j),R&&C(V,R),V.legacy=!0,V}function T(R,P){P==null&&(P=f);var O=_(P,ja).getItemStyle(),E=S(P,ja),B=Zt(E,null,null,!0,!0);B.text=E.getShallow("show")?_r(r.getFormattedLabel(P,ja),r.getFormattedLabel(P,Rn),Ts(t,P)):null;var V=Zc(E,null,!0);return M(R,O),O=dT(O,B,V),R&&C(O,R),O.legacy=!0,O}function C(R,P){for(var O in P)et(P,O)&&(R[O]=P[O])}function M(R,P){R&&(R.textFill&&(P.textFill=R.textFill),R.textPosition&&(P.textPosition=R.textPosition))}function D(R,P){if(P==null&&(P=f),et(vT,R)){var O=t.getItemVisual(P,"style");return O?O[vT[R]]:null}if(et(sZ,R))return t.getItemVisual(P,R)}function I(R){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return e3(vt({axis:P},R))}}function L(){return e.getCurrentSeriesIndices()}function k(R){return Ym(R,e)}}function zZ(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Ip(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=p_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Jt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function p_(r,t,e,a,n,i){var o=-1,s=t;t&&zk(t,a,n)&&(o=bt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=h_(a),s&&RZ(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Ar.normal.cfg=Ar.normal.conOpt=Ar.emphasis.cfg=Ar.emphasis.conOpt=Ar.blur.cfg=Ar.blur.conOpt=Ar.select.cfg=Ar.select.conOpt=null,Ar.isLegacy=!1,GZ(u,e,a,n,l,Ar),VZ(u,e,a,n,l),d_(r,u,e,a,Ar,n,l),et(a,"info")&&(Ka(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function zk(r,t,e){var a=Ka(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&UZ(i)&&Vk(i)!==a.customPathData||n==="image"&&et(o,"image")&&o.image!==a.customImagePath}function VZ(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&zk(o,i,a)&&(o=null),o||(o=h_(i),r.setClipPath(o)),d_(null,o,t,i,null,a,n)}}function GZ(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){_T(e,null,i),_T(e,ja,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=h_(o),r.setTextContent(f)),d_(null,f,t,o,null,a,n);for(var c=o&&o.style,v=0;v=f;h--){var d=t.childAt(h);HZ(t,d,n)}}}function HZ(r,t,e){t&&wh(t,Ka(r).option,e)}function WZ(r){new nn(r.oldChildren,r.newChildren,ST,ST,r).add(xT).update(xT).remove($Z).execute()}function ST(r,t){var e=r&&r.name;return e??PZ+t}function xT(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;p_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function $Z(r){var t=this.context,e=t.oldChildren[r];e&&wh(e,Ka(e).option,t.seriesModel)}function Vk(r){return r&&(r.pathData||r.d)}function UZ(r){return r&&(et(r,"pathData")||et(r,"d"))}function YZ(r){r.registerChartView(OZ),r.registerSeriesModel(uZ)}var Oi=Dt(),bT=st,Pp=tt,ZZ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new lt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=xt(wT,e,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}CT(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=B0(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Oi(t).pointerEl=new po[i.type](bT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Oi(t).labelEl=new Rt(bT(e.label));t.add(i),TT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Oi(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Oi(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),TT(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Ru(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){tn(u.event)},onmousedown:Pp(this._onHandleDragMove,this,0,0),drift:Pp(this._onHandleDragMove,this),ondragend:Pp(this._onHandleDragEnd,this)}),a.add(n)),CT(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Fs(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){wT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,kp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(kp(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(kp(n)),Oi(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.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(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),vu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function wT(r,t,e,a){Gk(Oi(e).lastProp,a)||(Oi(e).lastProp=a,t?Et(e,a,r):(e.stopAnimation(),e.attr(a)))}function Gk(r,t){if(ht(r)&&ht(t)){var e=!0;return A(t,function(a,n){e=e&&Gk(r[n],a)}),!!e}else return r===t}function TT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function kp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function CT(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const y_=ZZ;function m_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function Fk(r,t,e,a,n){var i=e.get("value"),o=Hk(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Eu(s.get("padding")||0),u=s.getFont(),f=Uv(o,u),c=n.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),XZ(c,v,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function XZ(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-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 Hk(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:nv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Q(o)?i=o.replace("{value}",i):ot(o)&&(i=o(s))}return i}function __(r,t,e){var a=Oe();return jn(a,a,e.rotation),Pa(a,a,e.position),Kr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function Wk(r,t,e,a,n,i){var o=on.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Fk(t,a,n,i,{position:__(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function S_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function $k(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function AT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var qZ=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=MT(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=m_(i),h=KZ[u](s,c,f);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=pv(l.getRect(),n);Wk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=pv(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=__(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=MT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(y_);function MT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var KZ={line:function(r,t,e){var a=S_([t,e[0]],[t,e[1]],DT(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:$k([t-a/2,e[0]],[a,n],DT(r))}}};function DT(r){return r.dim==="x"?0:1}const jZ=qZ;var JZ=function(r){z(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:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.color.accent60,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:G.color.accent40,throttle:40}},t}(kt);const QZ=JZ;var Za=Dt(),tX=A;function Uk(r,t,e){if(!Nt.node){var a=t.getZr();Za(a).records||(Za(a).records={}),eX(a,t);var n=Za(a).records[r]||(Za(a).records[r]={});n.handler=e}}function eX(r,t){if(Za(r).initialized)return;Za(r).initialized=!0,e("click",xt(LT,"click")),e("mousemove",xt(LT,"mousemove")),e("globalout",aX);function e(a,n){r.on(a,function(i){var o=nX(t);tX(Za(r).records,function(s){s&&n(s,i,o.dispatchAction)}),rX(o.pendings,t)})}}function rX(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function aX(r,t,e){r.handler("leave",null,e)}function LT(r,t,e,a){t.handler(r,e,a)}function nX(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Zy(r,t){if(!Nt.node){var e=t.getZr(),a=(Za(e).records||{})[r];a&&(Za(e).records[r]=null)}}var iX=function(r){z(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,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Uk("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Zy("axisPointer",a)},t.prototype.dispose=function(e,a){Zy("axisPointer",a)},t.type="axisPointer",t}(re);const oX=iX;function Yk(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ao(i,r);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(Y(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var IT=Dt();function sX(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||tt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ac(n)&&(n=Yk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Ac(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||Ac(n),v={},h={},d={list:[],map:{}},p={showPointer:xt(uX,h),showTooltip:xt(fX,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=dX(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&PT(S,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,b){var x=h[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,kT(S),kT(y)))),g[y.key]=w}})}),A(g,function(y,m){PT(f[m],y,p,!0,v)}),cX(h,f,v),vX(d,n,r,o),hX(f,o,e),v}}function PT(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=lX(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&$(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function lX(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,e);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=c,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function uX(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function fX(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=xu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function cX(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function vX(r,t,e,a){if(Ac(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function hX(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=IT(a)[n]||{},o=IT(a)[n]={};A(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&A(c.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&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 dX(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function kT(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Ac(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Uu(r){bo.registerAxisPointerClass("CartesianAxisPointer",jZ),r.registerComponentModel(QZ),r.registerComponentView(oX),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!U(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=WW(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sX)}function pX(r){Tt(dP),Tt(Uu)}var gX=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var h=m_(i),d=mX[v](s,l,c,f);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=yX(a,n,i,l,p);Fk(e,n,i,o,g)},t}(y_);function yX(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var v=Oe();jn(v,v,s),Pa(v,v,[a.cx,a.cy]),u=Kr([o,-n],v);var h=t.getModel("axisLabel").get("rotate")||0,d=on.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var mX={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:S_(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:AT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:AT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const _X=gX;var SX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(kt);const xX=SX;var x_=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ae).models[0]},t.type="polarAxis",t}(kt);_e(x_,Vu);var bX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(x_),wX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(x_),b_=function(r){z(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(na);b_.prototype.dataToRadius=na.prototype.dataToCoord;b_.prototype.radiusToData=na.prototype.coordToData;const TX=b_;var CX=Dt(),w_=function(r){z(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Uv(s==null?"":s+"",a.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=CX(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(na);w_.prototype.dataToAngle=na.prototype.dataToCoord;w_.prototype.angleToData=na.prototype.coordToData;const AX=w_;var Zk=["radius","angle"],MX=function(){function r(t){this.dimensions=Zk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new TX,this._angleAxis=new AX,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,v=this.r,h=this.r0;return v!==h&&c-o<=v*v&&c+o>=h*h},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=RT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=RT(e);return n===this?this.pointToData(a):null},r}();function RT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const DX=MX;function LX(r,t,e){var a=t.get("center"),n=Ce(t,e).refContainer;r.cx=J(a[0],n.width)+n.x,r.cy=J(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:U(s)||(s=[0,s]);var l=[J(s[0],o),J(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function IX(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(iv(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(iv(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),bs(a.scale,a.model),bs(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function PX(r){return r.mainType==="angleAxis"}function ET(r,t){var e;if(r.type=t.get("type"),r.scale=hh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),PX(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var kX={dimensions:Zk,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new DX(n+"");i.update=IX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");ET(o,l),ET(s,u),LX(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",ae).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const RX=kX;var EX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Yf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Zf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function OT(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var OX=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=Y(n.getViewLabels(),function(f){f=st(f);var c=n.scale,v=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});OT(u),OT(s),A(EX,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&NX[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(bo),NX={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Zf(e),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new po[h]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new th({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Zf(e)],u=Y(a,function(f){return new be({shape:Yf(e,[l,l+s],f.coord)})});r.add(Er(u,{style:vt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Zf(e)],f=[],c=0;cy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];ht(b)&&b.textStyle&&(h=new Ot(b.textStyle,l,l.ecModel))}var x=new Rt({silent:on.isLabelSilent(t),style:Zt(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),fn({el:x,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=on.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,pt(x).eventData=w}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c=0?"p":"n",R=C;b&&(a[f][L]||(a[f][L]={p:C,n:C}),R=a[f][L][k]);var P=void 0,O=void 0,E=void 0,B=void 0;if(d.dim==="radius"){var V=d.dataToCoord(I)-C,H=l.dataToCoord(L);Math.abs(V)=B})}}})}function $X(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=qk(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=c.stacks;t[l]=c;var h=Xk(a);v[h]||c.autoWidthCount++,v[h]=v[h]||{width:0,maxWidth:0};var d=J(a.get("barWidth"),f),p=J(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[h].width&&(d=Math.min(c.remainedWidth,d),v[h].width=d,c.remainedWidth-=d),p&&(v[h].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=J(a.categoryGap,o),l=J(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),A(i,function(p,g){var y=p.maxWidth;y&&y=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=NT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=NT(e);return n===this?this.pointToData(a):null},r}();function NT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function rq(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new eq(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",ae).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var aq={create:rq,dimensions:jk};const nq=aq;var BT=["x","y"],iq=["width","height"],oq=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Ep(l,1-Cv(s)),f=l.dataToPoint(a)[0],c=i.get("type");if(c&&c!=="none"){var v=m_(i),h=sq[c](s,f,u);h.style=v,e.graphicKey=h.type,e.pointer=h}var d=Xy(n);Wk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Xy(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=__(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Cv(o),u=Ep(s,l),f=[e.x,e.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Ep(s,1-l),v=(c[1]+c[0])/2,h=[v,v];return h[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(y_),sq={line:function(r,t,e){var a=S_([t,e[0]],[t,e[1]],Cv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:$k([t-a/2,e[0]],[a,n],Cv(r))}}};function Cv(r){return r.isHorizontal()?0:1}function Ep(r,t){var e=r.getRect();return[e[BT[t]],e[BT[t]]+e[iq[t]]]}const lq=oq;var uq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(re);function fq(r){Tt(Uu),bo.registerAxisPointerClass("SingleAxisPointer",lq),r.registerComponentView(uq),r.registerComponentView(JX),r.registerComponentModel(Rp),Cs(r,"single",Rp,Rp.defaultOption),r.registerCoordinateSystem("single",nq)}var cq=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=yo(e);r.prototype.init.apply(this,arguments),zT(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),zT(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:G.color.axisLine,width:1,type:"solid"}},itemStyle:{color:G.color.neutral00,borderWidth:1,borderColor:G.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:G.size.s,color:G.color.secondary},monthLabel:{show:!0,position:"start",margin:G.size.s,align:"center",formatter:null,color:G.color.secondary},yearLabel:{show:!0,position:null,margin:G.size.xl,formatter:null,color:G.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(kt);function zT(r,t){var e=r.cellSize,a;U(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=Y([0,1],function(i){return PV(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ea(r,t,{type:"box",ignoreSize:n})}const vq=cq;var hq=function(r){z(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,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new Mt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,v=0;c.time<=a.end.time;v++){d(c.formatedDate),v===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Xe({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return Q(e)&&e?TV(e,a):ot(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,h={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],c],right:[u[v][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Rt({z2:30,style:Zt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Q(s))&&(s&&(a=Ug(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g=i.start.time&&n.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Op)-Math.floor(e[0].time/Op)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),c=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&en.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Ou({targetModel:i,coordSysType:"calendar",coordSysProvider:fL})}),a},r.dimensions=["time","value"],r}();function Np(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const gq=pq;function yq(r){r.registerComponentModel(vq),r.registerComponentView(dq),r.registerCoordinateSystem("calendar",gq)}var Ua={level:1,leaf:2,nonLeaf:3},Ja={none:0,all:1,body:2,corner:3};function qy(r,t,e){var a=t[yt[e]].getCell(r);return!a&&Pt(r)&&r<0&&(a=t[yt[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function Jk(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function Qk(r,t,e,a,n){VT(r[0],t,n,e,a,0),VT(r[1],t,n,e,a,1)}function VT(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=U(o)?o:[o],l=s.length,u=!!e;if(l>=1?(GT(r,t,s,u,n,i,0),l>1&>(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[yt[1-i]].getLocatorCount(i),c=n[yt[i]].getLocatorCount(i)-1;e===Ja.body?f=ue(0,f):e===Ja.corner&&(c=Sr(-1,c)),c=t[0]&&r[0]<=t[1]}function WT(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function Sq(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function $T(r,t,e,a){var n=qy(t[a][0],e,a),i=qy(t[a][1],e,a);r[yt[a]]=r[ge[a]]=NaN,n&&i&&(r[yt[a]]=n.xy,r[ge[a]]=i.xy+i.wh-n.xy)}function ml(r,t,e,a){return r[yt[t]]=e,r[yt[1-t]]=a,r}function xq(r){return r&&(r.type===Ua.leaf||r.type===Ua.nonLeaf)?r:null}function Av(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var UT=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=bq(t);var a=e.get("data",!0);a!=null&&!U(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,c){var v=0;return u&&A(u,function(h,d){var p;Q(h)?p={value:h}:ht(h)?(p=h,h.value!=null&&!Q(h.value)&&(p={value:null})):p={value:null};var g={type:Ua.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new ct,span:ml(new ct,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:Av()};o++,(i[f]||(i[f]=[])).push(g),n[c]||(n[c]={type:Ua.level,xy:NaN,wh:NaN,option:null,id:new ct,dim:e});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[yt[e.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];a.length=1,_=e[yt[a]],S=i.getLocatorCount(a)-1,b=new zn;for(o.resetLayoutIterator(b,a);b.next();)x(b.item);for(i.resetLayoutIterator(b,a);b.next();)x(b.item);function x(w){Ue(w.wh)&&(w.wh=y),w.xy=_,w.id[yt[a]]===S&&!m&&(w.wh=e[yt[a]]+e[ge[a]]-w.xy),_+=w.wh}}function JT(r,t){for(var e=t[yt[r]].resetCellIterator();e.next();){var a=e.item;Mv(a.rect,r,a.id,a.span,t),Mv(a.rect,1-r,a.id,a.span,t),a.type===Ua.nonLeaf&&(a.xy=a.rect[yt[r]],a.wh=a.rect[ge[r]])}}function QT(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Mv(n,0,i,a,t),Mv(n,1,i,a,t)}})}function Mv(r,t,e,a,n){r[ge[t]]=0;var i=e[yt[t]],o=i<0?n[yt[1-t]]:n[yt[t]],s=o.getUnitLayoutInfo(t,e[yt[t]]);if(r[yt[t]]=s.xy,r[ge[t]]=s.wh,a[yt[t]]>1){var l=o.getUnitLayoutInfo(t,e[yt[t]]+a[yt[t]]-1);r[ge[t]]=l.xy+l.wh-s.xy}}function Bq(r,t,e){var a=Fc(r,e[ge[t]]);return jy(a,e[ge[t]])}function jy(r,t){return Math.max(Math.min(r,nt(t,1/0)),0)}function Vp(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var ze={inBody:1,inCorner:2,outside:3},ca={x:null,y:null,point:[]};function tC(r,t,e,a,n){var i=e[yt[t]],o=e[yt[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=r.point[t]=a[t];if(!l&&!f){r[yt[t]]=ze.outside;return}if(n===Ja.body){l?(r[yt[t]]=ze.inBody,c=Sr(s.xy+s.wh,ue(l.xy,c)),r.point[t]=c):r[yt[t]]=ze.outside;return}else if(n===Ja.corner){f?(r[yt[t]]=ze.inCorner,c=Sr(f.xy+f.wh,ue(u.xy,c)),r.point[t]=c):r[yt[t]]=ze.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:v,d=s?s.xy+s.wh:v;if(cd){if(!n){r[yt[t]]=ze.outside;return}c=d}r.point[t]=c,r[yt[t]]=v<=c&&c<=d?ze.inBody:h<=c&&c<=v?ze.inCorner:ze.outside}function eC(r,t,e,a){var n=1-e;if(r[yt[e]]!==ze.outside)for(a[yt[e]].resetCellIterator(zp);zp.next();){var i=zp.item;if(aC(r.point[e],i.rect,e)&&aC(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[yt[n]];return}}}function rC(r,t,e,a){if(r[yt[e]]!==ze.outside){var n=r[yt[e]]===ze.inCorner?a[yt[1-e]]:a[yt[e]];for(n.resetLayoutIterator(Jf,e);Jf.next();)if(zq(r.point[e],Jf.item)){t[e]=Jf.item.id[yt[e]];return}}}function zq(r,t){return t.xy<=r&&r<=t.xy+t.wh}function aC(r,t,e){return t[yt[e]]<=r&&r<=t[yt[e]]+t[ge[e]]}const Vq=Nq;function Gq(r){r.registerComponentModel(Mq),r.registerComponentView(Oq),r.registerCoordinateSystem("matrix",Vq)}function Fq(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function nC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function Hq(r,t,e){var a=$({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(wt(n,a,!0),Ea(n,a,{ignoreSize:!0}),pL(e,n),Qf(e,n),Qf(e,n,"shape"),Qf(e,n,"style"),Qf(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var eR=["transition","enterFrom","leaveTo"],Wq=eR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qf(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?eR:Wq,n=0;n=0;f--){var c=n[f],v=xe(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=Pr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=sh(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Pr(h).isNew&&S){for(var b=c.transition,x={},w=0;w=0)?x[T]=C:h[T]=C}Et(h,x,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Mc(n,Pr(n).option,a,e._lastGraphicModel)}),this._elMap=rt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(re);function Jy(r){var t=et(iC,r)?iC[r]:Yc(r),e=new t({});return Pr(e).type=r,e}function oC(r,t,e,a){var n=Jy(e);return t.add(n),a.set(r,n),Pr(n).id=r,Pr(n).isNew=!0,n}function Mc(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Mc(i,t,e,a)}),wh(r,t,a),e.removeKey(Pr(r).id))}function sC(r,t,e,a){r.isGroup||A([["cursor",Vr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];et(t,i)?r[i]=nt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(It(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=ot(i)?i:null}}),et(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Zq(r){return r=$({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(cL),function(t){delete r[t]}),r}function Xq(r,t,e){var a=pt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=pt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function qq(r){r.registerComponentModel(Uq),r.registerComponentView(Yq),r.registerPreprocessor(function(t){var e=t.graphic;U(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var lC=["x","y","radius","angle","single"],Kq=["cartesian2d","polar","singleAxis"];function jq(r){var t=r.get("coordinateSystem");return bt(Kq,t)>=0}function En(r){return r+"Axis"}function Jq(r,t){var e=rt(),a=[],n=rt();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(v,h){var d=e.get(v);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,v){(e.get(c)||e.set(c,[]))[v]=!0})}return a}function rR(r){var t=r.ecModel,e={infoList:[],infoMap:rt()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(En(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Gp=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}(),Qq=function(r){z(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,a,n){var i=uC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=uC(e);wt(this.option,e,!0),wt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=rt(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(lC,function(n){var i=this.getReferringComponents(En(n),qN);if(i.specified){a=!0;var o=new Gp;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var c=u[0];if(c){var v=new Gp;if(v.add(c.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",ae).models[0];h&&A(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ae).models[0]&&v.add(d.componentIndex)})}}}i&&A(lC,function(u){if(i){var f=n.findComponents({mainType:En(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new Gp;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(En(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(En(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=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 es(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});es(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;es(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Gt(a[0]+o,a,[0,100],!0):i!=null&&(o=Gt(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=OM(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function oK(r,t,e){var a=[1/0,-1/0];es(e,function(o){x3(a,o.getData(),t)});var n=r.getAxisModel(),i=j2(n.axis.scale,n,a).calculate();return[i.min,i.max]}const sK=iK;var lK={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(En(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new sK(n,i,s,r),e.push(o.__dzAxisProxy))});var a=rt();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const uK=lK;function fK(r){r.registerAction("dataZoom",function(t,e){var a=Jq(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var cC=!1;function M_(r){cC||(cC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,uK),fK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function cK(r){r.registerComponentModel(eK),r.registerComponentView(nK),M_(r)}var Rr=function(){function r(){}return r}(),aR={};function rs(r,t){aR[r]=t}function nR(r){return aR[r]}var vK=function(r){z(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;A(this.option.feature,function(a,n){var i=nR(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),wt(a,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:G.color.border,borderRadius:0,borderWidth:0,padding:G.size.m,itemSize:15,itemGap:G.size.s,showTitle:!0,iconStyle:{borderColor:G.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:G.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(kt);const hK=vK;function iR(r,t){var e=Eu(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new Mt({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:a,silent:!0,z2:-1});return n}var dK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,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")||{},f=this._features||(this._features={}),c=[];A(u,function(m,_){c.push(_)}),new nn(this._featureNames||[],c).add(v).update(v).remove(xt(v,null)).execute(),this._featureNames=c;function v(m,_){var S=c[m],b=c[_],x=u[S],w=new Ot(x,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!b){if(pK(S))T={onclick:w.option.onclick,featureName:S};else{var C=nR(S);if(!C)return;T=new C}f[S]=T}else if(T=f[b],!T)return;T.uid=zs("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof Rr;if(!S&&b){M&&T.dispose&&T.dispose(a,n);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(a,n);return}h(w,T,S),w.setIconStatus=function(D,I){var L=this.option,k=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,k[D]&&(I==="emphasis"?rn:an)(k[D])},T instanceof Rr&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var b=m.getModel("iconStyle"),x=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Rr&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;Q(w)?(C={},C[S]=w):C=w,Q(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var k=Ru(I,{},{x:-s/2,y:-s/2,width:s,height:s});k.setStyle(b.getItemStyle());var R=k.ensureState("emphasis");R.style=x.getItemStyle();var P=new Rt({style:{text:M[L],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:Ym({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},a)},ignore:!0});k.setTextContent(P),fn({el:k,componentModel:e,itemName:L,formatterParamsExtra:{title:M[L]}}),k.__title=M[L],k.on("mouseover",function(){var O=x.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:x.get("textFill")||O.fill||O.stroke||G.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),k.setTextConfig({position:x.get("textPosition")||E}),P.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),P.hide()}),(m.get(["iconStatus",L])==="emphasis"?rn:an)(k),o.add(k),k.on("click",tt(_.onclick,_,a,n,L)),D[L]=k})}var d=Ce(e,n).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=Qt(p,d,g);Ji(e.get("orient"),o,e.get("itemGap"),y.width,y.height),sh(o,p,d,g),o.add(iR(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=m.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!ot(w)&&_){var T=w.style||(w.style={}),C=Uv(_,Rt.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(b.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(b.position=["100%",L],T.align="right"):M-C.width/2<0&&(b.position=[0,L],T.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Rr&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Rr&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Rr&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(re);function pK(r){return r.indexOf("my")===0}const gK=dK;var yK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||G.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Nt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,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=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:G.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Rr);const mK=yK;var vC="__ec_magicType_stack__",_K=[["line","bar"],["stack"]],SK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(hC[n]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=hC[n](v,h,c,i);d&&(vt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ae).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(_K,function(c){bt(c,n)>=0&&A(c,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=wt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Rr),hC={line:function(r,t,e,a){if(r==="bar")return wt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return wt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===vC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),wt({id:t,stack:n?"":vC},a.get(["option","stack"])||{},!0)}};Na({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const xK=SK;var Th=new Array(60).join("-"),Ls=" ";function bK(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function wK(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Y(e.series,function(h){return h.name})),l=[n.model.getCategories()];A(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ls)],f=0;f=0)return!0}var Qy=new RegExp("["+Ls+"]+","g");function MK(r){for(var t=r.split(/\n+/g),e=Dv(t.shift()).split(Qy),a=[],n=Y(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function EK(r){var t=D_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return oR(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function OK(r){sR(r).snapshots=null}function NK(r){return D_(r).length}function D_(r){var t=sR(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var BK=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){OK(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Rr);Na({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const zK=BK;var VK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],GK=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=dC(e,t);A(FK,function(o,s){(!a||!a.include||bt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Fp[a.brushType](0,i,n);a.__rangeOffset={offset:mC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=Fp[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Fp[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?mC[a.brushType](i.values,o.offset,HK(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:ck(n),isTargetByCursor:hk(n,t,a.coordSysModel),getLinearBrushOtherExtent:vk(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&bt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=dC(e,t),i=0;ir[1]&&r.reverse(),r}function dC(r,t){return vs(r,t,{includeMainTypes:VK})}var FK={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=rt(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(c,v){(bt(e,c.getAxis("x").model)>=0||bt(a,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:gC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:gC.geo})})}},pC=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],gC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ji(r)),t}},Fp={lineX:xt(yC,0),lineY:xt(yC,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[tm([n[0],i[0]]),tm([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function yC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=tm(Y([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var mC={lineX:xt(_C,0),lineY:xt(_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 Y(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function _C(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function HK(r,t){var e=SC(r),a=SC(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function SC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const L_=GK;var em=A,WK=$N("toolbox-dataZoom_"),$K=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new i_(n.getZr()),this._brushController.on("brush",tt(this._onBrush,this)).mount()),ZK(e,a,this,i,n),YK(e,a)},t.prototype.onclick=function(e,a,n){UK[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new L_(I_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,c){if(c.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[v],c,f)}}),RK(i,n),this._dispatchZoomAction(n);function s(u,f,c){var v=f.getAxis(u),h=v.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Zn(0,c.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var v;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(e){var a=[];em(e,function(n,i){a.push(st(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:G.color.backgroundTint}};return a},t}(Rr),UK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(EK(this.ecModel))}};function I_(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 YK(r,t){r.setIconStatus("back",NK(t)>1?"emphasis":"normal")}function ZK(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new L_(I_(r),t,{include:["grid"]}),s=o.makePanelOpts(n,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)}zV("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=I_(a),o=vs(r,i);em(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),em(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:WK+u+c};v[f]=c,n.push(v)}return n});const XK=$K;function qK(r){r.registerComponentModel(hK),r.registerComponentView(gK),rs("saveAsImage",mK),rs("magicType",xK),rs("dataView",kK),rs("dataZoom",XK),rs("restore",zK),Tt(cK)}var KK=function(r){z(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,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:G.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:G.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:G.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:G.color.tertiary,fontSize:14}},t}(kt);const jK=KK;function lR(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function uR(r){if(Nt.domSupported){for(var t=document.documentElement.style,e=0,a=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 f=u*Math.PI/180,c=o+n,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function nj(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Nt.transformSupported?""+P_+n:",left"+n+",top"+n)),tj+":"+i}function xC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Nt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Nt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+P_+":"+o+";":[["top",0],["left",0],[fR,o]]}function ij(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=nt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function oj(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),v=qL(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(nj(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=oL(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(ij(c)),v!=null&&n.push("padding:"+Eu(v).join("px ")+"px"),n.join(";")+";"}function bC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&iO(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var sj=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,Nt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(Q(i)?document.querySelector(i):gs(i)?i:ot(i)&&i(t.getDom()));bC(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Dr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=QK(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=ej+oj(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+xC(i[0],i[1],!0)+("border-color:"+lo(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Q(i)&&a.get("trigger")==="item"&&!lR(a)&&(s=aj(a,n,i)),Q(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=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(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Nt.node||!n.getDom())){var o=CC(i,n);this._ticket="";var s=i.dataByCoordSys,l=gj(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=cj;f.x=i.x,f.y=i.y,f.update(),pt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var c=Yk(i,a),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(CC(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),c=Sl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=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(n){var s=pt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Hi(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(pt(f).dataIndex!=null?l=f:pt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=tt(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Sl([a.tooltipOption],i),l=this._renderMode,u=[],f=ye("section",{blocks:[],noHeader:!0}),c=[],v=new xd;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Hk(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ye("section",{header:x,noHeader:!Nr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=nv(S.axis,{value:b}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",lo(D.color),l);var I=BS(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var k=Sl([C],i).get("valueFormatter");w.blocks.push(k?$({valueFormatter:k},L):L)}I.text&&c.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var h=a.position,d=s.get("order"),p=WS(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` + +`:"
",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=pt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=e.positionDefault,p=Sl([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new xd;y.marker=m.makeTooltipMarker("item",lo(y.color),h);var _=BS(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?WS(b?$({valueFormatter:b},x):x,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=pt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=st(l),l.content=$e(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=e.positionDefault,d=Sl(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new xd;this._showOrMove(d,function(){var m=st(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(v)if(Q(v)){var g=e.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=oh(y.axisValue,h,g)),h=sL(h,n,!0)}else if(ot(v)){var _=tt(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;c.setContent(h,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var c=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ot(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),U(a))n=J(a[0],u),i=J(a[1],f);else if(ht(a)){var p=a;p.width=c[0],p.height=c[1];var g=Qt(p,{width:u,height:f});n=g.x,i=g.y,v=null,h=null}else if(Q(a)&&l){var y=pj(a,d,c,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=hj(n,i,o,u,f,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=AC(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=AC(h)?c[1]/2:h==="bottom"?c[1]:0),lR(e)){var y=dj(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Nt.node||!a.getDom()||(vu(this,"_updatePosition"),this._tooltipContent.dispose(),Zy("itemTooltip",a))},t.type="tooltip",t}(re);function Sl(r,t,e){var a=t.ecModel,n;e?(n=new Ot(e,a,a),n=new Ot(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ot&&(o=o.get("tooltip",!0)),Q(o)&&(o={formatter:o}),o&&(n=new Ot(o,n,a)))}return n}function CC(r,t){return r.dispatchAction||tt(t.dispatchAction,t)}function hj(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function dj(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function pj(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function AC(r){return r==="center"||r==="middle"}function gj(r,t,e){var a=Im(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Rs(t,n,a.get(n),{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 f=pt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const yj=vj;function mj(r){Tt(Uu),r.registerComponentModel(jK),r.registerComponentView(yj),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},fe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},fe)}var _j=["rect","polygon","keep","clear"];function Sj(r,t){var e=Ut(r?r.brush:[]);if(e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;U(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),xj(s),t&&!s.length&&s.push.apply(s,_j)}}function xj(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var MC=A;function DC(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function rm(r,t,e){var a={};return MC(t,function(i){var o=a[i]=n();MC(r[i],function(s,l){if(Ge.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ge(u),l==="opacity"&&(u=st(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ge(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function vR(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&DC(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&DC(t[n])?r[n]=st(t[n]):delete r[n]})}function bj(r,t,e,a,n,i){var o={};A(r,function(c){var v=Ge.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return d0(e,s,c)}function u(c,v){i2(e,s,c,v)}i==null?e.each(f):e.each([i],f);function f(c,v){s=i==null?c:v;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=a.call(n,c),p=t[d],g=o[d],y=0,m=g.length;yt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&RC(t)}};function RC(r){return new dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Ij=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new i_(a.getZr())).on("brush",tt(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){hR(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:st(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:st(n),$from:a})},t.type="brush",t}(re);const Pj=Ij;var kj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&vR(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(a){return EC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=EC(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:G.color.backgroundTint,borderColor:G.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:G.color.disabled},t}(kt);function EC(r,t){return wt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ot(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Rj=kj;var Ej=["rect","polygon","lineX","lineY","keep","clear"],Oj=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:Ej.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Rr);const Nj=Oj;function Bj(r){r.registerComponentView(Pj),r.registerComponentModel(Rj),r.registerPreprocessor(Sj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Cj),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},fe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},fe),rs("brush",Nj)}var zj=function(r){z(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:"center",top:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},t}(kt),Vj=function(r){z(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,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=nt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Rt({style:Zt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=e.get("subtext"),h=new Rt({style:Zt(s,{text:v,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){qc(d,"_"+e.get("target"))}),p&&h.on("click",function(){qc(p,"_"+e.get("subtarget"))}),pt(f).eventData=pt(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Ce(e,n),S=Qt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var x=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new Mt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(re);function Gj(r){r.registerComponentModel(zj),r.registerComponentView(Vj)}var Fj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var c=xe(ks(u),""),v;ht(u)?(v=st(u),v.value=f):v=f,o.push(v),i.push(c)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new tr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:G.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:G.color.secondary},data:[]},t}(kt);const OC=Fj;var dR=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=ti(OC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:G.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:G.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:G.color.tertiary},itemStyle:{color:G.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:G.color.accent50,borderColor:G.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:G.color.accent50,borderColor:G.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:G.color.accent60},itemStyle:{color:G.color.accent60,borderColor:G.color.accent60},controlStyle:{color:G.color.accent70,borderColor:G.color.accent70}},progress:{lineStyle:{color:G.color.accent30},itemStyle:{color:G.color.accent40}},data:[]}),t}(OC);_e(dR,uh.prototype);const Hj=dR;var Wj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(re);const $j=Wj;var Uj=function(r){z(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(na);const Yj=Uj;var Wp=Math.PI,NC=Dt(),Zj=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ye("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=qj(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Wp/2},c=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Wp/180;var m,_,S,b=v.get("position",!0),x=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,M=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(x&&(m=[M-d,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-d,0],M-=g));var D=[C,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Oe(),l=o.x,u=o.y+o.height;Pa(s,s,[-l,-u]),jn(s,s,-Wp/2),Pa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(n.getBoundingRect()),v=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=e.labelPosOpt;if(p==null||Q(p)){var g=p==="+"?0:1;_(h,c,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(h,c,f,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=Xj(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Yj("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new lt;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new be({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:$({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new be({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:vt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),c=s.getItemModel(u.value),v=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:tt(o._changeTimeline,o,u.value)},g=BC(c,v,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Ki(g);var y=pt(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var c=f.tickValue,v=l.getItemModel(c),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Rt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:tt(o._changeTimeline,o,c),silent:!1,style:Zt(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Zt(d),y.ensureState("progress").style=Zt(p),a.add(y),Ki(y),NC(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);v(e.nextBtnPosition,"next",tt(this._changeTimeline,this,c?"-":"+")),v(e.prevBtnPosition,"prev",tt(this._changeTimeline,this,c?"+":"-")),v(e.playPosition,f?"stop":"play",tt(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=ta(nt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Kj(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),Ki(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=tt(u._handlePointerDrag,u),c.ondragend=tt(u._handlePointerDragend,u),zC(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){zC(c,u._progressLine,s,n,i)}};this._currentPointer=BC(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Br(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var ac={min:xt(rc,"min"),max:xt(rc,"max"),average:xt(rc,"average"),median:xt(rc,"median")};function Du(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!nJ(t)&&!U(t.coord)&&U(n)){var i=gR(t,e,a,r);if(t=st(t),t.type&&ac[t.type]&&i.baseAxis&&i.valueAxis){var o=bt(n,i.baseAxis.dim),s=bt(n,i.valueAxis.dim),l=ac[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&ac[t.type]){var f=a.getOtherAxis(u);f&&(t.value=Lv(e,e.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)ac[c[v]]&&(c[v]=Lv(e,e.mapDimension(n[v]),c[v]));return t}}function gR(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(iJ(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function iJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Lu(r,t){return r&&r.containData&&t.coord&&!nm(t)?r.containData(t.coord):!0}function oJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!nm(t)&&!nm(e)?r.containZone(t.coord,e.coord):!0}function yR(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Gn(o,t[i])}:function(e,a,n,i){return Gn(e.value,t[i])}}function Lv(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var $p=Dt(),sJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=rt()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){$p(s).keep=!1}),a.eachSeries(function(s){var l=ln.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!$p(s).keep&&i.group.remove(s.group)}),lJ(a,o,this.type)},t.prototype.markKeep=function(e){$p(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=ln.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?hD(l):zm(l))})}})},t.type="marker",t}(re);function lJ(r,t,e){r.eachSeries(function(a){var n=ln.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=so(n),s=o.z,l=o.zlevel;nh(i.group,s,l)}})}const R_=sJ;function GC(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,c=u?o?o.height:0:i,v=u&&o?o.x:0,h=u&&o?o.y:0,d,p=J(l.get("x"),f)+v,g=J(l.get("y"),c)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);d=a.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var uJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markPoint");o&&(GC(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fu),c=fJ(o,e,a);a.setData(c),GC(a.getData(),e,i),c.each(function(v){var h=c.getItemModel(v),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ot(d)||ot(p)||ot(g)||ot(y)){var _=a.getRawValue(v),S=a.getDataParams(v);ot(d)&&(d=d(_,S)),ot(p)&&(p=p(_,S)),ot(g)&&(g=g(_,S)),ot(y)&&(y=y(_,S))}var b=h.getModel("itemStyle").getItemStyle(),x=h.get("z2"),w=Bu(l,"color");b.fill||(b.fill=w),c.setItemVisual(v,{z2:nt(x,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){pt(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(R_);function fJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return $($({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new tr(a,e),i=Y(e.get("data"),xt(Du,t));r&&(i=Ft(i,xt(Lu,r)));var o=yR(!!r,a);return n.initData(i,null,o),n}const cJ=uJ;function vJ(r){r.registerComponentModel(aJ),r.registerComponentView(cJ),r.registerPreprocessor(function(t){k_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var hJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ln);const dJ=hJ;var nc=Dt(),pJ=function(r,t,e,a){var n=r.getData(),i;if(U(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=Ve(a.yAxis,a.xAxis);else{var u=gR(a,n,t,r);s=u.valueAxis;var f=O2(n,u.valueDataDim);l=Lv(n,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=st(a),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&Pt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[c]=d.coord[c]=l,i=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Du(r,i[0]),Du(r,i[1]),$({},i[2])];return g[2].type=g[2].type||null,wt(g[2],g[0]),wt(g[2],g[1]),g};function Iv(r){return!isNaN(r)&&!isFinite(r)}function FC(r,t,e,a){var n=1-r,i=a.dimensions[r];return Iv(t[n])&&Iv(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function gJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(FC(1,e,a,r)||FC(0,e,a,r)))return!0}return Lu(r,t[0])&&Lu(r,t[1])}function Up(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=J(o.get("x"),n.getWidth()),u=J(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),v=r.get(f[1],t);s=i.dataToPoint([c,v])}if(Yn(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Iv(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Iv(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var yJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=nc(o).from,u=nc(o).to;l.each(function(f){Up(l,f,!0,i,n),Up(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new J0);this.group.add(f.group);var c=mJ(o,e,a),v=c.from,h=c.to,d=c.line;nc(a).from=v,nc(a).to=h,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),c.from.each(function(S){_(v,S,!0),_(h,S,!1)}),d.each(function(S){var b=d.getItemModel(S),x=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=b.get("z2");x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:nt(w,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){pt(S).dataModel=a,S.traverse(function(b){pt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Up(S,b,x,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Bu(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:nt(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:nt(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:nt(w.get("symbolSize"),g[x?0:1]),symbol:nt(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(R_);function mJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return $($({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new tr(a,e),i=new tr(a,e),o=new tr([],e),s=Y(e.get("data"),xt(pJ,t,r,e));r&&(s=Ft(s,xt(gJ,r)));var l=yR(!!r,a);return n.initData(Y(s,function(u){return u[0]}),null,l),i.initData(Y(s,function(u){return u[1]}),null,l),o.initData(Y(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const _J=yJ;function SJ(r){r.registerComponentModel(dJ),r.registerComponentView(_J),r.registerPreprocessor(function(t){k_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var xJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ln);const bJ=xJ;var ic=Dt(),wJ=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Du(r,n),s=Du(r,i),l=o.coord,u=s.coord;l[0]=Ve(l[0],-1/0),l[1]=Ve(l[1],-1/0),u[0]=Ve(u[0],1/0),u[1]=Ve(u[1],1/0);var f=mm([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Pv(r){return!isNaN(r)&&!isFinite(r)}function HC(r,t,e,a){var n=1-r;return Pv(t[n])&&Pv(e[n])}function TJ(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Yn(r,"cartesian2d")?e&&a&&(HC(1,e,a)||HC(0,e,a))?!0:oJ(r,n,i):Lu(r,n)||Lu(r,i)}function WC(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=J(o.get(e[0]),n.getWidth()),u=J(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),v=i.clampData(f),h=i.clampData(c),d=[];e[0]==="x0"?d[0]=v[0]>h[0]?c[0]:f[0]:d[0]=v[0]>h[0]?f[0]:c[0],e[1]==="y0"?d[1]=v[1]>h[1]?c[1]:f[1]:d[1]=v[1]>h[1]?f[1]:c[1],s=a.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Yn(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Pv(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Pv(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var $C=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],CJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Y($C,function(c){return WC(s,l,c,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new lt});this.group.add(f.group),this.markKeep(f);var c=AJ(o,e,a);a.setData(c),c.each(function(v){var h=Y($C,function(M){return WC(c,v,M,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",v)),d.parse(c.get("x1",v))],_=[p.parse(c.get("y0",v)),p.parse(c.get("y1",v))];Br(m),Br(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),b=!S;c.setItemLayout(v,{points:h,allClipped:b});var x=c.getItemModel(v),w=x.getModel("itemStyle").getItemStyle(),T=x.get("z2"),C=Bu(l,"color");w.fill||(w.fill=C,Q(w.fill)&&(w.fill=Oc(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",nt(T,0))}),c.diff(ic(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new ar({z2:nt(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=ic(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?Et(d,{z2:nt(g,0),shape:{points:p.points}},a,v):d=new ar({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=ic(f).data.getItemGraphicEl(v);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(v,h){var d=c.getItemModel(h),p=c.getItemVisual(h,"style");v.useStyle(c.getItemVisual(h,"style")),Ie(v,Te(d),{labelFetcher:a,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:Q(p.fill)?Oc(p.fill,1):G.color.neutral99}),we(v,d),Jt(v,null,null,d.get(["emphasis","disabled"])),pt(v).dataModel=a}),ic(f).data=c,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(R_);function AJ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Y(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return $($({},c),{name:u,ordinalMeta:null})});n=Y(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new tr(n,e)}else n=[{name:"value",type:"float"}],a=new tr(n,e);var s=Y(e.get("data"),xt(wJ,t,r,e));r&&(s=Ft(s,xt(TJ,r)));var l=r?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return Gn(h,n[v])}:function(u,f,c,v){return Gn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}const MJ=CJ;function DJ(r){r.registerComponentModel(bJ),r.registerComponentView(MJ),r.registerPreprocessor(function(t){k_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var LJ=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},IJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),U(a)&&A(a,function(i,o){Q(i)&&(i={type:i}),a[o]=wt(i,LJ(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=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",bottom:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.color.disabled,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:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(kt);const im=IJ;var qo=xt,om=A,oc=lt,PJ=function(r){z(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 oc),this.group.add(this._selectorGroup=new oc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){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,a,n,l,s,u);var f=Ce(e,n).refContainer,c=e.getBoxLayoutParams(),v=e.get("padding"),h=Qt(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=Qt(vt({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iR(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=rt(),c=a.get("selectedMode"),v=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),om(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` +`)){var m=new oc;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,e,b,w,x,c,i);T.on("click",qo(UC,y,null,i,h)).on("mouseover",qo(sm,_.name,null,i,h)).on("mouseout",qo(lm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=pt(C);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),v&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(C){var M=this;if(!f.get(y)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(y))return;var I=D.indexOfName(y),L=D.getItemVisual(I,"style"),k=D.getItemVisual(I,"legendIcon"),R=lr(L.fill);R&&R[3]===0&&(R[3]=.2,L=$($({},L),{fill:Ma(R,"rgba")}));var P=this._createItem(C,y,p,d,a,e,{},L,k,c,i);P.on("click",qo(UC,null,y,i,h)).on("mouseover",qo(sm,null,y,i,h)).on("mouseout",qo(lm,null,y,i,h)),n.ssr&&P.eachChild(function(O){var E=pt(O);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),v&&P.eachChild(function(O){M.packEventData(O,a,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};pt(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();om(e,function(u){var f=u.type,c=new Rt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Ie(c,{normal:v,emphasis:h},{defaultText:u.title}),Ki(c)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,c,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=kJ(f,i,l,u,h,g,v),b=new oc,x=i.getModel("textStyle");if(ot(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(RJ({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;Q(M)&&M?D=M.replace("{name}",a??""):ot(M)&&(D=M(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Rt({style:Zt(x,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Mt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&fn({el:L,componentModel:o,itemName:a,itemTooltipOption:k.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Ki(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ji(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ji("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(re);function kJ(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),om(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:xs(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function RJ(r){var t=r.icon||"roundRect",e=me(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=G.color.neutral00,e.style.lineWidth=2),e}function UC(r,t,e,a){lm(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),sm(r,t,e,a)}function mR(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;an[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new Mt({shape:x})),c.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Et(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=a[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Yp[o],l=Zp[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(_R);const VJ=zJ;function GJ(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function FJ(r){Tt(SR),r.registerComponentModel(BJ),r.registerComponentView(VJ),GJ(r)}function HJ(r){Tt(SR),Tt(FJ)}var WJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ti(Mu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Mu);const $J=WJ;var E_=Dt();function UJ(r,t,e){E_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function YJ(r,t){for(var e=E_(r).coordSysRecordMap,a=e.keys(),n=0;ni[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function jJ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=E_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=rt());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=rR(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,ZJ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=rt());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){xR(n,i);return}var f=KJ(l,i,e);o.enable(f.controlType,f.opt),Fs(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var JJ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),UJ(n,e,{pan:tt(Xp.pan,this),zoom:tt(Xp.zoom,this),scrollMove:tt(Xp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){YJ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(A_),Xp={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=qp[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zn(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:qC(function(r,t,e,a,n,i){var o=qp[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:qC(function(r,t,e,a,n,i){var o=qp[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function qC(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(Zn(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var qp={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const QJ=JJ;function bR(r){M_(r),r.registerComponentModel($J),r.registerComponentView(QJ),jJ(r)}var tQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ti(Mu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:G.color.accent10,borderRadius:0,backgroundColor:G.color.transparent,dataBackground:{lineStyle:{color:G.color.accent30,width:.5},areaStyle:{color:G.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:G.color.accent40,width:.5},areaStyle:{color:G.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:G.color.neutral00,borderColor:G.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:G.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:G.color.tertiary},brushSelect:!0,brushStyle:{color:G.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:G.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Mu);const eQ=tQ;var wl=Mt,rQ=1,Kp=30,aQ=7,Tl="horizontal",KC="vertical",nQ=5,iQ=["line","bar","candlestick","scatter"],oQ={easing:"cubicOut",duration:100,delay:0},sQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=tt(this._onBrush,this),this._onBrushEnd=tt(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Fs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){vu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new lt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?aQ:0,o=Ce(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Tl?{right:o.width-s.x-s.width,top:o.height-Kp-l-i,width:s.width,height:Kp}:{right:l,top:s.y,width:Kp,height:s.height},f=yo(e.option);A(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=Qt(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===KC&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Tl&&!o?{scaleY:l?1:-1,scaleX:1}:n===Tl&&o?{scaleY:l?1:-1,scaleX:-1}:n===KC&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new wl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new wl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:tt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(e.thisDim),v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",b=-m,x=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,k){if(x>0&&k%x){S||(b+=m);return}b=S?(+I-c[0])*_:b+m;var R=L==null||isNaN(L)||L==="",P=R?0:Gt(L,v,d,!0);R&&!w&&k?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([b,0]),y.push([b,0])),R||(g.push([b,P]),y.push([b,P])),w=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function C(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),k=new lt,R=new ar({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Xe({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return k.add(R),k.add(P),k}for(var M=0;M<3;M++){var D=C(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&bt(iQ,u.get("type"))<0)){var f=i.getComponent(En(o),s).axis,c=lQ(o),v,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(v=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),v=a.filler=new wl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new wl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:rQ,fill:G.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!Jc[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=me(S,-1,0,2,2,null,!0);b.attr({cursor:uQ(this._orient),draggable:!0,drift:tt(this._onDragMove,this,_),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=J(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ki(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new Rt({silent:!0,invisible:!D,style:Zt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=v;if(c){var d=J(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Mt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=me(l.get("moveHandleIcon"),-g/2,-g/2,g,g,G.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new Mt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:tt(this._onDragMove,this,"all"),ondragstart:tt(this._showDataInfo,this,!0),ondragend:tt(this._onDragEnd,this),onmouseover:tt(this._showDataInfo,this,!0),onmouseout:tt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Gt(e[0],[0,100],a,!0),Gt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zn(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Gt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Gt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Br([Gt(i[0],o,l,!0),Gt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Br(n.slice()),o=this._size;A([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new ct(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Zn(0,l,o,0,u.minSpan!=null?Gt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Gt(u.maxSpan,s,o,!0):null),this._range=Br([Gt(l[0],o,s,!0),Gt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(tn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new wl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?oQ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=rR(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(A_);function lQ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function uQ(r){return r==="vertical"?"ns-resize":"ew-resize"}const fQ=sQ;function wR(r){r.registerComponentModel(eQ),r.registerComponentView(fQ),M_(r)}function cQ(r){Tt(bR),Tt(wR)}var vQ={get:function(r,t,e){var a=st((hQ[r]||{})[t]);return e&&U(a)?a[a.length-1]:a}},hQ={color:{active:["#006edd","#e0ffff"],inactive:[G.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const TR=vQ;var jC=Ge.mapVisual,dQ=Ge.eachVisual,pQ=U,JC=A,gQ=Br,yQ=Gt,mQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&vR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=tt(e,this),this.controllerVisuals=rm(this.option.controller,a,e),this.targetVisuals=rm(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=Rs(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Y(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(e)&&(e=e.slice(),u=!0);var f=a?e:u?[c(e[0]),c(e[1])]:c(e);if(Q(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ot(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=gQ([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});wt(i,n),wt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){pQ(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,v,h){var d=c[v],p=c[h];d&&!p&&(p=c[h]={},JC(d,function(g,y){if(Ge.isValidType(y)){var m=TR.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var v=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";JC(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&st(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&st(h)||(s?m[0]:[m[0],m[0]])),_.symbol=jC(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;dQ(S,function(x){x>b&&(b=x)}),_.symbolSize=jC(S,function(x){return yQ(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:G.color.transparent,borderColor:G.color.borderTint,contentColor:G.color.theme[0],inactiveColor:G.color.disabled,borderWidth:0,padding:G.size.m,textGap:10,precision:0,textStyle:{color:G.color.secondary}},t}(kt);const kv=mQ;var QC=[20,140],_Q=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=QC[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=QC[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Br((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=tA(this,"outOfRange",this.getExtent()),n=tA(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}for(var s=0,l=0,u=n.length,f=a.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new lt(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);bQ([0,1],function(c){var v=o[c];v.setStyle("fill",a.handlesColor[c]),v.y=e[c];var h=da(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=Kr(n.handleLabelPoints[c],ji(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=da(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=Kr(f.indicatorLabelPoint,ji(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(a||nA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=ZN(v,h);this._dispatchHighDown("downplay",Dc(d[0],n)),this._dispatchHighDown("highlight",Dc(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Hi(e.target,function(l){var u=pt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function PQ(r,t,e,a){for(var n=t.targetVisuals[a],i=Ge.prepareVisualTypes(n),o={color:Bu(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(DQ,LQ),A(IQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(kQ))}function DR(r){r.registerComponentModel(SQ),r.registerComponentView(MQ),MR(r)}var RQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],EQ[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=st(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=st(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Ge.listVisualTypes(),i=this.isCategory();A(e.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&A(this.stateList,function(f){(e[f]||(e[f]={}))[l]=TR.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=st(e)},t.prototype.getValueState=function(e){var a=Ge.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ge.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var v=i.getRepresentValue({interval:f});c||(c=i.getValueState(v));var h=e(v,c);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=ti(kv.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(kv),EQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function lA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const OQ=RQ;var NQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Ve(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),A(l.viewPieceList,function(v){var h=v.piece,d=new lt;d.onclick=tt(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Rt({style:Zt(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:nt(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),Ji(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Dc(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return AR(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new lt,l=this.visualMapModel.textStyleModel;s.add(new Rt({style:Zt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=Y(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=me(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=st(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(CR);const BQ=NQ;function LR(r){r.registerComponentModel(OQ),r.registerComponentView(BQ),MR(r)}function zQ(r){Tt(DR),Tt(LR)}var VQ=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:WD(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),GQ=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new VQ(this);if(this._target=null,this.ecModel.eachSeries(function(n){kw(n,null)}),this.shouldShow()){var a=this.getTarget();kw(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:G.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:G.color.neutral30,borderColor:G.color.neutral40,opacity:.3},z:10},t}(kt),FQ=function(r){z(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,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new To),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||G.color.neutral00);var l=Ce(e,n).refContainer,u=Qt(vL(e,!0),l),f=s.lineWidth||0,c=this._contentRect=oo(u.clone(),f/2,!0,!0),v=new lt;i.add(v),v.setClipPath(new Mt({shape:c.plain()}));var h=this._targetGroup=new lt;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Mt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new Mt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),fA(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),fA(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=Qt({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=Qr([],e.targetTrans),n=Aa([],this._coordSys.transform,a);this._transThisToTarget=Qr([],n);var i=e.viewportRect;i?i=i.clone():i=new dt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(vt({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new wo(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",tt(this._onPan,this)).on("zoom",tt(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ce([],[e.oldX,e.oldY],a),i=ce([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(uA(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ce([],[e.originX,e.originY],a);this._api.dispatchAction(uA(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(re);function uA(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,$(a,t),a}function fA(r,t){var e=so(r);nh(t.group,e.z,e.zlevel)}function HQ(r){r.registerComponentModel(GQ),r.registerComponentView(FQ)}var WQ={label:{enabled:!0},decal:{show:!1}},cA=Dt(),$Q={};function UQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=st(WQ);wt(a.label,r.getLocaleModel().get("aria"),!1),wt(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var c=rt();r.eachSeries(function(v){if(!v.isColorBySeries()){var h=c.get(v.type);h||(h={},c.set(v.type,h)),cA(v).scope=h}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(ot(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var m=jg(v.ecModel,v.name,$Q,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=cA(v).scope;h.each(function(b){var x=h.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=jg(v.ecModel,w,g,y),C=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?$($({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=vt(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var v=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=v>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var k=c.get(["data","partialData"]);M+=o(k,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),P=c.get(["data","separator","end"]),O=c.get(["data","excludeDimensionId"]),E=[],B=0;B":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},XQ=function(){function r(t){var e=this._condVal=Q(t)?new RegExp(t):qE(t)?t:null;if(e==null){var a="";Vt(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return Q(e)?this._condVal.test(t):Pt(e)?this._condVal.test(t+""):!1},r}(),qQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),KQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[L,k]}function f(L,k,R,P){us(L,R)&&us(k,P)||n.push(L,k,R,P,R,P)}function c(L,k,R,P,O,E){var B=Math.abs(k-L),V=Math.tan(B/4)*4/3,H=kT:D2&&a.push(n),a}function fm(r,t,e,a,n,i,o,s,l,u){if(us(r,e)&&us(t,a)&&us(n,o)&&us(i,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-r,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=e-r,g=a-t,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],M=[];Hn(r,e,n,o,.5,C),Hn(t,a,i,s,.5,M),fm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),fm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function ftt(r,t){var e=um(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),c=PR([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;hn,o=PR([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,v=0;v1?null:new ct(p*l+r,p*u+t)}function htt(r,t,e){var a=new ct;ct.sub(a,e,t),a.normalize();var n=new ct;ct.sub(n,r,t);var i=n.dot(a);return i}function jo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function dtt(r,t,e){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),dtt(t,u,f)}function Rv(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Rv(r,i[0],n,a),Rv(r,i[1],e-n,a)}return a}function ptt(r,t){for(var e=[],a=0;a0)for(var b=a/e,x=-a/2;x<=a/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Nv(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Y(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),a=Math.max(f,a),n=Math.max(c,n),[f,c]}),o=Y(i,function(s,l){return{cp:s,z:Ttt(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function ER(r){return mtt(r.path,r.count)}function cm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Ctt(r,t,e){var a=[];function n(b){for(var x=0;x=0;n--)if(!e[n].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[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Mtt={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;SA(r)&&(u=r,f=t),SA(t)&&(u=t,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(Ev(T))c({many:[T],one:C},!0,_,S,!0);else{var M=s?vt({delay:s(_,S)},l):l;N_(T,C,M),i(T,C,T,C,M)}}else for(var D=vt({dividePath:Mtt[e],individualDelay:s&&function(O,E,B,V){return s(O+_,S)}},l),I=m?Ctt(x,w,D):Att(w,x,D),L=I.fromIndividuals,k=I.toIndividuals,R=L.length,P=0;Pt.length,h=u?xA(f,u):xA(v?t:r,[v?r:t]),d=0,p=0;pOR))for(var i=a.getIndices(),o=0;o0&&x.group.traverse(function(T){T instanceof Lt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function AA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function MA(r){return U(r)?r.sort().join(","):r}function Cn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ett(r,t){var e=rt(),a=rt(),n=rt();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=AA(i),f=MA(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&A(u,function(c){n.set(c,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=AA(i),u=MA(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Cn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Cn(s),data:s}]});else if(U(l)){var c=[];A(l,function(d){var p=a.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Cn(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Cn(s)}]})}else{var v=n.get(l);if(v){var h=e.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Cn(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Cn(s)})}}}}),e}function DA(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Cn(t.oldData[s]),groupIdDim:o.dimension})}),A(Ut(r.to),function(o){var s=DA(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Cn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&NR(n,i,a)}function Ntt(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Ut(a.seriesTransition),function(n){A(Ut(n.to),function(i){for(var o=a.updatedSeries,s=0;so.vmin?e+=o.vmin-a+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-a,a=o.vmax,n=!1;break}e+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(e+=t-a),e},r.prototype.unelapse=function(t){for(var e=LA,a=IA,n=!0,i=0,o=0;ol?i=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i=a+t-e,a=s.vmax,n=!1;break}e=u,a=s.vmax}return n&&(i=a+t-e),i},r}();function ztt(){return new Btt}var LA=0,IA=0;function Vtt(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=B_(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,v=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=v,i[h][l.type].inExtFrac=v/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=v,a[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?Math.max(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function Gtt(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=B_(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=a(u),c=n*3/4;f>s.vmin-c&&ft[0]&&e=0&&o<1-1e-5}A(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:st(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Q(o.gap)){var u=Nr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&A(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var v=s.vmax;s.vmax=s.vmin,s.vmin=v}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function z_(r,t){return hm(t)===hm(r)}function hm(r){return r.start+"_\0_"+r.end}function Htt(r,t,e){var a=[];A(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&a.push([o])}),A(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=co(a,function(u){return z_(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function Wtt(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=co(e,function(c){return z_(c.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(t,o.vmin),s.vmin),u=a(Math.pow(t,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?de(Math.pow(t,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function $tt(r,t,e){var a={noNegative:!0},n=vm(r,e,a),i=vm(r,e,a),o=Math.log(t);return i.breaks=Y(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var Utt={vmin:"start",vmax:"end"};function Ytt(r,t){return t&&(r=r||{},r.break={type:Utt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function Ztt(){dV({createScaleBreakContext:ztt,pruneTicksByBreak:Gtt,addBreaksToTicks:Ftt,parseAxisBreakOption:vm,identifyAxisBreak:z_,serializeAxisBreakIdentifier:hm,retrieveAxisBreakPairs:Htt,getTicksLogTransformBreak:Wtt,logarithmicParseBreaksFromOption:$tt,makeAxisLabelFormatterParamBreak:Ytt})}var PA=Dt();function Xtt(r,t){var e=co(r,function(a){return pe().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function qtt(r){A(r,function(t){return t.shouldRemove=!0})}function Ktt(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function jtt(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!pe())return;var o=pe().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),v=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new lt({ignoreModelZ:!0}),S=i.isHorizontal(),b=PA(t).visualList||(PA(t).visualList=[]);qtt(b);for(var x=function(C){var M=o[C][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]=E;it&&(X=E);var St=[],at=[];St[P]=D,at[P]=I,!q&&!it&&(St[P]+=W?-l:l,at[P]-=W?l:-l),St[O]=X,at[O]=X,V.push(St),H.push(at);var N=void 0;if(jm[1]&&m.reverse(),{coordPair:m,brkId:pe().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c=0?l[0].width:l[1].width),v=(c+f.x)/2-u.x,h=Math.min(v,v-f.x),d=Math.max(v,v-f.x),p=d<0?d:h>0?h:0;s=(v-p)/f.x}var g=new ct,y=new ct;ct.scale(g,a,-s),ct.scale(y,a,1-s),gy(e[0],g),gy(e[1],y)}function tet(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=co(r.get("breaks",!0),function(s){return pe().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===gh?!0:i===QI?!1:i===tP?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function eet(){uW({adjustBreakLabelPair:Qtt,buildAxisBreakLine:Jtt,rectCoordBuildBreakAxis:jtt,updateModelAxisBreak:tet})}function ret(r){yW(r),Ztt(),eet()}function aet(){zW(net)}function net(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=iet(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function iet(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof yu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Ws(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f($A("data-v-1071c65c"),r=r(),UA(),r),set={key:0,class:"loading-container"},uet={class:"loading-text"},fet={key:1,class:"error-container"},cet={key:2,class:"graph-container"},vet={class:"control-panel"},het={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},det=oet(()=>Ct("div",{style:{flex:"1 1 auto"}},null,-1)),pet=Kn({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:t}){const e=r,a=$t(!1),n=$t(""),i=$t(null),o=$t(null),s=$t(),l=$t();let u=null,f=null,c=null,v=null,h={};const d=$t("__all__"),p=$t(""),g=$t(3),y=$t(""),m=$t(!1),_=async()=>{try{if(document.fullscreenElement){await document.exitFullscreen();return}const P=l.value;if(!P||!P.requestFullscreen){$a.warning(Wt("tagGraphFullscreenUnsupported"));return}await P.requestFullscreen()}catch(P){$a.error((P==null?void 0:P.message)||Wt("tagGraphFullscreenFailed"))}},S=zt(()=>{var B;const O=(((B=i.value)==null?void 0:B.layers)??[]).map(V=>String(V.name??"")).filter(Boolean),E=Array.from(new Set(O));return[{label:Wt("tagGraphAllLayers"),value:"__all__"},...E.map(V=>({label:V,value:V}))]}),b=zt(()=>{var O;return(((O=o.value)==null?void 0:O.layers)??[]).reduce((E,B)=>{var V;return E+(((V=B==null?void 0:B.nodes)==null?void 0:V.length)??0)},0)}),x=zt(()=>{var P,O;return((O=(P=o.value)==null?void 0:P.links)==null?void 0:O.length)??0}),w=["#4A90E2","#7B68EE","#50C878","#FF6B6B"],T=P=>w[P%w.length],C=async()=>{var P,O;if(!e.folders||e.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const E={folder_paths:e.folders,lang:e.lang||"en"};i.value=await XR(E),o.value=i.value}catch(E){n.value=((O=(P=E.response)==null?void 0:P.data)==null?void 0:O.detail)||E.message||"Failed to load graph",$a.error(n.value)}finally{a.value=!1}},M=()=>{s.value&&Ch(()=>{R()})},D=()=>{const P=i.value;if(!P)return;const O=(p.value||"").trim().toLowerCase(),E=d.value,B=Math.max(1,Math.min(20,Number(g.value||1)));if(!y.value&&!O&&(E==="__all__"||!E)){o.value=P,M();return}const V=new Map;for(const N of P.layers){const F=String((N==null?void 0:N.name)??""),Z=Number((N==null?void 0:N.level)??0);for(const K of(N==null?void 0:N.nodes)??[]){const mt=String((K==null?void 0:K.id)??"");mt&&V.set(mt,{id:mt,label:String((K==null?void 0:K.label)??""),layerName:F,layerLevel:Z,metadata:K==null?void 0:K.metadata})}}const H=new Set;if(y.value)V.has(y.value)&&H.add(y.value);else for(const[N,F]of V)E&&E!=="__all__"&&F.layerName!==E||O&&!`${F.label} ${N}`.toLowerCase().includes(O)||H.add(N);const W=P.links,X=new Map,j=(N,F)=>{!N||!F||(X.has(N)||X.set(N,new Set),X.get(N).add(F))};for(const N of W){const F=String((N==null?void 0:N.source)??""),Z=String((N==null?void 0:N.target)??"");!F||!Z||(j(F,Z),j(Z,F))}const q=new Set,it=[];for(const N of H)q.add(N),it.push({id:N,d:0});for(;it.length;){const N=it.shift();if(N.d>=B)continue;const F=X.get(N.id);if(F)for(const Z of F)q.has(Z)||(q.add(Z),it.push({id:Z,d:N.d+1}))}const St=[];for(const N of P.layers){const F=((N==null?void 0:N.nodes)??[]).filter(Z=>q.has(String((Z==null?void 0:Z.id)??"")));F.length&&St.push({...N,nodes:F})}const at=W.filter(N=>q.has(String((N==null?void 0:N.source)??""))&&q.has(String((N==null?void 0:N.target)??"")));o.value={layers:St,links:at,stats:{...P.stats,total_links:at.length}},M()},I=()=>{y.value="",D()},L=(P,O,E,B)=>{d.value=O||"__all__",p.value=E||"",y.value=P;const V=B==="cluster"?3:B==="tag"?2:B==="abstract"?1:2;g.value=Math.max(Number(g.value||1),V),D()},k=()=>{d.value="__all__",p.value="",g.value=3,y.value="",i.value&&(o.value=i.value),M()},R=()=>{if(!o.value||!s.value)return;u&&u.dispose(),u=pF(s.value);const O=[...o.value.layers].reverse(),E=[],B=1500/(O.length+1),V=200;h={},O.forEach((q,it)=>{const St=B*(it+1),N=800/(q.nodes.length+1);q.nodes.forEach((F,Z)=>{const K=N*(Z+1),gt=F.id.split("").reduce((fr,wr)=>fr+wr.charCodeAt(0),0)%V-V/2,ut=St+gt,At=20,Ht=60,ne=Math.sqrt(F.size)/5,ie=Math.max(At,Math.min(Ht,At+ne));E.push({id:F.id,name:F.label,x:ut,y:K,fixed:!0,symbolSize:ie,value:F.size,category:q.level,itemStyle:{color:T(q.level)},label:{show:!0,fontSize:11,color:"#fff",formatter:fr=>{const ia=fr.name;return ia.length>10?ia.substring(0,10)+"...":ia}},metadata:F.metadata,layerName:q.name}),h[F.id]=E.length-1})});const H=o.value.links.map(q=>({source:q.source,target:q.target,value:q.weight,lineStyle:{width:Math.max(.5,Math.min(2,q.weight/100)),opacity:.3,curveness:.1}})),W=O.map(q=>({name:q.name})),X={tooltip:{renderMode:"html",appendToBody:!1,className:"iib-tg-tooltip",backgroundColor:"rgba(15, 23, 42, 0.92)",borderColor:"rgba(255,255,255,0.14)",borderWidth:1,padding:[10,12],textStyle:{color:"#fff"},extraCssText:"border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 9999;",triggerOn:"none",enterable:!0,formatter:q=>{if(q.dataType==="node"){const it=q.data,St=String(it.id||""),at=it.metadata||{},N=Number(at.image_count??it.value??0),F=at.cluster_count!=null?Number(at.cluster_count):null,Z=at.level!=null?Number(at.level):null,K=String(at.type||""),mt=[];!Number.isNaN(N)&&N>0&&mt.push(`🖼️ ${N}`),F!=null&&!Number.isNaN(F)&&mt.push(`🧩 ${F}`),Z!=null&&!Number.isNaN(Z)&&mt.push(`🏷️ L${Z}`);const gt=K==="tag",ut=K==="tag"||K==="abstract"||K==="cluster",At=K==="cluster",Ht=[gt?``:"",ut?``:"",At?``:"",``].filter(Boolean).join("");return` +
+
${q.name}
+
+ ${mt.map(ne=>`${ne}`).join("")} +
+
+ ${Ht} +
+
+ `}return""}},legend:[{data:W.map(q=>q.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:E,links:H,categories:W,roam:!0,scaleLimit:{min:.2,max:5},draggable:!1,blur:{itemStyle:{opacity:.15},lineStyle:{opacity:.08},label:{opacity:.25}},label:{show:!0,position:"inside"},lineStyle:{color:"source",curveness:.1},emphasis:{focus:"adjacency",lineStyle:{width:3}},zoom:1}]};u.setOption(X);const j=()=>{u&&u.dispatchAction({type:"hideTip"})};u.on("click",q=>{var it,St,at;if(q.dataType==="node"){const N=q.data;if(((it=N.metadata)==null?void 0:it.type)==="tag"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else if(((St=N.metadata)==null?void 0:St.type)==="cluster"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else if(((at=N.metadata)==null?void 0:at.type)==="abstract"){const F=h[String(N.id||"")];F!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:F}))}else $a.info(`Abstract category: ${q.name}`)}}),u.getZr().on("click",q=>{q!=null&&q.target||j()}),c&&(document.removeEventListener("click",c,!0),c=null),c=q=>{var F,Z,K;const it=q.target;if(!it)return;const St=(F=it.closest)==null?void 0:F.call(it,"button[data-action]");if(St){const mt=St.getAttribute("data-action")||"",gt=St.getAttribute("data-nodeid")||"",ut=h[gt];if(mt==="search"&&ut!=null){const At=E[ut]&&E[ut].name||"";At&&(t("searchTag",At),$a.info(`${Wt("search")}: ${At}`)),j()}else if(mt==="filter"&&ut!=null){const At=E[ut]&&E[ut].layerName||"__all__",Ht=E[ut]&&E[ut].name||"",ne=String(E[ut]&&E[ut].id||gt),ie=String(E[ut]&&E[ut].metadata&&E[ut].metadata.type||"");d.value=At||"__all__",p.value=Ht,L(ne,String(At||"__all__"),String(Ht||""),ie),j()}else if(mt==="openCluster"&&ut!=null){const At=E[ut]&&E[ut].metadata||{},Ht=At.paths||[],ne=E[ut]&&E[ut].name||"",ie=Number(At.image_count||Ht.length||0);Ht&&Ht.length?t("openCluster",{title:ne,paths:Ht,size:ie}):$a.warning("No images found in this cluster"),j()}else mt==="close"&&j();q.preventDefault(),q.stopPropagation();return}if((Z=it.closest)==null?void 0:Z.call(it,".iib-tg-tip"))return;(((K=s.value)==null?void 0:K.contains(it))??!1)||j()},document.addEventListener("click",c,!0)};return fs(()=>e.folders,()=>{C()},{immediate:!0}),fs([o,s],()=>{o.value&&s.value&&Ch(()=>{R()})}),zA(()=>{f=()=>{u&&u.resize()},window.addEventListener("resize",f),v=()=>{m.value=!!document.fullscreenElement,Ch(()=>{u==null||u.resize()})},document.addEventListener("fullscreenchange",v)}),UR(()=>{f&&(window.removeEventListener("resize",f),f=null),v&&(document.removeEventListener("fullscreenchange",v),v=null),c&&(document.removeEventListener("click",c,!0),c=null),u&&u.dispose()}),(P,O)=>{const E=ZA,B=GA,V=qA,H=RE,W=FA,X=HA,j=XA,q=WA;return Kt(),Re("div",{ref_key:"fullscreenRef",ref:l,class:"tag-hierarchy-graph"},[a.value?(Kt(),Re("div",set,[_t(E,{size:"large"}),Ct("div",uet,Bt(Ae(Wt)("tagGraphGenerating")),1)])):n.value?(Kt(),Re("div",fet,[_t(B,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(Kt(),Re("div",cet,[Ct("div",vet,[Ct("div",het,[_t(H,null,{default:se(()=>[_t(V,null,{default:se(()=>{var it,St;return[Ke(Bt(Ae(Wt)("tagGraphStatLayers"))+": "+Bt(((St=(it=o.value)==null?void 0:it.layers)==null?void 0:St.length)??0),1)]}),_:1}),_t(V,null,{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphStatNodes"))+": "+Bt(b.value),1)]),_:1}),_t(V,null,{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphStatLinks"))+": "+Bt(x.value),1)]),_:1})]),_:1}),det,_t(H,{size:8},{default:se(()=>[_t(W,{value:d.value,"onUpdate:value":O[0]||(O[0]=it=>d.value=it),options:S.value,style:{width:"140px"},getPopupContainer:it=>it.parentElement||it},null,8,["value","options","getPopupContainer"]),_t(X,{value:p.value,"onUpdate:value":O[1]||(O[1]=it=>p.value=it),style:{width:"200px"},"allow-clear":"",placeholder:Ae(Wt)("tagGraphFilterPlaceholder"),onKeydown:VA(I,["enter"])},null,8,["value","placeholder","onKeydown"]),_t(j,{value:g.value,"onUpdate:value":O[2]||(O[2]=it=>g.value=it),size:"small",min:1,max:20,step:1,style:{width:"92px"},title:Ae(Wt)("tagGraphFilterHopsTitle")},null,8,["value","title"]),_t(q,{size:"small",onClick:I},{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphFilterApply")),1)]),_:1}),_t(q,{size:"small",onClick:k},{default:se(()=>[Ke(Bt(Ae(Wt)("tagGraphFilterReset")),1)]),_:1}),_t(q,{size:"small",title:m.value?Ae(Wt)("exitFullscreen"):Ae(Wt)("fullscreen"),onClick:_},{default:se(()=>[m.value?(Kt(),pa(Ae(YR),{key:0})):(Kt(),pa(Ae(ZR),{key:1}))]),_:1},8,["title"])]),_:1})])]),Ct("div",{ref_key:"chartRef",ref:s,class:"chart-container"},null,512)])):vr("",!0)],512)}}});const get=YA(pet,[["__scopeId","data-v-1071c65c"]]),Hr=r=>($A("data-v-174295e7"),r=r(),UA(),r),yet={class:"topic-search"},met={class:"toolbar"},_et={class:"left"},xet={class:"title"},bet=Hr(()=>Ct("span",{class:"icon"},"🧠",-1)),wet={class:"right"},Tet={key:0,style:{opacity:"0.75"}},Cet={class:"label"},Aet={class:"label"},Met={style:{display:"grid",gap:"6px"}},Det=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"🔑",-1)),Let={key:0},Iet=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"🧩",-1)),Pet=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"🐍",-1)),ket={style:{opacity:"0.85"}},Ret=Hr(()=>Ct("span",{style:{"margin-right":"6px"}},"💻",-1)),Eet={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Oet={style:{opacity:"0.85"}},Net={key:3,style:{margin:"10px 0 0 0"}},Bet={style:{"margin-top":"10px",display:"flex","align-items":"center",gap:"8px"}},zet=Hr(()=>Ct("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),Vet={key:4},Get={key:0,style:{"margin-top":"10px"}},Fet={key:1,class:"grid"},Het=["onClick"],Wet={class:"card-top"},$et={class:"card-title line-clamp-1"},Uet={class:"card-count"},Yet={class:"card-desc line-clamp-2"},Zet={key:2,class:"empty"},Xet={class:"guide"},qet={class:"guide-row"},Ket=Hr(()=>Ct("span",{class:"guide-icon"},"🗂️",-1)),jet={class:"guide-text"},Jet={class:"guide-row"},Qet=Hr(()=>Ct("span",{class:"guide-icon"},"🧠",-1)),trt={class:"guide-text"},ert={class:"guide-row"},rrt=Hr(()=>Ct("span",{class:"guide-icon"},"🔎",-1)),art={class:"guide-text"},nrt={class:"guide-row"},irt=Hr(()=>Ct("span",{class:"guide-icon"},"✨",-1)),ort={class:"guide-text"},srt={class:"guide-row"},lrt=Hr(()=>Ct("span",{class:"guide-icon"},"🚀",-1)),urt={class:"guide-text"},frt={class:"guide-hint"},crt=Hr(()=>Ct("span",{class:"guide-icon"},"💡",-1)),vrt={key:0,class:"guide-text"},hrt={key:1,class:"guide-text"},drt={key:5,style:{height:"calc(100vh - 300px)","min-height":"600px"}},prt="iib_topic_search_hide_requirements_v1",eg="topic_search_scope",grt=Kn({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const t=r,e=qR(),a=$t(!1),n=$t(.9),i=$t(2),o=$t(null),s=$t(null),l=$t(!1),u=KR(prt,!0),f=()=>{u.value=!1},c=$t(null),v=$t("");let h=null;const d=zt(()=>{var F;const N=(F=c.value)==null?void 0:F.status;return N==="queued"||N==="running"}),p=zt(()=>{var F;const N=String(((F=c.value)==null?void 0:F.stage)||"");return!N||N==="queued"||N==="init"?Wt("topicSearchJobQueued"):N==="embedding"?Wt("topicSearchJobStageEmbedding"):N==="clustering"?Wt("topicSearchJobStageClustering"):N==="titling"?Wt("topicSearchJobStageTitling"):N==="done"?Wt("topicSearchJobStageDone"):N==="error"?Wt("topicSearchJobStageError"):`${Wt("topicSearchJobStage")}: ${N}`}),g=zt(()=>{var mt;const N=(mt=c.value)==null?void 0:mt.progress;if(!N)return 0;const F=Number(N.to_embed??0),Z=Number(N.embedded_done??0);if(F<=0)return 0;const K=Math.floor(Z/F*100);return Math.max(0,Math.min(100,K))}),y=zt(()=>{var F,Z,K,mt;const N=(F=c.value)==null?void 0:F.progress;if(!N)return"";if(((Z=c.value)==null?void 0:Z.stage)==="embedding"){const gt=Number(N.embedded_done??0),ut=Number(N.to_embed??0),At=Number(N.scanned??0),Ht=String(N.folder??"");return Wt("topicSearchJobEmbeddingDesc",[gt,ut,At,Ht])}if(((K=c.value)==null?void 0:K.stage)==="clustering"){const gt=Number(N.items_done??0),ut=Number(N.items_total??0);return Wt("topicSearchJobClusteringDesc",[gt,ut])}if(((mt=c.value)==null?void 0:mt.stage)==="titling"){const gt=Number(N.clusters_done??0),ut=Number(N.clusters_total??0);return Wt("topicSearchJobTitlingDesc",[gt,ut])}return""}),m=$t(""),_=$t(!1),S=$t(null),b=$t("clusters"),x=$t(!1),w=$t([]),T=$t(!1),C=$t(!1);let M=null,D="";const I=zt(()=>(e.quickMovePaths??[]).filter(F=>{const Z=String((F==null?void 0:F.key)??"");return((F==null?void 0:F.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z)}).map(F=>String((F==null?void 0:F.dir)??"")).filter(Boolean));fs(I,N=>{N!=null&&N.length&&(w.value=(w.value??[]).filter(F=>!N.includes(F)))},{immediate:!0});const L=zt(()=>(e.quickMovePaths??[]).filter(F=>{const Z=String((F==null?void 0:F.key)??"");return!(((F==null?void 0:F.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z))}).map(F=>({value:F.dir,label:F.zh||F.dir}))),k=zt(()=>(w.value??[]).filter(Boolean).length),R=zt(()=>(w.value??[]).filter(Boolean)),P=zt(()=>{var N;return((N=o.value)==null?void 0:N.clusters)??[]}),O=async()=>{var Z,K,mt;if(T.value)return;try{const gt=await tE();e.conf=gt}catch{}const N=((Z=e.conf)==null?void 0:Z.app_fe_setting)||{},F=(K=N==null?void 0:N[eg])==null?void 0:K.folder_paths;Array.isArray(F)&&F.length&&!((mt=w.value)!=null&&mt.length)&&(w.value=F.map(gt=>String(gt)).filter(Boolean)),T.value=!0},E=async()=>{var F,Z;if((F=e.conf)!=null&&F.is_readonly||!T.value)return;const N={folder_paths:R.value,updated_at:Date.now()};await eE(eg,N),(Z=e.conf)!=null&&Z.app_fe_setting&&(e.conf.app_fe_setting[eg]=N)},B=()=>{var F;if((F=e.conf)!=null&&F.is_readonly||!T.value)return;const N=JSON.stringify(R.value);N!==D&&(M&&clearTimeout(M),M=setTimeout(async()=>{C.value=!0;try{await E(),D=N}finally{C.value=!1}},500))},V=()=>{h&&(clearInterval(h),h=null)},H=async()=>{const N=v.value;if(!N)return;const F=await sE(N);c.value=F,F.status==="done"?(V(),a.value=!1,F.result&&(o.value=F.result),s.value=null):F.status==="error"&&(V(),a.value=!1,$a.error(F.error||Wt("topicSearchJobFailed")))},W=async()=>{if(k.value)try{const N=await rE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:R.value});s.value=N,N.cache_hit&&N.result&&(o.value=N.result)}catch{}},X=async()=>{var N;if(!((N=e.conf)!=null&&N.is_readonly)){if(!k.value){$a.warning(Wt("topicSearchNeedScope")),x.value=!0;return}V(),a.value=!0,c.value=null,v.value="";try{await aE();const F=await nE({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:R.value});v.value=F.job_id,await H(),h=setInterval(()=>{H()},800)}catch(F){throw a.value=!1,F}}},j=async()=>{const N=(m.value||"").trim();if(N&&!_.value){if(!k.value){$a.warning(Wt("topicSearchNeedScope")),x.value=!0;return}_.value=!0;try{S.value=await iE({query:N,top_k:80,ensure_embed:!l.value,folder_paths:R.value}),l.value||(l.value=!0),q()}finally{_.value=!1}}},q=()=>{var mt;const N=(((mt=S.value)==null?void 0:mt.results)??[]).map(gt=>gt.path).filter(Boolean);if(!N.length)return;const F=`Query: ${m.value.trim()}(${N.length})`,Z={type:"topic-search-matched-image-grid",name:F,key:Date.now()+Ao(),id:Ao(),title:F,paths:N},K=e.tabList[t.tabIdx];K.panes.push(Z),K.key=Z.key},it=N=>{const F={type:"topic-search-matched-image-grid",name:`${N.title}(${N.size})`,key:Date.now()+Ao(),id:Ao(),title:N.title,paths:N.paths},Z=e.tabList[t.tabIdx];Z.panes.push(F),Z.key=F.key},St=N=>{const F={type:"topic-search-matched-image-grid",name:`${N.title}(${N.size})`,key:Date.now()+Ao(),id:Ao(),title:N.title,paths:N.paths},Z=e.tabList[t.tabIdx];Z.panes.push(F),Z.key=F.key},at=N=>{m.value=N,j()};return zA(()=>{(async()=>(await O(),k.value&&await W()))()}),jR(()=>{V()}),fs(R,()=>{l.value=!1},{deep:!0}),fs(()=>R.value,()=>{B()},{deep:!0}),(N,F)=>{var wr,ia,V_,G_,F_,H_;const Z=qA,K=WA,mt=HA,gt=XA,ut=GA,At=DE,Ht=uE,ne=ZA,ie=FA,fr=oE;return Kt(),Re("div",yet,[Ct("div",met,[Ct("div",_et,[Ct("div",xet,[bet,Ct("span",null,Bt(N.$t("topicSearchTitleExperimental")),1)]),o.value?(Kt(),pa(Z,{key:0,color:"blue"},{default:se(()=>[Ke("共 "+Bt(o.value.count)+" 张",1)]),_:1})):vr("",!0),o.value?(Kt(),pa(Z,{key:1,color:"geekblue"},{default:se(()=>[Ke("主题 "+Bt(o.value.clusters.length),1)]),_:1})):vr("",!0),o.value?(Kt(),pa(Z,{key:2,color:"default"},{default:se(()=>[Ke("噪声 "+Bt(o.value.noise.length),1)]),_:1})):vr("",!0)]),Ct("div",wet,[_t(K,{onClick:F[0]||(F[0]=ve=>x.value=!0)},{default:se(()=>[Ke(Bt(N.$t("topicSearchScope"))+" ",1),k.value?(Kt(),Re("span",Tet,"("+Bt(k.value)+")",1)):vr("",!0)]),_:1}),_t(mt,{value:m.value,"onUpdate:value":F[1]||(F[1]=ve=>m.value=ve),style:{width:"min(420px, 72vw)"},placeholder:N.$t("topicSearchQueryPlaceholder"),disabled:_.value,onKeydown:VA(j,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),_t(K,{loading:_.value,onClick:j},{default:se(()=>[Ke(Bt(N.$t("search")),1)]),_:1},8,["loading"]),(ia=(wr=S.value)==null?void 0:wr.results)!=null&&ia.length?(Kt(),pa(K,{key:0,onClick:q},{default:se(()=>[Ke(Bt(N.$t("topicSearchOpenResults")),1)]),_:1})):vr("",!0),Ct("span",Cet,Bt(N.$t("topicSearchThreshold")),1),_t(gt,{value:n.value,"onUpdate:value":F[2]||(F[2]=ve=>n.value=ve),min:.5,max:.99,step:.01},null,8,["value"]),Ct("span",Aet,Bt(N.$t("topicSearchMinClusterSize")),1),_t(gt,{value:i.value,"onUpdate:value":F[3]||(F[3]=ve=>i.value=ve),min:1,max:50,step:1},null,8,["value"]),_t(K,{type:"primary",ghost:"",loading:a.value,disabled:(V_=Ae(e).conf)==null?void 0:V_.is_readonly,onClick:X},{default:se(()=>[Ke(Bt(N.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(G_=Ae(e).conf)!=null&&G_.is_readonly?(Kt(),pa(ut,{key:0,type:"warning",message:N.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):vr("",!0),Ae(u)?(Kt(),pa(ut,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:N.$t("topicSearchRequirementsTitle"),onClose:f},{description:se(()=>[Ct("div",Met,[Ct("div",null,[Det,Ct("span",null,Bt(N.$t("topicSearchRequirementsOpenai")),1)]),Ae(JR)?(Kt(),Re("div",Let,[Iet,Ct("span",null,Bt(N.$t("topicSearchRequirementsDepsDesktop")),1)])):(Kt(),Re(Lc,{key:1},[Ct("div",null,[Pet,Ct("span",null,Bt(N.$t("topicSearchRequirementsDepsPython")),1)]),Ct("div",ket,[Ret,Ct("span",null,Bt(N.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):vr("",!0),(F_=s.value)!=null&&F_.cache_hit&&((H_=s.value)!=null&&H_.stale)?(Kt(),pa(ut,{key:2,type:"warning","show-icon":"",style:{margin:"10px 0 0 0"},message:N.$t("topicSearchCacheStale")},{description:se(()=>{var ve;return[Ct("div",Eet,[Ct("span",Oet,Bt(N.$t("topicSearchCacheStaleDesc")),1),_t(K,{size:"small",loading:a.value||d.value,disabled:(ve=Ae(e).conf)==null?void 0:ve.is_readonly,onClick:X},{default:se(()=>[Ke(Bt(N.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])])]}),_:1},8,["message"])):vr("",!0),d.value?(Kt(),Re("div",Net,[_t(ut,{type:"info","show-icon":"",message:p.value,description:y.value},null,8,["message","description"]),_t(At,{percent:g.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):vr("",!0),Ct("div",Bet,[zet,_t(Ht,{checked:b.value,"onUpdate:checked":F[4]||(F[4]=ve=>b.value=ve),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),b.value==="clusters"?(Kt(),Re("div",Vet,[_t(ne,{spinning:a.value},{default:se(()=>{var ve;return[S.value?(Kt(),Re("div",Get,[_t(ut,{type:"info",message:N.$t("topicSearchRecallMsg",[S.value.results.length,S.value.count,S.value.top_k]),"show-icon":""},null,8,["message"])])):vr("",!0),P.value.length?(Kt(),Re("div",Fet,[(Kt(!0),Re(Lc,null,QR(P.value,Co=>(Kt(),Re("div",{class:"card",key:Co.id,onClick:yrt=>it(Co)},[Ct("div",Wet,[Ct("div",$et,Bt(Co.title),1),Ct("div",Uet,Bt(Co.size),1)]),Ct("div",Yet,Bt(Co.sample_prompt),1)],8,Het))),128))])):(Kt(),Re("div",Zet,[_t(ut,{type:"info","show-icon":"",message:N.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Ct("div",Xet,[Ct("div",qet,[Ket,Ct("span",jet,Bt(N.$t("topicSearchGuideStep1")),1),_t(K,{size:"small",onClick:F[5]||(F[5]=Co=>x.value=!0)},{default:se(()=>[Ke(Bt(N.$t("topicSearchScope")),1)]),_:1})]),Ct("div",Jet,[Qet,Ct("span",trt,Bt(N.$t("topicSearchGuideStep2")),1),_t(K,{size:"small",loading:a.value,disabled:(ve=Ae(e).conf)==null?void 0:ve.is_readonly,onClick:X},{default:se(()=>[Ke(Bt(N.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Ct("div",ert,[rrt,Ct("span",art,Bt(N.$t("topicSearchGuideStep3")),1)]),Ct("div",nrt,[irt,Ct("span",ort,Bt(N.$t("topicSearchGuideAdvantage1")),1)]),Ct("div",srt,[lrt,Ct("span",urt,Bt(N.$t("topicSearchGuideAdvantage2")),1)]),Ct("div",frt,[crt,k.value?(Kt(),Re("span",hrt,Bt(N.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(Kt(),Re("span",vrt,Bt(N.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):b.value==="graph"?(Kt(),Re("div",drt,[_t(get,{folders:R.value,lang:Ae(e).lang,onSearchTag:at,onOpenCluster:St},null,8,["folders","lang"])])):vr("",!0),_t(fr,{visible:x.value,"onUpdate:visible":F[7]||(F[7]=ve=>x.value=ve),title:N.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:F[8]||(F[8]=()=>{x.value=!1,E()})},{default:se(()=>[_t(ut,{type:"info","show-icon":"",message:N.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),C.value?(Kt(),pa(ut,{key:0,type:"info","show-icon":"",message:N.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):vr("",!0),_t(ie,{value:w.value,"onUpdate:value":F[6]||(F[6]=ve=>w.value=ve),mode:"multiple",style:{width:"100%"},options:L.value,placeholder:N.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:ve=>ve.parentElement||ve,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const Crt=YA(grt,[["__scopeId","data-v-174295e7"]]);export{Crt as default}; diff --git a/vue/dist/assets/TopicSearch-5af266be.js b/vue/dist/assets/TopicSearch-5af266be.js deleted file mode 100644 index ae0f630..0000000 --- a/vue/dist/assets/TopicSearch-5af266be.js +++ /dev/null @@ -1,62 +0,0 @@ -import{ay as Jl,P as zl,bK as PA,d as Zn,G as Gt,a as be,c as St,Z as Lv,_ as kA,cz as eg,r as te,cA as PR,bC as RA,cB as kR,b7 as EA,h as cr,u as OA,be as RR,cb as ER,bc as OR,ca as NR,cw as NA,m as fs,an as BR,ao as zR,az as VR,o as BA,I as GR,U as Jt,V as De,W as Tt,a3 as ke,X as Tr,Y as Ft,$ as ur,cC as FR,z as Oi,aO as zA,aP as VA,aQ as GA,a0 as FA,a1 as HR,J as WR,B as sr,bk as $R,a2 as ln,cp as UR,a4 as Jn,a9 as YR,a8 as ZR,cD as XR,cE as qR,cF as KR,ck as jR,cG as JR,cH as QR,R as Ao,ak as tE,aj as eE,ah as rE,T as aE,cI as nE}from"./index-d6594e8e.js";import{u as iE}from"./index-154b94da.js";import{S as HA}from"./index-4be8cdd9.js";import{_ as oE}from"./index-e620c28b.js";import{_ as sE}from"./index-cb6a3d31.js";/* empty css */import{_ as WA}from"./index-30b8f89a.js";var $A=Jl("normal","exception","active","success"),lE=Jl("line","circle","dashboard"),uE=Jl("default","small"),Bc=function(){return{prefixCls:String,type:zl.oneOf(lE),percent:Number,format:{type:Function},status:zl.oneOf($A),showInfo:{type:Boolean,default:void 0},strokeWidth:Number,strokeLinecap:String,strokeColor:{type:[String,Object],default:void 0},trailColor:String,width:Number,success:{type:Object,default:function(){return{}}},gapDegree:Number,gapPosition:String,size:zl.oneOf(uE),steps:Number,successPercent:Number,title:String}};function $i(r){return!r||r<0?0:r>100?100:r}function Iv(r){var t=r.success,e=r.successPercent,a=e;return t&&"progress"in t&&(PA(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var fE=["from","to","direction"],vE=function(){return be(be({},Bc()),{},{prefixCls:String,direction:{type:String}})},cE=function(t){var e=[];return Object.keys(t).forEach(function(a){var n=parseFloat(a.replace(/%/g,""));isNaN(n)||e.push({key:n,value:t[a]})}),e=e.sort(function(a,n){return a.key-n.key}),e.map(function(a){var n=a.key,i=a.value;return"".concat(i," ").concat(n,"%")}).join(", ")},hE=function(t,e){var a=t.from,n=a===void 0?eg.blue:a,i=t.to,o=i===void 0?eg.blue:i,s=t.direction,l=s===void 0?e==="rtl"?"to left":"to right":s,u=kA(t,fE);if(Object.keys(u).length!==0){var f=cE(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(n,", ").concat(o,")")}};const dE=Zn({compatConfig:{MODE:3},name:"Line",props:vE(),setup:function(t,e){var a=e.slots,n=Gt(function(){var u=t.strokeColor,f=t.direction;return u&&typeof u!="string"?hE(u,f):{background:u}}),i=Gt(function(){return t.trailColor?{backgroundColor:t.trailColor}:void 0}),o=Gt(function(){var u=t.percent,f=t.strokeWidth,v=t.strokeLinecap,c=t.size;return be({width:"".concat($i(u),"%"),height:"".concat(f||(c==="small"?6:8),"px"),borderRadius:v==="square"?0:""},n.value)}),s=Gt(function(){return Iv(t)}),l=Gt(function(){var u=t.strokeWidth,f=t.size,v=t.strokeLinecap,c=t.success;return{width:"".concat($i(s.value),"%"),height:"".concat(u||(f==="small"?6:8),"px"),borderRadius:v==="square"?0:"",backgroundColor:c==null?void 0:c.strokeColor}});return function(){var u;return St(Lv,null,[St("div",{class:"".concat(t.prefixCls,"-outer")},[St("div",{class:"".concat(t.prefixCls,"-inner"),style:i.value},[St("div",{class:"".concat(t.prefixCls,"-bg"),style:o.value},null),s.value!==void 0?St("div",{class:"".concat(t.prefixCls,"-success-bg"),style:l.value},null):null])]),(u=a.default)===null||u===void 0?void 0:u.call(a)])}}});var pE={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},gE=function(t){var e=te(null);return PR(function(){var a=Date.now(),n=!1;t.value.forEach(function(i){var o=(i==null?void 0:i.$el)||i;if(o){n=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",e.value&&a-e.value<100&&(s.transitionDuration="0s, 0s")}}),n&&(e.value=Date.now())}),t},yE={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},mE=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],H_=0;function W_(r){return+r.replace("%","")}function $_(r){return Array.isArray(r)?r:[r]}function U_(r,t,e,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,o=50-a/2,s=0,l=-o,u=0,f=-2*o;switch(i){case"left":s=-o,l=0,u=2*o,f=0;break;case"right":s=o,l=0,u=-2*o,f=0;break;case"bottom":l=o,f=2*o;break}var v="M 50,50 m ".concat(s,",").concat(l,` - a `).concat(o,",").concat(o," 0 1 1 ").concat(u,",").concat(-f,` - a `).concat(o,",").concat(o," 0 1 1 ").concat(-u,",").concat(f),c=Math.PI*2*o,h={stroke:e,strokeDasharray:"".concat(t/100*(c-n),"px ").concat(c,"px"),strokeDashoffset:"-".concat(n/2+r/100*(c-n),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:v,pathStyle:h}}const _E=Zn({compatConfig:{MODE:3},name:"VCCircle",props:RA(yE,pE),setup:function(t){H_+=1;var e=te(H_),a=Gt(function(){return $_(t.percent)}),n=Gt(function(){return $_(t.strokeColor)}),i=kR(),o=EA(i,2),s=o[0],l=o[1];gE(l);var u=function(){var v=t.prefixCls,c=t.strokeWidth,h=t.strokeLinecap,d=t.gapDegree,p=t.gapPosition,g=0;return a.value.map(function(y,m){var _=n.value[m]||n.value[n.value.length-1],S=Object.prototype.toString.call(_)==="[object Object]"?"url(#".concat(v,"-gradient-").concat(e.value,")"):"",x=U_(g,y,_,c,d,p),b=x.pathString,w=x.pathStyle;g+=y;var T={key:m,d:b,stroke:S,"stroke-linecap":h,"stroke-width":c,opacity:y===0?0:1,"fill-opacity":"0",class:"".concat(v,"-circle-path"),style:w};return St("path",be({ref:s(m)},T),null)})};return function(){var f=t.prefixCls,v=t.strokeWidth,c=t.trailWidth,h=t.gapDegree,d=t.gapPosition,p=t.trailColor,g=t.strokeLinecap;t.strokeColor;var y=kA(t,mE),m=U_(0,100,p,v,h,d),_=m.pathString,S=m.pathStyle;delete y.percent;var x=n.value.find(function(w){return Object.prototype.toString.call(w)==="[object Object]"}),b={d:_,stroke:p,"stroke-linecap":g,"stroke-width":c||v,"fill-opacity":"0",class:"".concat(f,"-circle-trail"),style:S};return St("svg",be({class:"".concat(f,"-circle"),viewBox:"0 0 100 100"},y),[x&&St("defs",null,[St("linearGradient",{id:"".concat(f,"-gradient-").concat(e.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(x).sort(function(w,T){return W_(w)-W_(T)}).map(function(w,T){return St("stop",{key:T,offset:w,"stop-color":x[w]},null)})])]),St("path",b,null),u().reverse()])}}});function SE(r){var t=r.percent,e=r.success,a=r.successPercent,n=$i(Iv({success:e,successPercent:a}));return[n,$i($i(t)-n)]}function xE(r){var t=r.success,e=t===void 0?{}:t,a=r.strokeColor,n=e.strokeColor;return[n||eg.green,a||null]}const bE=Zn({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:Bc(),setup:function(t,e){var a=e.slots,n=Gt(function(){if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),i=Gt(function(){var c=t.width||120;return{width:typeof c=="number"?"".concat(c,"px"):c,height:typeof c=="number"?"".concat(c,"px"):c,fontSize:"".concat(c*.15+6,"px")}}),o=Gt(function(){return t.strokeWidth||6}),s=Gt(function(){return t.gapPosition||t.type==="dashboard"&&"bottom"||"top"}),l=Gt(function(){return SE(t)}),u=Gt(function(){return Object.prototype.toString.call(t.strokeColor)==="[object Object]"}),f=Gt(function(){return xE({success:t.success,strokeColor:t.strokeColor})}),v=Gt(function(){var c;return c={},cr(c,"".concat(t.prefixCls,"-inner"),!0),cr(c,"".concat(t.prefixCls,"-circle-gradient"),u.value),c});return function(){var c;return St("div",{class:v.value,style:i.value},[St(_E,{percent:l.value,strokeWidth:o.value,trailWidth:o.value,strokeColor:f.value,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,prefixCls:t.prefixCls,gapDegree:n.value,gapPosition:s.value},null),(c=a.default)===null||c===void 0?void 0:c.call(a)])}}});var wE=function(){return be(be({},Bc()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})};const TE=Zn({compatConfig:{MODE:3},name:"Steps",props:wE(),setup:function(t,e){var a=e.slots,n=Gt(function(){return Math.round(t.steps*((t.percent||0)/100))}),i=Gt(function(){return t.size==="small"?2:14}),o=Gt(function(){for(var s=t.steps,l=t.strokeWidth,u=l===void 0?8:l,f=t.strokeColor,v=t.trailColor,c=t.prefixCls,h=[],d=0;d=100?"success":v||"normal"}),f=function(){var c=t.showInfo,h=t.format,d=t.type,p=t.percent,g=t.title,y=Iv(t);if(!c)return null;var m,_=h||(a==null?void 0:a.format)||function(x){return"".concat(x,"%")},S=d==="line";return h||a!=null&&a.format||u.value!=="exception"&&u.value!=="success"?m=_($i(p),$i(y)):u.value==="exception"?m=S?St(RR,null,null):St(ER,null,null):u.value==="success"&&(m=S?St(OR,null,null):St(NR,null,null)),St("span",{class:"".concat(i.value,"-text"),title:g===void 0&&typeof m=="string"?m:void 0},[m])};return function(){var v=t.type,c=t.steps,h=t.strokeColor,d=t.title,p=f(),g;v==="line"?g=c?St(TE,be(be({},t),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:i.value,steps:c}),{default:function(){return[p]}}):St(dE,be(be({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}):(v==="circle"||v==="dashboard")&&(g=St(bE,be(be({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}));var y=be(be({},s.value),{},cr({},"".concat(i.value,"-status-").concat(u.value),!0));return St("div",{class:y,title:d},[g])}}}),AE=NA(CE);var ME={small:8,middle:16,large:24},DE=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:zl.oneOf(Jl("horizontal","vertical")).def("horizontal"),align:zl.oneOf(Jl("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function LE(r){return typeof r=="string"?ME[r]:r||0}var IE=Zn({compatConfig:{MODE:3},name:"ASpace",props:DE(),slots:["split"],setup:function(t,e){var a=e.slots,n=OA("space",t),i=n.prefixCls,o=n.space,s=n.direction,l=iE(),u=Gt(function(){var g,y,m;return(g=(y=t.size)!==null&&y!==void 0?y:(m=o.value)===null||m===void 0?void 0:m.size)!==null&&g!==void 0?g:"small"}),f=te(),v=te();fs(u,function(){var g=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(function(m){return LE(m)}),y=EA(g,2);f.value=y[0],v.value=y[1]},{immediate:!0});var c=Gt(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),h=Gt(function(){var g;return BR(i.value,"".concat(i.value,"-").concat(t.direction),(g={},cr(g,"".concat(i.value,"-rtl"),s.value==="rtl"),cr(g,"".concat(i.value,"-align-").concat(c.value),c.value),g))}),d=Gt(function(){return s.value==="rtl"?"marginLeft":"marginRight"}),p=Gt(function(){var g={};return l.value&&(g.columnGap="".concat(f.value,"px"),g.rowGap="".concat(v.value,"px")),be(be({},g),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-v.value,"px")})});return function(){var g,y,m=t.wrap,_=t.direction,S=_===void 0?"horizontal":_,x=(g=a.default)===null||g===void 0?void 0:g.call(a),b=zR(x),w=b.length;if(w===0)return null;var T=(y=a.split)===null||y===void 0?void 0:y.call(a),C="".concat(i.value,"-item"),M=f.value,D=w-1;return St("div",{class:h.value,style:p.value},[b.map(function(I,L){var P=x.indexOf(I),k={};return l.value||(S==="vertical"?L"u"&&typeof self<"u"?mn.worker=!0:!mn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(mn.node=!0,mn.svgSupported=!0):EE(navigator.userAgent,mn);function EE(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}const Et=mn;var hm=12,UA="sans-serif",qa=hm+"px "+UA,OE=20,NE=100,BE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zE(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){A(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function oO(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?q_(s,o):q_(o,s))}function JA(r){return r.nodeName.toUpperCase()==="CANVAS"}var sO=/([&<>"'])/g,lO={"&":"&","<":"<",">":">",'"':""","'":"'"};function Fe(r){return r==null?"":(r+"").replace(sO,function(t,e){return lO[e]})}var uO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ah=[],fO=Et.browser.firefox&&+Et.browser.version.split(".")[0]<39;function ug(r,t,e,a){return e=e||{},a?K_(r,t,e):fO&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):K_(r,t,e),e}function K_(r,t,e){if(Et.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(JA(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(lg(Ah,r,a,n)){e.zrX=Ah[0],e.zrY=Ah[1];return}}e.zrX=e.zrY=0}function Sm(r){return r||window.event}function Cr(r,t,e){if(t=Sm(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&ug(r,o,t,e)}else{ug(r,t,t,e);var i=vO(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&uO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function vO(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function fg(r,t,e,a){r.addEventListener(t,e,a)}function cO(r,t,e,a){r.removeEventListener(t,e,a)}var Ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function j_(r){return r.which===2||r.which===3}var hO=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&a&&a.length>1){var i=J_(a)/J_(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=dO(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Ie(){return[1,0,0,1,0,0]}function Hc(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Wc(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function xa(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Aa(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Xn(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),v=Math.cos(e);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function xm(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function Kr(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function pO(r){var t=Ie();return Wc(t,r),t}var gO=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}();const st=gO;var Bi=Math.min,as=Math.max,vg=Math.abs,Q_=["x","y"],yO=["width","height"],Qn=new st,ti=new st,ei=new st,ri=new st,vr=QA(),Cl=vr.minTv,cg=vr.maxTv,Gl=[0,0],bm=function(){function r(t,e,a,n){r.set(this,t,e,a,n)}return r.set=function(t,e,a,n,i){return n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),t.x=e,t.y=a,t.width=n,t.height=i,t},r.prototype.union=function(t){var e=Bi(t.x,this.x),a=Bi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=as(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=as(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Ie();return Aa(i,i,[-e.x,-e.y]),xm(i,i,[a,n]),Aa(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e,a){return r.intersect(this,t,e,a)},r.intersect=function(t,e,a,n){a&&st.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(mO,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(_O,e.x,e.y,e.width,e.height));var s=!!a;vr.reset(n,s);var l=vr.touchThreshold,u=t.x+l,f=t.x+t.width-l,v=t.y+l,c=t.y+t.height-l,h=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f=t.x&&e<=t.x+t.width&&a>=t.y&&a<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Qn.x=ei.x=e.x,Qn.y=ri.y=e.y,ti.x=ri.x=e.x+e.width,ti.y=ei.y=e.y+e.height,Qn.transform(a),ri.transform(a),ti.transform(a),ei.transform(a),t.x=Bi(Qn.x,ti.x,ei.x,ri.x),t.y=Bi(Qn.y,ti.y,ei.y,ri.y);var l=as(Qn.x,ti.x,ei.x,ri.x),u=as(Qn.y,ti.y,ei.y,ri.y);t.width=l-t.x,t.height=u-t.y},r}(),mO=new bm(0,0,0,0),_O=new bm(0,0,0,0);function t1(r,t,e,a,n,i,o,s){var l=vg(t-e),u=vg(a-r),f=Bi(l,u),v=Q_[n],c=Q_[1-n],h=yO[n];t=u||!vr.bidirectional)&&(Cl[v]=-u,Cl[c]=0,vr.useDir&&vr.calcDirMTV())))}function QA(){var r=0,t=new st,e=new st,a={minTv:new st,maxTv:new st,useDir:!1,dirMinTv:new st,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=as(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),e.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(a.bidirectional||t.dot(e)>0)&&e.len()=0;v--){var c=i[v];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Dh.copy(c.getBoundingRect()),c.transform&&Dh.applyTransform(c.transform),Dh.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function TO(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?tM:!0}return!1}function e1(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=TO(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==tM)){t.target=o;break}}}function rM(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}const CO=eM;var aM=32,Xs=7;function AO(r){for(var t=0;r>=aM;)t|=r&1,r>>=1;return r+t}function r1(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function MO(r,t,e){for(e--;t>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Lh(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Ih(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function DO(r,t){var e=Xs,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]=Xs||w>=Xs);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)=0;y--)r[b+y]=r[x+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Lh(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,b=S+1,x=_+1,y=0;y=Xs||C>=Xs);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;ys&&(l=s),a1(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var hr=1,Al=2,Qo=4,n1=!1;function Ph(){n1||(n1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function i1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var LO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=i1}return r.prototype.traverse=function(t,e){for(var a=0;a=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const IO=LO;var nM;nM=Et.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const hg=nM;var vv={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-vv.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?vv.bounceIn(r*2)*.5:vv.bounceOut(r*2-1)*.5+.5}};const iM=vv;var Zu=Math.pow,kn=Math.sqrt,Rv=1e-8,oM=1e-4,o1=kn(3),Xu=1/3,ca=vo(),Lr=vo(),vs=vo();function An(r){return r>-Rv&&rRv||r<-Rv}function we(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function s1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Ev(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if(An(f)&&An(v))if(An(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if(An(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=kn(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-Zu(-_,Xu):_=Zu(_,Xu),S<0?S=-Zu(-S,Xu):S=Zu(S,Xu);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*kn(f*f*f)),b=Math.acos(x)/3,w=kn(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+o1*Math.sin(b)))/(3*o),C=(-s+w*(T-o1*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function lM(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(An(o)){if(sM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(An(f))n[0]=-i/(2*o);else if(f>0){var v=kn(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Vn(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function uM(r,t,e,a,n,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;ca[0]=l,ca[1]=u;for(var m=0;m<1;m+=.05)Lr[0]=we(r,e,n,o,m),Lr[1]=we(t,a,i,s,m),g=Ui(ca,Lr),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(An(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=kn(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function fM(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function tu(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function vM(r,t,e,a,n,i,o,s,l){var u,f=.005,v=1/0;ca[0]=o,ca[1]=s;for(var c=0;c<1;c+=.05){Lr[0]=Le(r,e,n,c),Lr[1]=Le(t,a,i,c);var h=Ui(ca,Lr);h=0&&h=1?1:Ev(0,a,i,1,l,s)&&we(0,n,o,1,s[0])}}}var OO=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||oe,this.ondestroy=t.ondestroy||oe,this.onrestart=t.onrestart||oe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=at(t)?t:iM[t]||wm(t)},r}();const NO=OO;var cM=function(){function r(t){this.value=t}return r}(),BO=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new cM(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),zO=function(){function r(t){this._list=new BO,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new cM(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const ys=zO;var l1={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Yr(r){return r=Math.round(r),r<0?0:r>255?255:r}function VO(r){return r=Math.round(r),r<0?0:r>360?360:r}function eu(r){return r<0?0:r>1?1:r}function kh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Yr(parseFloat(t)/100*255):Yr(parseInt(t,10))}function Rn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?eu(parseFloat(t)/100):eu(parseFloat(t))}function Rh(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Mn(r,t,e){return r+(t-r)*e}function wr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function pg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var hM=new ys(20),qu=null;function Do(r,t){qu&&pg(qu,t),qu=hM.put(r,qu||t.slice())}function ir(r,t){if(r){t=t||[];var e=hM.get(r);if(e)return pg(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in l1)return pg(t,l1[a]),Do(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){wr(t,0,0,0,1);return}return wr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Do(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){wr(t,0,0,0,1);return}return wr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Do(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?wr(t,+u[0],+u[1],+u[2],1):wr(t,0,0,0,1);f=Rn(u.pop());case"rgb":if(u.length>=3)return wr(t,kh(u[0]),kh(u[1]),kh(u[2]),u.length===3?f:Rn(u[3])),Do(r,t),t;wr(t,0,0,0,1);return;case"hsla":if(u.length!==4){wr(t,0,0,0,1);return}return u[3]=Rn(u[3]),gg(u,t),Do(r,t),t;case"hsl":if(u.length!==3){wr(t,0,0,0,1);return}return gg(u,t),Do(r,t),t;default:return}}wr(t,0,0,0,1)}}function gg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Rn(r[1]),n=Rn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],wr(t,Yr(Rh(o,i,e+1/3)*255),Yr(Rh(o,i,e)*255),Yr(Rh(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function GO(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,v=((i-e)/6+o/2)/o,c=((i-a)/6+o/2)/o;t===i?l=c-v:e===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function yg(r,t){var e=ir(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return ba(e,e.length===4?"rgba":"rgb")}}function Eh(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=Yr(Mn(o[0],s[0],l)),e[1]=Yr(Mn(o[1],s[1],l)),e[2]=Yr(Mn(o[2],s[2],l)),e[3]=eu(Mn(o[3],s[3],l)),e}}function FO(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=ir(t[n]),s=ir(t[i]),l=a-n,u=ba([Yr(Mn(o[0],s[0],l)),Yr(Mn(o[1],s[1],l)),Yr(Mn(o[2],s[2],l)),eu(Mn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function En(r,t,e,a){var n=ir(r);if(r)return n=GO(n),t!=null&&(n[0]=VO(at(t)?t(n[0]):t)),e!=null&&(n[1]=Rn(at(e)?e(n[1]):e)),a!=null&&(n[2]=Rn(at(a)?a(n[2]):a)),ba(gg(n),"rgba")}function Ov(r,t){var e=ir(r);if(e&&t!=null)return e[3]=eu(t),ba(e,"rgba")}function ba(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Nv(r,t){var e=ir(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var u1=new ys(100);function mg(r){if(K(r)){var t=u1.get(r);return t||(t=yg(r,-.1),u1.put(r,t)),t}else if(Vc(r)){var e=H({},r);return e.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:yg(a.color,-.1)}}),e}return r}var Bv=Math.round;function ru(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ir(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var f1=1e-4;function Dn(r){return r-f1}function Ku(r){return Bv(r*1e3)/1e3}function _g(r){return Bv(r*1e4)/1e4}function HO(r){return"matrix("+Ku(r[0])+","+Ku(r[1])+","+Ku(r[2])+","+Ku(r[3])+","+_g(r[4])+","+_g(r[5])+")"}var WO={left:"start",right:"end",center:"middle",middle:"middle"};function $O(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function UO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function YO(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function dM(r){return r&&!!r.image}function ZO(r){return r&&!!r.svgElement}function Tm(r){return dM(r)||ZO(r)}function pM(r){return r.type==="linear"}function gM(r){return r.type==="radial"}function yM(r){return r&&(r.type==="linear"||r.type==="radial")}function $c(r){return"url(#"+r+")"}function mM(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function _M(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*sv,n=rt(r.scaleX,1),i=rt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Bv(o*sv)+"deg, "+Bv(s*sv)+"deg)"),l.join(" ")}var XO=function(){return Et.hasGlobalWindow&&at(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Sg=Array.prototype.slice;function Va(r,t,e){return(t-r)*e+r}function Oh(r,t,e,a){for(var n=t.length,i=0;ia?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=c1,l=e;if(We(e)){var u=JO(e);s=u,(u===1&&!Lt(e[0])||u===2&&!Lt(e[0][0]))&&(o=!0)}else if(Lt(e)&&!He(e))s=Ju;else if(K(e))if(!isNaN(+e))s=Ju;else{var f=ir(e);f&&(l=f,s=Ml)}else if(Vc(e)){var v=H({},l);v.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:ir(h.color)}}),pM(e)?s=xg:gM(e)&&(s=bg),l=v}i===0?this.valType=s:(s!==this.valType||s===c1)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return a&&(c.easing=a,c.easingFunc=at(a)?a:iM[a]||wm(a)),n.push(c),c},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Qu(n),u=h1(n),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=v;fe);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-h.percent,y=g===0?1:c((e-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?qs:t[l];if((Qu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(Qu(i))i===hv?Oh(m,h[n],d[n],y):qO(m,h[n],d[n],y);else if(h1(i)){var _=h[n],S=d[n],x=i===xg;t[l]={type:x?"linear":"radial",x:Va(_.x,S.x,y),y:Va(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Va(w.offset,C.offset,y),color:cv(Oh([],w.color,C.color,y))}}),global:S.global},x?(t[l].x2=Va(_.x2,S.x2,y),t[l].y2=Va(_.y2,S.y2,y)):t[l].r=Va(_.r,S.r,y)}else if(u)Oh(m,h[n],d[n],y),a||(t[l]=cv(m));else{var b=Va(h[n],d[n],y);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===Ju?t[a]=t[a]+n:e===Ml?(ir(t[a],qs),ju(qs,qs,n,1),t[a]=cv(qs)):e===hv?ju(t[a],t[a],n,1):e===SM&&v1(t[a],t[a],n,1)},r}(),Cm=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){gm("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,Mt(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Fl(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Fl(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function ns(){return new Date().getTime()}var tN=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=ns()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(hg(a),!e._paused&&e.update())}hg(a)},t.prototype.start=function(){this._running||(this._time=ns(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ns(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ns()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new Cm(e,a.loop);return this.addAnimator(n),n},t}(zr);const eN=tN;var rN=300,Nh=Et.domSupported,Bh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),d1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p1=!1;function wg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function aN(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function zh(r){r&&(r.zrByTouch=!0)}function nN(r,t){return Cr(r.dom,new iN(r,t),!0)}function xM(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var iN=function(){function r(t,e){this.stopPropagation=oe,this.stopImmediatePropagation=oe,this.preventDefault=oe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Hr={mousedown:function(r){r=Cr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Cr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Cr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Cr(this.dom,r);var t=r.toElement||r.relatedTarget;xM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){p1=!0,r=Cr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){p1||(r=Cr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Cr(this.dom,r),zh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Hr.mousemove.call(this,r),Hr.mousedown.call(this,r)},touchmove:function(r){r=Cr(this.dom,r),zh(r),this.handler.processGesture(r,"change"),Hr.mousemove.call(this,r)},touchend:function(r){r=Cr(this.dom,r),zh(r),this.handler.processGesture(r,"end"),Hr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentm1||r<-m1}var ni=[],Lo=[],Gh=Ie(),Fh=Math.abs,vN=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return ai(this.rotation)||ai(this.x)||ai(this.y)||ai(this.scaleX-1)||ai(this.scaleY-1)||ai(this.skewX)||ai(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(y1(a),this.invTransform=null);return}a=a||Ie(),e?this.getLocalTransform(a):y1(a),t&&(e?xa(a,t,a):Wc(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(ni);var a=ni[0]<0?-1:1,n=ni[1]<0?-1:1,i=((ni[0]-a)*e+a)/ni[0]||0,o=((ni[1]-n)*e+n)/ni[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ie(),Kr(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ie(),xa(Lo,t.invTransform,e),e=Lo);var a=this.originX,n=this.originY;(a||n)&&(Gh[4]=a,Gh[5]=n,xa(Lo,e,Gh),Lo[4]-=a,Lo[5]-=n,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&se(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&se(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Fh(t[0]-1)>1e-10&&Fh(t[3]-1)>1e-10?Math.sqrt(Fh(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Vv(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,v=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;e[4]=-d*i-c*p*o,e[5]=-p*o-h*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=h*i,e[2]=c*o,u&&Xn(e,e,u),e[4]+=a+f,e[5]+=n+v,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Ma=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Vv(r,t){for(var e=0;e=_1)){r=r||qa;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=qr.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?Hh=_1:n>2&&Hh++,t}}var Hh=0,_1=5;function wM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=cN(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Ta(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=qr.measureText(t,r.font).width,e.put(t,a)),a}function S1(r,t,e,a){var n=Ta(wa(t),r),i=Iu(t),o=ms(0,n,e),s=Yi(0,i,a),l=new vt(o,s,n,i);return l}function Uc(r,t,e,a){var n=((r||"")+"").split(` -`),i=n.length;if(i===1)return S1(n[0],t,e,a);for(var o=new vt(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Gv(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",v="top";if(a instanceof Array)l+=jr(a[0],e.width),u+=jr(a[1],e.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Wh="__zr_normal__",$h=Ma.concat(["ignore"]),hN=Ca(Ma,function(r,t){return r[t]=!0,r},{ignore:!1}),Io={},dN=new vt(0,0,0,0),ef=[],Am=function(){function r(t){this.id=XA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var f=a.position!=null,v=a.autoOverflowArea,c=void 0;if((v||f)&&(c=dN,a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Io,a,c):Gv(Io,a,c),i.x=Io.x,i.y=Io.y,o=Io.align,s=Io.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=jr(h[0],c.width),p=jr(h[1],c.height)),u=!0,i.originX=-i.x+d+(n?0:c.x),i.originY=-i.y+p+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new vt(0,0,0,0);i.getLocalTransform(ef),Kr(ef,ef),vt.copy(m,c),m.applyTransform(ef)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=hr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mg:Ag},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&ir(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,ba(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},H(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ut(t))for(var a=t,n=Mt(a),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Wh,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===Wh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(yt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){gm("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var v=this._textContent,c=this._textGuide;return v&&v.useState(t,e,a,f),c&&c.useState(t,e,a,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~hr),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~hr)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=yt(n,t),o=yt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var c=0;c0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],c?T[y]=a[y]:e[y]=a[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=Fl(e[y]),gN(e,a,y)}}var x=new Cm(e,!1,!1,v?Bt(d,function(I){return I.targetName===t}):null);x.targetName=t,n.scope&&(x.scope=n.scope),c&&T&&x.whenWithKeys(0,T,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const CM=Am;var AM=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,n=0;n=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=yt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=yt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var q=AN;function AN(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Fv(r,t,e)}function Fv(r,t,e){return K(r)?CN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function fe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),DM),r=(+r).toFixed(t),e?r:+r}function Er(r){return r.sort(function(t,e){return t-e}),r}function ga(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 MN(r)}function MN(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function LM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(pa(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function DN(r,t){var e=Ca(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Y(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Y(n,function(h){return Math.floor(h)}),s=Ca(o,function(h,d){return h+d},0),l=Y(n,function(h,d){return h-o[d]});su&&(u=l[v],f=v);++o[f],l[f]=0,++s}return Y(o,function(h){return h/a})}function LN(r,t){var e=Math.max(ga(r),ga(t)),a=r+t;return e>DM?a:fe(a,e)}var w1=9007199254740991;function IM(r){var t=Math.PI*2;return(r%t+t)%t}function au(r){return r>-b1&&r=10&&t++,t}function PM(r,t){var e=Mm(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Zh(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function T1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function Xh(r){r.option=r.parentModel=r.ecModel=null}var KN=".",ii="___EC__COMPONENT__CONTAINER___",HM="___EC__EXTENDED_CLASS___";function ya(r){var t={main:"",sub:""};if(r){var e=r.split(KN);t.main=e[0]||"",t.sub=e[1]||""}return t}function jN(r){$e(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function JN(r){return!!(r&&r[HM])}function Im(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return QN(a)?n=function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},$E(n,this)),H(n.prototype,e),n[HM]=!0,n.extend=this.extend,n.superCall=rB,n.superApply=aB,n.superClass=a,n}}function QN(r){return at(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function WM(r,t){r.extend=t.extend}var tB=Math.round(Math.random()*10);function eB(r){var t=["__\0is_clz",tB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function rB(r,t){for(var e=[],a=2;a=0||i&&yt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var nB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],iB=ao(nB),oB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return iB(this,t,e)},r}(),Ig=new ys(50);function sB(r){if(typeof r=="string"){var t=Ig.get(r);return t&&t.image}else return r}function Pm(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Ig.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!Zc(t)&&i.pending.push(o)):(t=qr.loadImage(r,L1,L1),t.__zrImageSrc=r,Ig.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function L1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;u++)l-=s;var f=Ta(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function UM(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ta(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?uB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Ta(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function uB(r,t,e){for(var a=0,n=0,i=r.length;ng&&h){var _=Math.floor(g/c);d=d||y.length>_,y=y.slice(0,_),m=y.length*c}if(n&&f&&p!=null)for(var S=$M(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;bd&&Kh(i,o.substring(d,g),t,h),Kh(i,p[2],t,h,p[1]),d=qh.lastIndex}dv){var B=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,M),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length0&&d+a.accumWidth>a.width&&(f=t.split(` -`),u=!0),a.accumWidth=d}else{var p=YM(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,v=p.linesWidths,f=p.lines}}f||(f=t.split(` -`));for(var g=wa(l),y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var pB=Ca(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function gB(r){return dB(r)?!!pB[r]:!0}function YM(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,v=wa(t),c=0;ce:n+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function P1(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;vt.set(k1,ms(e,o,n),Yi(a,s,i),o,s),vt.intersect(t,k1,null,R1);var l=R1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=ms(l.x,l.width,n,!0),r.baseY=Yi(l.y,l.height,i,!0)}}var k1=new vt(0,0,0,0),R1={outIntersectRect:{},clamp:!0};function km(r){return r!=null?r+="":r=""}function yB(r){var t=km(r.text),e=r.font,a=Ta(wa(e),t),n=Iu(e);return Pg(r,a,n,null)}function Pg(r,t,e,a){var n=new vt(ms(r.x||0,t,r.textAlign),Yi(r.y||0,e,r.textBaseline),t,e),i=a??(ZM(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function ZM(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var kg="__zr_style_"+Math.round(Math.random()*10),Zi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zi[kg]=!0;var E1=["z","z2","invisible"],mB=["invisible"],_B=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=Mt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(rf[0]=td(n)*e+r,rf[1]=Qh(n)*a+t,af[0]=td(i)*e+r,af[1]=Qh(i)*a+t,u(s,rf,af),f(l,rf,af),n=n%oi,n<0&&(n=n+oi),i=i%oi,i<0&&(i=i+oi),n>i&&!o?i+=oi:nn&&(nf[0]=td(h)*e+r,nf[1]=Qh(h)*a+t,u(s,nf,s),f(l,nf,l))}var Wt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},si=[],li=[],ra=[],un=[],aa=[],na=[],ed=Math.min,rd=Math.max,ui=Math.cos,fi=Math.sin,Ea=Math.abs,Rg=Math.PI,_n=Rg*2,ad=typeof Float32Array<"u",Ks=[];function nd(r){var t=Math.round(r/Rg*1e8)/1e8;return t%2*Rg}function Kc(r,t){var e=nd(r[0]);e<0&&(e+=_n);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=_n?n=e+_n:t&&e-n>=_n?n=e-_n:!t&&e>n?n=e+(_n-nd(e-n)):t&&e0&&(this._ux=Ea(a/zv/t)||0,this._uy=Ea(a/zv/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Wt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Ea(t-this._xi),n=Ea(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Wt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Wt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Wt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Ks[0]=n,Ks[1]=i,Kc(Ks,o),n=Ks[0],i=Ks[1];var s=i-n;return this.addData(Wt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=ui(i)*a+t,this._yi=fi(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Wt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Wt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&ad&&(this.data=new Float32Array(e));for(var a=0;a0&&o))for(var s=0;sf.length&&(this._expandData(),f=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ra[0]=ra[1]=aa[0]=aa[1]=Number.MAX_VALUE,un[0]=un[1]=na[0]=na[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;oa||Ea(_)>n||c===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Wt.C:{var S=t[c++],x=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];p=PO(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case Wt.Q:{var S=t[c++],x=t[c++],g=t[c++],y=t[c++];p=RO(i,o,S,x,g,y,10),i=g,o=y;break}case Wt.A:var T=t[c++],C=t[c++],M=t[c++],D=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,d&&(s=ui(I)*M+T,l=fi(I)*D+C),p=rd(M,D)*ed(_n,Math.abs(L)),i=ui(P)*M+T,o=fi(P)*D+C;break;case Wt.R:{s=i=t[c++],l=o=t[c++];var k=t[c++],R=t[c++];p=k*2+R*2;break}case Wt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[v++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,v,c,h=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b0&&(t.lineTo(S,x),_=0),w){case Wt.M:s=u=a[b++],l=f=a[b++],t.moveTo(u,f);break;case Wt.L:{v=a[b++],c=a[b++];var C=Ea(v-u),M=Ea(c-f);if(C>n||M>i){if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+v*I,f*(1-I)+c*I);break t}g+=D}t.lineTo(v,c),u=v,f=c,_=0}else{var L=C*C+M*M;L>_&&(S=v,x=c,_=L)}break}case Wt.C:{var P=a[b++],k=a[b++],R=a[b++],O=a[b++],E=a[b++],B=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Vn(u,P,R,E,I,si),Vn(f,k,O,B,I,li),t.bezierCurveTo(si[1],li[1],si[2],li[2],si[3],li[3]);break t}g+=D}t.bezierCurveTo(P,k,R,O,E,B),u=E,f=B;break}case Wt.Q:{var P=a[b++],k=a[b++],R=a[b++],O=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;tu(u,P,R,I,si),tu(f,k,O,I,li),t.quadraticCurveTo(si[1],li[1],si[2],li[2]);break t}g+=D}t.quadraticCurveTo(P,k,R,O),u=R,f=O;break}case Wt.A:var G=a[b++],F=a[b++],W=a[b++],X=a[b++],J=a[b++],ft=a[b++],Dt=a[b++],zt=!a[b++],ct=W>X?W:X,V=Ea(W-X)>.001,$=J+ft,Z=!1;if(h){var D=d[y++];g+D>m&&($=J+ft*(m-g)/D,Z=!0),g+=D}if(V&&t.ellipse?t.ellipse(G,F,W,X,Dt,J,$,zt):t.arc(G,F,ct,J,$,zt),Z)break t;T&&(s=ui(J)*W+G,l=fi(J)*X+F),u=ui($)*W+G,f=fi($)*X+F;break;case Wt.R:s=u=a[b],l=f=a[b+1],v=a[b++],c=a[b++];var tt=a[b++],At=a[b++];if(h){var D=d[y++];if(g+D>m){var pt=m-g;t.moveTo(v,c),t.lineTo(v+ed(pt,tt),c),pt-=tt,pt>0&&t.lineTo(v+tt,c+ed(pt,At)),pt-=At,pt>0&&t.lineTo(v+rd(tt-pt,0),c+At),pt-=tt,pt>0&&t.lineTo(v,c+rd(At-pt,0));break t}g+=D}t.rect(v,c,tt,At);break;case Wt.Z:if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Wt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Da=TB;function xn(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||or+s&&i>e+s||it+v&&f>a+v&&f>i+v&&f>s+v||fr+v&&u>e+v&&u>n+v&&u>o+v||ut+u&&l>a+u&&l>i+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=js);var c=Math.atan2(l,s);return c<0&&(c+=js),c>=a&&c<=n||c+js>=a&&c+js<=n}function Ga(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var fn=Da.CMD,vi=Math.PI*2,MB=1e-4;function DB(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&LB(),h=we(t,a,i,s,Mr[0]),c>1&&(d=we(t,a,i,s,Mr[1]))),c===2?gt&&s>a&&s>i||s=0&&u<=1){for(var f=0,v=Le(t,a,i,u),c=0;ce||s<-e)return 0;var l=Math.sqrt(e*e-s*s);qe[0]=-l,qe[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=vi-1e-4){a=0,n=vi;var f=i?1:-1;return o>=qe[0]+r&&o<=qe[1]+r?f:0}if(a>n){var v=a;a=n,n=v}a<0&&(a+=vi,n+=vi);for(var c=0,h=0;h<2;h++){var d=qe[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=vi+p),(p>=a&&p<=n||p+vi>=a&&p+vi<=n)&&(p>Math.PI/2&&p1&&(e||(s+=Ga(l,u,f,v,a,n))),g&&(l=i[d],u=i[d+1],f=l,v=u),p){case fn.M:f=i[d++],v=i[d++],l=f,u=v;break;case fn.L:if(e){if(xn(l,u,i[d],i[d+1],t,a,n))return!0}else s+=Ga(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case fn.C:if(e){if(CB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=IB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case fn.Q:if(e){if(XM(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=PB(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case fn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);c=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=c,v=h):s+=Ga(l,u,c,h,a,n);var T=(a-y)*S/_+y;if(e){if(AB(y,m,S,x,x+b,w,t,T,n))return!0}else s+=kB(y,m,S,x,x+b,w,T,n);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case fn.R:f=l=i[d++],v=u=i[d++];var C=i[d++],M=i[d++];if(c=f+C,h=v+M,e){if(xn(f,v,c,v,t,a,n)||xn(c,v,c,h,t,a,n)||xn(c,h,f,h,t,a,n)||xn(f,h,f,v,t,a,n))return!0}else s+=Ga(c,v,c,h,a,n),s+=Ga(f,h,f,v,a,n);break;case fn.Z:if(e){if(xn(l,u,f,v,t,a,n))return!0}else s+=Ga(l,u,f,v,a,n);l=f,u=v;break}}return!e&&!DB(u,v)&&(s+=Ga(l,u,f,v,a,n)||0),s!==0}function RB(r,t,e){return qM(r,0,!1,t,e)}function EB(r,t,e,a){return qM(r,t,!0,e,a)}var Hv=lt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zi),OB={style:lt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xc.style)},id=Ma.concat(["invisible","culling","z","z2","zlevel","parent"]),NB=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Ag:a>.2?fN:Mg}else if(e)return Mg}return Ag},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(K(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Nv(e,0)0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Qo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),EB(s,l/u,e,a)))return!0}if(this.hasFill())return RB(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:H(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qo)},t.prototype.createStyle=function(e){return Fc(Hv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=H({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=H({},n.shape),H(u,a.shape)):(u=H({},i?this.shape:n.shape),H(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=H({},this.shape);for(var f={},v=Mt(u),c=0;cn&&(v=s+l,s*=n/v,l*=n/v),u+f>n&&(v=u+f,u*=n/v,f*=n/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var is=Math.round;function jc(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(is(a*2)===is(n*2)&&(r.x1=r.x2=pr(a,s,!0)),is(i*2)===is(o*2)&&(r.y1=r.y2=pr(i,s,!0))),r}}function JM(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=pr(a,s,!0),r.y=pr(n,s,!0),r.width=Math.max(pr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(pr(n+o,s,!1)-r.y,o===0?0:1)),r}}function pr(r,t,e){if(!t)return r;var a=is(r*2);return(a+is(t))%2===0?a/2:(a+(e?1:-1))/2}var HB=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),WB={},QM=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new HB},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=JM(WB,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?FB(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ct);QM.prototype.type="rect";const bt=QM;var V1={fill:"#000"},G1=2,ia={},$B={style:lt({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},Xc.style)},tD=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=V1,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=0;I=0&&(P=b[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)P=b[M],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,v=i+n/2;f==="top"?v=i+e.height/2:f==="bottom"&&(v=i+n-e.height/2);var c=!e.isLineHolder&&od(u);c&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,v-e.height/2,e.width,e.height);var h=!!u.backgroundColor,d=e.textPadding;d&&(o=Y1(o,s,d),v-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(iu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=U1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=$1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=G1,S=!0,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=v,w&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||qa,g.opacity=gr(u.opacity,a.opacity,1),H1(g,u),b&&(g.lineWidth=gr(u.lineWidth,a.lineWidth,_),g.lineDash=rt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),p.setBoundingRect(Pg(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,v=l&&l.image,c=l&&!v,h=e.borderRadius,d=this,p,g;if(c||e.lineHeight||u&&f){p=this._getOrCreateChild(bt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=rt(e.fillOpacity,1)}else if(v){g=this._getOrCreateChild(Be),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=rt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=gr(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return rD(e)&&(a=[e.fontStyle,e.fontWeight,eD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Rr(a)||e.textFont||e.font},t}(Nr),UB={left:!0,right:1,center:1},YB={top:1,bottom:1,middle:1},F1=["fontStyle","fontWeight","fontSize","fontFamily"];function eD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?hm+"px":r+"px"}function H1(r,t){for(var e=0;e=0,i=!1;if(r instanceof Ct){var o=aD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Po(s)||Po(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=H({},a),u=H({},u),u.fill=s):!Po(u.fill)&&Po(s)?(i=!0,a=H({},a),u=H({},u),u.fill=mg(s)):!Po(u.stroke)&&Po(l)&&(i||(a=H({},a),u=H({},u)),u.stroke=mg(l)),a.style=u}}if(a&&a.z2==null){i||(a=H({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Es)}return a}function QB(r,t,e){if(e&&e.z2==null){e=H({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??XB)}return e}function tz(r,t,e){var a=yt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:jB(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=H({},e),o=H({opacity:a?n:i.opacity*.1},o),e.style=o),e}function sd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return JB(this,r,t,e);if(r==="blur")return tz(this,r,e);if(r==="select")return QB(this,r,e)}return e}function no(r){r.stateProxy=sd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=sd),e&&(e.stateProxy=sd)}function j1(r,t){!fD(r,t)&&!r.__highByOuter&&nn(r,nD)}function J1(r,t){!fD(r,t)&&!r.__highByOuter&&nn(r,iD)}function Ja(r,t){r.__highByOuter|=1<<(t||0),nn(r,nD)}function Qa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&nn(r,iD)}function sD(r){nn(r,Nm)}function Bm(r){nn(r,oD)}function lD(r){nn(r,qB)}function uD(r){nn(r,KB)}function fD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function vD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Rm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){oD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Ng(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var v=0;v0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function qi(r,t,e){zi(r,!0),nn(r,no),zg(r,t,e)}function oz(r){zi(r,!1)}function Xt(r,t,e,a){a?oz(r):qi(r,t,e)}function zg(r,t,e){var a=ht(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var tS=["emphasis","blur","select"],sz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _e(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=ld(d),s*=ld(d));var p=(n===i?-1:1)*ld((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,g=p*o*h/s,y=p*-s*c/o,m=(r+e)/2+sf(v)*g-of(v)*y,_=(t+a)/2+of(v)*g+sf(v)*y,S=nS([1,0],[(c-g)/o,(h-y)/s]),x=[(c-g)/o,(h-y)/s],b=[(-1*c-g)/o,(-1*h-y)/s],w=nS(x,b);if(Gg(x,b)<=-1&&(w=Js),Gg(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Js*1e6)/1e6;w=Js*2+T%2*Js}f.addData(u,m,_,o,s,S,w,v,i)}var hz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,dz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function pz(r){var t=new Da;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Da.CMD,l=r.match(hz);if(!l)return t;for(var u=0;uP*P+k*k&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-v,x1:T*(n/x-1),y1:C*(n/x-1)}}function bz(r){var t;if(U(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function wz(r,t){var e,a=Dl(t.r,0),n=Dl(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,v=t.cy,c=!!t.clockwise,h=oS(u-l),d=h>ud&&h%ud;if(d>Fr&&(h=d),!(a>Fr))r.moveTo(f,v);else if(h>ud-Fr)r.moveTo(f+a*Ro(l),v+a*ci(l)),r.arc(f,v,a,l,u,!c),n>Fr&&(r.moveTo(f+n*Ro(u),v+n*ci(u)),r.arc(f,v,n,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,k=a*Ro(l),R=a*ci(l),O=n*Ro(u),E=n*ci(u),B=h>Fr;if(B){var G=t.cornerRadius;G&&(e=bz(G),p=e[0],g=e[1],y=e[2],m=e[3]);var F=oS(a-n)/2;if(_=oa(F,y),S=oa(F,m),x=oa(F,p),b=oa(F,g),C=w=Dl(_,S),M=T=Dl(x,b),(w>Fr||T>Fr)&&(D=a*Ro(u),I=a*ci(u),L=n*Ro(l),P=n*ci(l),h<_D)){var W=xz(k,R,L,P,D,I,O,E);if(W){var X=k-W[0],J=R-W[1],ft=D-W[0],Dt=I-W[1],zt=1/ci(Sz((X*ft+J*Dt)/(Wl(X*X+J*J)*Wl(ft*ft+Dt*Dt)))/2),ct=Wl(W[0]*W[0]+W[1]*W[1]);C=oa(w,(a-ct)/(zt+1)),M=oa(T,(n-ct)/(zt-1))}}}if(!B)r.moveTo(f+k,v+R);else if(C>Fr){var V=oa(y,C),$=oa(m,C),Z=lf(L,P,k,R,a,V,c),tt=lf(D,I,O,E,a,$,c);r.moveTo(f+Z.cx+Z.x0,v+Z.cy+Z.y0),C0&&r.arc(f+Z.cx,v+Z.cy,V,Ve(Z.y0,Z.x0),Ve(Z.y1,Z.x1),!c),r.arc(f,v,a,Ve(Z.cy+Z.y1,Z.cx+Z.x1),Ve(tt.cy+tt.y1,tt.cx+tt.x1),!c),$>0&&r.arc(f+tt.cx,v+tt.cy,$,Ve(tt.y1,tt.x1),Ve(tt.y0,tt.x0),!c))}else r.moveTo(f+k,v+R),r.arc(f,v,a,l,u,!c);if(!(n>Fr)||!B)r.lineTo(f+O,v+E);else if(M>Fr){var V=oa(p,M),$=oa(g,M),Z=lf(O,E,D,I,n,-$,c),tt=lf(k,R,L,P,n,-V,c);r.lineTo(f+Z.cx+Z.x0,v+Z.cy+Z.y0),M0&&r.arc(f+Z.cx,v+Z.cy,$,Ve(Z.y0,Z.x0),Ve(Z.y1,Z.x1),!c),r.arc(f,v,n,Ve(Z.cy+Z.y1,Z.cx+Z.x1),Ve(tt.cy+tt.y1,tt.cx+tt.x1),c),V>0&&r.arc(f+tt.cx,v+tt.cy,V,Ve(tt.y1,tt.x1),Ve(tt.y0,tt.x0),!c))}else r.lineTo(f+O,v+E),r.arc(f,v,n,u,l,c)}r.closePath()}}}var Tz=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),SD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Tz},t.prototype.buildPath=function(e,a){wz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ct);SD.prototype.type="sector";const Qe=SD;var Cz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),xD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Cz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(Ct);xD.prototype.type="ring";const th=xD;function Az(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,v;if(a){f=[1/0,1/0],v=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(a){var i=Az(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;sdi[1]){if(i=!1,Me.negativeSize||a)return i;var l=uf(di[0]-hi[1]),u=uf(hi[0]-di[1]);fd(l,u)>vf.len()&&(l=u||!Me.bidirectional)&&(st.scale(ff,s,-u*n),Me.useDir&&Me.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u0){var v=f.duration,c=f.delay,h=f.easing,d={duration:v,delay:c||0,easing:h,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 kt(r,t,e,a,n,i){Hm("update",r,t,e,a,n,i)}function Zt(r,t,e,a,n,i){Hm("enter",r,t,e,a,n,i)}function hs(r){if(!r.__zr)return!0;for(var t=0;tpa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function uS(r){return!r.isGroup}function Zz(r){return r.shape!=null}function ku(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){uS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Zz(o)&&(s.shape=nt(o.shape)),s}var i=a(r);t.traverse(function(o){if(uS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),kt(o,l,e,ht(o).dataIndex)}}})}function OD(r,t){return Y(r,function(e){var a=e[0];a=ie(a,t.x),a=yr(a,t.x+t.width);var n=e[1];return n=ie(n,t.y),n=yr(n,t.y+t.height),[a,n]})}function Xz(r,t){var e=ie(r.x,t.x),a=yr(r.x+r.width,t.x+t.width),n=ie(r.y,t.y),i=yr(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Ru(r,t,e){var a=H({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),lt(n,e),new Be(a)):lu(r.replace("path://",""),a,e,"center")}function Ll(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=vd(h,d,f,v)/c;return!(g<0||g>1)}function vd(r,t,e,a){return r*a-e*t}function qz(r){return r<=1e-6&&r>=-1e-6}function io(r,t,e,a,n){return t==null||(Lt(t)?jt[0]=jt[1]=jt[2]=jt[3]=t:(jt[0]=t[0],jt[1]=t[1],jt[2]=t[2],jt[3]=t[3]),a&&(jt[0]=ie(0,jt[0]),jt[1]=ie(0,jt[1]),jt[2]=ie(0,jt[2]),jt[3]=ie(0,jt[3])),e&&(jt[0]=-jt[0],jt[1]=-jt[1],jt[2]=-jt[2],jt[3]=-jt[3]),fS(r,jt,"x","width",3,1,n&&n[0]||0),fS(r,jt,"y","height",0,2,n&&n[1]||0)),r}var jt=[0,0,0,0];function fS(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=ie(0,yr(o,l)),r[a]=0?-t[n]:t[i]>=0?l+t[i]:pa(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function on(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=K(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Mt(l),function(f){Q(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ht(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:lt({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Hg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Kn(r,t){if(r)if(U(r))for(var e=0;et&&(t=o),ot&&(e=t=0),{min:e,max:t}}function nh(r,t,e){zD(r,t,e,-1/0)}function zD(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l=0&&s.push(l)}),s}}function jn(r,t){return mt(mt({},r,!0),t,!0)}const lV={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:". "}}}},uV={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 Xv="ZH",Ym="EN",ds=Ym,mv={},Zm={},$D=Et.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ds).toUpperCase();return r.indexOf(Xv)>-1?Xv:ds}():ds;function UD(r,t){r=r.toUpperCase(),Zm[r]=new Rt(t),mv[r]=t}function fV(r){if(K(r)){var t=mv[r.toUpperCase()]||{};return r===Xv||r===Ym?nt(t):mt(nt(t),nt(mv[ds]),!1)}else return mt(nt(r),nt(mv[ds]),!1)}function $g(r){return Zm[r]}function vV(){return Zm[ds]}UD(Ym,lV);UD(Xv,uV);var Ug=null;function cV(r){Ug||(Ug=r)}function ve(){return Ug}var Xm=1e3,qm=Xm*60,$l=qm*60,kr=$l*24,pS=kr*365,hV={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},_v={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},dV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",hf="{yyyy}-{MM}-{dd}",gS={year:"{yyyy}",month:"{yyyy}-{MM}",day:hf,hour:hf+" "+_v.hour,minute:hf+" "+_v.minute,second:hf+" "+_v.second,millisecond:dV},fr=["year","month","day","hour","minute","second","millisecond"],pV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function gV(r){return!K(r)&&!at(r)?yV(r):r}function yV(r){r=r||{};var t={},e=!0;return A(fr,function(a){e&&(e=r[a]==null)}),A(fr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=fr[s],u=ut(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):K(u)?(o=u,f=[o]):(o==null?o=_v[a]:hV[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function vn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ul(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 mV(r){return r===Ul(r)}function _V(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oh(r,t,e,a){var n=co(r),i=n[YD(e)](),o=n[Km(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[jm(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Jm(e)](),v=(f-1)%12+1,c=n[Qm(e)](),h=n[t0(e)](),d=n[e0(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof Rt?a:$g(a||$D)||vV(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,vn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,vn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,vn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,vn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,vn(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,vn(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,vn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,vn(d,3)).replace(/{S}/g,d+"")}function SV(r,t,e,a,n){var i=null;if(K(e))i=e;else if(at(e)){var o={time:r.time,level:r.time.level},s=ve();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=ss(r.value,n);i=e[f][f][0]}}return oh(new Date(r.value),i,n,a)}function ss(r,t){var e=co(r),a=e[Km(t)]()+1,n=e[jm(t)](),i=e[Jm(t)](),o=e[Qm(t)](),s=e[t0(t)](),l=e[e0(t)](),u=l===0,f=u&&s===0,v=f&&o===0,c=v&&i===0,h=c&&n===1,d=h&&a===1;return d?"year":h?"month":c?"day":v?"hour":f?"minute":u?"second":"millisecond"}function Yg(r,t,e){switch(t){case"year":r[ZD(e)](0);case"month":r[XD(e)](1);case"day":r[qD(e)](0);case"hour":r[KD(e)](0);case"minute":r[jD(e)](0);case"second":r[JD(e)](0)}return r}function YD(r){return r?"getUTCFullYear":"getFullYear"}function Km(r){return r?"getUTCMonth":"getMonth"}function jm(r){return r?"getUTCDate":"getDate"}function Jm(r){return r?"getUTCHours":"getHours"}function Qm(r){return r?"getUTCMinutes":"getMinutes"}function t0(r){return r?"getUTCSeconds":"getSeconds"}function e0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xV(r){return r?"setUTCFullYear":"setFullYear"}function ZD(r){return r?"setUTCMonth":"setMonth"}function XD(r){return r?"setUTCDate":"setDate"}function qD(r){return r?"setUTCHours":"setHours"}function KD(r){return r?"setUTCMinutes":"setMinutes"}function jD(r){return r?"setUTCSeconds":"setSeconds"}function JD(r){return r?"setUTCMilliseconds":"setMilliseconds"}function QD(r){if(!kM(r))return K(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function tL(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Eu=Gc;function Zg(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Rr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?co(r):r;if(isNaN(+l)){if(s)return"-"}else return oh(l,a,e)}if(t==="ordinal")return ag(r)?n(r):Lt(r)&&i(r)?r+"":"-";var u=ja(r);return i(u)?QD(u):ag(r)?n(r):typeof r=="boolean"?r+"":"-"}var yS=["a","b","c","d","e","f","g"],dd=function(r,t){return"{"+r+(t??"")+"}"};function eL(r,t,e){U(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function so(r,t){return t=t||"transparent",K(r)?r:ut(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function qv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sv={},pd={},TV=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Sv),this._normalMasterList=a(pd);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){A(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Sv[t]=e;return}pd[t]=e},r.get=function(t){return pd[t]||Sv[t]},r}();function CV(r){return!!Sv[r]}var Xg={coord:1,coord2:2};function AV(r){rL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var rL=et();function MV(r){var t=r.getShallow("coord",!0),e=Xg.coord;if(t==null){var a=rL.get(r.type);a&&a.getCoord2&&(e=Xg.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var ha={none:0,dataCoordSys:1,boxCoordSys:2};function aL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=ha.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=ha.dataCoordSys,i||(n=ha.none)):a==="box"&&(n=ha.boxCoordSys,!i&&!CV(e)&&(n=ha.none))}return{coordSysType:e,kind:n}}function Ou(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=aL(t),o=i.kind,s=i.coordSysType;if(n&&o!==ha.dataCoordSys&&(o=ha.dataCoordSys,s=e),o===ha.none||s!==e)return!1;var l=a(e,t);return l?(o===ha.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var nL=function(r,t){var e=t.getReferringComponents(r,ee).models[0];return e&&e.coordinateSystem};const Nu=TV;var xv=A,iL=["left","right","top","bottom","width","height"],Vi=[["width","left","right"],["height","top","bottom"]];function r0(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),v=t.childAt(u+1),c=v&&v.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var ji=r0;gt(r0,"vertical");gt(r0,"horizontal");function oL(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function DV(r,t){var e=xe(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Il.point)i=e.refPoint,n=qt(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=qt(a,e.refContainer),i=e.boxCoordFrom===Xg.coord2?e.refPoint:[q(s[0],n.width)+n.x,q(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function sL(r,t){var e=DV(r,t),a=e.viewRect,n=e.center,i=r.get("radius");U(i)||(i=[0,i]);var o=q(a.width,t.getWidth()),s=q(a.height,t.getHeight()),l=Math.min(o,s),u=q(i[0],l/2),f=q(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function qt(r,t,e){e=Eu(e||0);var a=t.width,n=t.height,i=q(r.left,a),o=q(r.top,n),s=q(r.right,a),l=q(r.bottom,n),u=q(r.width,a),f=q(r.height,n),v=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-c-i),isNaN(f)&&(f=n-l-v-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=a-s-u-c),isNaN(o)&&(o=n-l-f-v),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-c-i-(s||0)),isNaN(f)&&(f=n-v-o-(l||0));var d=new vt((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function lL(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n=p)return v;for(var g=0;g=0;l--)s=mt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Rs(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return oL(this,!1)},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}(Rt);WM(Vs,Rt);Yc(Vs);oV(Vs);sV(Vs,PV);function PV(r){var t=[];return A(Vs.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ya(e).main}),r!=="dataset"&&yt(t,"dataset")<=0&&t.unshift("dataset"),t}const It=Vs;var Gi={color:{},darkColor:{},size:{}},ae=Gi.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};H(ae,{primary:ae.neutral80,secondary:ae.neutral70,tertiary:ae.neutral60,quaternary:ae.neutral50,disabled:ae.neutral20,border:ae.neutral30,borderTint:ae.neutral20,borderShade:ae.neutral40,background:ae.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ae.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ae.neutral70,axisLineTint:ae.neutral40,axisTick:ae.neutral70,axisTickMinor:ae.neutral60,axisLabel:ae.neutral70,axisSplitLine:ae.neutral15,axisMinorSplitLine:ae.neutral05});for(var pi in ae)if(ae.hasOwnProperty(pi)){var mS=ae[pi];pi==="theme"?Gi.darkColor.theme=ae.theme.slice():pi==="highlight"?Gi.darkColor.highlight="rgba(255,231,130,0.4)":pi.indexOf("accent")===0?Gi.darkColor[pi]=En(mS,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Gi.darkColor[pi]=En(mS,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Gi.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const z=Gi;var fL="";typeof navigator<"u"&&(fL=navigator.platform||"");var Eo="rgba(0, 0, 0, 0.2)",vL=z.color.theme[0],kV=En(vL,null,null,.9);const RV={darkMode:"auto",colorBy:"series",color:z.color.theme,gradientColor:[kV,vL],aria:{decal:{decals:[{color:Eo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Eo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Eo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Eo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Eo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Eo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fL.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 cL=et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mr="original",Pe="arrayRows",_r="objectRows",ta="keyedColumns",Nn="typedArray",hL="unknown",Xr="column",yo="row",Re={Must:1,Might:2,Not:3},dL=wt();function EV(r){dL(r).datasetMap=et()}function pL(r,t,e){var a={},n=n0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=dL(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,v;r=r.slice(),A(r,function(p,g){var y=ut(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,v=d(y)),a[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;h(a[y],_,m),h(o,_,m),c.valueWayDim+=m}else if(f===g)h(a[y],0,m),h(i,0,m);else{var _=c.categoryWayDim;h(a[y],_,m),h(o,_,m),c.categoryWayDim+=m}});function h(p,g,y){for(var m=0;mt)return r[a];return r[e-1]}function mL(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:VV(a,o);if(f=f||e,!(!f||!f.length)){var v=f[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%f.length,v}}function GV(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var df,Qs,SS,xS="\0_ec_inner",FV=1,_L=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Rt(i),this._locale=new Rt(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=TS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,TS(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?SS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=et(),u=a&&a.replaceMergeMainTypeMap;EV(this),A(e,function(v,c){v!=null&&(It.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?nt(v):mt(n[c],v,!0))}),u&&u.each(function(v,c){It.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),It.topologicalTravel(s,It.getAllClassMainTypes(),f,this);function f(v){var c=BV(this,v,Ht(e[v])),h=i.get(v),d=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",p=zM(h,c,d);WN(p,v,It),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,_;A(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=v==="series",C=It.getClass(v,S.keyInfo.subType,!T);if(!C)return;if(v==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var M=H({componentIndex:x},S.keyInfo);b=new C(w,this,this,M),H(b,M),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&df(this)}this._seriesIndices||df(this)},t.prototype.getOption=function(){var e=nt(this.option);return A(e,function(a,n){if(It.hasClass(n)){for(var i=Ht(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!nu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[xS],e},t.prototype.setTheme=function(e){this._theme=new Rt(e),this._resetOption("recreate",null)},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,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function jV(r,t){return r.join(",")===t.join(",")}const JV=ZV;var Gr=A,vu=ut,CS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gd(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=CS.length;e0?e[o-1].seriesModel:null)}),s5(e)}})}function s5(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var c=o.get(t.stackedDimension,v);if(isNaN(c))return n;var h,d;s?d=o.getRawIndex(v):h=o.get(t.stackedByDimension,v);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=LN(c,m),p=m;break}}}return a[0]=c,a[1]=p,a})})}var lh=function(){function r(t){this.data=t.data||(t.sourceFormat===ta?{}:[]),this.sourceFormat=t.sourceFormat||hL,this.seriesLayoutBy=t.seriesLayoutBy||Xr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};kS=(t={},t[Pe+"_"+Xr]={pure:!0,appendData:i},t[Pe+"_"+yo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[_r]={pure:!0,appendData:i},t[ta]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},t[mr]={appendData:i},t[Nn]={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 Ss(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function NS(r){var t,e;return ut(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Yl(r){return new p5(r)}var p5=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,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(v||h1&&a>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},y5=function(){function r(t,e){if(!Lt(e)){var a="";Ot(a)}this._opFn=PL[t],this._rvalFloat=ja(e)}return r.prototype.evaluate=function(t){return Lt(t)?this._opFn(t,this._rvalFloat):this._opFn(ja(t),this._rvalFloat)},r}(),kL=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=Lt(t)?t:ja(t),n=Lt(e)?e:ja(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=K(t),l=K(e);s&&(a=l?t:0),l&&(n=s?e:0)}return an?-this._resultLT:0},r}(),m5=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ja(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=ja(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function _5(r,t){return r==="eq"||r==="ne"?new m5(r==="eq",t):Q(PL,r)?new y5(r,t):null}var S5=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 Bn(t,e)},r}();function x5(r,t){var e=new S5,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Xr&&Ot(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Q(l,y)&&Ot(_),l[y]=m}});else for(var f=0;f65535?L5:I5}function No(){return[1/0,-1/0]}function P5(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function VS(r,t,e,a,n){var i=OL[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.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,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=v&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],S=t[n[1]][0],x=t[n[1]][1],y=0;y=v&&m<=c||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=v&&m<=c||isNaN(m))&&(l[u++]=w)}else for(var y=0;yt[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,v,c,h=new(Oo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;df&&(f=v,c=S)}D>0&&Ds&&(p=s-f);for(var g=0;gd&&(d=m,h=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(h);vf-d&&(l=f-d,s.length=l);for(var p=0;pv[1]&&(v[1]=y),c[h++]=m}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=v)}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 a=[],n=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,a,n,i){return Bn(e[i],this._dimensions[i])}_d={arrayRows:t,objectRows:function(e,a,n,i){return Bn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Bn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),NL=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(),a=!!e.length,n,i;if(gf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=or(s)?Nn:mr,i=[];var v=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=rt(v.seriesLayoutBy,c.seriesLayoutBy)||null,d=rt(v.sourceHeader,c.sourceHeader),p=rt(v.dimensions,c.dimensions),g=h!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;n=g?[jg(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[jg(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&FS(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),v="";n!=null&&!f&&FS(v),s.push(f),l.push(u._getVersionSign())}),a?o=M5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[l5(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 A(r.blocks,function(n){var i=GL(n);i>=t&&(t=i+ +(a&&(!i||Qg(n)&&!n.noHeader)))}),t}return 0}function O5(r,t,e,a){var n=t.noHeader,i=B5(GL(t)),o=[],s=t.blocks||[];$e(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var f=new kL(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=VL(p)(y?H(H({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):ty(a,o.join(""),n?e:i.html);if(n)return v;var c=Zg(t.header,"ordinal",r.useUTC),h=zL(a,r.renderMode).nameStyle,d=BL(a);return r.renderMode==="richText"?FL(r,c,h)+i.richText+v:ty(a,'
'+Fe(c)+"
"+v,e)}function N5(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],Y(S,function(x,b){return Zg(x,U(h)?h[b]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||z.color.secondary,n),c=i?"":Zg(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=zL(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":FL(r,c,m))+(o?"":G5(r,d,p,g,_)):ty(a,(s?"":v)+(i?"":z5(c,!s,m))+(o?"":V5(d,p,g,_)),e)}}function HS(r,t,e,a,n,i){if(r){var o=VL(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function B5(r){return{html:R5[r],richText:E5[r]}}function ty(r,t,e){var a='
',n="margin: "+e+"px 0 0",i=BL(r);return'
'+t+a+"
"}function z5(r,t,e){var a=t?"margin-left:2px":"";return''+Fe(r)+""}function V5(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],''+Y(r,function(o){return Fe(o)}).join("  ")+""}function FL(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function G5(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,i)}function HL(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return so(a)}function WL(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Sd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=RM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=wV({color:e,type:t,renderMode:a,markerId:n});return K(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};U(e)?A(e,function(i){return H(a,i)}):H(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function $L(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=U(s),u=HL(t,e),f,v,c,h;if(o>1||l&&!o){var d=F5(s,t,e,i,u);f=d.inlineValues,v=d.inlineValueTypes,c=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=f=Ss(n,e,i[0]),v=p.type}else h=f=l?s[0]:s;var g=Dm(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return he("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[he("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Rr(_),value:f,valueType:v,dataIndex:e})].concat(c||[])})}function F5(r,t,e,a,n){var i=t.getData(),o=Ca(r,function(v,c,h){var d=i.getDimensionInfo(h);return v=v||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(v){f(Ss(i,e,v),v)}):A(r,f);function f(v,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(he("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var cn=wt();function yf(r,t){return r.getName(t)||r.getId(t)}var bv="__universalTransitionEnabled",vh=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Yl({count:W5,reset:$5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=cn(this).sourceManager=new NL(this);i.prepareSource();var o=this.getInitialData(e,n);$S(o,this),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,WS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=fu(this),i=n?go(e):{},o=this.subType;It.hasClass(o)&&(o+="Series"),mt(e,a.getTheme().get(this.subType)),mt(e,this.getDefaultOption()),eo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&La(e,i,n)},t.prototype.mergeOption=function(e,a){e=mt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=fu(this);n&&La(this.option,e,n);var i=cn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);$S(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,WS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!or(e))for(var a=["show"],n=0;n=0&&c<0)&&(v=m,c=y,h=0),y===c&&(f[h++]=p))}),f.length=h,f},t.prototype.formatTooltip=function(e,a,n){return $L({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Et.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=i0.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),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,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[yf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[bv])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ut(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,a)}},t.registerClass=function(e){return It.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}(It);pe(vh,uh);pe(vh,i0);WM(vh,It);function WS(r){var t=r.name;Dm(r)||(r.name=H5(r)||t)}function H5(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function W5(r){return r.model.getRawData().count()}function $5(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),U5}function U5(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function $S(r,t){A(Ql(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,gt(Y5,t))})}function Y5(r,t){var e=ey(r);return e&&e.setOutputEnd((t||this).count()),t}function ey(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const Kt=vh;var f0=function(){function r(){this.group=new it,this.uid=zs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Im(f0);Yc(f0);const Qt=f0;function Gs(){var r=wt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var UL=wt(),Z5=Gs(),v0=function(){function r(){this.group=new it,this.uid=zs("viewChart"),this.renderTask=Yl({plan:X5,reset:q5}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&YS(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&YS(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Kn(this.group,t)},r.markUpdateMethod=function(t,e){UL(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function US(r,t,e){r&&su(r)&&(t==="emphasis"?Ja:Qa)(r,e)}function YS(r,t,e){var a=ro(r,t),n=t&&t.highlightKey!=null?uz(t.highlightKey):null;a!=null?A(Ht(a),function(i){US(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){US(i,e,n)})}Im(v0);Yc(v0);function X5(r){return Z5(r.model)}function q5(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&UL(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),K5[l]}var K5={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 Ut=v0;var Kv="\0__throttleOriginMethod",ZS="\0__throttleRate",XS="\0__throttleType";function c0(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],d=0;d=0?v():o=setTimeout(v,-s),n=a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Fs(r,t,e,a){var n=r[t];if(n){var i=n[Kv]||n,o=n[XS],s=n[ZS];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=c0(i,e,a==="debounce"),n[Kv]=i,n[XS]=a,n[ZS]=e}return n}}function cu(r,t){var e=r[t];e&&e[Kv]&&(e.clear&&e.clear(),r[t]=e[Kv])}var qS=wt(),KS={itemStyle:ao(WD,!0),lineStyle:ao(HD,!0)},j5={lineStyle:"stroke",itemStyle:"fill"};function YL(r,t){var e=r.visualStyleMapper||KS[t];return e||(console.warn("Unknown style type '"+t+"'."),KS.itemStyle)}function ZL(r,t){var e=r.visualDrawType||j5[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var J5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=YL(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=ZL(r,a),u=o[l],f=at(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||at(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||at(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=H({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},el=new Rt,Q5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=YL(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){el.option=l[a];var u=n(el),f=o.ensureUniqueItemVisual(s,"style");H(f,u),el.option.decal&&(o.setItemVisual(s,"decal",el.option.decal),el.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tG={performRawSeries:!0,overallReset:function(r){var t=et();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),qS(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=qS(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=ZL(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var c=i.ensureUniqueItemVisual(f,"style"),h=a.getName(u)||u+"",d=a.count();c[l]=e.getColorFromPalette(h,o,d)}})}})}},mf=Math.PI;function eG(r,t){t=t||{},lt(t,{text:"loading",textColor:z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new it,a=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Pt({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 bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Fm({shape:{startAngle:-mf/2,endAngle:-mf/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:mf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:mf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.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),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var rG=function(){function r(t,e,a,n){this._stageTaskMap=et(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=et();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";$e(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,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,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,c=f.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,a);var p=o.getPerformArgs(c,n.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(i=!0)}else v&&v.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.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,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=et(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(v){var c=v.uid,h=s.set(c,o&&o.get(c)||Yl({plan:sG,reset:lG,count:fG}));h.context={model:v,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Yl({reset:aG});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=et(),u=t.seriesType,f=t.getTargetSeries,v=!0,c=!1,h="";$e(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(v=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,Yl({reset:nG,onDirty:oG})));y.context={model:p,overallProgress:v},y.agent=o,y.__block=v,i._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return at(t)&&(t={overallReset:t,seriesType:vG(t)}),t.uid=zs("stageHandler"),e&&(t.visualType=e),t},r}();function aG(r){r.overallReset(r.ecModel,r.api,r.payload)}function nG(r){return r.overallProgress&&iG}function iG(){this.agent.dirty(),this.getDownstream().dirty()}function oG(){this.agent&&this.agent.dirty()}function sG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function lG(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ht(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,a){return XL(a)}):uG}var uG=XL(0);function XL(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&h===u.length-c.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(v,c,h,d){return v[h]==null||c[d||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ry=["symbol","symbolSize","symbolRotate","symbolOffset"],JS=ry.concat(["symbolKeepAspect"]),pG={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 a={},n={},i=!1,o=0;o=0&&Hi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function ay(r,t,e){for(var a=t.type==="radial"?PG(r,t,e):IG(r,t,e),n=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Lt(r)?[r]:U(r)?r:null}function d0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&RG(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Y(e,function(i){return i/n}),a/=n)}return[e,a]}var EG=new Da(!0);function Qv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function QS(r){return typeof r=="string"&&r!=="none"}function tc(r){var t=r.fill;return t!=null&&t!=="none"}function tx(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function ex(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function ny(r,t,e){var a=Pm(t.image,t.__image,e);if(Zc(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*sv),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function OG(r,t,e,a){var n,i=Qv(e),o=tc(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||EG,v=t.__dirty;if(!a){var c=e.fill,h=e.stroke,d=o&&!!c.colorStops,p=i&&!!h.colorStops,g=o&&!!c.image,y=i&&!!h.image,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=v?ay(r,c,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=v?ay(r,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=v||!t.__canvasFillPattern?ny(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=v||!t.__canvasStrokePattern?ny(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(n=d0(t),T=n[0],C=n[1]);var M=!0;(u||v&Qo)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,a),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(e.strokeFirst?(i&&ex(r,e),o&&tx(r,e)):(o&&tx(r,e),i&&ex(r,e))),T&&r.setLineDash([])}function NG(r,t,e){var a=t.__image=Pm(e.image,t.__image,t,t.onload);if(!(!a||!Zc(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,v=o-u,c=s-f;r.drawImage(a,u,f,v,c,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function BG(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||qa,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=d0(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Qv(e)&&r.strokeText(n,e.x,e.y),tc(e)&&r.fillText(n,e.x,e.y)):(tc(e)&&r.fillText(n,e.x,e.y),Qv(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var rx=["shadowBlur","shadowOffsetX","shadowOffsetY"],ax=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function eI(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){nr(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Zi.opacity:o}(a||t.blend!==e.blend)&&(i||(nr(r,n),i=!0),r.globalCompositeOperation=t.blend||Zi.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[ge]){if(this._disposed){this.id;return}var i,o,s;if(ut(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ge]=!0,Go(this),!this._model||a){var l=new JV(this._api),u=this._theme,f=this._model=new SL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ly);var v={seriesTransition:s,optionChanged:!0};if(n)this[Ae]={silent:i,updateParams:v},this[ge]=!1,this.getZr().wakeUp();else{try{Si(this),Na.update.call(this,null,v)}catch(c){throw this[Ae]=null,this[ge]=!1,c}this._ssr||this._zr.flush(),this[Ae]=null,this[ge]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[ge]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ae]&&(i==null&&(i=this[Ae].silent),o=this[Ae].updateParams,this[Ae]=null),this[ge]=!0,Go(this);try{this._updateTheme(e),n.setTheme(this._theme),Si(this),Na.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ge]=!1,s}this[ge]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype._updateTheme=function(e){K(e)&&(e=_I[e]),e&&(e=nt(e),e&&wL(e,!0),this._theme=e)},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||Et.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(mx[n]){var l=s,u=s,f=-s,v=-s,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();A(Zl,function(_,S){if(_.group===n){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(nt(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),v=o(b.bottom,v),c.push({dom:x,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,v*=h;var d=f-l,p=v-u,g=qr.createCanvas(),y=x1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(c,function(_){var S=_.left-l,x=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new Be({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return bf(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return bf(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return bf(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=cs(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=cs(n,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?h0(s,l,a):Bu(s,a)},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;A(v3,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Fi(l,function(p){var g=ht(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=H({},g.eventData),!0},!0),u){var v=u.componentType,c=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",c=u.seriesIndex);var h=v&&c!=null&&s.getComponent(v,c),d=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;A(oy,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),yG(a,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&&GM(this.getDom(),y0,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Zl[a.id]},t.prototype.resize=function(e){if(!this[ge]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Ae]&&(i==null&&(i=this[Ae].silent),n=!0,this[Ae]=null),this[ge]=!0,Go(this);try{n&&Si(this),Na.update.call(this,{type:"resize",animation:H({duration:0},e&&e.animation)})}catch(o){throw this[ge]=!1,o}this[ge]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(ut(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!uy[e]){var n=uy[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},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 a=H({},e);return a.type=iy[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(ut(a)||(a={silent:!!a}),!!ec[e.type]&&this._model){if(this[ge]){this._pendingActions.push(e);return}var n=a.silent;Ad.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Et.browser.weChat&&this._throttledZrFlush(),zo.call(this,n),Vo.call(this,n)}},t.prototype.updateLabelLayout=function(){Wr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Si=function(v){var c=v._scheduler;c.restorePipelines(v._model),c.prepareStageTasks(),Td(v,!0),Td(v,!1),c.plan()},Td=function(v,c){for(var h=v._model,d=v._scheduler,p=c?v._componentsViews:v._chartsViews,g=c?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_c.get("hoverLayerThreshold")&&!Et.node&&!Et.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=v._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(v,c){var h=v.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(v,c){if(!v.preventAutoZ){var h=oo(v);c.eachRendered(function(d){return nh(d,h.z,h.zlevel),!0})}}function u(v,c){c.eachRendered(function(h){if(!hs(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(v,c){var h=v.getModel("stateAnimation"),d=v.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(hs(y))return;if(y instanceof Ct&&fz(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}gx=function(v){return new(function(c){N(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return v._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){Ja(d,p),Sr(v)},h.prototype.leaveEmphasis=function(d,p){Qa(d,p),Sr(v)},h.prototype.enterBlur=function(d){sD(d),Sr(v)},h.prototype.leaveBlur=function(d){Bm(d),Sr(v)},h.prototype.enterSelect=function(d){lD(d),Sr(v)},h.prototype.leaveSelect=function(d){uD(d),Sr(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(d){return v.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return v.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return v[Sf]},h}(xL))(v)},yI=function(v){function c(h,d){for(var p=0;p=0)){_x.push(e);var i=jL.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function wI(r,t){uy[r]=t}function _3(r,t,e){var a=XG("registerMap");a&&a(r,t,e)}var S3=A5;_o(p0,J5);_o(ch,Q5);_o(ch,tG);_o(p0,pG);_o(ch,gG);_o(vI,UG);xI(wL);bI(QG,o5);wI("default",eG);Pa({type:Xi,event:Xi,update:Xi},oe);Pa({type:gv,event:gv,update:gv},oe);Pa({type:Wv,event:Om,update:Wv,action:oe,refineEvent:S0,publishNonRefinedEvent:!0});Pa({type:Og,event:Om,update:Og,action:oe,refineEvent:S0,publishNonRefinedEvent:!0});Pa({type:$v,event:Om,update:$v,action:oe,refineEvent:S0,publishNonRefinedEvent:!0});function S0(r,t,e,a){return{eventContent:{selected:iz(e),isFromClick:t.isFromClick||!1}}}SI("default",{});SI("dark",hG);var Sx=[],x3={registerPreprocessor:xI,registerProcessor:bI,registerPostInit:p3,registerPostUpdate:g3,registerUpdateLifecycle:m0,registerAction:Pa,registerCoordinateSystem:y3,registerLayout:m3,registerVisual:_o,registerTransform:S3,registerLoading:wI,registerMap:_3,registerImpl:ZG,PRIORITY:l3,ComponentModel:It,ComponentView:Qt,SeriesModel:Kt,ChartView:Ut,registerComponentModel:function(r){It.registerClass(r)},registerComponentView:function(r){Qt.registerClass(r)},registerSeriesModel:function(r){Kt.registerClass(r)},registerChartView:function(r){Ut.registerClass(r)},registerCustomSeries:function(r,t){qG(r,t)},registerSubTypeDefaulter:function(r,t){It.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){bN(r,t)}};function _t(r){if(U(r)){A(r,function(t){_t(t)});return}yt(Sx,r)>=0||(Sx.push(r),at(r)&&(r={install:r}),r.install(x3))}function al(r){return r==null?0:r.length||1}function xx(r){return r}var b3=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||xx,this._newKeyGetter=n||xx,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,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(v===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(v===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(v>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(v>1)for(var h=0;h1)for(var s=0;s30}var nl=ut,hn=Y,L3=typeof Int32Array>"u"?Array:Int32Array,I3="e\0\0",bx=-1,P3=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],k3=["_approximateExtent"],Tx,Tf,il,ol,Ld,sl,Id,R3=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;CI(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===mr;if(l&&!n.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),U(i)?i=i.slice():nl(i)&&(i=H({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,nl(e)?H(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){nl(t)?H(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,a){this._itemLayouts[t]=a?H(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Eg(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:hn(this.dimensions,this._getDimInfo,this),this.hostModel)),Ld(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];at(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(mm(arguments)))})},r.internalField=function(){Tx=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new L3(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();const je=R3;function zu(r,t){o0(r)||(r=s0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=et(),i=[],o=O3(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&DI(o),l=a===r.dimensionsDefine,u=l?MI(r):AI(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var v=et(f),c=new EL(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function O3(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;ut(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function N3(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var B3=function(){function r(t){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=t}return r}();function z3(r){var t=r.get("coordinateSystem"),e=new B3(t),a=V3[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var V3={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",ee).models[0],i=r.getReferringComponents("yAxis",ee).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Fo(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Fo(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",ee).models[0];t.coordSysDims=["single"],e.set("single",n),Fo(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",ee).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Fo(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Fo(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Fo(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",ee).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function Fo(r){return r.get("type")==="category"}function G3(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;F3(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,v,c;if(A(i,function(m,_){K(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){v="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===h&&p++});var g={name:v,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(v,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:v}}function F3(r){return!CI(r.schema)}function Fn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function LI(r,t){return Fn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function H3(r,t){var e=r.get("coordinateSystem"),a=Nu.get(e),n;return t&&t.coordSysDims&&(n=Y(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=ac(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function W3(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function sn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=s0(r)):(n=a.getSource(),i=n.sourceFormat===mr);var o=z3(t),s=H3(t,o),l=e.useEncodeDefaulter,u=at(l)?l:l?gt(pL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=zu(n,f),c=W3(v.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(v),d=G3(t,{schema:v,store:h}),p=new je(v,t);p.setCalculationInfo(d);var g=c!=null&&$3(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function $3(r){if(r.sourceFormat===mr){var t=U3(r.data||[]);return!U(ks(t))}}function U3(r){for(var t=0;tn&&(o=i.interval=n);var s=i.intervalPrecision=pu(o),l=i.niceTickExtent=[fe(Math.ceil(r[0]/o)*o,s),fe(Math.floor(r[1]/o)*o,s)];return Z3(l,r),i}function Pd(r){var t=Math.pow(10,Mm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,fe(e*t)}function pu(r){return ga(r)+2}function Cx(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Z3(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Cx(r,0,t),Cx(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function x0(r,t){return r>=t[0]&&r<=t[1]}var X3=function(){function r(){this.normalize=Ax,this.scale=Mx}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=j(t.normalize,t),this.scale=j(t.scale,t)):(this.normalize=Ax,this.scale=Mx)},r}();function Ax(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Mx(r,t){return r*(t[1]-t[0])+t[0]}function vy(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var II=function(){function r(t){this._calculator=new X3,this._setting=t||{},this._extent=[1/0,-1/0];var e=ve();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){var e=ve();e&&this._innerSetBreak(e.parseAxisBreakOption(t,j(this.parse,this)))},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},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}();Yc(II);const So=II;var q3=0,K3=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++q3,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Y(a,j3);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!K(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},r}();function j3(r){return ut(r)&&r.value!=null?r.value:r+""}const gu=K3;var PI=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new gu({})),U(n)&&(n=new gu({categories:Y(n,function(i){return ut(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:K(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return x0(e,this._extent)&&e>=0&&e=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(So);So.registerClass(PI);const yu=PI;var dn=fe,kI=function(r){N(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==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return x0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=pu(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=ve(),l=[];if(!a)return l;if(e.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;n[0]=0&&(v=dn(v+c*a,o))}if(l.length>0&&v===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:i[1];return n[1]>h&&(e.expandToNicedExtent?l.push({value:dn(h+a,o)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(e.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),e.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;oi[0]&&d0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function OI(r){var t=tF(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),c=Math.abs(v[1]-v[0]);s=u?f/c*u:f}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=q(a.get("barWidth"),s),p=q(a.get("barMaxWidth"),s),g=q(a.get("barMinWidth")||(GI(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:w0(i),stackId:b0(a)})}),NI(e)}function NI(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var v=a.barMaxWidth;v&&(l[u].maxWidth=v);var c=a.barMinWidth;c&&(l[u].minWidth=c);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Mt(i).length;s=Math.max(35-l*4,15)+"%"}var u=q(s,o),f=q(a.gap,1),v=a.remainedWidth,c=a.autoWidthCount,h=(v-u)/(c+(c-1)*f);h=Math.max(h,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,v-=S+f*S,c--}else{var S=h;m&&mS&&(S=_),S!==h&&(y.width=S,v-=S+f*S,c--)}}),h=(v-u)/(c+(c-1)*f),h=Math.max(h,0);var d=0,p;A(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function eF(r,t,e){if(r&&t){var a=r[w0(t)];return a!=null&&e!=null?a[b0(e)]:a}}function BI(r,t){var e=EI(r,t),a=OI(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=b0(n),u=a[w0(s)][l],f=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:v})})}function zI(r){return{seriesType:r,plan:Gs(),reset:function(t){if(VI(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),v=Fn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=rF(n,i),d=GI(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&ma(x*3),w=d&&l&&ma(x*3),T=d&&ma(x),C=a.master.getRect(),M=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(v?g:o,D),k=I.get(s,D),R=h,O=void 0;v&&(O=+P-I.get(o,D));var E=void 0,B=void 0,G=void 0,F=void 0;if(c){var W=a.dataToPoint([P,k]);if(v){var X=a.dataToPoint([O,k]);R=X[0]}E=R,B=W[1]+m,G=W[0]-R,F=y,Math.abs(G)0?e:1:e))}var aF=function(r,t,e,a){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var o=Cf.length,s=Math.min(aF(Cf,this._approxInterval,0,o),o-1);this._interval=Cf[s][1],this._intervalPrecision=pu(this._interval),this._minLevelUnit=Cf[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Lt(e)?e:+co(e)},t.prototype.contain=function(e){return x0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(Hn),Cf=[["second",Xm],["minute",qm],["hour",$l],["quarter-day",$l*6],["half-day",$l*12],["day",kr*1.2],["half-week",kr*3.5],["week",kr*7],["month",kr*31],["quarter",kr*95],["half-year",pS/2],["year",pS]];function HI(r,t,e,a){return Yg(new Date(t),r,a).getTime()===Yg(new Date(e),r,a).getTime()}function nF(r,t){return r/=kr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function iF(r){var t=30*kr;return r/=t,r>6?6:r>3?3:r>2?2:1}function oF(r){return r/=$l,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Dx(r,t){return r/=t?qm:Xm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function sF(r){return PM(r,!0)}function lF(r,t,e){var a=Math.max(0,yt(fr,t)-1);return Yg(new Date(r),fr[a],e).getTime()}function uF(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function fF(r,t,e,a,n,i){var o=1e4,s=pV,l=0;function u(L,P,k,R,O,E,B){for(var G=uF(O,L),F=P,W=new Date(F);Fo));)if(W[O](W[R]()+L),F=W.getTime(),i){var X=i.calcNiceTickMultiple(F,G);X>0&&(W[O](W[R]()+X*L),F=W.getTime())}B.push({value:F,notAdd:!0})}function f(L,P,k){var R=[],O=!P.length;if(!HI(Ul(L),a[0],a[1],e)){O&&(P=[{value:lF(a[0],L,e)},{value:a[1]}]);for(var E=0;E=a[0]&&B<=a[1]&&u(F,B,G,W,X,J,R),L==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-F})}}for(var E=0;E=a[0]&&S<=a[1]&&h++)}var x=n/t;if(h>x*1.5&&d>x/1.5||(v.push(m),h>x||r===s[p]))break}c=[]}}}for(var b=Bt(Y(v,function(L){return Bt(L,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(L){return L.length>0}),w=[],T=b.length-1,p=0;p0;)i*=10;var s=[hy(cF(a[0]/i)*i),hy(vF(a[1]/i)*i)];this._interval=i,this._intervalPrecision=pu(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Mf(e)/Mf(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Mf(e)/Mf(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Af(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=ve();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,j(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(Hn);function Df(r,t){return hy(r,ga(t))}So.registerClass($I);const hF=$I;var dF=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(s=c,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:v}},r.prototype.modifyDataMinMax=function(t,e){this[gF[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=pF[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),pF={min:"_determinedMin",max:"_determinedMax"},gF={min:"_dataMin",max:"_dataMax"};function UI(r,t,e){var a=r.rawExtentInfo;return a||(a=new dF(r,t,e),r.rawExtentInfo=a,a)}function Lf(r,t){return t==null?null:He(t)?NaN:r.parse(t)}function YI(r,t){var e=r.type,a=UI(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=EI("bar",o),l=!1;if(A(s,function(v){l=l||v.getBaseAxis()===t.axis}),l){var u=OI(s),f=yF(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function yF(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=eF(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,v=1-(s+l)/i,c=f/v-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function bs(r,t){var e=t,a=YI(r,e),n=a.extent,i=e.get("splitNumber");r instanceof hF&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(XI(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function hh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new yu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new WI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(So.getClass(t)||Hn)}}function mF(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Ws(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=gV(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(K(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(at(t)){if(r.type==="category")return function(n,i){return t(nc(r,n),n.value-r.scale.getExtent()[0],null)};var a=ve();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(nc(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function nc(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function T0(r){var t=r.get("interval");return t??"auto"}function ZI(r){return r.type==="category"&&T0(r.getLabelModel())===0}function ic(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[LI(r,a)]=!0}),Mt(e)}function _F(r,t,e){t&&A(ic(t,e),function(a){var n=t.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}function ws(r){return r==="middle"||r==="center"}function mu(r){return r.getShallow("show")}function XI(r){var t=r.get("breaks",!0);if(t!=null)return!ve()||!SF(r.axis)?void 0:t}function SF(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Vu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),xF=1e-8;function Lx(r,t){return Math.abs(r-t)n&&(a=o,n=l)}if(a)return wF(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Ix(s.exterior,n,i,e):A(s.points,function(l){Ix(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function AF(r,t){return r=CF(r),Y(Bt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Px(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new Px(l[0],l.slice(1)))});break;case"LineString":i.push(new kx([n.coordinates]));break;case"MultiLineString":i.push(new kx(n.coordinates))}var s=new KI(a[t||"name"],i,a.cp);return s.properties=a,s})}var MF=wt(),Xl=wt(),Jr={estimate:1,determine:2};function oc(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function JI(r,t){var e=Y(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function DF(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Ws(r),n=r.scale.getExtent(),i=JI(r,e),o=Bt(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?IF(r,t):kF(r)}function LF(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=JI(r,a);return{ticks:Bt(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?PF(r,t):{ticks:Y(r.scale.getTicks(e),function(o){return o.value})}}function IF(r,t){var e=r.getLabelModel(),a=QI(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function QI(r,t,e){var a=EF(r),n=T0(t),i=e.kind===Jr.estimate;if(!i){var o=e2(a,n);if(o)return o}var s,l;at(n)?s=n2(r,n):(l=n==="auto"?OF(r,e):n,s=a2(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return dy(a,n,u),!0}):dy(a,n,u),u}function PF(r,t){var e=RF(r),a=T0(t),n=e2(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),at(a))i=n2(r,a,!0);else if(a==="auto"){var s=QI(r,r.getLabelModel(),oc(Jr.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=a,i=a2(r,o,!0);return dy(e,a,{ticks:i,tickCategoryInterval:o})}function kF(r){var t=r.scale.getTicks(),e=Ws(r);return{labels:Y(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var RF=t2("axisTick"),EF=t2("axisLabel");function t2(r){return function(e){return Xl(e)[r]||(Xl(e)[r]={list:[]})}}function e2(r,t){for(var e=0;ef&&(u=Math.max(1,Math.floor(l/f)));for(var v=s[0],c=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),p=0,g=0;v<=s[1];v+=u){var y=0,m=0,_=Uc(n({value:v}),a.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(e===Jr.estimate)return t.out.noPxChangeTryDetermine.push(j(BF,null,r,b,l)),b;var w=r2(r,b,l);return w??b}function BF(r,t,e){return r2(r,t,e)==null}function r2(r,t,e){var a=MF(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function zF(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 a2(r,t,e){var a=Ws(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var v=ZI(r),c=o.get("showMinLabel")||v,h=o.get("showMaxLabel")||v;c&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function n2(r,t,e){var a=r.scale,n=Ws(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Rx=[0,1],VF=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return LM(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ex(a,n.count())),Nt(t,Rx,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ex(a,n.count()));var i=Nt(t,a,Rx,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(),a=LF(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=Y(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return GF(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 a=this.scale.getMinorTicks(e),n=Y(a,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||oc(Jr.determine),DF(this,t).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(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||oc(Jr.determine),NF(this,t)},r}();function Ex(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function GF(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(h){h.coord-=u/2,h.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var v=i[0]>i[1];c(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&c(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),c(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&c(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function c(h,d){return h=fe(h),d=fe(d),v?h>d:hn&&(n+=ll);var h=Math.atan2(s,o);if(h<0&&(h+=ll),h>=a&&h<=n||h+ll>=a&&h+ll<=n)return l[0]=f,l[1]=v,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function sc(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,v=a-t,c=Math.sqrt(f*f+v*v);f/=c,v/=c;var h=l*f+u*v,d=h/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=t+d*v;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function i2(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var $r=[];function $F(r,t,e){var a=i2(t.x,t.y,t.width,t.height,r.x,r.y,$r);return e.set($r[0],$r[1]),a}function UF(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,v=r.x,c=r.y,h=0;h0){t=t/180*Math.PI,Ur.fromArray(r[0]),Yt.fromArray(r[1]),ne.fromArray(r[2]),st.sub(_a,Ur,Yt),st.sub(da,ne,Yt);var e=_a.len(),a=da.len();if(!(e<.001||a<.001)){_a.scale(1/e),da.scale(1/a);var n=_a.dot(da),i=Math.cos(t);if(i1&&st.copy(Ke,ne),Ke.toArray(r[1])}}}}function YF(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ur.fromArray(r[0]),Yt.fromArray(r[1]),ne.fromArray(r[2]),st.sub(_a,Yt,Ur),st.sub(da,ne,Yt);var a=_a.len(),n=da.len();if(!(a<.001||n<.001)){_a.scale(1/a),da.scale(1/n);var i=_a.dot(t),o=Math.cos(e);if(i=l)st.copy(Ke,ne);else{Ke.scaleAndAdd(da,s/Math.tan(Math.PI/2-f));var v=ne.x!==Yt.x?(Ke.x-Yt.x)/(ne.x-Yt.x):(Ke.y-Yt.y)/(ne.y-Yt.y);if(isNaN(v))return;v<0?st.copy(Ke,Yt):v>1&&st.copy(Ke,ne)}Ke.toArray(r[1])}}}}function Ed(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function ZF(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=wn(a[0],a[1]),i=wn(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=uv([],a[1],a[0],o/n),l=uv([],a[1],a[2],o/i),u=uv([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&n&&b(-v/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),x(m,_,1),x(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-e,_=a-y.rect[o]-y.rect[s]}function x(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){b(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function b(C,M,D){C!==0&&(f=!0);for(var I=M;I0)for(var L=0;L0;L--){var O=D[L-1]*R;b(-O,L,i)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),I=0;I0?b(D,0,I+1):b(-D,i-I-1,i),C-=D,C<=0)return}return f}function KF(r){for(var t=0;t=0&&a.attr(i.oldLayoutSelect),yt(c,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),kt(a,u,e,l)}else if(a.attr(u),!Bs(a).valueAnimation){var v=rt(a.style.opacity,1);a.style.opacity=0,Zt(a,{style:{opacity:v}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};If(h,u,Pf),If(h,a.states.select,Pf)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};If(d,u,Pf),If(d,a.states.emphasis,Pf)}FD(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=QF(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),kt(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Zt(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const eH=tH;var Bd=wt();function rH(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=Bd(e).labelManager;n||(n=Bd(e).labelManager=new eH),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=Bd(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var zd=Math.sin,Vd=Math.cos,v2=Math.PI,bi=Math.PI*2,aH=180/v2,nH=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),c=Dn(v-bi)||(f?u>=bi:-u>=bi),h=u>0?u%bi:u%bi+bi,d=!1;c?d=!0:Dn(v)?d=!1:d=h>=v2==!!f;var p=t+a*Vd(o),g=e+n*zd(o);this._start&&this._add("M",p,g);var y=Math.round(i*aH);if(c){var m=1/this._p,_=(f?1:-1)*(bi-m);this._add("A",a,n,y,1,+f,t+a*Vd(o+_),e+n*zd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*Vd(s),x=e+n*zd(s);this._add("A",a,n,y,+d,+f,S,x)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var f=[],v=this._p,c=1;c"}function hH(r){return""}function M0(r,t){t=t||{};var e=t.newline?` -`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return cH(o,s)+(o!=="style"?Fe(l):l||"")+(i?""+e+Y(i,function(u){return a(u)}).join(e)+e:"")+hH(o)}return a(r)}function dH(r,t,e){e=e||{};var a=e.newline?` -`:"",n=" {"+a,i=a+"}",o=Y(Mt(r),function(l){return l+n+Y(Mt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Y(Mt(t),function(l){return"@keyframes "+l+n+Y(Mt(t[l]),function(u){return u+n+Y(Mt(t[l][u]),function(f){var v=t[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function _y(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Gx(r,t,e,a){return Te("svg","root",{width:r,height:t,xmlns:h2,"xmlns:xlink":d2,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var pH=0;function g2(){return pH++}var Fx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ci="transform-origin";function gH(r,t,e){var a=H({},r.shape);H(a,t),r.buildPath(e,a);var n=new c2;return n.reset(mM(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function yH(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Ci]=e+"px "+a+"px")}var mH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function y2(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function _H(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=_y(e.zrId);u.animation=!0,ph(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,c=Mt(f),h=c.length;if(h){o=c[h-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=y2(n,e);return i.replace(o,s)}}function Hx(r){return K(r)?Fx[r]?"cubic-bezier("+Fx[r]+")":wm(r)?r:"":""}function ph(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof rh){var s=_H(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var zt=y2(w,e);return zt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+g2();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function SH(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};Wx(a,t,e,!0)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=mg(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),Wx(a,t,e,!0)}}function Wx(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+g2(),e.cssStyleCache[n]=i,e.cssNodes["."+i+(a?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var _u=Math.round;function m2(r){return r&&K(r.src)}function _2(r){return r&&at(r.toDataURL)}function D0(r,t,e,a){uH(function(n,i){var o=n==="fill"||n==="stroke";o&&yM(i)?x2(t,r,n,a):o&&Tm(i)?b2(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),MH(e,r,a)}function L0(r,t){var e=wN(t);e&&(e.each(function(a,n){a!=null&&(r[(Vx+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[Vx+"silent"]="true"))}function $x(r){return Dn(r[0]-1)&&Dn(r[1])&&Dn(r[2])&&Dn(r[3]-1)}function xH(r){return Dn(r[4])&&Dn(r[5])}function I0(r,t,e){if(t&&!(xH(t)&&$x(t))){var a=e?10:1e4;r.transform=$x(t)?"translate("+_u(t[4]*a)/a+" "+_u(t[5]*a)/a+")":HO(t)}}function Ux(r,t,e){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";$e(c,g),$e(h,g)}else if(c==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=c||D.width,P=h||D.height;M.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),M.attrs.width=L,M.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=Pm(d,null,r,function(M){l||y(b,M),y(v,M)});m&&m.width&&m.height&&(c=c||m.width,h=h||m.height)}v=Te("image","img",{href:d,width:c,height:h}),o.width=c,o.height=h}else n.svgElement&&(v=nt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(v){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=_M(n);x&&(o.patternTransform=x);var b=Te("pattern","",o,[v]),w=M0(b),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,b=a.defs[C]=Te("pattern",C,o,[v])),t[e]=$c(C)}}function DH(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=Te("clipPath",i,o,[S2(r,e)])}t["clip-path"]=$c(i)}function Xx(r){return document.createTextNode(r)}function ki(r,t,e){r.insertBefore(t,e)}function qx(r,t){r.removeChild(t)}function Kx(r,t){r.appendChild(t)}function w2(r){return r.parentNode}function T2(r){return r.nextSibling}function Gd(r,t){r.textContent=t}var jx=58,LH=120,IH=Te("","");function Sy(r){return r===void 0}function va(r){return r!==void 0}function PH(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function kl(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Su(r){var t,e=r.children,a=r.tag;if(va(a)){var n=r.elm=p2(a);if(P0(IH,r),U(e))for(t=0;ti?(d=e[l+1]==null?null:e[l+1].elm,C2(r,d,e,n,l)):vc(r,t,a,i))}function ts(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(P0(r,t),Sy(t.text)?va(a)&&va(n)?a!==n&&kH(e,a,n):va(n)?(va(r.text)&&Gd(e,""),C2(e,null,n,0,n.length-1)):va(a)?vc(e,a,0,a.length-1):va(r.text)&&Gd(e,""):r.text!==t.text&&(va(a)&&vc(e,a,0,a.length-1),Gd(e,t.text)))}function RH(r,t){if(kl(r,t))ts(r,t);else{var e=r.elm,a=w2(e);Su(t),a!==null&&(ki(a,t.elm,T2(e)),vc(a,[r],0,0))}return t}var EH=0,OH=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Jx(),this.configLayer=Jx(),this.storage=e,this._opts=a=H({},a),this.root=t,this._id="zr"+EH++,this._oldVNode=Gx(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=p2("svg");P0(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",RH(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Zx(t,_y(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=_y(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=NH(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Te("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Y(Mt(i.defs),function(c){return i.defs[c]});if(u.length&&o.push(Te("defs","defs",{},u)),t.animation){var f=dH(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=Te("style","stl",{},[],f);o.push(v)}}return Gx(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},M0(this.renderToVNode({animation:rt(t.cssAnimation,!0),emphasis:rt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:rt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(c&&l&&c[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var v=this.__startIndex;v15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,D=0;D0&&t>n[0]){for(l=0;lt);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n0?kf:0),this._needsManuallyCompositing),f.__builtin__||gm("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),n.__dirty&hr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(v,c){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?mt(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill=z.color.neutral00,u.style.lineWidth=2),a},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Kt);const ZH=YH;function Ts(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Ss(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var XH=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=de(e,-1,-1,2,2,null,s);l.attr({z2:rt(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=qH,this._symbolType=e,this.add(l)},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(){Ja(this.childAt(0))},t.prototype.downplay=function(){Qa(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var c=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(d):kt(h,d,s,a),Br(h)}if(this._updateCommon(e,a,l,n,i),f){var h=this.childAt(0);if(!v){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Zt(h,d,s,a)}}v&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,v,c,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,c=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Se(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=mo(e.getItemVisual(a,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof Be){var T=s.style;s.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(H({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ce(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(k){return D?e.getName(k):Ts(e,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Xt(this,c,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=ht(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Gn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Gn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Hs(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(it);function qH(r,t){this.parent.drift(r,t)}const Gu=XH;function Hd(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function eb(r){return r!=null&&!ut(r)&&(r={isIgnore:r}),r||{}}function rb(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:Se(t),cursorStyle:t.get("cursor")}}var KH=function(){function r(t){this.group=new it,this._SymbolCtor=t||Gu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=eb(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=rb(t),u={disableAnimation:s},f=e.getSymbolPoint||function(v){return t.getItemLayout(v)};i||a.removeAll(),t.diff(i).add(function(v){var c=f(v);if(Hd(t,c,v,e)){var h=new o(t,v,l,u);h.setPosition(c),t.setItemGraphicEl(v,h),a.add(h)}}).update(function(v,c){var h=i.getItemGraphicEl(c),d=f(v);if(!Hd(t,d,v,e)){a.remove(h);return}var p=t.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,v,l,u),h.setPosition(d);else{h.updateData(t,v,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):kt(h,y,n)}a.add(h),t.setItemGraphicEl(v,h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&c.fadeOut(function(){a.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=rb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=eb(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function D2(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function JH(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function QH(r,t,e,a,n,i,o,s){for(var l=JH(r,t),u=[],f=[],v=[],c=[],h=[],d=[],p=[],g=M2(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(Ji(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),v=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g=a||Ji(b,w))h=y,d=m;else{M=b-u,D=w-f;var P=y-u,k=b-y,R=m-f,O=w-m,E=void 0,B=void 0;if(s==="x"){E=Math.abs(P),B=Math.abs(k);var G=M>0?1:-1;h=y-G*E*o,d=m,I=y+G*B*o,L=m}else if(s==="y"){E=Math.abs(R),B=Math.abs(O);var F=D>0?1:-1;h=y,d=m-F*E*o,I=y,L=m+F*B*o}else E=Math.sqrt(P*P+R*R),B=Math.sqrt(k*k+O*O),C=B/(B+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=pn(I,gn(b,y)),L=pn(L,gn(w,m)),I=gn(I,pn(b,y)),L=gn(L,pn(w,m)),M=I-y,D=L-m,h=y-M*E/B,d=m-D*E/B,h=pn(h,gn(u,y)),d=pn(d,gn(f,m)),h=gn(h,pn(u,y)),d=gn(d,pn(f,m)),M=y-h,D=m-d,I=y+M*B/E,L=m+D*B/E}r.bezierCurveTo(v,c,h,d,y,m),v=I,c=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var L2=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),t4=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new L2},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Ji(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[e,S]:[S,e]}s=h,l=d;break;case o.C:h=i[v++],d=i[v++],p=i[v++],g=i[v++],y=i[v++],m=i[v++];var x=u?Ev(s,h,p,y,e,f):Ev(l,d,g,m,e,f);if(x>0)for(var b=0;b=0){var S=u?we(l,d,g,m,w):we(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Ct),e4=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(L2),I2=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new e4},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Ji(n[s*2-2],n[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function n4(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=Y(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var c=a4(u,n==="x"?e.getWidth():e.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:h?c[h-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:v[0]||"transparent"});var m=new Os(0,0,0,0,c,!0);return m[n]=p,m[n+"2"]=g,m}}}function i4(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&o4(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function o4(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function s4(r,t){return isNaN(r)||isNaN(t)}function l4(r){for(var t=r.length/2;t>0&&s4(r[t*2-2],r[t*2-1]);t--);return t-1}function sb(r,t){return[r[t*2],r[t*2+1]]}function u4(r,t,e){for(var a=r.length/2,n=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 R2(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}ht(d).seriesIndex=e.seriesIndex,Xt(d,R,O,E);var G=ob(e.get("smooth")),F=e.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:F,connectNulls:w}),p){var W=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(lt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(X=ob(W.get("smooth"))),p.setShape({smooth:G,stackedOnSmooth:X,smoothMonotone:F,connectNulls:w}),_e(p,e,"areaStyle"),ht(p).seriesIndex=e.seriesIndex,Xt(p,R,O,E)}var J=this._changePolyState;s.eachItemGraphicEl(function(ft){ft&&(ft.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){ht(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=ro(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],v=l[s*2+1];if(isNaN(f)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var c=e.get("zlevel")||0,h=e.get("z")||0;u=new Gu(o,s),u.x=f,u.y=v,u.setZ(c,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ut.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=ro(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 Ut.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Uv(this._polyline,e),a&&Uv(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new t4({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new I2({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");at(f)&&(f=f(null));var v=u.get("animationDelay")||0,c=at(v)?v(null):v;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,x=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=at(v)?v(d):f*w+c,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(R2(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 Pt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=l4(l);f>=0&&(Ce(s,Se(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(v,c,h){return h!=null?A2(o,h):Ts(o,v)},enableTextSetter:!0},f4(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=u4(v,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=sb(v,C[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+x,y:I[1]+b});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=FM(n,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var k=e===1||i.lastFrameIndex>0?C[0]:0,I=sb(v,k);o&&(D=c.getRawValue(k)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var R=Bs(u);typeof R.setLabelText=="function"&&R.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,v=e.hostModel,c=QH(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=yn(c.stackedOnCurrent,c.current,n,o,l),h=yn(c.current,null,n,o,l),g=yn(c.stackedOnNext,c.next,n,o,l),p=yn(c.next,null,n,o,l)),ib(h,p)>3e3||f&&ib(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=h;var y={shape:{points:p}};c.current!==h&&(y.shape.__points=c.next),u.stopAnimation(),kt(u,y,v),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),kt(f,{shape:{stackedOnPoints:g}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=a.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(v||1),h=Math.round(s/c);if(isFinite(h)&&h>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;K(i)?d=h4[i]:at(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,d4))}}}}}function p4(r){r.registerChartView(c4),r.registerSeriesModel(ZH),r.registerLayout(Wu("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,E2("line"))}var O2=function(r){N(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,a){return sn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(c,h){if(c.type==="category"&&a!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;xg){_=(b+m)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+f/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",defaultBarGap:"10%"},t}(Kt);Kt.registerClass(O2);const cc=O2;var g4=function(r){N(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 sn(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"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=jn(cc.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:z.color.primary,borderWidth:2}},realtimeSort:!1}),t}(cc);const y4=g4;var m4=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}(),_4=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new m4},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,v=a.endAngle,c=a.clockwise,h=Math.PI*2,d=c?v-fMath.PI/2&&fs)return!0;s=v}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Ua(i,e,ht(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Ut),lb={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=$d(t.x,r.x),s=Ud(t.x+t.width,n),l=$d(t.y,r.y),u=Ud(t.y+t.height,i),f=sn?s:o,t.y=v&&l>i?u:l,t.width=f?0:s-o,t.height=v?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||v},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=Ud(t.r,r.r),i=$d(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},ub={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new bt({shape:H({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,v=n?"height":"width";f[v]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?hc:Qe,f=new u({shape:a,z2:1});f.name="item";var v=N2(n);if(f.calculateTextPosition=S4(v,{isRoundCap:u===hc}),i){var c=f.shape,h=n?"r":"endAngle",d={};c[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?kt:Zt)(f,{shape:d},i)}return f}};function T4(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function fb(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?kt:Zt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?kt:Zt)(e,{shape:u},f,n)}function vb(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function M4(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function N2(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function hb(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Sa(a.getModel("itemStyle"),f,!0);H(f,v),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=a.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Se(a);Ce(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Ts(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,x4(r,g==="outside"?h:g,N2(o),a.get(["label","rotate"]))}GD(p,d,i.getRawValue(e),function(m){return A2(t,m)});var y=a.getModel(["emphasis"]);Xt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),_e(r,a),M4(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function D4(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var L4=function(){function r(){}return r}(),db=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new L4},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function I4(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function B2(r,t,e){if(Wn(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function P4(r,t,e){var a=r.type==="polar"?Qe:bt;return new a({shape:B2(t,e,r),silent:!0,z2:0})}const k4=w4;function R4(r){r.registerChartView(k4),r.registerSeriesModel(y4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,gt(BI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,E2("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var yb=Math.PI*2,Nf=Math.PI/180;function E4(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=sL(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=o.viewRect,c=-a.get("startAngle")*Nf,h=a.get("endAngle"),d=a.get("padAngle")*Nf;h=h==="auto"?c-yb:-h*Nf;var p=a.get("minAngle")*Nf,g=p+d,y=0;n.each(i,function(O){!isNaN(O)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),x=a.get("roseType"),b=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[c,h],M=T*d/2;Kc(C,!S),c=C[0],h=C[1];var D=z2(a);D.startAngle=c,D.endAngle=h,D.clockwise=S,D.cx=s,D.cy=l,D.r=u,D.r0=f;var I=Math.abs(h-c),L=I,P=0,k=c;if(n.setLayout({viewRect:v,r:u}),n.each(i,function(O,E){var B;if(isNaN(O)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:x?NaN:u});return}x!=="area"?B=m===0&&b?_:O*_:B=I/y,BB?(F=k+T*B/2,W=F):(F=k+M,W=G-M),n.setItemLayout(E,{angle:B,startAngle:F,endAngle:W,clockwise:S,cx:s,cy:l,r0:f,r:x?Nt(O,w,[f,u]):u}),k=G}),Le?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*n,w=a+_.len,T=Math.abs(b)r.unconstrainedWidth?null:c:null;a.setStyle("width",h)}G2(i,a)}}}function G2(r,t){_b.rect=r,u2(_b,t,B4)}var B4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},_b={};function Yd(r){return r.position==="center"}function z4(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*O4,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,v=s.y,c=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),k=I.get("alignTo"),R=q(I.get("edgeDistance"),u),O=I.get("bleedMargin");O==null&&(O=Math.min(u,c)>200?10:2);var E=D.getModel("labelLine"),B=E.get("length");B=q(B,u);var G=E.get("length2");if(G=q(G,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":W>0?"left":"right"}var xt=Math.PI,Vt=0,re=I.get("rotate");if(Lt(re))Vt=re*(xt/180);else if(L==="center")Vt=0;else if(re==="radial"||re===!0){var Ye=W<0?-F+xt:-F;Vt=Ye}else if(re==="tangential"&&L!=="outside"&&L!=="outer"){var ze=Math.atan2(W,X);ze<0&&(ze=xt*2+ze);var ka=X>0;ka&&(ze=xt+ze),Vt=ze-xt}if(i=!!Vt,C.x=J,C.y=ft,C.rotation=Vt,C.setStyle({verticalAlign:"middle"}),ct){C.setStyle({align:zt});var To=C.states.select;To&&(To.x+=C.x,To.y+=C.y)}else{var Ra=new vt(0,0,0,0);G2(Ra,C),e.push({label:C,labelLine:M,position:L,len:B,len2:G,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new st(W,X),linePoints:Dt,textAlign:zt,labelDistance:P,labelAlignTo:k,edgeDistance:R,bleedMargin:O,rect:Ra,unconstrainedWidth:Ra.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:ct})}}),!i&&r.get("avoidLabelOverlap")&&N4(e,a,n,l,u,c,f,v);for(var p=0;p0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v=i.r0}},t.type="pie",t}(Ut);const F4=G4;function Us(r,t,e){t=U(t)&&{coordDimensions:t}||H({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=zu(a,t).dimensions,i=new je(n,r);return i.initData(a,e),i}var H4=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 a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Ys=H4;var W4=wt(),F2=function(r){N(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 Ys(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Us(this,{coordDimensions:["value"],encodeDefaulter:gt(a0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=W4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=DN(o,a.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){eo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(Kt);AV({fullType:F2.type,getCoord2:function(r){return r.getShallow("center")}});const $4=F2;function U4(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Lt(o)&&!isNaN(o)&&o<0)})}}}function Y4(r){r.registerChartView(F4),r.registerSeriesModel($4),tI("pie",r.registerAction),r.registerLayout(gt(E4,"pie")),r.registerProcessor($s("pie")),r.registerProcessor(U4("pie"))}var Z4=function(r){N(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,a){return sn(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,a,n){return n.point(a.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","matrix"],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:z.color.primary}},universalTransition:{divideShape:"clone"}},t}(Kt);const X4=Z4;var H2=4,q4=function(){function r(){}return r}(),K4=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new q4},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,v=i[f]-s/2,c=i[f+1]-l/2;if(e>=v&&a>=c&&e<=v+s&&a<=c+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,v=-1/0,c=0;c=0&&(u.dataIndex=v+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const J4=j4;var Q4=function(r){N(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,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Wu("").reset(e,a,n);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 a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new J4:new Fu,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ut);const tW=Q4;var W2={left:0,right:0,top:0,bottom:0},dc=["25%","25%"],eW=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=go(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&La(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&La(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:W2,outerBoundsContain:"all",outerBoundsClampWidth:dc[0],outerBoundsClampHeight:dc[1],backgroundColor:z.color.transparent,borderWidth:1,borderColor:z.color.neutral30},t}(It);const rW=eW;var by=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ee).models[0]},t.type="cartesian2dAxis",t}(It);pe(by,Vu);var $2={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:z.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[z.color.backgroundTint,z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:z.color.neutral00,borderColor:z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},aW=mt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},$2),k0=mt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:z.color.axisMinorSplitLine,width:1}}},$2),nW=mt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},k0),iW=lt({logBase:10},k0);const U2={category:aW,value:k0,time:nW,log:iW};var oW={value:1,category:1,time:1,log:1},wy=null;function sW(r){wy||(wy=r)}function $u(){return wy}function Cs(r,t,e,a){A(oW,function(n,i){var o=mt(mt({},U2[i],!0),a,!0),s=function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var c=fu(this),h=c?go(f):{},d=v.getTheme();mt(f,d.get(i+"Axis")),mt(f,this.getDefaultOption()),f.type=Sb(f),c&&La(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=gu.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=$u();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Sb)}function Sb(r){return r.type||(r.data?"category":"value")}var lW=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 Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Bt(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 uW=lW;var Ty=["x","y"];function xb(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var fW=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ty,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!xb(e)||!xb(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,c=o[0]-n[0]*f,h=o[1]-i[0]*v,d=this._transform=[f,0,0,v,c,h];this._invTransform=Kr([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.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,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return se(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return se(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new vt(i,o,s,l)},t}(uW),vW=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||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 a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ea);const Y2=vW;var gh="expandAxisBreak",Z2="collapseAxisBreak",X2="toggleAxisBreak",R0="axisbreakchanged",cW={type:gh,event:R0,update:"update",refineEvent:E0},hW={type:Z2,event:R0,update:"update",refineEvent:E0},dW={type:X2,event:R0,update:"update",refineEvent:E0};function E0(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function pW(r){r.registerAction(cW,t),r.registerAction(hW,t),r.registerAction(dW,t);function t(e,a){var n=[],i=cs(a,e);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(e);A(f.breaks,function(v){var c;n.push(lt((c={},c[l]=u.componentIndex,c),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var Ln=Math.PI,gW=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],yW=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],As=wt(),q2=wt(),K2=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r}();function mW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=O0(r.axisName)&&ws(r.nameLocation);A(a,function(d){var p=Ia(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Kr(ul,g.transform):Hc(ul),p.transform&&xa(ul,ul,p.transform),vt.copy(Bf,p.localRect),Bf.applyTransform(ul),s?s.union(Bf):vt.copy(s=new vt(0,0,0,0),Bf))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var v=n.getExtent(),c=Math.min(v[0],v[1]),h=Math.max(v[0],v[1])-c;s.union(new vt(c,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var ul=Ie(),Bf=new vt(0,0,0,0),j2=function(r,t,e,a,n,i){if(ws(r.nameLocation)){var o=i.stOccupiedRect;o&&J2(qF({},o,i.transGroup.transform),a,n)}else Q2(i.labelInfoList,i.dirVec,a,n)};function J2(r,t,e){var a=new st;dh(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&py(t,a)}function Q2(r,t,e,a){for(var n=st.dot(a,t)>=0,i=0,o=r.length;i0?"top":"bottom",i="center"):au(n-Ln)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(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}(),_W=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],SW={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],v=[l[1],0],c=f[0]>v[0];u&&(se(f,f,u),se(v,v,u));var h=H({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())$u().buildAxisBreakLine(a,n,i,d);else{var p=new me(H({shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]}},d));_s(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);K(g)&&(g=[g,g]),(K(y)||Lt(y))&&(y=[y,y]);var m=mo(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];A([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-v[0])*(f[0]-v[0])+(f[1]-v[1])*(f[1]-v[1]))}],function(x,b){if(g[b]!=="none"&&g[b]!=null){var w=de(g[b],-_/2,-S/2,_,S,h.stroke,!0),T=x.r+x.offset,C=c?v:f;w.attr({rotation:x.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=wb(t,n,s);l&&bb(r,t,e,a,n,i,o,Jr.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=wb(t,n,s);l&&bb(r,t,e,a,n,i,o,Jr.determine);var u=TW(r,n,i,a);wW(r,t.labelLayoutList,u),CW(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(O0(u)){var f=r.nameLocation,v=r.nameDirection,c=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,g=new st(0,0),y=new st(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+v*h,y.y=v);var m=Ie();y.transform(Xn(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Ln/180);var S,x;ws(f)?S=Qi.innerTextLayout(r.rotation,_??r.rotation,v):(S=xW(r.rotation,f,_||0,d),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var b=c.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Oe(r.raw.nameTruncateMaxWidth,w.maxWidth,x),M=s.nameMarginLevel||0,D=new Pt({x:g.x,y:g.y,rotation:S.rotation,silent:Qi.isLabelSilent(a),style:$t(c,{text:u,font:b,overflow:"truncate",width:C,ellipsis:T,fill:c.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(on({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=Qi.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,ht(D).eventData=I}i.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=Ia({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ws(f)?gW[M]:yW[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var P=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,y,P)}}}};function bb(r,t,e,a,n,i,o,s){eP(t)||AW(r,t,n,s,a,o);var l=t.labelLayoutList;MW(r,a,l,i),IW(a,r.rotation,l);var u=r.optionHideOverlap;bW(a,l,u),u&&f2(Bt(l,function(f){return f&&!f.label.ignore})),mW(r,e,a,l)}function xW(r,t,e,a){var n=IM(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return au(n-Ln/2)?(o=l?"bottom":"top",i="center"):au(n-Ln*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nLn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function bW(r,t,e){if(ZI(r.axis))return;function a(s,l,u){var f=Ia(t[l]),v=Ia(t[u]);if(!(!f||!v)){if(s===!1||f.suggestIgnore){Rl(f.label);return}if(v.suggestIgnore){Rl(v.label);return}var c=.1;if(!e){var h=[0,0,0,0];f=gy({marginForce:h},f),v=gy({marginForce:h},v)}dh(f,v,null,{touchThreshold:c})&&Rl(s?v.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function wW(r,t,e){r.showMinorTicks||A(t,function(a){if(a&&a.label.ignore)for(var n=0;nu[0]&&isFinite(d)&&isFinite(u[0]);)h=Pd(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=Pd(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=fe(p-y),d<0&&u[0]>=0?(d=0,p=fe(y)):p>0&&u[1]<=0&&(p=0,d=-fe(y))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+h*m,p+h*_),a.setInterval.call(r,h),(m||_)&&a.setNiceExtent.call(r,d+h,p-h)}var Cb=[[3,1],[0,2]],EW=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ty,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Mt(o),u=l.length;if(u){for(var f=[],v=u-1;v>=0;v--){var c=+l[v],h=o[c],d=h.model,p=h.scale;fy(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(bs(p,d),fy(p)&&(s=h))}f.length&&(s||(s=f.pop(),bs(s.scale,s.model)),A(f,function(g){rP(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Ab(a,"y",o,i)}),A(a.y,function(o){Ab(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=xe(t,e),i=this._rect=qt(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Ay(o,i),!a){var u=BW(i,s,o,l,e),f=void 0;if(l)My?(My(this._axesList,i),Ay(o,i)):f=Lb(i.clone(),"axisLabel",null,i,o,u,n);else{var v=zW(t,i,n),c=v.outerBoundsRect,h=v.parsedOuterBoundsContain,d=v.outerBoundsClamp;c&&(f=Lb(c,h,d,i,o,u,n))}aP(i,o,Jr.determine,null,f,n)}A(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}ut(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0})==null;return io(a,s,!0,!0,e),Ay(n,a),l;function u(c){A(n[dt[c]],function(h){if(mu(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g0&&!He(h)&&h>1e-4&&(c/=h),c}}function BW(r,t,e,a,n){var i=new K2(VW);return A(e,function(o){return A(o,function(s){if(mu(s.model)){var l=!a;s.axisBuilder=kW(r,t,s.model,n,i,l)}})}),i}function aP(r,t,e,a,n,i){var o=e===Jr.determine;A(t,function(u){return A(u,function(f){mu(f.model)&&(RW(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[dt[1-u]]=r[ce[u]]<=i.refContainer[ce[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(v){mu(v.model)&&((a==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function zW(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=qt(r.get("outerBounds",!0)||W2,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||yt(["all","axisLabel"],i)<0?o="all":o=i;var s=[Fv(rt(r.get("outerBoundsClampWidth",!0),dc[0]),t.width),Fv(rt(r.get("outerBoundsClampHeight",!0),dc[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var VW=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";j2(r,t,e,a,n,i),ws(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Q2(s.labelInfoList,s.dirVec,a,n)})};const GW=EW;function FW(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HW(e,r,t),e.seriesInvolved&&$W(e,r),e}function HW(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=xu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",a);if(A(s.getAxes(),gt(p,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var c=v.get("trigger")==="axis",h=v.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(v.get(["axisPointer","axis"]));(c||h)&&A(d.baseAxes,gt(p,h?"cross":!0,c)),h&&A(d.otherAxes,gt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Dy(_))){y==null&&(y=_.get("triggerTooltip")),_=g?WW(m,v,n,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=xu(m.model),T=y||x||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:x,useHandle:Dy(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=UW(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=i[M].mapper,C.linkGroup=D}}}})}function WW(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=nt(o.get(c))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&<(u,v.textStyle)}}return r.model.getModel("axisPointer",new Rt(l,e,a))}function $W(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[xu(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function UW(r,t){for(var e=t.model,a=t.dim,n=0;n=0||r===t}function YW(r){var t=N0(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=Dy(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0;return o&&s}var t$=wt();function kb(r,t,e,a){if(r instanceof Y2){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return e}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?uP(e,o,u,a):e$(r,t,e,a,o,l):e}function uP(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function e$(r,t,e,a,n,i){var o=t$(r);o.items||(o.items=[]);var s=o.items,l=Rb(s,t,e,a,n,i,1),u=Rb(s,t,e,a,n,i,-1),f=Math.abs(l-e)n/2||v&&c>v/2-a?uP(e,n,v,a):(s.push({fixedCoord:t,floatCoord:f,r:a}),f)}function Rb(r,t,e,a,n,i,o){for(var s=e,l=0;ln/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=lt({color:d.color},l));var g=mt(nt(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:p,triggerEvent:c},!1);if(K(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else at(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return pe(m,Vu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:z.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:mt({lineStyle:{color:z.color.neutral20}},fl.axisLine),axisLabel:zf(fl.axisLabel,!1),axisTick:zf(fl.axisTick,!1),splitLine:zf(fl.splitLine,!0),splitArea:zf(fl.splitArea,!0),indicator:[]},t}(It);const c$=v$;var h$=function(r){N(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,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=Y(i,function(s){var l=s.model.get("showName")?s.name:"",u=new en(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),c=l.get("color"),h=u.get("color"),d=U(c)?c:[c],p=U(h)?h:[h],g=[],y=[];function m(k,R,O){var E=O%R.length;return k[E]=k[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new qn({shape:{cx:S,cy:x,r:_[b].coord}}))}if(v&&b<_.length-1){var w=m(y,p,b);y[w].push(new th({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,C=Y(n,function(k,R){var O=k.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Y(O,function(E){return a.coordToPoint(E.coord,R)})}),M=[],b=0;b<=T;b++){for(var D=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i),c=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Nb(this._zr,"globalPan")||vl(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(Ka(i.event),i.__ecRoamConsumed=!0,Bb(e,a,n,i,o))},t}(zr);function vl(r){return r.__ecRoamConsumed}var C$=wt();function yh(r){var t=C$(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function cl(r,t,e,a){for(var n=yh(r),i=n.roam,o=i[t]=i[t]||[],s=0;s=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(v=pP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=n;n=new it,n.add(h),h.scaleX=h.scaleY=v.scale,h.x=v.x,h.y=v.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new bt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:v,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=qd[s];if(f&&Q(qd,s)){l=f.call(this,t,e);var v=t.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};a.push(c),s==="g"&&(u=c)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var h=Fb[s];if(h&&Q(Fb,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new iu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xr(e,a),lr(t,a,this._defsUsePending,!1,!1),L$(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){qd={g:function(t,e){var a=new it;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new bt;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new qn;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new me;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Gm;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=$b(a));var i=new tr({shape:{points:n||[]},silent:!0});return xr(e,i),lr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=$b(a));var i=new Ue({shape:{points:n||[]},silent:!0});return xr(e,i),lr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Be;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new it;return xr(e,s),lr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new it;return xr(e,s),lr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=gD(a);return xr(e,n),lr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Fb={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Os(t,e,a,n);return Hb(r,i),Wb(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new LD(t,e,a);return Hb(r,n),Wb(r,n),n}};function Hb(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Wb(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};dP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=ir(o),u=l&&l[3];u&&(l[3]*=Rn(s),o=ba(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function xr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),lt(t.__inheritedStyle,r.__inheritedStyle))}function $b(r){for(var t=_h(r),e=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=_h(o);switch(n=n||Ie(),s){case"translate":Aa(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":xm(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Xn(n,n,-parseFloat(l[0])*Kd,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Kd);xa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Kd);xa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var Yb=/([^\s:;]+)\s*:\s*([^:;]+)/g;function dP(r,t,e){var a=r.getAttribute("style");if(a){Yb.lastIndex=0;for(var n;(n=Yb.exec(a))!=null;){var i=n[1],o=Q(gc,i)?gc[i]:null;o&&(t[o]=n[2]);var s=Q(yc,i)?yc[i]:null;s&&(e[s]=n[2])}}}function O$(r,t,e){for(var a=0;a0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=et(),a=et(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function v(h){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(c=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ce(t,Se(a),{labelFetcher:c,labelDataIndex:v,defaultText:e},h);var d=t.getTextContent();if(d&&(gP(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function jb(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):ht(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Jb(r,t,e,a,n){r.data||on({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Qb(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Xt(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&lz(t,n,e),o}function tw(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill=z.color.neutral00,n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:z.color.tertiary},itemStyle:{borderWidth:.5,borderColor:z.color.border,areaColor:z.color.background},emphasis:{label:{show:!0,color:z.color.primary},itemStyle:{areaColor:z.color.highlight}},select:{label:{show:!0,color:z.color.primary},itemStyle:{color:z.color.highlight}},nameProperty:"name"},t}(Kt);const aU=rU;function nU(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f1?(_.width=m,_.height=m/p):(_.height=m,_.width=m*p),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=p,_=qt(S,d),_=lL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function uU(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var fU=function(){function r(){this.dimensions=mP}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new nw(l+s,l,H({nameMap:o.get("nameMap"),api:e,ecModel:t},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=iw,u.resize(o,e)}),t.eachSeries(function(o){Ou({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",ee).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=Y(o,function(f){return f.get("nameMap")}),u=new nw(s,s,H({nameMap:ym(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=Oe.apply(null,Y(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=iw,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,uU(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=et(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function _U(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){xU(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=bU(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function SU(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function ow(r){return arguments.length?r:CU}function El(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function xU(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function bU(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=jd(s),i=Jd(i),s&&i;){n=jd(n),o=Jd(o),n.hierNode.ancestor=r;var c=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);c>0&&(TU(wU(s,r,e),r,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!jd(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!Jd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function jd(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Jd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function wU(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function TU(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function CU(r,t){return r.parentNode===t.parentNode?1:2}var AU=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),MU=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new AU},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,c=q(a.forkPosition,1),h=[];h[f]=o[f],h[v]=o[v]+(l[v]-o[v])*c,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[f]=s[f],e.lineTo(h[0],h[1]),h[f]=l[f],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var d=1;dm.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Ql(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(ht(e).focus=L),LU(n,o,f,e,d,h,p,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var k=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===Pu||Uv(e.__edge,P)}})}function LU(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new eh({shape:Py(f,v,c,n,n)})),kt(p,{shape:Py(f,v,c,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;me&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var a=e.getData().tree.root,n=r.targetNode;if(K(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function CP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function $0(r,t){var e=CP(r);return yt(e,t)>=0}function Sh(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var GU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new Rt(n,this,this.ecModel),o=W0.createTree(a,this,s);function s(v){v.wrapMethod("getItemModel",function(c,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(c.parentModel=i),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return he("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:z.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Kt);const FU=GU;function HU(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)e.push(n[i])}}function WU(r,t){r.eachSeriesByType("tree",function(e){$U(e,t)})}function $U(r,t){var e=xe(r,t).refContainer,a=qt(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=ow(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=ow());var l=r.getData().tree.root,u=l.children[0];if(u){mU(l),HU(u,_U,s),l.hierNode.modifier=-u.hierNode.prelim,pl(u,SU);var f=u,v=u,c=u;pl(u,function(S){var x=S.getLayout().x;xv.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=f===v?1:s(f,v)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(n==="radial")p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=El(y,m);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(v.getLayout().x+h+d),p=i/(c.depth-1||1),pl(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function UU(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");H(s,o)})})}function YU(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function ZU(r){r.registerChartView(IU),r.registerSeriesModel(FU),r.registerLayout(WU),r.registerVisual(UU),YU(r)}var vw=["treemapZoomToNode","treemapRender","treemapMove"];function XU(r){for(var t=0;t1;)i=i.parentNode;var o=Kg(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var qU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};MP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,a);i=e.levels=KU(i,a);var l=Y(i||[],function(v){return new Rt(v,s,a)},this),u=W0.createTree(n,this,f);function f(v){v.wrapMethod("getItemModel",function(c,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return he("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=et(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){AP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:z.size.l,top:z.size.xxxl,right:z.size.l,bottom:z.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:z.size.m,emptyItemWidth:25,itemStyle:{color:z.color.backgroundShade,textStyle:{color:z.color.secondary}},emphasis:{itemStyle:{color:z.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:z.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:z.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Kt);function MP(r){var t=0;A(r.children,function(a){MP(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}function KU(r,t){var e=Ht(t.get("color")),a=Ht(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new Rt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}const jU=qU;var JU=8,cw=8,Qd=5,QU=function(){function r(t){this.group=new it,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),v=xe(t,e).refContainer,c={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=qt(c,v);this._prepare(a,h,u),this._renderContent(t,h,d,s,l,u,f,n),sh(o,c,v)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=ye(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+JU*2,e.emptyItemWidth);e.totalWidth+=s+cw,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s,l){for(var u=0,f=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),c=e.totalWidth,h=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;c>a.width&&(c-=m-f,m=f,_=null);var S=new tr({shape:{points:t8(u,0,m,v,p===h.length-1,p===0)},style:lt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Pt({style:$t(o,{text:_})}),textConfig:{position:"inside"},z2:Es*1e4,onclick:gt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=$t(s,{text:_}),S.ensureState("emphasis").style=d,Xt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),e8(S,t,y),u+=m+cw}},r.prototype.remove=function(){this.group.removeAll()},r}();function t8(r,t,e,a,n,i){var o=[[n?r:r-Qd,t],[r+e,t],[r+e,t+a],[n?r:r-Qd,t+a]];return!i&&o.splice(2,0,[r+e+Qd,t+a/2]),!n&&o.push([r,t+a/2]),o}function e8(r,t,e){ht(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Sh(e,t)}}const r8=QU;var a8=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;ndw||Math.abs(e.dy)>dw)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new vt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var v=f.zoom=f.zoom||1;if(v*=i,u){var c=u.min||0,h=u.max||1/0;v=Math.max(Math.min(h,v),c)}var d=v/f.zoom;f.zoom=v;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=Ie();Aa(g,g,[-a,-n]),xm(g,g,[d,d]),Aa(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&qv(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new r8(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&($0(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=gl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Ut);function gl(){return{nodeGroup:[],background:[],content:[]}}function u8(r,t,e,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),T=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=ft("nodeGroup",ky);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),mc(D).nodeWidth=h,mc(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=ft("background",hw,u,o8);I&&G(D,I,x&&f.upperLabelHeight);var L=c.getModel("emphasis"),P=L.get("focus"),k=L.get("blurScope"),R=L.get("disabled"),O=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)su(D)&&zi(D,!1),I&&(zi(I,!R),v.setItemGraphicEl(o.dataIndex,I),zg(I,O,k));else{var E=ft("content",hw,u,s8);E&&F(D,E),I.disableMorphing=!0,I&&su(I)&&zi(I,!1),zi(D,!R),v.setItemGraphicEl(o.dataIndex,D);var B=c.getShallow("cursor");B&&E.attr("cursor",B),zg(D,O,k)}return D;function G(ct,V,$){var Z=ht(V);if(Z.dataIndex=o.dataIndex,Z.seriesIndex=r.seriesIndex,V.setShape({x:0,y:0,width:h,height:d,r:M}),g)W(V);else{V.invisible=!1;var tt=o.getVisual("style"),At=tt.stroke,pt=yw(b);pt.fill=At;var xt=Mi(w);xt.fill=w.get("borderColor");var Vt=Mi(T);Vt.fill=T.get("borderColor");var re=Mi(C);if(re.fill=C.get("borderColor"),$){var Ye=h-2*p;X(V,At,tt.opacity,{x:p,y:0,width:Ye,height:S})}else V.removeTextContent();V.setStyle(pt),V.ensureState("emphasis").style=xt,V.ensureState("blur").style=Vt,V.ensureState("select").style=re,no(V)}ct.add(V)}function F(ct,V){var $=ht(V);$.dataIndex=o.dataIndex,$.seriesIndex=r.seriesIndex;var Z=Math.max(h-2*p,0),tt=Math.max(d-2*p,0);if(V.culling=!0,V.setShape({x:p,y:p,width:Z,height:tt,r:M}),g)W(V);else{V.invisible=!1;var At=o.getVisual("style"),pt=At.fill,xt=yw(b);xt.fill=pt,xt.decal=At.decal;var Vt=Mi(w),re=Mi(T),Ye=Mi(C);X(V,pt,At.opacity,null),V.setStyle(xt),V.ensureState("emphasis").style=Vt,V.ensureState("blur").style=re,V.ensureState("select").style=Ye,no(V)}ct.add(V)}function W(ct){!ct.invisible&&i.push(ct)}function X(ct,V,$,Z){var tt=c.getModel(Z?gw:pw),At=ye(c.get("name"),null),pt=tt.getShallow("show");Ce(ct,Se(c,Z?gw:pw),{defaultText:pt?At:null,inheritColor:V,defaultOpacity:$,labelFetcher:r,labelDataIndex:o.dataIndex});var xt=ct.getTextContent();if(xt){var Vt=xt.style,re=Gc(Vt.padding||0);Z&&(ct.setTextConfig({layoutRect:Z}),xt.disableLabelLayout=!0),xt.beforeUpdate=function(){var ze=Math.max((Z?Z.width:ct.shape.width)-re[1]-re[3],0),ka=Math.max((Z?Z.height:ct.shape.height)-re[0]-re[2],0);(Vt.width!==ze||Vt.height!==ka)&&xt.setStyle({width:ze,height:ka})},Vt.truncateMinChar=2,Vt.lineOverflow="truncate",J(Vt,Z,f);var Ye=xt.getState("emphasis");J(Ye?Ye.style:null,Z,f)}}function J(ct,V,$){var Z=ct?ct.text:null;if(!V&&$.isLeafRoot&&Z!=null){var tt=r.get("drillDownIcon",!0);ct.text=tt?tt+" "+Z:Z}}function ft(ct,V,$,Z){var tt=m!=null&&e[ct][m],At=n[ct];return tt?(e[ct][m]=null,Dt(At,tt)):g||(tt=new V,tt instanceof Nr&&(tt.z2=f8($,Z)),zt(At,tt)),t[ct][y]=tt}function Dt(ct,V){var $=ct[y]={};V instanceof ky?($.oldX=V.x,$.oldY=V.y):$.oldShape=H({},V.shape)}function zt(ct,V){var $=ct[y]={},Z=o.parentNode,tt=V instanceof it;if(Z&&(!a||a.direction==="drillDown")){var At=0,pt=0,xt=n.background[Z.getRawIndex()];!a&&xt&&xt.oldShape&&(At=xt.oldShape.width,pt=xt.oldShape.height),tt?($.oldX=0,$.oldY=pt):$.oldShape={x:At,y:pt,width:0,height:0}}$.fadein=!tt}}function f8(r,t){return r*i8+t}const v8=l8;var wu=A,c8=ut,_c=-1,U0=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=nt(t);this.type=a,this.mappingMethod=e,this._normalizeData=p8[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(tp(n),h8(n)):e==="category"?n.categories?d8(n):tp(n,!0):($e(e!=="linear"||n.dataExtent),tp(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return j(this._normalizeData,this)},r.listVisualTypes=function(){return Mt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){ut(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=U(t)?[]:ut(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&wu(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(U(t))t=t.slice();else if(c8(t)){var e=[];wu(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function tp(r,t){var e=r.visual,a=[];ut(e)?wu(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),DP(r,a)}function Gf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Ry([0,1])}}function mw(r){var t=this.option.visual;return t[Math.round(Nt(r,[0,1],[0,t.length-1],!0))]||{}}function yl(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Ol(r){var t=this.option.visual;return t[this.option.loop&&r!==_c?r%t.length:r]}function Di(){return this.option.visual[0]}function Ry(r){return{linear:function(t){return Nt(t,r,this.option.visual,!0)},category:Ol,piecewise:function(t,e){var a=Ey.call(this,e);return a==null&&(a=Nt(t,r,this.option.visual,!0)),a},fixed:Di}}function Ey(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=U0.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function DP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var a=ir(e);return a||[0,0,0,1]})),t}var p8={linear:function(r){return Nt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=U0.findPieceIndex(r,t,!0);if(e!=null)return Nt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??_c},fixed:oe};function Ff(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=x8(n,l,p,g,d,a);IP(p,y,e,a)}})}}}function m8(r,t,e){var a=H({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function _w(r){var t=ep(r,"color");if(t){var e=ep(r,"colorAlpha"),a=ep(r,"colorSaturation");return a&&(t=En(t,null,null,a)),e&&(t=Ov(t,e)),t}}function _8(r,t){return t!=null?En(t,null,null,r):null}function ep(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function S8(r,t,e,a,n,i){if(!(!i||!i.length)){var o=rp(t,"color")||n.color!=null&&n.color!=="none"&&(rp(t,"colorAlpha")||rp(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=t.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new Ne(v);return LP(c).drColorMappingBy=f,c}}}function rp(r,t){var e=r.get(t);return U(e)&&e.length?{name:t,range:e}:null}function x8(r,t,e,a,n,i){var o=H({},t);if(n){var s=n.type,l=s==="color"&&LP(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Tu=Math.max,Sc=Math.min,Sw=Oe,Y0=A,PP=["itemStyle","borderWidth"],b8=["itemStyle","gapWidth"],w8=["upperLabel","show"],T8=["upperLabel","height"];const C8={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=xe(r,e).refContainer,o=qt(r.getBoxLayoutParams(),i),s=n.size||[],l=q(Sw(o.width,s[0]),i.width),u=q(Sw(o.height,s[1]),i.height),f=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=bu(a,v,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=CP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?P8(r,c,d,l,u):h?[h.width,h.height]:[l,u],y=n.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),kP(d,m,!1,0),_=d.getLayout(),Y0(p,function(x,b){var w=(p[b+1]||d).getValue();x.setLayout(H({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(k8(o,h,c),!0),r.setLayoutInfo(o),RP(S,new vt(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function kP(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(PP),u=s.get(b8)/2,f=EP(s),v=Math.max(l,f),c=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),n=Tu(n-2*c,0),i=Tu(i-c-h,0);var d=n*i,p=A8(r,s,d,t,e,a);if(p.length){var g={x:c,y:h,width:n,height:i},y=Sc(n,i),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function I8(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Tu(u*a/l,l/(u*n)):1/0}function xw(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(n||f>e[l[o]])&&(f=e[l[o]]);for(var v=0,c=r.length;vw1&&(u=w1),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);v[0].8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*y+f[0],i.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+v[0],i.y=v[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(it);const K0=K8;var j8=function(){function r(t){this.group=new it,this._LineCtor=t||K0}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Mw(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Mw(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!J8(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function Mw(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Se(t)}}function Dw(r){return isNaN(r[0])||isNaN(r[1])}function sp(r){return r&&!Dw(r[0])&&!Dw(r[1])}const j0=j8;var lp=[],up=[],fp=[],$o=Le,vp=Ui,Lw=Math.abs;function Iw(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){lp[0]=$o(a[0],n[0],i[0],f),lp[1]=$o(a[1],n[1],i[1],f);var v=Lw(vp(lp,t)-l);v=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function cp(r,t){var e=[],a=tu,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[$a(u[0]),$a(u[1])],u[2]&&u.__original.push($a(u[2])));var c=u.__original;if(u[2]!=null){if(Xe(n[0],c[0]),Xe(n[1],c[2]),Xe(n[2],c[1]),f&&f!=="none"){var h=Bl(s.node1),d=Iw(n,c[0],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(v&&v!=="none"){var h=Bl(s.node2),d=Iw(n,c[1],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}Xe(u[0],n[0]),Xe(u[1],n[2]),Xe(u[2],n[1])}else{if(Xe(i[0],c[0]),Xe(i[1],c[1]),Ni(o,i[1],i[0]),Ps(o,o),f&&f!=="none"){var h=Bl(s.node1);ng(i[0],i[0],o,h*t)}if(v&&v!=="none"){var h=Bl(s.node2);ng(i[1],i[1],o,-h*t)}Xe(u[0],i[0]),Xe(u[1],i[1])}})}var FP=wt();function Q8(r){if(r)return FP(r).bridge}function Pw(r,t){r&&(FP(r).bridge=t)}function kw(r){return r.type==="view"}var t6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Fu,i=new j0,o=this.group,s=new it;this._controller=new bo(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(kw(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(v):kt(this._mainGroup,v,e)}cp(e.getGraph(),Nl(e));var c=e.getData();u.updateData(c);var h=e.getEdgeData();f.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var g=e.get("layout");c.graph.eachNode(function(S){var x=S.dataIndex,b=S.getGraphicEl(),w=S.getModel();if(b){b.off("drag").off("dragend");var T=w.get("draggable");T&&b.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(x),c.setItemLayout(x,[b.x,b.y]);break;case"circular":c.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),q0(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(x,[b.x,b.y]),X0(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),b.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(ht(b).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(ht(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){zP(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!kw(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!e||e.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(z0(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(V0(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),cp(e.getGraph(),Nl(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=Nl(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(cp(e.getGraph(),Nl(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=Q8(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new it,l=n.group.children(),u=i.group.children(),f=new it,v=new it;s.add(v),s.add(f);for(var c=0;c=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Li||(e=this._nodesMap[Uo(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),HP=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=et(),e=et();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i=0&&!t.hasKey(v)&&(t.set(v,!0),a.push(f.node1))}for(i=0;i=0&&!t.hasKey(p)&&(t.set(p,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r}();function WP(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}pe(Li,WP("hostGraph","data"));pe(HP,WP("hostGraph","edgeData"));const a6=r6;function J0(r,t,e,a,n){for(var i=new a6(a),o=0;o "+c)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=sn(r,e);else{var p=Nu.get(h),g=p?p.dimensions||[]:[];yt(g,"value")<0&&g.concat(["value"]);var y=zu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new je(y,e),d.initData(r)}var m=new je(["value"],e);return m.initData(l,s),n&&n(d,m),wP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var n6=function(r){N(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.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ys(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),eo(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){V8(this);var s=J0(i,n,this,!0,l);return A(s.edges,function(u){G8(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var v=Rt.prototype.getModel;function c(d,p){var g=v.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=c,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),he("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var v=$L({series:this,dataIndex:e,multipleSeries:a});return v},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(n){return n.value!=null?n:H({value:0},n)}),a=new je(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:z.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:z.color.primary}}},t}(Kt);const i6=n6;function o6(r){r.registerChartView(e6),r.registerSeriesModel(i6),r.registerProcessor(E8),r.registerVisual(O8),r.registerVisual(N8),r.registerLayout(F8),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,W8),r.registerLayout(U8),r.registerCoordinateSystem("graphView",{dimensions:wo.dimensions,create:Z8}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},oe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},oe),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,s=mh(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var s6=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;ht(i).dataType="node",i.z2=2;var o=new Pt;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.graph.getNodeByIndex(a),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=e.getItemLayout(a),c=H(Sa(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(c.startAngle)){h.setShape(c);return}i?h.setShape(c):kt(h,{shape:c},l,a);var d=H(Sa(u.getModel("itemStyle"),v,!0),v);o.setShape(d),o.useStyle(e.getItemVisual(a,"style")),_e(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),_e(h,u,"itemStyle");var p=f.get("focus");Xt(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=a.getModel("label");i.ignore=!f.get("show");var v=Se(a),c=n.getVisual("style");Ce(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return e.getFormattedLabel(m,_,"node",x,gr(b,v.normal&&v.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Qe);const Rw=s6;var l6=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;return ht(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var s=e.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),f=l.node1.getModel(),v=a.getItemModel(l.dataIndex),c=v.getModel("lineStyle"),h=v.getModel("emphasis"),d=h.get("focus"),p=H(Sa(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Ew(g,l,e,c)):(Br(g),Ew(g,l,e,c),kt(g,{shape:p},s,n)),Xt(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),_e(g,v,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Ct);function Ew(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(K(l)&&K(u)){var f=r.shape,v=(f.s1[0]+f.s2[0])/2,c=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new Os(v,c,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var u6=Math.PI/180,f6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*u6;if(i.diff(o).add(function(f){var v=i.getItemLayout(f);if(v){var c=new Rw(i,f,l);ht(c).dataIndex=f,s.add(c)}}).update(function(f,v){var c=o.getItemGraphicEl(v),h=i.getItemLayout(f);if(!h){c&&Ua(c,e,v);return}c?c.updateData(i,f,l):c=new Rw(i,f,l),s.add(c)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&Ua(v,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=q(u[0],n.getWidth()),this.group.originY=q(u[1],n.getHeight()),Zt(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new l6(n,i,l,a);ht(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,i,l,a),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Ua(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Ut);const v6=f6;var c6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Ys(j(this.getData,this),j(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=J0(i,n,this,!0,s);return o.data}function s(l,u){var f=Rt.prototype.getModel;function v(h,d){var p=f.call(this,h,d);return p.resolveParentPath=c,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=v,h});function c(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),he("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return he("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(Kt);const h6=c6;var hp=Math.PI/180;function d6(r,t){r.eachSeriesByType("chord",function(e){p6(e,t)})}function p6(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=sL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*hp,0),c=Math.max((r.get("minAngle")||0)*hp,0),h=-r.get("startAngle")*hp,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Kc(y,!p);var m=y[0],_=y[1],S=_-m,x=e.getSum("value")===0&&n.getSum("value")===0,b=[],w=0;a.eachEdge(function(E){var B=x?1:E.getValue("value");x&&(B>0||c)&&(w+=2);var G=E.node1.dataIndex,F=E.node2.dataIndex;b[G]=(b[G]||0)+B,b[F]=(b[F]||0)+B});var T=0;if(a.eachNode(function(E){var B=E.getValue("value");isNaN(B)||(b[E.dataIndex]=Math.max(B,b[E.dataIndex]||0)),!x&&(b[E.dataIndex]>0||c)&&w++,T+=b[E.dataIndex]||0}),!(w===0||T===0)){v*w>=Math.abs(S)&&(v=Math.max(0,(Math.abs(S)-c*w)/w)),(v+c)*w>=Math.abs(S)&&(c=(Math.abs(S)-v*w)/w);var C=(S-v*w*g)/T,M=0,D=0,I=0;a.eachNode(function(E){var B=b[E.dataIndex]||0,G=C*(T?B:1)*g;Math.abs(G)D){var P=M/D;a.eachNode(function(E){var B=E.getLayout().angle;Math.abs(B)>=c?E.setLayout({angle:B*P,ratio:P},!0):E.setLayout({angle:c,ratio:c===0?1:B/c},!0)})}else a.eachNode(function(E){if(!L){var B=E.getLayout().angle,G=Math.min(B/I,1),F=G*M;B-Fc&&c>0){var G=L?1:Math.min(B/I,1),F=B-c,W=Math.min(F,Math.min(k,M*G));k-=W,E.setLayout({angle:B-W,ratio:(B-W)/B},!0)}else c>0&&E.setLayout({angle:c,ratio:B===0?1:c/B},!0)}});var R=m,O=[];a.eachNode(function(E){var B=Math.max(E.getLayout().angle,c);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:R,endAngle:R+B*g,clockwise:p},!0),O[E.dataIndex]=R,R+=(B+v)*g}),a.eachEdge(function(E){var B=x?1:E.getValue("value"),G=C*(T?B:1)*g,F=E.node1.dataIndex,W=O[F]||0,X=Math.abs((E.node1.getLayout().ratio||1)*G),J=W+X*g,ft=[s+f*Math.cos(W),l+f*Math.sin(W)],Dt=[s+f*Math.cos(J),l+f*Math.sin(J)],zt=E.node2.dataIndex,ct=O[zt]||0,V=Math.abs((E.node2.getLayout().ratio||1)*G),$=ct+V*g,Z=[s+f*Math.cos(ct),l+f*Math.sin(ct)],tt=[s+f*Math.cos($),l+f*Math.sin($)];E.setLayout({s1:ft,s2:Dt,sStartAngle:W,sEndAngle:J,t1:Z,t2:tt,tStartAngle:ct,tEndAngle:$,cx:s,cy:l,r:f,value:B,clockwise:p}),O[F]=J,O[zt]=$})}}}function g6(r){r.registerChartView(v6),r.registerSeriesModel(h6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,d6),r.registerProcessor($s("chord"))}var y6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),m6=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new y6},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(Ct);const _6=m6;function S6(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=q(e[0],t.getWidth()),s=q(e[1],t.getHeight()),l=q(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Wf(r,t){var e=r==null?"":r+"";return t&&(K(t)?e=t.replace("{value}",e):at(t)&&(e=t(r))),e}var x6=function(r){N(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,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=S6(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,v=e.getModel("axisLine"),c=v.get("roundCap"),h=c?hc:Qe,d=v.get("show"),p=v.getModel("lineStyle"),g=p.get("width"),y=[u,f];Kc(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x=C&&(M===0?0:i[M-1][0])Math.PI/2&&(J+=Math.PI)):X==="tangential"?J=-T-Math.PI/2:Lt(X)&&(J=X*Math.PI/180),J===0?v.add(new Pt({style:$t(_,{text:B,x:F,y:W,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:G}),silent:!0})):v.add(new Pt({style:$t(_,{text:B,x:F,y:W,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:F,originY:W,rotation:J}))}if(m.get("show")&&R!==S){var O=m.get("distance");O=O?O+f:f;for(var ft=0;ft<=x;ft++){P=Math.cos(T),k=Math.sin(T);var Dt=new me({shape:{x1:P*(d-O)+c,y1:k*(d-O)+h,x2:P*(d-w-O)+c,y2:k*(d-w-O)+h},silent:!0,style:I});I.stroke==="auto"&&Dt.setStyle({stroke:i((R+ft/x)/S)}),v.add(Dt),T+=M}T-=M}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var v=this.group,c=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),x=+e.get("max"),b=[S,x],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),P=q(L.get("width"),o.r),k=q(L.get("length"),o.r),R=e.get(["pointer","icon"]),O=L.get("offsetCenter"),E=q(O[0],o.r),B=q(O[1],o.r),G=L.get("keepAspect"),F;return R?F=de(R,E-P/2,B-k,P,k,null,G):F=new _6({shape:{angle:-Math.PI/2,width:P,r:k,x:E,y:B}}),F.rotation=-(D+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function C(M,D){var I=g.get("roundCap"),L=I?hc:Qe,P=g.get("overlap"),k=P?g.get("width"):f/m.count(),R=P?o.r-k:o.r-(M+1)*k,O=P?o.r:o.r-M*k,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:O}});return P&&(E.z2=Nt(m.get(_,M),[S,x],[100,0],!0)),E}(y||p)&&(m.diff(c).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);Zt(I,{rotation:-((isNaN(+D)?w[0]:Nt(D,b,w,!0))+Math.PI/2)},e),v.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),P=g.get("clip");Zt(L,{shape:{endAngle:Nt(D,b,w,P)}},e),v.add(L),Eg(e.seriesIndex,m.dataType,M,L),d[M]=L}}).update(function(M,D){var I=m.get(_,M);if(p){var L=c.getItemGraphicEl(D),P=L?L.rotation:s,k=T(M,P);k.rotation=P,kt(k,{rotation:-((isNaN(+I)?w[0]:Nt(I,b,w,!0))+Math.PI/2)},e),v.add(k),m.setItemGraphicEl(M,k)}if(y){var R=h[D],O=R?R.shape.endAngle:s,E=C(M,O),B=g.get("clip");kt(E,{shape:{endAngle:Nt(I,b,w,B)}},e),v.add(E),Eg(e.seriesIndex,m.dataType,M,E),d[M]=E}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),k=I.get("disabled");if(p){var R=m.getItemGraphicEl(M),O=m.getItemVisual(M,"style"),E=O.fill;if(R instanceof Be){var B=R.style;R.useStyle(H({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},O))}else R.useStyle(O),R.type!=="pointer"&&R.setColor(E);R.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(Nt(m.get(_,M),b,[0,1],!0))),R.z2EmphasisLift=0,_e(R,D),Xt(R,L,P,k)}if(y){var G=d[M];G.useStyle(m.getItemVisual(M,"style")),G.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,_e(G,D),Xt(G,L,P,k)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=de(s,a.cx-o/2+q(l[0],a.r),a.cy-o/2+q(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),v=+e.get("max"),c=new it,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Pt({silent:!0}),d[y]=new Pt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new it,x=i(Nt(_,[f,v],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+q(w[0],o.r),C=o.cy+q(w[1],o.r),M=h[y];M.attr({z2:g?0:2,style:$t(b,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+q(I[0],o.r),P=o.cy+q(I[1],o.r),k=q(D.get("width"),o.r),R=q(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:$t(D,{x:L,y:P,text:Wf(_,E),width:isNaN(k)?null:k,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:O})}),GD(M,{normal:D},_,function(G){return Wf(G,E)}),p&&FD(M,y,l,e,{getFormattedLabel:function(G,F,W,X,J,ft){return Wf(ft?ft.interpolatedValue:_,E)}}),S.add(M)}c.add(S)}),this.group.add(c),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Ut);const b6=x6;var w6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Us(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,z.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:z.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:z.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:z.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:z.color.neutral00,borderWidth:0,borderColor:z.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:z.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:z.color.transparent,borderWidth:0,borderColor:z.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:z.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Kt);const T6=w6;function C6(r){r.registerChartView(b6),r.registerSeriesModel(T6)}var A6=["itemStyle","opacity"],M6=function(r){N(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Ue,s=new Pt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(A6);f=f??1,n||Br(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Zt(i,{style:{opacity:f}},o,a)):kt(i,{style:{opacity:f},shape:{points:l.points}},o,a),_e(i,s),this._updateLabel(e,a),Xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),f=u.label,v=e.getItemVisual(a,"style"),c=v.fill;Ce(o,Se(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:e.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?c:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new st(g[0][0],g[0][1]):null},kt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),C0(n,A0(l),{stroke:c})},t}(tr),D6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new M6(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Ua(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Ut);const L6=D6;var I6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Us(this,{coordDimensions:["value"],encodeDefaulter:gt(a0,this)})},t.prototype._defaultLabelLine=function(e){eo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:z.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:z.color.primary}}},t}(Kt);const P6=I6;function k6(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();oj6)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!pp(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function pp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const tY=J6;var eY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&mt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=Bt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(It);const rY=eY;var aY=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ea);const nY=aY;function $n(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Yo(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Yo(s,[0,o]),n=i=Yo(s,[n,i]),a=0}t[0]=Yo(t[0],e),t[1]=Yo(t[1],e);var l=gp(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Yo(t[a],f);var v;return v=gp(t,a),n!=null&&(v.sign!==l.sign||v.spani&&(t[1-a]=t[a]+v.sign*i),t}function gp(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 Yo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var yp=A,UP=Math.min,YP=Math.max,Bw=Math.floor,iY=Math.ceil,zw=fe,oY=Math.PI,sY=function(){function r(t,e,a){this.type="parallel",this._axesMap=et(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;yp(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new nY(o,hh(u),[0,0],u.get("type"),l)),v=f.type==="category";f.onBand=v&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();yp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),bs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=xe(t,e).refContainer;this._rect=qt(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=$f(t.get("axisExpandWidth"),l),v=$f(t.get("axisExpandCount")||0,[0,u]),c=t.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=$f(h[1]-h[0],l),h[1]=h[0]+d;else{d=$f(f*(v-1),l);var p=t.get("axisExpandCenter")||Bw(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-v);g<3&&(g=0);var y=[Bw(zw(h[0]/f,1))+1,iY(zw(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),yp(a,function(o,s){var l=(n.axisExpandable?uY:lY)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:oY/2,vertical:0},v=[u[i].x+t.x,u[i].y+t.y],c=f[i],h=Ie();Xn(h,h,c),Aa(h,h,v),this._axesLayout[o]={position:v,rotation:c,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?$n(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[YP(0,d-h/2)],n[1]=UP(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function $f(r,t){return UP(YP(r,t[0]),t[1])}function lY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function uY(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)Er(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;igY}function QP(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function tk(r,t,e,a){var n=new it;return n.add(new bt({name:"main",style:r_(e),silent:!0,draggable:!0,cursor:"move",drift:gt(Hw,r,t,n,["n","s","w","e"]),ondragend:gt(uo,t,{isEnd:!0})})),A(a,function(i){n.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:gt(Hw,r,t,n,i),ondragend:gt(uo,t,{isEnd:!0})}))}),n}function ek(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Ms(n,yY),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],v=e[1][1],c=f-i+n/2,h=v-i+n/2,d=f-o,p=v-s,g=d+n,y=p+n;za(r,t,"main",o,s,d,p),a.transformable&&(za(r,t,"w",l,u,i,y),za(r,t,"e",c,u,i,y),za(r,t,"n",l,u,g,i),za(r,t,"s",l,h,g,i),za(r,t,"nw",l,u,i,i),za(r,t,"ne",c,u,i,i),za(r,t,"sw",l,h,i,i),za(r,t,"se",c,h,i,i))}function Vy(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(r_(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Gy(r,i[0]):TY(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?_Y[s]+"-resize":null})})}function za(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(AY(a_(r,t,[[a,n],[a+i,n+o]])))}function r_(r){return lt({strokeNoScale:!0},r.brushStyle)}function rk(r,t,e,a){var n=[Au(r,e),Au(t,a)],i=[Ms(r,e),Ms(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function wY(r){return Ki(r.group)}function Gy(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=ah(e[t],wY(r));return a[n]}function TY(r,t){var e=[Gy(r,t[0]),Gy(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Hw(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=ak(t,n,i);A(a,function(u){var f=mY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(rk(s[0][0],s[1][0],s[0][1],s[1][1])),Q0(t,e),uo(t,{isEnd:!1})}function CY(r,t,e,a){var n=t.__brushOption.range,i=ak(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Q0(r,t),uo(r,{isEnd:!1})}function ak(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function a_(r,t,e){var a=JP(r,t);return a&&a!==lo?a.clipPath(e,r._transform):nt(e)}function AY(r){var t=Au(r[0][0],r[1][0]),e=Au(r[0][1],r[1][1]),a=Ms(r[0][0],r[1][0]),n=Ms(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function MY(r,t,e){if(!(!r._brushType||LY(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=e_(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var bh={lineX:Uw(0),lineY:Uw(1),rect:{createCover:function(r,t){function e(a){return a}return tk({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=QP(r);return rk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){ek(r,t,e,a)},updateCommon:Vy,contain:Hy},polygon:{createCover:function(r,t){var e=new it;return e.add(new Ue({name:"main",style:r_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new tr({name:"main",draggable:!0,drift:gt(CY,r,t),ondragend:gt(uo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:a_(r,t,e)})},updateCommon:Vy,contain:Hy}};function Uw(r){return{createCover:function(t,e){return tk({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=QP(t),a=Au(e[0][r],e[1][r]),n=Ms(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=JP(t,e);if(o!==lo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),ek(t,e,l,n)},updateCommon:Vy,contain:Hy}}const n_=xY;function ik(r){return r=i_(r),function(t){return OD(t,r)}}function ok(r,t){return r=i_(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function sk(r,t,e){var a=i_(r);return function(n,i){return a.contain(i[0],i[1])&&!fP(n,t,e)}}function i_(r){return vt.create(r)}var IY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new n_(a.getZr())).on("brush",j(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!PY(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!e.get("show")){var s=RY(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,v=e.axis.dim,c=l.getAxisLayout(v),h=H({strokeContainThreshold:f},c),d=new en(e,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,n),ku(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=vt.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ik(v),isTargetByCursor:sk(v,s,i),getLinearBrushOtherExtent:ok(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(kY(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Y(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Qt);function PY(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function kY(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function RY(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const EY=IY;var OY={type:"axisAreaSelect",event:"axisAreaSelected"};function NY(r){r.registerAction(OY,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var BY={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function lk(r){r.registerComponentView(tY),r.registerComponentModel(rY),r.registerCoordinateSystem("parallel",hY),r.registerPreprocessor(X6),r.registerComponentModel(Vw),r.registerComponentView(EY),Cs(r,"parallel",Vw,BY),NY(r)}function zY(r){_t(lk),r.registerChartView(G6),r.registerSeriesModel($6),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Z6)}var VY=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),GY=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new VY},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){Ja(this)},t.prototype.downplay=function(){Qa(this)},t}(Ct),FY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new it,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new bo(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this._mainGroup,l=e.layoutInfo,u=l.width,f=l.height,v=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(e,n),vP(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new GY,g=ht(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,P,k,R,O,E,B,G;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(b!=null?b*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,k=(M!=null?M*u:T.x)+I.ty,R=D!=null?D*f:T.y,O=L,E=P*(1-_)+R*_,B=k,G=P*_+R*(1-_)):(L=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,k=M!=null?M*u:T.x,R=(D!=null?D*f:T.y)+I.ty,O=L*(1-_)+k*_,E=P,B=L*_+k*(1-_),G=R),p.setShape({x1:L,y1:P,x2:k,y2:R,cpx1:O,cpy1:E,cpx2:B,cpy2:G}),p.useStyle(m.getItemStyle()),Yw(p.style,h,d);var F=""+y.get("value"),W=Se(y,"edgeLabel");Ce(p,W,{labelFetcher:{getFormattedLabel:function(ft,Dt,zt,ct,V,$){return e.getFormattedLabel(ft,Dt,"edge",ct,gr(V,W.normal&&W.normal.get("formatter"),F),$)}},labelDataIndex:d.dataIndex,defaultText:F}),p.setTextConfig({position:"inside"});var X=y.getModel("emphasis");_e(p,y,"lineStyle",function(ft){var Dt=ft.getItemStyle();return Yw(Dt,h,d),Dt}),s.add(p),c.setItemGraphicEl(d.dataIndex,p);var J=X.get("focus");Xt(p,J==="adjacency"?d.getAdjacentDataIndices():J==="trajectory"?d.getTrajectoryDataIndices():J,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,x=new bt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ce(x,Se(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),x.disableLabelAnimation=!0,x.setStyle("fill",d.getVisual("color")),x.setStyle("decal",d.getVisual("style").decal),_e(x,g),s.add(x),v.setItemGraphicEl(d.dataIndex,x),ht(x).dataType="node";var b=_.get("focus");Xt(x,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),v.eachItemGraphicEl(function(d,p){var g=v.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:v.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(HY(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=n.width,o=n.height,s=e.coordinateSystem=new wo(null,{api:a,ecModel:e.ecModel});s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Ut);function Yw(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");K(a)&&K(n)&&(r.fill=new Os(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function HY(r,t,e){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Zt(a,{shape:{width:r.width+20}},t,e),a}const WY=FY;var $Y=function(r){N(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,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Rt(o[l],this,a));var u=J0(i,n,this,!0,f);return u.data;function f(v,c){v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return he("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),v=f.getLayout().value,c=this.getDataParams(e,n).data.name;return he("nameValue",{name:c!=null?c+"":null,value:v,noValue:i(v)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:z.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:z.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(Kt);const UY=$Y;function YY(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=xe(e,t).refContainer,o=qt(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,v=u.edges;XY(f);var c=Bt(f,function(g){return g.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");ZY(f,v,a,n,s,l,h,d,p)})}function ZY(r,t,e,a,n,i,o,s,l){qY(r,t,e,n,i,s,l),QY(r,t,i,n,a,o,s),l7(r,s)}function XY(r){A(r,function(t){var e=zn(t.outEdges,xc),a=zn(t.inEdges,xc),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function qY(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],f=[],v=0,c=0;c=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:v},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;mv-1?h:v-1;o&&o!=="left"&&KY(r,o,i,w);var T=i==="vertical"?(n-e)/w:(a-e)/w;JY(r,T,i)}function uk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function KY(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,r7(s,l,o),mp(s,n,e,a,o),s7(s,l,o),mp(s,n,e,a,o)}function t7(r,t){var e=[],a=t==="vertical"?"y":"x",n=Lg(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function e7(r,t,e,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(v){u+=v.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[c]+t;var d=n==="vertical"?a:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=v-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[c]+t-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function r7(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=zn(n.outEdges,a7,e)/zn(n.outEdges,xc);if(isNaN(i)){var o=n.outEdges.length;i=o?zn(n.outEdges,n7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Un(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Un(n,e))*t;n.setLayout({y:l},!0)}}})})}function a7(r,t){return Un(r.node2,t)*r.getValue()}function n7(r,t){return Un(r.node2,t)}function i7(r,t){return Un(r.node1,t)*r.getValue()}function o7(r,t){return Un(r.node1,t)}function Un(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function xc(r){return r.getValue()}function zn(r,t,e){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var l=new Ne({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function f7(r){r.registerChartView(WY),r.registerSeriesModel(UY),r.registerLayout(YY),r.registerVisual(u7),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var fk=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,v=this._baseAxisDim=u[f],c=u[1-f],h=[n,i],d=h[f].get("type"),p=h[1-f].get("type"),g=t.data;if(g&&l){var y=[];A(g,function(S,x){var b;U(S)?(b=S.slice(),S.unshift(x)):U(S.value)?(b=H({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:v,type:ac(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ac(p),dimsDef:m.slice()}];return Us(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:gt(pL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),vk=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:z.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:z.color.shadow}},animationDuration:800},t}(Kt);pe(vk,fk,!0);const v7=vk;var c7=function(r){N(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,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),v=Zw(f,i,u,l,!0);i.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,f){var v=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(v);return}var c=i.getItemLayout(u);v?(Br(v),ck(c,v,i,u)):v=Zw(c,i,u,l),o.add(v),i.setItemGraphicEl(u,v)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(Ut),h7=function(){function r(){}return r}(),d7=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new h7},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:e,outliers:a}}var b7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Pe){var a="";Ot(a)}var n=x7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function w7(r){r.registerSeriesModel(v7),r.registerChartView(g7),r.registerLayout(y7),r.registerTransform(b7)}var T7=["itemStyle","borderColor"],C7=["itemStyle","borderColor0"],A7=["itemStyle","borderColorDoji"],M7=["itemStyle","color"],D7=["itemStyle","color0"];function o_(r,t){return t.get(r>0?M7:D7)}function s_(r,t){return t.get(r===0?A7:r>0?T7:C7)}var L7={seriesType:"candlestick",plan:Gs(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=o_(s,o),l.stroke=s_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");H(u,l)}}}}}};const I7=L7;var P7=["color","borderColor"],k7=function(r){N(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,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var v=a.getItemLayout(f);if(s&&Xw(u,v))return;var c=_p(v,f,!0);Zt(c,{shape:{points:v.ends}},e,f),Sp(c,a,f,o),i.add(c),a.setItemGraphicEl(f,c)}}).update(function(f,v){var c=n.getItemGraphicEl(v);if(!a.hasValue(f)){i.remove(c);return}var h=a.getItemLayout(f);if(s&&Xw(u,h)){i.remove(c);return}c?(kt(c,{shape:{points:h.ends}},e,f),Br(c)):c=_p(h),Sp(c,a,f,o),i.add(c),a.setItemGraphicEl(f,c)}).remove(function(f){var v=n.getItemGraphicEl(f);v&&i.remove(v)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),qw(e,this.group);var a=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=_p(s);Sp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){qw(a,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}(Ut),R7=function(){function r(){}return r}(),E7=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new R7},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Ct);function _p(r,t,e){var a=r.ends;return new E7({shape:{points:e?O7(a,r):a},z2:100})}function Xw(r,t){for(var e=!0,a=0;ax?D[i]:M[i],ends:P,brushRect:B(b,w,_)})}function O(F,W){var X=[];return X[n]=W,X[i]=F,isNaN(W)||isNaN(F)?[NaN,NaN]:t.dataToPoint(X)}function E(F,W,X){var J=W.slice(),ft=W.slice();J[n]=yv(J[n]+a/2,1,!1),ft[n]=yv(ft[n]-a/2,1,!0),X?F.push(J,ft):F.push(ft,J)}function B(F,W,X){var J=O(F,X),ft=O(W,X);return J[n]-=a/2,ft[n]-=a/2,{x:J[0],y:J[1],width:a,height:ft[1]-J[1]}}function G(F){return F[n]=yv(F[n],1),F}}function d(p,g){for(var y=ma(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var C=w.get(s,b),M=w.get(u,b),D=w.get(f,b),I=w.get(v,b),L=w.get(c,b);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=Kw(w,b,M,D,f,T),S[n]=C,S[i]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Kw(r,t,e,a,n,i){var o;return e>a?o=-1:e0?r.get(n,t-1)<=a?1:-1:1,o}function F7(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=q(rt(r.get("barMaxWidth"),n),n),o=q(rt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?q(s,n):Math.max(Math.min(n/2,i),o)}const H7=G7;function W7(r){r.registerChartView(B7),r.registerSeriesModel(z7),r.registerPreprocessor(V7),r.registerVisual(I7),r.registerLayout(H7)}function jw(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var $7=function(r){N(t,r);function t(e,a){var n=r.call(this)||this,i=new Gu(e,a),o=new it;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var c=void 0;at(v)?c=v(n):c=v,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return wn(e.__p1,e.__cp1)+wn(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Le,f=dg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=e.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),c=e.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),v=n[l],c=n[l+1];e.x=v[0]*(1-f)+f*c[0],e.y=v[1]*(1-f)+f*c[1];var h=e.__t<1?c[0]-v[0]:v[0]-c[0],d=e.__t<1?c[1]-v[1]:v[1]-c[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(dk);const t9=Q7;var e9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),r9=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new e9},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){e.moveTo(n[o++],n[o++]);for(var l=1;l0){var h=(u+v)/2-(f-c)*i,d=(f+c)/2-(v-u)*i;e.quadraticCurveTo(h,d,v,c)}else e.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var v=i[u++],c=i[u++],h=1;h0){var g=(v+d)/2-(c-p)*o,y=(c+p)/2-(d-v)*o;if(XM(v,c,g,y,d,p,s,e,a))return l}else if(xn(v,c,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const n9=a9;var i9={seriesType:"lines",plan:Gs(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var v=e.get("clip",!0)&&Hu(e.coordinateSystem,!1,e);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=gk.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new n9:new j0(o?i?t9:pk:i?dk:K0),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Ut);const s9=o9;var l9=typeof Uint32Array>"u"?Array:Uint32Array,u9=typeof Float64Array>"u"?Array:Float64Array;function Jw(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),ym([n,e[0],e[1]])}))}var f9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Jw(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Jw(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Ql(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Ql(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Kt);const v9=f9;function Uf(r){return r instanceof Array||(r=[r,r]),r}var c9={seriesType:"lines",reset:function(r){var t=Uf(r.get("symbol")),e=Uf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Uf(s.getShallow("symbol",!0)),u=Uf(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};const h9=c9;function d9(r){r.registerChartView(s9),r.registerSeriesModel(v9),r.registerLayout(gk),r.registerVisual(h9)}var p9=256,g9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=qr.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),h=t.length;v.width=e,v.height=a;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*M+T),x[b++]=I[D],x[b++]=I[D+1],x[b++]=I[D+2],x[b++]=I[D+3]*_*256}else b+=4}return c.putImageData(S,0,0),v},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=qr.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=z.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const y9=g9;function m9(r,t,e){var a=r[1]-r[0];t=Y(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&a<=t[1]}}function Qw(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var S9=function(r){N(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,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):Qw(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(Qw(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=Wn(s,"cartesian2d"),u=Wn(s,"matrix"),f,v,c,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,v=p.getBandWidth()+.5,c=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),b=Se(e),w=e.getModel("emphasis"),T=w.get("focus"),C=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],I=n;Ic[1]||Rh[1])continue;var O=s.dataToPoint([k,R]);L=new bt({shape:{x:O[0]-f/2,y:O[1]-v/2,width:f,height:v},style:P})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(He(E.x))continue;L=new bt({z2:1,shape:E,style:P})}else{if(isNaN(y.get(D[1],I)))continue;var B=s.dataToLayout([y.get(D[0],I)]),E=B.contentRect||B.rect;if(He(E.x)||He(E.y))continue;L=new bt({z2:1,shape:E,style:P})}if(y.hasItemOption){var G=y.getItemModel(I),F=G.getModel("emphasis");m=F.getModel("itemStyle").getItemStyle(),_=G.getModel(["blur","itemStyle"]).getItemStyle(),S=G.getModel(["select","itemStyle"]).getItemStyle(),x=G.get(["itemStyle","borderRadius"]),T=F.get("focus"),C=F.get("blurScope"),M=F.get("disabled"),b=Se(G)}L.shape.r=x;var W=e.getRawValue(I),X="-";W&&W[2]!=null&&(X=W[2]+""),Ce(L,b,{labelFetcher:e,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:X}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Xt(L,T,C,M),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new y9;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),v=e.getRoamTransform();f.applyTransform(v);var c=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-c,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=e.dataToPoint([w,T]);return M[0]-=c,M[1]-=h,M.push(C),M}),S=n.getExtent(),x=n.type==="visualMap.continuous"?_9(S,n.option.range):m9(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new Be({style:{width:g,height:y,x:c,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Ut);const x9=S9;var b9=function(r){N(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,a){return sn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Nu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:z.color.primary}}},t}(Kt);const w9=b9;function T9(r){r.registerChartView(x9),r.registerSeriesModel(w9)}var C9=["itemStyle","borderWidth"],tT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],wp=new qn,A9=function(r){N(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,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:tT[+f],categoryDim:tT[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=rT(o,d),g=eT(o,d,p,c),y=aT(o,c,g);o.setItemGraphicEl(d,y),i.add(y),iT(y,c,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=rT(o,d),m=eT(o,d,y,c),_=bk(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?R9(g,c,m):g=aT(o,c,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),iT(g,c,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&nT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){nT(i,ht(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Ut);function eT(r,t,e,a){var n=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,f=e.get("symbolPatternSize")||2,v=e.isAnimationEnabled(),c={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?e:null,hoverScale:v&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};M9(e,i,n,a,c),D9(r,t,n,i,o,c.boundingLength,c.pxSign,f,a,c),L9(e,c.symbolScale,u,a,c);var h=c.symbolSize,d=mo(e.get("symbolOffset"),h);return I9(e,h,n,i,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,a,c),c}function M9(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(U(o)){var v=[Tp(s,o[0])-l,Tp(s,o[1])-l];v[1]=0?1:-1:f>0?1:-1}function Tp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function D9(r,t,e,a,n,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,c=Math.abs(e[v.wh]),h=r.getItemVisual(t,"symbolSize"),d;U(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[v.index]=q(d[v.index],c),d[f.index]=q(d[f.index],a?c:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function L9(r,t,e,a,n){var i=r.get(C9)||0;i&&(wp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),wp.updateTransform(),i/=wp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function I9(r,t,e,a,n,i,o,s,l,u,f,v){var c=f.categoryDim,h=f.valueDim,d=v.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=Oe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=q(m,t[h.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=kM(a),T=w?a:oT((y+b)/x),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&a!=="fixed"&&(T=u?oT((Math.abs(u)+b)/x):0),g=T*x-b,v.repeatTimes=T,v.symbolMargin=S}var M=d*(g/2),D=v.pathPosition=[];D[c.index]=e[c.wh]/2,D[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=v.bundlePosition=[];I[c.index]=e[c.xy],I[h.index]=e[h.xy];var L=v.barRectShape=H({},e);L[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(D[h.index]+M)),L[c.wh]=e[c.wh];var P=v.clipShape={};P[c.xy]=-e[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=e[h.wh]}function yk(r){var t=r.symbolPatternSize,e=de(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function mk(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,v=i[t.valueDim.index]+o+e.symbolMargin*2;for(l_(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function _k(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ps(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=yk(e),n.add(i),ps(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,a))}function Sk(r,t,e){var a=H({},t.barRectShape),n=r.__pictorialBarRect;n?ps(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function xk(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=H({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)kt(n,{shape:i},s,l);else{i[o.wh]=0,n=new bt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],ho[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function rT(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=P9,e.isAnimationEnabled=k9,e}function P9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function k9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function aT(r,t,e,a){var n=new it,i=new it;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?mk(n,t,e):_k(n,t,e),Sk(n,e,a),xk(n,t,e,a),n.__pictorialShapeStr=bk(r,e),n.__pictorialSymbolMeta=e,n}function R9(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;kt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?mk(r,t,e,!0):_k(r,t,e,!0),Sk(r,e,!0),xk(r,t,e,!0)}function nT(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];l_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Gn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function bk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function l_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function ps(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&ho[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function iT(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),v=i.get("blurScope"),c=i.get("scale");l_(r,function(p){if(p instanceof Be){var g=p.style;p.useStyle(H({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,c&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Ce(d,Se(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Ts(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),Xt(r,f,v,i.get("disabled"))}function oT(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const E9=A9;var O9=function(r){N(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=jn(cc.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:z.color.primary}}}),t}(cc);const N9=O9;function B9(r){r.registerChartView(E9),r.registerSeriesModel(N9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,gt(BI,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zI("pictorialBar"))}var z9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function c(g){return g.name}var h=new tn(this._layersSeries||[],l,c,c),d=[];h.add(j(p,this,"add")).update(j(p,this,"update")).remove(j(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=v)}return{y0:n,max:i}}function U9(r){r.registerChartView(G9),r.registerSeriesModel(H9),r.registerLayout(W9),r.registerProcessor($s("themeRiver"))}var Y9=2,Z9=4,X9=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=Y9,o.textConfig={inside:!0},ht(o).seriesIndex=a.seriesIndex;var s=new Pt({z2:Z9,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ht(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),v=H({},f);v.label=null;var c=a.getVisual("style");c.lineJoin="bevel";var h=a.getVisual("decal");h&&(c.decal=xs(h,o));var d=Sa(l.getModel("itemStyle"),v,!0);H(v,d),A(Je,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Sa(S,v);x&&(_.shape=x)}),e?(s.setShape(v),s.shape.r=f.r0,Zt(s,{shape:{r:f.r}},n,a.dataIndex)):(kt(s,{shape:v},n),Br(s)),s.useStyle(c),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Ql(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Xt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),v=this,c=v.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)P&&!au(R-P)&&R0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new lT(m,e,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";qv(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Wy,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Ut);const J9=j9;var Q9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};wk(n);var i=this._levelModels=Y(e.levels||[],function(l){return new Rt(l,this,a)},this),o=W0.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),c=i[v.depth];return c&&(u.parentModel=c),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Sh(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){AP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Kt);function wk(r){var t=0;A(r.children,function(a){wk(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}const tZ=Q9;var fT=Math.PI/180;function eZ(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");U(i)||(i=[0,i]),U(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=q(n[0],o),f=q(n[1],s),v=q(i[0],l/2),c=q(i[1],l/2),h=-a.get("startAngle")*fT,d=a.get("minAngle")*fT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&Tk(g,m);var _=0;A(g.children,function(R){!isNaN(R.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(c-v)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(R,O){if(R){var E=O;if(R!==p){var B=R.getValue(),G=S===0&&M?x:B*x;G1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&K(s)&&(s=yg(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");H(u,l)})})}function nZ(r){r.registerChartView(J9),r.registerSeriesModel(tZ),r.registerLayout(gt(eZ,"sunburst")),r.registerProcessor(gt($s,"sunburst")),r.registerVisual(aZ),K9(r)}var vT={color:"fill",borderColor:"stroke"},iZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ya=wt(),oZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return sn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Ya(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Kt);const sZ=oZ;function lZ(r,t){return t=t||[0,0],Y(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function uZ(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:j(lZ,r)}}}function fZ(r,t){return t=t||[0,0],Y([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function vZ(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:j(fZ,r)}}}function cZ(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function hZ(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:j(cZ,r)}}}function dZ(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function pZ(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:j(dZ,r)}}}function gZ(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function yZ(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function Ck(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Q(r,"text")))}function Ak(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},Q(a,"text")&&(o.text=a.text),Q(a,"rich")&&(o.rich=a.rich),Q(a,"textFill")&&(o.fill=a.textFill),Q(a,"textStroke")&&(o.stroke=a.textStroke),Q(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Q(a,"fontSize")&&(o.fontSize=a.fontSize),Q(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Q(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Q(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Q(a,"textPosition")&&(n.position=a.textPosition),Q(a,"textOffset")&&(n.offset=a.textOffset),Q(a,"textRotation")&&(n.rotation=a.textRotation),Q(a,"textDistance")&&(n.distance=a.textDistance)}return cT(o,r),A(o.rich,function(l){cT(l,l)}),{textConfig:n,textContent:i}}function cT(r,t){t&&(t.font=t.textFont||t.font,Q(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Q(t,"textAlign")&&(r.align=t.textAlign),Q(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Q(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Q(t,"textWidth")&&(r.width=t.textWidth),Q(t,"textHeight")&&(r.height=t.textHeight),Q(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Q(t,"textPadding")&&(r.padding=t.textPadding),Q(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Q(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Q(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Q(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Q(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Q(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Q(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function hT(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||z.color.neutral99;dT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||z.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||z.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){dT(s,s)}),a}function dT(r,t){t&&(Q(t,"fill")&&(r.textFill=t.fill),Q(t,"stroke")&&(r.textStroke=t.fill),Q(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Q(t,"font")&&(r.font=t.font),Q(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Q(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Q(t,"fontSize")&&(r.fontSize=t.fontSize),Q(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Q(t,"align")&&(r.textAlign=t.align),Q(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Q(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Q(t,"width")&&(r.textWidth=t.width),Q(t,"height")&&(r.textHeight=t.height),Q(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Q(t,"padding")&&(r.textPadding=t.padding),Q(t,"borderColor")&&(r.textBorderColor=t.borderColor),Q(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Q(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Q(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Q(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Q(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Q(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Q(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Q(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Q(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Q(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Mk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pT=Mt(Mk);Ca(Ma,function(r,t){return r[t]=1,r},{});Ma.join(", ");var bc=["","style","shape","extra"],Ds=wt();function u_(r,t,e,a,n){var i=r+"Animation",o=Ns(r,a,n)||{},s=Ds(t).userDuring;return o.duration>0&&(o.during=s?j(bZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,e[i]),o}function Cv(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=Ds(r),u=t.style;l.userDuring=t.during;var f={},v={};if(TZ(r,t,v),r.type==="compound")for(var c=r.shape.paths,h=t.shape.paths,d=0;d0&&r.animateFrom(g,y)}else _Z(r,t,n||0,e,f);Dk(r,t),u?r.dirty():r.markRedraw()}function Dk(r,t){for(var e=Ds(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function SZ(r,t){Q(t,"silent")&&(r.silent=t.silent),Q(t,"ignore")&&(r.ignore=t.ignore),r instanceof Nr&&Q(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ct&&Q(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var ua={},xZ={setTransform:function(r,t){return ua.el[r]=t,this},getTransform:function(r){return ua.el[r]},setShape:function(r,t){var e=ua.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=ua.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=ua.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=ua.el.style;if(t)return t[r]},setExtra:function(r,t){var e=ua.el.extra||(ua.el.extra={});return e[r]=t,this},getExtra:function(r){var t=ua.el.extra;if(t)return t[r]}};function bZ(){var r=this,t=r.el;if(t){var e=Ds(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}ua.el=t,a(xZ)}}function gT(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),to(l))H(o,i);else for(var u=Ht(l),f=0;f=0){!o&&(o=a[r]={});for(var h=Mt(i),f=0;f=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=a.style={});for(var d=Mt(e),u=0;u=0?t.getStore().get(E,R):void 0}var B=t.get(O.name,R),G=O&&O.ordinalMeta;return G?G.categories[B]:B}function w(k,R){R==null&&(R=f);var O=t.getItemVisual(R,"style"),E=O&&O.fill,B=O&&O.opacity,G=_(R,In).getItemStyle();E!=null&&(G.fill=E),B!=null&&(G.opacity=B);var F={inheritColor:K(E)?E:z.color.neutral99},W=S(R,In),X=$t(W,null,F,!1,!0);X.text=W.getShallow("show")?rt(r.getFormattedLabel(R,In),Ts(t,R)):null;var J=Zv(W,F,!1);return M(k,G),G=hT(G,X,J),k&&C(G,k),G.legacy=!0,G}function T(k,R){R==null&&(R=f);var O=_(R,Za).getItemStyle(),E=S(R,Za),B=$t(E,null,null,!0,!0);B.text=E.getShallow("show")?gr(r.getFormattedLabel(R,Za),r.getFormattedLabel(R,In),Ts(t,R)):null;var G=Zv(E,null,!0);return M(k,O),O=hT(O,B,G),k&&C(O,k),O.legacy=!0,O}function C(k,R){for(var O in R)Q(R,O)&&(k[O]=R[O])}function M(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function D(k,R){if(R==null&&(R=f),Q(vT,k)){var O=t.getItemVisual(R,"style");return O?O[vT[k]]:null}if(Q(iZ,k))return t.getItemVisual(R,k)}function I(k){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return Q3(lt({axis:R},k))}}function L(){return e.getCurrentSeriesIndices()}function P(k){return Um(k,e)}}function NZ(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Lp(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=d_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Xt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function d_(r,t,e,a,n,i){var o=-1,s=t;t&&kk(t,a,n)&&(o=yt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=c_(a),s&&PZ(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),br.normal.cfg=br.normal.conOpt=br.emphasis.cfg=br.emphasis.conOpt=br.blur.cfg=br.blur.conOpt=br.select.cfg=br.select.conOpt=null,br.isLegacy=!1,zZ(u,e,a,n,l,br),BZ(u,e,a,n,l),h_(r,u,e,a,br,n,l),Q(a,"info")&&(Ya(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function kk(r,t,e){var a=Ya(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&WZ(i)&&Rk(i)!==a.customPathData||n==="image"&&Q(o,"image")&&o.image!==a.customImagePath}function BZ(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&kk(o,i,a)&&(o=null),o||(o=c_(i),r.setClipPath(o)),h_(null,o,t,i,null,a,n)}}function zZ(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){mT(e,null,i),mT(e,Za,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=c_(o),r.setTextContent(f)),h_(null,f,t,o,null,a,n);for(var v=o&&o.style,c=0;c=f;h--){var d=t.childAt(h);GZ(t,d,n)}}}function GZ(r,t,e){t&&wh(t,Ya(r).option,e)}function FZ(r){new tn(r.oldChildren,r.newChildren,_T,_T,r).add(ST).update(ST).remove(HZ).execute()}function _T(r,t){var e=r&&r.name;return e??LZ+t}function ST(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;d_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function HZ(r){var t=this.context,e=t.oldChildren[r];e&&wh(e,Ya(e).option,t.seriesModel)}function Rk(r){return r&&(r.pathData||r.d)}function WZ(r){return r&&(Q(r,"pathData")||Q(r,"d"))}function $Z(r){r.registerChartView(RZ),r.registerSeriesModel(sZ)}var Ri=wt(),xT=nt,Ip=j,UZ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new it,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var c=gt(bT,e,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}TT(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=N0(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Ri(t).pointerEl=new ho[i.type](xT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Ri(t).labelEl=new Pt(xT(e.label));t.add(i),wT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Ri(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Ri(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),wT(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Ru(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ka(u.event)},onmousedown:Ip(this._onHandleDragMove,this,0,0),drift:Ip(this._onHandleDragMove,this),ondragend:Ip(this._onHandleDragEnd,this)}),a.add(n)),TT(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Fs(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){bT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Pp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Pp(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Pp(n)),Ri(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.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(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),cu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function bT(r,t,e,a){Ek(Ri(e).lastProp,a)||(Ri(e).lastProp=a,t?kt(e,a,r):(e.stopAnimation(),e.attr(a)))}function Ek(r,t){if(ut(r)&&ut(t)){var e=!0;return A(t,function(a,n){e=e&&Ek(r[n],a)}),!!e}else return r===t}function wT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Pp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function TT(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const g_=UZ;function y_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function Ok(r,t,e,a,n){var i=e.get("value"),o=Nk(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Eu(s.get("padding")||0),u=s.getFont(),f=Uc(o,u),v=n.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var p=n.verticalAlign;p==="bottom"&&(v[1]-=h),p==="middle"&&(v[1]-=h/2),YZ(v,c,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:$t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function YZ(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-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 Nk(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:nc(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),K(o)?i=o.replace("{value}",i):at(o)&&(i=o(s))}return i}function m_(r,t,e){var a=Ie();return Xn(a,a,e.rotation),Aa(a,a,e.position),Zr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function Bk(r,t,e,a,n,i){var o=en.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Ok(t,a,n,i,{position:m_(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function __(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function zk(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function CT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var ZZ=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=AT(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var c=y_(i),h=XZ[u](s,v,f);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=pc(l.getRect(),n);Bk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=pc(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=m_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=AT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[e.x,e.y];v[f]+=a[f],v[f]=Math.min(l[1],v[f]),v[f]=Math.max(l[0],v[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=v[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(g_);function AT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var XZ={line:function(r,t,e){var a=__([t,e[0]],[t,e[1]],MT(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:zk([t-a/2,e[0]],[a,n],MT(r))}}};function MT(r){return r.dim==="x"?0:1}const qZ=ZZ;var KZ=function(r){N(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:z.color.border,width:1,type:"dashed"},shadowStyle:{color:z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:z.color.neutral00,padding:[5,7,5,7],backgroundColor:z.color.accent60,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:z.color.accent40,throttle:40}},t}(It);const jZ=KZ;var Wa=wt(),JZ=A;function Vk(r,t,e){if(!Et.node){var a=t.getZr();Wa(a).records||(Wa(a).records={}),QZ(a,t);var n=Wa(a).records[r]||(Wa(a).records[r]={});n.handler=e}}function QZ(r,t){if(Wa(r).initialized)return;Wa(r).initialized=!0,e("click",gt(DT,"click")),e("mousemove",gt(DT,"mousemove")),e("globalout",eX);function e(a,n){r.on(a,function(i){var o=rX(t);JZ(Wa(r).records,function(s){s&&n(s,i,o.dispatchAction)}),tX(o.pendings,t)})}}function tX(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function eX(r,t,e){r.handler("leave",null,e)}function DT(r,t,e,a){t.handler(r,e,a)}function rX(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Yy(r,t){if(!Et.node){var e=t.getZr(),a=(Wa(e).records||{})[r];a&&(Wa(e).records[r]=null)}}var aX=function(r){N(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,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Vk("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Yy("axisPointer",a)},t.prototype.dispose=function(e,a){Yy("axisPointer",a)},t.type="axisPointer",t}(Qt);const nX=aX;function Gk(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ro(i,r);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,c=u.dim,h=v==="x"||v==="radius"?1:0,d=i.mapDimension(c),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(Y(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var LT=wt();function iX(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||j(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Av(n)&&(n=Gk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Av(n),u=i.axesInfo,f=s.axesInfo,v=a==="leave"||Av(n),c={},h={},d={list:[],map:{}},p={showPointer:gt(sX,h),showTooltip:gt(lX,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=cX(u,S);if(!v&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(n)),T!=null&&IT(S,T,p,!1,c)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,x){var b=h[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,PT(S),PT(y)))),g[y.key]=w}})}),A(g,function(y,m){IT(f[m],y,p,!0,c)}),uX(h,f,c),fX(d,n,r,o),vX(f,o,e),c}}function IT(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=oX(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function oX(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),v,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,e);c=h.dataIndices,v=h.nestestValue}else{if(c=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!c.length)return;v=l.getData().get(f[0],c[0])}if(!(v==null||!isFinite(v))){var d=r-v,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=v,i.length=0),A(c,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function sX(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function lX(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=xu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function uX(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function fX(r,t,e,a){if(Av(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function vX(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=LT(a)[n]||{},o=LT(a)[n]={};A(r,function(u,f){var v=u.axisPointerModel.option;v.status==="show"&&u.triggerEmphasis&&A(v.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;o[h]=c})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&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 cX(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function PT(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Av(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Uu(r){xo.registerAxisPointerClass("CartesianAxisPointer",qZ),r.registerComponentModel(jZ),r.registerComponentView(nX),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!U(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=FW(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iX)}function hX(r){_t(lP),_t(Uu)}var dX=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),v=s.dataToCoord(a),c=i.get("type");if(c&&c!=="none"){var h=y_(i),d=gX[c](s,l,v,f);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=pX(a,n,i,l,p);Ok(e,n,i,o,g)},t}(g_);function pX(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var c=Ie();Xn(c,c,s),Aa(c,c,[a.cx,a.cy]),u=Zr([o,-n],c);var h=t.getModel("axisLabel").get("rotate")||0,d=en.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,v=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var gX={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:__(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:CT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:CT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const yX=dX;var mX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(It);const _X=mX;var S_=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ee).models[0]},t.type="polarAxis",t}(It);pe(S_,Vu);var SX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(S_),xX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(S_),x_=function(r){N(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(ea);x_.prototype.dataToRadius=ea.prototype.dataToCoord;x_.prototype.radiusToData=ea.prototype.coordToData;const bX=x_;var wX=wt(),b_=function(r){N(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Uc(s==null?"":s+"",a.getFont(),"center","top"),v=Math.max(f.height,7),c=v/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=wX(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(ea);b_.prototype.dataToAngle=ea.prototype.dataToCoord;b_.prototype.angleToData=ea.prototype.coordToData;const TX=b_;var Fk=["radius","angle"],CX=function(){function r(t){this.dimensions=Fk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new bX,this._angleAxis=new TX,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,v=u*u+f*f,c=this.r,h=this.r0;return c!==h&&v-o<=c*c&&v+o>=h*h},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=kT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=kT(e);return n===this?this.pointToData(a):null},r}();function kT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const AX=CX;function MX(r,t,e){var a=t.get("center"),n=xe(t,e).refContainer;r.cx=q(a[0],n.width)+n.x,r.cy=q(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:U(s)||(s=[0,s]);var l=[q(s[0],o),q(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function DX(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(ic(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(ic(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),bs(a.scale,a.model),bs(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function LX(r){return r.mainType==="angleAxis"}function RT(r,t){var e;if(r.type=t.get("type"),r.scale=hh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),LX(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var IX={dimensions:Fk,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new AX(n+"");i.update=DX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");RT(o,l),RT(s,u),MX(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",ee).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const PX=IX;var kX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Yf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Zf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function ET(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var RX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=Y(n.getViewLabels(),function(f){f=nt(f);var v=n.scale,c=v.type==="ordinal"?v.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(c),f});ET(u),ET(s),A(kX,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&EX[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(xo),EX={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Zf(e),v=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?c=new ho[h]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new th({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Zf(e)],u=Y(a,function(f){return new me({shape:Yf(e,[l,l+s],f.coord)})});r.add(Pr(u,{style:lt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Zf(e)],f=[],v=0;vy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];ut(x)&&x.textStyle&&(h=new Rt(x.textStyle,l,l.ecModel))}var b=new Pt({silent:en.isLabelSilent(t),style:$t(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),on({el:b,componentModel:t,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:v.rawLabel,tickIndex:c}}),f){var w=en.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=v.rawLabel,ht(b).eventData=w}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v=0?"p":"n",k=C;x&&(a[f][L]||(a[f][L]={p:C,n:C}),k=a[f][L][P]);var R=void 0,O=void 0,E=void 0,B=void 0;if(d.dim==="radius"){var G=d.dataToCoord(I)-C,F=l.dataToCoord(L);Math.abs(G)=B})}}})}function HX(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Wk(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),v=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=v.stacks;t[l]=v;var h=Hk(a);c[h]||v.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=q(a.get("barWidth"),f),p=q(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(v.remainedWidth,d),c[h].width=d,v.remainedWidth-=d),p&&(c[h].maxWidth=p),g!=null&&(v.gap=g),y!=null&&(v.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=q(a.categoryGap,o),l=q(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,v=(u-s)/(f+(f-1)*l);v=Math.max(v,0),A(i,function(p,g){var y=p.maxWidth;y&&y=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=OT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=OT(e);return n===this?this.pointToData(a):null},r}();function OT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function tq(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new QX(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",ee).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var eq={create:tq,dimensions:Uk};const rq=eq;var NT=["x","y"],aq=["width","height"],nq=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Rp(l,1-Cc(s)),f=l.dataToPoint(a)[0],v=i.get("type");if(v&&v!=="none"){var c=y_(i),h=iq[v](s,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=Zy(n);Bk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Zy(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=m_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Cc(o),u=Rp(s,l),f=[e.x,e.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=Rp(s,1-l),c=(v[1]+v[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(g_),iq={line:function(r,t,e){var a=__([t,e[0]],[t,e[1]],Cc(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:zk([t-a/2,e[0]],[a,n],Cc(r))}}};function Cc(r){return r.isHorizontal()?0:1}function Rp(r,t){var e=r.getRect();return[e[NT[t]],e[NT[t]]+e[aq[t]]]}const oq=nq;var sq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(Qt);function lq(r){_t(Uu),xo.registerAxisPointerClass("SingleAxisPointer",oq),r.registerComponentView(sq),r.registerComponentView(KX),r.registerComponentModel(kp),Cs(r,"single",kp,kp.defaultOption),r.registerCoordinateSystem("single",rq)}var uq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=go(e);r.prototype.init.apply(this,arguments),BT(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),BT(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:z.color.axisLine,width:1,type:"solid"}},itemStyle:{color:z.color.neutral00,borderWidth:1,borderColor:z.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:z.size.s,color:z.color.secondary},monthLabel:{show:!0,position:"start",margin:z.size.s,align:"center",formatter:null,color:z.color.secondary},yearLabel:{show:!0,position:null,margin:z.size.xl,formatter:null,color:z.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(It);function BT(r,t){var e=r.cellSize,a;U(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=Y([0,1],function(i){return LV(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});La(r,t,{type:"box",ignoreSize:n})}const fq=uq;var vq=function(r){N(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,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,v=new bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=a.start,c=0;v.time<=a.end.time;c++){d(v.formatedDate),c===0&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=s.getDateInfo(h)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Ue({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return K(e)&&e?bV(e,a):at(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,c=n==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],v],right:[u[c][0],v]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Pt({z2:30,style:$t(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||K(s))&&(s&&(a=$g(s)||a),s=a.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g=i.start.time&&n.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Ep)-Math.floor(e[0].time/Ep)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),v=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:v,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&en.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Ou({targetModel:i,coordSysType:"calendar",coordSysProvider:nL})}),a},r.dimensions=["time","value"],r}();function Op(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const dq=hq;function pq(r){r.registerComponentModel(fq),r.registerComponentView(cq),r.registerCoordinateSystem("calendar",dq)}var Fa={level:1,leaf:2,nonLeaf:3},Xa={none:0,all:1,body:2,corner:3};function Xy(r,t,e){var a=t[dt[e]].getCell(r);return!a&&Lt(r)&&r<0&&(a=t[dt[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function Yk(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function Zk(r,t,e,a,n){zT(r[0],t,n,e,a,0),zT(r[1],t,n,e,a,1)}function zT(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=U(o)?o:[o],l=s.length,u=!!e;if(l>=1?(VT(r,t,s,u,n,i,0),l>1&&VT(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[dt[1-i]].getLocatorCount(i),v=n[dt[i]].getLocatorCount(i)-1;e===Xa.body?f=ie(0,f):e===Xa.corner&&(v=yr(-1,v)),v=t[0]&&r[0]<=t[1]}function HT(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function mq(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function WT(r,t,e,a){var n=Xy(t[a][0],e,a),i=Xy(t[a][1],e,a);r[dt[a]]=r[ce[a]]=NaN,n&&i&&(r[dt[a]]=n.xy,r[ce[a]]=i.xy+i.wh-n.xy)}function ml(r,t,e,a){return r[dt[t]]=e,r[dt[1-t]]=a,r}function _q(r){return r&&(r.type===Fa.leaf||r.type===Fa.nonLeaf)?r:null}function Ac(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var $T=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=Sq(t);var a=e.get("data",!0);a!=null&&!U(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,v){var c=0;return u&&A(u,function(h,d){var p;K(h)?p={value:h}:ut(h)?(p=h,h.value!=null&&!K(h.value)&&(p={value:null})):p={value:null};var g={type:Fa.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:f,id:new st,span:ml(new st,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:Ac()};o++,(i[f]||(i[f]=[])).push(g),n[v]||(n[v]={type:Fa.level,xy:NaN,wh:NaN,option:null,id:new st,dim:e});var y=s(p.children,f,v+1),m=Math.max(1,y);g.span[dt[e.dimIdx]]=m,c+=m,f+=m}),c}function l(){for(var u=[];a.length=1,_=e[dt[a]],S=i.getLocatorCount(a)-1,x=new On;for(o.resetLayoutIterator(x,a);x.next();)b(x.item);for(i.resetLayoutIterator(x,a);x.next();)b(x.item);function b(w){He(w.wh)&&(w.wh=y),w.xy=_,w.id[dt[a]]===S&&!m&&(w.wh=e[dt[a]]+e[ce[a]]-w.xy),_+=w.wh}}function jT(r,t){for(var e=t[dt[r]].resetCellIterator();e.next();){var a=e.item;Mc(a.rect,r,a.id,a.span,t),Mc(a.rect,1-r,a.id,a.span,t),a.type===Fa.nonLeaf&&(a.xy=a.rect[dt[r]],a.wh=a.rect[ce[r]])}}function JT(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Mc(n,0,i,a,t),Mc(n,1,i,a,t)}})}function Mc(r,t,e,a,n){r[ce[t]]=0;var i=e[dt[t]],o=i<0?n[dt[1-t]]:n[dt[t]],s=o.getUnitLayoutInfo(t,e[dt[t]]);if(r[dt[t]]=s.xy,r[ce[t]]=s.wh,a[dt[t]]>1){var l=o.getUnitLayoutInfo(t,e[dt[t]]+a[dt[t]]-1);r[ce[t]]=l.xy+l.wh-s.xy}}function Oq(r,t,e){var a=Fv(r,e[ce[t]]);return Ky(a,e[ce[t]])}function Ky(r,t){return Math.max(Math.min(r,rt(t,1/0)),0)}function zp(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var Ee={inBody:1,inCorner:2,outside:3},sa={x:null,y:null,point:[]};function QT(r,t,e,a,n){var i=e[dt[t]],o=e[dt[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,v=r.point[t]=a[t];if(!l&&!f){r[dt[t]]=Ee.outside;return}if(n===Xa.body){l?(r[dt[t]]=Ee.inBody,v=yr(s.xy+s.wh,ie(l.xy,v)),r.point[t]=v):r[dt[t]]=Ee.outside;return}else if(n===Xa.corner){f?(r[dt[t]]=Ee.inCorner,v=yr(f.xy+f.wh,ie(u.xy,v)),r.point[t]=v):r[dt[t]]=Ee.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:c,d=s?s.xy+s.wh:c;if(vd){if(!n){r[dt[t]]=Ee.outside;return}v=d}r.point[t]=v,r[dt[t]]=c<=v&&v<=d?Ee.inBody:h<=v&&v<=c?Ee.inCorner:Ee.outside}function tC(r,t,e,a){var n=1-e;if(r[dt[e]]!==Ee.outside)for(a[dt[e]].resetCellIterator(Bp);Bp.next();){var i=Bp.item;if(rC(r.point[e],i.rect,e)&&rC(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[dt[n]];return}}}function eC(r,t,e,a){if(r[dt[e]]!==Ee.outside){var n=r[dt[e]]===Ee.inCorner?a[dt[1-e]]:a[dt[e]];for(n.resetLayoutIterator(Jf,e);Jf.next();)if(Nq(r.point[e],Jf.item)){t[e]=Jf.item.id[dt[e]];return}}}function Nq(r,t){return t.xy<=r&&r<=t.xy+t.wh}function rC(r,t,e){return t[dt[e]]<=r&&r<=t[dt[e]]+t[ce[e]]}const Bq=Eq;function zq(r){r.registerComponentModel(Cq),r.registerComponentView(Rq),r.registerCoordinateSystem("matrix",Bq)}function Vq(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function aC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function Gq(r,t,e){var a=H({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(mt(n,a,!0),La(n,a,{ignoreSize:!0}),uL(e,n),Qf(e,n),Qf(e,n,"shape"),Qf(e,n,"style"),Qf(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var qk=["transition","enterFrom","leaveTo"],Fq=qk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qf(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?qk:Fq,n=0;n=0;f--){var v=n[f],c=ye(v.id,null),h=c!=null?o.get(c):null;if(h){var d=h.parent,y=Dr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=sh(h,v,m,null,{hv:v.hv,boundingMode:v.bounding},_);if(!Dr(h).isNew&&S){for(var x=v.transition,b={},w=0;w=0)?b[T]=C:h[T]=C}kt(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Mv(n,Dr(n).option,a,e._lastGraphicModel)}),this._elMap=et()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Qt);function jy(r){var t=Q(nC,r)?nC[r]:Yv(r),e=new t({});return Dr(e).type=r,e}function iC(r,t,e,a){var n=jy(e);return t.add(n),a.set(r,n),Dr(n).id=r,Dr(n).isNew=!0,n}function Mv(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Mv(i,t,e,a)}),wh(r,t,a),e.removeKey(Dr(r).id))}function oC(r,t,e,a){r.isGroup||A([["cursor",Nr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];Q(t,i)?r[i]=rt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(Mt(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=at(i)?i:null}}),Q(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Uq(r){return r=H({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(iL),function(t){delete r[t]}),r}function Yq(r,t,e){var a=ht(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ht(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function Zq(r){r.registerComponentModel(Wq),r.registerComponentView($q),r.registerPreprocessor(function(t){var e=t.graphic;U(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var sC=["x","y","radius","angle","single"],Xq=["cartesian2d","polar","singleAxis"];function qq(r){var t=r.get("coordinateSystem");return yt(Xq,t)>=0}function Pn(r){return r+"Axis"}function Kq(r,t){var e=et(),a=[],n=et();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(c,h){var d=e.get(c);d&&d[h]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,c){(e.get(v)||e.set(v,[]))[c]=!0})}return a}function Kk(r){var t=r.ecModel,e={infoList:[],infoMap:et()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(Pn(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Vp=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}(),jq=function(r){N(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,a,n){var i=lC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=lC(e);mt(this.option,e,!0),mt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=et(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(sC,function(n){var i=this.getReferringComponents(Pn(n),ZN);if(i.specified){a=!0;var o=new Vp;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var v=u[0];if(v){var c=new Vp;if(c.add(v.componentIndex),e.set(f,c),i=!1,f==="x"||f==="y"){var h=v.getReferringComponents("grid",ee).models[0];h&&A(u,function(d){v.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ee).models[0]&&c.add(d.componentIndex)})}}}i&&A(sC,function(u){if(i){var f=n.findComponents({mainType:Pn(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var v=new Vp;v.add(f[0].componentIndex),e.set(u,v),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(Pn(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(Pn(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else es(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});es(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;es(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Nt(a[0]+o,a,[0,100],!0):i!=null&&(o=Nt(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=LM(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function nK(r,t,e){var a=[1/0,-1/0];es(e,function(o){_F(a,o.getData(),t)});var n=r.getAxisModel(),i=UI(n.axis.scale,n,a).calculate();return[i.min,i.max]}const iK=aK;var oK={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Pn(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new iK(n,i,s,r),e.push(o.__dzAxisProxy))});var a=et();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const sK=oK;function lK(r){r.registerAction("dataZoom",function(t,e){var a=Kq(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var fC=!1;function A_(r){fC||(fC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,sK),lK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function uK(r){r.registerComponentModel(Qq),r.registerComponentView(rK),A_(r)}var Ir=function(){function r(){}return r}(),jk={};function rs(r,t){jk[r]=t}function Jk(r){return jk[r]}var fK=function(r){N(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;A(this.option.feature,function(a,n){var i=Jk(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),mt(a,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:z.color.border,borderRadius:0,borderWidth:0,padding:z.size.m,itemSize:15,itemGap:z.size.s,showTitle:!0,iconStyle:{borderColor:z.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:z.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(It);const vK=fK;function Qk(r,t){var e=Eu(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new bt({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:a,silent:!0,z2:-1});return n}var cK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,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")||{},f=this._features||(this._features={}),v=[];A(u,function(m,_){v.push(_)}),new tn(this._featureNames||[],v).add(c).update(c).remove(gt(c,null)).execute(),this._featureNames=v;function c(m,_){var S=v[m],x=v[_],b=u[S],w=new Rt(b,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(b.title=i.newTitle),S&&!x){if(hK(S))T={onclick:w.option.onclick,featureName:S};else{var C=Jk(S);if(!C)return;T=new C}f[S]=T}else if(T=f[x],!T)return;T.uid=zs("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof Ir;if(!S&&x){M&&T.dispose&&T.dispose(a,n);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(a,n);return}h(w,T,S),w.setIconStatus=function(D,I){var L=this.option,P=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,P[D]&&(I==="emphasis"?Ja:Qa)(P[D])},T instanceof Ir&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Ir&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;K(w)?(C={},C[S]=w):C=w,K(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var P=Ru(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var k=P.ensureState("emphasis");k.style=b.getItemStyle();var R=new Pt({style:{text:M[L],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Um({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},a)},ignore:!0});P.setTextContent(R),on({el:P,componentModel:e,itemName:L,formatterParamsExtra:{title:M[L]}}),P.__title=M[L],P.on("mouseover",function(){var O=b.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:b.get("textFill")||O.fill||O.stroke||z.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||E}),R.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),R.hide()}),(m.get(["iconStatus",L])==="emphasis"?Ja:Qa)(P),o.add(P),P.on("click",j(_.onclick,_,a,n,L)),D[L]=P})}var d=xe(e,n).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=qt(p,d,g);ji(e.get("orient"),o,e.get("itemGap"),y.width,y.height),sh(o,p,d,g),o.add(Qk(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!at(w)&&_){var T=w.style||(w.style={}),C=Uc(_,Pt.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(x.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(x.position=["100%",L],T.align="right"):M-C.width/2<0&&(x.position=[0,L],T.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Ir&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Ir&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Ir&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(Qt);function hK(r){return r.indexOf("my")===0}const dK=cK;var pK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||z.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Et.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:z.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Ir);const gK=pK;var vC="__ec_magicType_stack__",yK=[["line","bar"],["stack"]],mK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(cC[n]){var s={series:[]},l=function(v){var c=v.subType,h=v.id,d=cC[n](c,h,v,i);d&&(lt(d,v.option),s.series.push(d));var p=v.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=v.getReferringComponents(m,ee).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(yK,function(v){yt(v,n)>=0&&A(v,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=mt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Ir),cC={line:function(r,t,e,a){if(r==="bar")return mt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return mt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===vC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),mt({id:t,stack:n?"":vC},a.get(["option","stack"])||{},!0)}};Pa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const _K=mK;var Th=new Array(60).join("-"),Ls=" ";function SK(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function xK(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Y(e.series,function(h){return h.name})),l=[n.model.getCategories()];A(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ls)],f=0;f=0)return!0}var Jy=new RegExp("["+Ls+"]+","g");function CK(r){for(var t=r.split(/\n+/g),e=Dc(t.shift()).split(Jy),a=[],n=Y(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function kK(r){var t=M_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return tR(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function RK(r){eR(r).snapshots=null}function EK(r){return M_(r).length}function M_(r){var t=eR(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var OK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){RK(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Ir);Pa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const NK=OK;var BK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],zK=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=hC(e,t);A(VK,function(o,s){(!a||!a.include||yt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Gp[a.brushType](0,i,n);a.__rangeOffset={offset:yC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=Gp[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Gp[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?yC[a.brushType](i.values,o.offset,GK(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:ik(n),isTargetByCursor:sk(n,t,a.coordSysModel),getLinearBrushOtherExtent:ok(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&yt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=hC(e,t),i=0;ir[1]&&r.reverse(),r}function hC(r,t){return cs(r,t,{includeMainTypes:BK})}var VK={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=et(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(v,c){(yt(e,v.getAxis("x").model)>=0||yt(a,v.getAxis("y").model)>=0)&&f.push(v)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:pC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:pC.geo})})}},dC=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],pC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ki(r)),t}},Gp={lineX:gt(gC,0),lineY:gt(gC,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[Qy([n[0],i[0]]),Qy([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function gC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Qy(Y([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var yC={lineX:gt(mC,0),lineY:gt(mC,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 Y(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function mC(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function GK(r,t){var e=_C(r),a=_C(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function _C(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const D_=zK;var tm=A,FK=HN("toolbox-dataZoom_"),HK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new n_(n.getZr()),this._brushController.on("brush",j(this._onBrush,this)).mount()),UK(e,a,this,i,n),$K(e,a)},t.prototype.onclick=function(e,a,n){WK[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new D_(L_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,v){if(v.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",v,f[0]),s("y",v,f[1])):s({lineX:"x",lineY:"y"}[c],v,f)}}),PK(i,n),this._dispatchZoomAction(n);function s(u,f,v){var c=f.getAxis(u),h=c.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(v=$n(0,v.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:v[0],endValue:v[1]})}function l(u,f,v){var c;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var a=[];tm(e,function(n,i){a.push(nt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:z.color.backgroundTint}};return a},t}(Ir),WK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(kK(this.ecModel))}};function L_(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 $K(r,t){r.setIconStatus("back",EK(t)>1?"emphasis":"normal")}function UK(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new D_(L_(r),t,{include:["grid"]}),s=o.makePanelOpts(n,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)}NV("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=L_(a),o=cs(r,i);tm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),tm(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:FK+u+v};c[f]=v,n.push(c)}return n});const YK=HK;function ZK(r){r.registerComponentModel(vK),r.registerComponentView(dK),rs("saveAsImage",gK),rs("magicType",_K),rs("dataView",IK),rs("dataZoom",YK),rs("restore",NK),_t(uK)}var XK=function(r){N(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,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:z.color.tertiary,fontSize:14}},t}(It);const qK=XK;function rR(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function aR(r){if(Et.domSupported){for(var t=document.documentElement.style,e=0,a=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 f=u*Math.PI/180,v=o+n,c=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-v)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function rj(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Et.transformSupported?""+I_+n:",left"+n+",top"+n)),JK+":"+i}function SC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Et.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Et.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+I_+":"+o+";":[["top",0],["left",0],[nR,o]]}function aj(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=rt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function nj(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),v=r.getModel("textStyle"),c=WL(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(rj(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=tL(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(aj(v)),c!=null&&n.push("padding:"+Eu(c).join("px ")+"px"),n.join(";")+";"}function xC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&aO(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var ij=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,Et.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(K(i)?document.querySelector(i):gs(i)?i:at(i)&&i(t.getDom()));xC(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Cr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=jK(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=QK+nj(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+SC(i[0],i[1],!0)+("border-color:"+so(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(K(i)&&a.get("trigger")==="item"&&!rR(a)&&(s=ej(a,n,i)),K(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=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(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Et.node||!n.getDom())){var o=TC(i,n);this._ticket="";var s=i.dataByCoordSys,l=dj(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=uj;f.x=i.x,f.y=i.y,f.update(),ht(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var v=Gk(i,a),c=v.point[0],h=v.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(TC(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),v=Sl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=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(n){var s=ht(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Fi(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ht(f).dataIndex!=null?l=f:ht(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=j(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Sl([a.tooltipOption],i),l=this._renderMode,u=[],f=he("section",{blocks:[],noHeader:!0}),v=[],c=new Sd;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=Nk(x,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=he("section",{header:b,noHeader:!Rr(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=nc(S.axis,{value:x}),D.axisValueLabel=b,D.marker=c.makeTooltipMarker("item",so(D.color),l);var I=NS(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=Sl([C],i).get("valueFormatter");w.blocks.push(P?H({valueFormatter:P},L):L)}I.text&&v.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),v.reverse();var h=a.position,d=s.get("order"),p=HS(f,c,l,d,n.get("useUTC"),s.get("textStyle"));p&&v.unshift(p);var g=l==="richText"?` - -`:"
",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=ht(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,c=u.getData(v),h=this._renderMode,d=e.positionDefault,p=Sl([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,v),m=new Sd;y.marker=m.makeTooltipMarker("item",so(y.color),h);var _=NS(u.formatTooltip(f,!1,v)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?HS(x?H({valueFormatter:x},b):b,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=ht(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(K(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=nt(l),l.content=Fe(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=e.positionDefault,d=Sl(v,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Sd;this._showOrMove(d,function(){var m=nt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var v=this._tooltipContent;v.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(c)if(K(c)){var g=e.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=oh(y.axisValue,h,g)),h=eL(h,n,!0)}else if(at(c)){var _=j(function(S,x){S===this._ticket&&(v.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,v,n,u))},this);this._ticket=i,h=c(n,i,_)}else h=c;v.setContent(h,f,e,p,l),v.show(e,p),this._updatePosition(e,l,o,s,v,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var v=o.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),at(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:v.slice()})),U(a))n=q(a[0],u),i=q(a[1],f);else if(ut(a)){var p=a;p.width=v[0],p.height=v[1];var g=qt(p,{width:u,height:f});n=g.x,i=g.y,c=null,h=null}else if(K(a)&&l){var y=hj(a,d,v,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=vj(n,i,o,u,f,c?null:20,h?null:20);n=y[0],i=y[1]}if(c&&(n-=CC(c)?v[0]/2:c==="right"?v[0]:0),h&&(i-=CC(h)?v[1]/2:h==="bottom"?v[1]:0),rR(e)){var y=cj(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&A(u,function(c,h){var d=v[h]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Et.node||!a.getDom()||(cu(this,"_updatePosition"),this._tooltipContent.dispose(),Yy("itemTooltip",a))},t.type="tooltip",t}(Qt);function Sl(r,t,e){var a=t.ecModel,n;e?(n=new Rt(e,a,a),n=new Rt(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Rt&&(o=o.get("tooltip",!0)),K(o)&&(o={formatter:o}),o&&(n=new Rt(o,n,a)))}return n}function TC(r,t){return r.dispatchAction||j(t.dispatchAction,t)}function vj(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function cj(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function hj(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function CC(r){return r==="center"||r==="middle"}function dj(r,t,e){var a=Lm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Rs(t,n,a.get(n),{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 f=ht(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const pj=fj;function gj(r){_t(Uu),r.registerComponentModel(qK),r.registerComponentView(pj),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},oe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},oe)}var yj=["rect","polygon","keep","clear"];function mj(r,t){var e=Ht(r?r.brush:[]);if(e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;U(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),_j(s),t&&!s.length&&s.push.apply(s,yj)}}function _j(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var AC=A;function MC(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function em(r,t,e){var a={};return AC(t,function(i){var o=a[i]=n();AC(r[i],function(s,l){if(Ne.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ne(u),l==="opacity"&&(u=nt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ne(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function oR(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&MC(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&MC(t[n])?r[n]=nt(t[n]):delete r[n]})}function Sj(r,t,e,a,n,i){var o={};A(r,function(v){var c=Ne.prepareVisualTypes(t[v]);o[v]=c});var s;function l(v){return h0(e,s,v)}function u(v,c){QL(e,s,v,c)}i==null?e.each(f):e.each([i],f);function f(v,c){s=i==null?v:c;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=a.call(n,v),p=t[d],g=o[d],y=0,m=g.length;yt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&kC(t)}};function kC(r){return new vt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Dj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new n_(a.getZr())).on("brush",j(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){sR(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:nt(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:nt(n),$from:a})},t.type="brush",t}(Qt);const Lj=Dj;var Ij=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&oR(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(a){return RC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=RC(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:z.color.backgroundTint,borderColor:z.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:z.color.disabled},t}(It);function RC(r,t){return mt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Rt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Pj=Ij;var kj=["rect","polygon","lineX","lineY","keep","clear"],Rj=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:kj.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Ir);const Ej=Rj;function Oj(r){r.registerComponentView(Lj),r.registerComponentModel(Pj),r.registerPreprocessor(mj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,wj),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},oe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},oe),rs("brush",Ej)}var Nj=function(r){N(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:"center",top:z.size.m,backgroundColor:z.color.transparent,borderColor:z.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:z.color.primary},subtextStyle:{fontSize:12,color:z.color.quaternary}},t}(It),Bj=function(r){N(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,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=rt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Pt({style:$t(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=e.get("subtext"),h=new Pt({style:$t(s,{text:c,fill:s.getTextColor(),y:v.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){qv(d,"_"+e.get("target"))}),p&&h.on("click",function(){qv(p,"_"+e.get("subtarget"))}),ht(f).eventData=ht(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=xe(e,n),S=qt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(Qt);function zj(r){r.registerComponentModel(Nj),r.registerComponentView(Bj)}var Vj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var v=ye(ks(u),""),c;ut(u)?(c=nt(u),c.value=f):c=f,o.push(c),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new je([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:z.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:z.color.secondary},data:[]},t}(It);const EC=Vj;var lR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=jn(EC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:z.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:z.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:z.color.tertiary},itemStyle:{color:z.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:z.color.accent50,borderColor:z.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:z.color.accent50,borderColor:z.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:z.color.accent60},itemStyle:{color:z.color.accent60,borderColor:z.color.accent60},controlStyle:{color:z.color.accent70,borderColor:z.color.accent70}},progress:{lineStyle:{color:z.color.accent30},itemStyle:{color:z.color.accent40}},data:[]}),t}(EC);pe(lR,uh.prototype);const Gj=lR;var Fj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Qt);const Hj=Fj;var Wj=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ea);const $j=Wj;var Hp=Math.PI,OC=wt(),Uj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return he("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=Zj(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Hp/2},v=i==="vertical"?o.height:o.width,c=e.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Hp/180;var m,_,S,x=c.get("position",!0),b=h&&c.get("showPlayBtn",!0),w=h&&c.get("showPrevBtn",!0),T=h&&c.get("showNextBtn",!0),C=0,M=v;x==="left"||x==="bottom"?(b&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(b&&(m=[M-d,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-d,0],M-=g));var D=[C,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Ie(),l=o.x,u=o.y+o.height;Aa(s,s,[-l,-u]),Xn(s,s,-Hp/2),Aa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=e.labelPosOpt;if(p==null||K(p)){var g=p==="+"?0:1;_(h,v,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(h,v,f,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=Yj(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new $j("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new it;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new me({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new me({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:lt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),v=s.getItemModel(u.value),c=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),d=v.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:j(o._changeTimeline,o,u.value)},g=NC(v,c,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),qi(g);var y=ht(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var v=f.tickValue,c=l.getItemModel(v),h=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Pt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:j(o._changeTimeline,o,v),silent:!1,style:$t(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=$t(d),y.ensureState("progress").style=$t(p),a.add(y),qi(y),OC(y).dataIndex=v,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);c(e.nextBtnPosition,"next",j(this._changeTimeline,this,v?"-":"+")),c(e.prevBtnPosition,"prev",j(this._changeTimeline,this,v?"+":"-")),c(e.playPosition,f?"stop":"play",j(this._handlePlayClick,this,!f),!0);function c(h,d,p,g){if(h){var y=jr(rt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Xj(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),qi(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=j(u._handlePointerDrag,u),v.ondragend=j(u._handlePointerDragend,u),BC(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){BC(v,u._progressLine,s,n,i)}};this._currentPointer=NC(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Er(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var av={min:gt(rv,"min"),max:gt(rv,"max"),average:gt(rv,"average"),median:gt(rv,"median")};function Du(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!rJ(t)&&!U(t.coord)&&U(n)){var i=fR(t,e,a,r);if(t=nt(t),t.type&&av[t.type]&&i.baseAxis&&i.valueAxis){var o=yt(n,i.baseAxis.dim),s=yt(n,i.valueAxis.dim),l=av[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&av[t.type]){var f=a.getOtherAxis(u);f&&(t.value=Lc(e,e.mapDimension(f.dim),t.type))}}else for(var v=t.coord,c=0;c<2;c++)av[v[c]]&&(v[c]=Lc(e,e.mapDimension(n[c]),v[c]));return t}}function fR(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(aJ(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function aJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Lu(r,t){return r&&r.containData&&t.coord&&!am(t)?r.containData(t.coord):!0}function nJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!am(t)&&!am(e)?r.containZone(t.coord,e.coord):!0}function vR(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Bn(o,t[i])}:function(e,a,n,i){return Bn(e.value,t[i])}}function Lc(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Wp=wt(),iJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=et()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Wp(s).keep=!1}),a.eachSeries(function(s){var l=an.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Wp(s).keep&&i.group.remove(s.group)}),oJ(a,o,this.type)},t.prototype.markKeep=function(e){Wp(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=an.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?sD(l):Bm(l))})}})},t.type="marker",t}(Qt);function oJ(r,t,e){r.eachSeries(function(a){var n=an.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=oo(n),s=o.z,l=o.zlevel;nh(i.group,s,l)}})}const k_=iJ;function VC(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,v=u?o?o.height:0:i,c=u&&o?o.x:0,h=u&&o?o.y:0,d,p=q(l.get("x"),f)+c,g=q(l.get("y"),v)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);d=a.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var sJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markPoint");o&&(VC(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fu),v=lJ(o,e,a);a.setData(v),VC(a.getData(),e,i),v.each(function(c){var h=v.getItemModel(c),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(at(d)||at(p)||at(g)||at(y)){var _=a.getRawValue(c),S=a.getDataParams(c);at(d)&&(d=d(_,S)),at(p)&&(p=p(_,S)),at(g)&&(g=g(_,S)),at(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=Bu(l,"color");x.fill||(x.fill=w),v.setItemVisual(c,{z2:rt(b,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){ht(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(k_);function lJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new je(a,e),i=Y(e.get("data"),gt(Du,t));r&&(i=Bt(i,gt(Lu,r)));var o=vR(!!r,a);return n.initData(i,null,o),n}const uJ=sJ;function fJ(r){r.registerComponentModel(eJ),r.registerComponentView(uJ),r.registerPreprocessor(function(t){P_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var vJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(an);const cJ=vJ;var nv=wt(),hJ=function(r,t,e,a){var n=r.getData(),i;if(U(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=Oe(a.yAxis,a.xAxis);else{var u=fR(a,n,t,r);s=u.valueAxis;var f=LI(n,u.valueDataDim);l=Lc(n,f,o)}var v=s.dim==="x"?0:1,c=1-v,h=nt(a),d={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,d.coord[c]=1/0;var p=e.get("precision");p>=0&&Lt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[v]=d.coord[v]=l,i=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Du(r,i[0]),Du(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,mt(g[2],g[0]),mt(g[2],g[1]),g};function Ic(r){return!isNaN(r)&&!isFinite(r)}function GC(r,t,e,a){var n=1-r,i=a.dimensions[r];return Ic(t[n])&&Ic(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function dJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(GC(1,e,a,r)||GC(0,e,a,r)))return!0}return Lu(r,t[0])&&Lu(r,t[1])}function $p(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=q(o.get("x"),n.getWidth()),u=q(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,v=r.get(f[0],t),c=r.get(f[1],t);s=i.dataToPoint([v,c])}if(Wn(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Ic(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Ic(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var pJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=nv(o).from,u=nv(o).to;l.each(function(f){$p(l,f,!0,i,n),$p(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new j0);this.group.add(f.group);var v=gJ(o,e,a),c=v.from,h=v.to,d=v.line;nv(a).from=c,nv(a).to=h,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:rt(w,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:b})}),f.updateData(d),v.line.eachItemGraphicEl(function(S){ht(S).dataModel=a,S.traverse(function(x){ht(x).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);$p(S,x,b,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Bu(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:rt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:rt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:rt(w.get("symbolSize"),g[b?0:1]),symbol:rt(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(k_);function gJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new je(a,e),i=new je(a,e),o=new je([],e),s=Y(e.get("data"),gt(hJ,t,r,e));r&&(s=Bt(s,gt(dJ,r)));var l=vR(!!r,a);return n.initData(Y(s,function(u){return u[0]}),null,l),i.initData(Y(s,function(u){return u[1]}),null,l),o.initData(Y(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const yJ=pJ;function mJ(r){r.registerComponentModel(cJ),r.registerComponentView(yJ),r.registerPreprocessor(function(t){P_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var _J=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(an);const SJ=_J;var iv=wt(),xJ=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Du(r,n),s=Du(r,i),l=o.coord,u=s.coord;l[0]=Oe(l[0],-1/0),l[1]=Oe(l[1],-1/0),u[0]=Oe(u[0],1/0),u[1]=Oe(u[1],1/0);var f=ym([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Pc(r){return!isNaN(r)&&!isFinite(r)}function FC(r,t,e,a){var n=1-r;return Pc(t[n])&&Pc(e[n])}function bJ(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Wn(r,"cartesian2d")?e&&a&&(FC(1,e,a)||FC(0,e,a))?!0:nJ(r,n,i):Lu(r,n)||Lu(r,i)}function HC(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=q(o.get(e[0]),n.getWidth()),u=q(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],t),v=r.getValues(["x1","y1"],t),c=i.clampData(f),h=i.clampData(v),d=[];e[0]==="x0"?d[0]=c[0]>h[0]?v[0]:f[0]:d[0]=c[0]>h[0]?f[0]:v[0],e[1]==="y0"?d[1]=c[1]>h[1]?v[1]:f[1]:d[1]=c[1]>h[1]?f[1]:v[1],s=a.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Wn(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Pc(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Pc(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var WC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],wJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Y(WC,function(v){return HC(s,l,v,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new it});this.group.add(f.group),this.markKeep(f);var v=TJ(o,e,a);a.setData(v),v.each(function(c){var h=Y(WC,function(M){return HC(v,c,M,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(v.get("x0",c)),d.parse(v.get("x1",c))],_=[p.parse(v.get("y0",c)),p.parse(v.get("y1",c))];Er(m),Er(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),x=!S;v.setItemLayout(c,{points:h,allClipped:x});var b=v.getItemModel(c),w=b.getModel("itemStyle").getItemStyle(),T=b.get("z2"),C=Bu(l,"color");w.fill||(w.fill=C,K(w.fill)&&(w.fill=Ov(w.fill,.4))),w.stroke||(w.stroke=C),v.setItemVisual(c,"style",w),v.setItemVisual(c,"z2",rt(T,0))}),v.diff(iv(f).data).add(function(c){var h=v.getItemLayout(c),d=v.getItemVisual(c,"z2");if(!h.allClipped){var p=new tr({z2:rt(d,0),shape:{points:h.points}});v.setItemGraphicEl(c,p),f.group.add(p)}}).update(function(c,h){var d=iv(f).data.getItemGraphicEl(h),p=v.getItemLayout(c),g=v.getItemVisual(c,"z2");p.allClipped?d&&f.group.remove(d):(d?kt(d,{z2:rt(g,0),shape:{points:p.points}},a,c):d=new tr({shape:{points:p.points}}),v.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var h=iv(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var d=v.getItemModel(h),p=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),Ce(c,Se(d),{labelFetcher:a,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:K(p.fill)?Ov(p.fill,1):z.color.neutral99}),_e(c,d),Xt(c,null,null,d.get(["emphasis","disabled"])),ht(c).dataModel=a}),iv(f).data=v,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(k_);function TJ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Y(r&&r.dimensions,function(u){var f=t.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return H(H({},v),{name:u,ordinalMeta:null})});n=Y(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new je(n,e)}else n=[{name:"value",type:"float"}],a=new je(n,e);var s=Y(e.get("data"),gt(xJ,t,r,e));r&&(s=Bt(s,gt(bJ,r)));var l=r?function(u,f,v,c){var h=u.coord[Math.floor(c/2)][c%2];return Bn(h,n[c])}:function(u,f,v,c){return Bn(u.value,n[c])};return a.initData(s,null,l),a.hasItemOption=!0,a}const CJ=wJ;function AJ(r){r.registerComponentModel(SJ),r.registerComponentView(CJ),r.registerPreprocessor(function(t){P_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var MJ=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},DJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),U(a)&&A(a,function(i,o){K(i)&&(i={type:i}),a[o]=mt(i,MJ(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=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",bottom:z.size.m,align:"auto",backgroundColor:z.color.transparent,borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:z.color.disabled,inactiveBorderColor:z.color.disabled,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:z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:z.color.tertiary,borderWidth:1,borderColor:z.color.border},emphasis:{selectorLabel:{show:!0,color:z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(It);const nm=DJ;var qo=gt,im=A,ov=it,LJ=function(r){N(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 ov),this.group.add(this._selectorGroup=new ov),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){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,a,n,l,s,u);var f=xe(e,n).refContainer,v=e.getBoxLayoutParams(),c=e.get("padding"),h=qt(v,f,c),d=this.layoutInner(e,o,h,i,l,u),p=qt(lt({width:d.width,height:d.height},v),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Qk(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=et(),v=a.get("selectedMode"),c=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),im(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` -`)){var m=new ov;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,e,x,w,b,v,i);T.on("click",qo($C,y,null,i,h)).on("mouseover",qo(om,_.name,null,i,h)).on("mouseout",qo(sm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=ht(C);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),c&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(C){var M=this;if(!f.get(y)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(y))return;var I=D.indexOfName(y),L=D.getItemVisual(I,"style"),P=D.getItemVisual(I,"legendIcon"),k=ir(L.fill);k&&k[3]===0&&(k[3]=.2,L=H(H({},L),{fill:ba(k,"rgba")}));var R=this._createItem(C,y,p,d,a,e,{},L,P,v,i);R.on("click",qo($C,null,y,i,h)).on("mouseover",qo(om,null,y,i,h)).on("mouseout",qo(sm,null,y,i,h)),n.ssr&&R.eachChild(function(O){var E=ht(O);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),c&&R.eachChild(function(O){M.packEventData(O,a,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ht(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();im(e,function(u){var f=u.type,v=new Pt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v);var c=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Ce(v,{normal:c,emphasis:h},{defaultText:u.title}),qi(v)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,v,c){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=IJ(f,i,l,u,h,g,c),x=new ov,b=i.getModel("textStyle");if(at(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(PJ({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;K(M)&&M?D=M.replace("{name}",a??""):at(M)&&(D=M(a));var I=g?b.getTextColor():i.get("inactiveColor");x.add(new Pt({style:$t(b,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new bt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&on({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(k){k.silent=!0}),L.silent=!v,this.getContentGroup().add(x),qi(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ji(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ji("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:v[p]+=c[g]+d,h[1-p]+=f[y]/2-c[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-p]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Qt);function IJ(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),im(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:xs(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function PJ(r){var t=r.icon||"roundRect",e=de(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=z.color.neutral00,e.style.lineWidth=2),e}function $C(r,t,e,a){sm(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),om(r,t,e,a)}function cR(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;an[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=rt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var x={x:0,y:0};if(x[o]=p?n[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),v.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],v.setClipPath(new bt({shape:b})),v.__rectSize=b[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&kt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=a[v]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",K(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Up[o],l=Yp[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i=w&&b.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(hR);const BJ=NJ;function zJ(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function VJ(r){_t(dR),r.registerComponentModel(OJ),r.registerComponentView(BJ),zJ(r)}function GJ(r){_t(dR),_t(VJ)}var FJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=jn(Mu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Mu);const HJ=FJ;var R_=wt();function WJ(r,t,e){R_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function $J(r,t){for(var e=R_(r).coordSysRecordMap,a=e.keys(),n=0;ni[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function qJ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=R_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=et());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Kk(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,UJ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=et());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){pR(n,i);return}var f=XJ(l,i,e);o.enable(f.controlType,f.opt),Fs(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var KJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),WJ(n,e,{pan:j(Zp.pan,this),zoom:j(Zp.zoom,this),scrollMove:j(Zp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$J(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(C_),Zp={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Xp[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if($n(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:XC(function(r,t,e,a,n,i){var o=Xp[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:XC(function(r,t,e,a,n,i){var o=Xp[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function XC(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if($n(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Xp={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const jJ=KJ;function gR(r){A_(r),r.registerComponentModel(HJ),r.registerComponentView(jJ),qJ(r)}var JJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=jn(Mu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:z.color.accent10,borderRadius:0,backgroundColor:z.color.transparent,dataBackground:{lineStyle:{color:z.color.accent30,width:.5},areaStyle:{color:z.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:z.color.accent40,width:.5},areaStyle:{color:z.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:z.color.neutral00,borderColor:z.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:z.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:z.color.tertiary},brushSelect:!0,brushStyle:{color:z.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:z.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Mu);const QJ=JJ;var wl=bt,tQ=1,qp=30,eQ=7,Tl="horizontal",qC="vertical",rQ=5,aQ=["line","bar","candlestick","scatter"],nQ={easing:"cubicOut",duration:100,delay:0},iQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=j(this._onBrush,this),this._onBrushEnd=j(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Fs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){cu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?eQ:0,o=xe(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Tl?{right:o.width-s.x-s.width,top:o.height-qp-l-i,width:s.width,height:qp}:{right:l,top:s.y,width:qp,height:s.height},f=go(e.option);A(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=qt(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===qC&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Tl&&!o?{scaleY:l?1:-1,scaleX:1}:n===Tl&&o?{scaleY:l?1:-1,scaleX:-1}:n===qC&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new wl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new wl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:j(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(e.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(v[1]-v[0]),S=e.thisAxis.type==="time",x=-m,b=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+I-v[0])*_:x+m;var k=L==null||isNaN(L)||L==="",R=k?0:Nt(L,c,d,!0);k&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!k&&w&&(g.push([x,0]),y.push([x,0])),k||(g.push([x,R]),y.push([x,R])),w=k}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function C(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),P=new it,k=new tr({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Ue({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(k),P.add(R),P}for(var M=0;M<3;M++){var D=C(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&yt(aQ,u.get("type"))<0)){var f=i.getComponent(Pn(o),s).axis,v=oQ(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),c=a.filler=new wl({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new wl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:tQ,fill:z.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!Jv[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=de(S,-1,0,2,2,null,!0);x.attr({cursor:sQ(this._orient),draggable:!0,drift:j(this._onDragMove,this,_),ondragend:j(this._onDragEnd,this),onmouseover:j(this._showDataInfo,this,!0),onmouseout:j(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=q(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),qi(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new Pt({silent:!0,invisible:!D,style:$t(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=c;if(v){var d=q(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=de(l.get("moveHandleIcon"),-g/2,-g/2,g,g,z.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:j(this._onDragMove,this,"all"),ondragstart:j(this._showDataInfo,this,!0),ondragend:j(this._onDragEnd,this),onmouseover:j(this._showDataInfo,this,!0),onmouseout:j(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Nt(e[0],[0,100],a,!0),Nt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];$n(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Nt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Nt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Er([Nt(i[0],o,l,!0),Nt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Er(n.slice()),o=this._size;A([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new st(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();$n(0,l,o,0,u.minSpan!=null?Nt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Nt(u.maxSpan,s,o,!0):null),this._range=Er([Nt(l[0],o,s,!0),Nt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new wl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?nQ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=Kk(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(C_);function oQ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function sQ(r){return r==="vertical"?"ns-resize":"ew-resize"}const lQ=iQ;function yR(r){r.registerComponentModel(QJ),r.registerComponentView(lQ),A_(r)}function uQ(r){_t(gR),_t(yR)}var fQ={get:function(r,t,e){var a=nt((vQ[r]||{})[t]);return e&&U(a)?a[a.length-1]:a}},vQ={color:{active:["#006edd","#e0ffff"],inactive:[z.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const mR=fQ;var KC=Ne.mapVisual,cQ=Ne.eachVisual,hQ=U,jC=A,dQ=Er,pQ=Nt,gQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&oR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=j(e,this),this.controllerVisuals=em(this.option.controller,a,e),this.targetVisuals=em(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=Rs(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Y(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(e)&&(e=e.slice(),u=!0);var f=a?e:u?[v(e[0]),v(e[1])]:v(e);if(K(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(at(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=dQ([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});mt(i,n),mt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){hQ(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:e.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},jC(d,function(g,y){if(Ne.isValidType(y)){var m=mR.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";jC(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&nt(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&nt(h)||(s?m[0]:[m[0],m[0]])),_.symbol=KC(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;cQ(S,function(b){b>x&&(x=b)}),_.symbolSize=KC(S,function(b){return pQ(b,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:z.color.transparent,borderColor:z.color.borderTint,contentColor:z.color.theme[0],inactiveColor:z.color.disabled,borderWidth:0,padding:z.size.m,textGap:10,precision:0,textStyle:{color:z.color.secondary}},t}(It);const kc=gQ;var JC=[20,140],yQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=JC[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=JC[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Er((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=QC(this,"outOfRange",this.getExtent()),n=QC(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}for(var s=0,l=0,u=n.length,f=a.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new it(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);SQ([0,1],function(v){var c=o[v];c.setStyle("fill",a.handlesColor[v]),c.y=e[v];var h=fa(e[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=Zr(n.handleLabelPoints[v],Ki(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),p=fa(e,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=Zr(f.indicatorLabelPoint,Ki(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,C),_.animateTo(T,C)}else v.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,h=[];(a||aA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var d=UN(c,h);this._dispatchHighDown("downplay",Dv(d[0],n)),this._dispatchHighDown("highlight",Dv(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Fi(e.target,function(l){var u=ht(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function LQ(r,t,e,a){for(var n=t.targetVisuals[a],i=Ne.prepareVisualTypes(n),o={color:Bu(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(AQ,MQ),A(DQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(IQ))}function bR(r){r.registerComponentModel(mQ),r.registerComponentView(CQ),xR(r)}var PQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],kQ[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=nt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=nt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Ne.listVisualTypes(),i=this.isCategory();A(e.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&A(this.stateList,function(f){(e[f]||(e[f]={}))[l]=mR.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=nt(e)},t.prototype.getValueState=function(e){var a=Ne.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ne.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=e(c,v);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=jn(kc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(kc),kQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function sA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const RQ=PQ;var EQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Oe(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),A(l.viewPieceList,function(c){var h=c.piece,d=new it;d.onclick=j(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Pt({style:$t(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:rt(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),ji(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Dv(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return SR(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new Pt({style:$t(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=Y(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=de(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=nt(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(_R);const OQ=EQ;function wR(r){r.registerComponentModel(RQ),r.registerComponentView(OQ),xR(r)}function NQ(r){_t(bR),_t(wR)}var BQ=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:BD(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),zQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new BQ(this);if(this._target=null,this.ecModel.eachSeries(function(n){Pw(n,null)}),this.shouldShow()){var a=this.getTarget();Pw(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:z.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:z.color.neutral30,borderColor:z.color.neutral40,opacity:.3},z:10},t}(It),VQ=function(r){N(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,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new wo),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||z.color.neutral00);var l=xe(e,n).refContainer,u=qt(oL(e,!0),l),f=s.lineWidth||0,v=this._contentRect=io(u.clone(),f/2,!0,!0),c=new it;i.add(c),c.setClipPath(new bt({shape:v.plain()}));var h=this._targetGroup=new it;c.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new bt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.add(this._windowRect=new bt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),uA(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),uA(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=qt({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=Kr([],e.targetTrans),n=xa([],this._coordSys.transform,a);this._transThisToTarget=Kr([],n);var i=e.viewportRect;i?i=i.clone():i=new vt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(lt({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new bo(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",j(this._onPan,this)).on("zoom",j(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=se([],[e.oldX,e.oldY],a),i=se([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(lA(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=se([],[e.originX,e.originY],a);this._api.dispatchAction(lA(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(Qt);function lA(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,H(a,t),a}function uA(r,t){var e=oo(r);nh(t.group,e.z,e.zlevel)}function GQ(r){r.registerComponentModel(zQ),r.registerComponentView(VQ)}var FQ={label:{enabled:!0},decal:{show:!1}},fA=wt(),HQ={};function WQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=nt(FQ);mt(a.label,r.getLocaleModel().get("aria"),!1),mt(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var v=et();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=v.get(c.type);h||(h={},v.set(c.type,h)),fA(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(at(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var m=Kg(c.ecModel,c.name,HQ,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=c.getRawData(),p={},g=fA(c).scope;h.each(function(x){var b=h.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=Kg(c.ecModel,w,g,y),C=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(C,T))})}function S(x,b){var w=x?H(H({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),v=e.getModel("label");if(v.option=lt(v.option,f),!!v.get("enabled")){if(u.setAttribute("role","img"),v.get("description")){u.setAttribute("aria-label",v.get("description"));return}var c=r.getSeriesCount(),h=v.get(["data","maxCount"])||10,d=v.get(["series","maxCount"])||10,p=Math.min(c,d),g;if(!(c<1)){var y=s();if(y){var m=v.get(["general","withTitle"]);g=o(m,{title:y})}else g=v.get(["general","withoutTitle"]);var _=[],S=c>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(T,C){if(C1?v.get(["series","multiple",I]):v.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var P=v.get(["data","partialData"]);M+=o(P,{displayCnt:h})}else M+=v.get(["data","allData"]);for(var k=v.get(["data","separator","middle"]),R=v.get(["data","separator","end"]),O=v.get(["data","excludeDimensionId"]),E=[],B=0;B":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},YQ=function(){function r(t){var e=this._condVal=K(t)?new RegExp(t):ZE(t)?t:null;if(e==null){var a="";Ot(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return K(e)?this._condVal.test(t):Lt(e)?this._condVal.test(t+""):!1},r}(),ZQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),XQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[L,P]}function f(L,P,k,R){us(L,k)&&us(P,R)||n.push(L,P,k,R,k,R)}function v(L,P,k,R,O,E){var B=Math.abs(P-L),G=Math.tan(B/4)*4/3,F=PT:D2&&a.push(n),a}function um(r,t,e,a,n,i,o,s,l,u){if(us(r,e)&&us(t,a)&&us(n,o)&&us(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-t,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=e-r,g=a-t,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],M=[];Vn(r,e,n,o,.5,C),Vn(t,a,i,s,.5,M),um(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),um(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function ltt(r,t){var e=lm(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),v=CR([l,u],f?0:1,t),c=(f?s:u)/v.length,h=0;hn,o=CR([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c1?null:new st(p*l+r,p*u+t)}function vtt(r,t,e){var a=new st;st.sub(a,e,t),a.normalize();var n=new st;st.sub(n,r,t);var i=n.dot(a);return i}function jo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function ctt(r,t,e){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),ctt(t,u,f)}function Rc(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Rc(r,i[0],n,a),Rc(r,i[1],e-n,a)}return a}function htt(r,t){for(var e=[],a=0;a0)for(var x=a/e,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),C=0,_=0;_0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(t&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Nc(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Y(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(v,e),a=Math.max(f,a),n=Math.max(v,n),[f,v]}),o=Y(i,function(s,l){return{cp:s,z:btt(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function DR(r){return gtt(r.path,r.count)}function fm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function wtt(r,t,e){var a=[];function n(x){for(var b=0;b=0;n--)if(!e[n].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[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Ctt={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;_A(r)&&(u=r,f=t),_A(t)&&(u=t,f=r);function v(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,C=m?w:b[0];if(Ec(T))v({many:[T],one:C},!0,_,S,!0);else{var M=s?lt({delay:s(_,S)},l):l;O_(T,C,M),i(T,C,T,C,M)}}else for(var D=lt({dividePath:Ctt[e],individualDelay:s&&function(O,E,B,G){return s(O+_,S)}},l),I=m?wtt(b,w,D):Ttt(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,k=L.length,R=0;Rt.length,h=u?SA(f,u):SA(c?t:r,[c?r:t]),d=0,p=0;pLR))for(var i=a.getIndices(),o=0;o0&&b.group.traverse(function(T){T instanceof Ct&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function CA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function AA(r){return U(r)?r.sort().join(","):r}function bn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ktt(r,t){var e=et(),a=et(),n=et();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=CA(i),f=AA(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&A(u,function(v){n.set(v,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=CA(i),u=AA(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:bn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:bn(s),data:s}]});else if(U(l)){var v=[];A(l,function(d){var p=a.get(d);p.data&&v.push({dataGroupId:p.dataGroupId,divide:bn(p.data),data:p.data})}),v.length&&e.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:bn(s)}]})}else{var c=n.get(l);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:bn(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:bn(s)})}}}}),e}function MA(r,t){for(var e=0;e=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:bn(t.oldData[s]),groupIdDim:o.dimension})}),A(Ht(r.to),function(o){var s=MA(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:bn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&IR(n,i,a)}function Ett(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Ht(a.seriesTransition),function(n){A(Ht(n.to),function(i){for(var o=a.updatedSeries,s=0;so.vmin?e+=o.vmin-a+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-a,a=o.vmax,n=!1;break}e+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(e+=t-a),e},r.prototype.unelapse=function(t){for(var e=DA,a=LA,n=!0,i=0,o=0;ol?i=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i=a+t-e,a=s.vmax,n=!1;break}e=u,a=s.vmax}return n&&(i=a+t-e),i},r}();function Ntt(){return new Ott}var DA=0,LA=0;function Btt(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=N_(s,t);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&v))if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=c,a[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?Math.max(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function ztt(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=N_(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=a(u),v=n*3/4;f>s.vmin-v&&ft[0]&&e=0&&o<1-1e-5}A(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:nt(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(K(o.gap)){var u=Rr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=t(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&A(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function B_(r,t){return cm(t)===cm(r)}function cm(r){return r.start+"_\0_"+r.end}function Gtt(r,t,e){var a=[];A(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&a.push([o])}),A(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=fo(a,function(u){return B_(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function Ftt(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=fo(e,function(v){return B_(v.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(t,o.vmin),s.vmin),u=a(Math.pow(t,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?fe(Math.pow(t,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function Htt(r,t,e){var a={noNegative:!0},n=vm(r,e,a),i=vm(r,e,a),o=Math.log(t);return i.breaks=Y(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var Wtt={vmin:"start",vmax:"end"};function $tt(r,t){return t&&(r=r||{},r.break={type:Wtt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function Utt(){cV({createScaleBreakContext:Ntt,pruneTicksByBreak:ztt,addBreaksToTicks:Vtt,parseAxisBreakOption:vm,identifyAxisBreak:B_,serializeAxisBreakIdentifier:cm,retrieveAxisBreakPairs:Gtt,getTicksLogTransformBreak:Ftt,logarithmicParseBreaksFromOption:Htt,makeAxisLabelFormatterParamBreak:$tt})}var IA=wt();function Ytt(r,t){var e=fo(r,function(a){return ve().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function Ztt(r){A(r,function(t){return t.shouldRemove=!0})}function Xtt(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function qtt(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!ve())return;var o=ve().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var v=s.get("expandOnClick"),c=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new it({ignoreModelZ:!0}),S=i.isHorizontal(),x=IA(t).visualList||(IA(t).visualList=[]);Ztt(x);for(var b=function(C){var M=o[C][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]=E;Dt&&(X=E);var zt=[],ct=[];zt[R]=D,ct[R]=I,!ft&&!Dt&&(zt[R]+=W?-l:l,ct[R]-=W?l:-l),zt[O]=X,ct[O]=X,G.push(zt),F.push(ct);var V=void 0;if(Jm[1]&&m.reverse(),{coordPair:m,brkId:ve().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new st,y=new st;st.scale(g,a,-s),st.scale(y,a,1-s),py(e[0],g),py(e[1],y)}function Jtt(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=fo(r.get("breaks",!0),function(s){return ve().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===gh?!0:i===Z2?!1:i===X2?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function Qtt(){sW({adjustBreakLabelPair:jtt,buildAxisBreakLine:Ktt,rectCoordBuildBreakAxis:qtt,updateModelAxisBreak:Jtt})}function tet(r){pW(r),Utt(),Qtt()}function eet(){NW(ret)}function ret(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=aet(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function aet(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof yu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Ws(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f(VA("data-v-342d4b31"),r=r(),GA(),r),iet={class:"tag-hierarchy-graph"},oet={key:0,class:"loading-container"},set=net(()=>Tt("div",{class:"loading-text"},"Generating hierarchical graph...",-1)),uet={key:1,class:"error-container"},fet={key:2,class:"graph-container"},vet={class:"control-panel"},cet=Zn({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:t}){const e=r,a=te(!1),n=te(""),i=te(null),o=te();let s=null,l=null;const u=["#4A90E2","#7B68EE","#50C878","#FF6B6B"],f=h=>u[h%u.length],v=async()=>{var h,d;if(!e.folders||e.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const p={folder_paths:e.folders,top_n_tags:50,top_n_clusters:20,lang:e.lang||"en"};i.value=await FR(p)}catch(p){n.value=((d=(h=p.response)==null?void 0:h.data)==null?void 0:d.detail)||p.message||"Failed to load graph",Oi.error(n.value)}finally{a.value=!1}},c=()=>{if(!i.value||!o.value)return;s&&s.dispose(),s=h3(o.value);const d=[...i.value.layers].reverse(),p=[],g=1200/(d.length+1),y=150;d.forEach((x,b)=>{const w=g*(b+1),C=800/(x.nodes.length+1);x.nodes.forEach((M,D)=>{const I=C*(D+1),P=M.id.split("").reduce((G,F)=>G+F.charCodeAt(0),0)%y-y/2,k=w+P,R=20,O=60,E=Math.sqrt(M.size)/5,B=Math.max(R,Math.min(O,R+E));p.push({id:M.id,name:M.label,x:k,y:I,fixed:!0,symbolSize:B,value:M.size,category:x.level,itemStyle:{color:f(x.level)},label:{show:!0,fontSize:11,color:"#fff",formatter:G=>{const W=G.name;return W.length>10?W.substring(0,10)+"...":W}},metadata:M.metadata,layerName:x.name})})});const m=i.value.links.map(x=>({source:x.source,target:x.target,value:x.weight,lineStyle:{width:Math.max(.5,Math.min(2,x.weight/100)),opacity:.3,curveness:.1}})),_=d.map(x=>({name:x.name})),S={tooltip:{formatter:x=>{var b;if(x.dataType==="node"){const w=x.data;let T=`${x.name}
`;return T+=`Layer: ${w.layerName}
`,(b=w.metadata)!=null&&b.image_count&&(T+=`Images: ${w.metadata.image_count}`),T}return""}},legend:[{data:_.map(x=>x.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:p,links:m,categories:_,roam:!0,scaleLimit:{min:.2,max:5},draggable:!1,label:{show:!0,position:"inside"},lineStyle:{color:"source",curveness:.1},emphasis:{focus:"adjacency",lineStyle:{width:3}},zoom:1}]};s.setOption(S),s.on("click",x=>{var b,w;if(x.dataType==="node"){const T=x.data;((b=T.metadata)==null?void 0:b.type)==="tag"?(t("searchTag",x.name),Oi.info(`Searching for tag: ${x.name}`)):((w=T.metadata)==null?void 0:w.type)==="cluster"?T.metadata.paths&&T.metadata.paths.length>0?t("openCluster",{title:x.name,paths:T.metadata.paths,size:T.metadata.image_count||T.metadata.paths.length}):Oi.warning("No images found in this cluster"):Oi.info(`Abstract category: ${x.name}`)}})};return fs(()=>e.folders,()=>{v()},{immediate:!0}),fs([i,o],()=>{i.value&&o.value&&VR(()=>{c()})}),BA(()=>{l=()=>{s&&s.resize()},window.addEventListener("resize",l)}),GR(()=>{l&&(window.removeEventListener("resize",l),l=null),s&&s.dispose()}),(h,d)=>{const p=HA,g=zA,y=WA,m=PE;return Jt(),De("div",iet,[a.value?(Jt(),De("div",oet,[St(p,{size:"large"}),set])):n.value?(Jt(),De("div",uet,[St(g,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(Jt(),De("div",fet,[Tt("div",vet,[St(m,null,{default:ke(()=>[St(y,null,{default:ke(()=>[Tr("Layers: "+Ft(i.value.layers.length),1)]),_:1}),St(y,null,{default:ke(()=>[Tr("Total Links: "+Ft(i.value.stats.total_links),1)]),_:1})]),_:1})]),Tt("div",{ref_key:"chartRef",ref:o,class:"chart-container"},null,512)])):ur("",!0)])}}});const het=FA(cet,[["__scopeId","data-v-342d4b31"]]),Vr=r=>(VA("data-v-174295e7"),r=r(),GA(),r),det={class:"topic-search"},pet={class:"toolbar"},get={class:"left"},yet={class:"title"},met=Vr(()=>Tt("span",{class:"icon"},"🧠",-1)),_et={class:"right"},Set={key:0,style:{opacity:"0.75"}},xet={class:"label"},bet={class:"label"},wet={style:{display:"grid",gap:"6px"}},Tet=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"🔑",-1)),Cet={key:0},Aet=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"🧩",-1)),Met=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"🐍",-1)),Det={style:{opacity:"0.85"}},Let=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"💻",-1)),Iet={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Pet={style:{opacity:"0.85"}},ket={key:3,style:{margin:"10px 0 0 0"}},Ret={style:{"margin-top":"10px",display:"flex","align-items":"center",gap:"8px"}},Eet=Vr(()=>Tt("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),Oet={key:4},Net={key:0,style:{"margin-top":"10px"}},Bet={key:1,class:"grid"},zet=["onClick"],Vet={class:"card-top"},Get={class:"card-title line-clamp-1"},Fet={class:"card-count"},Het={class:"card-desc line-clamp-2"},Wet={key:2,class:"empty"},$et={class:"guide"},Uet={class:"guide-row"},Yet=Vr(()=>Tt("span",{class:"guide-icon"},"🗂️",-1)),Zet={class:"guide-text"},Xet={class:"guide-row"},qet=Vr(()=>Tt("span",{class:"guide-icon"},"🧠",-1)),Ket={class:"guide-text"},jet={class:"guide-row"},Jet=Vr(()=>Tt("span",{class:"guide-icon"},"🔎",-1)),Qet={class:"guide-text"},trt={class:"guide-row"},ert=Vr(()=>Tt("span",{class:"guide-icon"},"✨",-1)),rrt={class:"guide-text"},art={class:"guide-row"},nrt=Vr(()=>Tt("span",{class:"guide-icon"},"🚀",-1)),irt={class:"guide-text"},ort={class:"guide-hint"},srt=Vr(()=>Tt("span",{class:"guide-icon"},"💡",-1)),lrt={key:0,class:"guide-text"},urt={key:1,class:"guide-text"},frt={key:5,style:{height:"calc(100vh - 300px)","min-height":"600px"}},vrt="iib_topic_search_hide_requirements_v1",tg="topic_search_scope",crt=Zn({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const t=r,e=HR(),a=te(!1),n=te(.9),i=te(2),o=te(null),s=te(null),l=te(!1),u=WR(vrt,!0),f=()=>{u.value=!1},v=te(null),c=te("");let h=null;const d=Gt(()=>{var $;const V=($=v.value)==null?void 0:$.status;return V==="queued"||V==="running"}),p=Gt(()=>{var $;const V=String((($=v.value)==null?void 0:$.stage)||"");return!V||V==="queued"||V==="init"?sr("topicSearchJobQueued"):V==="embedding"?sr("topicSearchJobStageEmbedding"):V==="clustering"?sr("topicSearchJobStageClustering"):V==="titling"?sr("topicSearchJobStageTitling"):V==="done"?sr("topicSearchJobStageDone"):V==="error"?sr("topicSearchJobStageError"):`${sr("topicSearchJobStage")}: ${V}`}),g=Gt(()=>{var At;const V=(At=v.value)==null?void 0:At.progress;if(!V)return 0;const $=Number(V.to_embed??0),Z=Number(V.embedded_done??0);if($<=0)return 0;const tt=Math.floor(Z/$*100);return Math.max(0,Math.min(100,tt))}),y=Gt(()=>{var $,Z,tt,At;const V=($=v.value)==null?void 0:$.progress;if(!V)return"";if(((Z=v.value)==null?void 0:Z.stage)==="embedding"){const pt=Number(V.embedded_done??0),xt=Number(V.to_embed??0),Vt=Number(V.scanned??0),re=String(V.folder??"");return sr("topicSearchJobEmbeddingDesc",[pt,xt,Vt,re])}if(((tt=v.value)==null?void 0:tt.stage)==="clustering"){const pt=Number(V.items_done??0),xt=Number(V.items_total??0);return sr("topicSearchJobClusteringDesc",[pt,xt])}if(((At=v.value)==null?void 0:At.stage)==="titling"){const pt=Number(V.clusters_done??0),xt=Number(V.clusters_total??0);return sr("topicSearchJobTitlingDesc",[pt,xt])}return""}),m=te(""),_=te(!1),S=te(null),x=te("clusters"),b=te(!1),w=te([]),T=te(!1),C=te(!1);let M=null,D="";const I=Gt(()=>(e.quickMovePaths??[]).filter($=>{const Z=String(($==null?void 0:$.key)??"");return(($==null?void 0:$.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z)}).map($=>String(($==null?void 0:$.dir)??"")).filter(Boolean));fs(I,V=>{V!=null&&V.length&&(w.value=(w.value??[]).filter($=>!V.includes($)))},{immediate:!0});const L=Gt(()=>(e.quickMovePaths??[]).filter($=>{const Z=String(($==null?void 0:$.key)??"");return!((($==null?void 0:$.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z))}).map($=>({value:$.dir,label:$.zh||$.dir}))),P=Gt(()=>(w.value??[]).filter(Boolean).length),k=Gt(()=>(w.value??[]).filter(Boolean)),R=Gt(()=>{var V;return((V=o.value)==null?void 0:V.clusters)??[]}),O=async()=>{var Z,tt,At;if(T.value)return;try{const pt=await XR();e.conf=pt}catch{}const V=((Z=e.conf)==null?void 0:Z.app_fe_setting)||{},$=(tt=V==null?void 0:V[tg])==null?void 0:tt.folder_paths;Array.isArray($)&&$.length&&!((At=w.value)!=null&&At.length)&&(w.value=$.map(pt=>String(pt)).filter(Boolean)),T.value=!0},E=async()=>{var $,Z;if(($=e.conf)!=null&&$.is_readonly||!T.value)return;const V={folder_paths:k.value,updated_at:Date.now()};await qR(tg,V),(Z=e.conf)!=null&&Z.app_fe_setting&&(e.conf.app_fe_setting[tg]=V)},B=()=>{var $;if(($=e.conf)!=null&&$.is_readonly||!T.value)return;const V=JSON.stringify(k.value);V!==D&&(M&&clearTimeout(M),M=setTimeout(async()=>{C.value=!0;try{await E(),D=V}finally{C.value=!1}},500))},G=()=>{h&&(clearInterval(h),h=null)},F=async()=>{const V=c.value;if(!V)return;const $=await nE(V);v.value=$,$.status==="done"?(G(),a.value=!1,$.result&&(o.value=$.result),s.value=null):$.status==="error"&&(G(),a.value=!1,Oi.error($.error||sr("topicSearchJobFailed")))},W=async()=>{if(P.value)try{const V=await KR({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:k.value});s.value=V,V.cache_hit&&V.result&&(o.value=V.result)}catch{}},X=async()=>{var V;if(!((V=e.conf)!=null&&V.is_readonly)){if(!P.value){Oi.warning(sr("topicSearchNeedScope")),b.value=!0;return}G(),a.value=!0,v.value=null,c.value="";try{await jR();const $=await JR({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:k.value});c.value=$.job_id,await F(),h=setInterval(()=>{F()},800)}catch($){throw a.value=!1,$}}},J=async()=>{const V=(m.value||"").trim();if(V&&!_.value){if(!P.value){Oi.warning(sr("topicSearchNeedScope")),b.value=!0;return}_.value=!0;try{S.value=await QR({query:V,top_k:80,ensure_embed:!l.value,folder_paths:k.value}),l.value||(l.value=!0),ft()}finally{_.value=!1}}},ft=()=>{var At;const V=(((At=S.value)==null?void 0:At.results)??[]).map(pt=>pt.path).filter(Boolean);if(!V.length)return;const $=`Query: ${m.value.trim()}(${V.length})`,Z={type:"topic-search-matched-image-grid",name:$,key:Date.now()+Ao(),id:Ao(),title:$,paths:V},tt=e.tabList[t.tabIdx];tt.panes.push(Z),tt.key=Z.key},Dt=V=>{const $={type:"topic-search-matched-image-grid",name:`${V.title}(${V.size})`,key:Date.now()+Ao(),id:Ao(),title:V.title,paths:V.paths},Z=e.tabList[t.tabIdx];Z.panes.push($),Z.key=$.key},zt=V=>{const $={type:"topic-search-matched-image-grid",name:`${V.title}(${V.size})`,key:Date.now()+Ao(),id:Ao(),title:V.title,paths:V.paths},Z=e.tabList[t.tabIdx];Z.panes.push($),Z.key=$.key},ct=V=>{m.value=V,J()};return BA(()=>{(async()=>(await O(),P.value&&await W()))()}),$R(()=>{G()}),fs(k,()=>{l.value=!1},{deep:!0}),fs(()=>k.value,()=>{B()},{deep:!0}),(V,$)=>{var Ra,To,z_,V_,G_,F_;const Z=WA,tt=tE,At=eE,pt=sE,xt=zA,Vt=AE,re=oE,Ye=HA,ze=rE,ka=aE;return Jt(),De("div",det,[Tt("div",pet,[Tt("div",get,[Tt("div",yet,[met,Tt("span",null,Ft(V.$t("topicSearchTitleExperimental")),1)]),o.value?(Jt(),ln(Z,{key:0,color:"blue"},{default:ke(()=>[Tr("共 "+Ft(o.value.count)+" 张",1)]),_:1})):ur("",!0),o.value?(Jt(),ln(Z,{key:1,color:"geekblue"},{default:ke(()=>[Tr("主题 "+Ft(o.value.clusters.length),1)]),_:1})):ur("",!0),o.value?(Jt(),ln(Z,{key:2,color:"default"},{default:ke(()=>[Tr("噪声 "+Ft(o.value.noise.length),1)]),_:1})):ur("",!0)]),Tt("div",_et,[St(tt,{onClick:$[0]||($[0]=le=>b.value=!0)},{default:ke(()=>[Tr(Ft(V.$t("topicSearchScope"))+" ",1),P.value?(Jt(),De("span",Set,"("+Ft(P.value)+")",1)):ur("",!0)]),_:1}),St(At,{value:m.value,"onUpdate:value":$[1]||($[1]=le=>m.value=le),style:{width:"min(420px, 72vw)"},placeholder:V.$t("topicSearchQueryPlaceholder"),disabled:_.value,onKeydown:UR(J,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),St(tt,{loading:_.value,onClick:J},{default:ke(()=>[Tr(Ft(V.$t("search")),1)]),_:1},8,["loading"]),(To=(Ra=S.value)==null?void 0:Ra.results)!=null&&To.length?(Jt(),ln(tt,{key:0,onClick:ft},{default:ke(()=>[Tr(Ft(V.$t("topicSearchOpenResults")),1)]),_:1})):ur("",!0),Tt("span",xet,Ft(V.$t("topicSearchThreshold")),1),St(pt,{value:n.value,"onUpdate:value":$[2]||($[2]=le=>n.value=le),min:.5,max:.99,step:.01},null,8,["value"]),Tt("span",bet,Ft(V.$t("topicSearchMinClusterSize")),1),St(pt,{value:i.value,"onUpdate:value":$[3]||($[3]=le=>i.value=le),min:1,max:50,step:1},null,8,["value"]),St(tt,{type:"primary",ghost:"",loading:a.value,disabled:(z_=Jn(e).conf)==null?void 0:z_.is_readonly,onClick:X},{default:ke(()=>[Tr(Ft(V.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(V_=Jn(e).conf)!=null&&V_.is_readonly?(Jt(),ln(xt,{key:0,type:"warning",message:V.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):ur("",!0),Jn(u)?(Jt(),ln(xt,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:V.$t("topicSearchRequirementsTitle"),onClose:f},{description:ke(()=>[Tt("div",wet,[Tt("div",null,[Tet,Tt("span",null,Ft(V.$t("topicSearchRequirementsOpenai")),1)]),Jn(YR)?(Jt(),De("div",Cet,[Aet,Tt("span",null,Ft(V.$t("topicSearchRequirementsDepsDesktop")),1)])):(Jt(),De(Lv,{key:1},[Tt("div",null,[Met,Tt("span",null,Ft(V.$t("topicSearchRequirementsDepsPython")),1)]),Tt("div",Det,[Let,Tt("span",null,Ft(V.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):ur("",!0),(G_=s.value)!=null&&G_.cache_hit&&((F_=s.value)!=null&&F_.stale)?(Jt(),ln(xt,{key:2,type:"warning","show-icon":"",style:{margin:"10px 0 0 0"},message:V.$t("topicSearchCacheStale")},{description:ke(()=>{var le;return[Tt("div",Iet,[Tt("span",Pet,Ft(V.$t("topicSearchCacheStaleDesc")),1),St(tt,{size:"small",loading:a.value||d.value,disabled:(le=Jn(e).conf)==null?void 0:le.is_readonly,onClick:X},{default:ke(()=>[Tr(Ft(V.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])])]}),_:1},8,["message"])):ur("",!0),d.value?(Jt(),De("div",ket,[St(xt,{type:"info","show-icon":"",message:p.value,description:y.value},null,8,["message","description"]),St(Vt,{percent:g.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):ur("",!0),Tt("div",Ret,[Eet,St(re,{checked:x.value,"onUpdate:checked":$[4]||($[4]=le=>x.value=le),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),x.value==="clusters"?(Jt(),De("div",Oet,[St(Ye,{spinning:a.value},{default:ke(()=>{var le;return[S.value?(Jt(),De("div",Net,[St(xt,{type:"info",message:V.$t("topicSearchRecallMsg",[S.value.results.length,S.value.count,S.value.top_k]),"show-icon":""},null,8,["message"])])):ur("",!0),R.value.length?(Jt(),De("div",Bet,[(Jt(!0),De(Lv,null,ZR(R.value,Co=>(Jt(),De("div",{class:"card",key:Co.id,onClick:hrt=>Dt(Co)},[Tt("div",Vet,[Tt("div",Get,Ft(Co.title),1),Tt("div",Fet,Ft(Co.size),1)]),Tt("div",Het,Ft(Co.sample_prompt),1)],8,zet))),128))])):(Jt(),De("div",Wet,[St(xt,{type:"info","show-icon":"",message:V.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Tt("div",$et,[Tt("div",Uet,[Yet,Tt("span",Zet,Ft(V.$t("topicSearchGuideStep1")),1),St(tt,{size:"small",onClick:$[5]||($[5]=Co=>b.value=!0)},{default:ke(()=>[Tr(Ft(V.$t("topicSearchScope")),1)]),_:1})]),Tt("div",Xet,[qet,Tt("span",Ket,Ft(V.$t("topicSearchGuideStep2")),1),St(tt,{size:"small",loading:a.value,disabled:(le=Jn(e).conf)==null?void 0:le.is_readonly,onClick:X},{default:ke(()=>[Tr(Ft(V.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Tt("div",jet,[Jet,Tt("span",Qet,Ft(V.$t("topicSearchGuideStep3")),1)]),Tt("div",trt,[ert,Tt("span",rrt,Ft(V.$t("topicSearchGuideAdvantage1")),1)]),Tt("div",art,[nrt,Tt("span",irt,Ft(V.$t("topicSearchGuideAdvantage2")),1)]),Tt("div",ort,[srt,P.value?(Jt(),De("span",urt,Ft(V.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(Jt(),De("span",lrt,Ft(V.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):x.value==="graph"?(Jt(),De("div",frt,[St(het,{folders:k.value,lang:Jn(e).lang,onSearchTag:ct,onOpenCluster:zt},null,8,["folders","lang"])])):ur("",!0),St(ka,{visible:b.value,"onUpdate:visible":$[7]||($[7]=le=>b.value=le),title:V.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:$[8]||($[8]=()=>{b.value=!1,E()})},{default:ke(()=>[St(xt,{type:"info","show-icon":"",message:V.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),C.value?(Jt(),ln(xt,{key:0,type:"info","show-icon":"",message:V.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):ur("",!0),St(ze,{value:w.value,"onUpdate:value":$[6]||($[6]=le=>w.value=le),mode:"multiple",style:{width:"100%"},options:L.value,placeholder:V.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:le=>le.parentElement||le,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const xrt=FA(crt,[["__scopeId","data-v-174295e7"]]);export{xrt as default}; diff --git a/vue/dist/assets/TopicSearch-1bb1b5f9.css b/vue/dist/assets/TopicSearch-e239a03c.css similarity index 93% rename from vue/dist/assets/TopicSearch-1bb1b5f9.css rename to vue/dist/assets/TopicSearch-e239a03c.css index 801928d..daffc96 100644 --- a/vue/dist/assets/TopicSearch-1bb1b5f9.css +++ b/vue/dist/assets/TopicSearch-e239a03c.css @@ -1 +1 @@ -.ant-progress{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#1890ff}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff}.ant-progress-success-bg,.ant-progress-bg{position:relative;background-color:#1890ff;border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:#000000d9;font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ff4d4f}.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ff4d4f}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a}.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:#000000d9;font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a}@keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-space{display:inline-flex}.ant-space-vertical{flex-direction:column}.ant-space-align-center{align-items:center}.ant-space-align-start{align-items:flex-start}.ant-space-align-end{align-items:flex-end}.ant-space-align-baseline{align-items:baseline}.ant-space-item:empty{display:none}.ant-space-rtl{direction:rtl}.tag-hierarchy-graph[data-v-342d4b31]{width:100%;height:calc(100vh - 200px);min-height:600px;position:relative;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);border-radius:8px;overflow:hidden}.loading-container[data-v-342d4b31],.error-container[data-v-342d4b31]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff}.loading-text[data-v-342d4b31]{margin-top:16px;font-size:14px;color:#aaa}.graph-container[data-v-342d4b31]{width:100%;height:100%;position:relative}.control-panel[data-v-342d4b31]{position:absolute;top:16px;left:16px;z-index:10;background:rgba(0,0,0,.7);padding:8px 12px;border-radius:6px;backdrop-filter:blur(10px)}.chart-container[data-v-342d4b31]{width:100%;height:100%}.topic-search[data-v-174295e7]{height:var(--pane-max-height);overflow:auto;padding:12px}.toolbar[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px}.left[data-v-174295e7]{display:flex;align-items:center;gap:8px}.title[data-v-174295e7]{display:flex;align-items:center;gap:8px;font-weight:700}.right[data-v-174295e7]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.label[data-v-174295e7]{color:#888}.guide[data-v-174295e7]{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px;border:1px solid rgba(0,0,0,.06)}.guide-row[data-v-174295e7]{display:flex;align-items:center;gap:10px}.guide-hint[data-v-174295e7]{margin-top:4px;display:flex;align-items:center;gap:10px;opacity:.85}.guide-icon[data-v-174295e7]{width:22px;text-align:center;flex:0 0 22px}.guide-text[data-v-174295e7]{flex:1 1 auto;min-width:0;color:#000000bf}.grid[data-v-174295e7]{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.card[data-v-174295e7]{background:var(--zp-primary-background);border-radius:12px;padding:10px 12px;cursor:pointer;border:1px solid rgba(0,0,0,.06)}.card[data-v-174295e7]:hover{border-color:#1890ff99}.card-top[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title[data-v-174295e7]{font-weight:700}.card-count[data-v-174295e7]{min-width:28px;text-align:right;opacity:.75}.card-desc[data-v-174295e7]{margin-top:6px;color:#666;font-size:12px}.empty[data-v-174295e7]{height:calc(var(--pane-max-height) - 72px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.hint[data-v-174295e7]{font-size:16px;opacity:.75} +.ant-progress{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#1890ff}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff}.ant-progress-success-bg,.ant-progress-bg{position:relative;background-color:#1890ff;border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:#000000d9;font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ff4d4f}.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ff4d4f}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a}.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:#000000d9;font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a}@keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-space{display:inline-flex}.ant-space-vertical{flex-direction:column}.ant-space-align-center{align-items:center}.ant-space-align-start{align-items:flex-start}.ant-space-align-end{align-items:flex-end}.ant-space-align-baseline{align-items:baseline}.ant-space-item:empty{display:none}.ant-space-rtl{direction:rtl}.tag-hierarchy-graph[data-v-1071c65c]{width:100%;height:calc(100vh - 200px);min-height:600px;position:relative;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);border-radius:8px;overflow:hidden}.loading-container[data-v-1071c65c],.error-container[data-v-1071c65c]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff}.loading-text[data-v-1071c65c]{margin-top:16px;font-size:14px;color:#aaa}.graph-container[data-v-1071c65c]{width:100%;height:100%;position:relative}.control-panel[data-v-1071c65c]{position:absolute;top:16px;left:16px;z-index:10;background:rgba(0,0,0,.7);padding:8px 12px;border-radius:6px;backdrop-filter:blur(10px)}.chart-container[data-v-1071c65c]{width:100%;height:100%}.topic-search[data-v-174295e7]{height:var(--pane-max-height);overflow:auto;padding:12px}.toolbar[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px}.left[data-v-174295e7]{display:flex;align-items:center;gap:8px}.title[data-v-174295e7]{display:flex;align-items:center;gap:8px;font-weight:700}.right[data-v-174295e7]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.label[data-v-174295e7]{color:#888}.guide[data-v-174295e7]{display:flex;flex-direction:column;gap:8px;padding:10px 12px;background:var(--zp-primary-background);border-radius:12px;border:1px solid rgba(0,0,0,.06)}.guide-row[data-v-174295e7]{display:flex;align-items:center;gap:10px}.guide-hint[data-v-174295e7]{margin-top:4px;display:flex;align-items:center;gap:10px;opacity:.85}.guide-icon[data-v-174295e7]{width:22px;text-align:center;flex:0 0 22px}.guide-text[data-v-174295e7]{flex:1 1 auto;min-width:0;color:#000000bf}.grid[data-v-174295e7]{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.card[data-v-174295e7]{background:var(--zp-primary-background);border-radius:12px;padding:10px 12px;cursor:pointer;border:1px solid rgba(0,0,0,.06)}.card[data-v-174295e7]:hover{border-color:#1890ff99}.card-top[data-v-174295e7]{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title[data-v-174295e7]{font-weight:700}.card-count[data-v-174295e7]{min-width:28px;text-align:right;opacity:.75}.card-desc[data-v-174295e7]{margin-top:6px;color:#666;font-size:12px}.empty[data-v-174295e7]{height:calc(var(--pane-max-height) - 72px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.hint[data-v-174295e7]{font-size:16px;opacity:.75} diff --git a/vue/dist/assets/_isIterateeCall-bfd79848.js b/vue/dist/assets/_isIterateeCall-7008db8e.js similarity index 68% rename from vue/dist/assets/_isIterateeCall-bfd79848.js rename to vue/dist/assets/_isIterateeCall-7008db8e.js index 1320c27..9f46d04 100644 --- a/vue/dist/assets/_isIterateeCall-bfd79848.js +++ b/vue/dist/assets/_isIterateeCall-7008db8e.js @@ -1 +1 @@ -import{bV as i,b1 as t,e6 as f,bM as n}from"./index-d6594e8e.js";function u(e,s,r){if(!i(r))return!1;var a=typeof s;return(a=="number"?t(r)&&f(s,r.length):a=="string"&&s in r)?n(r[s],e):!1}export{u as i}; +import{bV as i,b1 as t,e6 as f,bM as n}from"./index-0205daf8.js";function u(e,s,r){if(!i(r))return!1;var a=typeof s;return(a=="number"?t(r)&&f(s,r.length):a=="string"&&s in r)?n(r[s],e):!1}export{u as i}; diff --git a/vue/dist/assets/batchDownload-9b3ac812.js b/vue/dist/assets/batchDownload-0bd1b629.js similarity index 51% rename from vue/dist/assets/batchDownload-9b3ac812.js rename to vue/dist/assets/batchDownload-0bd1b629.js index 8544734..35347a7 100644 --- a/vue/dist/assets/batchDownload-9b3ac812.js +++ b/vue/dist/assets/batchDownload-0bd1b629.js @@ -1 +1 @@ -import{d as F,a1 as B,cP as $,cc as S,U as _,V as w,W as f,c as l,a3 as d,X as p,Y as c,a4 as s,a2 as R,af as A,cQ as V,cR as y,z as x,B as E,ak as T,a0 as U}from"./index-d6594e8e.js";import{_ as N}from"./index-e620c28b.js";import{u as L,a as H,f as O,F as P,d as Q}from"./FileItem-2eb00024.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";/* empty css */import"./index-cb6a3d31.js";import"./_isIterateeCall-bfd79848.js";import"./index-30b8f89a.js";import"./index-9b184148.js";const W={class:"actions-panel actions"},j={class:"item"},q={key:0,class:"file-list"},G={class:"hint"},X=F({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(Y){const{stackViewEl:D}=L().toRefs(),{itemSize:h,gridItems:b,cellWidth:g}=H(),i=B(),m=O(),{selectdFiles:a}=$(m),r=S(),v=async e=>{const t=V(e);t&&m.addFiles(t.nodes)},C=async()=>{r.pushAction(async()=>{const e=await y.value.post("/zip",{paths:a.value.map(u=>u.fullpath),compress:i.batchDownloadCompress,pack_only:!1},{responseType:"blob"}),t=window.URL.createObjectURL(new Blob([e.data])),o=document.createElement("a");o.href=t,o.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(o),o.click()})},I=async()=>{r.pushAction(async()=>{await y.value.post("/zip",{paths:a.value.map(e=>e.fullpath),compress:i.batchDownloadCompress,pack_only:!0},{responseType:"blob"}),x.success(E("success"))})},z=e=>{a.value.splice(e,1)};return(e,t)=>{const o=T,u=N;return _(),w("div",{class:"container",ref_key:"stackViewEl",ref:D,onDrop:v},[f("div",W,[l(o,{onClick:t[0]||(t[0]=n=>s(m).selectdFiles=[])},{default:d(()=>[p(c(e.$t("clear")),1)]),_:1}),f("div",j,[p(c(e.$t("compressFile"))+": ",1),l(u,{checked:s(i).batchDownloadCompress,"onUpdate:checked":t[1]||(t[1]=n=>s(i).batchDownloadCompress=n)},null,8,["checked"])]),l(o,{onClick:I,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("packOnlyNotDownload")),1)]),_:1},8,["loading"]),l(o,{onClick:C,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("zipDownload")),1)]),_:1},8,["loading"])]),s(a).length?(_(),R(s(Q),{key:1,ref:"scroller",class:"file-list",items:s(a).slice(),"item-size":s(h).first,"key-field":"fullpath","item-secondary-size":s(h).second,gridItems:s(b)},{default:d(({item:n,index:k})=>[l(P,{idx:k,file:n,"cell-width":s(g),"enable-close-icon":"",onCloseIconClick:J=>z(k),"full-screen-preview-image-url":s(A)(n),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(_(),w("div",q,[f("p",G,c(e.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const le=U(X,[["__scopeId","data-v-3d7e6f2d"]]);export{le as default}; +import{d as F,a1 as B,cR as S,cc as $,U as _,V as w,W as f,c as l,a3 as d,X as p,Y as c,a4 as s,a2 as R,af as A,cS as T,cT as y,z as V,B as x,ak as E,a0 as U}from"./index-0205daf8.js";import{_ as N}from"./index-728b29ca.js";import{u as L,a as H,f as O,F as W,d as j}from"./FileItem-cc53e03a.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";const q={class:"actions-panel actions"},G={class:"item"},P={key:0,class:"file-list"},Q={class:"hint"},X=F({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(Y){const{stackViewEl:D}=L().toRefs(),{itemSize:h,gridItems:b,cellWidth:g}=H(),i=B(),m=O(),{selectdFiles:a}=S(m),r=$(),v=async e=>{const t=T(e);t&&m.addFiles(t.nodes)},C=async()=>{r.pushAction(async()=>{const e=await y.value.post("/zip",{paths:a.value.map(u=>u.fullpath),compress:i.batchDownloadCompress,pack_only:!1},{responseType:"blob"}),t=window.URL.createObjectURL(new Blob([e.data])),o=document.createElement("a");o.href=t,o.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(o),o.click()})},I=async()=>{r.pushAction(async()=>{await y.value.post("/zip",{paths:a.value.map(e=>e.fullpath),compress:i.batchDownloadCompress,pack_only:!0},{responseType:"blob"}),V.success(x("success"))})},z=e=>{a.value.splice(e,1)};return(e,t)=>{const o=E,u=N;return _(),w("div",{class:"container",ref_key:"stackViewEl",ref:D,onDrop:v},[f("div",q,[l(o,{onClick:t[0]||(t[0]=n=>s(m).selectdFiles=[])},{default:d(()=>[p(c(e.$t("clear")),1)]),_:1}),f("div",G,[p(c(e.$t("compressFile"))+": ",1),l(u,{checked:s(i).batchDownloadCompress,"onUpdate:checked":t[1]||(t[1]=n=>s(i).batchDownloadCompress=n)},null,8,["checked"])]),l(o,{onClick:I,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("packOnlyNotDownload")),1)]),_:1},8,["loading"]),l(o,{onClick:C,type:"primary",loading:!s(r).isIdle},{default:d(()=>[p(c(e.$t("zipDownload")),1)]),_:1},8,["loading"])]),s(a).length?(_(),R(s(j),{key:1,ref:"scroller",class:"file-list",items:s(a).slice(),"item-size":s(h).first,"key-field":"fullpath","item-secondary-size":s(h).second,gridItems:s(b)},{default:d(({item:n,index:k})=>[l(W,{idx:k,file:n,"cell-width":s(g),"enable-close-icon":"",onCloseIconClick:J=>z(k),"full-screen-preview-image-url":s(A)(n),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(_(),w("div",P,[f("p",Q,c(e.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const le=U(X,[["__scopeId","data-v-3d7e6f2d"]]);export{le as default}; diff --git a/vue/dist/assets/emptyStartup-76ca2d01.js b/vue/dist/assets/emptyStartup-94fd8d18.js similarity index 61% rename from vue/dist/assets/emptyStartup-76ca2d01.js rename to vue/dist/assets/emptyStartup-94fd8d18.js index 41fbaf5..ebd0065 100644 --- a/vue/dist/assets/emptyStartup-76ca2d01.js +++ b/vue/dist/assets/emptyStartup-94fd8d18.js @@ -1,3 +1,3 @@ -import{d as J,G as L,am as Wr,r as B,m as $e,I as Kr,a as y,c as E,an as ue,u as de,_ as qe,ao as Jr,ap as fr,P as Z,aq as Zr,h as D,g as Qr,f as Xr,b as Yr,ar as et,as as rt,at as tt,au as st,j as br,av as _r,aw as ot,ax as nt,ay as at,az as it,A as Ve,a1 as vr,T as Pe,B as O,q as x,a9 as Fe,ak as Ue,aj as wr,z as le,aA as ct,aB as lt,aC as be,aD as ut,aE as pt,aF as dt,U as w,a2 as Te,a3 as R,X as I,Y as f,aG as gt,al as mt,M as ht,aH as Tt,t as Et,aI as ft,aJ as bt,aK as _t,o as vt,aL as wt,V as S,W as p,a4 as T,ag as Je,$,a6 as kt,a5 as W,aM as Ze,Z as K,a8 as oe,R as Oe,O as yt,y as Qe,aN as Pt,aO as Gt,aP as St,aQ as Ot,a0 as At}from"./index-d6594e8e.js";import{_ as Rt}from"./index-e620c28b.js";/* empty css */import{V as Ct}from"./Checkbox-59427a1c.js";import{D as Ft}from"./index-9b184148.js";function Xe(r){var e=r.prefixCls,t=r.value,s=r.current,o=r.offset,a=o===void 0?0:o,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),E("p",{style:n,class:ue("".concat(e,"-only-unit"),{current:s})},[t])}function Ut(r,e,t){for(var s=r,o=0;(s+10)%10!==e;)s+=t,o+=t;return o}const Dt=J({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var t=L(function(){return Number(e.value)}),s=L(function(){return Math.abs(e.count)}),o=Wr({prevValue:t.value,prevCount:s.value}),a=function(){o.prevValue=t.value,o.prevCount=s.value},n=B();return $e(t,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Kr(function(){clearTimeout(n.value)}),function(){var i,l={},m=t.value;if(o.prevValue===m||Number.isNaN(m)||Number.isNaN(o.prevValue))i=[Xe(y(y({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var h=m+10,u=[],b=m;b<=h;b+=1)u.push(b);var k=u.findIndex(function(C){return C%10===o.prevValue});i=u.map(function(C,_){var F=C%10;return Xe(y(y({},e),{},{value:F,offset:_-k,current:_===k}))});var A=o.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),m=L(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),h=L(function(){return l.value==="0"||l.value===0}),u=L(function(){return e.dot&&!h.value}),b=L(function(){return u.value?"":l.value}),k=L(function(){var c=b.value===null||b.value===void 0||b.value==="";return(c||h.value&&!e.showZero)&&!u.value}),A=B(e.count),C=B(b.value),_=B(u.value);$e([function(){return e.count},b,u],function(){k.value||(A.value=e.count,C.value=b.value,_.value=u.value)},{immediate:!0});var F=L(function(){var c;return c={},D(c,"".concat(n.value,"-status-dot"),m.value),D(c,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(c,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),c}),q=L(function(){return e.color&&!Ee(e.color)?{background:e.color}:{}}),j=L(function(){var c;return c={},D(c,"".concat(n.value,"-dot"),_.value),D(c,"".concat(n.value,"-count"),!_.value),D(c,"".concat(n.value,"-count-sm"),e.size==="small"),D(c,"".concat(n.value,"-multiple-words"),!_.value&&C.value&&C.value.toString().length>1),D(c,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(c,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),c});return function(){var c,d,P,v=e.offset,G=e.title,z=e.color,te=o.style,Q=Qr(s,e,"text"),N=n.value,V=A.value,M=Xr((c=s.default)===null||c===void 0?void 0:c.call(s));M=M.length?M:null;var se=!!(!k.value||s.count),X=function(){if(!v)return y({},te);var we={marginTop:Vt(v[1])?"".concat(v[1],"px"):v[1]};return i.value==="rtl"?we.left="".concat(parseInt(v[0],10),"px"):we.right="".concat(-parseInt(v[0],10),"px"),y(y({},we),te)}(),_e=G??(typeof V=="string"||typeof V=="number"?V:void 0),g=se||!Q?null:E("span",{class:"".concat(N,"-status-text")},[Q]),U=Yr(V)==="object"||V===void 0&&s.count?fr(V??((d=s.count)===null||d===void 0?void 0:d.call(s)),{style:X},!1):null,Y=ue(N,(P={},D(P,"".concat(N,"-status"),m.value),D(P,"".concat(N,"-not-a-wrapper"),!M),D(P,"".concat(N,"-rtl"),i.value==="rtl"),P),o.class);if(!M&&m.value){var Nr=X.color;return E("span",y(y({},o),{},{class:Y,style:X}),[E("span",{class:F.value,style:q.value},null),E("span",{style:{color:Nr},class:"".concat(N,"-status-text")},[Q])])}var Mr=et(M?"".concat(N,"-zoom"):"",{appear:!1}),ve=y(y({},X),e.numberStyle);return z&&!Ee(z)&&(ve=ve||{},ve.background=z),E("span",y(y({},o),{},{class:Y}),[M,E(rt,Mr,{default:function(){return[tt(E(xt,{prefixCls:e.scrollNumberPrefixCls,show:se,class:j.value,count:C.value,title:_e,style:ve,key:"scrollNumber"},{default:function(){return[U]}}),[[st,se]])]}}),g])}}});ke.install=function(r){return r.component(ke.name,ke),r.component(De.name,De),r};var Ht=["prefixCls","id"],kr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Z.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const H=J({compatConfig:{MODE:3},name:"ARadio",props:kr(),setup:function(e,t){var s=t.emit,o=t.expose,a=t.slots,n=br(),i=B(),l=_r("radioGroupContext",void 0),m=de("radio",e),h=m.prefixCls,u=m.direction,b=function(){i.value.focus()},k=function(){i.value.blur()};o({focus:b,blur:k});var A=function(F){var q=F.target.checked;s("update:checked",q),s("update:value",q),s("change",F),n.onFieldChange()},C=function(F){s("change",F),l&&l.onRadioChange&&l.onRadioChange(F)};return function(){var _,F=l;e.prefixCls;var q=e.id,j=q===void 0?n.id.value:q,c=qe(e,Ht),d=y({prefixCls:h.value,id:j},ot(c,["onUpdate:checked","onUpdate:value"]));F?(d.name=F.props.name,d.onChange=C,d.checked=e.value===F.stateValue.value,d.disabled=e.disabled||F.props.disabled):d.onChange=A;var P=ue((_={},D(_,"".concat(h.value,"-wrapper"),!0),D(_,"".concat(h.value,"-wrapper-checked"),d.checked),D(_,"".concat(h.value,"-wrapper-disabled"),d.disabled),D(_,"".concat(h.value,"-wrapper-rtl"),u.value==="rtl"),_));return E("label",{class:P},[E(Ct,y(y({},d),{},{type:"radio",ref:i}),null),a.default&&E("span",null,[a.default()])])}}});var zt=at("large","default","small"),Nt=function(){return{prefixCls:String,value:Z.any,size:Z.oneOf(zt),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const Be=J({compatConfig:{MODE:3},name:"ARadioGroup",props:Nt(),setup:function(e,t){var s=t.slots,o=t.emit,a=br(),n=de("radio",e),i=n.prefixCls,l=n.direction,m=n.size,h=B(e.value),u=B(!1);$e(function(){return e.value},function(k){h.value=k,u.value=!1});var b=function(A){var C=h.value,_=A.target.value;"value"in e||(h.value=_),!u.value&&_!==C&&(u.value=!0,o("update:value",_),o("change",A),a.onFieldChange()),it(function(){u.value=!1})};return nt("radioGroupContext",{onRadioChange:b,stateValue:h,props:e}),function(){var k,A=e.options,C=e.optionType,_=e.buttonStyle,F=e.id,q=F===void 0?a.id.value:F,j="".concat(i.value,"-group"),c=ue(j,"".concat(j,"-").concat(_),(k={},D(k,"".concat(j,"-").concat(m.value),m.value),D(k,"".concat(j,"-rtl"),l.value==="rtl"),k)),d=null;if(A&&A.length>0){var P=C==="button"?"".concat(i.value,"-button"):i.value;d=A.map(function(G){if(typeof G=="string"||typeof G=="number")return E(H,{key:G,prefixCls:P,disabled:e.disabled,value:G,checked:h.value===G},{default:function(){return[G]}});var z=G.value,te=G.disabled,Q=G.label;return E(H,{key:"radio-group-value-options-".concat(z),prefixCls:P,disabled:te||e.disabled,value:z,checked:h.value===z},{default:function(){return[Q]}})})}else{var v;d=(v=s.default)===null||v===void 0?void 0:v.call(s)}return E("div",{class:c,id:q},[d])}}}),fe=J({compatConfig:{MODE:3},name:"ARadioButton",props:kr(),setup:function(e,t){var s=t.slots,o=de("radio-button",e),a=o.prefixCls,n=_r("radioGroupContext",void 0);return function(){var i,l=y(y({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),E(H,l,{default:function(){return[(i=s.default)===null||i===void 0?void 0:i.call(s)]}})}}});H.Group=Be;H.Button=fe;H.install=function(r){return r.component(H.name,H),r.component(H.Group.name,H.Group),r.component(H.Button.name,H.Button),r};var Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const Wt=Mt;function Ye(r){for(var e=1;e{const t=vr(),s=B(e??""),o=B(r),a=async()=>{const n=await dt({directory:!0,defaultPath:e});if(typeof n=="string")s.value=n;else return};s.value=await new Promise(n=>{Pe.confirm({title:O("inputTargetFolderPath"),width:"800px",content:()=>{var i;return x("div",[(i=t.conf)!=null&&i.enable_access_control?x("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",Fe?x(Ue,{onClick:a,style:{margin:"4px 0"}},O("selectFolder")):"",x(wr,{value:s.value,"onUpdate:value":l=>s.value=l}),x("div",[x("span",O("type")+": "),x(Be,{value:o.value,"onUpdate:value":l=>o.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[x(fe,{value:"walk"},"Walk"),x(fe,{value:"scanned"},"Normal"),x(fe,{value:"scanned-fixed"},"Fixed")])]),x("p","Walk: "+O("walkModeDoc")),x("p","Normal: "+O("normalModelDoc")),x("p","Fixed: "+O("fixedModeDoc"))])},async onOk(){if(!s.value)throw le.error(O("pathIsEmpty")),new Error("pathIsEmpty");(await ct([s.value]))[s.value]?n(s.value):le.error(O("pathDoesNotExist"))}})}),Pe.confirm({content:O("confirmToAddToExtraPath"),async onOk(){await lt({types:[o.value],path:s.value}),le.success(O("addCompleted")),be.emit("searchIndexExpired"),be.emit("updateGlobalSetting")}})},sr=(r,e)=>{Pe.confirm({content:O("confirmDelete"),closable:!0,async onOk(){await ut({types:[e],path:r}),le.success(O("removeCompleted")),be.emit("searchIndexExpired"),be.emit("updateGlobalSetting")}})},or=r=>{const e=B("");Pe.confirm({title:O("inputAlias"),content:()=>x("div",[x("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),x(wr,{value:e.value,"onUpdate:value":t=>e.value=t})]),async onOk(){await pt({alias:e.value,path:r}),le.success(O("addAliasCompleted")),be.emit("updateGlobalSetting")}})},nr=J({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const t=s=>{switch(s.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(s,o)=>{const a=mt,n=ht,i=Ft;return w(),Te(i,{trigger:["contextmenu"]},{overlay:R(()=>[E(n,{onClick:t},{default:R(()=>[E(a,{key:"openOnTheRight"},{default:R(()=>[I(f(s.$t("openOnTheRight")),1)]),_:1}),E(a,{key:"openInNewTab"},{default:R(()=>[I(f(s.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:R(()=>[gt(s.$slots,"default")]),_:3})}}});function Ge(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Se={exports:{}},ss=yr;function yr(r,e,t,s){if(typeof t!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce(function(o,a){return yr.bind(null,r,a,o,s)},t)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(o,a){return a.hook.bind(null,o,s)},t)():t(s)})}var os=ns;function ns(r,e,t,s){var o=s;r.registry[t]||(r.registry[t]=[]),e==="before"&&(s=function(a,n){return Promise.resolve().then(o.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(s=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,o(i,n)}).then(function(){return i})}),e==="error"&&(s=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return o(i,n)})}),r.registry[t].push({hook:s,orig:o})}var as=is;function is(r,e,t){if(r.registry[e]){var s=r.registry[e].map(function(o){return o.orig}).indexOf(t);s!==-1&&r.registry[e].splice(s,1)}}var Pr=ss,cs=os,ls=as,ar=Function.bind,ir=ar.bind(ar);function Gr(r,e,t){var s=ir(ls,null).apply(null,t?[e,t]:[e]);r.api={remove:s},r.remove=s,["before","error","after","wrap"].forEach(function(o){var a=t?[e,o,t]:[e,o];r[o]=r.api[o]=ir(cs,null).apply(null,a)})}function us(){var r="h",e={registry:{}},t=Pr.bind(null,e,r);return Gr(t,e,r),t}function Sr(){var r={registry:{}},e=Pr.bind(null,r);return Gr(e,r),e}var cr=!1;function ge(){return cr||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),cr=!0),Sr()}ge.Singular=us.bind();ge.Collection=Sr.bind();Se.exports=ge;Se.exports.Hook=ge;Se.exports.Singular=ge.Singular;var ps=Se.exports.Collection=ge.Collection,ds="9.0.5",gs=`octokit-endpoint.js/${ds} ${Ge()}`,ms={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":gs},mediaType:{format:""}};function hs(r){return r?Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=r[t],e),{}):{}}function Ts(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Or(r,e){const t=Object.assign({},r);return Object.keys(e).forEach(s=>{Ts(e[s])?s in r?t[s]=Or(r[s],e[s]):Object.assign(t,{[s]:e[s]}):Object.assign(t,{[s]:e[s]})}),t}function lr(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function Le(r,e,t){var o;if(typeof e=="string"){let[a,n]=e.split(" ");t=Object.assign(n?{method:a,url:n}:{url:a},t)}else t=Object.assign({},e);t.headers=hs(t.headers),lr(t),lr(t.headers);const s=Or(r||{},t);return t.url==="/graphql"&&(r&&((o=r.mediaType.previews)!=null&&o.length)&&(s.mediaType.previews=r.mediaType.previews.filter(a=>!s.mediaType.previews.includes(a)).concat(s.mediaType.previews)),s.mediaType.previews=(s.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),s}function Es(r,e){const t=/\?/.test(r)?"&":"?",s=Object.keys(e);return s.length===0?r:r+t+s.map(o=>o==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${o}=${encodeURIComponent(e[o])}`).join("&")}var fs=/\{[^}]+\}/g;function bs(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function _s(r){const e=r.match(fs);return e?e.map(bs).reduce((t,s)=>t.concat(s),[]):[]}function ur(r,e){const t={__proto__:null};for(const s of Object.keys(r))e.indexOf(s)===-1&&(t[s]=r[s]);return t}function Ar(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function ce(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function me(r,e,t){return e=r==="+"||r==="#"?Ar(e):ce(e),t?ce(t)+"="+e:e}function ne(r){return r!=null}function Re(r){return r===";"||r==="&"||r==="?"}function vs(r,e,t,s){var o=r[t],a=[];if(ne(o)&&o!=="")if(typeof o=="string"||typeof o=="number"||typeof o=="boolean")o=o.toString(),s&&s!=="*"&&(o=o.substring(0,parseInt(s,10))),a.push(me(e,o,Re(e)?t:""));else if(s==="*")Array.isArray(o)?o.filter(ne).forEach(function(n){a.push(me(e,n,Re(e)?t:""))}):Object.keys(o).forEach(function(n){ne(o[n])&&a.push(me(e,o[n],n))});else{const n=[];Array.isArray(o)?o.filter(ne).forEach(function(i){n.push(me(e,i))}):Object.keys(o).forEach(function(i){ne(o[i])&&(n.push(ce(i)),n.push(me(e,o[i].toString())))}),Re(e)?a.push(ce(t)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?ne(o)&&a.push(ce(t)):o===""&&(e==="&"||e==="?")?a.push(ce(t)+"="):o===""&&a.push("");return a}function ws(r){return{expand:ks.bind(null,r)}}function ks(r,e){var t=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(s,o,a){if(o){let i="";const l=[];if(t.indexOf(o.charAt(0))!==-1&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(m){var h=/([^:\*]*)(?::(\d+)|(\*))?/.exec(m);l.push(vs(e,i,h[1],h[2]||h[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return Ar(a)}),r==="/"?r:r.replace(/\/$/,"")}function Rr(r){var h;let e=r.method.toUpperCase(),t=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},r.headers),o,a=ur(r,["method","baseUrl","url","headers","request","mediaType"]);const n=_s(t);t=ws(t).expand(a),/^http/.test(t)||(t=r.baseUrl+t);const i=Object.keys(r).filter(u=>n.includes(u)).concat("baseUrl"),l=ur(a,i);if(!/application\/octet-stream/i.test(s.accept)&&(r.mediaType.format&&(s.accept=s.accept.split(/,/).map(u=>u.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&(h=r.mediaType.previews)!=null&&h.length)){const u=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=u.concat(r.mediaType.previews).map(b=>{const k=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${b}-preview${k}`}).join(",")}return["GET","HEAD"].includes(e)?t=Es(t,l):"data"in l?o=l.data:Object.keys(l).length&&(o=l),!s["content-type"]&&typeof o<"u"&&(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof o>"u"&&(o=""),Object.assign({method:e,url:t,headers:s},typeof o<"u"?{body:o}:null,r.request?{request:r.request}:null)}function ys(r,e,t){return Rr(Le(r,e,t))}function Cr(r,e){const t=Le(r,e),s=ys.bind(null,t);return Object.assign(s,{DEFAULTS:t,defaults:Cr.bind(null,t),merge:Le.bind(null,t),parse:Rr})}var Ps=Cr(null,ms);class pr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Me={exports:{}},Gs=Fr;function Fr(r,e){if(r&&e)return Fr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(s){t[s]=r[s]}),t;function t(){for(var s=new Array(arguments.length),o=0;oconsole.warn(r)),As=Lr(r=>console.warn(r)),he=class extends Error{constructor(r,e,t){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let s;"headers"in t&&typeof t.headers<"u"&&(s=t.headers),"response"in t&&(this.response=t.response,s=t.response.headers);const o=Object.assign({},t.request);t.request.headers.authorization&&(o.headers=Object.assign({},t.request.headers,{authorization:t.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o,Object.defineProperty(this,"code",{get(){return Os(new pr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return As(new pr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}})}},Rs="8.4.0";function Cs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Fs(r){return r.arrayBuffer()}function dr(r){var i,l,m,h;const e=r.request&&r.request.log?r.request.log:console,t=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(Cs(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let s={},o,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(m=r.request)==null?void 0:m.redirect,headers:r.headers,signal:(h=r.request)==null?void 0:h.signal,...r.body&&{duplex:"half"}}).then(async u=>{a=u.url,o=u.status;for(const b of u.headers)s[b[0]]=b[1];if("deprecation"in s){const b=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/),k=b&&b.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${k?`. See ${k}`:""}`)}if(!(o===204||o===205)){if(r.method==="HEAD"){if(o<400)return;throw new he(u.statusText,o,{response:{url:a,status:o,headers:s,data:void 0},request:r})}if(o===304)throw new he("Not modified",o,{response:{url:a,status:o,headers:s,data:await Ce(u)},request:r});if(o>=400){const b=await Ce(u);throw new he(Us(b),o,{response:{url:a,status:o,headers:s,data:b},request:r})}return t?await Ce(u):u.body}}).then(u=>({status:o,url:a,headers:s,data:u})).catch(u=>{if(u instanceof he)throw u;if(u.name==="AbortError")throw u;let b=u.message;throw u.name==="TypeError"&&"cause"in u&&(u.cause instanceof Error?b=u.cause.message:typeof u.cause=="string"&&(b=u.cause)),new he(b,500,{request:r})})}async function Ce(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():Fs(r)}function Us(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function Ie(r,e){const t=r.defaults(e);return Object.assign(function(o,a){const n=t.merge(o,a);if(!n.request||!n.request.hook)return dr(t.parse(n));const i=(l,m)=>dr(t.parse(t.merge(l,m)));return Object.assign(i,{endpoint:t,defaults:Ie.bind(null,t)}),n.request.hook(i,n)},{endpoint:t,defaults:Ie.bind(null,t)})}var xe=Ie(Ps,{headers:{"user-agent":`octokit-request.js/${Rs} ${Ge()}`}}),Ds="7.1.0";function Ls(r){return`Request failed due to following response errors: +import{d as Q,G as x,am as Xr,r as q,m as ze,I as Yr,a as P,c as g,an as ue,u as de,_ as Be,ao as et,ap as Pr,P as X,aq as rt,h as D,g as tt,f as st,b as ot,ar as nt,as as at,at as it,au as ct,j as Gr,av as Or,aw as lt,ax as ut,ay as pt,az as dt,A as _e,a1 as Sr,T as be,B as A,q as $,a9 as Le,ak as xe,aj as Ar,z as le,aA as gt,aB as mt,aC as ve,aD as ht,aE as Tt,aF as Et,U as y,a2 as Te,a3 as S,X as I,Y as f,aG as ft,al as bt,M as vt,aH as _t,t as wt,aI as yt,aJ as kt,aK as Pt,o as Gt,aL as Ot,V as O,W as u,a4 as h,ag as Ye,$ as j,a5 as M,a6 as St,aM as er,Z as J,a8 as oe,R as Ce,O as At,y as rr,aN as Rt,aO as Ct,aP as Ft,aQ as Ut,a0 as Dt}from"./index-0205daf8.js";import{_ as Lt}from"./index-728b29ca.js";/* empty css */import{V as xt}from"./Checkbox-951f37ba.js";import{D as It}from"./index-e9cc5bd5.js";function tr(r){var e=r.prefixCls,t=r.value,s=r.current,o=r.offset,a=o===void 0?0:o,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),g("p",{style:n,class:ue("".concat(e,"-only-unit"),{current:s})},[t])}function $t(r,e,t){for(var s=r,o=0;(s+10)%10!==e;)s+=t,o+=t;return o}const jt=Q({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var t=x(function(){return Number(e.value)}),s=x(function(){return Math.abs(e.count)}),o=Xr({prevValue:t.value,prevCount:s.value}),a=function(){o.prevValue=t.value,o.prevCount=s.value},n=q();return ze(t,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Yr(function(){clearTimeout(n.value)}),function(){var i,l={},m=t.value;if(o.prevValue===m||Number.isNaN(m)||Number.isNaN(o.prevValue))i=[tr(P(P({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var T=m+10,p=[],b=m;b<=T;b+=1)p.push(b);var k=p.findIndex(function(C){return C%10===o.prevValue});i=p.map(function(C,v){var F=C%10;return tr(P(P({},e),{},{value:F,offset:v-k,current:v===k}))});var R=o.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),m=x(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),T=x(function(){return l.value==="0"||l.value===0}),p=x(function(){return e.dot&&!T.value}),b=x(function(){return p.value?"":l.value}),k=x(function(){var w=b.value===null||b.value===void 0||b.value==="";return(w||T.value&&!e.showZero)&&!p.value}),R=q(e.count),C=q(b.value),v=q(p.value);ze([function(){return e.count},b,p],function(){k.value||(R.value=e.count,C.value=b.value,v.value=p.value)},{immediate:!0});var F=x(function(){var w;return w={},D(w,"".concat(n.value,"-status-dot"),m.value),D(w,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(w,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),w}),V=x(function(){return e.color&&!Ee(e.color)?{background:e.color}:{}}),z=x(function(){var w;return w={},D(w,"".concat(n.value,"-dot"),v.value),D(w,"".concat(n.value,"-count"),!v.value),D(w,"".concat(n.value,"-count-sm"),e.size==="small"),D(w,"".concat(n.value,"-multiple-words"),!v.value&&C.value&&C.value.toString().length>1),D(w,"".concat(n.value,"-status-").concat(e.status),!!e.status),D(w,"".concat(n.value,"-status-").concat(e.color),Ee(e.color)),w});return function(){var w,c,E,G=e.offset,_=e.title,L=e.color,Z=o.style,Y=tt(s,e,"text"),H=n.value,N=R.value,W=st((w=s.default)===null||w===void 0?void 0:w.call(s));W=W.length?W:null;var K=!!(!k.value||s.count),ee=function(){if(!G)return P({},Z);var Ge={marginTop:Mt(G[1])?"".concat(G[1],"px"):G[1]};return i.value==="rtl"?Ge.left="".concat(parseInt(G[0],10),"px"):Ge.right="".concat(-parseInt(G[0],10),"px"),P(P({},Ge),Z)}(),we=_??(typeof N=="string"||typeof N=="number"?N:void 0),ye=K||!Y?null:g("span",{class:"".concat(H,"-status-text")},[Y]),ke=ot(N)==="object"||N===void 0&&s.count?Pr(N??((c=s.count)===null||c===void 0?void 0:c.call(s)),{style:ee},!1):null,d=ue(H,(E={},D(E,"".concat(H,"-status"),m.value),D(E,"".concat(H,"-not-a-wrapper"),!W),D(E,"".concat(H,"-rtl"),i.value==="rtl"),E),o.class);if(!W&&m.value){var U=ee.color;return g("span",P(P({},o),{},{class:d,style:ee}),[g("span",{class:F.value,style:V.value},null),g("span",{style:{color:U},class:"".concat(H,"-status-text")},[Y])])}var se=nt(W?"".concat(H,"-zoom"):"",{appear:!1}),Pe=P(P({},ee),e.numberStyle);return L&&!Ee(L)&&(Pe=Pe||{},Pe.background=L),g("span",P(P({},o),{},{class:d}),[W,g(at,se,{default:function(){return[it(g(zt,{prefixCls:e.scrollNumberPrefixCls,show:K,class:z.value,count:C.value,title:we,style:Pe,key:"scrollNumber"},{default:function(){return[ke]}}),[[ct,K]])]}}),ye])}}});Oe.install=function(r){return r.component(Oe.name,Oe),r.component(Ie.name,Ie),r};var Kt=["prefixCls","id"],Rr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:X.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const B=Q({compatConfig:{MODE:3},name:"ARadio",props:Rr(),setup:function(e,t){var s=t.emit,o=t.expose,a=t.slots,n=Gr(),i=q(),l=Or("radioGroupContext",void 0),m=de("radio",e),T=m.prefixCls,p=m.direction,b=function(){i.value.focus()},k=function(){i.value.blur()};o({focus:b,blur:k});var R=function(F){var V=F.target.checked;s("update:checked",V),s("update:value",V),s("change",F),n.onFieldChange()},C=function(F){s("change",F),l&&l.onRadioChange&&l.onRadioChange(F)};return function(){var v,F=l;e.prefixCls;var V=e.id,z=V===void 0?n.id.value:V,w=Be(e,Kt),c=P({prefixCls:T.value,id:z},lt(w,["onUpdate:checked","onUpdate:value"]));F?(c.name=F.props.name,c.onChange=C,c.checked=e.value===F.stateValue.value,c.disabled=e.disabled||F.props.disabled):c.onChange=R;var E=ue((v={},D(v,"".concat(T.value,"-wrapper"),!0),D(v,"".concat(T.value,"-wrapper-checked"),c.checked),D(v,"".concat(T.value,"-wrapper-disabled"),c.disabled),D(v,"".concat(T.value,"-wrapper-rtl"),p.value==="rtl"),v));return g("label",{class:E},[g(xt,P(P({},c),{},{type:"radio",ref:i}),null),a.default&&g("span",null,[a.default()])])}}});var Jt=pt("large","default","small"),Qt=function(){return{prefixCls:String,value:X.any,size:X.oneOf(Jt),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const He=Q({compatConfig:{MODE:3},name:"ARadioGroup",props:Qt(),setup:function(e,t){var s=t.slots,o=t.emit,a=Gr(),n=de("radio",e),i=n.prefixCls,l=n.direction,m=n.size,T=q(e.value),p=q(!1);ze(function(){return e.value},function(k){T.value=k,p.value=!1});var b=function(R){var C=T.value,v=R.target.value;"value"in e||(T.value=v),!p.value&&v!==C&&(p.value=!0,o("update:value",v),o("change",R),a.onFieldChange()),dt(function(){p.value=!1})};return ut("radioGroupContext",{onRadioChange:b,stateValue:T,props:e}),function(){var k,R=e.options,C=e.optionType,v=e.buttonStyle,F=e.id,V=F===void 0?a.id.value:F,z="".concat(i.value,"-group"),w=ue(z,"".concat(z,"-").concat(v),(k={},D(k,"".concat(z,"-").concat(m.value),m.value),D(k,"".concat(z,"-rtl"),l.value==="rtl"),k)),c=null;if(R&&R.length>0){var E=C==="button"?"".concat(i.value,"-button"):i.value;c=R.map(function(_){if(typeof _=="string"||typeof _=="number")return g(B,{key:_,prefixCls:E,disabled:e.disabled,value:_,checked:T.value===_},{default:function(){return[_]}});var L=_.value,Z=_.disabled,Y=_.label;return g(B,{key:"radio-group-value-options-".concat(L),prefixCls:E,disabled:Z||e.disabled,value:L,checked:T.value===L},{default:function(){return[Y]}})})}else{var G;c=(G=s.default)===null||G===void 0?void 0:G.call(s)}return g("div",{class:w,id:V},[c])}}}),fe=Q({compatConfig:{MODE:3},name:"ARadioButton",props:Rr(),setup:function(e,t){var s=t.slots,o=de("radio-button",e),a=o.prefixCls,n=Or("radioGroupContext",void 0);return function(){var i,l=P(P({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),g(B,l,{default:function(){return[(i=s.default)===null||i===void 0?void 0:i.call(s)]}})}}});B.Group=He;B.Button=fe;B.install=function(r){return r.component(B.name,B),r.component(B.Group.name,B.Group),r.component(B.Button.name,B.Button),r};var Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const Xt=Zt;function sr(r){for(var e=1;e{const t=Sr(),s=q(e??""),o=q(r),a=async()=>{const n=await Et({directory:!0,defaultPath:e});if(typeof n=="string")s.value=n;else return};s.value=await new Promise(n=>{be.confirm({title:A("inputTargetFolderPath"),width:"800px",content:()=>{var i;return $("div",[(i=t.conf)!=null&&i.enable_access_control?$("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",Le?$(xe,{onClick:a,style:{margin:"4px 0"}},A("selectFolder")):"",$(Ar,{value:s.value,"onUpdate:value":l=>s.value=l}),$("div",[$("span",A("type")+": "),$(He,{value:o.value,"onUpdate:value":l=>o.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[$(fe,{value:"walk"},"Walk"),$(fe,{value:"scanned"},"Normal"),$(fe,{value:"scanned-fixed"},"Fixed")])]),$("p","Walk: "+A("walkModeDoc")),$("p","Normal: "+A("normalModelDoc")),$("p","Fixed: "+A("fixedModeDoc"))])},async onOk(){if(!s.value)throw le.error(A("pathIsEmpty")),new Error("pathIsEmpty");(await gt([s.value]))[s.value]?n(s.value):le.error(A("pathDoesNotExist"))}})}),be.confirm({content:A("confirmToAddToExtraPath"),async onOk(){await mt({types:[o.value],path:s.value}),le.success(A("addCompleted")),ve.emit("searchIndexExpired"),ve.emit("updateGlobalSetting")}})},ur=(r,e)=>{be.confirm({content:A("confirmDelete"),closable:!0,async onOk(){await ht({types:[e],path:r}),le.success(A("removeCompleted")),ve.emit("searchIndexExpired"),ve.emit("updateGlobalSetting")}})},pr=r=>{const e=q("");be.confirm({title:A("inputAlias"),content:()=>$("div",[$("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),$(Ar,{value:e.value,"onUpdate:value":t=>e.value=t})]),async onOk(){await Tt({alias:e.value,path:r}),le.success(A("addAliasCompleted")),ve.emit("updateGlobalSetting")}})},dr=Q({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const t=s=>{switch(s.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(s,o)=>{const a=bt,n=vt,i=It;return y(),Te(i,{trigger:["contextmenu"]},{overlay:S(()=>[g(n,{onClick:t},{default:S(()=>[g(a,{key:"openOnTheRight"},{default:S(()=>[I(f(s.$t("openOnTheRight")),1)]),_:1}),g(a,{key:"openInNewTab"},{default:S(()=>[I(f(s.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:S(()=>[ft(s.$slots,"default")]),_:3})}}});function Ae(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var Re={exports:{}},hs=Cr;function Cr(r,e,t,s){if(typeof t!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce(function(o,a){return Cr.bind(null,r,a,o,s)},t)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(o,a){return a.hook.bind(null,o,s)},t)():t(s)})}var Ts=Es;function Es(r,e,t,s){var o=s;r.registry[t]||(r.registry[t]=[]),e==="before"&&(s=function(a,n){return Promise.resolve().then(o.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(s=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,o(i,n)}).then(function(){return i})}),e==="error"&&(s=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return o(i,n)})}),r.registry[t].push({hook:s,orig:o})}var fs=bs;function bs(r,e,t){if(r.registry[e]){var s=r.registry[e].map(function(o){return o.orig}).indexOf(t);s!==-1&&r.registry[e].splice(s,1)}}var Fr=hs,vs=Ts,_s=fs,gr=Function.bind,mr=gr.bind(gr);function Ur(r,e,t){var s=mr(_s,null).apply(null,t?[e,t]:[e]);r.api={remove:s},r.remove=s,["before","error","after","wrap"].forEach(function(o){var a=t?[e,o,t]:[e,o];r[o]=r.api[o]=mr(vs,null).apply(null,a)})}function ws(){var r="h",e={registry:{}},t=Fr.bind(null,e,r);return Ur(t,e,r),t}function Dr(){var r={registry:{}},e=Fr.bind(null,r);return Ur(e,r),e}var hr=!1;function ge(){return hr||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),hr=!0),Dr()}ge.Singular=ws.bind();ge.Collection=Dr.bind();Re.exports=ge;Re.exports.Hook=ge;Re.exports.Singular=ge.Singular;var ys=Re.exports.Collection=ge.Collection,ks="9.0.5",Ps=`octokit-endpoint.js/${ks} ${Ae()}`,Gs={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ps},mediaType:{format:""}};function Os(r){return r?Object.keys(r).reduce((e,t)=>(e[t.toLowerCase()]=r[t],e),{}):{}}function Ss(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Lr(r,e){const t=Object.assign({},r);return Object.keys(e).forEach(s=>{Ss(e[s])?s in r?t[s]=Lr(r[s],e[s]):Object.assign(t,{[s]:e[s]}):Object.assign(t,{[s]:e[s]})}),t}function Tr(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function $e(r,e,t){var o;if(typeof e=="string"){let[a,n]=e.split(" ");t=Object.assign(n?{method:a,url:n}:{url:a},t)}else t=Object.assign({},e);t.headers=Os(t.headers),Tr(t),Tr(t.headers);const s=Lr(r||{},t);return t.url==="/graphql"&&(r&&((o=r.mediaType.previews)!=null&&o.length)&&(s.mediaType.previews=r.mediaType.previews.filter(a=>!s.mediaType.previews.includes(a)).concat(s.mediaType.previews)),s.mediaType.previews=(s.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),s}function As(r,e){const t=/\?/.test(r)?"&":"?",s=Object.keys(e);return s.length===0?r:r+t+s.map(o=>o==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${o}=${encodeURIComponent(e[o])}`).join("&")}var Rs=/\{[^}]+\}/g;function Cs(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function Fs(r){const e=r.match(Rs);return e?e.map(Cs).reduce((t,s)=>t.concat(s),[]):[]}function Er(r,e){const t={__proto__:null};for(const s of Object.keys(r))e.indexOf(s)===-1&&(t[s]=r[s]);return t}function xr(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function ce(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function me(r,e,t){return e=r==="+"||r==="#"?xr(e):ce(e),t?ce(t)+"="+e:e}function ne(r){return r!=null}function Ue(r){return r===";"||r==="&"||r==="?"}function Us(r,e,t,s){var o=r[t],a=[];if(ne(o)&&o!=="")if(typeof o=="string"||typeof o=="number"||typeof o=="boolean")o=o.toString(),s&&s!=="*"&&(o=o.substring(0,parseInt(s,10))),a.push(me(e,o,Ue(e)?t:""));else if(s==="*")Array.isArray(o)?o.filter(ne).forEach(function(n){a.push(me(e,n,Ue(e)?t:""))}):Object.keys(o).forEach(function(n){ne(o[n])&&a.push(me(e,o[n],n))});else{const n=[];Array.isArray(o)?o.filter(ne).forEach(function(i){n.push(me(e,i))}):Object.keys(o).forEach(function(i){ne(o[i])&&(n.push(ce(i)),n.push(me(e,o[i].toString())))}),Ue(e)?a.push(ce(t)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?ne(o)&&a.push(ce(t)):o===""&&(e==="&"||e==="?")?a.push(ce(t)+"="):o===""&&a.push("");return a}function Ds(r){return{expand:Ls.bind(null,r)}}function Ls(r,e){var t=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(s,o,a){if(o){let i="";const l=[];if(t.indexOf(o.charAt(0))!==-1&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach(function(m){var T=/([^:\*]*)(?::(\d+)|(\*))?/.exec(m);l.push(Us(e,i,T[1],T[2]||T[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return xr(a)}),r==="/"?r:r.replace(/\/$/,"")}function Ir(r){var T;let e=r.method.toUpperCase(),t=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),s=Object.assign({},r.headers),o,a=Er(r,["method","baseUrl","url","headers","request","mediaType"]);const n=Fs(t);t=Ds(t).expand(a),/^http/.test(t)||(t=r.baseUrl+t);const i=Object.keys(r).filter(p=>n.includes(p)).concat("baseUrl"),l=Er(a,i);if(!/application\/octet-stream/i.test(s.accept)&&(r.mediaType.format&&(s.accept=s.accept.split(/,/).map(p=>p.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&(T=r.mediaType.previews)!=null&&T.length)){const p=s.accept.match(/[\w-]+(?=-preview)/g)||[];s.accept=p.concat(r.mediaType.previews).map(b=>{const k=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${b}-preview${k}`}).join(",")}return["GET","HEAD"].includes(e)?t=As(t,l):"data"in l?o=l.data:Object.keys(l).length&&(o=l),!s["content-type"]&&typeof o<"u"&&(s["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof o>"u"&&(o=""),Object.assign({method:e,url:t,headers:s},typeof o<"u"?{body:o}:null,r.request?{request:r.request}:null)}function xs(r,e,t){return Ir($e(r,e,t))}function $r(r,e){const t=$e(r,e),s=xs.bind(null,t);return Object.assign(s,{DEFAULTS:t,defaults:$r.bind(null,t),merge:$e.bind(null,t),parse:Ir})}var Is=$r(null,Gs);class fr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Qe={exports:{}},$s=jr;function jr(r,e){if(r&&e)return jr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(s){t[s]=r[s]}),t;function t(){for(var s=new Array(arguments.length),o=0;oconsole.warn(r)),Vs=zr(r=>console.warn(r)),he=class extends Error{constructor(r,e,t){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let s;"headers"in t&&typeof t.headers<"u"&&(s=t.headers),"response"in t&&(this.response=t.response,s=t.response.headers);const o=Object.assign({},t.request);t.request.headers.authorization&&(o.headers=Object.assign({},t.request.headers,{authorization:t.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=o,Object.defineProperty(this,"code",{get(){return qs(new fr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return Vs(new fr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),s||{}}})}},zs="8.4.0";function Bs(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const t=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(r)}function Hs(r){return r.arrayBuffer()}function br(r){var i,l,m,T;const e=r.request&&r.request.log?r.request.log:console,t=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(Bs(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let s={},o,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(m=r.request)==null?void 0:m.redirect,headers:r.headers,signal:(T=r.request)==null?void 0:T.signal,...r.body&&{duplex:"half"}}).then(async p=>{a=p.url,o=p.status;for(const b of p.headers)s[b[0]]=b[1];if("deprecation"in s){const b=s.link&&s.link.match(/<([^>]+)>; rel="deprecation"/),k=b&&b.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${s.sunset}${k?`. See ${k}`:""}`)}if(!(o===204||o===205)){if(r.method==="HEAD"){if(o<400)return;throw new he(p.statusText,o,{response:{url:a,status:o,headers:s,data:void 0},request:r})}if(o===304)throw new he("Not modified",o,{response:{url:a,status:o,headers:s,data:await De(p)},request:r});if(o>=400){const b=await De(p);throw new he(Ns(b),o,{response:{url:a,status:o,headers:s,data:b},request:r})}return t?await De(p):p.body}}).then(p=>({status:o,url:a,headers:s,data:p})).catch(p=>{if(p instanceof he)throw p;if(p.name==="AbortError")throw p;let b=p.message;throw p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?b=p.cause.message:typeof p.cause=="string"&&(b=p.cause)),new he(b,500,{request:r})})}async function De(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():Hs(r)}function Ns(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function je(r,e){const t=r.defaults(e);return Object.assign(function(o,a){const n=t.merge(o,a);if(!n.request||!n.request.hook)return br(t.parse(n));const i=(l,m)=>br(t.parse(t.merge(l,m)));return Object.assign(i,{endpoint:t,defaults:je.bind(null,t)}),n.request.hook(i,n)},{endpoint:t,defaults:je.bind(null,t)})}var qe=je(Is,{headers:{"user-agent":`octokit-request.js/${zs} ${Ae()}`}}),Ms="7.1.0";function Ws(r){return`Request failed due to following response errors: `+r.errors.map(e=>` - ${e.message}`).join(` -`)}var Is=class extends Error{constructor(r,e,t){super(Ls(t)),this.request=r,this.headers=e,this.response=t,this.name="GraphqlResponseError",this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},xs=["method","baseUrl","url","headers","request","query","mediaType"],js=["query","method","url"],gr=/\/api\/v3\/?$/;function $s(r,e,t){if(t){if(typeof e=="string"&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const n in t)if(js.includes(n))return Promise.reject(new Error(`[@octokit/graphql] "${n}" cannot be used as variable name`))}const s=typeof e=="string"?Object.assign({query:e},t):e,o=Object.keys(s).reduce((n,i)=>xs.includes(i)?(n[i]=s[i],n):(n.variables||(n.variables={}),n.variables[i]=s[i],n),{}),a=s.baseUrl||r.endpoint.DEFAULTS.baseUrl;return gr.test(a)&&(o.url=a.replace(gr,"/api/graphql")),r(o).then(n=>{if(n.data.errors){const i={};for(const l of Object.keys(n.headers))i[l]=n.headers[l];throw new Is(o,i,n.data)}return n.data.data})}function We(r,e){const t=r.defaults(e);return Object.assign((o,a)=>$s(t,o,a),{defaults:We.bind(null,t),endpoint:t.endpoint})}We(xe,{headers:{"user-agent":`octokit-graphql.js/${Ds} ${Ge()}`},method:"POST",url:"/graphql"});function qs(r){return We(r,{method:"POST",url:"/graphql"})}var Vs=/^v1\./,Bs=/^ghs_/,Hs=/^ghu_/;async function zs(r){const e=r.split(/\./).length===3,t=Vs.test(r)||Bs.test(r),s=Hs.test(r);return{type:"token",token:r,tokenType:e?"app":t?"installation":s?"user-to-server":"oauth"}}function Ns(r){return r.split(/\./).length===3?`bearer ${r}`:`token ${r}`}async function Ms(r,e,t,s){const o=e.endpoint.merge(t,s);return o.headers.authorization=Ns(r),e(o)}var Ws=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(zs.bind(null,e),{hook:Ms.bind(null,e)})},Ir="5.2.0",mr=()=>{},Ks=console.warn.bind(console),Js=console.error.bind(console),hr=`octokit-core.js/${Ir} ${Ge()}`,pe,Zs=(pe=class{static defaults(e){return class extends this{constructor(...s){const o=s[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var o;const t=this.plugins;return o=class extends this{},(()=>{o.plugins=t.concat(e.filter(n=>!t.includes(n)))})(),o}constructor(e={}){const t=new ps,s={baseUrl:xe.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${hr}`:hr,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=xe.defaults(s),this.graphql=qs(this.request).defaults(s),this.log=Object.assign({debug:mr,info:mr,warn:Ks,error:Js},e.log),this.hook=t,e.authStrategy){const{authStrategy:a,...n}=e,i=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{const a=Ws(e.auth);t.wrap("request",a.hook),this.auth=a}const o=this.constructor;for(let a=0;a{pe.VERSION=Ir})(),(()=>{pe.plugins=[]})(),pe),Qs="4.0.1";function xr(r){r.hook.wrap("request",(e,t)=>{r.log.debug("request",t);const s=Date.now(),o=r.request.endpoint.parse(t),a=o.url.replace(t.baseUrl,"");return e(t).then(n=>(r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n)).catch(n=>{throw r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n})})}xr.VERSION=Qs;var Xs="11.3.1";function Ys(r){if(!r.data)return{...r,data:[]};if(!("total_count"in r.data&&!("url"in r.data)))return r;const t=r.data.incomplete_results,s=r.data.repository_selection,o=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],n=r.data[a];return r.data=n,typeof t<"u"&&(r.data.incomplete_results=t),typeof s<"u"&&(r.data.repository_selection=s),r.data.total_count=o,r}function Ke(r,e,t){const s=typeof e=="function"?e.endpoint(t):r.request.endpoint(e,t),o=typeof e=="function"?e:r.request,a=s.method,n=s.headers;let i=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!i)return{done:!0};try{const l=await o({method:a,url:i,headers:n}),m=Ys(l);return i=((m.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:m}}catch(l){if(l.status!==409)throw l;return i="",{value:{status:200,headers:{},data:[]}}}}})}}function jr(r,e,t,s){return typeof t=="function"&&(s=t,t=void 0),$r(r,[],Ke(r,e,t)[Symbol.asyncIterator](),s)}function $r(r,e,t,s){return t.next().then(o=>{if(o.done)return e;let a=!1;function n(){a=!0}return e=e.concat(s?s(o.value,n):o.value.data),a?e:$r(r,e,t,s)})}Object.assign(jr,{iterator:Ke});function qr(r){return{paginate:Object.assign(jr.bind(null,r),{iterator:Ke.bind(null,r)})}}qr.VERSION=Xs;var eo="13.2.2",ro={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},to=ro,ee=new Map;for(const[r,e]of Object.entries(to))for(const[t,s]of Object.entries(e)){const[o,a,n]=s,[i,l]=o.split(/ /),m=Object.assign({method:i,url:l},a);ee.has(r)||ee.set(r,new Map),ee.get(r).set(t,{scope:r,methodName:t,endpointDefaults:m,decorations:n})}var so={has({scope:r},e){return ee.get(r).has(e)},getOwnPropertyDescriptor(r,e){return{value:this.get(r,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(r,e,t){return Object.defineProperty(r.cache,e,t),!0},deleteProperty(r,e){return delete r.cache[e],!0},ownKeys({scope:r}){return[...ee.get(r).keys()]},set(r,e,t){return r.cache[e]=t},get({octokit:r,scope:e,cache:t},s){if(t[s])return t[s];const o=ee.get(e).get(s);if(!o)return;const{endpointDefaults:a,decorations:n}=o;return n?t[s]=no(r,e,s,a,n):t[s]=r.request.defaults(a),t[s]}};function oo(r){const e={};for(const t of ee.keys())e[t]=new Proxy({octokit:r,scope:t,cache:{}},so);return e}function no(r,e,t,s,o){const a=r.request.defaults(s);function n(...i){let l=a.endpoint.merge(...i);if(o.mapToData)return l=Object.assign({},l,{data:l[o.mapToData],[o.mapToData]:void 0}),a(l);if(o.renamed){const[m,h]=o.renamed;r.log.warn(`octokit.${e}.${t}() has been renamed to octokit.${m}.${h}()`)}if(o.deprecated&&r.log.warn(o.deprecated),o.renamedParameters){const m=a.endpoint.merge(...i);for(const[h,u]of Object.entries(o.renamedParameters))h in m&&(r.log.warn(`"${h}" parameter is deprecated for "octokit.${e}.${t}()". Use "${u}" instead`),u in m||(m[u]=m[h]),delete m[h]);return a(m)}return a(...i)}return Object.assign(n,a)}function Vr(r){const e=oo(r);return{...e,rest:e}}Vr.VERSION=eo;var ao="20.1.1",io=Zs.plugin(xr,Vr,qr).defaults({userAgent:`octokit-rest.js/${ao}`});const co={beforeDevCommand:"yarn dev",beforeBuildCommand:"yarn build",devPath:"http://localhost:5173",distDir:"../dist",withGlobalTauri:!1},lo={allowlist:{all:!0,fs:{all:!0,scope:["**"]},shell:{all:!0,open:!0,sidecar:!0,scope:[{name:"iib_api_server",sidecar:!0}]}},bundle:{active:!0,targets:"all",identifier:"com.zanllp.iib",icon:["icons/32x32.png","icons/128x128.png","icons/128x128@2x.png","icons/icon.icns","icons/icon.ico"],externalBin:["iib_api_server"]},security:{csp:null},windows:[{fullscreen:!1,resizable:!0,fileDropEnabled:!1,title:"Infinite Image Browsing",width:800,height:600,maximized:!0}]},uo={build:co,package:{productName:"Infinite Image Browsing",version:"1.5.1"},tauri:lo},Br=new io,po="v"+uo.package.version,ae=B(),je=B(""),Hr=B(""),zr=B(""),ie=L(()=>({tag:zr.value||po,hash:Hr.value})),go=L(()=>je.value?je.value!==ie.value.tag:!1);async function mo(r,e){try{return(await Br.repos.listCommits({owner:r,repo:e,per_page:1})).data[0]}catch(t){console.error("Error fetching the latest commit:",t)}}async function ho(r,e){try{return(await Br.repos.getLatestRelease({owner:r,repo:e})).data}catch(t){console.error("Error fetching the latest release:",t)}}const Tr="zanllp",Er="sd-webui-infinite-image-browsing";Et(500+500*Math.random()).then(async()=>{ft().then(e=>{zr.value=e.tag??"",Hr.value=e.hash??""}),ae.value=await mo(Tr,Er);const r=await ho(Tr,Er);je.value=(r==null?void 0:r.tag_name)??""});const re=r=>(St("data-v-f8cdd97f"),r=r(),Ot(),r),To={class:"container"},Eo={class:"header"},fo={class:"header-left"},bo={class:"magic-switch-compact"},_o={class:"switch-tooltip"},vo={class:"tooltip-title"},wo={class:"tooltip-status"},ko={class:"tooltip-desc"},yo={class:"switch-bg"},Po=re(()=>p("div",{class:"switch-track"},null,-1)),Go={class:"switch-icon"},So=re(()=>p("div",{class:"switch-glow"},null,-1)),Oo={class:"switch-label"},Ao={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},Ro=re(()=>p("div",{"flex-placeholder":""},null,-1)),Co=re(()=>p("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"quick-action"},"Github",-1)),Fo={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example",target:"_blank",class:"quick-action"},Uo=re(()=>p("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/releases",target:"_blank",class:"quick-action"},"Releases",-1)),Do={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log",target:"_blank",class:"quick-action"},Lo={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"quick-action"},Io={key:1,class:"quick-action"},xo={class:"access-mode-message"},jo=re(()=>p("div",{"flex-placeholder":""},null,-1)),$o={class:"content"},qo={class:"feature-item"},Vo={class:"text line-clamp-1"},Bo={style:{margin:"0 6px"}},Ho=re(()=>p("span",{style:{"margin-right":"8px"}},"🎲",-1)),zo=["onClick"],No={class:"text line-clamp-2"},Mo={key:0,class:"feature-item"},Wo={class:"text line-clamp-1"},Ko=["onClick"],Jo={class:"text line-clamp-2"},Zo={key:0,class:"fixed"},Qo={class:"feature-item"},Xo=["onClick"],Yo={class:"text line-clamp-1"},en={class:"text line-clamp-1"},rn={class:"text line-clamp-1"},tn={class:"text line-clamp-1"},sn=["onClick"],on={class:"text line-clamp-1"},nn={key:1,class:"feature-item recent"},an={class:"title"},cn=["onClick"],ln={class:"text line-clamp-1"},un={key:0},pn={key:1},dn={key:2},gn={key:3},mn=J({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{},popAddPathModal:{}},setup(r){const e=r,t=vr(),s=bt(),o=_t();vt(()=>{e.popAddPathModal&&Ae(e.popAddPathModal.type,e.popAddPathModal.path)});const a=wt(),n={local:O("local"),"tag-search":O("imgSearch"),"fuzzy-search":O("fuzzy-search"),"topic-search":O("topicSearchExperimental"),"batch-download":O("batchDownload")+" / "+O("archive"),"workspace-snapshot":O("WorkspaceSnapshot"),"random-image":O("randomImage"),"global-setting":O("globalSettings")},i=(c,d,P)=>{let v;switch(c){case"grid-view":case"tag-search-matched-image-grid":case"topic-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"workspace-snapshot":case"fuzzy-search":case"topic-search":case"random-image":case"empty":v={type:c,name:n[c],key:Date.now()+Oe()};break;case"local":v={type:c,name:n[c],key:Date.now()+Oe(),path:d,mode:P==="scanned-fixed"||P==="walk"?P:"scanned"}}return v},l=(c,d,P)=>{const v=i(c,d,P);if(!v)return;const G=t.tabList[e.tabIdx];G.panes.splice(e.paneIdx,1,v),G.key=v.key},m=(c,d,P)=>{const v=i(c,d,P);if(!v)return;t.tabList[e.tabIdx].panes.push(v)},h=(c,d,P)=>{const v=i(c,d,P);if(!v)return;let G=t.tabList[e.tabIdx+1];G||(G={panes:[],key:"",id:Oe()},t.tabList[e.tabIdx+1]=G),G.panes.push(v),G.key=v.key},u=L(()=>{var c;return(c=t.tabListHistoryRecord)==null?void 0:c[1]}),b=L(()=>t.quickMovePaths.filter(({key:c,types:d})=>c==="outdir_txt2img_samples"||c==="outdir_img2img_samples"||c==="outdir_txt2img_grids"||c==="outdir_img2img_grids"||d.includes("walk"))),k=window.parent!==window,A=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),C=()=>{yt(u.value),t.tabList=Qe(u.value.tabs)},_=c=>{t.tabList=Qe(c.tabs)},F=L(()=>{var c;return Fe?"desktop application":((c=t.conf)==null?void 0:c.launch_mode)==="sd"?"sd-webui extension":"standalone"}),q=c=>!c||c==="scanned"?"":c==="walk"?"Walk: ":"Fixed: ",j=L(()=>{var d,P;const c=[];return(d=t.conf)!=null&&d.enable_access_control&&c.push("accessLimited"),(P=t.conf)!=null&&P.is_readonly&&c.push("readonly"),c.map(v=>O(v)).join(" + ")});return(c,d)=>{var M,se,X,_e;const P=Pt,v=ke,G=Rt,z=fe,te=Be,Q=Gt,N=Ue,V=Ue;return w(),S("div",To,[p("div",Eo,[p("div",fo,[p("h1",null,f(c.$t("welcome")),1),p("div",bo,[E(P,null,{title:R(()=>[p("div",_o,[p("div",vo,f(c.$t("magicSwitchTiktokView")),1),p("div",wo,f(T(t).magicSwitchTiktokView?c.$t("magicSwitchEnabled"):c.$t("magicSwitchDisabled")),1),p("div",ko,f(c.$t("magicSwitchDetailDesc")),1)])]),default:R(()=>[p("div",{class:Je(["ultra-cool-switch",{active:T(t).magicSwitchTiktokView}]),onClick:d[0]||(d[0]=g=>T(t).magicSwitchTiktokView=!T(t).magicSwitchTiktokView)},[p("div",yo,[Po,p("div",{class:Je(["switch-thumb",{active:T(t).magicSwitchTiktokView}])},[p("span",Go,f(T(t).magicSwitchTiktokView?"🎬":"📁"),1)],2),So]),p("span",Oo,f(c.$t("tiktokView")),1)],2)]),_:1})])]),(M=T(t).conf)!=null&&M.enable_access_control&&T(t).dontShowAgain?(w(),S("div",Ao,[E(T(rr),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):$("",!0),Ro,Co,p("a",Fo,f(c.$t("privacyAndSecurity")),1),E(v,{count:T(go)?"new":null,offset:[2,0],color:"geekblue"},{default:R(()=>[Uo]),_:1},8,["count"]),p("a",Do,f(c.$t("changlog")),1),p("a",Lo,f(c.$t("faq")),1),T(Fe)?$("",!0):(w(),S("div",Io,[I(f(c.$t("sync"))+" ",1),E(P,{title:c.$t("syncDesc")},{default:R(()=>[E(T(ts))]),_:1},8,["title"]),I(" : "),E(G,{checked:T(a),"onUpdate:checked":d[1]||(d[1]=g=>kt(a)?a.value=g:null)},null,8,["checked"])])),E(te,{value:T(t).darkModeControl,"onUpdate:value":d[2]||(d[2]=g=>T(t).darkModeControl=g),"button-style":"solid"},{default:R(()=>[E(z,{value:"light"},{default:R(()=>[I("Light")]),_:1}),E(z,{value:"auto"},{default:R(()=>[I("Auto")]),_:1}),E(z,{value:"dark"},{default:R(()=>[I("Dark")]),_:1})]),_:1},8,["value"])]),(se=T(t).conf)!=null&&se.enable_access_control&&!T(t).dontShowAgain?(w(),Te(Q,{key:0,"show-icon":""},{message:R(()=>[p("div",xo,[p("div",null,f(c.$t("accessControlModeTips")),1),jo,p("a",{onClick:d[3]||(d[3]=W(g=>T(t).dontShowAgain=!0,["prevent"]))},f(c.$t("dontShowAgain")),1)])]),icon:R(()=>[E(T(rr))]),_:1})):$("",!0),p("div",$o,[p("div",qo,[p("h2",null,f(c.$t("walkMode")),1),p("ul",null,[p("li",{onClick:d[4]||(d[4]=g=>T(Ae)("walk")),class:"item"},[p("span",Vo,[E(T(Ze)),I(" "+f(c.$t("add")),1)])]),T(t).showRandomImageInStartup?(w(),Te(N,{key:0,onClick:d[5]||(d[5]=g=>l("random-image")),type:"primary",style:{"border-radius":"100vw","margin-bottom":"8px"},ghost:""},{default:R(()=>[p("span",Bo,[Ho,I(f(c.$t("tryMyLuck")),1)])]),_:1})):$("",!0),(w(!0),S(K,null,oe(b.value,g=>(w(),Te(nr,{key:g.key,onOpenInNewTab:U=>m("local",g.dir,"walk"),onOpenOnTheRight:U=>h("local",g.dir,"walk")},{default:R(()=>[p("li",{class:"item rem",onClick:W(U=>l("local",g.dir,"walk"),["prevent"])},[p("span",No,f(g.zh),1),g.can_delete?(w(),S(K,{key:0},[E(V,{type:"link",onClick:W(U=>T(or)(g.dir),["stop"])},{default:R(()=>[I(f(c.$t("alias")),1)]),_:2},1032,["onClick"]),E(V,{type:"link",onClick:W(U=>T(sr)(g.dir,"walk"),["stop"])},{default:R(()=>[I(f(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):$("",!0)],8,zo)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))])]),T(t).quickMovePaths.length?(w(),S("div",Mo,[p("h2",null,f(c.$t("launchFromNormalAndFixed")),1),p("ul",null,[p("li",{onClick:d[6]||(d[6]=g=>T(Ae)("scanned-fixed")),class:"item"},[p("span",Wo,[E(T(Ze)),I(" "+f(c.$t("add")),1)])]),(w(!0),S(K,null,oe(T(t).quickMovePaths.filter(({types:g})=>g.includes("cli_access_only")||g.includes("preset")||g.includes("scanned")||g.includes("scanned-fixed")),g=>(w(),S(K,{key:g.key},[(w(!0),S(K,null,oe(g.types.filter(U=>U!=="walk"),U=>(w(),Te(nr,{key:U,onOpenInNewTab:Y=>m("local",g.dir,U),onOpenOnTheRight:Y=>h("local",g.dir,U)},{default:R(()=>[p("li",{class:"item rem",onClick:W(Y=>l("local",g.dir,U),["prevent"])},[p("span",Jo,[U=="scanned-fixed"?(w(),S("span",Zo,"Fixed")):$("",!0),I(f(g.zh),1)]),g.can_delete&&(U==="scanned-fixed"||U==="scanned")?(w(),S(K,{key:0},[E(V,{type:"link",onClick:W(Y=>T(or)(g.dir),["stop"])},{default:R(()=>[I(f(c.$t("alias")),1)]),_:2},1032,["onClick"]),E(V,{type:"link",onClick:W(Y=>T(sr)(g.dir,U),["stop"])},{default:R(()=>[I(f(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):$("",!0)],8,Ko)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))],64))),128))])])):$("",!0),p("div",Qo,[p("h2",null,f(c.$t("launch")),1),p("ul",null,[(w(!0),S(K,null,oe(Object.keys(n),g=>(w(),S("li",{key:g,class:"item",onClick:W(U=>l(g),["prevent"])},[p("span",Yo,f(n[g]),1)],8,Xo))),128)),p("li",{class:"item",onClick:d[7]||(d[7]=g=>T(s).opened=!0)},[p("span",en,f(c.$t("imgCompare")),1)]),k?(w(),S("li",{key:0,class:"item",onClick:A},[p("span",rn,f(c.$t("openThisAppInNewWindow")),1)])):$("",!0),(X=u.value)!=null&&X.tabs.length?(w(),S("li",{key:1,class:"item",onClick:C},[p("span",tn,f(c.$t("restoreLastWorkspaceState")),1)])):$("",!0),(w(!0),S(K,null,oe(T(o).snapshots,g=>(w(),S("li",{class:"item",key:g.id,onClick:U=>_(g)},[p("span",on,f(c.$t("restoreWorkspaceSnapshot",[g.name])),1)],8,sn))),128))])]),T(t).recent.length?(w(),S("div",nn,[p("div",an,[p("h2",null,f(c.$t("recent")),1),E(V,{onClick:d[8]||(d[8]=g=>T(t).recent=[]),type:"link"},{default:R(()=>[I(f(c.$t("clear")),1)]),_:1})]),p("ul",null,[(w(!0),S(K,null,oe(T(t).recent,g=>(w(),S("li",{key:g.key,class:"item",onClick:W(U=>l("local",g.path,g.mode),["prevent"])},[E(T(Jt),{class:"icon"}),p("span",ln,f(q(g.mode))+f(T(t).getShortPath(g.path)),1)],8,cn))),128))])])):$("",!0)]),p("div",{class:"ver-info",onDblclick:d[9]||(d[9]=g=>T(le).info("Ciallo~(∠・ω< )⌒☆"))},[j.value?(w(),S("div",un," Mode: "+f(j.value),1)):$("",!0),p("div",null," Version: "+f(T(ie).tag)+" ("+f(F.value)+") ",1),T(ie).hash?(w(),S("div",pn," Hash: "+f(T(ie).hash),1)):$("",!0),T(ae)&&T(ie).hash&&T(ae).sha!==T(ie).hash?(w(),S("div",dn," Not the latest commit ")):$("",!0),T(ae)?(w(),S("div",gn," Latest Commit: "+f(T(ae).sha)+" (Updated at "+f((_e=T(ae).commit.author)==null?void 0:_e.date)+") ",1)):$("",!0)],32)])}}});const vn=At(mn,[["__scopeId","data-v-f8cdd97f"]]);export{vn as default}; +`)}var Ks=class extends Error{constructor(r,e,t){super(Ws(t)),this.request=r,this.headers=e,this.response=t,this.name="GraphqlResponseError",this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Js=["method","baseUrl","url","headers","request","query","mediaType"],Qs=["query","method","url"],vr=/\/api\/v3\/?$/;function Zs(r,e,t){if(t){if(typeof e=="string"&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const n in t)if(Qs.includes(n))return Promise.reject(new Error(`[@octokit/graphql] "${n}" cannot be used as variable name`))}const s=typeof e=="string"?Object.assign({query:e},t):e,o=Object.keys(s).reduce((n,i)=>Js.includes(i)?(n[i]=s[i],n):(n.variables||(n.variables={}),n.variables[i]=s[i],n),{}),a=s.baseUrl||r.endpoint.DEFAULTS.baseUrl;return vr.test(a)&&(o.url=a.replace(vr,"/api/graphql")),r(o).then(n=>{if(n.data.errors){const i={};for(const l of Object.keys(n.headers))i[l]=n.headers[l];throw new Ks(o,i,n.data)}return n.data.data})}function Ze(r,e){const t=r.defaults(e);return Object.assign((o,a)=>Zs(t,o,a),{defaults:Ze.bind(null,t),endpoint:t.endpoint})}Ze(qe,{headers:{"user-agent":`octokit-graphql.js/${Ms} ${Ae()}`},method:"POST",url:"/graphql"});function Xs(r){return Ze(r,{method:"POST",url:"/graphql"})}var Ys=/^v1\./,eo=/^ghs_/,ro=/^ghu_/;async function to(r){const e=r.split(/\./).length===3,t=Ys.test(r)||eo.test(r),s=ro.test(r);return{type:"token",token:r,tokenType:e?"app":t?"installation":s?"user-to-server":"oauth"}}function so(r){return r.split(/\./).length===3?`bearer ${r}`:`token ${r}`}async function oo(r,e,t,s){const o=e.endpoint.merge(t,s);return o.headers.authorization=so(r),e(o)}var no=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(to.bind(null,e),{hook:oo.bind(null,e)})},Br="5.2.0",_r=()=>{},ao=console.warn.bind(console),io=console.error.bind(console),wr=`octokit-core.js/${Br} ${Ae()}`,pe,co=(pe=class{static defaults(e){return class extends this{constructor(...s){const o=s[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var o;const t=this.plugins;return o=class extends this{},(()=>{o.plugins=t.concat(e.filter(n=>!t.includes(n)))})(),o}constructor(e={}){const t=new ys,s={baseUrl:qe.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${wr}`:wr,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=qe.defaults(s),this.graphql=Xs(this.request).defaults(s),this.log=Object.assign({debug:_r,info:_r,warn:ao,error:io},e.log),this.hook=t,e.authStrategy){const{authStrategy:a,...n}=e,i=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{const a=no(e.auth);t.wrap("request",a.hook),this.auth=a}const o=this.constructor;for(let a=0;a{pe.VERSION=Br})(),(()=>{pe.plugins=[]})(),pe),lo="4.0.1";function Hr(r){r.hook.wrap("request",(e,t)=>{r.log.debug("request",t);const s=Date.now(),o=r.request.endpoint.parse(t),a=o.url.replace(t.baseUrl,"");return e(t).then(n=>(r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n)).catch(n=>{throw r.log.info(`${o.method} ${a} - ${n.status} in ${Date.now()-s}ms`),n})})}Hr.VERSION=lo;var uo="11.3.1";function po(r){if(!r.data)return{...r,data:[]};if(!("total_count"in r.data&&!("url"in r.data)))return r;const t=r.data.incomplete_results,s=r.data.repository_selection,o=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],n=r.data[a];return r.data=n,typeof t<"u"&&(r.data.incomplete_results=t),typeof s<"u"&&(r.data.repository_selection=s),r.data.total_count=o,r}function Xe(r,e,t){const s=typeof e=="function"?e.endpoint(t):r.request.endpoint(e,t),o=typeof e=="function"?e:r.request,a=s.method,n=s.headers;let i=s.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!i)return{done:!0};try{const l=await o({method:a,url:i,headers:n}),m=po(l);return i=((m.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:m}}catch(l){if(l.status!==409)throw l;return i="",{value:{status:200,headers:{},data:[]}}}}})}}function Nr(r,e,t,s){return typeof t=="function"&&(s=t,t=void 0),Mr(r,[],Xe(r,e,t)[Symbol.asyncIterator](),s)}function Mr(r,e,t,s){return t.next().then(o=>{if(o.done)return e;let a=!1;function n(){a=!0}return e=e.concat(s?s(o.value,n):o.value.data),a?e:Mr(r,e,t,s)})}Object.assign(Nr,{iterator:Xe});function Wr(r){return{paginate:Object.assign(Nr.bind(null,r),{iterator:Xe.bind(null,r)})}}Wr.VERSION=uo;var go="13.2.2",mo={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},ho=mo,re=new Map;for(const[r,e]of Object.entries(ho))for(const[t,s]of Object.entries(e)){const[o,a,n]=s,[i,l]=o.split(/ /),m=Object.assign({method:i,url:l},a);re.has(r)||re.set(r,new Map),re.get(r).set(t,{scope:r,methodName:t,endpointDefaults:m,decorations:n})}var To={has({scope:r},e){return re.get(r).has(e)},getOwnPropertyDescriptor(r,e){return{value:this.get(r,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(r,e,t){return Object.defineProperty(r.cache,e,t),!0},deleteProperty(r,e){return delete r.cache[e],!0},ownKeys({scope:r}){return[...re.get(r).keys()]},set(r,e,t){return r.cache[e]=t},get({octokit:r,scope:e,cache:t},s){if(t[s])return t[s];const o=re.get(e).get(s);if(!o)return;const{endpointDefaults:a,decorations:n}=o;return n?t[s]=fo(r,e,s,a,n):t[s]=r.request.defaults(a),t[s]}};function Eo(r){const e={};for(const t of re.keys())e[t]=new Proxy({octokit:r,scope:t,cache:{}},To);return e}function fo(r,e,t,s,o){const a=r.request.defaults(s);function n(...i){let l=a.endpoint.merge(...i);if(o.mapToData)return l=Object.assign({},l,{data:l[o.mapToData],[o.mapToData]:void 0}),a(l);if(o.renamed){const[m,T]=o.renamed;r.log.warn(`octokit.${e}.${t}() has been renamed to octokit.${m}.${T}()`)}if(o.deprecated&&r.log.warn(o.deprecated),o.renamedParameters){const m=a.endpoint.merge(...i);for(const[T,p]of Object.entries(o.renamedParameters))T in m&&(r.log.warn(`"${T}" parameter is deprecated for "octokit.${e}.${t}()". Use "${p}" instead`),p in m||(m[p]=m[T]),delete m[T]);return a(m)}return a(...i)}return Object.assign(n,a)}function Kr(r){const e=Eo(r);return{...e,rest:e}}Kr.VERSION=go;var bo="20.1.1",vo=co.plugin(Hr,Kr,Wr).defaults({userAgent:`octokit-rest.js/${bo}`});const _o={beforeDevCommand:"yarn dev",beforeBuildCommand:"yarn build",devPath:"http://localhost:5173",distDir:"../dist",withGlobalTauri:!1},wo={allowlist:{all:!0,fs:{all:!0,scope:["**"]},shell:{all:!0,open:!0,sidecar:!0,scope:[{name:"iib_api_server",sidecar:!0}]}},bundle:{active:!0,targets:"all",identifier:"com.zanllp.iib",icon:["icons/32x32.png","icons/128x128.png","icons/128x128@2x.png","icons/icon.icns","icons/icon.ico"],externalBin:["iib_api_server"]},security:{csp:null},windows:[{fullscreen:!1,resizable:!0,fileDropEnabled:!1,title:"Infinite Image Browsing",width:800,height:600,maximized:!0}]},yo={build:_o,package:{productName:"Infinite Image Browsing",version:"1.5.1"},tauri:wo},Jr=new vo,ko="v"+yo.package.version,ae=q(),Ve=q(""),Qr=q(""),Zr=q(""),ie=x(()=>({tag:Zr.value||ko,hash:Qr.value})),Po=x(()=>Ve.value?Ve.value!==ie.value.tag:!1);async function Go(r,e){try{return(await Jr.repos.listCommits({owner:r,repo:e,per_page:1})).data[0]}catch(t){console.error("Error fetching the latest commit:",t)}}async function Oo(r,e){try{return(await Jr.repos.getLatestRelease({owner:r,repo:e})).data}catch(t){console.error("Error fetching the latest release:",t)}}const yr="zanllp",kr="sd-webui-infinite-image-browsing";wt(500+500*Math.random()).then(async()=>{yt().then(e=>{Zr.value=e.tag??"",Qr.value=e.hash??""}),ae.value=await Go(yr,kr);const r=await Oo(yr,kr);Ve.value=(r==null?void 0:r.tag_name)??""});const te=r=>(Ft("data-v-418a804e"),r=r(),Ut(),r),So={class:"container"},Ao={class:"header"},Ro={class:"header-left"},Co={class:"magic-switch-compact"},Fo={class:"switch-tooltip"},Uo={class:"tooltip-title"},Do={class:"tooltip-status"},Lo={class:"tooltip-desc"},xo={class:"switch-bg"},Io=te(()=>u("div",{class:"switch-track"},null,-1)),$o={class:"switch-icon"},jo=te(()=>u("div",{class:"switch-glow"},null,-1)),qo={class:"switch-label"},Vo={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},zo=te(()=>u("div",{"flex-placeholder":""},null,-1)),Bo=te(()=>u("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"quick-action"},"Github",-1)),Ho={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example",target:"_blank",class:"quick-action"},No=te(()=>u("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/releases",target:"_blank",class:"quick-action"},"Releases",-1)),Mo={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log",target:"_blank",class:"quick-action"},Wo={key:1,class:"quick-action"},Ko={style:{display:"grid",gap:"10px"}},Jo={style:{display:"flex",gap:"10px","align-items":"flex-start"}},Qo={style:{flex:"1","min-width":"0"}},Zo={style:{"font-weight":"600"}},Xo={style:{"margin-top":"6px",display:"flex",gap:"10px","flex-wrap":"wrap"}},Yo={style:{display:"flex",gap:"10px","align-items":"flex-start"}},en={style:{flex:"1","min-width":"0"}},rn={style:{"font-weight":"600"}},tn={style:{"margin-top":"6px"}},sn={style:{display:"flex",gap:"10px","align-items":"flex-start"}},on={style:{flex:"1","min-width":"0"}},nn={style:{"font-weight":"600"}},an={class:"access-mode-message"},cn=te(()=>u("div",{"flex-placeholder":""},null,-1)),ln={class:"content"},un={class:"feature-item"},pn={class:"text line-clamp-1"},dn={style:{margin:"0 6px"}},gn=te(()=>u("span",{style:{"margin-right":"8px"}},"🎲",-1)),mn=["onClick"],hn={class:"text line-clamp-2"},Tn={key:0,class:"feature-item"},En={class:"text line-clamp-1"},fn=["onClick"],bn={class:"text line-clamp-2"},vn={key:0,class:"fixed"},_n={class:"feature-item"},wn=["onClick"],yn={class:"text line-clamp-1"},kn={class:"text line-clamp-1"},Pn={class:"text line-clamp-1"},Gn={class:"text line-clamp-1"},On=["onClick"],Sn={class:"text line-clamp-1"},An={key:1,class:"feature-item recent"},Rn={class:"title"},Cn=["onClick"],Fn={class:"text line-clamp-1"},Un={key:0},Dn={key:1},Ln={key:2},xn={key:3},In="https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",$n="https://github.com/zanllp/sd-webui-infinite-image-browsing/issues?q=",jn="https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/new",qn="mailto:qc@zanllp.cn",Vn=Q({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{},popAddPathModal:{}},setup(r){const e=r,t=Sr(),s=kt(),o=Pt();Gt(()=>{e.popAddPathModal&&Fe(e.popAddPathModal.type,e.popAddPathModal.path)});const a=Ot(),n=q(!1),i={local:A("local"),"tag-search":A("imgSearch"),"fuzzy-search":A("fuzzy-search"),"topic-search":A("topicSearchExperimental"),"batch-download":A("batchDownload")+" / "+A("archive"),"workspace-snapshot":A("WorkspaceSnapshot"),"random-image":A("randomImage"),"global-setting":A("globalSettings")},l=(c,E,G)=>{let _;switch(c){case"grid-view":case"tag-search-matched-image-grid":case"topic-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"workspace-snapshot":case"fuzzy-search":case"topic-search":case"random-image":case"empty":_={type:c,name:i[c],key:Date.now()+Ce()};break;case"local":_={type:c,name:i[c],key:Date.now()+Ce(),path:E,mode:G==="scanned-fixed"||G==="walk"?G:"scanned"}}return _},m=(c,E,G)=>{const _=l(c,E,G);if(!_)return;const L=t.tabList[e.tabIdx];L.panes.splice(e.paneIdx,1,_),L.key=_.key},T=(c,E,G)=>{const _=l(c,E,G);if(!_)return;t.tabList[e.tabIdx].panes.push(_)},p=(c,E,G)=>{const _=l(c,E,G);if(!_)return;let L=t.tabList[e.tabIdx+1];L||(L={panes:[],key:"",id:Ce()},t.tabList[e.tabIdx+1]=L),L.panes.push(_),L.key=_.key},b=x(()=>{var c;return(c=t.tabListHistoryRecord)==null?void 0:c[1]}),k=x(()=>t.quickMovePaths.filter(({key:c,types:E})=>c==="outdir_txt2img_samples"||c==="outdir_img2img_samples"||c==="outdir_txt2img_grids"||c==="outdir_img2img_grids"||E.includes("walk"))),R=window.parent!==window,C=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),v=()=>{At(b.value),t.tabList=rr(b.value.tabs)},F=c=>{t.tabList=rr(c.tabs)},V=x(()=>{var c;return Le?"desktop application":((c=t.conf)==null?void 0:c.launch_mode)==="sd"?"sd-webui extension":"standalone"}),z=c=>!c||c==="scanned"?"":c==="walk"?"Walk: ":"Fixed: ",w=x(()=>{var E,G;const c=[];return(E=t.conf)!=null&&E.enable_access_control&&c.push("accessLimited"),(G=t.conf)!=null&&G.is_readonly&&c.push("readonly"),c.map(_=>A(_)).join(" + ")});return(c,E)=>{var ee,we,ye,ke;const G=Rt,_=Oe,L=Lt,Z=fe,Y=He,H=be,N=Ct,W=xe,K=xe;return y(),O("div",So,[u("div",Ao,[u("div",Ro,[u("h1",null,f(c.$t("welcome")),1),u("div",Co,[g(G,null,{title:S(()=>[u("div",Fo,[u("div",Uo,f(c.$t("magicSwitchTiktokView")),1),u("div",Do,f(h(t).magicSwitchTiktokView?c.$t("magicSwitchEnabled"):c.$t("magicSwitchDisabled")),1),u("div",Lo,f(c.$t("magicSwitchDetailDesc")),1)])]),default:S(()=>[u("div",{class:Ye(["ultra-cool-switch",{active:h(t).magicSwitchTiktokView}]),onClick:E[0]||(E[0]=d=>h(t).magicSwitchTiktokView=!h(t).magicSwitchTiktokView)},[u("div",xo,[Io,u("div",{class:Ye(["switch-thumb",{active:h(t).magicSwitchTiktokView}])},[u("span",$o,f(h(t).magicSwitchTiktokView?"🎬":"📁"),1)],2),jo]),u("span",qo,f(c.$t("tiktokView")),1)],2)]),_:1})])]),(ee=h(t).conf)!=null&&ee.enable_access_control&&h(t).dontShowAgain?(y(),O("div",Vo,[g(h(ar),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):j("",!0),zo,Bo,u("a",Ho,f(c.$t("privacyAndSecurity")),1),g(_,{count:h(Po)?"new":null,offset:[2,0],color:"geekblue"},{default:S(()=>[No]),_:1},8,["count"]),u("a",Mo,f(c.$t("changlog")),1),u("a",{href:"#",class:"quick-action",onClick:E[1]||(E[1]=M(d=>n.value=!0,["prevent"]))},f(c.$t("helpFeedback")),1),h(Le)?j("",!0):(y(),O("div",Wo,[I(f(c.$t("sync"))+" ",1),g(G,{title:c.$t("syncDesc")},{default:S(()=>[g(h(lr))]),_:1},8,["title"]),I(" : "),g(L,{checked:h(a),"onUpdate:checked":E[2]||(E[2]=d=>St(a)?a.value=d:null)},null,8,["checked"])])),g(Y,{value:h(t).darkModeControl,"onUpdate:value":E[3]||(E[3]=d=>h(t).darkModeControl=d),"button-style":"solid"},{default:S(()=>[g(Z,{value:"light"},{default:S(()=>[I("Light")]),_:1}),g(Z,{value:"auto"},{default:S(()=>[I("Auto")]),_:1}),g(Z,{value:"dark"},{default:S(()=>[I("Dark")]),_:1})]),_:1},8,["value"])]),g(H,{visible:n.value,"onUpdate:visible":E[4]||(E[4]=d=>n.value=d),title:c.$t("helpFeedback"),footer:null,"mask-closable":!0,width:"520px"},{default:S(()=>[u("div",Ko,[u("div",Jo,[g(h(lr),{style:{"margin-top":"2px",opacity:"0.85"}}),u("div",Qo,[u("div",Zo,f(c.$t("helpFeedbackWay1")),1),u("div",Xo,[u("a",{href:In,target:"_blank",rel:"noopener noreferrer"},f(c.$t("faq")),1),u("a",{href:$n,target:"_blank",rel:"noopener noreferrer"},f(c.$t("helpFeedbackSearchIssues")),1)])])]),u("div",Yo,[g(h(os),{style:{"margin-top":"2px",opacity:"0.85"}}),u("div",en,[u("div",rn,f(c.$t("helpFeedbackWay2")),1),u("div",tn,[u("a",{href:jn,target:"_blank",rel:"noopener noreferrer"},f(c.$t("helpFeedbackNewIssue")),1)])])]),u("div",sn,[g(h(ps),{style:{"margin-top":"2px",opacity:"0.85"}}),u("div",on,[u("div",nn,f(c.$t("helpFeedbackWay3")),1),u("div",{style:{"margin-top":"6px"}},[u("a",{href:qn},"qc@zanllp.cn")])])])])]),_:1},8,["visible","title"]),(we=h(t).conf)!=null&&we.enable_access_control&&!h(t).dontShowAgain?(y(),Te(N,{key:0,"show-icon":""},{message:S(()=>[u("div",an,[u("div",null,f(c.$t("accessControlModeTips")),1),cn,u("a",{onClick:E[5]||(E[5]=M(d=>h(t).dontShowAgain=!0,["prevent"]))},f(c.$t("dontShowAgain")),1)])]),icon:S(()=>[g(h(ar))]),_:1})):j("",!0),u("div",ln,[u("div",un,[u("h2",null,f(c.$t("walkMode")),1),u("ul",null,[u("li",{onClick:E[6]||(E[6]=d=>h(Fe)("walk")),class:"item"},[u("span",pn,[g(h(er)),I(" "+f(c.$t("add")),1)])]),h(t).showRandomImageInStartup?(y(),Te(W,{key:0,onClick:E[7]||(E[7]=d=>m("random-image")),type:"primary",style:{"border-radius":"100vw","margin-bottom":"8px"},ghost:""},{default:S(()=>[u("span",dn,[gn,I(f(c.$t("tryMyLuck")),1)])]),_:1})):j("",!0),(y(!0),O(J,null,oe(k.value,d=>(y(),Te(dr,{key:d.key,onOpenInNewTab:U=>T("local",d.dir,"walk"),onOpenOnTheRight:U=>p("local",d.dir,"walk")},{default:S(()=>[u("li",{class:"item rem",onClick:M(U=>m("local",d.dir,"walk"),["prevent"])},[u("span",hn,f(d.zh),1),d.can_delete?(y(),O(J,{key:0},[g(K,{type:"link",onClick:M(U=>h(pr)(d.dir),["stop"])},{default:S(()=>[I(f(c.$t("alias")),1)]),_:2},1032,["onClick"]),g(K,{type:"link",onClick:M(U=>h(ur)(d.dir,"walk"),["stop"])},{default:S(()=>[I(f(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):j("",!0)],8,mn)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))])]),h(t).quickMovePaths.length?(y(),O("div",Tn,[u("h2",null,f(c.$t("launchFromNormalAndFixed")),1),u("ul",null,[u("li",{onClick:E[8]||(E[8]=d=>h(Fe)("scanned-fixed")),class:"item"},[u("span",En,[g(h(er)),I(" "+f(c.$t("add")),1)])]),(y(!0),O(J,null,oe(h(t).quickMovePaths.filter(({types:d})=>d.includes("cli_access_only")||d.includes("preset")||d.includes("scanned")||d.includes("scanned-fixed")),d=>(y(),O(J,{key:d.key},[(y(!0),O(J,null,oe(d.types.filter(U=>U!=="walk"),U=>(y(),Te(dr,{key:U,onOpenInNewTab:se=>T("local",d.dir,U),onOpenOnTheRight:se=>p("local",d.dir,U)},{default:S(()=>[u("li",{class:"item rem",onClick:M(se=>m("local",d.dir,U),["prevent"])},[u("span",bn,[U=="scanned-fixed"?(y(),O("span",vn,"Fixed")):j("",!0),I(f(d.zh),1)]),d.can_delete&&(U==="scanned-fixed"||U==="scanned")?(y(),O(J,{key:0},[g(K,{type:"link",onClick:M(se=>h(pr)(d.dir),["stop"])},{default:S(()=>[I(f(c.$t("alias")),1)]),_:2},1032,["onClick"]),g(K,{type:"link",onClick:M(se=>h(ur)(d.dir,U),["stop"])},{default:S(()=>[I(f(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):j("",!0)],8,fn)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))],64))),128))])])):j("",!0),u("div",_n,[u("h2",null,f(c.$t("launch")),1),u("ul",null,[(y(!0),O(J,null,oe(Object.keys(i),d=>(y(),O("li",{key:d,class:"item",onClick:M(U=>m(d),["prevent"])},[u("span",yn,f(i[d]),1)],8,wn))),128)),u("li",{class:"item",onClick:E[9]||(E[9]=d=>h(s).opened=!0)},[u("span",kn,f(c.$t("imgCompare")),1)]),R?(y(),O("li",{key:0,class:"item",onClick:C},[u("span",Pn,f(c.$t("openThisAppInNewWindow")),1)])):j("",!0),(ye=b.value)!=null&&ye.tabs.length?(y(),O("li",{key:1,class:"item",onClick:v},[u("span",Gn,f(c.$t("restoreLastWorkspaceState")),1)])):j("",!0),(y(!0),O(J,null,oe(h(o).snapshots,d=>(y(),O("li",{class:"item",key:d.id,onClick:U=>F(d)},[u("span",Sn,f(c.$t("restoreWorkspaceSnapshot",[d.name])),1)],8,On))),128))])]),h(t).recent.length?(y(),O("div",An,[u("div",Rn,[u("h2",null,f(c.$t("recent")),1),g(K,{onClick:E[10]||(E[10]=d=>h(t).recent=[]),type:"link"},{default:S(()=>[I(f(c.$t("clear")),1)]),_:1})]),u("ul",null,[(y(!0),O(J,null,oe(h(t).recent,d=>(y(),O("li",{key:d.key,class:"item",onClick:M(U=>m("local",d.path,d.mode),["prevent"])},[g(h(es),{class:"icon"}),u("span",Fn,f(z(d.mode))+f(h(t).getShortPath(d.path)),1)],8,Cn))),128))])])):j("",!0)]),u("div",{class:"ver-info",onDblclick:E[11]||(E[11]=d=>h(le).info("Ciallo~(∠・ω< )⌒☆"))},[w.value?(y(),O("div",Un," Mode: "+f(w.value),1)):j("",!0),u("div",null," Version: "+f(h(ie).tag)+" ("+f(V.value)+") ",1),h(ie).hash?(y(),O("div",Dn," Hash: "+f(h(ie).hash),1)):j("",!0),h(ae)&&h(ie).hash&&h(ae).sha!==h(ie).hash?(y(),O("div",Ln," Not the latest commit ")):j("",!0),h(ae)?(y(),O("div",xn," Latest Commit: "+f(h(ae).sha)+" (Updated at "+f((ke=h(ae).commit.author)==null?void 0:ke.date)+") ",1)):j("",!0)],32)])}}});const Kn=Dt(Vn,[["__scopeId","data-v-418a804e"]]);export{Kn as default}; diff --git a/vue/dist/assets/emptyStartup-2208b721.css b/vue/dist/assets/emptyStartup-b38a59ac.css similarity index 82% rename from vue/dist/assets/emptyStartup-2208b721.css rename to vue/dist/assets/emptyStartup-b38a59ac.css index 267cd6a..9f47364 100644 --- a/vue/dist/assets/emptyStartup-2208b721.css +++ b/vue/dist/assets/emptyStartup-b38a59ac.css @@ -1 +1 @@ -.ant-radio-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;font-size:0}.ant-radio-group .ant-badge-count{z-index:1}.ant-radio-group>.ant-badge:not(:first-child)>.ant-radio-button-wrapper{border-left:none}.ant-radio-wrapper{box-sizing:border-box;margin:0 8px 0 0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-flex;align-items:baseline;cursor:pointer}.ant-radio-wrapper-disabled{cursor:not-allowed}.ant-radio-wrapper:after{display:inline-block;width:0;overflow:hidden;content:" "}.ant-radio{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;top:.2em;display:inline-block;outline:none;cursor:pointer}.ant-radio-wrapper:hover .ant-radio,.ant-radio:hover .ant-radio-inner,.ant-radio-input:focus+.ant-radio-inner{border-color:#d03f0a}.ant-radio-input:focus+.ant-radio-inner{box-shadow:0 0 0 3px #fff1e6}.ant-radio-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #d03f0a;border-radius:50%;visibility:hidden;animation:antRadioEffect .36s ease-in-out;animation-fill-mode:both;content:""}.ant-radio:hover:after,.ant-radio-wrapper:hover .ant-radio:after{visibility:visible}.ant-radio-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;background-color:#fff;border-color:#d9d9d9;border-style:solid;border-width:1px;border-radius:50%;transition:all .3s}.ant-radio-inner:after{position:absolute;top:50%;left:50%;display:block;width:16px;height:16px;margin-top:-8px;margin-left:-8px;background-color:#d03f0a;border-top:0;border-left:0;border-radius:16px;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:" "}.ant-radio-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;cursor:pointer;opacity:0}.ant-radio-checked .ant-radio-inner{border-color:#d03f0a}.ant-radio-checked .ant-radio-inner:after{transform:scale(.5);opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.ant-radio-disabled{cursor:not-allowed}.ant-radio-disabled .ant-radio-inner{background-color:#f5f5f5;border-color:#d9d9d9!important;cursor:not-allowed}.ant-radio-disabled .ant-radio-inner:after{background-color:#0003}.ant-radio-disabled .ant-radio-input{cursor:not-allowed}.ant-radio-disabled+span{color:#00000040;cursor:not-allowed}span.ant-radio+*{padding-right:8px;padding-left:8px}.ant-radio-button-wrapper{position:relative;display:inline-block;height:32px;margin:0;padding:0 15px;color:#000000d9;font-size:14px;line-height:30px;background:#fff;border:1px solid #d9d9d9;border-top-width:1.02px;border-left-width:0;cursor:pointer;transition:color .3s,background .3s,border-color .3s,box-shadow .3s}.ant-radio-button-wrapper a{color:#000000d9}.ant-radio-button-wrapper>.ant-radio-button{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.ant-radio-group-large .ant-radio-button-wrapper{height:40px;font-size:16px;line-height:38px}.ant-radio-group-small .ant-radio-button-wrapper{height:24px;padding:0 7px;line-height:22px}.ant-radio-button-wrapper:not(:first-child):before{position:absolute;top:-1px;left:-1px;display:block;box-sizing:content-box;width:1px;height:100%;padding:1px 0;background-color:#d9d9d9;transition:background-color .3s;content:""}.ant-radio-button-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:2px 0 0 2px}.ant-radio-button-wrapper:last-child{border-radius:0 2px 2px 0}.ant-radio-button-wrapper:first-child:last-child{border-radius:2px}.ant-radio-button-wrapper:hover{position:relative;color:#d03f0a}.ant-radio-button-wrapper:focus-within{box-shadow:0 0 0 3px #fff1e6}.ant-radio-button-wrapper .ant-radio-inner,.ant-radio-button-wrapper input[type=checkbox],.ant-radio-button-wrapper input[type=radio]{width:0;height:0;opacity:0;pointer-events:none}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){z-index:1;color:#d03f0a;background:#fff;border-color:#d03f0a}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before{background-color:#d03f0a}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child{border-color:#d03f0a}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#de632f;border-color:#de632f}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover:before{background-color:#de632f}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#ab2800;border-color:#ab2800}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active:before{background-color:#ab2800}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #fff1e6}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#fff;background:#d03f0a;border-color:#d03f0a}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#fff;background:#de632f;border-color:#de632f}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#fff;background:#ab2800;border-color:#ab2800}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #fff1e6}.ant-radio-button-wrapper-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-radio-button-wrapper-disabled:first-child,.ant-radio-button-wrapper-disabled:hover{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9}.ant-radio-button-wrapper-disabled:first-child{border-left-color:#d9d9d9}.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked{color:#00000040;background-color:#e6e6e6;border-color:#d9d9d9;box-shadow:none}@keyframes antRadioEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-radio-group.ant-radio-group-rtl{direction:rtl}.ant-radio-wrapper.ant-radio-wrapper-rtl{margin-right:0;margin-left:8px;direction:rtl}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl{border-right-width:0;border-left-width:1px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child):before{right:-1px;left:0}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child{border-right:1px solid #d9d9d9;border-radius:0 2px 2px 0}.ant-radio-button-wrapper-checked:not([class*=" ant-radio-button-wrapper-disabled"]).ant-radio-button-wrapper:first-child{border-right-color:#de632f}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child{border-radius:2px 0 0 2px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child{border-right-color:#d9d9d9}.ant-badge{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;line-height:1}.ant-badge-count{z-index:auto;min-width:20px;height:20px;padding:0 6px;color:#fff;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;text-align:center;background:#ff4d4f;border-radius:10px;box-shadow:0 0 0 1px #fff}.ant-badge-count a,.ant-badge-count a:hover{color:#fff}.ant-badge-count-sm{min-width:14px;height:14px;padding:0;font-size:12px;line-height:14px;border-radius:7px}.ant-badge-multiple-words{padding:0 8px}.ant-badge-dot{z-index:auto;width:6px;min-width:6px;height:6px;background:#ff4d4f;border-radius:100%;box-shadow:0 0 0 1px #fff}.ant-badge-dot.ant-scroll-number{transition:background 1.5s}.ant-badge-count,.ant-badge-dot,.ant-badge .ant-scroll-number-custom-component{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0%}.ant-badge-count.anticon-spin,.ant-badge-dot.anticon-spin,.ant-badge .ant-scroll-number-custom-component.anticon-spin{animation:antBadgeLoadingCircle 1s infinite linear}.ant-badge-status{line-height:inherit;vertical-align:baseline}.ant-badge-status-dot{position:relative;top:-1px;display:inline-block;width:6px;height:6px;vertical-align:middle;border-radius:50%}.ant-badge-status-success{background-color:#52c41a}.ant-badge-status-processing{position:relative;background-color:#1890ff}.ant-badge-status-processing:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border-radius:50%;animation:antStatusProcessing 1.2s infinite ease-in-out;content:""}.ant-badge-status-default{background-color:#d9d9d9}.ant-badge-status-error{background-color:#ff4d4f}.ant-badge-status-warning{background-color:#faad14}.ant-badge-status-pink,.ant-badge-status-magenta{background:#eb2f96}.ant-badge-status-red{background:#f5222d}.ant-badge-status-volcano{background:#fa541c}.ant-badge-status-orange{background:#fa8c16}.ant-badge-status-yellow{background:#fadb14}.ant-badge-status-gold{background:#faad14}.ant-badge-status-cyan{background:#13c2c2}.ant-badge-status-lime{background:#a0d911}.ant-badge-status-green{background:#52c41a}.ant-badge-status-blue{background:#1890ff}.ant-badge-status-geekblue{background:#2f54eb}.ant-badge-status-purple{background:#722ed1}.ant-badge-status-text{margin-left:8px;color:#000000d9;font-size:14px}.ant-badge-zoom-appear,.ant-badge-zoom-enter{animation:antZoomBadgeIn .3s cubic-bezier(.12,.4,.29,1.46);animation-fill-mode:both}.ant-badge-zoom-leave{animation:antZoomBadgeOut .3s cubic-bezier(.71,-.46,.88,.6);animation-fill-mode:both}.ant-badge-not-a-wrapper .ant-badge-zoom-appear,.ant-badge-not-a-wrapper .ant-badge-zoom-enter{animation:antNoWrapperZoomBadgeIn .3s cubic-bezier(.12,.4,.29,1.46)}.ant-badge-not-a-wrapper .ant-badge-zoom-leave{animation:antNoWrapperZoomBadgeOut .3s cubic-bezier(.71,-.46,.88,.6)}.ant-badge-not-a-wrapper:not(.ant-badge-status){vertical-align:middle}.ant-badge-not-a-wrapper .ant-scroll-number-custom-component,.ant-badge-not-a-wrapper .ant-badge-count{transform:none}.ant-badge-not-a-wrapper .ant-scroll-number-custom-component,.ant-badge-not-a-wrapper .ant-scroll-number{position:relative;top:auto;display:block;transform-origin:50% 50%}@keyframes antStatusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}.ant-scroll-number{overflow:hidden;direction:ltr}.ant-scroll-number-only{position:relative;display:inline-block;height:20px;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.ant-scroll-number-only>p.ant-scroll-number-only-unit{height:20px;margin:0;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.ant-scroll-number-symbol{vertical-align:top}@keyframes antZoomBadgeIn{0%{transform:scale(0) translate(50%,-50%);opacity:0}to{transform:scale(1) translate(50%,-50%)}}@keyframes antZoomBadgeOut{0%{transform:scale(1) translate(50%,-50%)}to{transform:scale(0) translate(50%,-50%);opacity:0}}@keyframes antNoWrapperZoomBadgeIn{0%{transform:scale(0);opacity:0}to{transform:scale(1)}}@keyframes antNoWrapperZoomBadgeOut{0%{transform:scale(1)}to{transform:scale(0);opacity:0}}@keyframes antBadgeLoadingCircle{0%{transform-origin:50%}to{transform:translate(50%,-50%) rotate(360deg);transform-origin:50%}}.ant-ribbon-wrapper{position:relative}.ant-ribbon{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:8px;height:22px;padding:0 8px;color:#fff;line-height:22px;white-space:nowrap;background-color:#d03f0a;border-radius:2px}.ant-ribbon-text{color:#fff}.ant-ribbon-corner{position:absolute;top:100%;width:8px;height:8px;color:currentcolor;border:4px solid;transform:scaleY(.75);transform-origin:top}.ant-ribbon-corner:after{position:absolute;top:-4px;left:-4px;width:inherit;height:inherit;color:#00000040;border:inherit;content:""}.ant-ribbon-color-pink,.ant-ribbon-color-magenta{color:#eb2f96;background:#eb2f96}.ant-ribbon-color-red{color:#f5222d;background:#f5222d}.ant-ribbon-color-volcano{color:#fa541c;background:#fa541c}.ant-ribbon-color-orange{color:#fa8c16;background:#fa8c16}.ant-ribbon-color-yellow{color:#fadb14;background:#fadb14}.ant-ribbon-color-gold{color:#faad14;background:#faad14}.ant-ribbon-color-cyan{color:#13c2c2;background:#13c2c2}.ant-ribbon-color-lime{color:#a0d911;background:#a0d911}.ant-ribbon-color-green{color:#52c41a;background:#52c41a}.ant-ribbon-color-blue{color:#1890ff;background:#1890ff}.ant-ribbon-color-geekblue{color:#2f54eb;background:#2f54eb}.ant-ribbon-color-purple{color:#722ed1;background:#722ed1}.ant-ribbon.ant-ribbon-placement-end{right:-8px;border-bottom-right-radius:0}.ant-ribbon.ant-ribbon-placement-end .ant-ribbon-corner{right:0;border-color:currentcolor transparent transparent currentcolor}.ant-ribbon.ant-ribbon-placement-start{left:-8px;border-bottom-left-radius:0}.ant-ribbon.ant-ribbon-placement-start .ant-ribbon-corner{left:0;border-color:currentcolor currentcolor transparent transparent}.ant-badge-rtl{direction:rtl}.ant-badge-rtl .ant-badge:not(.ant-badge-not-a-wrapper) .ant-badge-count,.ant-badge-rtl .ant-badge:not(.ant-badge-not-a-wrapper) .ant-badge-dot,.ant-badge-rtl .ant-badge:not(.ant-badge-not-a-wrapper) .ant-scroll-number-custom-component{right:auto;left:0;direction:ltr;transform:translate(-50%,-50%);transform-origin:0% 0%}.ant-badge-rtl.ant-badge:not(.ant-badge-not-a-wrapper) .ant-scroll-number-custom-component{right:auto;left:0;transform:translate(-50%,-50%);transform-origin:0% 0%}.ant-badge-rtl .ant-badge-status-text{margin-right:8px;margin-left:0}.ant-ribbon-rtl{direction:rtl}.ant-ribbon-rtl.ant-ribbon-placement-end{right:unset;left:-8px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner{right:unset;left:0;border-color:currentcolor currentcolor transparent transparent}.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner:after{border-color:currentcolor currentcolor transparent transparent}.ant-ribbon-rtl.ant-ribbon-placement-start{right:-8px;left:unset;border-bottom-right-radius:0;border-bottom-left-radius:2px}.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner{right:0;left:unset;border-color:currentcolor transparent transparent currentcolor}.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner:after{border-color:currentcolor transparent transparent currentcolor}.access-mode-message[data-v-f8cdd97f]{display:flex;flex-direction:row;align-items:center}.access-mode-message a[data-v-f8cdd97f]{margin-left:16px}.container[data-v-f8cdd97f]{padding:20px;background-color:var(--zp-secondary-background);height:100%;overflow:auto}.header[data-v-f8cdd97f]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.header h1[data-v-f8cdd97f]{font-size:28px;font-weight:700;color:var(--zp-primary);margin:0}.quick-action[data-v-f8cdd97f]{margin-right:16px;font-size:14px;color:var(--zp-secondary);flex-shrink:0;display:flex;align-items:center;gap:4px}.quick-action a[data-v-f8cdd97f]{text-decoration:none;color:var(--zp-secondary)}.quick-action a[data-v-f8cdd97f]:hover{color:var(--zp-primary)}.content[data-v-f8cdd97f]{display:grid;grid-template-columns:repeat(auto-fit,minmax(384px,1fr));grid-gap:20px;margin-top:16px}.feature-item[data-v-f8cdd97f]{background-color:var(--zp-primary-background);border-radius:8px;box-shadow:0 1px 2px #0000001a;padding:20px}.feature-item ul[data-v-f8cdd97f]{list-style:none;padding:4px;max-height:70vh;overflow-y:auto}.feature-item.recent .title[data-v-f8cdd97f]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.feature-item.recent .title h2[data-v-f8cdd97f]{margin:0}.feature-item .item[data-v-f8cdd97f]{margin-bottom:10px;padding:4px 8px;display:flex;align-items:center;position:relative}.feature-item .item.rem[data-v-f8cdd97f]{display:flex;align-items:center;justify-content:space-between}.feature-item .item[data-v-f8cdd97f]:hover{background:var(--zp-secondary-background);border-radius:4px;color:var(--primary-color);cursor:pointer}.feature-item .item .fixed[data-v-f8cdd97f]{background:var(--primary-color);color:#fff;font-size:.8em;padding:2px 4px;border-radius:8px;margin-right:4px}.feature-item .icon[data-v-f8cdd97f]{margin-right:8px}.feature-item h2[data-v-f8cdd97f]{margin-top:0;margin-bottom:20px;font-size:20px;font-weight:700;color:var(--zp-primary)}.text[data-v-f8cdd97f]{flex:1;font-size:16px;word-break:break-all}.ver-info[data-v-f8cdd97f]{display:flex;align-items:center;flex-direction:row;justify-content:center;color:var(--zp-secondary);gap:16px;padding:32px;flex-wrap:wrap;font-size:.9em}.header-left[data-v-f8cdd97f]{display:flex;align-items:center;gap:16px}.magic-switch-compact[data-v-f8cdd97f]{flex-shrink:0}.ultra-cool-switch[data-v-f8cdd97f]{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--zp-primary-background);border:1px solid transparent;border-radius:25px;cursor:pointer;transition:all .4s cubic-bezier(.4,0,.2,1);font-size:12px;white-space:nowrap;position:relative;overflow:hidden}.ultra-cool-switch[data-v-f8cdd97f]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.ultra-cool-switch[data-v-f8cdd97f]:hover{background:var(--zp-secondary-background);border-color:var(--primary-color);transform:translateY(-2px) scale(1.02);box-shadow:0 8px 25px #00000026,0 4px 10px #0000001a}.ultra-cool-switch[data-v-f8cdd97f]:hover:before{left:100%}.ultra-cool-switch.active[data-v-f8cdd97f]{background:linear-gradient(135deg,#ff8c42 0%,#ff6b35 50%,#ff4757 100%);border-color:#ff8c42;color:#fff;box-shadow:0 8px 25px #ff6b3566,0 4px 15px #ff8c424d}.ultra-cool-switch.active[data-v-f8cdd97f]:before{background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent)}.ultra-cool-switch.active .switch-label[data-v-f8cdd97f]{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3)}.switch-bg[data-v-f8cdd97f]{position:relative;width:44px;height:22px;border-radius:11px;overflow:hidden;background:linear-gradient(45deg,rgba(0,0,0,.1),rgba(0,0,0,.05));box-shadow:inset 0 2px 4px #0000001a}.switch-track[data-v-f8cdd97f]{position:absolute;top:1px;left:1px;width:42px;height:20px;background:linear-gradient(45deg,rgba(0,0,0,.15),rgba(0,0,0,.08));border-radius:10px;transition:all .4s cubic-bezier(.4,0,.2,1)}.ultra-cool-switch.active .switch-track[data-v-f8cdd97f]{background:linear-gradient(45deg,rgba(255,255,255,.3),rgba(255,255,255,.15));box-shadow:0 0 10px #ff8c4280}.switch-thumb[data-v-f8cdd97f]{position:absolute;top:1px;left:1px;width:20px;height:20px;background:linear-gradient(145deg,#ffffff,#f0f0f0);border-radius:50%;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 8px #0003,0 2px 4px #0000001a;display:flex;align-items:center;justify-content:center}.switch-thumb.active[data-v-f8cdd97f]{transform:translate(22px) rotate(360deg);background:linear-gradient(145deg,#fff,#ffeaa6);box-shadow:0 4px 12px #ff8c4266,0 2px 6px #ff6b354d}.switch-icon[data-v-f8cdd97f]{font-size:10px;transition:all .3s ease;filter:drop-shadow(0 1px 2px rgba(0,0,0,.2))}.switch-label[data-v-f8cdd97f]{color:var(--zp-primary);font-weight:600;transition:all .3s ease;letter-spacing:.5px}.switch-glow[data-v-f8cdd97f]{position:absolute;top:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);background:linear-gradient(45deg,transparent,rgba(255,140,66,.2),transparent);border-radius:12px;opacity:0;transition:all .4s ease}.ultra-cool-switch.active .switch-glow[data-v-f8cdd97f]{opacity:1;animation:glowPulse-f8cdd97f 2s ease-in-out infinite}@keyframes glowPulse-f8cdd97f{0%,to{opacity:.3;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}}.switch-tooltip[data-v-f8cdd97f]{max-width:240px;line-height:1.5}.tooltip-title[data-v-f8cdd97f]{font-weight:600;margin-bottom:4px;color:var(--primary-color)}.tooltip-status[data-v-f8cdd97f]{margin-bottom:6px;font-size:13px}.tooltip-desc[data-v-f8cdd97f]{font-size:12px;opacity:.8;line-height:1.4}@media (max-width: 768px){.header-left[data-v-f8cdd97f]{gap:12px}.ultra-cool-switch[data-v-f8cdd97f]{padding:6px 10px;gap:8px;font-size:11px}.switch-bg[data-v-f8cdd97f]{width:36px;height:18px}.switch-track[data-v-f8cdd97f]{width:34px;height:16px}.switch-thumb[data-v-f8cdd97f]{width:16px;height:16px}.switch-thumb.active[data-v-f8cdd97f]{transform:translate(18px) rotate(360deg)}.switch-icon[data-v-f8cdd97f]{font-size:8px}} +.ant-radio-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;font-size:0}.ant-radio-group .ant-badge-count{z-index:1}.ant-radio-group>.ant-badge:not(:first-child)>.ant-radio-button-wrapper{border-left:none}.ant-radio-wrapper{box-sizing:border-box;margin:0 8px 0 0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-flex;align-items:baseline;cursor:pointer}.ant-radio-wrapper-disabled{cursor:not-allowed}.ant-radio-wrapper:after{display:inline-block;width:0;overflow:hidden;content:" "}.ant-radio{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;top:.2em;display:inline-block;outline:none;cursor:pointer}.ant-radio-wrapper:hover .ant-radio,.ant-radio:hover .ant-radio-inner,.ant-radio-input:focus+.ant-radio-inner{border-color:#d03f0a}.ant-radio-input:focus+.ant-radio-inner{box-shadow:0 0 0 3px #fff1e6}.ant-radio-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #d03f0a;border-radius:50%;visibility:hidden;animation:antRadioEffect .36s ease-in-out;animation-fill-mode:both;content:""}.ant-radio:hover:after,.ant-radio-wrapper:hover .ant-radio:after{visibility:visible}.ant-radio-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;background-color:#fff;border-color:#d9d9d9;border-style:solid;border-width:1px;border-radius:50%;transition:all .3s}.ant-radio-inner:after{position:absolute;top:50%;left:50%;display:block;width:16px;height:16px;margin-top:-8px;margin-left:-8px;background-color:#d03f0a;border-top:0;border-left:0;border-radius:16px;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:" "}.ant-radio-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;cursor:pointer;opacity:0}.ant-radio-checked .ant-radio-inner{border-color:#d03f0a}.ant-radio-checked .ant-radio-inner:after{transform:scale(.5);opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.ant-radio-disabled{cursor:not-allowed}.ant-radio-disabled .ant-radio-inner{background-color:#f5f5f5;border-color:#d9d9d9!important;cursor:not-allowed}.ant-radio-disabled .ant-radio-inner:after{background-color:#0003}.ant-radio-disabled .ant-radio-input{cursor:not-allowed}.ant-radio-disabled+span{color:#00000040;cursor:not-allowed}span.ant-radio+*{padding-right:8px;padding-left:8px}.ant-radio-button-wrapper{position:relative;display:inline-block;height:32px;margin:0;padding:0 15px;color:#000000d9;font-size:14px;line-height:30px;background:#fff;border:1px solid #d9d9d9;border-top-width:1.02px;border-left-width:0;cursor:pointer;transition:color .3s,background .3s,border-color .3s,box-shadow .3s}.ant-radio-button-wrapper a{color:#000000d9}.ant-radio-button-wrapper>.ant-radio-button{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.ant-radio-group-large .ant-radio-button-wrapper{height:40px;font-size:16px;line-height:38px}.ant-radio-group-small .ant-radio-button-wrapper{height:24px;padding:0 7px;line-height:22px}.ant-radio-button-wrapper:not(:first-child):before{position:absolute;top:-1px;left:-1px;display:block;box-sizing:content-box;width:1px;height:100%;padding:1px 0;background-color:#d9d9d9;transition:background-color .3s;content:""}.ant-radio-button-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:2px 0 0 2px}.ant-radio-button-wrapper:last-child{border-radius:0 2px 2px 0}.ant-radio-button-wrapper:first-child:last-child{border-radius:2px}.ant-radio-button-wrapper:hover{position:relative;color:#d03f0a}.ant-radio-button-wrapper:focus-within{box-shadow:0 0 0 3px #fff1e6}.ant-radio-button-wrapper .ant-radio-inner,.ant-radio-button-wrapper input[type=checkbox],.ant-radio-button-wrapper input[type=radio]{width:0;height:0;opacity:0;pointer-events:none}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){z-index:1;color:#d03f0a;background:#fff;border-color:#d03f0a}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before{background-color:#d03f0a}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child{border-color:#d03f0a}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#de632f;border-color:#de632f}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover:before{background-color:#de632f}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#ab2800;border-color:#ab2800}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active:before{background-color:#ab2800}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #fff1e6}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#fff;background:#d03f0a;border-color:#d03f0a}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#fff;background:#de632f;border-color:#de632f}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#fff;background:#ab2800;border-color:#ab2800}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #fff1e6}.ant-radio-button-wrapper-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-radio-button-wrapper-disabled:first-child,.ant-radio-button-wrapper-disabled:hover{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9}.ant-radio-button-wrapper-disabled:first-child{border-left-color:#d9d9d9}.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked{color:#00000040;background-color:#e6e6e6;border-color:#d9d9d9;box-shadow:none}@keyframes antRadioEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-radio-group.ant-radio-group-rtl{direction:rtl}.ant-radio-wrapper.ant-radio-wrapper-rtl{margin-right:0;margin-left:8px;direction:rtl}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl{border-right-width:0;border-left-width:1px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child):before{right:-1px;left:0}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child{border-right:1px solid #d9d9d9;border-radius:0 2px 2px 0}.ant-radio-button-wrapper-checked:not([class*=" ant-radio-button-wrapper-disabled"]).ant-radio-button-wrapper:first-child{border-right-color:#de632f}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child{border-radius:2px 0 0 2px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child{border-right-color:#d9d9d9}.ant-badge{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;line-height:1}.ant-badge-count{z-index:auto;min-width:20px;height:20px;padding:0 6px;color:#fff;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;text-align:center;background:#ff4d4f;border-radius:10px;box-shadow:0 0 0 1px #fff}.ant-badge-count a,.ant-badge-count a:hover{color:#fff}.ant-badge-count-sm{min-width:14px;height:14px;padding:0;font-size:12px;line-height:14px;border-radius:7px}.ant-badge-multiple-words{padding:0 8px}.ant-badge-dot{z-index:auto;width:6px;min-width:6px;height:6px;background:#ff4d4f;border-radius:100%;box-shadow:0 0 0 1px #fff}.ant-badge-dot.ant-scroll-number{transition:background 1.5s}.ant-badge-count,.ant-badge-dot,.ant-badge .ant-scroll-number-custom-component{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0%}.ant-badge-count.anticon-spin,.ant-badge-dot.anticon-spin,.ant-badge .ant-scroll-number-custom-component.anticon-spin{animation:antBadgeLoadingCircle 1s infinite linear}.ant-badge-status{line-height:inherit;vertical-align:baseline}.ant-badge-status-dot{position:relative;top:-1px;display:inline-block;width:6px;height:6px;vertical-align:middle;border-radius:50%}.ant-badge-status-success{background-color:#52c41a}.ant-badge-status-processing{position:relative;background-color:#1890ff}.ant-badge-status-processing:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border-radius:50%;animation:antStatusProcessing 1.2s infinite ease-in-out;content:""}.ant-badge-status-default{background-color:#d9d9d9}.ant-badge-status-error{background-color:#ff4d4f}.ant-badge-status-warning{background-color:#faad14}.ant-badge-status-pink,.ant-badge-status-magenta{background:#eb2f96}.ant-badge-status-red{background:#f5222d}.ant-badge-status-volcano{background:#fa541c}.ant-badge-status-orange{background:#fa8c16}.ant-badge-status-yellow{background:#fadb14}.ant-badge-status-gold{background:#faad14}.ant-badge-status-cyan{background:#13c2c2}.ant-badge-status-lime{background:#a0d911}.ant-badge-status-green{background:#52c41a}.ant-badge-status-blue{background:#1890ff}.ant-badge-status-geekblue{background:#2f54eb}.ant-badge-status-purple{background:#722ed1}.ant-badge-status-text{margin-left:8px;color:#000000d9;font-size:14px}.ant-badge-zoom-appear,.ant-badge-zoom-enter{animation:antZoomBadgeIn .3s cubic-bezier(.12,.4,.29,1.46);animation-fill-mode:both}.ant-badge-zoom-leave{animation:antZoomBadgeOut .3s cubic-bezier(.71,-.46,.88,.6);animation-fill-mode:both}.ant-badge-not-a-wrapper .ant-badge-zoom-appear,.ant-badge-not-a-wrapper .ant-badge-zoom-enter{animation:antNoWrapperZoomBadgeIn .3s cubic-bezier(.12,.4,.29,1.46)}.ant-badge-not-a-wrapper .ant-badge-zoom-leave{animation:antNoWrapperZoomBadgeOut .3s cubic-bezier(.71,-.46,.88,.6)}.ant-badge-not-a-wrapper:not(.ant-badge-status){vertical-align:middle}.ant-badge-not-a-wrapper .ant-scroll-number-custom-component,.ant-badge-not-a-wrapper .ant-badge-count{transform:none}.ant-badge-not-a-wrapper .ant-scroll-number-custom-component,.ant-badge-not-a-wrapper .ant-scroll-number{position:relative;top:auto;display:block;transform-origin:50% 50%}@keyframes antStatusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}.ant-scroll-number{overflow:hidden;direction:ltr}.ant-scroll-number-only{position:relative;display:inline-block;height:20px;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.ant-scroll-number-only>p.ant-scroll-number-only-unit{height:20px;margin:0;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.ant-scroll-number-symbol{vertical-align:top}@keyframes antZoomBadgeIn{0%{transform:scale(0) translate(50%,-50%);opacity:0}to{transform:scale(1) translate(50%,-50%)}}@keyframes antZoomBadgeOut{0%{transform:scale(1) translate(50%,-50%)}to{transform:scale(0) translate(50%,-50%);opacity:0}}@keyframes antNoWrapperZoomBadgeIn{0%{transform:scale(0);opacity:0}to{transform:scale(1)}}@keyframes antNoWrapperZoomBadgeOut{0%{transform:scale(1)}to{transform:scale(0);opacity:0}}@keyframes antBadgeLoadingCircle{0%{transform-origin:50%}to{transform:translate(50%,-50%) rotate(360deg);transform-origin:50%}}.ant-ribbon-wrapper{position:relative}.ant-ribbon{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:8px;height:22px;padding:0 8px;color:#fff;line-height:22px;white-space:nowrap;background-color:#d03f0a;border-radius:2px}.ant-ribbon-text{color:#fff}.ant-ribbon-corner{position:absolute;top:100%;width:8px;height:8px;color:currentcolor;border:4px solid;transform:scaleY(.75);transform-origin:top}.ant-ribbon-corner:after{position:absolute;top:-4px;left:-4px;width:inherit;height:inherit;color:#00000040;border:inherit;content:""}.ant-ribbon-color-pink,.ant-ribbon-color-magenta{color:#eb2f96;background:#eb2f96}.ant-ribbon-color-red{color:#f5222d;background:#f5222d}.ant-ribbon-color-volcano{color:#fa541c;background:#fa541c}.ant-ribbon-color-orange{color:#fa8c16;background:#fa8c16}.ant-ribbon-color-yellow{color:#fadb14;background:#fadb14}.ant-ribbon-color-gold{color:#faad14;background:#faad14}.ant-ribbon-color-cyan{color:#13c2c2;background:#13c2c2}.ant-ribbon-color-lime{color:#a0d911;background:#a0d911}.ant-ribbon-color-green{color:#52c41a;background:#52c41a}.ant-ribbon-color-blue{color:#1890ff;background:#1890ff}.ant-ribbon-color-geekblue{color:#2f54eb;background:#2f54eb}.ant-ribbon-color-purple{color:#722ed1;background:#722ed1}.ant-ribbon.ant-ribbon-placement-end{right:-8px;border-bottom-right-radius:0}.ant-ribbon.ant-ribbon-placement-end .ant-ribbon-corner{right:0;border-color:currentcolor transparent transparent currentcolor}.ant-ribbon.ant-ribbon-placement-start{left:-8px;border-bottom-left-radius:0}.ant-ribbon.ant-ribbon-placement-start .ant-ribbon-corner{left:0;border-color:currentcolor currentcolor transparent transparent}.ant-badge-rtl{direction:rtl}.ant-badge-rtl .ant-badge:not(.ant-badge-not-a-wrapper) .ant-badge-count,.ant-badge-rtl .ant-badge:not(.ant-badge-not-a-wrapper) .ant-badge-dot,.ant-badge-rtl .ant-badge:not(.ant-badge-not-a-wrapper) .ant-scroll-number-custom-component{right:auto;left:0;direction:ltr;transform:translate(-50%,-50%);transform-origin:0% 0%}.ant-badge-rtl.ant-badge:not(.ant-badge-not-a-wrapper) .ant-scroll-number-custom-component{right:auto;left:0;transform:translate(-50%,-50%);transform-origin:0% 0%}.ant-badge-rtl .ant-badge-status-text{margin-right:8px;margin-left:0}.ant-ribbon-rtl{direction:rtl}.ant-ribbon-rtl.ant-ribbon-placement-end{right:unset;left:-8px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner{right:unset;left:0;border-color:currentcolor currentcolor transparent transparent}.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner:after{border-color:currentcolor currentcolor transparent transparent}.ant-ribbon-rtl.ant-ribbon-placement-start{right:-8px;left:unset;border-bottom-right-radius:0;border-bottom-left-radius:2px}.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner{right:0;left:unset;border-color:currentcolor transparent transparent currentcolor}.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner:after{border-color:currentcolor transparent transparent currentcolor}.access-mode-message[data-v-418a804e]{display:flex;flex-direction:row;align-items:center}.access-mode-message a[data-v-418a804e]{margin-left:16px}.container[data-v-418a804e]{padding:20px;background-color:var(--zp-secondary-background);height:100%;overflow:auto}.header[data-v-418a804e]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.header h1[data-v-418a804e]{font-size:28px;font-weight:700;color:var(--zp-primary);margin:0}.quick-action[data-v-418a804e]{margin-right:16px;font-size:14px;color:var(--zp-secondary);flex-shrink:0;display:flex;align-items:center;gap:4px}.quick-action a[data-v-418a804e]{text-decoration:none;color:var(--zp-secondary)}.quick-action a[data-v-418a804e]:hover{color:var(--zp-primary)}.content[data-v-418a804e]{display:grid;grid-template-columns:repeat(auto-fit,minmax(384px,1fr));grid-gap:20px;margin-top:16px}.feature-item[data-v-418a804e]{background-color:var(--zp-primary-background);border-radius:8px;box-shadow:0 1px 2px #0000001a;padding:20px}.feature-item ul[data-v-418a804e]{list-style:none;padding:4px;max-height:70vh;overflow-y:auto}.feature-item.recent .title[data-v-418a804e]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.feature-item.recent .title h2[data-v-418a804e]{margin:0}.feature-item .item[data-v-418a804e]{margin-bottom:10px;padding:4px 8px;display:flex;align-items:center;position:relative}.feature-item .item.rem[data-v-418a804e]{display:flex;align-items:center;justify-content:space-between}.feature-item .item[data-v-418a804e]:hover{background:var(--zp-secondary-background);border-radius:4px;color:var(--primary-color);cursor:pointer}.feature-item .item .fixed[data-v-418a804e]{background:var(--primary-color);color:#fff;font-size:.8em;padding:2px 4px;border-radius:8px;margin-right:4px}.feature-item .icon[data-v-418a804e]{margin-right:8px}.feature-item h2[data-v-418a804e]{margin-top:0;margin-bottom:20px;font-size:20px;font-weight:700;color:var(--zp-primary)}.text[data-v-418a804e]{flex:1;font-size:16px;word-break:break-all}.ver-info[data-v-418a804e]{display:flex;align-items:center;flex-direction:row;justify-content:center;color:var(--zp-secondary);gap:16px;padding:32px;flex-wrap:wrap;font-size:.9em}.header-left[data-v-418a804e]{display:flex;align-items:center;gap:16px}.magic-switch-compact[data-v-418a804e]{flex-shrink:0}.ultra-cool-switch[data-v-418a804e]{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--zp-primary-background);border:1px solid transparent;border-radius:25px;cursor:pointer;transition:all .4s cubic-bezier(.4,0,.2,1);font-size:12px;white-space:nowrap;position:relative;overflow:hidden}.ultra-cool-switch[data-v-418a804e]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.ultra-cool-switch[data-v-418a804e]:hover{background:var(--zp-secondary-background);border-color:var(--primary-color);transform:translateY(-2px) scale(1.02);box-shadow:0 8px 25px #00000026,0 4px 10px #0000001a}.ultra-cool-switch[data-v-418a804e]:hover:before{left:100%}.ultra-cool-switch.active[data-v-418a804e]{background:linear-gradient(135deg,#ff8c42 0%,#ff6b35 50%,#ff4757 100%);border-color:#ff8c42;color:#fff;box-shadow:0 8px 25px #ff6b3566,0 4px 15px #ff8c424d}.ultra-cool-switch.active[data-v-418a804e]:before{background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent)}.ultra-cool-switch.active .switch-label[data-v-418a804e]{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3)}.switch-bg[data-v-418a804e]{position:relative;width:44px;height:22px;border-radius:11px;overflow:hidden;background:linear-gradient(45deg,rgba(0,0,0,.1),rgba(0,0,0,.05));box-shadow:inset 0 2px 4px #0000001a}.switch-track[data-v-418a804e]{position:absolute;top:1px;left:1px;width:42px;height:20px;background:linear-gradient(45deg,rgba(0,0,0,.15),rgba(0,0,0,.08));border-radius:10px;transition:all .4s cubic-bezier(.4,0,.2,1)}.ultra-cool-switch.active .switch-track[data-v-418a804e]{background:linear-gradient(45deg,rgba(255,255,255,.3),rgba(255,255,255,.15));box-shadow:0 0 10px #ff8c4280}.switch-thumb[data-v-418a804e]{position:absolute;top:1px;left:1px;width:20px;height:20px;background:linear-gradient(145deg,#ffffff,#f0f0f0);border-radius:50%;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 8px #0003,0 2px 4px #0000001a;display:flex;align-items:center;justify-content:center}.switch-thumb.active[data-v-418a804e]{transform:translate(22px) rotate(360deg);background:linear-gradient(145deg,#fff,#ffeaa6);box-shadow:0 4px 12px #ff8c4266,0 2px 6px #ff6b354d}.switch-icon[data-v-418a804e]{font-size:10px;transition:all .3s ease;filter:drop-shadow(0 1px 2px rgba(0,0,0,.2))}.switch-label[data-v-418a804e]{color:var(--zp-primary);font-weight:600;transition:all .3s ease;letter-spacing:.5px}.switch-glow[data-v-418a804e]{position:absolute;top:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);background:linear-gradient(45deg,transparent,rgba(255,140,66,.2),transparent);border-radius:12px;opacity:0;transition:all .4s ease}.ultra-cool-switch.active .switch-glow[data-v-418a804e]{opacity:1;animation:glowPulse-418a804e 2s ease-in-out infinite}@keyframes glowPulse-418a804e{0%,to{opacity:.3;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}}.switch-tooltip[data-v-418a804e]{max-width:240px;line-height:1.5}.tooltip-title[data-v-418a804e]{font-weight:600;margin-bottom:4px;color:var(--primary-color)}.tooltip-status[data-v-418a804e]{margin-bottom:6px;font-size:13px}.tooltip-desc[data-v-418a804e]{font-size:12px;opacity:.8;line-height:1.4}@media (max-width: 768px){.header-left[data-v-418a804e]{gap:12px}.ultra-cool-switch[data-v-418a804e]{padding:6px 10px;gap:8px;font-size:11px}.switch-bg[data-v-418a804e]{width:36px;height:18px}.switch-track[data-v-418a804e]{width:34px;height:16px}.switch-thumb[data-v-418a804e]{width:16px;height:16px}.switch-thumb.active[data-v-418a804e]{transform:translate(18px) rotate(360deg)}.switch-icon[data-v-418a804e]{font-size:8px}} diff --git a/vue/dist/assets/globalSetting-9a0af625.js b/vue/dist/assets/globalSetting-c284fbc0.js similarity index 96% rename from vue/dist/assets/globalSetting-9a0af625.js rename to vue/dist/assets/globalSetting-c284fbc0.js index f1eb17f..4e1ece1 100644 --- a/vue/dist/assets/globalSetting-9a0af625.js +++ b/vue/dist/assets/globalSetting-c284fbc0.js @@ -1 +1 @@ -import{c as t,A as ce,d as E,a1 as G,r as K,m as pe,n as ee,U as _,V as S,a3 as s,a4 as e,B as o,a2 as M,$ as U,W as g,Z as O,G as P,o as me,Y as p,aM as q,X as C,a8 as D,ac as W,aR as ge,z as B,ak as L,ah as he,aj as te,a0 as ae,aK as _e,aS as fe,J as ve,K as be,aT as ke,aU as ye,ad as we,a6 as Ce,ag as Se,a5 as X,a9 as Te,aV as $e,aW as Ie,aX as xe,aY as Re,aO as Ue}from"./index-d6594e8e.js";import{_ as z,a as le,F as Me}from"./numInput-d89a0bbe.js";import"./index-68461333.js";/* empty css *//* empty css */import{_ as oe}from"./index-e620c28b.js";import"./index-154b94da.js";import{g as Oe,C as Y,_ as Pe}from"./shortcut-0468cdd7.js";import"./isArrayLikeObject-70bd2074.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";import"./index-cb6a3d31.js";import"./Checkbox-59427a1c.js";var Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Ve=Fe;function J(y){for(var a=1;a{const k=new Image;k.onload=()=>{const m=document.createElement("canvas");m.width=k.width*h,m.height=k.height*h,m.getContext("2d").drawImage(k,0,0,m.width,m.height),b(m.toDataURL())},k.src=w})}const u=G(),f=K("");return pe(()=>[u.enableThumbnail,u.gridThumbnailResolution],ee(async()=>{u.enableThumbnail&&(f.value=await a(Q,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(w,h)=>{const b=le,k=oe;return _(),S(O,null,[t(b,{label:e(o)("defaultGridCellWidth")},{default:s(()=>[t(z,{min:64,max:1024,step:16,modelValue:e(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=m=>e(u).defaultGridCellWidth=m)},null,8,["modelValue"])]),_:1},8,["label"]),t(b,{label:e(o)("useThumbnailPreview")},{default:s(()=>[t(k,{checked:e(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=m=>e(u).enableThumbnail=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).enableThumbnail?(_(),M(b,{key:0,label:e(o)("thumbnailResolution")},{default:s(()=>[t(z,{modelValue:e(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=m=>e(u).gridThumbnailResolution=m),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("livePreview")},{default:s(()=>[g("div",null,[g("img",{width:e(u).defaultGridCellWidth,height:e(u).defaultGridCellWidth,src:e(u).enableThumbnail?f.value:e(Q)},null,8,We)])]),_:1},8,["label"]),t(b,{label:e(o)("defaultShowChangeIndicators")},{default:s(()=>[t(k,{checked:e(u).defaultChangeIndchecked,"onUpdate:checked":h[3]||(h[3]=m=>e(u).defaultChangeIndchecked=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).defaultChangeIndchecked?(_(),M(b,{key:1,label:e(o)("defaultSeedAsChange")},{default:s(()=>[t(k,{checked:e(u).defaultSeedChangeChecked,"onUpdate:checked":h[4]||(h[4]=m=>e(u).defaultSeedChangeChecked=m)},null,8,["checked"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("previewMaskBackgroundOpacity")},{default:s(()=>[t(z,{min:0,max:1,step:.05,modelValue:e(u).previewBgOpacity,"onUpdate:modelValue":h[5]||(h[5]=m=>e(u).previewBgOpacity=m)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),De={class:"auto-tag-settings"},Ne={class:"header"},Be={class:"description"},Le={class:"actions"},Ee={class:"rules-list"},Ge={class:"rule-header"},Ke={class:"filters-list"},je={key:0,class:"empty-tip"},He=E({__name:"AutoTagSettings",setup(y){const a=K([]),u=G(),f=P(()=>{var r,T;return((T=(r=u.conf)==null?void 0:r.all_custom_tags)==null?void 0:T.filter(v=>v.type==="custom"))||[]}),w={value:r=>r.name,text:r=>r.display_name?`${r.display_name} : ${r.name}`:r.name};me(()=>{var T,v;const r=(v=(T=u.conf)==null?void 0:T.app_fe_setting)==null?void 0:v.auto_tag_rules;r&&(a.value=r)});const h=()=>{a.value.push({tag:"",filters:[]})},b=r=>{a.value.splice(r,1)},k=r=>{r.filters.push({field:"pos_prompt",operator:"contains",value:""})},m=(r,T)=>{r.filters.splice(T,1)},F=async()=>{try{await ge("auto_tag_rules",a.value),B.success(o("autoTag.saveSuccess")),u.conf&&u.conf.app_fe_setting&&(u.conf.app_fe_setting.auto_tag_rules=a.value)}catch(r){B.error(o("autoTag.saveFail")+": "+r)}},N=P(()=>[{label:o("autoTag.fields.posPrompt"),value:"pos_prompt"},{label:o("autoTag.fields.negPrompt"),value:"neg_prompt"},{label:o("autoTag.fields.model"),value:"Model"},{label:o("autoTag.fields.sampler"),value:"Sampler"},{label:o("autoTag.fields.size"),value:"Size"},{label:o("autoTag.fields.cfgScale"),value:"CFG scale"},{label:o("autoTag.fields.steps"),value:"Steps"},{label:o("autoTag.fields.seed"),value:"Seed"}]),V=P(()=>[{label:o("autoTag.operators.contains"),value:"contains"},{label:o("autoTag.operators.equals"),value:"equals"},{label:o("autoTag.operators.regex"),value:"regex"}]);return(r,T)=>{const v=L,n=he,l=te;return _(),S("div",De,[g("div",Ne,[g("div",Be,p(e(o)("autoTag.description")),1),g("div",Le,[t(v,{type:"primary",onClick:h},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addRule")),1)]),_:1}),t(v,{type:"primary",onClick:F,style:{"margin-left":"16px"}},{default:s(()=>[C(p(e(o)("autoTag.saveConfig")),1)]),_:1})])]),g("div",Ee,[(_(!0),S(O,null,D(a.value,(c,I)=>(_(),S("div",{key:I,class:"rule-card"},[g("div",Ge,[t(e(W),{conv:w,style:{width:"240px"},options:f.value,value:c.tag,"onUpdate:value":d=>c.tag=d,disabled:!f.value.length,placeholder:e(o)("autoTag.inputTagName")},null,8,["options","value","onUpdate:value","disabled","placeholder"]),t(v,{type:"text",danger:"",onClick:d=>b(I)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]),g("div",Ke,[(_(!0),S(O,null,D(c.filters,(d,$)=>(_(),S("div",{key:$,class:"filter-row"},[t(n,{value:d.field,"onUpdate:value":x=>d.field=x,style:{width:"240px"},options:N.value},null,8,["value","onUpdate:value","options"]),t(n,{value:d.operator,"onUpdate:value":x=>d.operator=x,style:{width:"160px"},options:V.value},null,8,["value","onUpdate:value","options"]),t(l,{value:d.value,"onUpdate:value":x=>d.value=x,placeholder:e(o)("autoTag.value"),style:{flex:"1"}},null,8,["value","onUpdate:value","placeholder"]),t(v,{type:"text",danger:"",onClick:x=>m(c,$)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]))),128)),t(v,{type:"dashed",block:"",onClick:d=>k(c),style:{"margin-top":"8px"}},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addFilter")),1)]),_:2},1032,["onClick"])])]))),128))]),a.value.length===0?(_(),S("div",je,p(e(o)("autoTag.noRules")),1)):U("",!0)])}}});const qe=ae(He,[["__scopeId","data-v-5bd94ce6"]]),Xe={class:"panel"},Ye={class:"lang-select-wrap"},Je={style:{"margin-top":"64px"}},Ze={style:{"margin-top":"64px"}},Qe={style:{"margin-left":"8px",color:"#666"}},et={style:{"margin-top":"0"}},tt={style:{"padding-left":"8px",color:"#666"}},at={class:"col"},lt=E({__name:"globalSetting",setup(y){const a=G(),u=_e(),f=K(!1),w=async()=>{window.location.reload()},h=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],b=ee(n=>{const l=a.shortcut[n];["ctrl","shift"].includes(l.toLowerCase())&&(a.shortcut[n]="")},700),k=fe(()=>{B.warn(o("notAllowSingleCtrlOrShiftAsShortcut"))},3e3),m=(n,l)=>{const c=Oe(n);["ctrl","shift"].includes(c.toLowerCase())&&(k(),b(l)),c&&(a.shortcut[l]=c)},F=async()=>{await $e("shutdown_api_server_command"),await Ie.removeFile(xe),await Re()},N=P(()=>[{value:"empty",text:o("emptyStartPage")},{value:"last-workspace-state",text:o("restoreLastWorkspaceState")},...u.snapshots.map(l=>({value:`workspace_snapshot_${l.id}`,text:o("restoreWorkspaceSnapshot",[l.name])}))]),V=P(()=>{const n=a.shortcut,l={};return Object.values(n).forEach(c=>{var I;l[I=c+""]??(l[I]=0),l[c+""]++}),l}),r=P(()=>{var l;const n=[{key:"download",label:o("download")},{key:"delete",label:o("deleteSelected")}];return(l=a.conf)==null||l.all_custom_tags.forEach(c=>{n.push({key:`toggle_tag_${c.name}`,label:o("toggleTagSelection",{tag:c.name})})}),a.quickMovePaths.forEach(c=>{n.push({key:`copy_to_${c.dir}`,label:o("copyTo")+" "+c.zh})}),a.quickMovePaths.forEach(c=>{n.push({key:`move_to_${c.dir}`,label:o("moveTo")+" "+c.zh})}),n}),T=n=>n&&n in V.value&&V.value[n]>1,v=ve(be+"disable_maximize",!1);return(n,l)=>{var H;const c=Ue,I=L,d=le,$=oe,x=L,ne=z,A=Y,se=Pe,ue=Y,ie=te,de=Me;return _(),S("div",Xe,[(H=e(a).conf)!=null&&H.is_readonly?(_(),M(c,{key:0,message:n.$t("readonlyModeSettingPageDesc"),type:"warning"},null,8,["message"])):U("",!0),U("",!0),t(de,null,{default:s(()=>[t(d,{label:n.$t("lang")},{default:s(()=>[g("div",Ye,[t(e(W),{options:h,value:e(a).lang,"onUpdate:value":l[0]||(l[0]=i=>e(a).lang=i),onChange:l[1]||(l[1]=i=>f.value=!0)},null,8,["value"])]),f.value?(_(),M(I,{key:0,type:"primary",onClick:w,ghost:""},{default:s(()=>[C(p(e(o)("langChangeReload")),1)]),_:1})):U("",!0)]),_:1},8,["label"]),g("h2",Je,p(e(o)("ImageBrowsingSettings")),1),t(ze),g("h2",Ze,p(e(o)("autoTag.name")),1),t(qe),g("h2",null,"TikTok "+p(e(o)("view")),1),t(d,{label:n.$t("showTiktokNavigator")},{default:s(()=>[t($,{checked:e(a).showTiktokNavigator,"onUpdate:checked":l[2]||(l[2]=i=>e(a).showTiktokNavigator=i)},null,8,["checked"]),g("span",Qe,p(e(o)("showTiktokNavigatorDesc")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("imgSearch")),1),t(d,{label:n.$t("rebuildImageIndex")},{default:s(()=>[t(x,{onClick:e(ke)},{default:s(()=>[C(p(n.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),g("h2",null,p(e(o)("autoRefresh")),1),t(d,{label:n.$t("autoRefreshWalkMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshWalkMode,"onUpdate:checked":l[3]||(l[3]=i=>e(a).autoRefreshWalkMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("autoRefreshNormalFixedMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshNormalFixedMode,"onUpdate:checked":l[4]||(l[4]=i=>e(a).autoRefreshNormalFixedMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:e(o)("autoRefreshWalkModePosLimit")},{default:s(()=>[t(ne,{min:0,max:1024,step:16,modelValue:e(a).autoRefreshWalkModePosLimit,"onUpdate:modelValue":l[5]||(l[5]=i=>e(a).autoRefreshWalkModePosLimit=i)},null,8,["modelValue"])]),_:1},8,["label"]),g("h2",et,p(e(o)("other")),1),t(d,{label:n.$t("fileTypeFilter")},{default:s(()=>[t(se,{value:e(a).fileTypeFilter,"onUpdate:value":l[6]||(l[6]=i=>e(a).fileTypeFilter=i)},{default:s(()=>[t(A,{value:"all"},{default:s(()=>[C(p(n.$t("allFiles")),1)]),_:1}),t(A,{value:"image"},{default:s(()=>[C(p(n.$t("image")),1)]),_:1}),t(A,{value:"video"},{default:s(()=>[C(p(n.$t("video")),1)]),_:1}),t(A,{value:"audio"},{default:s(()=>[C(p(n.$t("audio")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),t(d,{label:n.$t("showCommaInGenInfoPanel")},{default:s(()=>[t($,{checked:e(a).showCommaInInfoPanel,"onUpdate:checked":l[7]||(l[7]=i=>e(a).showCommaInInfoPanel=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("showRandomImageInStartup")},{default:s(()=>[t($,{checked:e(a).showRandomImageInStartup,"onUpdate:checked":l[8]||(l[8]=i=>e(a).showRandomImageInStartup=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("defaultSortingMethod")},{default:s(()=>[t(e(W),{value:e(a).defaultSortingMethod,"onUpdate:value":l[9]||(l[9]=i=>e(a).defaultSortingMethod=i),conv:e(ye),options:e(we)},null,8,["value","conv","options"])]),_:1},8,["label"]),t(d,{label:n.$t("longPressOpenContextMenu")},{default:s(()=>[t($,{checked:e(a).longPressOpenContextMenu,"onUpdate:checked":l[10]||(l[10]=i=>e(a).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("openOnAppStart")},{default:s(()=>[t(e(W),{value:e(a).defaultInitinalPage,"onUpdate:value":l[11]||(l[11]=i=>e(a).defaultInitinalPage=i),options:N.value},null,8,["value","options"])]),_:1},8,["label"]),(_(!0),S(O,null,D(e(a).ignoredConfirmActions,(i,R)=>(_(),M(d,{label:n.$t(R+"SkipConfirm"),key:R},{default:s(()=>[t(ue,{checked:e(a).ignoredConfirmActions[R],"onUpdate:checked":re=>e(a).ignoredConfirmActions[R]=re},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),t(d,{label:n.$t("disableMaximize")},{default:s(()=>[t($,{checked:e(v),"onUpdate:checked":l[12]||(l[12]=i=>Ce(v)?v.value=i:null)},null,8,["checked"]),g("sub",tt,p(n.$t("takeEffectAfterReloadPage")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("shortcutKey")),1),(_(!0),S(O,null,D(r.value,i=>(_(),M(d,{label:i.label,key:i.key},{default:s(()=>[g("div",{class:Se(["col",{conflict:T(e(a).shortcut[i.key]+"")}]),onKeydown:l[13]||(l[13]=X(()=>{},["stop","prevent"]))},[t(ie,{value:e(a).shortcut[i.key],onKeydown:X(R=>m(R,i.key),["stop","prevent"]),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),t(I,{onClick:R=>e(a).shortcut[i.key]="",class:"clear-btn"},{default:s(()=>[C(p(n.$t("clear")),1)]),_:2},1032,["onClick"])],34)]),_:2},1032,["label"]))),128)),e(Te)?(_(),S(O,{key:0},[g("h2",null,p(e(o)("clientSpecificSettings")),1),t(d,null,{default:s(()=>[g("div",at,[t(I,{onClick:F,class:"clear-btn"},{default:s(()=>[C(p(n.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):U("",!0)]),_:1})])}}});const _t=ae(lt,[["__scopeId","data-v-2522743a"]]);export{_t as default}; +import{c as t,A as ce,d as E,a1 as G,r as K,m as pe,n as ee,U as _,V as S,a3 as s,a4 as e,B as o,a2 as M,$ as U,W as g,Z as O,G as P,o as me,Y as p,aM as q,X as C,a8 as D,ac as W,aR as ge,z as B,ak as L,ah as he,aj as te,a0 as ae,aK as _e,aS as fe,J as ve,K as be,aT as ke,aU as ye,ad as we,a6 as Ce,ag as Se,a5 as X,a9 as Te,aV as $e,aW as Ie,aX as xe,aY as Re,aO as Ue}from"./index-0205daf8.js";import{_ as z,a as le,F as Me}from"./numInput-a524d3bc.js";import"./index-b9ffc995.js";/* empty css *//* empty css */import{_ as oe}from"./index-728b29ca.js";import"./index-859cb083.js";import{g as Oe,C as Y,_ as Pe}from"./shortcut-eca2d427.js";import"./isArrayLikeObject-55a21cf1.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./index-6a8edab1.js";import"./Checkbox-951f37ba.js";var Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Ve=Fe;function J(y){for(var a=1;a{const k=new Image;k.onload=()=>{const m=document.createElement("canvas");m.width=k.width*h,m.height=k.height*h,m.getContext("2d").drawImage(k,0,0,m.width,m.height),b(m.toDataURL())},k.src=w})}const u=G(),f=K("");return pe(()=>[u.enableThumbnail,u.gridThumbnailResolution],ee(async()=>{u.enableThumbnail&&(f.value=await a(Q,u.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(w,h)=>{const b=le,k=oe;return _(),S(O,null,[t(b,{label:e(o)("defaultGridCellWidth")},{default:s(()=>[t(z,{min:64,max:1024,step:16,modelValue:e(u).defaultGridCellWidth,"onUpdate:modelValue":h[0]||(h[0]=m=>e(u).defaultGridCellWidth=m)},null,8,["modelValue"])]),_:1},8,["label"]),t(b,{label:e(o)("useThumbnailPreview")},{default:s(()=>[t(k,{checked:e(u).enableThumbnail,"onUpdate:checked":h[1]||(h[1]=m=>e(u).enableThumbnail=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).enableThumbnail?(_(),M(b,{key:0,label:e(o)("thumbnailResolution")},{default:s(()=>[t(z,{modelValue:e(u).gridThumbnailResolution,"onUpdate:modelValue":h[2]||(h[2]=m=>e(u).gridThumbnailResolution=m),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("livePreview")},{default:s(()=>[g("div",null,[g("img",{width:e(u).defaultGridCellWidth,height:e(u).defaultGridCellWidth,src:e(u).enableThumbnail?f.value:e(Q)},null,8,We)])]),_:1},8,["label"]),t(b,{label:e(o)("defaultShowChangeIndicators")},{default:s(()=>[t(k,{checked:e(u).defaultChangeIndchecked,"onUpdate:checked":h[3]||(h[3]=m=>e(u).defaultChangeIndchecked=m)},null,8,["checked"])]),_:1},8,["label"]),e(u).defaultChangeIndchecked?(_(),M(b,{key:1,label:e(o)("defaultSeedAsChange")},{default:s(()=>[t(k,{checked:e(u).defaultSeedChangeChecked,"onUpdate:checked":h[4]||(h[4]=m=>e(u).defaultSeedChangeChecked=m)},null,8,["checked"])]),_:1},8,["label"])):U("",!0),t(b,{label:e(o)("previewMaskBackgroundOpacity")},{default:s(()=>[t(z,{min:0,max:1,step:.05,modelValue:e(u).previewBgOpacity,"onUpdate:modelValue":h[5]||(h[5]=m=>e(u).previewBgOpacity=m)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),De={class:"auto-tag-settings"},Ne={class:"header"},Be={class:"description"},Le={class:"actions"},Ee={class:"rules-list"},Ge={class:"rule-header"},Ke={class:"filters-list"},je={key:0,class:"empty-tip"},He=E({__name:"AutoTagSettings",setup(y){const a=K([]),u=G(),f=P(()=>{var r,T;return((T=(r=u.conf)==null?void 0:r.all_custom_tags)==null?void 0:T.filter(v=>v.type==="custom"))||[]}),w={value:r=>r.name,text:r=>r.display_name?`${r.display_name} : ${r.name}`:r.name};me(()=>{var T,v;const r=(v=(T=u.conf)==null?void 0:T.app_fe_setting)==null?void 0:v.auto_tag_rules;r&&(a.value=r)});const h=()=>{a.value.push({tag:"",filters:[]})},b=r=>{a.value.splice(r,1)},k=r=>{r.filters.push({field:"pos_prompt",operator:"contains",value:""})},m=(r,T)=>{r.filters.splice(T,1)},F=async()=>{try{await ge("auto_tag_rules",a.value),B.success(o("autoTag.saveSuccess")),u.conf&&u.conf.app_fe_setting&&(u.conf.app_fe_setting.auto_tag_rules=a.value)}catch(r){B.error(o("autoTag.saveFail")+": "+r)}},N=P(()=>[{label:o("autoTag.fields.posPrompt"),value:"pos_prompt"},{label:o("autoTag.fields.negPrompt"),value:"neg_prompt"},{label:o("autoTag.fields.model"),value:"Model"},{label:o("autoTag.fields.sampler"),value:"Sampler"},{label:o("autoTag.fields.size"),value:"Size"},{label:o("autoTag.fields.cfgScale"),value:"CFG scale"},{label:o("autoTag.fields.steps"),value:"Steps"},{label:o("autoTag.fields.seed"),value:"Seed"}]),V=P(()=>[{label:o("autoTag.operators.contains"),value:"contains"},{label:o("autoTag.operators.equals"),value:"equals"},{label:o("autoTag.operators.regex"),value:"regex"}]);return(r,T)=>{const v=L,n=he,l=te;return _(),S("div",De,[g("div",Ne,[g("div",Be,p(e(o)("autoTag.description")),1),g("div",Le,[t(v,{type:"primary",onClick:h},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addRule")),1)]),_:1}),t(v,{type:"primary",onClick:F,style:{"margin-left":"16px"}},{default:s(()=>[C(p(e(o)("autoTag.saveConfig")),1)]),_:1})])]),g("div",Ee,[(_(!0),S(O,null,D(a.value,(c,I)=>(_(),S("div",{key:I,class:"rule-card"},[g("div",Ge,[t(e(W),{conv:w,style:{width:"240px"},options:f.value,value:c.tag,"onUpdate:value":d=>c.tag=d,disabled:!f.value.length,placeholder:e(o)("autoTag.inputTagName")},null,8,["options","value","onUpdate:value","disabled","placeholder"]),t(v,{type:"text",danger:"",onClick:d=>b(I)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]),g("div",Ke,[(_(!0),S(O,null,D(c.filters,(d,$)=>(_(),S("div",{key:$,class:"filter-row"},[t(n,{value:d.field,"onUpdate:value":x=>d.field=x,style:{width:"240px"},options:N.value},null,8,["value","onUpdate:value","options"]),t(n,{value:d.operator,"onUpdate:value":x=>d.operator=x,style:{width:"160px"},options:V.value},null,8,["value","onUpdate:value","options"]),t(l,{value:d.value,"onUpdate:value":x=>d.value=x,placeholder:e(o)("autoTag.value"),style:{flex:"1"}},null,8,["value","onUpdate:value","placeholder"]),t(v,{type:"text",danger:"",onClick:x=>m(c,$)},{icon:s(()=>[t(e(Z))]),_:2},1032,["onClick"])]))),128)),t(v,{type:"dashed",block:"",onClick:d=>k(c),style:{"margin-top":"8px"}},{icon:s(()=>[t(e(q))]),default:s(()=>[C(" "+p(e(o)("autoTag.addFilter")),1)]),_:2},1032,["onClick"])])]))),128))]),a.value.length===0?(_(),S("div",je,p(e(o)("autoTag.noRules")),1)):U("",!0)])}}});const qe=ae(He,[["__scopeId","data-v-5bd94ce6"]]),Xe={class:"panel"},Ye={class:"lang-select-wrap"},Je={style:{"margin-top":"64px"}},Ze={style:{"margin-top":"64px"}},Qe={style:{"margin-left":"8px",color:"#666"}},et={style:{"margin-top":"0"}},tt={style:{"padding-left":"8px",color:"#666"}},at={class:"col"},lt=E({__name:"globalSetting",setup(y){const a=G(),u=_e(),f=K(!1),w=async()=>{window.location.reload()},h=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],b=ee(n=>{const l=a.shortcut[n];["ctrl","shift"].includes(l.toLowerCase())&&(a.shortcut[n]="")},700),k=fe(()=>{B.warn(o("notAllowSingleCtrlOrShiftAsShortcut"))},3e3),m=(n,l)=>{const c=Oe(n);["ctrl","shift"].includes(c.toLowerCase())&&(k(),b(l)),c&&(a.shortcut[l]=c)},F=async()=>{await $e("shutdown_api_server_command"),await Ie.removeFile(xe),await Re()},N=P(()=>[{value:"empty",text:o("emptyStartPage")},{value:"last-workspace-state",text:o("restoreLastWorkspaceState")},...u.snapshots.map(l=>({value:`workspace_snapshot_${l.id}`,text:o("restoreWorkspaceSnapshot",[l.name])}))]),V=P(()=>{const n=a.shortcut,l={};return Object.values(n).forEach(c=>{var I;l[I=c+""]??(l[I]=0),l[c+""]++}),l}),r=P(()=>{var l;const n=[{key:"download",label:o("download")},{key:"delete",label:o("deleteSelected")}];return(l=a.conf)==null||l.all_custom_tags.forEach(c=>{n.push({key:`toggle_tag_${c.name}`,label:o("toggleTagSelection",{tag:c.name})})}),a.quickMovePaths.forEach(c=>{n.push({key:`copy_to_${c.dir}`,label:o("copyTo")+" "+c.zh})}),a.quickMovePaths.forEach(c=>{n.push({key:`move_to_${c.dir}`,label:o("moveTo")+" "+c.zh})}),n}),T=n=>n&&n in V.value&&V.value[n]>1,v=ve(be+"disable_maximize",!1);return(n,l)=>{var H;const c=Ue,I=L,d=le,$=oe,x=L,ne=z,A=Y,se=Pe,ue=Y,ie=te,de=Me;return _(),S("div",Xe,[(H=e(a).conf)!=null&&H.is_readonly?(_(),M(c,{key:0,message:n.$t("readonlyModeSettingPageDesc"),type:"warning"},null,8,["message"])):U("",!0),U("",!0),t(de,null,{default:s(()=>[t(d,{label:n.$t("lang")},{default:s(()=>[g("div",Ye,[t(e(W),{options:h,value:e(a).lang,"onUpdate:value":l[0]||(l[0]=i=>e(a).lang=i),onChange:l[1]||(l[1]=i=>f.value=!0)},null,8,["value"])]),f.value?(_(),M(I,{key:0,type:"primary",onClick:w,ghost:""},{default:s(()=>[C(p(e(o)("langChangeReload")),1)]),_:1})):U("",!0)]),_:1},8,["label"]),g("h2",Je,p(e(o)("ImageBrowsingSettings")),1),t(ze),g("h2",Ze,p(e(o)("autoTag.name")),1),t(qe),g("h2",null,"TikTok "+p(e(o)("view")),1),t(d,{label:n.$t("showTiktokNavigator")},{default:s(()=>[t($,{checked:e(a).showTiktokNavigator,"onUpdate:checked":l[2]||(l[2]=i=>e(a).showTiktokNavigator=i)},null,8,["checked"]),g("span",Qe,p(e(o)("showTiktokNavigatorDesc")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("imgSearch")),1),t(d,{label:n.$t("rebuildImageIndex")},{default:s(()=>[t(x,{onClick:e(ke)},{default:s(()=>[C(p(n.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),g("h2",null,p(e(o)("autoRefresh")),1),t(d,{label:n.$t("autoRefreshWalkMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshWalkMode,"onUpdate:checked":l[3]||(l[3]=i=>e(a).autoRefreshWalkMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("autoRefreshNormalFixedMode")},{default:s(()=>[t($,{checked:e(a).autoRefreshNormalFixedMode,"onUpdate:checked":l[4]||(l[4]=i=>e(a).autoRefreshNormalFixedMode=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:e(o)("autoRefreshWalkModePosLimit")},{default:s(()=>[t(ne,{min:0,max:1024,step:16,modelValue:e(a).autoRefreshWalkModePosLimit,"onUpdate:modelValue":l[5]||(l[5]=i=>e(a).autoRefreshWalkModePosLimit=i)},null,8,["modelValue"])]),_:1},8,["label"]),g("h2",et,p(e(o)("other")),1),t(d,{label:n.$t("fileTypeFilter")},{default:s(()=>[t(se,{value:e(a).fileTypeFilter,"onUpdate:value":l[6]||(l[6]=i=>e(a).fileTypeFilter=i)},{default:s(()=>[t(A,{value:"all"},{default:s(()=>[C(p(n.$t("allFiles")),1)]),_:1}),t(A,{value:"image"},{default:s(()=>[C(p(n.$t("image")),1)]),_:1}),t(A,{value:"video"},{default:s(()=>[C(p(n.$t("video")),1)]),_:1}),t(A,{value:"audio"},{default:s(()=>[C(p(n.$t("audio")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),t(d,{label:n.$t("showCommaInGenInfoPanel")},{default:s(()=>[t($,{checked:e(a).showCommaInInfoPanel,"onUpdate:checked":l[7]||(l[7]=i=>e(a).showCommaInInfoPanel=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("showRandomImageInStartup")},{default:s(()=>[t($,{checked:e(a).showRandomImageInStartup,"onUpdate:checked":l[8]||(l[8]=i=>e(a).showRandomImageInStartup=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("defaultSortingMethod")},{default:s(()=>[t(e(W),{value:e(a).defaultSortingMethod,"onUpdate:value":l[9]||(l[9]=i=>e(a).defaultSortingMethod=i),conv:e(ye),options:e(we)},null,8,["value","conv","options"])]),_:1},8,["label"]),t(d,{label:n.$t("longPressOpenContextMenu")},{default:s(()=>[t($,{checked:e(a).longPressOpenContextMenu,"onUpdate:checked":l[10]||(l[10]=i=>e(a).longPressOpenContextMenu=i)},null,8,["checked"])]),_:1},8,["label"]),t(d,{label:n.$t("openOnAppStart")},{default:s(()=>[t(e(W),{value:e(a).defaultInitinalPage,"onUpdate:value":l[11]||(l[11]=i=>e(a).defaultInitinalPage=i),options:N.value},null,8,["value","options"])]),_:1},8,["label"]),(_(!0),S(O,null,D(e(a).ignoredConfirmActions,(i,R)=>(_(),M(d,{label:n.$t(R+"SkipConfirm"),key:R},{default:s(()=>[t(ue,{checked:e(a).ignoredConfirmActions[R],"onUpdate:checked":re=>e(a).ignoredConfirmActions[R]=re},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),t(d,{label:n.$t("disableMaximize")},{default:s(()=>[t($,{checked:e(v),"onUpdate:checked":l[12]||(l[12]=i=>Ce(v)?v.value=i:null)},null,8,["checked"]),g("sub",tt,p(n.$t("takeEffectAfterReloadPage")),1)]),_:1},8,["label"]),g("h2",null,p(e(o)("shortcutKey")),1),(_(!0),S(O,null,D(r.value,i=>(_(),M(d,{label:i.label,key:i.key},{default:s(()=>[g("div",{class:Se(["col",{conflict:T(e(a).shortcut[i.key]+"")}]),onKeydown:l[13]||(l[13]=X(()=>{},["stop","prevent"]))},[t(ie,{value:e(a).shortcut[i.key],onKeydown:X(R=>m(R,i.key),["stop","prevent"]),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),t(I,{onClick:R=>e(a).shortcut[i.key]="",class:"clear-btn"},{default:s(()=>[C(p(n.$t("clear")),1)]),_:2},1032,["onClick"])],34)]),_:2},1032,["label"]))),128)),e(Te)?(_(),S(O,{key:0},[g("h2",null,p(e(o)("clientSpecificSettings")),1),t(d,null,{default:s(()=>[g("div",at,[t(I,{onClick:F,class:"clear-btn"},{default:s(()=>[C(p(n.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):U("",!0)]),_:1})])}}});const _t=ae(lt,[["__scopeId","data-v-2522743a"]]);export{_t as default}; diff --git a/vue/dist/assets/gridView-695639fd.js b/vue/dist/assets/gridView-f8ee15ac.js similarity index 67% rename from vue/dist/assets/gridView-695639fd.js rename to vue/dist/assets/gridView-f8ee15ac.js index c7b0de2..866c6e8 100644 --- a/vue/dist/assets/gridView-695639fd.js +++ b/vue/dist/assets/gridView-f8ee15ac.js @@ -1 +1 @@ -import{u as w,a as y,F as b,d as k}from"./FileItem-2eb00024.js";import{d as x,a1 as h,c9 as F,r as D,bh as I,bl as C,U as V,V as E,c as n,a3 as S,a4 as e,af as z,cQ as B,cS as R,a0 as A}from"./index-d6594e8e.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";/* empty css */import"./index-cb6a3d31.js";import"./_isIterateeCall-bfd79848.js";import"./index-30b8f89a.js";import"./index-9b184148.js";const K=x({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,m=h(),{stackViewEl:d}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=F(),a=D(o.files??[]),_=async s=>{const l=B(s);o.allowDragAndDrop&&l&&(a.value=R([...a.value,...l.nodes]))},v=s=>{a.value.splice(s,1)};return I(()=>{m.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(a.value),setFiles:s=>a.value=s})}),(s,l)=>(V(),E("div",{class:"container",ref_key:"stackViewEl",ref:d,onDrop:_},[n(e(k),{ref:"scroller",class:"file-list",items:a.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:S(({item:t,index:r})=>{var c;return[n(b,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:T=>v(r),"full-screen-preview-image-url":e(z)(t),"extra-tags":(c=t==null?void 0:t.tags)==null?void 0:c.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const W=A(K,[["__scopeId","data-v-0c31f6b2"]]);export{W as default}; +import{u as w,a as y,F as b,d as k}from"./FileItem-cc53e03a.js";import{d as x,a1 as h,c9 as F,r as D,bh as I,bl as C,U as V,V as E,c as n,a3 as S,a4 as e,af as z,cS as B,cU as R,a0 as U}from"./index-0205daf8.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";const A=x({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,m=h(),{stackViewEl:d}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=F(),a=D(o.files??[]),_=async s=>{const l=B(s);o.allowDragAndDrop&&l&&(a.value=R([...a.value,...l.nodes]))},v=s=>{a.value.splice(s,1)};return I(()=>{m.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(a.value),setFiles:s=>a.value=s})}),(s,l)=>(V(),E("div",{class:"container",ref_key:"stackViewEl",ref:d,onDrop:_},[n(e(k),{ref:"scroller",class:"file-list",items:a.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:S(({item:t,index:r})=>{var c;return[n(b,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:K=>v(r),"full-screen-preview-image-url":e(z)(t),"extra-tags":(c=t==null?void 0:t.tags)==null?void 0:c.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const j=U(A,[["__scopeId","data-v-0c31f6b2"]]);export{j as default}; diff --git a/vue/dist/assets/hook-a2b05396.js b/vue/dist/assets/hook-4ff6f457.js similarity index 90% rename from vue/dist/assets/hook-a2b05396.js rename to vue/dist/assets/hook-4ff6f457.js index c6497b5..65862b9 100644 --- a/vue/dist/assets/hook-a2b05396.js +++ b/vue/dist/assets/hook-4ff6f457.js @@ -1 +1 @@ -import{am as F,r as g,l as P,k as A,O as b,G as R,cc as q,cn as O,cs as z}from"./index-d6594e8e.js";import{u as L,a as Q,b as j,e as H}from"./FileItem-2eb00024.js";import{a as T,b as U,c as W}from"./MultiSelectKeep-ba3817a4.js";import{u as B}from"./useGenInfoDiff-f63a5430.js";let K=0;const V=()=>++K,X=(n,i,{dataUpdateStrategy:l="replace"}={})=>{const o=F([""]),c=g(!1),t=g(),a=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(b((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>A(void 0,void 0,void 0,function*(){if(a.value||c.value&&typeof e>"u")return!1;a.value=!0;const s=V();f.value=s;try{let r;if(typeof e=="number"){if(r=o[e],typeof r!="string")return!1}else r=o[o.length-1];const h=yield n(r);if(v.has(s))return v.delete(s),!1;w(i(h));const u=h.cursor;if((e===o.length-1||typeof e!="number")&&(c.value=!u.has_next,u.has_next)){const m=u.next_cursor||u.next;b(typeof m=="string"),o.push(m)}}finally{f.value===s&&(a.value=!1)}return!0}),p=()=>{v.add(f.value),a.value=!1},x=(e=!1)=>A(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&p(),b(!a.value),o.splice(0,o.length,""),a.value=!1,t.value=void 0,c.value=!1,s&&(yield d())}),I=()=>({next:()=>A(void 0,void 0,void 0,function*(){if(a.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return P({abort:p,load:c,next:d,res:t,loading:a,cursorStack:o,reset:x,[Symbol.asyncIterator]:I,iter:{[Symbol.asyncIterator]:I}})},se=n=>F(X(n,i=>i.files,{dataUpdateStrategy:"merge"})),ne=n=>{const i=F(new Set),l=R(()=>(n.res??[]).filter(y=>!i.has(y.fullpath))),o=q(),{stackViewEl:c,multiSelectedIdxs:t,stack:a,scroller:f,props:v}=L({images:l}).toRefs(),{itemSize:w,gridItems:d,cellWidth:p,onScroll:x}=Q({fetchNext:()=>n.next()}),{showMenuIdx:I}=j(),{onFileDragStart:e,onFileDragEnd:s}=T(),{showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C}=U({openNext:O}),{previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G}=W({loadNext:()=>n.next()}),J=async(y,S,N)=>{a.value=[{curr:"",files:l.value}],await m(y,S,N)};H("removeFiles",async({paths:y})=>{y.forEach(S=>i.add(S))});const k=()=>{z(l.value)};return{images:l,scroller:f,queue:o,iter:n,onContextMenuClickU:J,stackViewEl:c,previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G,itemSize:w,gridItems:d,showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C,showMenuIdx:I,multiSelectedIdxs:t,onFileDragStart:e,onFileDragEnd:s,cellWidth:p,onScroll:x,saveLoadedFileAsJson:k,saveAllFileAsJson:async()=>{for(;!n.load;)await n.next();k()},props:v,...B()}};export{se as c,ne as u}; +import{am as F,r as g,l as P,k as A,O as b,G as R,cc as q,cn as O,cs as z}from"./index-0205daf8.js";import{u as L,a as Q,b as j,e as H}from"./FileItem-cc53e03a.js";import{a as T,b as U,c as W}from"./MultiSelectKeep-74181f4c.js";import{u as B}from"./useGenInfoDiff-13d2ea38.js";let K=0;const V=()=>++K,X=(n,i,{dataUpdateStrategy:l="replace"}={})=>{const o=F([""]),c=g(!1),t=g(),a=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(b((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>A(void 0,void 0,void 0,function*(){if(a.value||c.value&&typeof e>"u")return!1;a.value=!0;const s=V();f.value=s;try{let r;if(typeof e=="number"){if(r=o[e],typeof r!="string")return!1}else r=o[o.length-1];const h=yield n(r);if(v.has(s))return v.delete(s),!1;w(i(h));const u=h.cursor;if((e===o.length-1||typeof e!="number")&&(c.value=!u.has_next,u.has_next)){const m=u.next_cursor||u.next;b(typeof m=="string"),o.push(m)}}finally{f.value===s&&(a.value=!1)}return!0}),p=()=>{v.add(f.value),a.value=!1},x=(e=!1)=>A(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&p(),b(!a.value),o.splice(0,o.length,""),a.value=!1,t.value=void 0,c.value=!1,s&&(yield d())}),I=()=>({next:()=>A(void 0,void 0,void 0,function*(){if(a.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return P({abort:p,load:c,next:d,res:t,loading:a,cursorStack:o,reset:x,[Symbol.asyncIterator]:I,iter:{[Symbol.asyncIterator]:I}})},se=n=>F(X(n,i=>i.files,{dataUpdateStrategy:"merge"})),ne=n=>{const i=F(new Set),l=R(()=>(n.res??[]).filter(y=>!i.has(y.fullpath))),o=q(),{stackViewEl:c,multiSelectedIdxs:t,stack:a,scroller:f,props:v}=L({images:l}).toRefs(),{itemSize:w,gridItems:d,cellWidth:p,onScroll:x}=Q({fetchNext:()=>n.next()}),{showMenuIdx:I}=j(),{onFileDragStart:e,onFileDragEnd:s}=T(),{showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C}=U({openNext:O}),{previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G}=W({loadNext:()=>n.next()}),J=async(y,S,N)=>{a.value=[{curr:"",files:l.value}],await m(y,S,N)};H("removeFiles",async({paths:y})=>{y.forEach(S=>i.add(S))});const k=()=>{z(l.value)};return{images:l,scroller:f,queue:o,iter:n,onContextMenuClickU:J,stackViewEl:c,previewIdx:_,previewing:E,onPreviewVisibleChange:M,previewImgMove:D,canPreview:G,itemSize:w,gridItems:d,showGenInfo:r,imageGenInfo:h,q:u,onContextMenuClick:m,onFileItemClick:C,showMenuIdx:I,multiSelectedIdxs:t,onFileDragStart:e,onFileDragEnd:s,cellWidth:p,onScroll:x,saveLoadedFileAsJson:k,saveAllFileAsJson:async()=>{for(;!n.load;)await n.next();k()},props:v,...B()}};export{se as c,ne as u}; diff --git a/vue/dist/assets/index-d6594e8e.js b/vue/dist/assets/index-0205daf8.js similarity index 88% rename from vue/dist/assets/index-d6594e8e.js rename to vue/dist/assets/index-0205daf8.js index 30d6314..54d2674 100644 --- a/vue/dist/assets/index-d6594e8e.js +++ b/vue/dist/assets/index-0205daf8.js @@ -1,13 +1,13 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function pd(t,e){const n=Object.create(null),r=t.split(",");for(let a=0;a!!n[a.toLowerCase()]:a=>!!n[a]}const ht={},vi=[],tr=()=>{},_T=()=>!1,CT=/^on[^a-z]/,Xl=t=>CT.test(t),hd=t=>t.startsWith("onUpdate:"),Ot=Object.assign,gd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},ST=Object.prototype.hasOwnProperty,et=(t,e)=>ST.call(t,e),ke=Array.isArray,pi=t=>Zl(t)==="[object Map]",k0=t=>Zl(t)==="[object Set]",He=t=>typeof t=="function",Tt=t=>typeof t=="string",md=t=>typeof t=="symbol",vt=t=>t!==null&&typeof t=="object",N0=t=>vt(t)&&He(t.then)&&He(t.catch),R0=Object.prototype.toString,Zl=t=>R0.call(t),xT=t=>Zl(t).slice(8,-1),$0=t=>Zl(t)==="[object Object]",yd=t=>Tt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Qs=pd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ql=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},TT=/-(\w)/g,nr=Ql(t=>t.replace(TT,(e,n)=>n?n.toUpperCase():"")),ET=/\B([A-Z])/g,ja=Ql(t=>t.replace(ET,"-$1").toLowerCase()),eu=Ql(t=>t.charAt(0).toUpperCase()+t.slice(1)),el=Ql(t=>t?`on${eu(t)}`:""),Mo=(t,e)=>!Object.is(t,e),tl=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Vc=t=>{const e=parseFloat(t);return isNaN(e)?t:e},OT=t=>{const e=Tt(t)?Number(t):NaN;return isNaN(e)?t:e};let Yp;const Uc=()=>Yp||(Yp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(t){if(ke(t)){const e={};for(let n=0;n{if(n){const r=n.split(AT);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function qt(t){let e="";if(Tt(t))e=t;else if(ke(t))for(let n=0;nTt(t)?t:t==null?"":ke(t)||vt(t)&&(t.toString===R0||!He(t.toString))?JSON.stringify(t,L0,2):String(t),L0=(t,e)=>e&&e.__v_isRef?L0(t,e.value):pi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:k0(e)?{[`Set(${e.size})`]:[...e.values()]}:vt(e)&&!ke(e)&&!$0(e)?String(e):e;let On;class F0{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!e&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=On;try{return On=this,e()}finally{On=n}}}on(){On=this}off(){On=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},B0=t=>(t.w&oa)>0,z0=t=>(t.n&oa)>0,$T=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),e){case"add":ke(t)?yd(n)&&s.push(o.get("length")):(s.push(o.get(ka)),pi(t)&&s.push(o.get(Gc)));break;case"delete":ke(t)||(s.push(o.get(ka)),pi(t)&&s.push(o.get(Gc)));break;case"set":pi(t)&&s.push(o.get(ka));break}if(s.length===1)s[0]&&qc(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);qc(_d(l))}}function qc(t,e){const n=ke(t)?t:[...t];for(const r of n)r.computed&&Xp(r);for(const r of n)r.computed||Xp(r)}function Xp(t,e){(t!==Zn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function LT(t,e){var n;return(n=yl.get(t))==null?void 0:n.get(e)}const FT=pd("__proto__,__v_isRef,__isVue"),H0=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(md)),BT=Sd(),zT=Sd(!1,!0),jT=Sd(!0),Zp=WT();function WT(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=De(this);for(let i=0,o=this.length;i{t[e]=function(...n){Di();const r=De(this)[e].apply(this,n);return Li(),r}}),t}function HT(t){const e=De(this);return Cn(e,"has",t),e.hasOwnProperty(t)}function Sd(t=!1,e=!1){return function(r,a,i){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return e;if(a==="__v_raw"&&i===(t?e?iE:q0:e?G0:K0).get(r))return r;const o=ke(r);if(!t){if(o&&et(Zp,a))return Reflect.get(Zp,a,i);if(a==="hasOwnProperty")return HT}const s=Reflect.get(r,a,i);return(md(a)?H0.has(a):FT(a))||(t||Cn(r,"get",a),e)?s:dt(s)?o&&yd(a)?s:s.value:vt(s)?t?os(s):ct(s):s}}const VT=V0(),UT=V0(!0);function V0(t=!1){return function(n,r,a,i){let o=n[r];if(_i(o)&&dt(o)&&!dt(a))return!1;if(!t&&(!bl(a)&&!_i(a)&&(o=De(o),a=De(a)),!ke(n)&&dt(o)&&!dt(a)))return o.value=a,!0;const s=ke(n)&&yd(r)?Number(r)t,nu=t=>Reflect.getPrototypeOf(t);function Ss(t,e,n=!1,r=!1){t=t.__v_raw;const a=De(t),i=De(e);n||(e!==i&&Cn(a,"get",e),Cn(a,"get",i));const{has:o}=nu(a),s=r?xd:n?Od:ko;if(o.call(a,e))return s(t.get(e));if(o.call(a,i))return s(t.get(i));t!==a&&t.get(e)}function xs(t,e=!1){const n=this.__v_raw,r=De(n),a=De(t);return e||(t!==a&&Cn(r,"has",t),Cn(r,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)}function Ts(t,e=!1){return t=t.__v_raw,!e&&Cn(De(t),"iterate",ka),Reflect.get(t,"size",t)}function Qp(t){t=De(t);const e=De(this);return nu(e).has.call(e,t)||(e.add(t),Br(e,"add",t,t)),this}function eh(t,e){e=De(e);const n=De(this),{has:r,get:a}=nu(n);let i=r.call(n,t);i||(t=De(t),i=r.call(n,t));const o=a.call(n,t);return n.set(t,e),i?Mo(e,o)&&Br(n,"set",t,e):Br(n,"add",t,e),this}function th(t){const e=De(this),{has:n,get:r}=nu(e);let a=n.call(e,t);a||(t=De(t),a=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return a&&Br(e,"delete",t,void 0),i}function nh(){const t=De(this),e=t.size!==0,n=t.clear();return e&&Br(t,"clear",void 0,void 0),n}function Es(t,e){return function(r,a){const i=this,o=i.__v_raw,s=De(o),l=e?xd:t?Od:ko;return!t&&Cn(s,"iterate",ka),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Os(t,e,n){return function(...r){const a=this.__v_raw,i=De(a),o=pi(i),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=a[t](...r),c=n?xd:e?Od:ko;return!e&&Cn(i,"iterate",l?Gc:ka),{next(){const{value:d,done:v}=u.next();return v?{value:d,done:v}:{value:s?[c(d[0]),c(d[1])]:c(d),done:v}},[Symbol.iterator](){return this}}}}function Vr(t){return function(...e){return t==="delete"?!1:this}}function XT(){const t={get(i){return Ss(this,i)},get size(){return Ts(this)},has:xs,add:Qp,set:eh,delete:th,clear:nh,forEach:Es(!1,!1)},e={get(i){return Ss(this,i,!1,!0)},get size(){return Ts(this)},has:xs,add:Qp,set:eh,delete:th,clear:nh,forEach:Es(!1,!0)},n={get(i){return Ss(this,i,!0)},get size(){return Ts(this,!0)},has(i){return xs.call(this,i,!0)},add:Vr("add"),set:Vr("set"),delete:Vr("delete"),clear:Vr("clear"),forEach:Es(!0,!1)},r={get(i){return Ss(this,i,!0,!0)},get size(){return Ts(this,!0)},has(i){return xs.call(this,i,!0)},add:Vr("add"),set:Vr("set"),delete:Vr("delete"),clear:Vr("clear"),forEach:Es(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Os(i,!1,!1),n[i]=Os(i,!0,!1),e[i]=Os(i,!1,!0),r[i]=Os(i,!0,!0)}),[t,n,e,r]}const[ZT,QT,eE,tE]=XT();function Td(t,e){const n=e?t?tE:eE:t?QT:ZT;return(r,a,i)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?r:Reflect.get(et(n,a)&&a in r?n:r,a,i)}const nE={get:Td(!1,!1)},rE={get:Td(!1,!0)},aE={get:Td(!0,!1)},K0=new WeakMap,G0=new WeakMap,q0=new WeakMap,iE=new WeakMap;function oE(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sE(t){return t.__v_skip||!Object.isExtensible(t)?0:oE(xT(t))}function ct(t){return _i(t)?t:Ed(t,!1,U0,nE,K0)}function lE(t){return Ed(t,!1,JT,rE,G0)}function os(t){return Ed(t,!0,YT,aE,q0)}function Ed(t,e,n,r,a){if(!vt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=a.get(t);if(i)return i;const o=sE(t);if(o===0)return t;const s=new Proxy(t,o===2?r:n);return a.set(t,s),s}function Dr(t){return _i(t)?Dr(t.__v_raw):!!(t&&t.__v_isReactive)}function _i(t){return!!(t&&t.__v_isReadonly)}function bl(t){return!!(t&&t.__v_isShallow)}function Y0(t){return Dr(t)||_i(t)}function De(t){const e=t&&t.__v_raw;return e?De(e):t}function ru(t){return ml(t,"__v_skip",!0),t}const ko=t=>vt(t)?ct(t):t,Od=t=>vt(t)?os(t):t;function Pd(t){ra&&Zn&&(t=De(t),W0(t.dep||(t.dep=_d())))}function Ad(t,e){t=De(t);const n=t.dep;n&&qc(n)}function dt(t){return!!(t&&t.__v_isRef===!0)}function z(t){return J0(t,!1)}function Qn(t){return J0(t,!0)}function J0(t,e){return dt(t)?t:new uE(t,e)}class uE{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:De(e),this._value=n?e:ko(e)}get value(){return Pd(this),this._value}set value(e){const n=this.__v_isShallow||bl(e)||_i(e);e=n?e:De(e),Mo(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:ko(e),Ad(this))}}function be(t){return dt(t)?t.value:t}const cE={get:(t,e,n)=>be(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const a=t[e];return dt(a)&&!dt(n)?(a.value=n,!0):Reflect.set(t,e,n,r)}};function X0(t){return Dr(t)?t:new Proxy(t,cE)}class fE{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=e(()=>Pd(this),()=>Ad(this));this._get=n,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function dE(t){return new fE(t)}function Z0(t){const e=ke(t)?new Array(t.length):{};for(const n in t)e[n]=Q0(t,n);return e}class vE{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return LT(De(this._object),this._key)}}class pE{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function sn(t,e,n){return dt(t)?t:He(t)?new pE(t):vt(t)&&arguments.length>1?Q0(t,e,n):z(t)}function Q0(t,e,n){const r=t[e];return dt(r)?r:new vE(t,e,n)}class hE{constructor(e,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Cd(e,()=>{this._dirty||(this._dirty=!0,Ad(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const e=De(this);return Pd(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function gE(t,e,n=!1){let r,a;const i=He(t);return i?(r=t,a=tr):(r=t.get,a=t.set),new hE(r,a,i||!a,n)}function aa(t,e,n,r){let a;try{a=r?t(...r):t()}catch(i){ss(i,e,n)}return a}function Vn(t,e,n,r){if(He(t)){const i=aa(t,e,n,r);return i&&N0(i)&&i.catch(o=>{ss(o,e,n)}),i}const a=[];for(let i=0;i>>1;Ro(Zt[r])pr&&Zt.splice(e,1)}function wE(t){ke(t)?hi.push(...t):(!Rr||!Rr.includes(t,t.allowRecurse?Sa+1:Sa))&&hi.push(t),t1()}function rh(t,e=No?pr+1:0){for(;eRo(n)-Ro(r)),Sa=0;Sat.id==null?1/0:t.id,_E=(t,e)=>{const n=Ro(t)-Ro(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function r1(t){Yc=!1,No=!0,Zt.sort(_E);const e=tr;try{for(pr=0;prTt(h)?h.trim():h)),d&&(a=n.map(Vc))}let s,l=r[s=el(e)]||r[s=el(nr(e))];!l&&i&&(l=r[s=el(ja(e))]),l&&Vn(l,t,6,a);const u=r[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Vn(u,t,6,a)}}function a1(t,e,n=!1){const r=e.emitsCache,a=r.get(t);if(a!==void 0)return a;const i=t.emits;let o={},s=!1;if(!He(t)){const l=u=>{const c=a1(u,e,!0);c&&(s=!0,Ot(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!s?(vt(t)&&r.set(t,null),null):(ke(i)?i.forEach(l=>o[l]=null):Ot(o,i),vt(t)&&r.set(t,o),o)}function iu(t,e){return!t||!Xl(e)?!1:(e=e.slice(2).replace(/Once$/,""),et(t,e[0].toLowerCase()+e.slice(1))||et(t,ja(e))||et(t,e))}let Vt=null,ou=null;function wl(t){const e=Vt;return Vt=t,ou=t&&t.type.__scopeId||null,e}function Md(t){ou=t}function kd(){ou=null}const SE=t=>kt;function kt(t,e=Vt,n){if(!e||t._n)return t;const r=(...a)=>{r._d&&hh(-1);const i=wl(e);let o;try{o=t(...a)}finally{wl(i),r._d&&hh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ju(t){const{type:e,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:v,setupState:h,ctx:f,inheritAttrs:p}=t;let m,g;const y=wl(t);try{if(n.shapeFlag&4){const w=a||r;m=dr(c.call(w,w,d,i,h,v,f)),g=l}else{const w=e;m=dr(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),g=e.props?l:xE(l)}}catch(w){_o.length=0,ss(w,t,1),m=S(In)}let b=m;if(g&&p!==!1){const w=Object.keys(g),{shapeFlag:_}=b;w.length&&_&7&&(o&&w.some(hd)&&(g=TE(g,o)),b=rr(b,g))}return n.dirs&&(b=rr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,wl(y),m}const xE=t=>{let e;for(const n in t)(n==="class"||n==="style"||Xl(n))&&((e||(e={}))[n]=t[n]);return e},TE=(t,e)=>{const n={};for(const r in t)(!hd(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function EE(t,e,n){const{props:r,children:a,component:i}=t,{props:o,children:s,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?ah(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let d=0;dt.__isSuspense;function AE(t,e){e&&e.pendingBranch?ke(t)?e.effects.push(...t):e.effects.push(t):wE(t)}function yt(t,e){return su(t,null,e)}function IE(t,e){return su(t,null,{flush:"post"})}const Ps={};function pe(t,e,n){return su(t,e,n)}function su(t,e,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=ht){var s;const l=tu()===((s=Nt)==null?void 0:s.scope)?Nt:null;let u,c=!1,d=!1;if(dt(t)?(u=()=>t.value,c=bl(t)):Dr(t)?(u=()=>t,r=!0):ke(t)?(d=!0,c=t.some(w=>Dr(w)||bl(w)),u=()=>t.map(w=>{if(dt(w))return w.value;if(Dr(w))return Aa(w);if(He(w))return aa(w,l,2)})):He(t)?e?u=()=>aa(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return v&&v(),Vn(t,l,3,[h])}:u=tr,e&&r){const w=u;u=()=>Aa(w())}let v,h=w=>{v=y.onStop=()=>{aa(w,l,4)}},f;if(Si)if(h=tr,e?n&&Vn(e,l,3,[u(),d?[]:void 0,h]):u(),a==="sync"){const w=SO();f=w.__watcherHandles||(w.__watcherHandles=[])}else return tr;let p=d?new Array(t.length).fill(Ps):Ps;const m=()=>{if(y.active)if(e){const w=y.run();(r||c||(d?w.some((_,C)=>Mo(_,p[C])):Mo(w,p)))&&(v&&v(),Vn(e,l,3,[w,p===Ps?void 0:d&&p[0]===Ps?[]:p,h]),p=w)}else y.run()};m.allowRecurse=!!e;let g;a==="sync"?g=m:a==="post"?g=()=>yn(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),g=()=>au(m));const y=new Cd(u,g);e?n?m():p=y.run():a==="post"?yn(y.run.bind(y),l&&l.suspense):y.run();const b=()=>{y.stop(),l&&l.scope&&gd(l.scope.effects,y)};return f&&f.push(b),b}function ME(t,e,n){const r=this.proxy,a=Tt(t)?t.includes(".")?i1(r,t):()=>r[t]:t.bind(r,r);let i;He(e)?i=e:(i=e.handler,n=e);const o=Nt;Ci(this);const s=su(a,i.bind(r),n);return o?Ci(o):Ra(),s}function i1(t,e){const n=e.split(".");return()=>{let r=t;for(let a=0;a{Aa(n,e)});else if($0(t))for(const n in t)Aa(t[n],e);return t}function dn(t,e){const n=Vt;if(n===null)return t;const r=fu(n)||n.proxy,a=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),st(()=>{t.isUnmounting=!0}),t}const Dn=[Function,Array],s1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dn,onEnter:Dn,onAfterEnter:Dn,onEnterCancelled:Dn,onBeforeLeave:Dn,onLeave:Dn,onAfterLeave:Dn,onLeaveCancelled:Dn,onBeforeAppear:Dn,onAppear:Dn,onAfterAppear:Dn,onAppearCancelled:Dn},kE={name:"BaseTransition",props:s1,setup(t,{slots:e}){const n=Pt(),r=o1();let a;return()=>{const i=e.default&&Nd(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==In){o=p;break}}const s=De(t),{mode:l}=s;if(r.isLeaving)return Xu(o);const u=ih(o);if(!u)return Xu(o);const c=$o(u,s,r,n);Do(u,c);const d=n.subTree,v=d&&ih(d);let h=!1;const{getTransitionKey:f}=u.type;if(f){const p=f();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(v&&v.type!==In&&(!xa(u,v)||h)){const p=$o(v,s,r,n);if(Do(v,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Xu(o);l==="in-out"&&u.type!==In&&(p.delayLeave=(m,g,y)=>{const b=l1(r,v);b[String(v.key)]=v,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},NE=kE;function l1(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function $o(t,e,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:v,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:p,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=e,b=String(t.key),w=l1(n,t),_=(I,T)=>{I&&Vn(I,r,9,T)},C=(I,T)=>{const N=T[1];_(I,T),ke(I)?I.every(R=>R.length<=1)&&N():I.length<=1&&N()},E={mode:i,persisted:o,beforeEnter(I){let T=s;if(!n.isMounted)if(a)T=p||s;else return;I._leaveCb&&I._leaveCb(!0);const N=w[b];N&&xa(t,N)&&N.el._leaveCb&&N.el._leaveCb(),_(T,[I])},enter(I){let T=l,N=u,R=c;if(!n.isMounted)if(a)T=m||l,N=g||u,R=y||c;else return;let F=!1;const L=I._enterCb=j=>{F||(F=!0,j?_(R,[I]):_(N,[I]),E.delayedLeave&&E.delayedLeave(),I._enterCb=void 0)};T?C(T,[I,L]):L()},leave(I,T){const N=String(t.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return T();_(d,[I]);let R=!1;const F=I._leaveCb=L=>{R||(R=!0,T(),L?_(f,[I]):_(h,[I]),I._leaveCb=void 0,w[N]===t&&delete w[N])};w[N]=t,v?C(v,[I,F]):F()},clone(I){return $o(I,e,n,r)}};return E}function Xu(t){if(ls(t))return t=rr(t),t.children=null,t}function ih(t){return ls(t)?t.children?t.children[0]:void 0:t}function Do(t,e){t.shapeFlag&6&&t.component?Do(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Nd(t,e=!1,n){let r=[],a=0;for(let i=0;i1)for(let i=0;iOt({name:t.name},e,{setup:t}))():t}const yo=t=>!!t.type.__asyncLoader;function xn(t){He(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:a=200,timeout:i,suspensible:o=!0,onError:s}=t;let l=null,u,c=0;const d=()=>(c++,l=null,v()),v=()=>{let h;return l||(h=l=e().catch(f=>{if(f=f instanceof Error?f:new Error(String(f)),s)return new Promise((p,m)=>{s(f,()=>p(d()),()=>m(f),c+1)});throw f}).then(f=>h!==l&&l?l:(f&&(f.__esModule||f[Symbol.toStringTag]==="Module")&&(f=f.default),u=f,f)))};return he({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return u},setup(){const h=Nt;if(u)return()=>Zu(u,h);const f=y=>{l=null,ss(y,h,13,!r)};if(o&&h.suspense||Si)return v().then(y=>()=>Zu(y,h)).catch(y=>(f(y),()=>r?S(r,{error:y}):null));const p=z(!1),m=z(),g=z(!!a);return a&&setTimeout(()=>{g.value=!1},a),i!=null&&setTimeout(()=>{if(!p.value&&!m.value){const y=new Error(`Async component timed out after ${i}ms.`);f(y),m.value=y}},i),v().then(()=>{p.value=!0,h.parent&&ls(h.parent.vnode)&&au(h.parent.update)}).catch(y=>{f(y),m.value=y}),()=>{if(p.value&&u)return Zu(u,h);if(m.value&&r)return S(r,{error:m.value});if(n&&!g.value)return S(n)}}})}function Zu(t,e){const{ref:n,props:r,children:a,ce:i}=e.vnode,o=S(t,r,a);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const ls=t=>t.type.__isKeepAlive;function RE(t,e){u1(t,"a",e)}function $E(t,e){u1(t,"da",e)}function u1(t,e,n=Nt){const r=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(lu(e,r,n),n){let a=n.parent;for(;a&&a.parent;)ls(a.parent.vnode)&&DE(r,e,n,a),a=a.parent}}function DE(t,e,n,r){const a=lu(e,t,r,!0);vn(()=>{gd(r[e],a)},n)}function lu(t,e,n=Nt,r=!1){if(n){const a=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Di(),Ci(n);const s=Vn(e,n,t,o);return Ra(),Li(),s});return r?a.unshift(i):a.push(i),i}}const jr=t=>(e,n=Nt)=>(!Si||t==="sp")&&lu(t,(...r)=>e(...r),n),Rd=jr("bm"),Ve=jr("m"),c1=jr("bu"),ca=jr("u"),st=jr("bum"),vn=jr("um"),LE=jr("sp"),FE=jr("rtg"),BE=jr("rtc");function zE(t,e=Nt){lu("ec",t,e)}const $d="components",jE="directives";function us(t,e){return Dd($d,t,!0,e)||t}const f1=Symbol.for("v-ndc");function WE(t){return Tt(t)?Dd($d,t,!1)||t:t||f1}function HE(t){return Dd(jE,t)}function Dd(t,e,n=!0,r=!1){const a=Vt||Nt;if(a){const i=a.type;if(t===$d){const s=wO(i,!1);if(s&&(s===e||s===nr(e)||s===eu(nr(e))))return i}const o=oh(a[t]||i[t],e)||oh(a.appContext[t],e);return!o&&r?i:o}}function oh(t,e){return t&&(t[e]||t[nr(e)]||t[eu(nr(e))])}function Na(t,e,n,r){let a;const i=n&&n[r];if(ke(t)||Tt(t)){a=new Array(t.length);for(let o=0,s=t.length;oe(o,s,void 0,i&&i[s]));else{const o=Object.keys(t);a=new Array(o.length);for(let s=0,l=o.length;sbr(e)?!(e.type===In||e.type===Re&&!d1(e.children)):!0)?t:null}function IG(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:el(r)]=t[r];return n}const Jc=t=>t?S1(t)?fu(t)||t.proxy:Jc(t.parent):null,bo=Ot(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Jc(t.parent),$root:t=>Jc(t.root),$emit:t=>t.emit,$options:t=>Ld(t),$forceUpdate:t=>t.f||(t.f=()=>au(t.update)),$nextTick:t=>t.n||(t.n=Ke.bind(t.proxy)),$watch:t=>ME.bind(t)}),Qu=(t,e)=>t!==ht&&!t.__isScriptSetup&&et(t,e),VE={get({_:t},e){const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return a[e];case 4:return n[e];case 3:return i[e]}else{if(Qu(r,e))return o[e]=1,r[e];if(a!==ht&&et(a,e))return o[e]=2,a[e];if((u=t.propsOptions[0])&&et(u,e))return o[e]=3,i[e];if(n!==ht&&et(n,e))return o[e]=4,n[e];Xc&&(o[e]=0)}}const c=bo[e];let d,v;if(c)return e==="$attrs"&&Cn(t,"get",e),c(t);if((d=s.__cssModules)&&(d=d[e]))return d;if(n!==ht&&et(n,e))return o[e]=4,n[e];if(v=l.config.globalProperties,et(v,e))return v[e]},set({_:t},e,n){const{data:r,setupState:a,ctx:i}=t;return Qu(a,e)?(a[e]=n,!0):r!==ht&&et(r,e)?(r[e]=n,!0):et(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||t!==ht&&et(t,o)||Qu(e,o)||(s=i[0])&&et(s,o)||et(r,o)||et(bo,o)||et(a.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:et(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function MG(){return UE().slots}function kG(t,e,n){const r=Pt();if(n&&n.local){const a=z(t[e]);return pe(()=>t[e],i=>a.value=i),pe(a,i=>{i!==t[e]&&r.emit(`update:${e}`,i)}),a}else return{__v_isRef:!0,get value(){return t[e]},set value(a){r.emit(`update:${e}`,a)}}}function UE(){const t=Pt();return t.setupContext||(t.setupContext=T1(t))}function Cl(t){return ke(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function NG(t,e){return!t||!e?t||e:ke(t)&&ke(e)?t.concat(e):Ot({},Cl(t),Cl(e))}let Xc=!0;function KE(t){const e=Ld(t),n=t.proxy,r=t.ctx;Xc=!1,e.beforeCreate&&sh(e.beforeCreate,t,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:v,beforeUpdate:h,updated:f,activated:p,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:b,unmounted:w,render:_,renderTracked:C,renderTriggered:E,errorCaptured:I,serverPrefetch:T,expose:N,inheritAttrs:R,components:F,directives:L,filters:j}=e;if(u&&GE(u,r,null),o)for(const O in o){const M=o[O];He(M)&&(r[O]=M.bind(n))}if(a){const O=a.call(n,n);vt(O)&&(t.data=ct(O))}if(Xc=!0,i)for(const O in i){const M=i[O],$=He(M)?M.bind(n,n):He(M.get)?M.get.bind(n,n):tr,G=!He(M)&&He(M.set)?M.set.bind(n):tr,J=V({get:$,set:G});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>J.value,set:Z=>J.value=Z})}if(s)for(const O in s)v1(s[O],r,n,O);if(l){const O=He(l)?l.call(n):l;Reflect.ownKeys(O).forEach(M=>{wt(M,O[M])})}c&&sh(c,t,"c");function P(O,M){ke(M)?M.forEach($=>O($.bind(n))):M&&O(M.bind(n))}if(P(Rd,d),P(Ve,v),P(c1,h),P(ca,f),P(RE,p),P($E,m),P(zE,I),P(BE,C),P(FE,E),P(st,y),P(vn,w),P(LE,T),ke(N))if(N.length){const O=t.exposed||(t.exposed={});N.forEach(M=>{Object.defineProperty(O,M,{get:()=>n[M],set:$=>n[M]=$})})}else t.exposed||(t.exposed={});_&&t.render===tr&&(t.render=_),R!=null&&(t.inheritAttrs=R),F&&(t.components=F),L&&(t.directives=L)}function GE(t,e,n=tr){ke(t)&&(t=Zc(t));for(const r in t){const a=t[r];let i;vt(a)?"default"in a?i=ot(a.from||r,a.default,!0):i=ot(a.from||r):i=ot(a),dt(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function sh(t,e,n){Vn(ke(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function v1(t,e,n,r){const a=r.includes(".")?i1(n,r):()=>n[r];if(Tt(t)){const i=e[t];He(i)&&pe(a,i)}else if(He(t))pe(a,t.bind(n));else if(vt(t))if(ke(t))t.forEach(i=>v1(i,e,n,r));else{const i=He(t.handler)?t.handler.bind(n):e[t.handler];He(i)&&pe(a,i,t)}}function Ld(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,s=i.get(e);let l;return s?l=s:!a.length&&!n&&!r?l=e:(l={},a.length&&a.forEach(u=>Sl(l,u,o,!0)),Sl(l,e,o)),vt(e)&&i.set(e,l),l}function Sl(t,e,n,r=!1){const{mixins:a,extends:i}=e;i&&Sl(t,i,n,!0),a&&a.forEach(o=>Sl(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=qE[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const qE={data:lh,props:uh,emits:uh,methods:fo,computed:fo,beforeCreate:an,created:an,beforeMount:an,mounted:an,beforeUpdate:an,updated:an,beforeDestroy:an,beforeUnmount:an,destroyed:an,unmounted:an,activated:an,deactivated:an,errorCaptured:an,serverPrefetch:an,components:fo,directives:fo,watch:JE,provide:lh,inject:YE};function lh(t,e){return e?t?function(){return Ot(He(t)?t.call(this,this):t,He(e)?e.call(this,this):e)}:e:t}function YE(t,e){return fo(Zc(t),Zc(e))}function Zc(t){if(ke(t)){const e={};for(let n=0;n1)return n&&He(e)?e.call(r&&r.proxy):e}}function QE(){return!!(Nt||Vt||Lo)}function eO(t,e,n,r=!1){const a={},i={};ml(i,cu,1),t.propsDefaults=Object.create(null),h1(t,e,a,i);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);n?t.props=r?a:lE(a):t.type.props?t.props=a:t.props=i,t.attrs=i}function tO(t,e,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=t,s=De(a),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[v,h]=g1(d,e,!0);Ot(o,v),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return vt(t)&&r.set(t,vi),vi;if(ke(i))for(let c=0;c-1,h[1]=p<0||f-1||et(h,"default"))&&s.push(d)}}}const u=[o,s];return vt(t)&&r.set(t,u),u}function ch(t){return t[0]!=="$"}function fh(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function dh(t,e){return fh(t)===fh(e)}function vh(t,e){return ke(e)?e.findIndex(n=>dh(n,t)):He(e)&&dh(e,t)?0:-1}const m1=t=>t[0]==="_"||t==="$stable",Fd=t=>ke(t)?t.map(dr):[dr(t)],nO=(t,e,n)=>{if(e._n)return e;const r=kt((...a)=>Fd(e(...a)),n);return r._c=!1,r},y1=(t,e,n)=>{const r=t._ctx;for(const a in t){if(m1(a))continue;const i=t[a];if(He(i))e[a]=nO(a,i,r);else if(i!=null){const o=Fd(i);e[a]=()=>o}}},b1=(t,e)=>{const n=Fd(e);t.slots.default=()=>n},rO=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=De(e),ml(e,"_",n)):y1(e,t.slots={})}else t.slots={},e&&b1(t,e);ml(t.slots,cu,1)},aO=(t,e,n)=>{const{vnode:r,slots:a}=t;let i=!0,o=ht;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:(Ot(a,e),!n&&s===1&&delete a._):(i=!e.$stable,y1(e,a)),o=e}else e&&(b1(t,e),o={default:1});if(i)for(const s in a)!m1(s)&&!(s in o)&&delete a[s]};function ef(t,e,n,r,a=!1){if(ke(t)){t.forEach((v,h)=>ef(v,e&&(ke(e)?e[h]:e),n,r,a));return}if(yo(r)&&!a)return;const i=r.shapeFlag&4?fu(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=t,u=e&&e.r,c=s.refs===ht?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Tt(u)?(c[u]=null,et(d,u)&&(d[u]=null)):dt(u)&&(u.value=null)),He(l))aa(l,s,12,[o,c]);else{const v=Tt(l),h=dt(l);if(v||h){const f=()=>{if(t.f){const p=v?et(d,l)?d[l]:c[l]:l.value;a?ke(p)&&gd(p,i):ke(p)?p.includes(i)||p.push(i):v?(c[l]=[i],et(d,l)&&(d[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else v?(c[l]=o,et(d,l)&&(d[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(f.id=-1,yn(f,n)):f()}}}const yn=AE;function iO(t){return oO(t)}function oO(t,e){const n=Uc();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:v,setScopeId:h=tr,insertStaticContent:f}=t,p=(B,x,A,W=null,K=null,U=null,se=!1,ie=null,re=!!x.dynamicChildren)=>{if(B===x)return;B&&!xa(B,x)&&(W=ge(B),Z(B,K,U,!0),B=null),x.patchFlag===-2&&(re=!1,x.dynamicChildren=null);const{type:Q,ref:H,shapeFlag:q}=x;switch(Q){case Wa:m(B,x,A,W);break;case In:g(B,x,A,W);break;case nl:B==null&&y(x,A,W,se);break;case Re:F(B,x,A,W,K,U,se,ie,re);break;default:q&1?_(B,x,A,W,K,U,se,ie,re):q&6?L(B,x,A,W,K,U,se,ie,re):(q&64||q&128)&&Q.process(B,x,A,W,K,U,se,ie,re,me)}H!=null&&K&&ef(H,B&&B.ref,U,x||B,!x)},m=(B,x,A,W)=>{if(B==null)r(x.el=s(x.children),A,W);else{const K=x.el=B.el;x.children!==B.children&&u(K,x.children)}},g=(B,x,A,W)=>{B==null?r(x.el=l(x.children||""),A,W):x.el=B.el},y=(B,x,A,W)=>{[B.el,B.anchor]=f(B.children,x,A,W,B.el,B.anchor)},b=({el:B,anchor:x},A,W)=>{let K;for(;B&&B!==x;)K=v(B),r(B,A,W),B=K;r(x,A,W)},w=({el:B,anchor:x})=>{let A;for(;B&&B!==x;)A=v(B),a(B),B=A;a(x)},_=(B,x,A,W,K,U,se,ie,re)=>{se=se||x.type==="svg",B==null?C(x,A,W,K,U,se,ie,re):T(B,x,K,U,se,ie,re)},C=(B,x,A,W,K,U,se,ie)=>{let re,Q;const{type:H,props:q,shapeFlag:ue,transition:ae,dirs:fe}=B;if(re=B.el=o(B.type,U,q&&q.is,q),ue&8?c(re,B.children):ue&16&&I(B.children,re,null,W,K,U&&H!=="foreignObject",se,ie),fe&&pa(B,null,W,"created"),E(re,B,B.scopeId,se,W),q){for(const xe in q)xe!=="value"&&!Qs(xe)&&i(re,xe,null,q[xe],U,B.children,W,K,le);"value"in q&&i(re,"value",null,q.value),(Q=q.onVnodeBeforeMount)&&lr(Q,W,B)}fe&&pa(B,null,W,"beforeMount");const we=(!K||K&&!K.pendingBranch)&&ae&&!ae.persisted;we&&ae.beforeEnter(re),r(re,x,A),((Q=q&&q.onVnodeMounted)||we||fe)&&yn(()=>{Q&&lr(Q,W,B),we&&ae.enter(re),fe&&pa(B,null,W,"mounted")},K)},E=(B,x,A,W,K)=>{if(A&&h(B,A),W)for(let U=0;U{for(let Q=re;Q{const ie=x.el=B.el;let{patchFlag:re,dynamicChildren:Q,dirs:H}=x;re|=B.patchFlag&16;const q=B.props||ht,ue=x.props||ht;let ae;A&&ha(A,!1),(ae=ue.onVnodeBeforeUpdate)&&lr(ae,A,x,B),H&&pa(x,B,A,"beforeUpdate"),A&&ha(A,!0);const fe=K&&x.type!=="foreignObject";if(Q?N(B.dynamicChildren,Q,ie,A,W,fe,U):se||M(B,x,ie,null,A,W,fe,U,!1),re>0){if(re&16)R(ie,x,q,ue,A,W,K);else if(re&2&&q.class!==ue.class&&i(ie,"class",null,ue.class,K),re&4&&i(ie,"style",q.style,ue.style,K),re&8){const we=x.dynamicProps;for(let xe=0;xe{ae&&lr(ae,A,x,B),H&&pa(x,B,A,"updated")},W)},N=(B,x,A,W,K,U,se)=>{for(let ie=0;ie{if(A!==W){if(A!==ht)for(const ie in A)!Qs(ie)&&!(ie in W)&&i(B,ie,A[ie],null,se,x.children,K,U,le);for(const ie in W){if(Qs(ie))continue;const re=W[ie],Q=A[ie];re!==Q&&ie!=="value"&&i(B,ie,Q,re,se,x.children,K,U,le)}"value"in W&&i(B,"value",A.value,W.value)}},F=(B,x,A,W,K,U,se,ie,re)=>{const Q=x.el=B?B.el:s(""),H=x.anchor=B?B.anchor:s("");let{patchFlag:q,dynamicChildren:ue,slotScopeIds:ae}=x;ae&&(ie=ie?ie.concat(ae):ae),B==null?(r(Q,A,W),r(H,A,W),I(x.children,A,H,K,U,se,ie,re)):q>0&&q&64&&ue&&B.dynamicChildren?(N(B.dynamicChildren,ue,A,K,U,se,ie),(x.key!=null||K&&x===K.subTree)&&Bd(B,x,!0)):M(B,x,A,H,K,U,se,ie,re)},L=(B,x,A,W,K,U,se,ie,re)=>{x.slotScopeIds=ie,B==null?x.shapeFlag&512?K.ctx.activate(x,A,W,se,re):j(x,A,W,K,U,se,re):D(B,x,re)},j=(B,x,A,W,K,U,se)=>{const ie=B.component=gO(B,W,K);if(ls(B)&&(ie.ctx.renderer=me),mO(ie),ie.asyncDep){if(K&&K.registerDep(ie,P),!B.el){const re=ie.subTree=S(In);g(null,re,x,A)}return}P(ie,B,x,A,K,U,se)},D=(B,x,A)=>{const W=x.component=B.component;if(EE(B,x,A))if(W.asyncDep&&!W.asyncResolved){O(W,x,A);return}else W.next=x,bE(W.update),W.update();else x.el=B.el,W.vnode=x},P=(B,x,A,W,K,U,se)=>{const ie=()=>{if(B.isMounted){let{next:H,bu:q,u:ue,parent:ae,vnode:fe}=B,we=H,xe;ha(B,!1),H?(H.el=fe.el,O(B,H,se)):H=fe,q&&tl(q),(xe=H.props&&H.props.onVnodeBeforeUpdate)&&lr(xe,ae,H,fe),ha(B,!0);const Pe=Ju(B),oe=B.subTree;B.subTree=Pe,p(oe,Pe,d(oe.el),ge(oe),B,K,U),H.el=Pe.el,we===null&&OE(B,Pe.el),ue&&yn(ue,K),(xe=H.props&&H.props.onVnodeUpdated)&&yn(()=>lr(xe,ae,H,fe),K)}else{let H;const{el:q,props:ue}=x,{bm:ae,m:fe,parent:we}=B,xe=yo(x);if(ha(B,!1),ae&&tl(ae),!xe&&(H=ue&&ue.onVnodeBeforeMount)&&lr(H,we,x),ha(B,!0),q&&Se){const Pe=()=>{B.subTree=Ju(B),Se(q,B.subTree,B,K,null)};xe?x.type.__asyncLoader().then(()=>!B.isUnmounted&&Pe()):Pe()}else{const Pe=B.subTree=Ju(B);p(null,Pe,A,W,B,K,U),x.el=Pe.el}if(fe&&yn(fe,K),!xe&&(H=ue&&ue.onVnodeMounted)){const Pe=x;yn(()=>lr(H,we,Pe),K)}(x.shapeFlag&256||we&&yo(we.vnode)&&we.vnode.shapeFlag&256)&&B.a&&yn(B.a,K),B.isMounted=!0,x=A=W=null}},re=B.effect=new Cd(ie,()=>au(Q),B.scope),Q=B.update=()=>re.run();Q.id=B.uid,ha(B,!0),Q()},O=(B,x,A)=>{x.component=B;const W=B.vnode.props;B.vnode=x,B.next=null,tO(B,x.props,W,A),aO(B,x.children,A),Di(),rh(),Li()},M=(B,x,A,W,K,U,se,ie,re=!1)=>{const Q=B&&B.children,H=B?B.shapeFlag:0,q=x.children,{patchFlag:ue,shapeFlag:ae}=x;if(ue>0){if(ue&128){G(Q,q,A,W,K,U,se,ie,re);return}else if(ue&256){$(Q,q,A,W,K,U,se,ie,re);return}}ae&8?(H&16&&le(Q,K,U),q!==Q&&c(A,q)):H&16?ae&16?G(Q,q,A,W,K,U,se,ie,re):le(Q,K,U,!0):(H&8&&c(A,""),ae&16&&I(q,A,W,K,U,se,ie,re))},$=(B,x,A,W,K,U,se,ie,re)=>{B=B||vi,x=x||vi;const Q=B.length,H=x.length,q=Math.min(Q,H);let ue;for(ue=0;ueH?le(B,K,U,!0,!1,q):I(x,A,W,K,U,se,ie,re,q)},G=(B,x,A,W,K,U,se,ie,re)=>{let Q=0;const H=x.length;let q=B.length-1,ue=H-1;for(;Q<=q&&Q<=ue;){const ae=B[Q],fe=x[Q]=re?Xr(x[Q]):dr(x[Q]);if(xa(ae,fe))p(ae,fe,A,null,K,U,se,ie,re);else break;Q++}for(;Q<=q&&Q<=ue;){const ae=B[q],fe=x[ue]=re?Xr(x[ue]):dr(x[ue]);if(xa(ae,fe))p(ae,fe,A,null,K,U,se,ie,re);else break;q--,ue--}if(Q>q){if(Q<=ue){const ae=ue+1,fe=aeue)for(;Q<=q;)Z(B[Q],K,U,!0),Q++;else{const ae=Q,fe=Q,we=new Map;for(Q=fe;Q<=ue;Q++){const Ye=x[Q]=re?Xr(x[Q]):dr(x[Q]);Ye.key!=null&&we.set(Ye.key,Q)}let xe,Pe=0;const oe=ue-fe+1;let ve=!1,Xe=0;const Ie=new Array(oe);for(Q=0;Q=oe){Z(Ye,K,U,!0);continue}let _t;if(Ye.key!=null)_t=we.get(Ye.key);else for(xe=fe;xe<=ue;xe++)if(Ie[xe-fe]===0&&xa(Ye,x[xe])){_t=xe;break}_t===void 0?Z(Ye,K,U,!0):(Ie[_t-fe]=Q+1,_t>=Xe?Xe=_t:ve=!0,p(Ye,x[_t],A,null,K,U,se,ie,re),Pe++)}const Le=ve?sO(Ie):vi;for(xe=Le.length-1,Q=oe-1;Q>=0;Q--){const Ye=fe+Q,_t=x[Ye],tn=Ye+1{const{el:U,type:se,transition:ie,children:re,shapeFlag:Q}=B;if(Q&6){J(B.component.subTree,x,A,W);return}if(Q&128){B.suspense.move(x,A,W);return}if(Q&64){se.move(B,x,A,me);return}if(se===Re){r(U,x,A);for(let q=0;qie.enter(U),K);else{const{leave:q,delayLeave:ue,afterLeave:ae}=ie,fe=()=>r(U,x,A),we=()=>{q(U,()=>{fe(),ae&&ae()})};ue?ue(U,fe,we):we()}else r(U,x,A)},Z=(B,x,A,W=!1,K=!1)=>{const{type:U,props:se,ref:ie,children:re,dynamicChildren:Q,shapeFlag:H,patchFlag:q,dirs:ue}=B;if(ie!=null&&ef(ie,null,A,B,!0),H&256){x.ctx.deactivate(B);return}const ae=H&1&&ue,fe=!yo(B);let we;if(fe&&(we=se&&se.onVnodeBeforeUnmount)&&lr(we,x,B),H&6)ne(B.component,A,W);else{if(H&128){B.suspense.unmount(A,W);return}ae&&pa(B,null,x,"beforeUnmount"),H&64?B.type.remove(B,x,A,K,me,W):Q&&(U!==Re||q>0&&q&64)?le(Q,x,A,!1,!0):(U===Re&&q&384||!K&&H&16)&&le(re,x,A),W&&X(B)}(fe&&(we=se&&se.onVnodeUnmounted)||ae)&&yn(()=>{we&&lr(we,x,B),ae&&pa(B,null,x,"unmounted")},A)},X=B=>{const{type:x,el:A,anchor:W,transition:K}=B;if(x===Re){Y(A,W);return}if(x===nl){w(B);return}const U=()=>{a(A),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(B.shapeFlag&1&&K&&!K.persisted){const{leave:se,delayLeave:ie}=K,re=()=>se(A,U);ie?ie(B.el,U,re):re()}else U()},Y=(B,x)=>{let A;for(;B!==x;)A=v(B),a(B),B=A;a(x)},ne=(B,x,A)=>{const{bum:W,scope:K,update:U,subTree:se,um:ie}=B;W&&tl(W),K.stop(),U&&(U.active=!1,Z(se,B,x,A)),ie&&yn(ie,x),yn(()=>{B.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&B.asyncDep&&!B.asyncResolved&&B.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},le=(B,x,A,W=!1,K=!1,U=0)=>{for(let se=U;seB.shapeFlag&6?ge(B.component.subTree):B.shapeFlag&128?B.suspense.next():v(B.anchor||B.el),_e=(B,x,A)=>{B==null?x._vnode&&Z(x._vnode,null,null,!0):p(x._vnode||null,B,x,null,null,null,A),rh(),n1(),x._vnode=B},me={p,um:Z,m:J,r:X,mt:j,mc:I,pc:M,pbc:N,n:ge,o:t};let ye,Se;return e&&([ye,Se]=e(me)),{render:_e,hydrate:ye,createApp:ZE(_e,ye)}}function ha({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Bd(t,e,n=!1){const r=t.children,a=e.children;if(ke(r)&&ke(a))for(let i=0;i>1,t[n[s]]0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const lO=t=>t.__isTeleport,wo=t=>t&&(t.disabled||t.disabled===""),ph=t=>typeof SVGElement<"u"&&t instanceof SVGElement,tf=(t,e)=>{const n=t&&t.to;return Tt(n)?e?e(n):null:n},uO={__isTeleport:!0,process(t,e,n,r,a,i,o,s,l,u){const{mc:c,pc:d,pbc:v,o:{insert:h,querySelector:f,createText:p,createComment:m}}=u,g=wo(e.props);let{shapeFlag:y,children:b,dynamicChildren:w}=e;if(t==null){const _=e.el=p(""),C=e.anchor=p("");h(_,n,r),h(C,n,r);const E=e.target=tf(e.props,f),I=e.targetAnchor=p("");E&&(h(I,E),o=o||ph(E));const T=(N,R)=>{y&16&&c(b,N,R,a,i,o,s,l)};g?T(n,C):E&&T(E,I)}else{e.el=t.el;const _=e.anchor=t.anchor,C=e.target=t.target,E=e.targetAnchor=t.targetAnchor,I=wo(t.props),T=I?n:C,N=I?_:E;if(o=o||ph(C),w?(v(t.dynamicChildren,w,T,a,i,o,s),Bd(t,e,!0)):l||d(t,e,T,N,a,i,o,s,!1),g)I||As(e,n,_,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const R=e.target=tf(e.props,f);R&&As(e,R,null,u,0)}else I&&As(e,C,E,u,1)}w1(e)},remove(t,e,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:v}=t;if(d&&i(c),(o||!wo(v))&&(i(u),s&16))for(let h=0;h0?er||vi:null,fO(),Fo>0&&er&&er.push(t),t}function Fe(t,e,n,r,a,i){return _1($e(t,e,n,r,a,i,!0))}function mt(t,e,n,r,a){return _1(S(t,e,n,r,a,!0))}function br(t){return t?t.__v_isVNode===!0:!1}function xa(t,e){return t.type===e.type&&t.key===e.key}const cu="__vInternal",C1=({key:t})=>t??null,rl=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Tt(t)||dt(t)||He(t)?{i:Vt,r:t,k:e,f:!!n}:t:null);function $e(t,e=null,n=null,r=0,a=null,i=t===Re?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&C1(e),ref:e&&rl(e),scopeId:ou,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:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Vt};return s?(zd(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=Tt(n)?8:16),Fo>0&&!o&&er&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&er.push(l),l}const S=dO;function dO(t,e=null,n=null,r=0,a=null,i=!1){if((!t||t===f1)&&(t=In),br(t)){const s=rr(t,e,!0);return n&&zd(s,n),Fo>0&&!i&&er&&(s.shapeFlag&6?er[er.indexOf(t)]=s:er.push(s)),s.patchFlag|=-2,s}if(_O(t)&&(t=t.__vccOpts),e){e=vO(e);let{class:s,style:l}=e;s&&!Tt(s)&&(e.class=qt(s)),vt(l)&&(Y0(l)&&!ke(l)&&(l=Ot({},l)),e.style=Pn(l))}const o=Tt(t)?1:PE(t)?128:lO(t)?64:vt(t)?4:He(t)?2:0;return $e(t,e,n,r,a,o,i,!0)}function vO(t){return t?Y0(t)||cu in t?Ot({},t):t:null}function rr(t,e,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=t,s=e?jd(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&C1(s),ref:e&&e.ref?n&&a?ke(a)?a.concat(rl(e)):[a,rl(e)]:rl(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&rr(t.ssContent),ssFallback:t.ssFallback&&rr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function _n(t=" ",e=0){return S(Wa,null,t,e)}function $t(t="",e=!1){return e?(Oe(),mt(In,null,t)):S(In,null,t)}function dr(t){return t==null||typeof t=="boolean"?S(In):ke(t)?S(Re,null,t.slice()):typeof t=="object"?Xr(t):S(Wa,null,String(t))}function Xr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:rr(t)}function zd(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ke(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),zd(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!(cu in e)?e._ctx=Vt:a===3&&Vt&&(Vt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else He(e)?(e={default:e,_ctx:Vt},n=32):(e=String(e),r&64?(n=16,e=[_n(e)]):n=8);t.children=e,t.shapeFlag|=n}function jd(...t){const e={};for(let n=0;nNt||Vt;let Wd,Xa,gh="__VUE_INSTANCE_SETTERS__";(Xa=Uc()[gh])||(Xa=Uc()[gh]=[]),Xa.push(t=>Nt=t),Wd=t=>{Xa.length>1?Xa.forEach(e=>e(t)):Xa[0](t)};const Ci=t=>{Wd(t),t.scope.on()},Ra=()=>{Nt&&Nt.scope.off(),Wd(null)};function S1(t){return t.vnode.shapeFlag&4}let Si=!1;function mO(t,e=!1){Si=e;const{props:n,children:r}=t.vnode,a=S1(t);eO(t,n,a,e),rO(t,r);const i=a?yO(t,e):void 0;return Si=!1,i}function yO(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=ru(new Proxy(t.ctx,VE));const{setup:r}=n;if(r){const a=t.setupContext=r.length>1?T1(t):null;Ci(t),Di();const i=aa(r,t,0,[t.props,a]);if(Li(),Ra(),N0(i)){if(i.then(Ra,Ra),e)return i.then(o=>{mh(t,o,e)}).catch(o=>{ss(o,t,0)});t.asyncDep=i}else mh(t,i,e)}else x1(t,e)}function mh(t,e,n){He(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:vt(e)&&(t.setupState=X0(e)),x1(t,n)}let yh;function x1(t,e,n){const r=t.type;if(!t.render){if(!e&&yh&&!r.render){const a=r.template||Ld(t).template;if(a){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Ot(Ot({isCustomElement:i,delimiters:s},o),l);r.render=yh(a,u)}}t.render=r.render||tr}Ci(t),Di(),KE(t),Li(),Ra()}function bO(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Cn(t,"get","$attrs"),e[n]}}))}function T1(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return bO(t)},slots:t.slots,emit:t.emit,expose:e}}function fu(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(X0(ru(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in bo)return bo[n](t)},has(e,n){return n in e||n in bo}}))}function wO(t,e=!0){return He(t)?t.displayName||t.name:t.name||e&&t.__name}function _O(t){return He(t)&&"__vccOpts"in t}const V=(t,e)=>gE(t,e,Si);function sa(t,e,n){const r=arguments.length;return r===2?vt(e)&&!ke(e)?br(e)?S(t,null,[e]):S(t,e):S(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&br(n)&&(n=[n]),S(t,e,n))}const CO=Symbol.for("v-scx"),SO=()=>ot(CO),xO="3.3.4",TO="http://www.w3.org/2000/svg",Ta=typeof document<"u"?document:null,bh=Ta&&Ta.createElement("template"),EO={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const a=e?Ta.createElementNS(TO,t):Ta.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>Ta.createTextNode(t),createComment:t=>Ta.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ta.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,a,i){const o=n?n.previousSibling:e.lastChild;if(a&&(a===i||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{bh.innerHTML=r?`${t}`:t;const s=bh.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function OO(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function PO(t,e,n){const r=t.style,a=Tt(n);if(n&&!a){if(e&&!Tt(e))for(const i in e)n[i]==null&&nf(r,i,"");for(const i in n)nf(r,i,n[i])}else{const i=r.display;a?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=i)}}const wh=/\s*!important$/;function nf(t,e,n){if(ke(n))n.forEach(r=>nf(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=AO(t,e);wh.test(n)?t.setProperty(ja(r),n.replace(wh,""),"important"):t[r]=n}}const _h=["Webkit","Moz","ms"],ec={};function AO(t,e){const n=ec[e];if(n)return n;let r=nr(e);if(r!=="filter"&&r in t)return ec[e]=r;r=eu(r);for(let a=0;a<_h.length;a++){const i=_h[a]+r;if(i in t)return ec[e]=i}return e}const Ch="http://www.w3.org/1999/xlink";function IO(t,e,n,r,a){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Ch,e.slice(6,e.length)):t.setAttributeNS(Ch,e,n);else{const i=NT(e);n==null||i&&!D0(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function MO(t,e,n,r,a,i,o){if(e==="innerHTML"||e==="textContent"){r&&o(r,a,i),t[e]=n??"";return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){t._value=n;const u=s==="OPTION"?t.getAttribute("value"):t.value,c=n??"";u!==c&&(t.value=c),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const u=typeof t[e];u==="boolean"?n=D0(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function ii(t,e,n,r){t.addEventListener(e,n,r)}function kO(t,e,n,r){t.removeEventListener(e,n,r)}function NO(t,e,n,r,a=null){const i=t._vei||(t._vei={}),o=i[e];if(r&&o)o.value=r;else{const[s,l]=RO(e);if(r){const u=i[e]=LO(r,a);ii(t,s,u,l)}else o&&(kO(t,s,o,l),i[e]=void 0)}}const Sh=/(?:Once|Passive|Capture)$/;function RO(t){let e;if(Sh.test(t)){e={};let r;for(;r=t.match(Sh);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):ja(t.slice(2)),e]}let tc=0;const $O=Promise.resolve(),DO=()=>tc||($O.then(()=>tc=0),tc=Date.now());function LO(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Vn(FO(r,n.value),e,5,[r])};return n.value=t,n.attached=DO(),n}function FO(t,e){if(ke(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>a=>!a._stopped&&r&&r(a))}else return e}const xh=/^on[a-z]/,BO=(t,e,n,r,a=!1,i,o,s,l)=>{e==="class"?OO(t,r,a):e==="style"?PO(t,n,r):Xl(e)?hd(e)||NO(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):zO(t,e,r,a))?MO(t,e,r,i,o,s,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),IO(t,e,r,a))};function zO(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&xh.test(e)&&He(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||xh.test(e)&&Tt(n)?!1:e in t}function RG(t){const e=Pt();if(!e)return;const n=e.ut=(a=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>af(i,a))},r=()=>{const a=t(e.proxy);rf(e.subTree,a),n(a)};IE(r),Ve(()=>{const a=new MutationObserver(r);a.observe(e.subTree.el.parentNode,{childList:!0}),vn(()=>a.disconnect())})}function rf(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{rf(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)af(t.el,e);else if(t.type===Re)t.children.forEach(n=>rf(n,e));else if(t.type===nl){let{el:n,anchor:r}=t;for(;n&&(af(n,e),n!==r);)n=n.nextSibling}}function af(t,e){if(t.nodeType===1){const n=t.style;for(const r in e)n.setProperty(`--${r}`,e[r])}}const Ur="transition",Yi="animation",Yn=(t,{slots:e})=>sa(NE,O1(t),e);Yn.displayName="Transition";const E1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jO=Yn.props=Ot({},s1,E1),ga=(t,e=[])=>{ke(t)?t.forEach(n=>n(...e)):t&&t(...e)},Th=t=>t?ke(t)?t.some(e=>e.length>1):t.length>1:!1;function O1(t){const e={};for(const F in t)F in E1||(e[F]=t[F]);if(t.css===!1)return e;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,f=WO(a),p=f&&f[0],m=f&&f[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:_,onBeforeAppear:C=g,onAppear:E=y,onAppearCancelled:I=b}=e,T=(F,L,j)=>{Yr(F,L?c:s),Yr(F,L?u:o),j&&j()},N=(F,L)=>{F._isLeaving=!1,Yr(F,d),Yr(F,h),Yr(F,v),L&&L()},R=F=>(L,j)=>{const D=F?E:y,P=()=>T(L,F,j);ga(D,[L,P]),Eh(()=>{Yr(L,F?l:i),Mr(L,F?c:s),Th(D)||Oh(L,r,p,P)})};return Ot(e,{onBeforeEnter(F){ga(g,[F]),Mr(F,i),Mr(F,o)},onBeforeAppear(F){ga(C,[F]),Mr(F,l),Mr(F,u)},onEnter:R(!1),onAppear:R(!0),onLeave(F,L){F._isLeaving=!0;const j=()=>N(F,L);Mr(F,d),A1(),Mr(F,v),Eh(()=>{F._isLeaving&&(Yr(F,d),Mr(F,h),Th(w)||Oh(F,r,m,j))}),ga(w,[F,j])},onEnterCancelled(F){T(F,!1),ga(b,[F])},onAppearCancelled(F){T(F,!0),ga(I,[F])},onLeaveCancelled(F){N(F),ga(_,[F])}})}function WO(t){if(t==null)return null;if(vt(t))return[nc(t.enter),nc(t.leave)];{const e=nc(t);return[e,e]}}function nc(t){return OT(t)}function Mr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Yr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Eh(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let HO=0;function Oh(t,e,n,r){const a=t._endId=++HO,i=()=>{a===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=P1(t,e);if(!o)return r();const u=o+"end";let c=0;const d=()=>{t.removeEventListener(u,v),i()},v=h=>{h.target===t&&++c>=l&&d()};setTimeout(()=>{c(n[f]||"").split(", "),a=r(`${Ur}Delay`),i=r(`${Ur}Duration`),o=Ph(a,i),s=r(`${Yi}Delay`),l=r(`${Yi}Duration`),u=Ph(s,l);let c=null,d=0,v=0;e===Ur?o>0&&(c=Ur,d=o,v=i.length):e===Yi?u>0&&(c=Yi,d=u,v=l.length):(d=Math.max(o,u),c=d>0?o>u?Ur:Yi:null,v=c?c===Ur?i.length:l.length:0);const h=c===Ur&&/\b(transform|all)(,|$)/.test(r(`${Ur}Property`).toString());return{type:c,timeout:d,propCount:v,hasTransform:h}}function Ph(t,e){for(;t.lengthAh(n)+Ah(t[r])))}function Ah(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function A1(){return document.body.offsetHeight}const I1=new WeakMap,M1=new WeakMap,k1={name:"TransitionGroup",props:Ot({},jO,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Pt(),r=o1();let a,i;return ca(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!YO(a[0].el,n.vnode.el,o))return;a.forEach(KO),a.forEach(GO);const s=a.filter(qO);A1(),s.forEach(l=>{const u=l.el,c=u.style;Mr(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,Yr(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=De(t),s=O1(o);let l=o.tag||Re;a=i,i=e.default?Nd(e.default()):[];for(let u=0;udelete t.mode;k1.props;const UO=k1;function KO(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function GO(t){M1.set(t,t.el.getBoundingClientRect())}function qO(t){const e=I1.get(t),n=M1.get(t),r=e.left-n.left,a=e.top-n.top;if(r||a){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",t}}function YO(t,e,n){const r=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(r);const{hasTransform:i}=P1(r);return a.removeChild(r),i}const Ih=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ke(e)?n=>tl(e,n):e};function JO(t){t.target.composing=!0}function Mh(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const $G={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t._assign=Ih(a);const i=r||a.props&&a.props.type==="number";ii(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;n&&(s=s.trim()),i&&(s=Vc(s)),t._assign(s)}),n&&ii(t,"change",()=>{t.value=t.value.trim()}),e||(ii(t,"compositionstart",JO),ii(t,"compositionend",Mh),ii(t,"change",Mh))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:a}},i){if(t._assign=Ih(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(a||t.type==="number")&&Vc(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},XO=["ctrl","shift","alt","meta"],ZO={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>XO.some(n=>t[`${n}Key`]&&!e.includes(n))},An=(t,e)=>(n,...r)=>{for(let a=0;an=>{if(!("key"in n))return;const r=ja(n.key);if(e.some(a=>a===r||QO[a]===r))return t(n)},$r={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Ji(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Ji(t,!0),r.enter(t)):r.leave(t,()=>{Ji(t,!1)}):Ji(t,e))},beforeUnmount(t,{value:e}){Ji(t,e)}};function Ji(t,e){t.style.display=e?t._vod:"none"}const eP=Ot({patchProp:BO},EO);let kh;function N1(){return kh||(kh=iO(eP))}const xl=(...t)=>{N1().render(...t)},tP=(...t)=>{const e=N1().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=nP(r);if(!a)return;const i=e._component;!He(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e};function nP(t){return Tt(t)?document.querySelector(t):t}const rP="modulepreload",aP=function(t){return"/infinite_image_browsing/fe-static/"+t},Nh={},mn=function(e,n,r){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=aP(i),i in Nh)return;Nh[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const d=a[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":rP,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};function Qe(t){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(t)}function iP(t,e){if(Qe(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qe(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function R1(t){var e=iP(t,"string");return Qe(e)==="symbol"?e:String(e)}function te(t,e,n){return e=R1(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function k(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof t=="function"?t(e):t??n}function Ce(){for(var t=[],e=0;e0},t.prototype.connect_=function(){!of||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),CP?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!of||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,a=_P.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),L1=function(t,e){for(var n=0,r=Object.keys(e);n"u"||!(Element instanceof Object))){if(!(e instanceof xi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new MP(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof xi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new kP(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),B1=typeof WeakMap<"u"?new WeakMap:new D1,z1=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=SP.getInstance(),r=new NP(e,n,this);B1.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){z1.prototype[t]=function(){var e;return(e=B1.get(this))[t].apply(e,arguments)}});var j1=function(){return typeof Tl.ResizeObserver<"u"?Tl.ResizeObserver:z1}();function W1(t){if(Array.isArray(t))return t}function RP(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function sf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r={},a=/;(?![^(]*\))/g,i=/:(.+)/;return Qe(e)==="object"?e:(e.split(a).forEach(function(o){if(o){var s=o.split(i);if(s.length>1){var l=n?Hd(s[0].trim()):s[0].trim();r[l]=s[1].trim()}}}),r)},oi=function(e,n){return e[n]!==void 0},Mn=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(e)?e:[e],a=[];return r.forEach(function(i){Array.isArray(i)?a.push.apply(a,nt(t(i,n))):i&&i.type===Re?a.push.apply(a,nt(t(i.children,n))):i&&br(i)?n&&!X1(i)?a.push(i):n||a.push(i):lf(i)&&a.push(i)}),a},iA=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(br(e))return e.type===Re?n==="default"?Mn(e.children):[]:e.children&&e.children[n]?Mn(e.children[n](r)):[];var a=e.$slots[n]&&e.$slots[n](r);return Mn(a)},Ia=function(e){for(var n,r=(e==null||(n=e.vnode)===null||n===void 0?void 0:n.el)||e&&(e.$el||e);r&&!r.tagName;)r=r.nextSibling;return r},oA=function(e){var n={};if(e.$&&e.$.vnode){var r=e.$.vnode.props||{};Object.keys(e.$props).forEach(function(s){var l=e.$props[s],u=pP(s);(l!==void 0||u in r)&&(n[s]=l)})}else if(br(e)&&Qe(e.type)==="object"){var a=e.props||{},i={};Object.keys(a).forEach(function(s){i[Hd(s)]=a[s]});var o=e.type.props||{};Object.keys(o).forEach(function(s){var l=gP(o,i,s,i[s]);(l!==void 0||s in i)&&(n[s]=l)})}return n},J1=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=void 0;if(e.$){var o=e[n];if(o!==void 0)return typeof o=="function"&&a?o(r):o;i=e.$slots[n],i=a&&i?i(r):i}else if(br(e)){var s=e.props&&e.props[n];if(s!==void 0&&e.props!==null)return typeof s=="function"&&a?s(r):s;e.type===Re?i=e.children:e.children&&e.children[n]&&(i=e.children[n],i=a&&i?i(r):i)}return Array.isArray(i)&&(i=Mn(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function Fh(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return t.$?n=k(k({},n),t.$attrs):n=k(k({},n),t.props),Y1(n)[e?"onEvents":"events"]}function sA(t,e){var n=(br(t)?t.props:t.$attrs)||{},r=n.style||{};if(typeof r=="string")r=aA(r,e);else if(e&&r){var a={};return Object.keys(r).forEach(function(i){return a[Hd(i)]=r[i]}),a}return r}function X1(t){return t&&(t.type===In||t.type===Re&&t.children.length===0||t.type===Wa&&t.children.trim()==="")}function Fi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,nt(n)):(n==null?void 0:n.type)===Re?e.push.apply(e,nt(Fi(n.children))):e.push(n)}),e.filter(function(n){return!X1(n)})}function ar(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&Qe(t.type)!=="symbol"}function Wn(t,e){var n,r,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(n=e[a])!==null&&n!==void 0?n:(r=t[a])===null||r===void 0?void 0:r.call(t)}const Ti=he({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(e,n){var r=n.slots,a=ct({width:0,height:0,offsetHeight:0,offsetWidth:0}),i=null,o=null,s=function(){o&&(o.disconnect(),o=null)},l=function(v){var h=e.onResize,f=v[0].target,p=f.getBoundingClientRect(),m=p.width,g=p.height,y=f.offsetWidth,b=f.offsetHeight,w=Math.floor(m),_=Math.floor(g);if(a.width!==w||a.height!==_||a.offsetWidth!==y||a.offsetHeight!==b){var C={width:w,height:_,offsetWidth:y,offsetHeight:b};Ut(a,C),h&&Promise.resolve().then(function(){h(k(k({},C),{},{offsetWidth:y,offsetHeight:b}),f)})}},u=Pt(),c=function(){var v=e.disabled;if(v){s();return}var h=Ia(u),f=h!==i;f&&(s(),i=h),!o&&h&&(o=new j1(l),o.observe(h))};return Ve(function(){c()}),ca(function(){c()}),vn(function(){s()}),pe(function(){return e.disabled},function(){c()},{flush:"post"}),function(){var d;return(d=r.default)===null||d===void 0?void 0:d.call(r)[0]}}});var Z1=function(e){return setTimeout(e,16)},Q1=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(Z1=function(e){return window.requestAnimationFrame(e)},Q1=function(e){return window.cancelAnimationFrame(e)});var Bh=0,Kd=new Map;function ew(t){Kd.delete(t)}function Ue(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Bh+=1;var n=Bh;function r(a){if(a===0)ew(n),t();else{var i=Z1(function(){r(a-1)});Kd.set(n,i)}}return r(e),n}Ue.cancel=function(t){var e=Kd.get(t);return ew(e),Q1(e)};var Ha=function(){for(var e=arguments.length,n=new Array(e),r=0;r=0)&&(n[a]=t[a]);return n}function bt(t,e){if(t==null)return{};var n=lA(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const nw={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};var uA={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const cA=uA;var fA={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const rw=fA;var dA={lang:k({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},cA),timePickerLocale:k({},rw)};const jh=dA;var Tn="${label} is not a valid ${type}",vA={locale:"en",Pagination:nw,DatePicker:jh,TimePicker:rw,Calendar:jh,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Tn,method:Tn,array:Tn,object:Tn,number:Tn,date:Tn,boolean:Tn,integer:Tn,float:Tn,regexp:Tn,email:Tn,url:Tn,hex:Tn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const Bo=vA,aw=he({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup:function(e,n){var r=n.slots,a=ot("localeData",{}),i=V(function(){var s=e.componentName,l=s===void 0?"global":s,u=e.defaultLocale,c=u||Bo[l||"global"],d=a.antLocale,v=l&&d?d[l]:{};return k(k({},typeof c=="function"?c():c),v||{})}),o=V(function(){var s=a.antLocale,l=s&&s.locale;return s&&s.exist&&!l?Bo.locale:l});return function(){var s=e.children||r.default,l=a.antLocale;return s==null?void 0:s(i.value,o.value,l)}}});function Gd(t,e,n){var r=ot("localeData",{}),a=V(function(){var i=r.antLocale,o=be(e)||Bo[t||"global"],s=t&&i?i[t]:{};return k(k(k({},typeof o=="function"?o():o),s||{}),be(n)||{})});return[a]}var iw=function(){var e=lt("empty",{}),n=e.getPrefixCls,r=n("empty-img-default");return S("svg",{class:r,width:"184",height:"152",viewBox:"0 0 184 152"},[S("g",{fill:"none","fill-rule":"evenodd"},[S("g",{transform:"translate(24 31.67)"},[S("ellipse",{class:"".concat(r,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),S("path",{class:"".concat(r,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"},null),S("path",{class:"".concat(r,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"},null),S("path",{class:"".concat(r,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"},null),S("path",{class:"".concat(r,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"},null)]),S("path",{class:"".concat(r,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"},null),S("g",{class:"".concat(r,"-g"),transform:"translate(149.65 15.383)"},[S("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),S("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])};iw.PRESENTED_IMAGE_DEFAULT=!0;const pA=iw;var ow=function(){var e=lt("empty",{}),n=e.getPrefixCls,r=n("empty-img-simple");return S("svg",{class:r,width:"64",height:"41",viewBox:"0 0 64 41"},[S("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[S("ellipse",{class:"".concat(r,"-ellipse"),fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"},null),S("g",{class:"".concat(r,"-g"),"fill-rule":"nonzero",stroke:"#D9D9D9"},[S("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),S("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA",class:"".concat(r,"-path")},null)])])])};ow.PRESENTED_IMAGE_SIMPLE=!0;const hA=ow;function Wh(t,e){for(var n=0;n=0||(a[n]=t[n]);return a}function Hh(t){return((e=t)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(t)==="[object Object]";var e}var cw=Object.prototype,fw=cw.toString,gA=cw.hasOwnProperty,dw=/^\s*function (\w+)/;function Vh(t){var e,n=(e=t==null?void 0:t.type)!==null&&e!==void 0?e:t;if(n){var r=n.toString().match(dw);return r?r[1]:""}return""}var $a=function(t){var e,n;return Hh(t)!==!1&&typeof(e=t.constructor)=="function"&&Hh(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},mA=function(t){return t},cn=mA,zo=function(t,e){return gA.call(t,e)},yA=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},Ei=Array.isArray||function(t){return fw.call(t)==="[object Array]"},Oi=function(t){return fw.call(t)==="[object Function]"},Ol=function(t){return $a(t)&&zo(t,"_vueTypes_name")},vw=function(t){return $a(t)&&(zo(t,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return zo(t,e)}))};function qd(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function Va(t,e,n){var r;n===void 0&&(n=!1);var a=!0,i="";r=$a(t)?t:{type:t};var o=Ol(r)?r._vueTypes_name+" - ":"";if(vw(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return a;Ei(r.type)?(a=r.type.some(function(d){return Va(d,e,!0)===!0}),i=r.type.map(function(d){return Vh(d)}).join(" or ")):a=(i=Vh(r))==="Array"?Ei(e):i==="Object"?$a(e):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(d){if(d==null)return"";var v=d.constructor.toString().match(dw);return v?v[1]:""}(e)===i:e instanceof r.type}if(!a){var s=o+'value "'+e+'" should be of type "'+i+'"';return n===!1?(cn(s),!1):s}if(zo(r,"validator")&&Oi(r.validator)){var l=cn,u=[];if(cn=function(d){u.push(d)},a=r.validator(e),cn=l,!a){var c=(u.length>1?"* ":"")+u.join(` -* `);return u.length=0,n===!1?(cn(c),a):c}}return a}function kn(t,e){var n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(a){return a!==void 0||this.default?Oi(a)||Va(this,a,!0)===!0?(this.default=Ei(a)?function(){return[].concat(a)}:$a(a)?function(){return Object.assign({},a)}:a,this):(cn(this._vueTypes_name+' - invalid default value: "'+a+'"'),this):this}}}),r=n.validator;return Oi(r)&&(n.validator=qd(r,n)),n}function _r(t,e){var n=kn(t,e);return Object.defineProperty(n,"validate",{value:function(r){return Oi(this.validator)&&cn(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: -`+JSON.stringify(this)),this.validator=qd(r,this),this}})}function Uh(t,e,n){var r,a,i=(r=e,a={},Object.getOwnPropertyNames(r).forEach(function(d){a[d]=Object.getOwnPropertyDescriptor(r,d)}),Object.defineProperties({},a));if(i._vueTypes_name=t,!$a(n))return i;var o,s,l=n.validator,u=uw(n,["validator"]);if(Oi(l)){var c=i.validator;c&&(c=(s=(o=c).__original)!==null&&s!==void 0?s:o),i.validator=qd(c?function(d){return c.call(this,d)&&l.call(this,d)}:l,i)}return Object.assign(i,u)}function vu(t){return t.replace(/^(?!\s*$)/gm," ")}var bA=function(){return _r("any",{})},wA=function(){return _r("function",{type:Function})},_A=function(){return _r("boolean",{type:Boolean})},CA=function(){return _r("string",{type:String})},SA=function(){return _r("number",{type:Number})},xA=function(){return _r("array",{type:Array})},TA=function(){return _r("object",{type:Object})},EA=function(){return kn("integer",{type:Number,validator:function(t){return yA(t)}})},OA=function(){return kn("symbol",{validator:function(t){return typeof t=="symbol"}})};function PA(t,e){if(e===void 0&&(e="custom validation failed"),typeof t!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return kn(t.name||"<>",{validator:function(n){var r=t(n);return r||cn(this._vueTypes_name+" - "+e),r}})}function AA(t){if(!Ei(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+t.join('", "')+'".',n=t.reduce(function(r,a){if(a!=null){var i=a.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return kn("oneOf",{type:n.length>0?n:void 0,validator:function(r){var a=t.indexOf(r)!==-1;return a||cn(e),a}})}function IA(t){if(!Ei(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,n=[],r=0;r{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function pd(t,e){const n=Object.create(null),r=t.split(",");for(let a=0;a!!n[a.toLowerCase()]:a=>!!n[a]}const ht={},vi=[],tr=()=>{},_T=()=>!1,CT=/^on[^a-z]/,Xl=t=>CT.test(t),hd=t=>t.startsWith("onUpdate:"),Ot=Object.assign,gd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},ST=Object.prototype.hasOwnProperty,et=(t,e)=>ST.call(t,e),Me=Array.isArray,pi=t=>Zl(t)==="[object Map]",M0=t=>Zl(t)==="[object Set]",He=t=>typeof t=="function",Tt=t=>typeof t=="string",md=t=>typeof t=="symbol",vt=t=>t!==null&&typeof t=="object",N0=t=>vt(t)&&He(t.then)&&He(t.catch),R0=Object.prototype.toString,Zl=t=>R0.call(t),xT=t=>Zl(t).slice(8,-1),$0=t=>Zl(t)==="[object Object]",yd=t=>Tt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Qs=pd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ql=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},TT=/-(\w)/g,nr=Ql(t=>t.replace(TT,(e,n)=>n?n.toUpperCase():"")),ET=/\B([A-Z])/g,ja=Ql(t=>t.replace(ET,"-$1").toLowerCase()),eu=Ql(t=>t.charAt(0).toUpperCase()+t.slice(1)),el=Ql(t=>t?`on${eu(t)}`:""),ko=(t,e)=>!Object.is(t,e),tl=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Vc=t=>{const e=parseFloat(t);return isNaN(e)?t:e},OT=t=>{const e=Tt(t)?Number(t):NaN;return isNaN(e)?t:e};let Yp;const Uc=()=>Yp||(Yp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(t){if(Me(t)){const e={};for(let n=0;n{if(n){const r=n.split(AT);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function qt(t){let e="";if(Tt(t))e=t;else if(Me(t))for(let n=0;nTt(t)?t:t==null?"":Me(t)||vt(t)&&(t.toString===R0||!He(t.toString))?JSON.stringify(t,L0,2):String(t),L0=(t,e)=>e&&e.__v_isRef?L0(t,e.value):pi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:M0(e)?{[`Set(${e.size})`]:[...e.values()]}:vt(e)&&!Me(e)&&!$0(e)?String(e):e;let On;class F0{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!e&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=On;try{return On=this,e()}finally{On=n}}}on(){On=this}off(){On=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},B0=t=>(t.w&oa)>0,z0=t=>(t.n&oa)>0,$T=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),e){case"add":Me(t)?yd(n)&&s.push(o.get("length")):(s.push(o.get(Ma)),pi(t)&&s.push(o.get(Gc)));break;case"delete":Me(t)||(s.push(o.get(Ma)),pi(t)&&s.push(o.get(Gc)));break;case"set":pi(t)&&s.push(o.get(Ma));break}if(s.length===1)s[0]&&qc(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);qc(_d(l))}}function qc(t,e){const n=Me(t)?t:[...t];for(const r of n)r.computed&&Xp(r);for(const r of n)r.computed||Xp(r)}function Xp(t,e){(t!==Zn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function LT(t,e){var n;return(n=yl.get(t))==null?void 0:n.get(e)}const FT=pd("__proto__,__v_isRef,__isVue"),H0=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(md)),BT=Sd(),zT=Sd(!1,!0),jT=Sd(!0),Zp=WT();function WT(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=De(this);for(let i=0,o=this.length;i{t[e]=function(...n){Di();const r=De(this)[e].apply(this,n);return Li(),r}}),t}function HT(t){const e=De(this);return Cn(e,"has",t),e.hasOwnProperty(t)}function Sd(t=!1,e=!1){return function(r,a,i){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return e;if(a==="__v_raw"&&i===(t?e?iE:q0:e?G0:K0).get(r))return r;const o=Me(r);if(!t){if(o&&et(Zp,a))return Reflect.get(Zp,a,i);if(a==="hasOwnProperty")return HT}const s=Reflect.get(r,a,i);return(md(a)?H0.has(a):FT(a))||(t||Cn(r,"get",a),e)?s:dt(s)?o&&yd(a)?s:s.value:vt(s)?t?os(s):ct(s):s}}const VT=V0(),UT=V0(!0);function V0(t=!1){return function(n,r,a,i){let o=n[r];if(_i(o)&&dt(o)&&!dt(a))return!1;if(!t&&(!bl(a)&&!_i(a)&&(o=De(o),a=De(a)),!Me(n)&&dt(o)&&!dt(a)))return o.value=a,!0;const s=Me(n)&&yd(r)?Number(r)t,nu=t=>Reflect.getPrototypeOf(t);function Ss(t,e,n=!1,r=!1){t=t.__v_raw;const a=De(t),i=De(e);n||(e!==i&&Cn(a,"get",e),Cn(a,"get",i));const{has:o}=nu(a),s=r?xd:n?Od:Mo;if(o.call(a,e))return s(t.get(e));if(o.call(a,i))return s(t.get(i));t!==a&&t.get(e)}function xs(t,e=!1){const n=this.__v_raw,r=De(n),a=De(t);return e||(t!==a&&Cn(r,"has",t),Cn(r,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)}function Ts(t,e=!1){return t=t.__v_raw,!e&&Cn(De(t),"iterate",Ma),Reflect.get(t,"size",t)}function Qp(t){t=De(t);const e=De(this);return nu(e).has.call(e,t)||(e.add(t),Br(e,"add",t,t)),this}function eh(t,e){e=De(e);const n=De(this),{has:r,get:a}=nu(n);let i=r.call(n,t);i||(t=De(t),i=r.call(n,t));const o=a.call(n,t);return n.set(t,e),i?ko(e,o)&&Br(n,"set",t,e):Br(n,"add",t,e),this}function th(t){const e=De(this),{has:n,get:r}=nu(e);let a=n.call(e,t);a||(t=De(t),a=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return a&&Br(e,"delete",t,void 0),i}function nh(){const t=De(this),e=t.size!==0,n=t.clear();return e&&Br(t,"clear",void 0,void 0),n}function Es(t,e){return function(r,a){const i=this,o=i.__v_raw,s=De(o),l=e?xd:t?Od:Mo;return!t&&Cn(s,"iterate",Ma),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Os(t,e,n){return function(...r){const a=this.__v_raw,i=De(a),o=pi(i),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=a[t](...r),c=n?xd:e?Od:Mo;return!e&&Cn(i,"iterate",l?Gc:Ma),{next(){const{value:d,done:v}=u.next();return v?{value:d,done:v}:{value:s?[c(d[0]),c(d[1])]:c(d),done:v}},[Symbol.iterator](){return this}}}}function Vr(t){return function(...e){return t==="delete"?!1:this}}function XT(){const t={get(i){return Ss(this,i)},get size(){return Ts(this)},has:xs,add:Qp,set:eh,delete:th,clear:nh,forEach:Es(!1,!1)},e={get(i){return Ss(this,i,!1,!0)},get size(){return Ts(this)},has:xs,add:Qp,set:eh,delete:th,clear:nh,forEach:Es(!1,!0)},n={get(i){return Ss(this,i,!0)},get size(){return Ts(this,!0)},has(i){return xs.call(this,i,!0)},add:Vr("add"),set:Vr("set"),delete:Vr("delete"),clear:Vr("clear"),forEach:Es(!0,!1)},r={get(i){return Ss(this,i,!0,!0)},get size(){return Ts(this,!0)},has(i){return xs.call(this,i,!0)},add:Vr("add"),set:Vr("set"),delete:Vr("delete"),clear:Vr("clear"),forEach:Es(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Os(i,!1,!1),n[i]=Os(i,!0,!1),e[i]=Os(i,!1,!0),r[i]=Os(i,!0,!0)}),[t,n,e,r]}const[ZT,QT,eE,tE]=XT();function Td(t,e){const n=e?t?tE:eE:t?QT:ZT;return(r,a,i)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?r:Reflect.get(et(n,a)&&a in r?n:r,a,i)}const nE={get:Td(!1,!1)},rE={get:Td(!1,!0)},aE={get:Td(!0,!1)},K0=new WeakMap,G0=new WeakMap,q0=new WeakMap,iE=new WeakMap;function oE(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sE(t){return t.__v_skip||!Object.isExtensible(t)?0:oE(xT(t))}function ct(t){return _i(t)?t:Ed(t,!1,U0,nE,K0)}function lE(t){return Ed(t,!1,JT,rE,G0)}function os(t){return Ed(t,!0,YT,aE,q0)}function Ed(t,e,n,r,a){if(!vt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=a.get(t);if(i)return i;const o=sE(t);if(o===0)return t;const s=new Proxy(t,o===2?r:n);return a.set(t,s),s}function Dr(t){return _i(t)?Dr(t.__v_raw):!!(t&&t.__v_isReactive)}function _i(t){return!!(t&&t.__v_isReadonly)}function bl(t){return!!(t&&t.__v_isShallow)}function Y0(t){return Dr(t)||_i(t)}function De(t){const e=t&&t.__v_raw;return e?De(e):t}function ru(t){return ml(t,"__v_skip",!0),t}const Mo=t=>vt(t)?ct(t):t,Od=t=>vt(t)?os(t):t;function Pd(t){ra&&Zn&&(t=De(t),W0(t.dep||(t.dep=_d())))}function Ad(t,e){t=De(t);const n=t.dep;n&&qc(n)}function dt(t){return!!(t&&t.__v_isRef===!0)}function z(t){return J0(t,!1)}function Qn(t){return J0(t,!0)}function J0(t,e){return dt(t)?t:new uE(t,e)}class uE{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:De(e),this._value=n?e:Mo(e)}get value(){return Pd(this),this._value}set value(e){const n=this.__v_isShallow||bl(e)||_i(e);e=n?e:De(e),ko(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Mo(e),Ad(this))}}function be(t){return dt(t)?t.value:t}const cE={get:(t,e,n)=>be(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const a=t[e];return dt(a)&&!dt(n)?(a.value=n,!0):Reflect.set(t,e,n,r)}};function X0(t){return Dr(t)?t:new Proxy(t,cE)}class fE{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=e(()=>Pd(this),()=>Ad(this));this._get=n,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function dE(t){return new fE(t)}function Z0(t){const e=Me(t)?new Array(t.length):{};for(const n in t)e[n]=Q0(t,n);return e}class vE{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return LT(De(this._object),this._key)}}class pE{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function sn(t,e,n){return dt(t)?t:He(t)?new pE(t):vt(t)&&arguments.length>1?Q0(t,e,n):z(t)}function Q0(t,e,n){const r=t[e];return dt(r)?r:new vE(t,e,n)}class hE{constructor(e,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Cd(e,()=>{this._dirty||(this._dirty=!0,Ad(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const e=De(this);return Pd(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function gE(t,e,n=!1){let r,a;const i=He(t);return i?(r=t,a=tr):(r=t.get,a=t.set),new hE(r,a,i||!a,n)}function aa(t,e,n,r){let a;try{a=r?t(...r):t()}catch(i){ss(i,e,n)}return a}function Vn(t,e,n,r){if(He(t)){const i=aa(t,e,n,r);return i&&N0(i)&&i.catch(o=>{ss(o,e,n)}),i}const a=[];for(let i=0;i>>1;Ro(Zt[r])pr&&Zt.splice(e,1)}function wE(t){Me(t)?hi.push(...t):(!Rr||!Rr.includes(t,t.allowRecurse?Sa+1:Sa))&&hi.push(t),t1()}function rh(t,e=No?pr+1:0){for(;eRo(n)-Ro(r)),Sa=0;Sat.id==null?1/0:t.id,_E=(t,e)=>{const n=Ro(t)-Ro(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function r1(t){Yc=!1,No=!0,Zt.sort(_E);const e=tr;try{for(pr=0;prTt(h)?h.trim():h)),d&&(a=n.map(Vc))}let s,l=r[s=el(e)]||r[s=el(nr(e))];!l&&i&&(l=r[s=el(ja(e))]),l&&Vn(l,t,6,a);const u=r[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Vn(u,t,6,a)}}function a1(t,e,n=!1){const r=e.emitsCache,a=r.get(t);if(a!==void 0)return a;const i=t.emits;let o={},s=!1;if(!He(t)){const l=u=>{const c=a1(u,e,!0);c&&(s=!0,Ot(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!s?(vt(t)&&r.set(t,null),null):(Me(i)?i.forEach(l=>o[l]=null):Ot(o,i),vt(t)&&r.set(t,o),o)}function iu(t,e){return!t||!Xl(e)?!1:(e=e.slice(2).replace(/Once$/,""),et(t,e[0].toLowerCase()+e.slice(1))||et(t,ja(e))||et(t,e))}let Vt=null,ou=null;function wl(t){const e=Vt;return Vt=t,ou=t&&t.type.__scopeId||null,e}function kd(t){ou=t}function Md(){ou=null}const SE=t=>Mt;function Mt(t,e=Vt,n){if(!e||t._n)return t;const r=(...a)=>{r._d&&hh(-1);const i=wl(e);let o;try{o=t(...a)}finally{wl(i),r._d&&hh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ju(t){const{type:e,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:v,setupState:h,ctx:f,inheritAttrs:p}=t;let m,g;const y=wl(t);try{if(n.shapeFlag&4){const w=a||r;m=dr(c.call(w,w,d,i,h,v,f)),g=l}else{const w=e;m=dr(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),g=e.props?l:xE(l)}}catch(w){_o.length=0,ss(w,t,1),m=S(In)}let b=m;if(g&&p!==!1){const w=Object.keys(g),{shapeFlag:_}=b;w.length&&_&7&&(o&&w.some(hd)&&(g=TE(g,o)),b=rr(b,g))}return n.dirs&&(b=rr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,wl(y),m}const xE=t=>{let e;for(const n in t)(n==="class"||n==="style"||Xl(n))&&((e||(e={}))[n]=t[n]);return e},TE=(t,e)=>{const n={};for(const r in t)(!hd(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function EE(t,e,n){const{props:r,children:a,component:i}=t,{props:o,children:s,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?ah(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let d=0;dt.__isSuspense;function AE(t,e){e&&e.pendingBranch?Me(t)?e.effects.push(...t):e.effects.push(t):wE(t)}function yt(t,e){return su(t,null,e)}function IE(t,e){return su(t,null,{flush:"post"})}const Ps={};function pe(t,e,n){return su(t,e,n)}function su(t,e,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=ht){var s;const l=tu()===((s=Nt)==null?void 0:s.scope)?Nt:null;let u,c=!1,d=!1;if(dt(t)?(u=()=>t.value,c=bl(t)):Dr(t)?(u=()=>t,r=!0):Me(t)?(d=!0,c=t.some(w=>Dr(w)||bl(w)),u=()=>t.map(w=>{if(dt(w))return w.value;if(Dr(w))return Aa(w);if(He(w))return aa(w,l,2)})):He(t)?e?u=()=>aa(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return v&&v(),Vn(t,l,3,[h])}:u=tr,e&&r){const w=u;u=()=>Aa(w())}let v,h=w=>{v=y.onStop=()=>{aa(w,l,4)}},f;if(Si)if(h=tr,e?n&&Vn(e,l,3,[u(),d?[]:void 0,h]):u(),a==="sync"){const w=SO();f=w.__watcherHandles||(w.__watcherHandles=[])}else return tr;let p=d?new Array(t.length).fill(Ps):Ps;const m=()=>{if(y.active)if(e){const w=y.run();(r||c||(d?w.some((_,C)=>ko(_,p[C])):ko(w,p)))&&(v&&v(),Vn(e,l,3,[w,p===Ps?void 0:d&&p[0]===Ps?[]:p,h]),p=w)}else y.run()};m.allowRecurse=!!e;let g;a==="sync"?g=m:a==="post"?g=()=>yn(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),g=()=>au(m));const y=new Cd(u,g);e?n?m():p=y.run():a==="post"?yn(y.run.bind(y),l&&l.suspense):y.run();const b=()=>{y.stop(),l&&l.scope&&gd(l.scope.effects,y)};return f&&f.push(b),b}function kE(t,e,n){const r=this.proxy,a=Tt(t)?t.includes(".")?i1(r,t):()=>r[t]:t.bind(r,r);let i;He(e)?i=e:(i=e.handler,n=e);const o=Nt;Ci(this);const s=su(a,i.bind(r),n);return o?Ci(o):Ra(),s}function i1(t,e){const n=e.split(".");return()=>{let r=t;for(let a=0;a{Aa(n,e)});else if($0(t))for(const n in t)Aa(t[n],e);return t}function dn(t,e){const n=Vt;if(n===null)return t;const r=fu(n)||n.proxy,a=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),st(()=>{t.isUnmounting=!0}),t}const Dn=[Function,Array],s1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dn,onEnter:Dn,onAfterEnter:Dn,onEnterCancelled:Dn,onBeforeLeave:Dn,onLeave:Dn,onAfterLeave:Dn,onLeaveCancelled:Dn,onBeforeAppear:Dn,onAppear:Dn,onAfterAppear:Dn,onAppearCancelled:Dn},ME={name:"BaseTransition",props:s1,setup(t,{slots:e}){const n=Pt(),r=o1();let a;return()=>{const i=e.default&&Nd(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==In){o=p;break}}const s=De(t),{mode:l}=s;if(r.isLeaving)return Xu(o);const u=ih(o);if(!u)return Xu(o);const c=$o(u,s,r,n);Do(u,c);const d=n.subTree,v=d&&ih(d);let h=!1;const{getTransitionKey:f}=u.type;if(f){const p=f();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(v&&v.type!==In&&(!xa(u,v)||h)){const p=$o(v,s,r,n);if(Do(v,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Xu(o);l==="in-out"&&u.type!==In&&(p.delayLeave=(m,g,y)=>{const b=l1(r,v);b[String(v.key)]=v,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},NE=ME;function l1(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function $o(t,e,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:v,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:p,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=e,b=String(t.key),w=l1(n,t),_=(I,T)=>{I&&Vn(I,r,9,T)},C=(I,T)=>{const N=T[1];_(I,T),Me(I)?I.every(R=>R.length<=1)&&N():I.length<=1&&N()},E={mode:i,persisted:o,beforeEnter(I){let T=s;if(!n.isMounted)if(a)T=p||s;else return;I._leaveCb&&I._leaveCb(!0);const N=w[b];N&&xa(t,N)&&N.el._leaveCb&&N.el._leaveCb(),_(T,[I])},enter(I){let T=l,N=u,R=c;if(!n.isMounted)if(a)T=m||l,N=g||u,R=y||c;else return;let F=!1;const L=I._enterCb=j=>{F||(F=!0,j?_(R,[I]):_(N,[I]),E.delayedLeave&&E.delayedLeave(),I._enterCb=void 0)};T?C(T,[I,L]):L()},leave(I,T){const N=String(t.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return T();_(d,[I]);let R=!1;const F=I._leaveCb=L=>{R||(R=!0,T(),L?_(f,[I]):_(h,[I]),I._leaveCb=void 0,w[N]===t&&delete w[N])};w[N]=t,v?C(v,[I,F]):F()},clone(I){return $o(I,e,n,r)}};return E}function Xu(t){if(ls(t))return t=rr(t),t.children=null,t}function ih(t){return ls(t)?t.children?t.children[0]:void 0:t}function Do(t,e){t.shapeFlag&6&&t.component?Do(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Nd(t,e=!1,n){let r=[],a=0;for(let i=0;i1)for(let i=0;iOt({name:t.name},e,{setup:t}))():t}const yo=t=>!!t.type.__asyncLoader;function xn(t){He(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:a=200,timeout:i,suspensible:o=!0,onError:s}=t;let l=null,u,c=0;const d=()=>(c++,l=null,v()),v=()=>{let h;return l||(h=l=e().catch(f=>{if(f=f instanceof Error?f:new Error(String(f)),s)return new Promise((p,m)=>{s(f,()=>p(d()),()=>m(f),c+1)});throw f}).then(f=>h!==l&&l?l:(f&&(f.__esModule||f[Symbol.toStringTag]==="Module")&&(f=f.default),u=f,f)))};return he({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return u},setup(){const h=Nt;if(u)return()=>Zu(u,h);const f=y=>{l=null,ss(y,h,13,!r)};if(o&&h.suspense||Si)return v().then(y=>()=>Zu(y,h)).catch(y=>(f(y),()=>r?S(r,{error:y}):null));const p=z(!1),m=z(),g=z(!!a);return a&&setTimeout(()=>{g.value=!1},a),i!=null&&setTimeout(()=>{if(!p.value&&!m.value){const y=new Error(`Async component timed out after ${i}ms.`);f(y),m.value=y}},i),v().then(()=>{p.value=!0,h.parent&&ls(h.parent.vnode)&&au(h.parent.update)}).catch(y=>{f(y),m.value=y}),()=>{if(p.value&&u)return Zu(u,h);if(m.value&&r)return S(r,{error:m.value});if(n&&!g.value)return S(n)}}})}function Zu(t,e){const{ref:n,props:r,children:a,ce:i}=e.vnode,o=S(t,r,a);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const ls=t=>t.type.__isKeepAlive;function RE(t,e){u1(t,"a",e)}function $E(t,e){u1(t,"da",e)}function u1(t,e,n=Nt){const r=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(lu(e,r,n),n){let a=n.parent;for(;a&&a.parent;)ls(a.parent.vnode)&&DE(r,e,n,a),a=a.parent}}function DE(t,e,n,r){const a=lu(e,t,r,!0);vn(()=>{gd(r[e],a)},n)}function lu(t,e,n=Nt,r=!1){if(n){const a=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Di(),Ci(n);const s=Vn(e,n,t,o);return Ra(),Li(),s});return r?a.unshift(i):a.push(i),i}}const jr=t=>(e,n=Nt)=>(!Si||t==="sp")&&lu(t,(...r)=>e(...r),n),Rd=jr("bm"),Ve=jr("m"),c1=jr("bu"),ca=jr("u"),st=jr("bum"),vn=jr("um"),LE=jr("sp"),FE=jr("rtg"),BE=jr("rtc");function zE(t,e=Nt){lu("ec",t,e)}const $d="components",jE="directives";function us(t,e){return Dd($d,t,!0,e)||t}const f1=Symbol.for("v-ndc");function WE(t){return Tt(t)?Dd($d,t,!1)||t:t||f1}function HE(t){return Dd(jE,t)}function Dd(t,e,n=!0,r=!1){const a=Vt||Nt;if(a){const i=a.type;if(t===$d){const s=wO(i,!1);if(s&&(s===e||s===nr(e)||s===eu(nr(e))))return i}const o=oh(a[t]||i[t],e)||oh(a.appContext[t],e);return!o&&r?i:o}}function oh(t,e){return t&&(t[e]||t[nr(e)]||t[eu(nr(e))])}function Na(t,e,n,r){let a;const i=n&&n[r];if(Me(t)||Tt(t)){a=new Array(t.length);for(let o=0,s=t.length;oe(o,s,void 0,i&&i[s]));else{const o=Object.keys(t);a=new Array(o.length);for(let s=0,l=o.length;sbr(e)?!(e.type===In||e.type===Re&&!d1(e.children)):!0)?t:null}function IG(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:el(r)]=t[r];return n}const Jc=t=>t?S1(t)?fu(t)||t.proxy:Jc(t.parent):null,bo=Ot(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Jc(t.parent),$root:t=>Jc(t.root),$emit:t=>t.emit,$options:t=>Ld(t),$forceUpdate:t=>t.f||(t.f=()=>au(t.update)),$nextTick:t=>t.n||(t.n=Ke.bind(t.proxy)),$watch:t=>kE.bind(t)}),Qu=(t,e)=>t!==ht&&!t.__isScriptSetup&&et(t,e),VE={get({_:t},e){const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return a[e];case 4:return n[e];case 3:return i[e]}else{if(Qu(r,e))return o[e]=1,r[e];if(a!==ht&&et(a,e))return o[e]=2,a[e];if((u=t.propsOptions[0])&&et(u,e))return o[e]=3,i[e];if(n!==ht&&et(n,e))return o[e]=4,n[e];Xc&&(o[e]=0)}}const c=bo[e];let d,v;if(c)return e==="$attrs"&&Cn(t,"get",e),c(t);if((d=s.__cssModules)&&(d=d[e]))return d;if(n!==ht&&et(n,e))return o[e]=4,n[e];if(v=l.config.globalProperties,et(v,e))return v[e]},set({_:t},e,n){const{data:r,setupState:a,ctx:i}=t;return Qu(a,e)?(a[e]=n,!0):r!==ht&&et(r,e)?(r[e]=n,!0):et(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||t!==ht&&et(t,o)||Qu(e,o)||(s=i[0])&&et(s,o)||et(r,o)||et(bo,o)||et(a.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:et(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function kG(){return UE().slots}function MG(t,e,n){const r=Pt();if(n&&n.local){const a=z(t[e]);return pe(()=>t[e],i=>a.value=i),pe(a,i=>{i!==t[e]&&r.emit(`update:${e}`,i)}),a}else return{__v_isRef:!0,get value(){return t[e]},set value(a){r.emit(`update:${e}`,a)}}}function UE(){const t=Pt();return t.setupContext||(t.setupContext=T1(t))}function Cl(t){return Me(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function NG(t,e){return!t||!e?t||e:Me(t)&&Me(e)?t.concat(e):Ot({},Cl(t),Cl(e))}let Xc=!0;function KE(t){const e=Ld(t),n=t.proxy,r=t.ctx;Xc=!1,e.beforeCreate&&sh(e.beforeCreate,t,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:v,beforeUpdate:h,updated:f,activated:p,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:b,unmounted:w,render:_,renderTracked:C,renderTriggered:E,errorCaptured:I,serverPrefetch:T,expose:N,inheritAttrs:R,components:F,directives:L,filters:j}=e;if(u&&GE(u,r,null),o)for(const O in o){const k=o[O];He(k)&&(r[O]=k.bind(n))}if(a){const O=a.call(n,n);vt(O)&&(t.data=ct(O))}if(Xc=!0,i)for(const O in i){const k=i[O],$=He(k)?k.bind(n,n):He(k.get)?k.get.bind(n,n):tr,G=!He(k)&&He(k.set)?k.set.bind(n):tr,J=V({get:$,set:G});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>J.value,set:Z=>J.value=Z})}if(s)for(const O in s)v1(s[O],r,n,O);if(l){const O=He(l)?l.call(n):l;Reflect.ownKeys(O).forEach(k=>{wt(k,O[k])})}c&&sh(c,t,"c");function P(O,k){Me(k)?k.forEach($=>O($.bind(n))):k&&O(k.bind(n))}if(P(Rd,d),P(Ve,v),P(c1,h),P(ca,f),P(RE,p),P($E,m),P(zE,I),P(BE,C),P(FE,E),P(st,y),P(vn,w),P(LE,T),Me(N))if(N.length){const O=t.exposed||(t.exposed={});N.forEach(k=>{Object.defineProperty(O,k,{get:()=>n[k],set:$=>n[k]=$})})}else t.exposed||(t.exposed={});_&&t.render===tr&&(t.render=_),R!=null&&(t.inheritAttrs=R),F&&(t.components=F),L&&(t.directives=L)}function GE(t,e,n=tr){Me(t)&&(t=Zc(t));for(const r in t){const a=t[r];let i;vt(a)?"default"in a?i=ot(a.from||r,a.default,!0):i=ot(a.from||r):i=ot(a),dt(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function sh(t,e,n){Vn(Me(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function v1(t,e,n,r){const a=r.includes(".")?i1(n,r):()=>n[r];if(Tt(t)){const i=e[t];He(i)&&pe(a,i)}else if(He(t))pe(a,t.bind(n));else if(vt(t))if(Me(t))t.forEach(i=>v1(i,e,n,r));else{const i=He(t.handler)?t.handler.bind(n):e[t.handler];He(i)&&pe(a,i,t)}}function Ld(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,s=i.get(e);let l;return s?l=s:!a.length&&!n&&!r?l=e:(l={},a.length&&a.forEach(u=>Sl(l,u,o,!0)),Sl(l,e,o)),vt(e)&&i.set(e,l),l}function Sl(t,e,n,r=!1){const{mixins:a,extends:i}=e;i&&Sl(t,i,n,!0),a&&a.forEach(o=>Sl(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=qE[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const qE={data:lh,props:uh,emits:uh,methods:fo,computed:fo,beforeCreate:an,created:an,beforeMount:an,mounted:an,beforeUpdate:an,updated:an,beforeDestroy:an,beforeUnmount:an,destroyed:an,unmounted:an,activated:an,deactivated:an,errorCaptured:an,serverPrefetch:an,components:fo,directives:fo,watch:JE,provide:lh,inject:YE};function lh(t,e){return e?t?function(){return Ot(He(t)?t.call(this,this):t,He(e)?e.call(this,this):e)}:e:t}function YE(t,e){return fo(Zc(t),Zc(e))}function Zc(t){if(Me(t)){const e={};for(let n=0;n1)return n&&He(e)?e.call(r&&r.proxy):e}}function QE(){return!!(Nt||Vt||Lo)}function eO(t,e,n,r=!1){const a={},i={};ml(i,cu,1),t.propsDefaults=Object.create(null),h1(t,e,a,i);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);n?t.props=r?a:lE(a):t.type.props?t.props=a:t.props=i,t.attrs=i}function tO(t,e,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=t,s=De(a),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[v,h]=g1(d,e,!0);Ot(o,v),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return vt(t)&&r.set(t,vi),vi;if(Me(i))for(let c=0;c-1,h[1]=p<0||f-1||et(h,"default"))&&s.push(d)}}}const u=[o,s];return vt(t)&&r.set(t,u),u}function ch(t){return t[0]!=="$"}function fh(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function dh(t,e){return fh(t)===fh(e)}function vh(t,e){return Me(e)?e.findIndex(n=>dh(n,t)):He(e)&&dh(e,t)?0:-1}const m1=t=>t[0]==="_"||t==="$stable",Fd=t=>Me(t)?t.map(dr):[dr(t)],nO=(t,e,n)=>{if(e._n)return e;const r=Mt((...a)=>Fd(e(...a)),n);return r._c=!1,r},y1=(t,e,n)=>{const r=t._ctx;for(const a in t){if(m1(a))continue;const i=t[a];if(He(i))e[a]=nO(a,i,r);else if(i!=null){const o=Fd(i);e[a]=()=>o}}},b1=(t,e)=>{const n=Fd(e);t.slots.default=()=>n},rO=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=De(e),ml(e,"_",n)):y1(e,t.slots={})}else t.slots={},e&&b1(t,e);ml(t.slots,cu,1)},aO=(t,e,n)=>{const{vnode:r,slots:a}=t;let i=!0,o=ht;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:(Ot(a,e),!n&&s===1&&delete a._):(i=!e.$stable,y1(e,a)),o=e}else e&&(b1(t,e),o={default:1});if(i)for(const s in a)!m1(s)&&!(s in o)&&delete a[s]};function ef(t,e,n,r,a=!1){if(Me(t)){t.forEach((v,h)=>ef(v,e&&(Me(e)?e[h]:e),n,r,a));return}if(yo(r)&&!a)return;const i=r.shapeFlag&4?fu(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=t,u=e&&e.r,c=s.refs===ht?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(Tt(u)?(c[u]=null,et(d,u)&&(d[u]=null)):dt(u)&&(u.value=null)),He(l))aa(l,s,12,[o,c]);else{const v=Tt(l),h=dt(l);if(v||h){const f=()=>{if(t.f){const p=v?et(d,l)?d[l]:c[l]:l.value;a?Me(p)&&gd(p,i):Me(p)?p.includes(i)||p.push(i):v?(c[l]=[i],et(d,l)&&(d[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else v?(c[l]=o,et(d,l)&&(d[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(f.id=-1,yn(f,n)):f()}}}const yn=AE;function iO(t){return oO(t)}function oO(t,e){const n=Uc();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:v,setScopeId:h=tr,insertStaticContent:f}=t,p=(B,x,A,W=null,K=null,U=null,se=!1,ie=null,re=!!x.dynamicChildren)=>{if(B===x)return;B&&!xa(B,x)&&(W=ge(B),Z(B,K,U,!0),B=null),x.patchFlag===-2&&(re=!1,x.dynamicChildren=null);const{type:Q,ref:H,shapeFlag:q}=x;switch(Q){case Wa:m(B,x,A,W);break;case In:g(B,x,A,W);break;case nl:B==null&&y(x,A,W,se);break;case Re:F(B,x,A,W,K,U,se,ie,re);break;default:q&1?_(B,x,A,W,K,U,se,ie,re):q&6?L(B,x,A,W,K,U,se,ie,re):(q&64||q&128)&&Q.process(B,x,A,W,K,U,se,ie,re,me)}H!=null&&K&&ef(H,B&&B.ref,U,x||B,!x)},m=(B,x,A,W)=>{if(B==null)r(x.el=s(x.children),A,W);else{const K=x.el=B.el;x.children!==B.children&&u(K,x.children)}},g=(B,x,A,W)=>{B==null?r(x.el=l(x.children||""),A,W):x.el=B.el},y=(B,x,A,W)=>{[B.el,B.anchor]=f(B.children,x,A,W,B.el,B.anchor)},b=({el:B,anchor:x},A,W)=>{let K;for(;B&&B!==x;)K=v(B),r(B,A,W),B=K;r(x,A,W)},w=({el:B,anchor:x})=>{let A;for(;B&&B!==x;)A=v(B),a(B),B=A;a(x)},_=(B,x,A,W,K,U,se,ie,re)=>{se=se||x.type==="svg",B==null?C(x,A,W,K,U,se,ie,re):T(B,x,K,U,se,ie,re)},C=(B,x,A,W,K,U,se,ie)=>{let re,Q;const{type:H,props:q,shapeFlag:ue,transition:ae,dirs:fe}=B;if(re=B.el=o(B.type,U,q&&q.is,q),ue&8?c(re,B.children):ue&16&&I(B.children,re,null,W,K,U&&H!=="foreignObject",se,ie),fe&&pa(B,null,W,"created"),E(re,B,B.scopeId,se,W),q){for(const xe in q)xe!=="value"&&!Qs(xe)&&i(re,xe,null,q[xe],U,B.children,W,K,le);"value"in q&&i(re,"value",null,q.value),(Q=q.onVnodeBeforeMount)&&lr(Q,W,B)}fe&&pa(B,null,W,"beforeMount");const we=(!K||K&&!K.pendingBranch)&&ae&&!ae.persisted;we&&ae.beforeEnter(re),r(re,x,A),((Q=q&&q.onVnodeMounted)||we||fe)&&yn(()=>{Q&&lr(Q,W,B),we&&ae.enter(re),fe&&pa(B,null,W,"mounted")},K)},E=(B,x,A,W,K)=>{if(A&&h(B,A),W)for(let U=0;U{for(let Q=re;Q{const ie=x.el=B.el;let{patchFlag:re,dynamicChildren:Q,dirs:H}=x;re|=B.patchFlag&16;const q=B.props||ht,ue=x.props||ht;let ae;A&&ha(A,!1),(ae=ue.onVnodeBeforeUpdate)&&lr(ae,A,x,B),H&&pa(x,B,A,"beforeUpdate"),A&&ha(A,!0);const fe=K&&x.type!=="foreignObject";if(Q?N(B.dynamicChildren,Q,ie,A,W,fe,U):se||k(B,x,ie,null,A,W,fe,U,!1),re>0){if(re&16)R(ie,x,q,ue,A,W,K);else if(re&2&&q.class!==ue.class&&i(ie,"class",null,ue.class,K),re&4&&i(ie,"style",q.style,ue.style,K),re&8){const we=x.dynamicProps;for(let xe=0;xe{ae&&lr(ae,A,x,B),H&&pa(x,B,A,"updated")},W)},N=(B,x,A,W,K,U,se)=>{for(let ie=0;ie{if(A!==W){if(A!==ht)for(const ie in A)!Qs(ie)&&!(ie in W)&&i(B,ie,A[ie],null,se,x.children,K,U,le);for(const ie in W){if(Qs(ie))continue;const re=W[ie],Q=A[ie];re!==Q&&ie!=="value"&&i(B,ie,Q,re,se,x.children,K,U,le)}"value"in W&&i(B,"value",A.value,W.value)}},F=(B,x,A,W,K,U,se,ie,re)=>{const Q=x.el=B?B.el:s(""),H=x.anchor=B?B.anchor:s("");let{patchFlag:q,dynamicChildren:ue,slotScopeIds:ae}=x;ae&&(ie=ie?ie.concat(ae):ae),B==null?(r(Q,A,W),r(H,A,W),I(x.children,A,H,K,U,se,ie,re)):q>0&&q&64&&ue&&B.dynamicChildren?(N(B.dynamicChildren,ue,A,K,U,se,ie),(x.key!=null||K&&x===K.subTree)&&Bd(B,x,!0)):k(B,x,A,H,K,U,se,ie,re)},L=(B,x,A,W,K,U,se,ie,re)=>{x.slotScopeIds=ie,B==null?x.shapeFlag&512?K.ctx.activate(x,A,W,se,re):j(x,A,W,K,U,se,re):D(B,x,re)},j=(B,x,A,W,K,U,se)=>{const ie=B.component=gO(B,W,K);if(ls(B)&&(ie.ctx.renderer=me),mO(ie),ie.asyncDep){if(K&&K.registerDep(ie,P),!B.el){const re=ie.subTree=S(In);g(null,re,x,A)}return}P(ie,B,x,A,K,U,se)},D=(B,x,A)=>{const W=x.component=B.component;if(EE(B,x,A))if(W.asyncDep&&!W.asyncResolved){O(W,x,A);return}else W.next=x,bE(W.update),W.update();else x.el=B.el,W.vnode=x},P=(B,x,A,W,K,U,se)=>{const ie=()=>{if(B.isMounted){let{next:H,bu:q,u:ue,parent:ae,vnode:fe}=B,we=H,xe;ha(B,!1),H?(H.el=fe.el,O(B,H,se)):H=fe,q&&tl(q),(xe=H.props&&H.props.onVnodeBeforeUpdate)&&lr(xe,ae,H,fe),ha(B,!0);const Pe=Ju(B),oe=B.subTree;B.subTree=Pe,p(oe,Pe,d(oe.el),ge(oe),B,K,U),H.el=Pe.el,we===null&&OE(B,Pe.el),ue&&yn(ue,K),(xe=H.props&&H.props.onVnodeUpdated)&&yn(()=>lr(xe,ae,H,fe),K)}else{let H;const{el:q,props:ue}=x,{bm:ae,m:fe,parent:we}=B,xe=yo(x);if(ha(B,!1),ae&&tl(ae),!xe&&(H=ue&&ue.onVnodeBeforeMount)&&lr(H,we,x),ha(B,!0),q&&Se){const Pe=()=>{B.subTree=Ju(B),Se(q,B.subTree,B,K,null)};xe?x.type.__asyncLoader().then(()=>!B.isUnmounted&&Pe()):Pe()}else{const Pe=B.subTree=Ju(B);p(null,Pe,A,W,B,K,U),x.el=Pe.el}if(fe&&yn(fe,K),!xe&&(H=ue&&ue.onVnodeMounted)){const Pe=x;yn(()=>lr(H,we,Pe),K)}(x.shapeFlag&256||we&&yo(we.vnode)&&we.vnode.shapeFlag&256)&&B.a&&yn(B.a,K),B.isMounted=!0,x=A=W=null}},re=B.effect=new Cd(ie,()=>au(Q),B.scope),Q=B.update=()=>re.run();Q.id=B.uid,ha(B,!0),Q()},O=(B,x,A)=>{x.component=B;const W=B.vnode.props;B.vnode=x,B.next=null,tO(B,x.props,W,A),aO(B,x.children,A),Di(),rh(),Li()},k=(B,x,A,W,K,U,se,ie,re=!1)=>{const Q=B&&B.children,H=B?B.shapeFlag:0,q=x.children,{patchFlag:ue,shapeFlag:ae}=x;if(ue>0){if(ue&128){G(Q,q,A,W,K,U,se,ie,re);return}else if(ue&256){$(Q,q,A,W,K,U,se,ie,re);return}}ae&8?(H&16&&le(Q,K,U),q!==Q&&c(A,q)):H&16?ae&16?G(Q,q,A,W,K,U,se,ie,re):le(Q,K,U,!0):(H&8&&c(A,""),ae&16&&I(q,A,W,K,U,se,ie,re))},$=(B,x,A,W,K,U,se,ie,re)=>{B=B||vi,x=x||vi;const Q=B.length,H=x.length,q=Math.min(Q,H);let ue;for(ue=0;ueH?le(B,K,U,!0,!1,q):I(x,A,W,K,U,se,ie,re,q)},G=(B,x,A,W,K,U,se,ie,re)=>{let Q=0;const H=x.length;let q=B.length-1,ue=H-1;for(;Q<=q&&Q<=ue;){const ae=B[Q],fe=x[Q]=re?Xr(x[Q]):dr(x[Q]);if(xa(ae,fe))p(ae,fe,A,null,K,U,se,ie,re);else break;Q++}for(;Q<=q&&Q<=ue;){const ae=B[q],fe=x[ue]=re?Xr(x[ue]):dr(x[ue]);if(xa(ae,fe))p(ae,fe,A,null,K,U,se,ie,re);else break;q--,ue--}if(Q>q){if(Q<=ue){const ae=ue+1,fe=aeue)for(;Q<=q;)Z(B[Q],K,U,!0),Q++;else{const ae=Q,fe=Q,we=new Map;for(Q=fe;Q<=ue;Q++){const Ye=x[Q]=re?Xr(x[Q]):dr(x[Q]);Ye.key!=null&&we.set(Ye.key,Q)}let xe,Pe=0;const oe=ue-fe+1;let ve=!1,Xe=0;const Ie=new Array(oe);for(Q=0;Q=oe){Z(Ye,K,U,!0);continue}let _t;if(Ye.key!=null)_t=we.get(Ye.key);else for(xe=fe;xe<=ue;xe++)if(Ie[xe-fe]===0&&xa(Ye,x[xe])){_t=xe;break}_t===void 0?Z(Ye,K,U,!0):(Ie[_t-fe]=Q+1,_t>=Xe?Xe=_t:ve=!0,p(Ye,x[_t],A,null,K,U,se,ie,re),Pe++)}const Le=ve?sO(Ie):vi;for(xe=Le.length-1,Q=oe-1;Q>=0;Q--){const Ye=fe+Q,_t=x[Ye],tn=Ye+1{const{el:U,type:se,transition:ie,children:re,shapeFlag:Q}=B;if(Q&6){J(B.component.subTree,x,A,W);return}if(Q&128){B.suspense.move(x,A,W);return}if(Q&64){se.move(B,x,A,me);return}if(se===Re){r(U,x,A);for(let q=0;qie.enter(U),K);else{const{leave:q,delayLeave:ue,afterLeave:ae}=ie,fe=()=>r(U,x,A),we=()=>{q(U,()=>{fe(),ae&&ae()})};ue?ue(U,fe,we):we()}else r(U,x,A)},Z=(B,x,A,W=!1,K=!1)=>{const{type:U,props:se,ref:ie,children:re,dynamicChildren:Q,shapeFlag:H,patchFlag:q,dirs:ue}=B;if(ie!=null&&ef(ie,null,A,B,!0),H&256){x.ctx.deactivate(B);return}const ae=H&1&&ue,fe=!yo(B);let we;if(fe&&(we=se&&se.onVnodeBeforeUnmount)&&lr(we,x,B),H&6)ne(B.component,A,W);else{if(H&128){B.suspense.unmount(A,W);return}ae&&pa(B,null,x,"beforeUnmount"),H&64?B.type.remove(B,x,A,K,me,W):Q&&(U!==Re||q>0&&q&64)?le(Q,x,A,!1,!0):(U===Re&&q&384||!K&&H&16)&&le(re,x,A),W&&X(B)}(fe&&(we=se&&se.onVnodeUnmounted)||ae)&&yn(()=>{we&&lr(we,x,B),ae&&pa(B,null,x,"unmounted")},A)},X=B=>{const{type:x,el:A,anchor:W,transition:K}=B;if(x===Re){Y(A,W);return}if(x===nl){w(B);return}const U=()=>{a(A),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(B.shapeFlag&1&&K&&!K.persisted){const{leave:se,delayLeave:ie}=K,re=()=>se(A,U);ie?ie(B.el,U,re):re()}else U()},Y=(B,x)=>{let A;for(;B!==x;)A=v(B),a(B),B=A;a(x)},ne=(B,x,A)=>{const{bum:W,scope:K,update:U,subTree:se,um:ie}=B;W&&tl(W),K.stop(),U&&(U.active=!1,Z(se,B,x,A)),ie&&yn(ie,x),yn(()=>{B.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&B.asyncDep&&!B.asyncResolved&&B.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},le=(B,x,A,W=!1,K=!1,U=0)=>{for(let se=U;seB.shapeFlag&6?ge(B.component.subTree):B.shapeFlag&128?B.suspense.next():v(B.anchor||B.el),_e=(B,x,A)=>{B==null?x._vnode&&Z(x._vnode,null,null,!0):p(x._vnode||null,B,x,null,null,null,A),rh(),n1(),x._vnode=B},me={p,um:Z,m:J,r:X,mt:j,mc:I,pc:k,pbc:N,n:ge,o:t};let ye,Se;return e&&([ye,Se]=e(me)),{render:_e,hydrate:ye,createApp:ZE(_e,ye)}}function ha({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Bd(t,e,n=!1){const r=t.children,a=e.children;if(Me(r)&&Me(a))for(let i=0;i>1,t[n[s]]0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const lO=t=>t.__isTeleport,wo=t=>t&&(t.disabled||t.disabled===""),ph=t=>typeof SVGElement<"u"&&t instanceof SVGElement,tf=(t,e)=>{const n=t&&t.to;return Tt(n)?e?e(n):null:n},uO={__isTeleport:!0,process(t,e,n,r,a,i,o,s,l,u){const{mc:c,pc:d,pbc:v,o:{insert:h,querySelector:f,createText:p,createComment:m}}=u,g=wo(e.props);let{shapeFlag:y,children:b,dynamicChildren:w}=e;if(t==null){const _=e.el=p(""),C=e.anchor=p("");h(_,n,r),h(C,n,r);const E=e.target=tf(e.props,f),I=e.targetAnchor=p("");E&&(h(I,E),o=o||ph(E));const T=(N,R)=>{y&16&&c(b,N,R,a,i,o,s,l)};g?T(n,C):E&&T(E,I)}else{e.el=t.el;const _=e.anchor=t.anchor,C=e.target=t.target,E=e.targetAnchor=t.targetAnchor,I=wo(t.props),T=I?n:C,N=I?_:E;if(o=o||ph(C),w?(v(t.dynamicChildren,w,T,a,i,o,s),Bd(t,e,!0)):l||d(t,e,T,N,a,i,o,s,!1),g)I||As(e,n,_,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const R=e.target=tf(e.props,f);R&&As(e,R,null,u,0)}else I&&As(e,C,E,u,1)}w1(e)},remove(t,e,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:v}=t;if(d&&i(c),(o||!wo(v))&&(i(u),s&16))for(let h=0;h0?er||vi:null,fO(),Fo>0&&er&&er.push(t),t}function Fe(t,e,n,r,a,i){return _1($e(t,e,n,r,a,i,!0))}function mt(t,e,n,r,a){return _1(S(t,e,n,r,a,!0))}function br(t){return t?t.__v_isVNode===!0:!1}function xa(t,e){return t.type===e.type&&t.key===e.key}const cu="__vInternal",C1=({key:t})=>t??null,rl=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Tt(t)||dt(t)||He(t)?{i:Vt,r:t,k:e,f:!!n}:t:null);function $e(t,e=null,n=null,r=0,a=null,i=t===Re?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&C1(e),ref:e&&rl(e),scopeId:ou,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:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Vt};return s?(zd(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=Tt(n)?8:16),Fo>0&&!o&&er&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&er.push(l),l}const S=dO;function dO(t,e=null,n=null,r=0,a=null,i=!1){if((!t||t===f1)&&(t=In),br(t)){const s=rr(t,e,!0);return n&&zd(s,n),Fo>0&&!i&&er&&(s.shapeFlag&6?er[er.indexOf(t)]=s:er.push(s)),s.patchFlag|=-2,s}if(_O(t)&&(t=t.__vccOpts),e){e=vO(e);let{class:s,style:l}=e;s&&!Tt(s)&&(e.class=qt(s)),vt(l)&&(Y0(l)&&!Me(l)&&(l=Ot({},l)),e.style=Pn(l))}const o=Tt(t)?1:PE(t)?128:lO(t)?64:vt(t)?4:He(t)?2:0;return $e(t,e,n,r,a,o,i,!0)}function vO(t){return t?Y0(t)||cu in t?Ot({},t):t:null}function rr(t,e,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=t,s=e?jd(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&C1(s),ref:e&&e.ref?n&&a?Me(a)?a.concat(rl(e)):[a,rl(e)]:rl(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&rr(t.ssContent),ssFallback:t.ssFallback&&rr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function _n(t=" ",e=0){return S(Wa,null,t,e)}function $t(t="",e=!1){return e?(Oe(),mt(In,null,t)):S(In,null,t)}function dr(t){return t==null||typeof t=="boolean"?S(In):Me(t)?S(Re,null,t.slice()):typeof t=="object"?Xr(t):S(Wa,null,String(t))}function Xr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:rr(t)}function zd(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Me(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),zd(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!(cu in e)?e._ctx=Vt:a===3&&Vt&&(Vt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else He(e)?(e={default:e,_ctx:Vt},n=32):(e=String(e),r&64?(n=16,e=[_n(e)]):n=8);t.children=e,t.shapeFlag|=n}function jd(...t){const e={};for(let n=0;nNt||Vt;let Wd,Xa,gh="__VUE_INSTANCE_SETTERS__";(Xa=Uc()[gh])||(Xa=Uc()[gh]=[]),Xa.push(t=>Nt=t),Wd=t=>{Xa.length>1?Xa.forEach(e=>e(t)):Xa[0](t)};const Ci=t=>{Wd(t),t.scope.on()},Ra=()=>{Nt&&Nt.scope.off(),Wd(null)};function S1(t){return t.vnode.shapeFlag&4}let Si=!1;function mO(t,e=!1){Si=e;const{props:n,children:r}=t.vnode,a=S1(t);eO(t,n,a,e),rO(t,r);const i=a?yO(t,e):void 0;return Si=!1,i}function yO(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=ru(new Proxy(t.ctx,VE));const{setup:r}=n;if(r){const a=t.setupContext=r.length>1?T1(t):null;Ci(t),Di();const i=aa(r,t,0,[t.props,a]);if(Li(),Ra(),N0(i)){if(i.then(Ra,Ra),e)return i.then(o=>{mh(t,o,e)}).catch(o=>{ss(o,t,0)});t.asyncDep=i}else mh(t,i,e)}else x1(t,e)}function mh(t,e,n){He(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:vt(e)&&(t.setupState=X0(e)),x1(t,n)}let yh;function x1(t,e,n){const r=t.type;if(!t.render){if(!e&&yh&&!r.render){const a=r.template||Ld(t).template;if(a){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Ot(Ot({isCustomElement:i,delimiters:s},o),l);r.render=yh(a,u)}}t.render=r.render||tr}Ci(t),Di(),KE(t),Li(),Ra()}function bO(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Cn(t,"get","$attrs"),e[n]}}))}function T1(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return bO(t)},slots:t.slots,emit:t.emit,expose:e}}function fu(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(X0(ru(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in bo)return bo[n](t)},has(e,n){return n in e||n in bo}}))}function wO(t,e=!0){return He(t)?t.displayName||t.name:t.name||e&&t.__name}function _O(t){return He(t)&&"__vccOpts"in t}const V=(t,e)=>gE(t,e,Si);function sa(t,e,n){const r=arguments.length;return r===2?vt(e)&&!Me(e)?br(e)?S(t,null,[e]):S(t,e):S(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&br(n)&&(n=[n]),S(t,e,n))}const CO=Symbol.for("v-scx"),SO=()=>ot(CO),xO="3.3.4",TO="http://www.w3.org/2000/svg",Ta=typeof document<"u"?document:null,bh=Ta&&Ta.createElement("template"),EO={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const a=e?Ta.createElementNS(TO,t):Ta.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>Ta.createTextNode(t),createComment:t=>Ta.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ta.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,a,i){const o=n?n.previousSibling:e.lastChild;if(a&&(a===i||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{bh.innerHTML=r?`${t}`:t;const s=bh.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function OO(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function PO(t,e,n){const r=t.style,a=Tt(n);if(n&&!a){if(e&&!Tt(e))for(const i in e)n[i]==null&&nf(r,i,"");for(const i in n)nf(r,i,n[i])}else{const i=r.display;a?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=i)}}const wh=/\s*!important$/;function nf(t,e,n){if(Me(n))n.forEach(r=>nf(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=AO(t,e);wh.test(n)?t.setProperty(ja(r),n.replace(wh,""),"important"):t[r]=n}}const _h=["Webkit","Moz","ms"],ec={};function AO(t,e){const n=ec[e];if(n)return n;let r=nr(e);if(r!=="filter"&&r in t)return ec[e]=r;r=eu(r);for(let a=0;a<_h.length;a++){const i=_h[a]+r;if(i in t)return ec[e]=i}return e}const Ch="http://www.w3.org/1999/xlink";function IO(t,e,n,r,a){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Ch,e.slice(6,e.length)):t.setAttributeNS(Ch,e,n);else{const i=NT(e);n==null||i&&!D0(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function kO(t,e,n,r,a,i,o){if(e==="innerHTML"||e==="textContent"){r&&o(r,a,i),t[e]=n??"";return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){t._value=n;const u=s==="OPTION"?t.getAttribute("value"):t.value,c=n??"";u!==c&&(t.value=c),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const u=typeof t[e];u==="boolean"?n=D0(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function ii(t,e,n,r){t.addEventListener(e,n,r)}function MO(t,e,n,r){t.removeEventListener(e,n,r)}function NO(t,e,n,r,a=null){const i=t._vei||(t._vei={}),o=i[e];if(r&&o)o.value=r;else{const[s,l]=RO(e);if(r){const u=i[e]=LO(r,a);ii(t,s,u,l)}else o&&(MO(t,s,o,l),i[e]=void 0)}}const Sh=/(?:Once|Passive|Capture)$/;function RO(t){let e;if(Sh.test(t)){e={};let r;for(;r=t.match(Sh);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):ja(t.slice(2)),e]}let tc=0;const $O=Promise.resolve(),DO=()=>tc||($O.then(()=>tc=0),tc=Date.now());function LO(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Vn(FO(r,n.value),e,5,[r])};return n.value=t,n.attached=DO(),n}function FO(t,e){if(Me(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>a=>!a._stopped&&r&&r(a))}else return e}const xh=/^on[a-z]/,BO=(t,e,n,r,a=!1,i,o,s,l)=>{e==="class"?OO(t,r,a):e==="style"?PO(t,n,r):Xl(e)?hd(e)||NO(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):zO(t,e,r,a))?kO(t,e,r,i,o,s,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),IO(t,e,r,a))};function zO(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&xh.test(e)&&He(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||xh.test(e)&&Tt(n)?!1:e in t}function RG(t){const e=Pt();if(!e)return;const n=e.ut=(a=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>af(i,a))},r=()=>{const a=t(e.proxy);rf(e.subTree,a),n(a)};IE(r),Ve(()=>{const a=new MutationObserver(r);a.observe(e.subTree.el.parentNode,{childList:!0}),vn(()=>a.disconnect())})}function rf(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{rf(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)af(t.el,e);else if(t.type===Re)t.children.forEach(n=>rf(n,e));else if(t.type===nl){let{el:n,anchor:r}=t;for(;n&&(af(n,e),n!==r);)n=n.nextSibling}}function af(t,e){if(t.nodeType===1){const n=t.style;for(const r in e)n.setProperty(`--${r}`,e[r])}}const Ur="transition",Yi="animation",Yn=(t,{slots:e})=>sa(NE,O1(t),e);Yn.displayName="Transition";const E1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jO=Yn.props=Ot({},s1,E1),ga=(t,e=[])=>{Me(t)?t.forEach(n=>n(...e)):t&&t(...e)},Th=t=>t?Me(t)?t.some(e=>e.length>1):t.length>1:!1;function O1(t){const e={};for(const F in t)F in E1||(e[F]=t[F]);if(t.css===!1)return e;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,f=WO(a),p=f&&f[0],m=f&&f[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:_,onBeforeAppear:C=g,onAppear:E=y,onAppearCancelled:I=b}=e,T=(F,L,j)=>{Yr(F,L?c:s),Yr(F,L?u:o),j&&j()},N=(F,L)=>{F._isLeaving=!1,Yr(F,d),Yr(F,h),Yr(F,v),L&&L()},R=F=>(L,j)=>{const D=F?E:y,P=()=>T(L,F,j);ga(D,[L,P]),Eh(()=>{Yr(L,F?l:i),kr(L,F?c:s),Th(D)||Oh(L,r,p,P)})};return Ot(e,{onBeforeEnter(F){ga(g,[F]),kr(F,i),kr(F,o)},onBeforeAppear(F){ga(C,[F]),kr(F,l),kr(F,u)},onEnter:R(!1),onAppear:R(!0),onLeave(F,L){F._isLeaving=!0;const j=()=>N(F,L);kr(F,d),A1(),kr(F,v),Eh(()=>{F._isLeaving&&(Yr(F,d),kr(F,h),Th(w)||Oh(F,r,m,j))}),ga(w,[F,j])},onEnterCancelled(F){T(F,!1),ga(b,[F])},onAppearCancelled(F){T(F,!0),ga(I,[F])},onLeaveCancelled(F){N(F),ga(_,[F])}})}function WO(t){if(t==null)return null;if(vt(t))return[nc(t.enter),nc(t.leave)];{const e=nc(t);return[e,e]}}function nc(t){return OT(t)}function kr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Yr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Eh(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let HO=0;function Oh(t,e,n,r){const a=t._endId=++HO,i=()=>{a===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=P1(t,e);if(!o)return r();const u=o+"end";let c=0;const d=()=>{t.removeEventListener(u,v),i()},v=h=>{h.target===t&&++c>=l&&d()};setTimeout(()=>{c(n[f]||"").split(", "),a=r(`${Ur}Delay`),i=r(`${Ur}Duration`),o=Ph(a,i),s=r(`${Yi}Delay`),l=r(`${Yi}Duration`),u=Ph(s,l);let c=null,d=0,v=0;e===Ur?o>0&&(c=Ur,d=o,v=i.length):e===Yi?u>0&&(c=Yi,d=u,v=l.length):(d=Math.max(o,u),c=d>0?o>u?Ur:Yi:null,v=c?c===Ur?i.length:l.length:0);const h=c===Ur&&/\b(transform|all)(,|$)/.test(r(`${Ur}Property`).toString());return{type:c,timeout:d,propCount:v,hasTransform:h}}function Ph(t,e){for(;t.lengthAh(n)+Ah(t[r])))}function Ah(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function A1(){return document.body.offsetHeight}const I1=new WeakMap,k1=new WeakMap,M1={name:"TransitionGroup",props:Ot({},jO,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Pt(),r=o1();let a,i;return ca(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!YO(a[0].el,n.vnode.el,o))return;a.forEach(KO),a.forEach(GO);const s=a.filter(qO);A1(),s.forEach(l=>{const u=l.el,c=u.style;kr(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,Yr(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=De(t),s=O1(o);let l=o.tag||Re;a=i,i=e.default?Nd(e.default()):[];for(let u=0;udelete t.mode;M1.props;const UO=M1;function KO(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function GO(t){k1.set(t,t.el.getBoundingClientRect())}function qO(t){const e=I1.get(t),n=k1.get(t),r=e.left-n.left,a=e.top-n.top;if(r||a){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",t}}function YO(t,e,n){const r=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(r);const{hasTransform:i}=P1(r);return a.removeChild(r),i}const Ih=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Me(e)?n=>tl(e,n):e};function JO(t){t.target.composing=!0}function kh(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const $G={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t._assign=Ih(a);const i=r||a.props&&a.props.type==="number";ii(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;n&&(s=s.trim()),i&&(s=Vc(s)),t._assign(s)}),n&&ii(t,"change",()=>{t.value=t.value.trim()}),e||(ii(t,"compositionstart",JO),ii(t,"compositionend",kh),ii(t,"change",kh))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:a}},i){if(t._assign=Ih(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(a||t.type==="number")&&Vc(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},XO=["ctrl","shift","alt","meta"],ZO={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>XO.some(n=>t[`${n}Key`]&&!e.includes(n))},An=(t,e)=>(n,...r)=>{for(let a=0;an=>{if(!("key"in n))return;const r=ja(n.key);if(e.some(a=>a===r||QO[a]===r))return t(n)},$r={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Ji(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Ji(t,!0),r.enter(t)):r.leave(t,()=>{Ji(t,!1)}):Ji(t,e))},beforeUnmount(t,{value:e}){Ji(t,e)}};function Ji(t,e){t.style.display=e?t._vod:"none"}const eP=Ot({patchProp:BO},EO);let Mh;function N1(){return Mh||(Mh=iO(eP))}const xl=(...t)=>{N1().render(...t)},tP=(...t)=>{const e=N1().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=nP(r);if(!a)return;const i=e._component;!He(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e};function nP(t){return Tt(t)?document.querySelector(t):t}const rP="modulepreload",aP=function(t){return"/infinite_image_browsing/fe-static/"+t},Nh={},mn=function(e,n,r){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=aP(i),i in Nh)return;Nh[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const d=a[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":rP,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};function Qe(t){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(t)}function iP(t,e){if(Qe(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qe(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function R1(t){var e=iP(t,"string");return Qe(e)==="symbol"?e:String(e)}function te(t,e,n){return e=R1(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function M(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof t=="function"?t(e):t??n}function Ce(){for(var t=[],e=0;e0},t.prototype.connect_=function(){!of||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),CP?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!of||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,a=_P.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),L1=function(t,e){for(var n=0,r=Object.keys(e);n"u"||!(Element instanceof Object))){if(!(e instanceof xi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new kP(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof xi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new MP(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),B1=typeof WeakMap<"u"?new WeakMap:new D1,z1=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=SP.getInstance(),r=new NP(e,n,this);B1.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){z1.prototype[t]=function(){var e;return(e=B1.get(this))[t].apply(e,arguments)}});var j1=function(){return typeof Tl.ResizeObserver<"u"?Tl.ResizeObserver:z1}();function W1(t){if(Array.isArray(t))return t}function RP(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function sf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r={},a=/;(?![^(]*\))/g,i=/:(.+)/;return Qe(e)==="object"?e:(e.split(a).forEach(function(o){if(o){var s=o.split(i);if(s.length>1){var l=n?Hd(s[0].trim()):s[0].trim();r[l]=s[1].trim()}}}),r)},oi=function(e,n){return e[n]!==void 0},kn=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(e)?e:[e],a=[];return r.forEach(function(i){Array.isArray(i)?a.push.apply(a,nt(t(i,n))):i&&i.type===Re?a.push.apply(a,nt(t(i.children,n))):i&&br(i)?n&&!X1(i)?a.push(i):n||a.push(i):lf(i)&&a.push(i)}),a},iA=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(br(e))return e.type===Re?n==="default"?kn(e.children):[]:e.children&&e.children[n]?kn(e.children[n](r)):[];var a=e.$slots[n]&&e.$slots[n](r);return kn(a)},Ia=function(e){for(var n,r=(e==null||(n=e.vnode)===null||n===void 0?void 0:n.el)||e&&(e.$el||e);r&&!r.tagName;)r=r.nextSibling;return r},oA=function(e){var n={};if(e.$&&e.$.vnode){var r=e.$.vnode.props||{};Object.keys(e.$props).forEach(function(s){var l=e.$props[s],u=pP(s);(l!==void 0||u in r)&&(n[s]=l)})}else if(br(e)&&Qe(e.type)==="object"){var a=e.props||{},i={};Object.keys(a).forEach(function(s){i[Hd(s)]=a[s]});var o=e.type.props||{};Object.keys(o).forEach(function(s){var l=gP(o,i,s,i[s]);(l!==void 0||s in i)&&(n[s]=l)})}return n},J1=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=void 0;if(e.$){var o=e[n];if(o!==void 0)return typeof o=="function"&&a?o(r):o;i=e.$slots[n],i=a&&i?i(r):i}else if(br(e)){var s=e.props&&e.props[n];if(s!==void 0&&e.props!==null)return typeof s=="function"&&a?s(r):s;e.type===Re?i=e.children:e.children&&e.children[n]&&(i=e.children[n],i=a&&i?i(r):i)}return Array.isArray(i)&&(i=kn(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function Fh(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return t.$?n=M(M({},n),t.$attrs):n=M(M({},n),t.props),Y1(n)[e?"onEvents":"events"]}function sA(t,e){var n=(br(t)?t.props:t.$attrs)||{},r=n.style||{};if(typeof r=="string")r=aA(r,e);else if(e&&r){var a={};return Object.keys(r).forEach(function(i){return a[Hd(i)]=r[i]}),a}return r}function X1(t){return t&&(t.type===In||t.type===Re&&t.children.length===0||t.type===Wa&&t.children.trim()==="")}function Fi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,nt(n)):(n==null?void 0:n.type)===Re?e.push.apply(e,nt(Fi(n.children))):e.push(n)}),e.filter(function(n){return!X1(n)})}function ar(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&Qe(t.type)!=="symbol"}function Wn(t,e){var n,r,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(n=e[a])!==null&&n!==void 0?n:(r=t[a])===null||r===void 0?void 0:r.call(t)}const Ti=he({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(e,n){var r=n.slots,a=ct({width:0,height:0,offsetHeight:0,offsetWidth:0}),i=null,o=null,s=function(){o&&(o.disconnect(),o=null)},l=function(v){var h=e.onResize,f=v[0].target,p=f.getBoundingClientRect(),m=p.width,g=p.height,y=f.offsetWidth,b=f.offsetHeight,w=Math.floor(m),_=Math.floor(g);if(a.width!==w||a.height!==_||a.offsetWidth!==y||a.offsetHeight!==b){var C={width:w,height:_,offsetWidth:y,offsetHeight:b};Ut(a,C),h&&Promise.resolve().then(function(){h(M(M({},C),{},{offsetWidth:y,offsetHeight:b}),f)})}},u=Pt(),c=function(){var v=e.disabled;if(v){s();return}var h=Ia(u),f=h!==i;f&&(s(),i=h),!o&&h&&(o=new j1(l),o.observe(h))};return Ve(function(){c()}),ca(function(){c()}),vn(function(){s()}),pe(function(){return e.disabled},function(){c()},{flush:"post"}),function(){var d;return(d=r.default)===null||d===void 0?void 0:d.call(r)[0]}}});var Z1=function(e){return setTimeout(e,16)},Q1=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(Z1=function(e){return window.requestAnimationFrame(e)},Q1=function(e){return window.cancelAnimationFrame(e)});var Bh=0,Kd=new Map;function ew(t){Kd.delete(t)}function Ue(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Bh+=1;var n=Bh;function r(a){if(a===0)ew(n),t();else{var i=Z1(function(){r(a-1)});Kd.set(n,i)}}return r(e),n}Ue.cancel=function(t){var e=Kd.get(t);return ew(e),Q1(e)};var Ha=function(){for(var e=arguments.length,n=new Array(e),r=0;r=0)&&(n[a]=t[a]);return n}function bt(t,e){if(t==null)return{};var n=lA(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const nw={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};var uA={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const cA=uA;var fA={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const rw=fA;var dA={lang:M({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},cA),timePickerLocale:M({},rw)};const jh=dA;var Tn="${label} is not a valid ${type}",vA={locale:"en",Pagination:nw,DatePicker:jh,TimePicker:rw,Calendar:jh,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Tn,method:Tn,array:Tn,object:Tn,number:Tn,date:Tn,boolean:Tn,integer:Tn,float:Tn,regexp:Tn,email:Tn,url:Tn,hex:Tn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const Bo=vA,aw=he({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup:function(e,n){var r=n.slots,a=ot("localeData",{}),i=V(function(){var s=e.componentName,l=s===void 0?"global":s,u=e.defaultLocale,c=u||Bo[l||"global"],d=a.antLocale,v=l&&d?d[l]:{};return M(M({},typeof c=="function"?c():c),v||{})}),o=V(function(){var s=a.antLocale,l=s&&s.locale;return s&&s.exist&&!l?Bo.locale:l});return function(){var s=e.children||r.default,l=a.antLocale;return s==null?void 0:s(i.value,o.value,l)}}});function Gd(t,e,n){var r=ot("localeData",{}),a=V(function(){var i=r.antLocale,o=be(e)||Bo[t||"global"],s=t&&i?i[t]:{};return M(M(M({},typeof o=="function"?o():o),s||{}),be(n)||{})});return[a]}var iw=function(){var e=lt("empty",{}),n=e.getPrefixCls,r=n("empty-img-default");return S("svg",{class:r,width:"184",height:"152",viewBox:"0 0 184 152"},[S("g",{fill:"none","fill-rule":"evenodd"},[S("g",{transform:"translate(24 31.67)"},[S("ellipse",{class:"".concat(r,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),S("path",{class:"".concat(r,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"},null),S("path",{class:"".concat(r,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"},null),S("path",{class:"".concat(r,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"},null),S("path",{class:"".concat(r,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"},null)]),S("path",{class:"".concat(r,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"},null),S("g",{class:"".concat(r,"-g"),transform:"translate(149.65 15.383)"},[S("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),S("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])};iw.PRESENTED_IMAGE_DEFAULT=!0;const pA=iw;var ow=function(){var e=lt("empty",{}),n=e.getPrefixCls,r=n("empty-img-simple");return S("svg",{class:r,width:"64",height:"41",viewBox:"0 0 64 41"},[S("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[S("ellipse",{class:"".concat(r,"-ellipse"),fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"},null),S("g",{class:"".concat(r,"-g"),"fill-rule":"nonzero",stroke:"#D9D9D9"},[S("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),S("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA",class:"".concat(r,"-path")},null)])])])};ow.PRESENTED_IMAGE_SIMPLE=!0;const hA=ow;function Wh(t,e){for(var n=0;n=0||(a[n]=t[n]);return a}function Hh(t){return((e=t)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(t)==="[object Object]";var e}var cw=Object.prototype,fw=cw.toString,gA=cw.hasOwnProperty,dw=/^\s*function (\w+)/;function Vh(t){var e,n=(e=t==null?void 0:t.type)!==null&&e!==void 0?e:t;if(n){var r=n.toString().match(dw);return r?r[1]:""}return""}var $a=function(t){var e,n;return Hh(t)!==!1&&typeof(e=t.constructor)=="function"&&Hh(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},mA=function(t){return t},cn=mA,zo=function(t,e){return gA.call(t,e)},yA=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},Ei=Array.isArray||function(t){return fw.call(t)==="[object Array]"},Oi=function(t){return fw.call(t)==="[object Function]"},Ol=function(t){return $a(t)&&zo(t,"_vueTypes_name")},vw=function(t){return $a(t)&&(zo(t,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return zo(t,e)}))};function qd(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function Va(t,e,n){var r;n===void 0&&(n=!1);var a=!0,i="";r=$a(t)?t:{type:t};var o=Ol(r)?r._vueTypes_name+" - ":"";if(vw(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return a;Ei(r.type)?(a=r.type.some(function(d){return Va(d,e,!0)===!0}),i=r.type.map(function(d){return Vh(d)}).join(" or ")):a=(i=Vh(r))==="Array"?Ei(e):i==="Object"?$a(e):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(d){if(d==null)return"";var v=d.constructor.toString().match(dw);return v?v[1]:""}(e)===i:e instanceof r.type}if(!a){var s=o+'value "'+e+'" should be of type "'+i+'"';return n===!1?(cn(s),!1):s}if(zo(r,"validator")&&Oi(r.validator)){var l=cn,u=[];if(cn=function(d){u.push(d)},a=r.validator(e),cn=l,!a){var c=(u.length>1?"* ":"")+u.join(` +* `);return u.length=0,n===!1?(cn(c),a):c}}return a}function Mn(t,e){var n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(a){return a!==void 0||this.default?Oi(a)||Va(this,a,!0)===!0?(this.default=Ei(a)?function(){return[].concat(a)}:$a(a)?function(){return Object.assign({},a)}:a,this):(cn(this._vueTypes_name+' - invalid default value: "'+a+'"'),this):this}}}),r=n.validator;return Oi(r)&&(n.validator=qd(r,n)),n}function _r(t,e){var n=Mn(t,e);return Object.defineProperty(n,"validate",{value:function(r){return Oi(this.validator)&&cn(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: +`+JSON.stringify(this)),this.validator=qd(r,this),this}})}function Uh(t,e,n){var r,a,i=(r=e,a={},Object.getOwnPropertyNames(r).forEach(function(d){a[d]=Object.getOwnPropertyDescriptor(r,d)}),Object.defineProperties({},a));if(i._vueTypes_name=t,!$a(n))return i;var o,s,l=n.validator,u=uw(n,["validator"]);if(Oi(l)){var c=i.validator;c&&(c=(s=(o=c).__original)!==null&&s!==void 0?s:o),i.validator=qd(c?function(d){return c.call(this,d)&&l.call(this,d)}:l,i)}return Object.assign(i,u)}function vu(t){return t.replace(/^(?!\s*$)/gm," ")}var bA=function(){return _r("any",{})},wA=function(){return _r("function",{type:Function})},_A=function(){return _r("boolean",{type:Boolean})},CA=function(){return _r("string",{type:String})},SA=function(){return _r("number",{type:Number})},xA=function(){return _r("array",{type:Array})},TA=function(){return _r("object",{type:Object})},EA=function(){return Mn("integer",{type:Number,validator:function(t){return yA(t)}})},OA=function(){return Mn("symbol",{validator:function(t){return typeof t=="symbol"}})};function PA(t,e){if(e===void 0&&(e="custom validation failed"),typeof t!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Mn(t.name||"<>",{validator:function(n){var r=t(n);return r||cn(this._vueTypes_name+" - "+e),r}})}function AA(t){if(!Ei(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+t.join('", "')+'".',n=t.reduce(function(r,a){if(a!=null){var i=a.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return Mn("oneOf",{type:n.length>0?n:void 0,validator:function(r){var a=t.indexOf(r)!==-1;return a||cn(e),a}})}function IA(t){if(!Ei(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,n=[],r=0;r0&&n.some(function(l){return o.indexOf(l)===-1})){var s=n.filter(function(l){return o.indexOf(l)===-1});return cn(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return o.every(function(l){if(e.indexOf(l)===-1)return i._vueTypes_isLoose===!0||(cn('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=Va(t[l],a[l],!0);return typeof u=="string"&&cn('shape - "'+l+`" property validation error: - `+vu(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var cr=function(){function t(){}return t.extend=function(e){var n=this;if(Ei(e))return e.forEach(function(d){return n.extend(d)}),this;var r=e.name,a=e.validate,i=a!==void 0&&a,o=e.getter,s=o!==void 0&&o,l=uw(e,["name","validate","getter"]);if(zo(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return Ol(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return Uh(r,c,l)}}:{value:function(){var d,v=Uh(r,c,l);return v.validator&&(v.validator=(d=v.validator).bind.apply(d,[v].concat([].slice.call(arguments)))),v}})):(u=s?{get:function(){var d=Object.assign({},l);return i?_r(r,d):kn(r,d)},enumerable:!0}:{value:function(){var d,v,h=Object.assign({},l);return d=i?_r(r,h):kn(r,h),h.validator&&(d.validator=(v=h.validator).bind.apply(v,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,r,u))},sw(t,null,[{key:"any",get:function(){return bA()}},{key:"func",get:function(){return wA().def(this.defaults.func)}},{key:"bool",get:function(){return _A().def(this.defaults.bool)}},{key:"string",get:function(){return CA().def(this.defaults.string)}},{key:"number",get:function(){return SA().def(this.defaults.number)}},{key:"array",get:function(){return xA().def(this.defaults.array)}},{key:"object",get:function(){return TA().def(this.defaults.object)}},{key:"integer",get:function(){return EA().def(this.defaults.integer)}},{key:"symbol",get:function(){return OA()}}]),t}();function pw(t){var e;return t===void 0&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(n){function r(){return n.apply(this,arguments)||this}return lw(r,n),sw(r,null,[{key:"sensibleDefaults",get:function(){return al({},this.defaults)},set:function(a){this.defaults=a!==!1?al({},a!==!0?a:t):{}}}]),r}(cr)).defaults=al({},t),e}cr.defaults={},cr.custom=PA,cr.oneOf=AA,cr.instanceOf=kA,cr.oneOfType=IA,cr.arrayOf=MA,cr.objectOf=NA,cr.shape=RA,cr.utils={validate:function(t,e){return Va(e,t,!0)===!0},toType:function(t,e,n){return n===void 0&&(n=!1),n?_r(t,e):kn(t,e)}};(function(t){function e(){return t.apply(this,arguments)||this}return lw(e,t),e})(pw());var hw=pw({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});hw.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function FG(t){return t.default=void 0,t}const ee=hw;var $A=["image","description","imageStyle","class"],gw=S(pA,null,null),mw=S(hA,null,null),zi=function(e,n){var r,a=n.slots,i=a===void 0?{}:a,o=n.attrs,s=lt("empty",e),l=s.direction,u=s.prefixCls,c=u.value,d=k(k({},e),o),v=d.image,h=v===void 0?gw:v,f=d.description,p=f===void 0?((r=i.description)===null||r===void 0?void 0:r.call(i))||void 0:f,m=d.imageStyle,g=d.class,y=g===void 0?"":g,b=bt(d,$A);return S(aw,{componentName:"Empty",children:function(_){var C,E=typeof p<"u"?p:_.description,I=typeof E=="string"?E:"empty",T=null;return typeof h=="string"?T=S("img",{alt:I,src:h},null):T=h,S("div",k({class:Ce(c,y,(C={},te(C,"".concat(c,"-normal"),h===mw),te(C,"".concat(c,"-rtl"),l.value==="rtl"),C))},b),[S("div",{class:"".concat(c,"-image"),style:m},[T]),E&&S("p",{class:"".concat(c,"-description")},[E]),i.default&&S("div",{class:"".concat(c,"-footer")},[Fi(i.default())])])}},null)};zi.displayName="AEmpty";zi.PRESENTED_IMAGE_DEFAULT=gw;zi.PRESENTED_IMAGE_SIMPLE=mw;zi.inheritAttrs=!1;zi.props={prefixCls:String,image:ee.any,description:ee.any,imageStyle:{type:Object,default:void 0}};const Qi=Bi(zi);var DA=function(e){var n=lt("empty",e),r=n.prefixCls,a=function(o){switch(o){case"Table":case"List":return S(Qi,{image:Qi.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return S(Qi,{image:Qi.PRESENTED_IMAGE_SIMPLE,class:"".concat(r.value,"-small")},null);default:return S(Qi,null,null)}};return a(e.componentName)};function yw(t){return S(DA,{componentName:t},null)}var Kh={};function LA(t,e){}function FA(t,e,n){!e&&!Kh[n]&&(t(!1,n),Kh[n]=!0)}function bw(t,e){FA(LA,t,e)}const pu=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";bw(t,"[antdv: ".concat(e,"] ").concat(n))};var uf="internalMark",il=he({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup:function(e,n){var r=n.slots;pu(e.ANT_MARK__===uf,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");var a=ct({antLocale:k(k({},e.locale),{},{exist:!0}),ANT_MARK__:uf});return wt("localeData",a),pe(function(){return e.locale},function(){a.antLocale=k(k({},e.locale),{},{exist:!0})},{immediate:!0}),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});il.install=function(t){return t.component(il.name,il),t};const BA=Bi(il);Ha("bottomLeft","bottomRight","topLeft","topRight");var cs=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=k(e?{name:e,appear:!0,enterFromClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterToClass:"".concat(e,"-enter ").concat(e,"-enter-active"),leaveFromClass:" ".concat(e,"-leave"),leaveActiveClass:"".concat(e,"-leave ").concat(e,"-leave-active"),leaveToClass:"".concat(e,"-leave ").concat(e,"-leave-active")}:{css:!1},n);return r},zA=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=k(e?{name:e,appear:!0,appearActiveClass:"".concat(e),appearToClass:"".concat(e,"-appear ").concat(e,"-appear-active"),enterFromClass:"".concat(e,"-appear ").concat(e,"-enter ").concat(e,"-appear-prepare ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e),enterToClass:"".concat(e,"-enter ").concat(e,"-appear ").concat(e,"-appear-active ").concat(e,"-enter-active"),leaveActiveClass:"".concat(e," ").concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-active")}:{css:!1},n);return r},Da=function(e,n,r){return r!==void 0?r:"".concat(e,"-").concat(n)};const jA=he({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup:function(e,n){var r=n.attrs,a=n.slots,i,o=!1,s=V(function(){return e.duration===void 0?4.5:e.duration}),l=function(){s.value&&!o&&(i=setTimeout(function(){c()},s.value*1e3))},u=function(){i&&(clearTimeout(i),i=null)},c=function(h){h&&h.stopPropagation(),u();var f=e.onClose,p=e.noticeKey;f&&f(p)},d=function(){u(),l()};return Ve(function(){l()}),vn(function(){o=!0,u()}),pe([s,function(){return e.updateMark},function(){return e.visible}],function(v,h){var f=Me(v,3),p=f[0],m=f[1],g=f[2],y=Me(h,3),b=y[0],w=y[1],_=y[2];(p!==b||m!==w||g!==_&&_)&&d()},{flush:"post"}),function(){var v,h,f=e.prefixCls,p=e.closable,m=e.closeIcon,g=m===void 0?(v=a.closeIcon)===null||v===void 0?void 0:v.call(a):m,y=e.onClick,b=e.holder,w=r.class,_=r.style,C="".concat(f,"-notice"),E=Object.keys(r).reduce(function(T,N){return(N.substr(0,5)==="data-"||N.substr(0,5)==="aria-"||N==="role")&&(T[N]=r[N]),T},{}),I=S("div",k({class:Ce(C,w,te({},"".concat(C,"-closable"),p)),style:_,onMouseenter:u,onMouseleave:l,onClick:y},E),[S("div",{class:"".concat(C,"-content")},[(h=a.default)===null||h===void 0?void 0:h.call(a)]),p?S("a",{tabindex:0,onClick:c,class:"".concat(C,"-close")},[g||S("span",{class:"".concat(C,"-close-x")},null)]):null]);return b?S(uu,{to:b},{default:function(){return I}}):I}}});var WA=["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName"],Gh=0,HA=Date.now();function qh(){var t=Gh;return Gh+=1,"rcNotification_".concat(HA,"_").concat(t)}var cf=he({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon"],setup:function(e,n){var r=n.attrs,a=n.expose,i=n.slots,o=new Map,s=z([]),l=V(function(){var d=e.prefixCls,v=e.animation,h=v===void 0?"fade":v,f=e.transitionName;return!f&&h&&(f="".concat(d,"-").concat(h)),zA(f)}),u=function(v,h){var f=v.key||qh(),p=k(k({},v),{},{key:f}),m=e.maxCount,g=s.value.map(function(b){return b.notice.key}).indexOf(f),y=s.value.concat();g!==-1?y.splice(g,1,{notice:p,holderCallback:h}):(m&&s.value.length>=m&&(p.key=y[0].notice.key,p.updateMark=qh(),p.userPassKey=f,y.shift()),y.push({notice:p,holderCallback:h})),s.value=y},c=function(v){s.value=s.value.filter(function(h){var f=h.notice,p=f.key,m=f.userPassKey,g=m||p;return g!==v})};return a({add:u,remove:c,notices:s}),function(){var d,v,h=e.prefixCls,f=e.closeIcon,p=f===void 0?(d=i.closeIcon)===null||d===void 0?void 0:d.call(i,{prefixCls:h}):f,m=s.value.map(function(y,b){var w=y.notice,_=y.holderCallback,C=b===s.value.length-1?w.updateMark:void 0,E=w.key,I=w.userPassKey,T=w.content,N=k(k(k({prefixCls:h,closeIcon:typeof p=="function"?p({prefixCls:h}):p},w),w.props),{},{key:E,noticeKey:I||E,updateMark:C,onClose:function(F){var L;c(F),(L=w.onClose)===null||L===void 0||L.call(w)},onClick:w.onClick});return _?S("div",{key:E,class:"".concat(h,"-hook-holder"),ref:function(F){typeof E>"u"||(F?(o.set(E,F),_(F,N)):o.delete(E))}},null):S(jA,N,{default:function(){return[typeof T=="function"?T({prefixCls:h}):T]}})}),g=(v={},te(v,h,1),te(v,r.class,!!r.class),v);return S("div",{class:g,style:r.style||{top:"65px",left:"50%"}},[S(UO,k({tag:"div"},l.value),{default:function(){return[m]}})])}}});cf.newInstance=function(e,n){var r=e||{},a=r.name,i=a===void 0?"notification":a,o=r.getContainer,s=r.appContext,l=r.prefixCls,u=r.rootPrefixCls,c=r.transitionName,d=r.hasTransitionName,v=bt(r,WA),h=document.createElement("div");if(o){var f=o();f.appendChild(h)}else document.body.appendChild(h);var p=he({compatConfig:{MODE:3},name:"NotificationWrapper",setup:function(y,b){var w=b.attrs,_=z();return Ve(function(){n({notice:function(E){var I;(I=_.value)===null||I===void 0||I.add(E)},removeNotice:function(E){var I;(I=_.value)===null||I===void 0||I.remove(E)},destroy:function(){xl(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:_})}),function(){var C=bn,E=C.getPrefixCls(i,l),I=C.getRootPrefixCls(u,E),T=d?c:"".concat(I,"-").concat(c);return S(mi,k(k({},C),{},{notUpdateGlobalConfig:!0,prefixCls:I}),{default:function(){return[S(cf,k(k({ref:_},w),{},{prefixCls:E,transitionName:T}),null)]}})}}}),m=S(p,v);m.appContext=s||m.appContext,xl(m,h)};const ww=cf;var VA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const UA=VA;function Yt(t,e){KA(t)&&(t="100%");var n=GA(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Is(t){return Math.min(1,Math.max(0,t))}function KA(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function GA(t){return typeof t=="string"&&t.indexOf("%")!==-1}function _w(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ms(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Ma(t){return t.length===1?"0"+t:String(t)}function qA(t,e,n){return{r:Yt(t,255)*255,g:Yt(e,255)*255,b:Yt(n,255)*255}}function Yh(t,e,n){t=Yt(t,255),e=Yt(e,255),n=Yt(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case t:i=(e-n)/l+(e1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function YA(t,e,n){var r,a,i;if(t=Yt(t,360),e=Yt(e,100),n=Yt(n,100),e===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+e):n+e-n*e,s=2*n-o;r=rc(s,o,t+1/3),a=rc(s,o,t),i=rc(s,o,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function ff(t,e,n){t=Yt(t,255),e=Yt(e,255),n=Yt(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case t:i=(e-n)/s+(e>16,g:(t&65280)>>8,b:t&255}}var vf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function si(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=nI(t)),typeof t=="object"&&(Er(t.r)&&Er(t.g)&&Er(t.b)?(e=qA(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Er(t.h)&&Er(t.s)&&Er(t.v)?(r=Ms(t.s),a=Ms(t.v),e=JA(t.h,r,a),o=!0,s="hsv"):Er(t.h)&&Er(t.s)&&Er(t.l)&&(r=Ms(t.s),i=Ms(t.l),e=YA(t.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=_w(n),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var eI="[-\\+]?\\d+%?",tI="[-\\+]?\\d*\\.\\d+%?",ea="(?:".concat(tI,")|(?:").concat(eI,")"),ac="[\\s|\\(]+(".concat(ea,")[,|\\s]+(").concat(ea,")[,|\\s]+(").concat(ea,")\\s*\\)?"),ic="[\\s|\\(]+(".concat(ea,")[,|\\s]+(").concat(ea,")[,|\\s]+(").concat(ea,")[,|\\s]+(").concat(ea,")\\s*\\)?"),Xn={CSS_UNIT:new RegExp(ea),rgb:new RegExp("rgb"+ac),rgba:new RegExp("rgba"+ic),hsl:new RegExp("hsl"+ac),hsla:new RegExp("hsla"+ic),hsv:new RegExp("hsv"+ac),hsva:new RegExp("hsva"+ic),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function nI(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(vf[t])t=vf[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Xn.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Xn.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Xn.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Xn.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Xn.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Xn.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Xn.hex8.exec(t),n?{r:En(n[1]),g:En(n[2]),b:En(n[3]),a:Jh(n[4]),format:e?"name":"hex8"}:(n=Xn.hex6.exec(t),n?{r:En(n[1]),g:En(n[2]),b:En(n[3]),format:e?"name":"hex"}:(n=Xn.hex4.exec(t),n?{r:En(n[1]+n[1]),g:En(n[2]+n[2]),b:En(n[3]+n[3]),a:Jh(n[4]+n[4]),format:e?"name":"hex8"}:(n=Xn.hex3.exec(t),n?{r:En(n[1]+n[1]),g:En(n[2]+n[2]),b:En(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Er(t){return!!Xn.CSS_UNIT.exec(String(t))}var oc=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=QA(e)),this.originalInput=e;var a=si(e);this.originalInput=e,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,a,i=e.r/255,o=e.g/255,s=e.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=_w(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=ff(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=ff(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Yh(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Yh(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),df(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),XA(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Yt(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Yt(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+df(this.r,this.g,this.b,!1),n=0,r=Object.entries(vf);n=0,i=!n&&a&&(e.startsWith("hex")||e==="name");return i?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Is(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Is(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Is(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Is(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),a=new t(e).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*e>>1)+720)%360;--e;)r.h=(r.h+a)%360,i.push(new t(r));return i},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/e;e--;)o.push(new t({h:r,s:a,v:i})),i=(i+s)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),a=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,a=[this],i=360/e,o=1;o=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-ks*e:Math.round(t.h)+ks*e:r=n?Math.round(t.h)+ks*e:Math.round(t.h)-ks*e,r<0?r+=360:r>=360&&(r-=360),r}function eg(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-Xh*e:e===Sw?r=t.s+Xh:r=t.s+rI*e,r>1&&(r=1),n&&e===Cw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function tg(t,e,n){var r;return n?r=t.v+aI*e:r=t.v-iI*e,r>1&&(r=1),Number(r.toFixed(2))}function jo(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=si(t),a=Cw;a>0;a-=1){var i=Zh(r),o=Ns(si({h:Qh(i,a,!0),s:eg(i,a,!0),v:tg(i,a,!0)}));n.push(o)}n.push(Ns(r));for(var s=1;s<=Sw;s+=1){var l=Zh(r),u=Ns(si({h:Qh(l,s),s:eg(l,s),v:tg(l,s)}));n.push(u)}return e.theme==="dark"?oI.map(function(c){var d=c.index,v=c.opacity,h=Ns(sI(si(e.backgroundColor||"#141414"),si(n[d]),v*100));return h}):n}var sc={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},lc={},uc={};Object.keys(sc).forEach(function(t){lc[t]=jo(sc[t]),lc[t].primary=lc[t][5],uc[t]=jo(sc[t],{theme:"dark",backgroundColor:"#141414"}),uc[t].primary=uc[t][5]});var ng=[],eo=[],lI="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function uI(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function cI(t,e){if(e=e||{},t===void 0)throw new Error(lI);var n=e.prepend===!0?"prepend":"append",r=e.container!==void 0?e.container:document.querySelector("head"),a=ng.indexOf(r);a===-1&&(a=ng.push(r)-1,eo[a]={});var i;return eo[a]!==void 0&&eo[a][n]!==void 0?i=eo[a][n]:(i=eo[a][n]=uI(),n==="prepend"?r.insertBefore(i,r.childNodes[0]):r.appendChild(i)),t.charCodeAt(0)===65279&&(t=t.substr(1,t.length)),i.styleSheet?i.styleSheet.cssText+=t:i.textContent+=t,i}function rg(t){for(var e=1;e0&&n.some(function(l){return o.indexOf(l)===-1})){var s=n.filter(function(l){return o.indexOf(l)===-1});return cn(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return o.every(function(l){if(e.indexOf(l)===-1)return i._vueTypes_isLoose===!0||(cn('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=Va(t[l],a[l],!0);return typeof u=="string"&&cn('shape - "'+l+`" property validation error: + `+vu(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var cr=function(){function t(){}return t.extend=function(e){var n=this;if(Ei(e))return e.forEach(function(d){return n.extend(d)}),this;var r=e.name,a=e.validate,i=a!==void 0&&a,o=e.getter,s=o!==void 0&&o,l=uw(e,["name","validate","getter"]);if(zo(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return Ol(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return Uh(r,c,l)}}:{value:function(){var d,v=Uh(r,c,l);return v.validator&&(v.validator=(d=v.validator).bind.apply(d,[v].concat([].slice.call(arguments)))),v}})):(u=s?{get:function(){var d=Object.assign({},l);return i?_r(r,d):Mn(r,d)},enumerable:!0}:{value:function(){var d,v,h=Object.assign({},l);return d=i?_r(r,h):Mn(r,h),h.validator&&(d.validator=(v=h.validator).bind.apply(v,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,r,u))},sw(t,null,[{key:"any",get:function(){return bA()}},{key:"func",get:function(){return wA().def(this.defaults.func)}},{key:"bool",get:function(){return _A().def(this.defaults.bool)}},{key:"string",get:function(){return CA().def(this.defaults.string)}},{key:"number",get:function(){return SA().def(this.defaults.number)}},{key:"array",get:function(){return xA().def(this.defaults.array)}},{key:"object",get:function(){return TA().def(this.defaults.object)}},{key:"integer",get:function(){return EA().def(this.defaults.integer)}},{key:"symbol",get:function(){return OA()}}]),t}();function pw(t){var e;return t===void 0&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(n){function r(){return n.apply(this,arguments)||this}return lw(r,n),sw(r,null,[{key:"sensibleDefaults",get:function(){return al({},this.defaults)},set:function(a){this.defaults=a!==!1?al({},a!==!0?a:t):{}}}]),r}(cr)).defaults=al({},t),e}cr.defaults={},cr.custom=PA,cr.oneOf=AA,cr.instanceOf=MA,cr.oneOfType=IA,cr.arrayOf=kA,cr.objectOf=NA,cr.shape=RA,cr.utils={validate:function(t,e){return Va(e,t,!0)===!0},toType:function(t,e,n){return n===void 0&&(n=!1),n?_r(t,e):Mn(t,e)}};(function(t){function e(){return t.apply(this,arguments)||this}return lw(e,t),e})(pw());var hw=pw({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});hw.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function FG(t){return t.default=void 0,t}const ee=hw;var $A=["image","description","imageStyle","class"],gw=S(pA,null,null),mw=S(hA,null,null),zi=function(e,n){var r,a=n.slots,i=a===void 0?{}:a,o=n.attrs,s=lt("empty",e),l=s.direction,u=s.prefixCls,c=u.value,d=M(M({},e),o),v=d.image,h=v===void 0?gw:v,f=d.description,p=f===void 0?((r=i.description)===null||r===void 0?void 0:r.call(i))||void 0:f,m=d.imageStyle,g=d.class,y=g===void 0?"":g,b=bt(d,$A);return S(aw,{componentName:"Empty",children:function(_){var C,E=typeof p<"u"?p:_.description,I=typeof E=="string"?E:"empty",T=null;return typeof h=="string"?T=S("img",{alt:I,src:h},null):T=h,S("div",M({class:Ce(c,y,(C={},te(C,"".concat(c,"-normal"),h===mw),te(C,"".concat(c,"-rtl"),l.value==="rtl"),C))},b),[S("div",{class:"".concat(c,"-image"),style:m},[T]),E&&S("p",{class:"".concat(c,"-description")},[E]),i.default&&S("div",{class:"".concat(c,"-footer")},[Fi(i.default())])])}},null)};zi.displayName="AEmpty";zi.PRESENTED_IMAGE_DEFAULT=gw;zi.PRESENTED_IMAGE_SIMPLE=mw;zi.inheritAttrs=!1;zi.props={prefixCls:String,image:ee.any,description:ee.any,imageStyle:{type:Object,default:void 0}};const Qi=Bi(zi);var DA=function(e){var n=lt("empty",e),r=n.prefixCls,a=function(o){switch(o){case"Table":case"List":return S(Qi,{image:Qi.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return S(Qi,{image:Qi.PRESENTED_IMAGE_SIMPLE,class:"".concat(r.value,"-small")},null);default:return S(Qi,null,null)}};return a(e.componentName)};function yw(t){return S(DA,{componentName:t},null)}var Kh={};function LA(t,e){}function FA(t,e,n){!e&&!Kh[n]&&(t(!1,n),Kh[n]=!0)}function bw(t,e){FA(LA,t,e)}const pu=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";bw(t,"[antdv: ".concat(e,"] ").concat(n))};var uf="internalMark",il=he({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup:function(e,n){var r=n.slots;pu(e.ANT_MARK__===uf,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");var a=ct({antLocale:M(M({},e.locale),{},{exist:!0}),ANT_MARK__:uf});return wt("localeData",a),pe(function(){return e.locale},function(){a.antLocale=M(M({},e.locale),{},{exist:!0})},{immediate:!0}),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});il.install=function(t){return t.component(il.name,il),t};const BA=Bi(il);Ha("bottomLeft","bottomRight","topLeft","topRight");var cs=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=M(e?{name:e,appear:!0,enterFromClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterToClass:"".concat(e,"-enter ").concat(e,"-enter-active"),leaveFromClass:" ".concat(e,"-leave"),leaveActiveClass:"".concat(e,"-leave ").concat(e,"-leave-active"),leaveToClass:"".concat(e,"-leave ").concat(e,"-leave-active")}:{css:!1},n);return r},zA=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=M(e?{name:e,appear:!0,appearActiveClass:"".concat(e),appearToClass:"".concat(e,"-appear ").concat(e,"-appear-active"),enterFromClass:"".concat(e,"-appear ").concat(e,"-enter ").concat(e,"-appear-prepare ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e),enterToClass:"".concat(e,"-enter ").concat(e,"-appear ").concat(e,"-appear-active ").concat(e,"-enter-active"),leaveActiveClass:"".concat(e," ").concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-active")}:{css:!1},n);return r},Da=function(e,n,r){return r!==void 0?r:"".concat(e,"-").concat(n)};const jA=he({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup:function(e,n){var r=n.attrs,a=n.slots,i,o=!1,s=V(function(){return e.duration===void 0?4.5:e.duration}),l=function(){s.value&&!o&&(i=setTimeout(function(){c()},s.value*1e3))},u=function(){i&&(clearTimeout(i),i=null)},c=function(h){h&&h.stopPropagation(),u();var f=e.onClose,p=e.noticeKey;f&&f(p)},d=function(){u(),l()};return Ve(function(){l()}),vn(function(){o=!0,u()}),pe([s,function(){return e.updateMark},function(){return e.visible}],function(v,h){var f=ke(v,3),p=f[0],m=f[1],g=f[2],y=ke(h,3),b=y[0],w=y[1],_=y[2];(p!==b||m!==w||g!==_&&_)&&d()},{flush:"post"}),function(){var v,h,f=e.prefixCls,p=e.closable,m=e.closeIcon,g=m===void 0?(v=a.closeIcon)===null||v===void 0?void 0:v.call(a):m,y=e.onClick,b=e.holder,w=r.class,_=r.style,C="".concat(f,"-notice"),E=Object.keys(r).reduce(function(T,N){return(N.substr(0,5)==="data-"||N.substr(0,5)==="aria-"||N==="role")&&(T[N]=r[N]),T},{}),I=S("div",M({class:Ce(C,w,te({},"".concat(C,"-closable"),p)),style:_,onMouseenter:u,onMouseleave:l,onClick:y},E),[S("div",{class:"".concat(C,"-content")},[(h=a.default)===null||h===void 0?void 0:h.call(a)]),p?S("a",{tabindex:0,onClick:c,class:"".concat(C,"-close")},[g||S("span",{class:"".concat(C,"-close-x")},null)]):null]);return b?S(uu,{to:b},{default:function(){return I}}):I}}});var WA=["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName"],Gh=0,HA=Date.now();function qh(){var t=Gh;return Gh+=1,"rcNotification_".concat(HA,"_").concat(t)}var cf=he({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon"],setup:function(e,n){var r=n.attrs,a=n.expose,i=n.slots,o=new Map,s=z([]),l=V(function(){var d=e.prefixCls,v=e.animation,h=v===void 0?"fade":v,f=e.transitionName;return!f&&h&&(f="".concat(d,"-").concat(h)),zA(f)}),u=function(v,h){var f=v.key||qh(),p=M(M({},v),{},{key:f}),m=e.maxCount,g=s.value.map(function(b){return b.notice.key}).indexOf(f),y=s.value.concat();g!==-1?y.splice(g,1,{notice:p,holderCallback:h}):(m&&s.value.length>=m&&(p.key=y[0].notice.key,p.updateMark=qh(),p.userPassKey=f,y.shift()),y.push({notice:p,holderCallback:h})),s.value=y},c=function(v){s.value=s.value.filter(function(h){var f=h.notice,p=f.key,m=f.userPassKey,g=m||p;return g!==v})};return a({add:u,remove:c,notices:s}),function(){var d,v,h=e.prefixCls,f=e.closeIcon,p=f===void 0?(d=i.closeIcon)===null||d===void 0?void 0:d.call(i,{prefixCls:h}):f,m=s.value.map(function(y,b){var w=y.notice,_=y.holderCallback,C=b===s.value.length-1?w.updateMark:void 0,E=w.key,I=w.userPassKey,T=w.content,N=M(M(M({prefixCls:h,closeIcon:typeof p=="function"?p({prefixCls:h}):p},w),w.props),{},{key:E,noticeKey:I||E,updateMark:C,onClose:function(F){var L;c(F),(L=w.onClose)===null||L===void 0||L.call(w)},onClick:w.onClick});return _?S("div",{key:E,class:"".concat(h,"-hook-holder"),ref:function(F){typeof E>"u"||(F?(o.set(E,F),_(F,N)):o.delete(E))}},null):S(jA,N,{default:function(){return[typeof T=="function"?T({prefixCls:h}):T]}})}),g=(v={},te(v,h,1),te(v,r.class,!!r.class),v);return S("div",{class:g,style:r.style||{top:"65px",left:"50%"}},[S(UO,M({tag:"div"},l.value),{default:function(){return[m]}})])}}});cf.newInstance=function(e,n){var r=e||{},a=r.name,i=a===void 0?"notification":a,o=r.getContainer,s=r.appContext,l=r.prefixCls,u=r.rootPrefixCls,c=r.transitionName,d=r.hasTransitionName,v=bt(r,WA),h=document.createElement("div");if(o){var f=o();f.appendChild(h)}else document.body.appendChild(h);var p=he({compatConfig:{MODE:3},name:"NotificationWrapper",setup:function(y,b){var w=b.attrs,_=z();return Ve(function(){n({notice:function(E){var I;(I=_.value)===null||I===void 0||I.add(E)},removeNotice:function(E){var I;(I=_.value)===null||I===void 0||I.remove(E)},destroy:function(){xl(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:_})}),function(){var C=bn,E=C.getPrefixCls(i,l),I=C.getRootPrefixCls(u,E),T=d?c:"".concat(I,"-").concat(c);return S(mi,M(M({},C),{},{notUpdateGlobalConfig:!0,prefixCls:I}),{default:function(){return[S(cf,M(M({ref:_},w),{},{prefixCls:E,transitionName:T}),null)]}})}}}),m=S(p,v);m.appContext=s||m.appContext,xl(m,h)};const ww=cf;var VA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const UA=VA;function Yt(t,e){KA(t)&&(t="100%");var n=GA(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Is(t){return Math.min(1,Math.max(0,t))}function KA(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function GA(t){return typeof t=="string"&&t.indexOf("%")!==-1}function _w(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ks(t){return t<=1?"".concat(Number(t)*100,"%"):t}function ka(t){return t.length===1?"0"+t:String(t)}function qA(t,e,n){return{r:Yt(t,255)*255,g:Yt(e,255)*255,b:Yt(n,255)*255}}function Yh(t,e,n){t=Yt(t,255),e=Yt(e,255),n=Yt(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case t:i=(e-n)/l+(e1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function YA(t,e,n){var r,a,i;if(t=Yt(t,360),e=Yt(e,100),n=Yt(n,100),e===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+e):n+e-n*e,s=2*n-o;r=rc(s,o,t+1/3),a=rc(s,o,t),i=rc(s,o,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function ff(t,e,n){t=Yt(t,255),e=Yt(e,255),n=Yt(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case t:i=(e-n)/s+(e>16,g:(t&65280)>>8,b:t&255}}var vf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function si(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=nI(t)),typeof t=="object"&&(Er(t.r)&&Er(t.g)&&Er(t.b)?(e=qA(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Er(t.h)&&Er(t.s)&&Er(t.v)?(r=ks(t.s),a=ks(t.v),e=JA(t.h,r,a),o=!0,s="hsv"):Er(t.h)&&Er(t.s)&&Er(t.l)&&(r=ks(t.s),i=ks(t.l),e=YA(t.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=_w(n),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var eI="[-\\+]?\\d+%?",tI="[-\\+]?\\d*\\.\\d+%?",ea="(?:".concat(tI,")|(?:").concat(eI,")"),ac="[\\s|\\(]+(".concat(ea,")[,|\\s]+(").concat(ea,")[,|\\s]+(").concat(ea,")\\s*\\)?"),ic="[\\s|\\(]+(".concat(ea,")[,|\\s]+(").concat(ea,")[,|\\s]+(").concat(ea,")[,|\\s]+(").concat(ea,")\\s*\\)?"),Xn={CSS_UNIT:new RegExp(ea),rgb:new RegExp("rgb"+ac),rgba:new RegExp("rgba"+ic),hsl:new RegExp("hsl"+ac),hsla:new RegExp("hsla"+ic),hsv:new RegExp("hsv"+ac),hsva:new RegExp("hsva"+ic),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function nI(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(vf[t])t=vf[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Xn.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Xn.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Xn.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Xn.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Xn.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Xn.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Xn.hex8.exec(t),n?{r:En(n[1]),g:En(n[2]),b:En(n[3]),a:Jh(n[4]),format:e?"name":"hex8"}:(n=Xn.hex6.exec(t),n?{r:En(n[1]),g:En(n[2]),b:En(n[3]),format:e?"name":"hex"}:(n=Xn.hex4.exec(t),n?{r:En(n[1]+n[1]),g:En(n[2]+n[2]),b:En(n[3]+n[3]),a:Jh(n[4]+n[4]),format:e?"name":"hex8"}:(n=Xn.hex3.exec(t),n?{r:En(n[1]+n[1]),g:En(n[2]+n[2]),b:En(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Er(t){return!!Xn.CSS_UNIT.exec(String(t))}var oc=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=QA(e)),this.originalInput=e;var a=si(e);this.originalInput=e,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,a,i=e.r/255,o=e.g/255,s=e.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=_w(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=ff(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=ff(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Yh(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Yh(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),df(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),XA(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Yt(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Yt(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+df(this.r,this.g,this.b,!1),n=0,r=Object.entries(vf);n=0,i=!n&&a&&(e.startsWith("hex")||e==="name");return i?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Is(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Is(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Is(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Is(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),a=new t(e).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*e>>1)+720)%360;--e;)r.h=(r.h+a)%360,i.push(new t(r));return i},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/e;e--;)o.push(new t({h:r,s:a,v:i})),i=(i+s)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),a=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,a=[this],i=360/e,o=1;o=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-Ms*e:Math.round(t.h)+Ms*e:r=n?Math.round(t.h)+Ms*e:Math.round(t.h)-Ms*e,r<0?r+=360:r>=360&&(r-=360),r}function eg(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-Xh*e:e===Sw?r=t.s+Xh:r=t.s+rI*e,r>1&&(r=1),n&&e===Cw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function tg(t,e,n){var r;return n?r=t.v+aI*e:r=t.v-iI*e,r>1&&(r=1),Number(r.toFixed(2))}function jo(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=si(t),a=Cw;a>0;a-=1){var i=Zh(r),o=Ns(si({h:Qh(i,a,!0),s:eg(i,a,!0),v:tg(i,a,!0)}));n.push(o)}n.push(Ns(r));for(var s=1;s<=Sw;s+=1){var l=Zh(r),u=Ns(si({h:Qh(l,s),s:eg(l,s),v:tg(l,s)}));n.push(u)}return e.theme==="dark"?oI.map(function(c){var d=c.index,v=c.opacity,h=Ns(sI(si(e.backgroundColor||"#141414"),si(n[d]),v*100));return h}):n}var sc={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},lc={},uc={};Object.keys(sc).forEach(function(t){lc[t]=jo(sc[t]),lc[t].primary=lc[t][5],uc[t]=jo(sc[t],{theme:"dark",backgroundColor:"#141414"}),uc[t].primary=uc[t][5]});var ng=[],eo=[],lI="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function uI(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function cI(t,e){if(e=e||{},t===void 0)throw new Error(lI);var n=e.prepend===!0?"prepend":"append",r=e.container!==void 0?e.container:document.querySelector("head"),a=ng.indexOf(r);a===-1&&(a=ng.push(r)-1,eo[a]={});var i;return eo[a]!==void 0&&eo[a][n]!==void 0?i=eo[a][n]:(i=eo[a][n]=uI(),n==="prepend"?r.insertBefore(i,r.childNodes[0]):r.appendChild(i)),t.charCodeAt(0)===65279&&(t=t.substr(1,t.length)),i.styleSheet?i.styleSheet.cssText+=t:i.textContent+=t,i}function rg(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:dI;Ke(function(){ig||(typeof window<"u"&&window.document&&window.document.documentElement&&cI(e,{prepend:!0}),ig=!0)})},pI=["icon","primaryColor","secondaryColor"];function hI(t,e){if(t==null)return{};var n=gI(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gI(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i=0)&&(n[a]=t[a]);return n}function ol(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function NI(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i=0)&&(n[a]=t[a]);return n}Ew("#1890ff");var Wi=function(e,n){var r,a=lg({},e,n.attrs),i=a.class,o=a.icon,s=a.spin,l=a.rotate,u=a.tabindex,c=a.twoToneColor,d=a.onClick,v=kI(a,EI),h=(r={anticon:!0},hf(r,"anticon-".concat(o.name),!!o.name),hf(r,i,i),r),f=s===""||s||o.name==="loading"?"anticon-spin":"",p=u;p===void 0&&d&&(p=-1,v.tabindex=p);var m=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,g=Tw(c),y=OI(g,2),b=y[0],w=y[1];return S("span",lg({role:"img","aria-label":o.name},v,{onClick:d,class:h}),[S(Yd,{class:f,icon:o,primaryColor:b,secondaryColor:w,style:m},null)])};Wi.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};Wi.displayName="AntdIcon";Wi.inheritAttrs=!1;Wi.getTwoToneColor=TI;Wi.setTwoToneColor=Ew;const qe=Wi;function ug(t){for(var e=1;e=0;--$){var G=this.tryEntries[$],J=G.completion;if(G.tryLoc==="root")return M("end");if(G.tryLoc<=this.prev){var Z=i.call(G,"catchLoc"),X=i.call(G,"finallyLoc");if(Z&&X){if(this.prev=0;--M){var $=this.tryEntries[M];if($.tryLoc<=this.prev&&i.call($,"finallyLoc")&&this.prev<$.finallyLoc){var G=$;break}}G&&(P==="break"||P==="continue")&&G.tryLoc<=O&&O<=G.finallyLoc&&(G=null);var J=G?G.completion:{};return J.type=P,J.arg=O,G?(this.method="next",this.next=G.finallyLoc,f):this.complete(J)},complete:function(P,O){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&O&&(this.next=O),f},finish:function(P){for(var O=this.tryEntries.length-1;O>=0;--O){var M=this.tryEntries[O];if(M.finallyLoc===P)return this.complete(M.completion,M.afterLoc),R(M),f}},catch:function(P){for(var O=this.tryEntries.length-1;O>=0;--O){var M=this.tryEntries[O];if(M.tryLoc===P){var $=M.completion;if($.type==="throw"){var G=$.arg;R(M)}return G}}throw new Error("illegal catch attempt")},delegateYield:function(P,O,M){return this.delegate={iterator:L(P),resultName:O,nextLoc:M},this.method==="next"&&(this.arg=void 0),f}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(Fw);var iM=Fw.exports,sl=iM(),oM=sl;try{regeneratorRuntime=sl}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=sl:Function("r","regeneratorRuntime = r")(sl)}const hg=tv(oM);var sM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const lM=sM;function gg(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:jw,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ww,r;switch(t){case"topLeft":r={left:"0px",top:e,bottom:"auto"};break;case"topRight":r={right:"0px",top:e,bottom:"auto"};break;case"bottomLeft":r={left:"0px",top:"auto",bottom:n};break;default:r={right:"0px",top:"auto",bottom:n};break}return r}function xM(t,e){var n=t.prefixCls,r=t.placement,a=r===void 0?Hw:r,i=t.getContainer,o=i===void 0?Vw:i,s=t.top,l=t.bottom,u=t.closeIcon,c=u===void 0?Uw:u,d=t.appContext,v=FM(),h=v.getPrefixCls,f=h("notification",n||gf),p="".concat(f,"-").concat(a,"-").concat(mf),m=Ea[p];if(m){Promise.resolve(m).then(function(y){e(y)});return}var g=Ce("".concat(f,"-").concat(a),te({},"".concat(f,"-rtl"),mf===!0));ww.newInstance({name:"notification",prefixCls:n||gf,class:g,style:SM(a,s,l),appContext:d,getContainer:o,closeIcon:function(b){var w=b.prefixCls,_=S("span",{class:"".concat(w,"-close-x")},[vo(c,{},S(zr,{class:"".concat(w,"-close-icon")},null))]);return _},maxCount:Kw,hasTransitionName:!0},function(y){Ea[p]=y,e(y)})}var TM={success:rv,info:iv,error:Wo,warning:gu};function EM(t){var e=t.icon,n=t.type,r=t.description,a=t.message,i=t.btn,o=t.duration===void 0?zw:t.duration;xM(t,function(s){s.notice({content:function(u){var c=u.prefixCls,d="".concat(c,"-notice"),v=null;if(e)v=function(){return S("span",{class:"".concat(d,"-icon")},[vo(e)])};else if(n){var h=TM[n];v=function(){return S(h,{class:"".concat(d,"-icon ").concat(d,"-icon-").concat(n)},null)}}return S("div",{class:v?"".concat(d,"-with-icon"):""},[v&&v(),S("div",{class:"".concat(d,"-message")},[!r&&v?S("span",{class:"".concat(d,"-message-single-line-auto-margin")},null):null,vo(a)]),S("div",{class:"".concat(d,"-description")},[vo(r)]),i?S("span",{class:"".concat(d,"-btn")},[vo(i)]):null])},duration:o,closable:!0,onClose:t.onClose,onClick:t.onClick,key:t.key,style:t.style||{},class:t.class})})}var Ho={open:EM,close:function(e){Object.keys(Ea).forEach(function(n){return Promise.resolve(Ea[n]).then(function(r){r.removeNotice(e)})})},config:CM,destroy:function(){Object.keys(Ea).forEach(function(e){Promise.resolve(Ea[e]).then(function(n){n.destroy()}),delete Ea[e]})}},OM=["success","info","warning","error"];OM.forEach(function(t){Ho[t]=function(e){return Ho.open(k(k({},e),{},{type:t}))}});Ho.warn=Ho.warning;const PM=Ho;function fs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var AM="vc-util-key";function Gw(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):AM}function uv(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function _g(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!fs())return null;var r=document.createElement("style");if((e=n.csp)!==null&&e!==void 0&&e.nonce){var a;r.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce}r.innerHTML=t;var i=uv(n),o=i.firstChild;return n.prepend&&i.prepend?i.prepend(r):n.prepend&&o?i.insertBefore(r,o):i.appendChild(r),r}var yf=new Map;function IM(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=uv(e);return Array.from(yf.get(n).children).find(function(r){return r.tagName==="STYLE"&&r.getAttribute(Gw(e))===t})}function MM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=uv(n);if(!yf.has(r)){var a=_g("",n),i=a.parentNode;yf.set(r,i),i.removeChild(a)}var o=IM(e,n);if(o){var s,l;if((s=n.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=n.csp)===null||l===void 0?void 0:l.nonce)){var u;o.nonce=(u=n.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var c=_g(t,n);return c.setAttribute(Gw(n),e),c}const Un=function(t,e,n){bw(t,"[ant-design-vue: ".concat(e,"] ").concat(n))};var kM="-ant-".concat(Date.now(),"-").concat(Math.random());function NM(t,e){var n={},r=function(c,d){var v=c.clone();return v=(d==null?void 0:d(v))||v,v.toRgbString()},a=function(c,d){var v=new oc(c),h=jo(v.toRgbString());n["".concat(d,"-color")]=r(v),n["".concat(d,"-color-disabled")]=h[1],n["".concat(d,"-color-hover")]=h[4],n["".concat(d,"-color-active")]=h[6],n["".concat(d,"-color-outline")]=v.clone().setAlpha(.2).toRgbString(),n["".concat(d,"-color-deprecated-bg")]=h[1],n["".concat(d,"-color-deprecated-border")]=h[3]};if(e.primaryColor){a(e.primaryColor,"primary");var i=new oc(e.primaryColor),o=jo(i.toRgbString());o.forEach(function(u,c){n["primary-".concat(c+1)]=u}),n["primary-color-deprecated-l-35"]=r(i,function(u){return u.lighten(35)}),n["primary-color-deprecated-l-20"]=r(i,function(u){return u.lighten(20)}),n["primary-color-deprecated-t-20"]=r(i,function(u){return u.tint(20)}),n["primary-color-deprecated-t-50"]=r(i,function(u){return u.tint(50)}),n["primary-color-deprecated-f-12"]=r(i,function(u){return u.setAlpha(u.getAlpha()*.12)});var s=new oc(o[0]);n["primary-color-active-deprecated-f-30"]=r(s,function(u){return u.setAlpha(u.getAlpha()*.3)}),n["primary-color-active-deprecated-d-02"]=r(s,function(u){return u.darken(2)})}e.successColor&&a(e.successColor,"success"),e.warningColor&&a(e.warningColor,"warning"),e.errorColor&&a(e.errorColor,"error"),e.infoColor&&a(e.infoColor,"info");var l=Object.keys(n).map(function(u){return"--".concat(t,"-").concat(u,": ").concat(n[u],";")});fs()?MM(` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CI(t,e){if(t){if(typeof t=="string")return og(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return og(t,e)}}function og(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function NI(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i=0)&&(n[a]=t[a]);return n}Ew("#1890ff");var Wi=function(e,n){var r,a=lg({},e,n.attrs),i=a.class,o=a.icon,s=a.spin,l=a.rotate,u=a.tabindex,c=a.twoToneColor,d=a.onClick,v=MI(a,EI),h=(r={anticon:!0},hf(r,"anticon-".concat(o.name),!!o.name),hf(r,i,i),r),f=s===""||s||o.name==="loading"?"anticon-spin":"",p=u;p===void 0&&d&&(p=-1,v.tabindex=p);var m=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,g=Tw(c),y=OI(g,2),b=y[0],w=y[1];return S("span",lg({role:"img","aria-label":o.name},v,{onClick:d,class:h}),[S(Yd,{class:f,icon:o,primaryColor:b,secondaryColor:w,style:m},null)])};Wi.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};Wi.displayName="AntdIcon";Wi.inheritAttrs=!1;Wi.getTwoToneColor=TI;Wi.setTwoToneColor=Ew;const qe=Wi;function ug(t){for(var e=1;e=0;--$){var G=this.tryEntries[$],J=G.completion;if(G.tryLoc==="root")return k("end");if(G.tryLoc<=this.prev){var Z=i.call(G,"catchLoc"),X=i.call(G,"finallyLoc");if(Z&&X){if(this.prev=0;--k){var $=this.tryEntries[k];if($.tryLoc<=this.prev&&i.call($,"finallyLoc")&&this.prev<$.finallyLoc){var G=$;break}}G&&(P==="break"||P==="continue")&&G.tryLoc<=O&&O<=G.finallyLoc&&(G=null);var J=G?G.completion:{};return J.type=P,J.arg=O,G?(this.method="next",this.next=G.finallyLoc,f):this.complete(J)},complete:function(P,O){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&O&&(this.next=O),f},finish:function(P){for(var O=this.tryEntries.length-1;O>=0;--O){var k=this.tryEntries[O];if(k.finallyLoc===P)return this.complete(k.completion,k.afterLoc),R(k),f}},catch:function(P){for(var O=this.tryEntries.length-1;O>=0;--O){var k=this.tryEntries[O];if(k.tryLoc===P){var $=k.completion;if($.type==="throw"){var G=$.arg;R(k)}return G}}throw new Error("illegal catch attempt")},delegateYield:function(P,O,k){return this.delegate={iterator:L(P),resultName:O,nextLoc:k},this.method==="next"&&(this.arg=void 0),f}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(Fw);var ik=Fw.exports,sl=ik(),ok=sl;try{regeneratorRuntime=sl}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=sl:Function("r","regeneratorRuntime = r")(sl)}const hg=tv(ok);var sk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const lk=sk;function gg(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:jw,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ww,r;switch(t){case"topLeft":r={left:"0px",top:e,bottom:"auto"};break;case"topRight":r={right:"0px",top:e,bottom:"auto"};break;case"bottomLeft":r={left:"0px",top:"auto",bottom:n};break;default:r={right:"0px",top:"auto",bottom:n};break}return r}function xk(t,e){var n=t.prefixCls,r=t.placement,a=r===void 0?Hw:r,i=t.getContainer,o=i===void 0?Vw:i,s=t.top,l=t.bottom,u=t.closeIcon,c=u===void 0?Uw:u,d=t.appContext,v=Fk(),h=v.getPrefixCls,f=h("notification",n||gf),p="".concat(f,"-").concat(a,"-").concat(mf),m=Ea[p];if(m){Promise.resolve(m).then(function(y){e(y)});return}var g=Ce("".concat(f,"-").concat(a),te({},"".concat(f,"-rtl"),mf===!0));ww.newInstance({name:"notification",prefixCls:n||gf,class:g,style:Sk(a,s,l),appContext:d,getContainer:o,closeIcon:function(b){var w=b.prefixCls,_=S("span",{class:"".concat(w,"-close-x")},[vo(c,{},S(zr,{class:"".concat(w,"-close-icon")},null))]);return _},maxCount:Kw,hasTransitionName:!0},function(y){Ea[p]=y,e(y)})}var Tk={success:rv,info:iv,error:Wo,warning:gu};function Ek(t){var e=t.icon,n=t.type,r=t.description,a=t.message,i=t.btn,o=t.duration===void 0?zw:t.duration;xk(t,function(s){s.notice({content:function(u){var c=u.prefixCls,d="".concat(c,"-notice"),v=null;if(e)v=function(){return S("span",{class:"".concat(d,"-icon")},[vo(e)])};else if(n){var h=Tk[n];v=function(){return S(h,{class:"".concat(d,"-icon ").concat(d,"-icon-").concat(n)},null)}}return S("div",{class:v?"".concat(d,"-with-icon"):""},[v&&v(),S("div",{class:"".concat(d,"-message")},[!r&&v?S("span",{class:"".concat(d,"-message-single-line-auto-margin")},null):null,vo(a)]),S("div",{class:"".concat(d,"-description")},[vo(r)]),i?S("span",{class:"".concat(d,"-btn")},[vo(i)]):null])},duration:o,closable:!0,onClose:t.onClose,onClick:t.onClick,key:t.key,style:t.style||{},class:t.class})})}var Ho={open:Ek,close:function(e){Object.keys(Ea).forEach(function(n){return Promise.resolve(Ea[n]).then(function(r){r.removeNotice(e)})})},config:Ck,destroy:function(){Object.keys(Ea).forEach(function(e){Promise.resolve(Ea[e]).then(function(n){n.destroy()}),delete Ea[e]})}},Ok=["success","info","warning","error"];Ok.forEach(function(t){Ho[t]=function(e){return Ho.open(M(M({},e),{},{type:t}))}});Ho.warn=Ho.warning;const Pk=Ho;function fs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Ak="vc-util-key";function Gw(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Ak}function uv(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function _g(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!fs())return null;var r=document.createElement("style");if((e=n.csp)!==null&&e!==void 0&&e.nonce){var a;r.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce}r.innerHTML=t;var i=uv(n),o=i.firstChild;return n.prepend&&i.prepend?i.prepend(r):n.prepend&&o?i.insertBefore(r,o):i.appendChild(r),r}var yf=new Map;function Ik(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=uv(e);return Array.from(yf.get(n).children).find(function(r){return r.tagName==="STYLE"&&r.getAttribute(Gw(e))===t})}function kk(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=uv(n);if(!yf.has(r)){var a=_g("",n),i=a.parentNode;yf.set(r,i),i.removeChild(a)}var o=Ik(e,n);if(o){var s,l;if((s=n.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=n.csp)===null||l===void 0?void 0:l.nonce)){var u;o.nonce=(u=n.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var c=_g(t,n);return c.setAttribute(Gw(n),e),c}const Un=function(t,e,n){bw(t,"[ant-design-vue: ".concat(e,"] ").concat(n))};var Mk="-ant-".concat(Date.now(),"-").concat(Math.random());function Nk(t,e){var n={},r=function(c,d){var v=c.clone();return v=(d==null?void 0:d(v))||v,v.toRgbString()},a=function(c,d){var v=new oc(c),h=jo(v.toRgbString());n["".concat(d,"-color")]=r(v),n["".concat(d,"-color-disabled")]=h[1],n["".concat(d,"-color-hover")]=h[4],n["".concat(d,"-color-active")]=h[6],n["".concat(d,"-color-outline")]=v.clone().setAlpha(.2).toRgbString(),n["".concat(d,"-color-deprecated-bg")]=h[1],n["".concat(d,"-color-deprecated-border")]=h[3]};if(e.primaryColor){a(e.primaryColor,"primary");var i=new oc(e.primaryColor),o=jo(i.toRgbString());o.forEach(function(u,c){n["primary-".concat(c+1)]=u}),n["primary-color-deprecated-l-35"]=r(i,function(u){return u.lighten(35)}),n["primary-color-deprecated-l-20"]=r(i,function(u){return u.lighten(20)}),n["primary-color-deprecated-t-20"]=r(i,function(u){return u.tint(20)}),n["primary-color-deprecated-t-50"]=r(i,function(u){return u.tint(50)}),n["primary-color-deprecated-f-12"]=r(i,function(u){return u.setAlpha(u.getAlpha()*.12)});var s=new oc(o[0]);n["primary-color-active-deprecated-f-30"]=r(s,function(u){return u.setAlpha(u.getAlpha()*.3)}),n["primary-color-active-deprecated-d-02"]=r(s,function(u){return u.darken(2)})}e.successColor&&a(e.successColor,"success"),e.warningColor&&a(e.warningColor,"warning"),e.errorColor&&a(e.errorColor,"error"),e.infoColor&&a(e.infoColor,"info");var l=Object.keys(n).map(function(u){return"--".concat(t,"-").concat(u,": ").concat(n[u],";")});fs()?kk(` :root { `.concat(l.join(` `),` } - `),"".concat(kM,"-dynamic-theme")):Un(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var qw=Symbol("GlobalFormContextKey"),RM=function(e){wt(qw,e)},BG=function(){return ot(qw,{validateMessages:V(function(){})})},$M=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},DM="ant";function gi(){return bn.prefixCls||DM}var bf=ct({}),Yw=ct({}),bn=ct({});yt(function(){Ut(bn,bf,Yw),bn.prefixCls=gi(),bn.getPrefixCls=function(t,e){return e||(t?"".concat(bn.prefixCls,"-").concat(t):bn.prefixCls)},bn.getRootPrefixCls=function(t,e){return t||(bn.prefixCls?bn.prefixCls:e&&e.includes("-")?e.replace(/^(.*)-[^-]*$/,"$1"):gi())}});var cc,LM=function(e){cc&&cc(),cc=yt(function(){Ut(Yw,ct(e)),Ut(bn,ct(e))}),e.theme&&NM(gi(),e.theme)},FM=function(){return{getPrefixCls:function(n,r){return r||(n?"".concat(gi(),"-").concat(n):gi())},getRootPrefixCls:function(n,r){return n||(bn.prefixCls?bn.prefixCls:r&&r.includes("-")?r.replace(/^(.*)-[^-]*$/,"$1"):gi())}}},mi=he({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:$M(),setup:function(e,n){var r=n.slots,a=function(d,v){var h=e.prefixCls,f=h===void 0?"ant":h;return v||(d?"".concat(f,"-").concat(d):f)},i=function(d){var v=e.renderEmpty||r.renderEmpty||yw;return v(d)},o=function(d,v){var h=e.prefixCls;if(v)return v;var f=h||a("");return d?"".concat(f,"-").concat(d):f},s=ct(k(k({},e),{},{getPrefixCls:o,renderEmpty:i}));Object.keys(e).forEach(function(c){pe(function(){return e[c]},function(){s[c]=e[c]})}),e.notUpdateGlobalConfig||(Ut(bf,s),pe(s,function(){Ut(bf,s)}));var l=V(function(){var c={};if(e.locale){var d,v;c=((d=e.locale.Form)===null||d===void 0?void 0:d.defaultValidateMessages)||((v=Bo.Form)===null||v===void 0?void 0:v.defaultValidateMessages)||{}}return e.form&&e.form.validateMessages&&(c=k(k({},c),e.form.validateMessages)),c});RM({validateMessages:l}),wt("configProvider",s);var u=function(d){var v;return S(BA,{locale:e.locale||d,ANT_MARK__:uf},{default:function(){return[(v=r.default)===null||v===void 0?void 0:v.call(r)]}})};return yt(function(){e.direction&&(Jt.config({rtl:e.direction==="rtl"}),PM.config({rtl:e.direction==="rtl"}))}),function(){return S(aw,{children:function(d,v,h){return u(h)}},null)}}}),BM=ct({getPrefixCls:function(e,n){return n||(e?"ant-".concat(e):"ant")},renderEmpty:yw,direction:"ltr"});mi.config=LM;mi.install=function(t){t.component(mi.name,mi)};const lt=function(t,e){var n=ot("configProvider",BM),r=V(function(){return n.getPrefixCls(t,e.prefixCls)}),a=V(function(){var y;return(y=e.direction)!==null&&y!==void 0?y:n.direction}),i=V(function(){return n.getPrefixCls()}),o=V(function(){return n.autoInsertSpaceInButton}),s=V(function(){return n.renderEmpty}),l=V(function(){return n.space}),u=V(function(){return n.pageHeader}),c=V(function(){return n.form}),d=V(function(){return e.getTargetContainer||n.getTargetContainer}),v=V(function(){return e.getPopupContainer||n.getPopupContainer}),h=V(function(){var y;return(y=e.dropdownMatchSelectWidth)!==null&&y!==void 0?y:n.dropdownMatchSelectWidth}),f=V(function(){return(e.virtual===void 0?n.virtual!==!1:e.virtual!==!1)&&h.value!==!1}),p=V(function(){return e.size||n.componentSize}),m=V(function(){var y;return e.autocomplete||((y=n.input)===null||y===void 0?void 0:y.autocomplete)}),g=V(function(){return n.csp});return{configProvider:n,prefixCls:r,direction:a,size:p,getTargetContainer:d,getPopupContainer:v,space:l,pageHeader:u,form:c,autoInsertSpaceInButton:o,renderEmpty:s,virtual:f,dropdownMatchSelectWidth:h,rootPrefixCls:i,getPrefixCls:n.getPrefixCls,autocomplete:m,csp:g}};function Lt(t,e){for(var n=Ut({},t),r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,a=[],i=Jw(n,!1),o=i.label,s=i.value,l=i.options;function u(c,d){c.forEach(function(v){var h=v[o];if(d||!(l in v)){var f=v[s];a.push({key:Cg(v,a.length),groupOption:d,data:v,label:h,value:f})}else{var p=h;p===void 0&&r&&(p=v.label),a.push({key:Cg(v,a.length),group:!0,data:v,label:p}),u(v[l],!0)}})}return u(t,!1),a}function wf(t){var e=k({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return e}}),e}function WM(t,e){if(!e||!e.length)return null;var n=!1;function r(i,o){var s=zM(o),l=s[0],u=s.slice(1);if(!l)return[i];var c=i.split(l);return n=n||c.length>1,c.reduce(function(d,v){return[].concat(nt(d),nt(r(v,u)))},[]).filter(function(d){return d})}var a=r(t,e);return n?a:null}function Oa(t,e){return t?t.contains(e):!1}var Xw=["moz","ms","webkit"];function HM(){var t=0;return function(e){var n=new Date().getTime(),r=Math.max(0,16-(n-t)),a=window.setTimeout(function(){e(n+r)},r);return t=n+r,a}}function VM(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var t=Xw.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return t?window["".concat(t,"RequestAnimationFrame")]:HM()}function UM(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);var e=Xw.filter(function(n){return"".concat(n,"CancelAnimationFrame")in window||"".concat(n,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,t):clearTimeout(t)}var Sg=VM(),KM=function(e){return UM(e.id)},GM=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Date.now();function a(){Date.now()-r>=n?e.call():i.id=Sg(a)}var i={id:Sg(a)};return i},cv={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},qM=k(k({},cv),{},{mobile:{type:Object}}),YM=k(k({},cv),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Zw(t){var e=t.prefixCls,n=t.animation,r=t.transitionName;return n?{name:"".concat(e,"-").concat(n)}:r?{name:r}:{}}function Qw(t){var e=t.prefixCls,n=t.visible,r=t.zIndex,a=t.mask,i=t.maskAnimation,o=t.maskTransitionName;if(!a)return null;var s={};return(o||i)&&(s=Zw({prefixCls:e,transitionName:o,animation:i})),S(Yn,k({appear:!0},s),{default:function(){return[dn(S("div",{style:{zIndex:r},class:"".concat(e,"-mask")},null),[[HE("if"),n]])]}})}Qw.displayName="Mask";const JM=he({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:qM,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var r=n.expose,a=n.slots,i=z();return r({forceAlign:function(){},getElement:function(){return i.value}}),function(){var o,s=e.zIndex,l=e.visible,u=e.prefixCls,c=e.mobile,d=c===void 0?{}:c,v=d.popupClassName,h=d.popupStyle,f=d.popupMotion,p=f===void 0?{}:f,m=d.popupRender,g=k({zIndex:s},h),y=Mn((o=a.default)===null||o===void 0?void 0:o.call(a));y.length>1&&(y=S("div",{class:"".concat(u,"-content")},[y])),m&&(y=m(y));var b=Ce(u,v);return S(Yn,k({ref:i},p),{default:function(){return[l?S("div",{class:b,style:g},[y]):null]}})}}});var xg=["measure","align",null,"motion"];const XM=function(t,e){var n=z(null),r=z(),a=z(!1);function i(l){a.value||(n.value=l)}function o(){Ue.cancel(r.value)}function s(l){o(),r.value=Ue(function(){var u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}i(u),l==null||l()})}return pe(t,function(){i("measure")},{immediate:!0,flush:"post"}),Ve(function(){pe(n,function(){switch(n.value){case"measure":e();break}n.value&&(r.value=Ue(tM(hg.mark(function l(){var u,c;return hg.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:u=xg.indexOf(n.value),c=xg[u+1],c&&u!==-1&&i(c);case 3:case"end":return v.stop()}},l)}))))},{immediate:!0,flush:"post"})}),st(function(){a.value=!0,o()}),[n,s]},ZM=function(t){var e=z({width:0,height:0});function n(a){e.value={width:a.offsetWidth,height:a.offsetHeight}}var r=V(function(){var a={};if(t.value){var i=e.value,o=i.width,s=i.height;t.value.indexOf("height")!==-1&&s?a.height="".concat(s,"px"):t.value.indexOf("minHeight")!==-1&&s&&(a.minHeight="".concat(s,"px")),t.value.indexOf("width")!==-1&&o?a.width="".concat(o,"px"):t.value.indexOf("minWidth")!==-1&&o&&(a.minWidth="".concat(o,"px"))}return a});return[r,n]};function Tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Eg(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function _k(t,e,n,r){var a=je.clone(t),i={width:e.width,height:e.height};return r.adjustX&&a.left=n.left&&a.left+i.width>n.right&&(i.width-=a.left+i.width-n.right),r.adjustX&&a.left+i.width>n.right&&(a.left=Math.max(n.right-i.width,n.left)),r.adjustY&&a.top=n.top&&a.top+i.height>n.bottom&&(i.height-=a.top+i.height-n.bottom),r.adjustY&&a.top+i.height>n.bottom&&(a.top=Math.max(n.bottom-i.height,n.top)),je.mix(a,i)}function pv(t){var e,n,r;if(!je.isWindow(t)&&t.nodeType!==9)e=je.offset(t),n=je.outerWidth(t),r=je.outerHeight(t);else{var a=je.getWindow(t);e={left:je.getWindowScrollLeft(a),top:je.getWindowScrollTop(a)},n=je.viewportWidth(a),r=je.viewportHeight(a)}return e.width=n,e.height=r,e}function Rg(t,e){var n=e.charAt(0),r=e.charAt(1),a=t.width,i=t.height,o=t.left,s=t.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?o+=a/2:r==="r"&&(o+=a),{left:o,top:s}}function $s(t,e,n,r,a){var i=Rg(e,n[1]),o=Rg(t,n[0]),s=[o.left-i.left,o.top-i.top];return{left:Math.round(t.left-s[0]+r[0]-a[0]),top:Math.round(t.top-s[1]+r[1]-a[1])}}function $g(t,e,n){return t.leftn.right}function Dg(t,e,n){return t.topn.bottom}function Ck(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||r.top>=n.bottom}function hv(t,e,n){var r=n.target||e,a=pv(r),i=!xk(r,n.overflow&&n.overflow.alwaysByViewport);return s_(t,a,n,i)}hv.__getOffsetParent=xf;hv.__getVisibleRectForElement=vv;function Tk(t,e,n){var r,a,i=je.getDocument(t),o=i.defaultView||i.parentWindow,s=je.getWindowScrollLeft(o),l=je.getWindowScrollTop(o),u=je.viewportWidth(o),c=je.viewportHeight(o);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?a=e.pageY:a=l+e.clientY;var d={left:r,top:a,width:0,height:0},v=r>=0&&r<=s+u&&a>=0&&a<=l+c,h=[n.points[0],"cc"];return s_(t,d,Eg(Eg({},n),{},{points:h}),v)}function Et(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t;if(Array.isArray(t)&&(a=Fi(t)[0]),!a)return null;var i=rr(a,e,r);return i.props=n?k(k({},i.props),e):i.props,pu(Qe(i.props.class)!=="object","class must be string"),i}const Ek=function(t){if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function Ok(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function Pk(t,e){t!==document.activeElement&&Oa(e,t)&&typeof t.focus=="function"&&t.focus()}function Bg(t,e){var n=null,r=null;function a(o){var s=Me(o,1),l=s[0].target;if(document.documentElement.contains(l)){var u=l.getBoundingClientRect(),c=u.width,d=u.height,v=Math.floor(c),h=Math.floor(d);(n!==v||r!==h)&&Promise.resolve().then(function(){e({width:v,height:h})}),n=v,r=h}}var i=new j1(a);return t&&i.observe(t),function(){i.disconnect()}}const Ak=function(t,e){var n=!1,r=null;function a(){clearTimeout(r)}function i(o){if(!n||o===!0){if(t()===!1)return;n=!0,a(),r=setTimeout(function(){n=!1},e.value)}else a(),r=setTimeout(function(){n=!1,i()},e.value)}return[i,function(){n=!1,a()}]};function Ik(){this.__data__=[],this.size=0}function gv(t,e){return t===e||t!==t&&e!==e}function yu(t,e){for(var n=t.length;n--;)if(gv(t[n][0],e))return n;return-1}var Mk=Array.prototype,kk=Mk.splice;function Nk(t){var e=this.__data__,n=yu(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():kk.call(e,n,1),--this.size,!0}function Rk(t){var e=this.__data__,n=yu(e,t);return n<0?void 0:e[n][1]}function $k(t){return yu(this.__data__,t)>-1}function Dk(t,e){var n=this.__data__,r=yu(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Wr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++es))return!1;var u=i.get(t),c=i.get(e);if(u&&c)return u==e&&c==t;var d=-1,v=!0,h=n&I2?new Go:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t-1&&t%1==0&&t<=uN}var cN="[object Arguments]",fN="[object Array]",dN="[object Boolean]",vN="[object Date]",pN="[object Error]",hN="[object Function]",gN="[object Map]",mN="[object Number]",yN="[object Object]",bN="[object RegExp]",wN="[object Set]",_N="[object String]",CN="[object WeakMap]",SN="[object ArrayBuffer]",xN="[object DataView]",TN="[object Float32Array]",EN="[object Float64Array]",ON="[object Int8Array]",PN="[object Int16Array]",AN="[object Int32Array]",IN="[object Uint8Array]",MN="[object Uint8ClampedArray]",kN="[object Uint16Array]",NN="[object Uint32Array]",pt={};pt[TN]=pt[EN]=pt[ON]=pt[PN]=pt[AN]=pt[IN]=pt[MN]=pt[kN]=pt[NN]=!0;pt[cN]=pt[fN]=pt[SN]=pt[dN]=pt[xN]=pt[vN]=pt[pN]=pt[hN]=pt[gN]=pt[mN]=pt[yN]=pt[bN]=pt[wN]=pt[_N]=pt[CN]=!1;function RN(t){return wr(t)&&Cv(t.length)&&!!pt[fa(t)]}function Sv(t){return function(e){return t(e)}}var h_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,So=h_&&typeof module=="object"&&module&&!module.nodeType&&module,$N=So&&So.exports===h_,mc=$N&&U1.process,DN=function(){try{var t=So&&So.require&&So.require("util").types;return t||mc&&mc.binding&&mc.binding("util")}catch{}}();const Pi=DN;var Kg=Pi&&Pi.isTypedArray,LN=Kg?Sv(Kg):RN;const g_=LN;var FN=Object.prototype,BN=FN.hasOwnProperty;function m_(t,e){var n=ir(t),r=!n&&wv(t),a=!n&&!r&&kl(t),i=!n&&!r&&!a&&g_(t),o=n||r||a||i,s=o?Z2(t.length,String):[],l=s.length;for(var u in t)(e||BN.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_v(u,l)))&&s.push(u);return s}var zN=Object.prototype;function xv(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||zN;return t===n}var jN=G1(Object.keys,Object);const WN=jN;var HN=Object.prototype,VN=HN.hasOwnProperty;function UN(t){if(!xv(t))return WN(t);var e=[];for(var n in Object(t))VN.call(t,n)&&n!="constructor"&&e.push(n);return e}function y_(t){return t!=null&&Cv(t.length)&&!l_(t)}function wu(t){return y_(t)?m_(t):UN(t)}function Tf(t){return f_(t,wu,bv)}var KN=1,GN=Object.prototype,qN=GN.hasOwnProperty;function YN(t,e,n,r,a,i){var o=n&KN,s=Tf(t),l=s.length,u=Tf(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var v=s[d];if(!(o?v in e:qN.call(e,v)))return!1}var h=i.get(t),f=i.get(e);if(h&&f)return h==e&&f==t;var p=!0;i.set(t,e),i.set(e,t);for(var m=o;++d1&&(X=S("div",{class:"".concat(j,"-content")},[X]));var Y=Ce(j,a.class,l.value),ne=f.value||!e.visible,le=ne?cs(I.value.name,I.value):{};return S(Yn,k(k({ref:s},le),{},{onBeforeEnter:T}),{default:function(){return!D||e.visible?dn(S(fR,{target:_(),key:"popup",ref:o,monitorWindowResize:!0,disabled:N.value,align:L,onAlign:E},{default:function(){return S("div",k(k({class:Y,onMouseenter:P,onMouseleave:O,onMousedown:An(G,["capture"])},te({},ln?"onTouchstartPassive":"onTouchstart",An($,["capture"]))),{},{style:Z}),[X])}}),[[$r,f.value]]):null}})}}}),vR=he({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:YM,setup:function(e,n){var r=n.attrs,a=n.slots,i=n.expose,o=z(!1),s=z(!1),l=z();return pe([function(){return e.visible},function(){return e.mobile}],function(){o.value=e.visible,e.visible&&e.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:function(){var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:function(){var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),function(){var u=k(k(k({},e),r),{},{visible:o.value}),c=s.value?S(JM,k(k({},u),{},{mobile:e.mobile,ref:l}),{default:a.default}):S(dR,k(k({},u),{},{ref:l}),{default:a.default});return S("div",null,[S(Qw,u,null),c])}}});function pR(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function rm(t,e,n){var r=t[e]||{};return k(k({},r),n)}function hR(t,e,n,r){for(var a=n.points,i=Object.keys(t),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var a=this.getDerivedStateFromProps(oA(this),k(k({},this.$data),r));if(a===null)return;r=k(k({},r),a||{})}Ut(this.$data,r),this._.isMounted&&this.$forceUpdate(),Ke(function(){n&&n()})},__emit:function(){var e=[].slice.call(arguments,0),n=e[0];n="on".concat(n[0].toUpperCase()).concat(n.substring(1));var r=this.$props[n]||this.$attrs[n];if(e.length&&r)if(Array.isArray(r))for(var a=0,i=r.length;a1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};wt(w_,{inTriggerContext:n.inTriggerContext,shouldRender:V(function(){var r=e||{},a=r.sPopupVisible,i=r.popupRef,o=r.forceRender,s=r.autoDestroy,l=!1;return(a||i||o)&&(l=!0),!a&&s&&(l=!1),l})})},yR=function(){Tv({},{inTriggerContext:!1});var e=ot(w_,{shouldRender:V(function(){return!1}),inTriggerContext:!1});return{shouldRender:V(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const Af=he({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ee.func.isRequired,didUpdate:Function},setup:function(e,n){var r=n.slots,a=!0,i,o=yR(),s=o.shouldRender;Rd(function(){a=!1,s.value&&(i=e.getContainer())});var l=pe(s,function(){s.value&&!i&&(i=e.getContainer()),i&&l()});return ca(function(){Ke(function(){if(s.value){var u;(u=e.didUpdate)===null||u===void 0||u.call(e,e)}})}),st(function(){i&&i.parentNode&&i.parentNode.removeChild(i)}),function(){if(!s.value)return null;if(a){var u;return(u=r.default)===null||u===void 0?void 0:u.call(r)}return i?S(uu,{to:i},r):null}}});function am(){}function bR(){return""}function wR(t){return t?t.ownerDocument:window.document}var _R=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Cu=he({compatConfig:{MODE:3},name:"Trigger",mixins:[b_],inheritAttrs:!1,props:{action:ee.oneOfType([ee.string,ee.arrayOf(ee.string)]).def([]),showAction:ee.any.def([]),hideAction:ee.any.def([]),getPopupClassNameFromAlign:ee.any.def(bR),onPopupVisibleChange:Function,afterPopupVisibleChange:ee.func.def(am),popup:ee.any,popupStyle:{type:Object,default:void 0},prefixCls:ee.string.def("rc-trigger-popup"),popupClassName:ee.string.def(""),popupPlacement:String,builtinPlacements:ee.object,popupTransitionName:String,popupAnimation:ee.any,mouseEnterDelay:ee.number.def(0),mouseLeaveDelay:ee.number.def(.1),zIndex:Number,focusDelay:ee.number.def(0),blurDelay:ee.number.def(.15),getPopupContainer:Function,getDocument:ee.func.def(wR),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ee.object.def(function(){return{}}),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function,tryPopPortal:Boolean},setup:function(e){var n=V(function(){var l=e.popupPlacement,u=e.popupAlign,c=e.builtinPlacements;return l&&c?rm(c,l,u):u}),r=mR(e.tryPopPortal),a=r.setPortal,i=r.popPortal,o=z(null),s=function(u){o.value=u};return{popPortal:i,setPortal:a,vcTriggerContext:ot("vcTriggerContext",{}),popupRef:o,setPopupRef:s,triggerRef:z(null),align:n,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,n,r=this.$props,a;return this.popupVisible!==void 0?a=!!r.popupVisible:a=!!r.defaultPopupVisible,_R.forEach(function(i){e["fire".concat(i)]=function(o){e.fireEvents(i,o)}}),(n=this.setPortal)===null||n===void 0||n.call(this,S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:a,sPopupVisible:a,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){wt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),Tv(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ue.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,n=this.$data;if(n.sPopupVisible){var r;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(r=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=jn(r,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(r=r||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=jn(r,"touchstart",this.onDocumentClick,ln?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(r=r||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=jn(r,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=jn(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var n=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,n,n?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var n;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&Oa((n=this.popupRef)===null||n===void 0?void 0:n.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){Oa(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var r=!this.$data.sPopupVisible;(this.isClickToHide()&&!r||r&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,n=this.vcTriggerContext,r=n===void 0?{}:n;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),r.onPopupMouseDown&&r.onPopupMouseDown.apply(r,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var n=e.target,r=this.getRootDomNode(),a=this.getPopupDomNode();(!Oa(r,n)||this.isContextMenuOnly())&&!Oa(a,n)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var n=Ia(this.triggerRef);return Ia(e(n))}try{var r=Ia(this.triggerRef);if(r)return r}catch{}return Ia(this)},handleGetPopupClassFromAlign:function(e){var n=[],r=this.$props,a=r.popupPlacement,i=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return a&&i&&n.push(hR(i,o,e,s)),l&&n.push(l(e)),n.join(" ")},getPopupAlign:function(){var e=this.$props,n=e.popupPlacement,r=e.popupAlign,a=e.builtinPlacements;return n&&a?rm(a,n,r):r},getComponent:function(){var e=this,n={};this.isMouseEnterToShow()&&(n.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(n.onMouseleave=this.onPopupMouseleave),n.onMousedown=this.onPopupMouseDown,n[ln?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var r=this.handleGetPopupClassFromAlign,a=this.getRootDomNode,i=this.getContainer,o=this.$attrs,s=this.$props,l=s.prefixCls,u=s.destroyPopupOnHide,c=s.popupClassName,d=s.popupAnimation,v=s.popupTransitionName,h=s.popupStyle,f=s.mask,p=s.maskAnimation,m=s.maskTransitionName,g=s.zIndex,y=s.stretch,b=s.alignPoint,w=s.mobile,_=s.forceRender,C=this.$data,E=C.sPopupVisible,I=C.point,T=k(k({prefixCls:l,destroyPopupOnHide:u,visible:E,point:b?I:null,align:this.align,animation:d,getClassNameFromAlign:r,stretch:y,getRootDomNode:a,mask:f,zIndex:g,transitionName:v,maskAnimation:p,maskTransitionName:m,getContainer:i,class:c,style:h,onAlign:o.onPopupAlign||am},n),{},{ref:this.setPopupRef,mobile:w,forceRender:_});return S(vR,T,{default:this.$slots.popup||function(){return J1(e,"popup")}})},attachParent:function(e){var n=this;Ue.cancel(this.attachId);var r=this.$props,a=r.getPopupContainer,i=r.getDocument,o=this.getRootDomNode(),s;a?(o||a.length===0)&&(s=a(o)):s=i(this.getRootDomNode()).body,s?s.appendChild(e):this.attachId=Ue(function(){n.attachParent(e)})},getContainer:function(){var e=this.$props,n=e.getDocument,r=n(this.getRootDomNode()).createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",this.attachParent(r),r},setPopupVisible:function(e,n){var r=this.alignPoint,a=this.sPopupVisible,i=this.onPopupVisibleChange;this.clearDelayTimer(),a!==e&&(oi(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:a}),i&&i(e)),r&&n&&e&&this.setPoint(n)},setPoint:function(e){var n=this.$props.alignPoint;!n||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,n,r){var a=this,i=n*1e3;if(this.clearDelayTimer(),i){var o=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=GM(function(){a.setPopupVisible(e,o),a.clearDelayTimer()},i)}else this.setPopupVisible(e,r)},clearDelayTimer:function(){this.delayTimer&&(KM(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var n=function(){},r=Fh(this);return this.childOriginEvents[e]&&r[e]?this["fire".concat(e)]:(n=this.childOriginEvents[e]||r[e]||n,n)},isClickToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("contextmenu")!==-1||r.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("hover")!==-1||r.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("hover")!==-1||r.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("focus")!==-1||r.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("focus")!==-1||r.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,n){this.childOriginEvents[e]&&this.childOriginEvents[e](n);var r=this.$props[e]||this.$attrs[e];r&&r(n)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,n=this.$attrs,r=Fi(iA(this)),a=this.$props.alignPoint,i=r[0];this.childOriginEvents=Fh(i);var o={key:"trigger"};this.isContextmenuToShow()?o.onContextmenu=this.onContextmenu:o.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMousedown=this.onMousedown,o[ln?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(o.onClick=this.createTwoChains("onClick"),o.onMousedown=this.createTwoChains("onMousedown"),o[ln?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(o.onMouseenter=this.onMouseenter,a&&(o.onMousemove=this.onMouseMove)):o.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?o.onMouseleave=this.onMouseleave:o.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=function(c){c&&(!c.relatedTarget||!Oa(c.target,c.relatedTarget))&&e.createTwoChains("onBlur")(c)});var s=Ce(i&&i.props&&i.props.class,n.class);s&&(o.class=s);var l=Et(i,k(k({},o),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var u=S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return S(Re,null,[u,l])}});var CR=["empty"],SR=function(e){var n=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}},xR=he({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ee.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ee.oneOfType([Number,Boolean]).def(!0),popupElement:ee.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=V(function(){var l=e.dropdownMatchSelectWidth;return SR(l)}),s=z();return i({getPopupElement:function(){return s.value}}),function(){var l=k(k({},e),a),u=l.empty,c=u===void 0?!1:u,d=bt(l,CR),v=d.visible,h=d.dropdownAlign,f=d.prefixCls,p=d.popupElement,m=d.dropdownClassName,g=d.dropdownStyle,y=d.direction,b=y===void 0?"ltr":y,w=d.placement,_=d.dropdownMatchSelectWidth,C=d.containerWidth,E=d.dropdownRender,I=d.animation,T=d.transitionName,N=d.getPopupContainer,R=d.getTriggerDOMNode,F=d.onPopupVisibleChange,L=d.onPopupMouseEnter,j="".concat(f,"-dropdown"),D=p;E&&(D=E({menuNode:p,props:e}));var P=I?"".concat(j,"-").concat(I):T,O=k({minWidth:"".concat(C,"px")},g);return typeof _=="number"?O.width="".concat(_,"px"):_&&(O.width="".concat(C,"px")),S(Cu,k(k({},e),{},{showAction:F?["click"]:[],hideAction:F?["click"]:[],popupPlacement:w||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:o.value,prefixCls:j,popupTransitionName:P,popupAlign:h,popupVisible:v,getPopupContainer:N,popupClassName:Ce(m,te({},"".concat(j,"-empty"),c)),popupStyle:O,getTriggerDOMNode:R,onPopupVisibleChange:F}),{default:r.default,popup:function(){return S("div",{ref:s,onMouseenter:L},[D])}})}}});const TR=xR;var Ne={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=Ne.F1&&n<=Ne.F12)return!1;switch(n){case Ne.ALT:case Ne.CAPS_LOCK:case Ne.CONTEXT_MENU:case Ne.CTRL:case Ne.DOWN:case Ne.END:case Ne.ESC:case Ne.HOME:case Ne.INSERT:case Ne.LEFT:case Ne.MAC_FF_META:case Ne.META:case Ne.NUMLOCK:case Ne.NUM_CENTER:case Ne.PAGE_DOWN:case Ne.PAGE_UP:case Ne.PAUSE:case Ne.PRINT_SCREEN:case Ne.RIGHT:case Ne.SHIFT:case Ne.UP:case Ne.WIN_KEY:case Ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ne.ZERO&&e<=Ne.NINE||e>=Ne.NUM_ZERO&&e<=Ne.NUM_MULTIPLY||e>=Ne.A&&e<=Ne.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Ne.SPACE:case Ne.QUESTION_MARK:case Ne.NUM_PLUS:case Ne.NUM_MINUS:case Ne.NUM_PERIOD:case Ne.NUM_DIVISION:case Ne.SEMICOLON:case Ne.DASH:case Ne.EQUALS:case Ne.COMMA:case Ne.PERIOD:case Ne.SLASH:case Ne.APOSTROPHE:case Ne.SINGLE_QUOTE:case Ne.OPEN_SQUARE_BRACKET:case Ne.BACKSLASH:case Ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Ae=Ne;var Su=function(e,n){var r,a=n.slots,i=e.class,o=e.customizeIcon,s=e.customizeIconProps,l=e.onMousedown,u=e.onClick,c;return typeof o=="function"?c=o(s):c=o,S("span",{class:i,onMousedown:function(v){v.preventDefault(),l&&l(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[c!==void 0?c:S("span",{class:i.split(/\s+/).map(function(d){return"".concat(d,"-icon")})},[(r=a.default)===null||r===void 0?void 0:r.call(a)])])};Su.inheritAttrs=!1;Su.displayName="TransBtn";Su.props={class:String,customizeIcon:ee.any,customizeIconProps:ee.any,onMousedown:Function,onClick:Function};const Nl=Su;function ER(t){t.target.composing=!0}function im(t){t.target.composing&&(t.target.composing=!1,OR(t.target,"input"))}function OR(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function yc(t,e,n,r){t.addEventListener(e,n,r)}var PR={created:function(e,n){(!n.modifiers||!n.modifiers.lazy)&&(yc(e,"compositionstart",ER),yc(e,"compositionend",im),yc(e,"change",im))}};const vs=PR;var AR={inputRef:ee.any,prefixCls:String,id:String,inputElement:ee.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ee.oneOfType([ee.number,ee.string]),attrs:ee.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},IR=he({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:AR,setup:function(e){var n=null,r=ot("VCSelectContainerEvent");return function(){var a,i,o=e.prefixCls,s=e.id,l=e.inputElement,u=e.disabled,c=e.tabindex,d=e.autofocus,v=e.autocomplete,h=e.editable,f=e.activeDescendantId,p=e.value,m=e.onKeydown,g=e.onMousedown,y=e.onChange,b=e.onPaste,w=e.onCompositionstart,_=e.onCompositionend,C=e.onFocus,E=e.onBlur,I=e.open,T=e.inputRef,N=e.attrs,R=l||dn(S("input",null,null),[[vs]]),F=R.props||{},L=F.onKeydown,j=F.onInput,D=F.onFocus,P=F.onBlur,O=F.onMousedown,M=F.onCompositionstart,$=F.onCompositionend,G=F.style;return R=Et(R,Ut(k(k(k({type:"search"},F),{},{id:s,ref:T,disabled:u,tabindex:c,autocomplete:v||"off",autofocus:d,class:Ce("".concat(o,"-selection-search-input"),(a=R)===null||a===void 0||(i=a.props)===null||i===void 0?void 0:i.class),role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":f},N),{},{value:h?p:"",readonly:!h,unselectable:h?null:"on",style:k(k({},G),{},{opacity:h?null:0}),onKeydown:function(Z){m(Z),L&&L(Z)},onMousedown:function(Z){g(Z),O&&O(Z)},onInput:function(Z){y(Z),j&&j(Z)},onCompositionstart:function(Z){w(Z),M&&M(Z)},onCompositionend:function(Z){_(Z),$&&$(Z)},onPaste:b,onFocus:function(){clearTimeout(n),D&&D(arguments.length<=0?void 0:arguments[0]),C&&C(arguments.length<=0?void 0:arguments[0]),r==null||r.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var Z=arguments.length,X=new Array(Z),Y=0;Y1&&arguments[1]!==void 0?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,a=[],i=Jw(n,!1),o=i.label,s=i.value,l=i.options;function u(c,d){c.forEach(function(v){var h=v[o];if(d||!(l in v)){var f=v[s];a.push({key:Cg(v,a.length),groupOption:d,data:v,label:h,value:f})}else{var p=h;p===void 0&&r&&(p=v.label),a.push({key:Cg(v,a.length),group:!0,data:v,label:p}),u(v[l],!0)}})}return u(t,!1),a}function wf(t){var e=M({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return e}}),e}function Wk(t,e){if(!e||!e.length)return null;var n=!1;function r(i,o){var s=zk(o),l=s[0],u=s.slice(1);if(!l)return[i];var c=i.split(l);return n=n||c.length>1,c.reduce(function(d,v){return[].concat(nt(d),nt(r(v,u)))},[]).filter(function(d){return d})}var a=r(t,e);return n?a:null}function Oa(t,e){return t?t.contains(e):!1}var Xw=["moz","ms","webkit"];function Hk(){var t=0;return function(e){var n=new Date().getTime(),r=Math.max(0,16-(n-t)),a=window.setTimeout(function(){e(n+r)},r);return t=n+r,a}}function Vk(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var t=Xw.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return t?window["".concat(t,"RequestAnimationFrame")]:Hk()}function Uk(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);var e=Xw.filter(function(n){return"".concat(n,"CancelAnimationFrame")in window||"".concat(n,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,t):clearTimeout(t)}var Sg=Vk(),Kk=function(e){return Uk(e.id)},Gk=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Date.now();function a(){Date.now()-r>=n?e.call():i.id=Sg(a)}var i={id:Sg(a)};return i},cv={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},qk=M(M({},cv),{},{mobile:{type:Object}}),Yk=M(M({},cv),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Zw(t){var e=t.prefixCls,n=t.animation,r=t.transitionName;return n?{name:"".concat(e,"-").concat(n)}:r?{name:r}:{}}function Qw(t){var e=t.prefixCls,n=t.visible,r=t.zIndex,a=t.mask,i=t.maskAnimation,o=t.maskTransitionName;if(!a)return null;var s={};return(o||i)&&(s=Zw({prefixCls:e,transitionName:o,animation:i})),S(Yn,M({appear:!0},s),{default:function(){return[dn(S("div",{style:{zIndex:r},class:"".concat(e,"-mask")},null),[[HE("if"),n]])]}})}Qw.displayName="Mask";const Jk=he({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:qk,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var r=n.expose,a=n.slots,i=z();return r({forceAlign:function(){},getElement:function(){return i.value}}),function(){var o,s=e.zIndex,l=e.visible,u=e.prefixCls,c=e.mobile,d=c===void 0?{}:c,v=d.popupClassName,h=d.popupStyle,f=d.popupMotion,p=f===void 0?{}:f,m=d.popupRender,g=M({zIndex:s},h),y=kn((o=a.default)===null||o===void 0?void 0:o.call(a));y.length>1&&(y=S("div",{class:"".concat(u,"-content")},[y])),m&&(y=m(y));var b=Ce(u,v);return S(Yn,M({ref:i},p),{default:function(){return[l?S("div",{class:b,style:g},[y]):null]}})}}});var xg=["measure","align",null,"motion"];const Xk=function(t,e){var n=z(null),r=z(),a=z(!1);function i(l){a.value||(n.value=l)}function o(){Ue.cancel(r.value)}function s(l){o(),r.value=Ue(function(){var u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}i(u),l==null||l()})}return pe(t,function(){i("measure")},{immediate:!0,flush:"post"}),Ve(function(){pe(n,function(){switch(n.value){case"measure":e();break}n.value&&(r.value=Ue(tk(hg.mark(function l(){var u,c;return hg.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:u=xg.indexOf(n.value),c=xg[u+1],c&&u!==-1&&i(c);case 3:case"end":return v.stop()}},l)}))))},{immediate:!0,flush:"post"})}),st(function(){a.value=!0,o()}),[n,s]},Zk=function(t){var e=z({width:0,height:0});function n(a){e.value={width:a.offsetWidth,height:a.offsetHeight}}var r=V(function(){var a={};if(t.value){var i=e.value,o=i.width,s=i.height;t.value.indexOf("height")!==-1&&s?a.height="".concat(s,"px"):t.value.indexOf("minHeight")!==-1&&s&&(a.minHeight="".concat(s,"px")),t.value.indexOf("width")!==-1&&o?a.width="".concat(o,"px"):t.value.indexOf("minWidth")!==-1&&o&&(a.minWidth="".concat(o,"px"))}return a});return[r,n]};function Tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Eg(t){for(var e=1;e=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function _M(t,e,n,r){var a=je.clone(t),i={width:e.width,height:e.height};return r.adjustX&&a.left=n.left&&a.left+i.width>n.right&&(i.width-=a.left+i.width-n.right),r.adjustX&&a.left+i.width>n.right&&(a.left=Math.max(n.right-i.width,n.left)),r.adjustY&&a.top=n.top&&a.top+i.height>n.bottom&&(i.height-=a.top+i.height-n.bottom),r.adjustY&&a.top+i.height>n.bottom&&(a.top=Math.max(n.bottom-i.height,n.top)),je.mix(a,i)}function pv(t){var e,n,r;if(!je.isWindow(t)&&t.nodeType!==9)e=je.offset(t),n=je.outerWidth(t),r=je.outerHeight(t);else{var a=je.getWindow(t);e={left:je.getWindowScrollLeft(a),top:je.getWindowScrollTop(a)},n=je.viewportWidth(a),r=je.viewportHeight(a)}return e.width=n,e.height=r,e}function Rg(t,e){var n=e.charAt(0),r=e.charAt(1),a=t.width,i=t.height,o=t.left,s=t.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?o+=a/2:r==="r"&&(o+=a),{left:o,top:s}}function $s(t,e,n,r,a){var i=Rg(e,n[1]),o=Rg(t,n[0]),s=[o.left-i.left,o.top-i.top];return{left:Math.round(t.left-s[0]+r[0]-a[0]),top:Math.round(t.top-s[1]+r[1]-a[1])}}function $g(t,e,n){return t.leftn.right}function Dg(t,e,n){return t.topn.bottom}function CM(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=n.right||r.top>=n.bottom}function hv(t,e,n){var r=n.target||e,a=pv(r),i=!xM(r,n.overflow&&n.overflow.alwaysByViewport);return s_(t,a,n,i)}hv.__getOffsetParent=xf;hv.__getVisibleRectForElement=vv;function TM(t,e,n){var r,a,i=je.getDocument(t),o=i.defaultView||i.parentWindow,s=je.getWindowScrollLeft(o),l=je.getWindowScrollTop(o),u=je.viewportWidth(o),c=je.viewportHeight(o);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?a=e.pageY:a=l+e.clientY;var d={left:r,top:a,width:0,height:0},v=r>=0&&r<=s+u&&a>=0&&a<=l+c,h=[n.points[0],"cc"];return s_(t,d,Eg(Eg({},n),{},{points:h}),v)}function Et(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t;if(Array.isArray(t)&&(a=Fi(t)[0]),!a)return null;var i=rr(a,e,r);return i.props=n?M(M({},i.props),e):i.props,pu(Qe(i.props.class)!=="object","class must be string"),i}const EM=function(t){if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function OM(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function PM(t,e){t!==document.activeElement&&Oa(e,t)&&typeof t.focus=="function"&&t.focus()}function Bg(t,e){var n=null,r=null;function a(o){var s=ke(o,1),l=s[0].target;if(document.documentElement.contains(l)){var u=l.getBoundingClientRect(),c=u.width,d=u.height,v=Math.floor(c),h=Math.floor(d);(n!==v||r!==h)&&Promise.resolve().then(function(){e({width:v,height:h})}),n=v,r=h}}var i=new j1(a);return t&&i.observe(t),function(){i.disconnect()}}const AM=function(t,e){var n=!1,r=null;function a(){clearTimeout(r)}function i(o){if(!n||o===!0){if(t()===!1)return;n=!0,a(),r=setTimeout(function(){n=!1},e.value)}else a(),r=setTimeout(function(){n=!1,i()},e.value)}return[i,function(){n=!1,a()}]};function IM(){this.__data__=[],this.size=0}function gv(t,e){return t===e||t!==t&&e!==e}function yu(t,e){for(var n=t.length;n--;)if(gv(t[n][0],e))return n;return-1}var kM=Array.prototype,MM=kM.splice;function NM(t){var e=this.__data__,n=yu(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():MM.call(e,n,1),--this.size,!0}function RM(t){var e=this.__data__,n=yu(e,t);return n<0?void 0:e[n][1]}function $M(t){return yu(this.__data__,t)>-1}function DM(t,e){var n=this.__data__,r=yu(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Wr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++es))return!1;var u=i.get(t),c=i.get(e);if(u&&c)return u==e&&c==t;var d=-1,v=!0,h=n&I2?new Go:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t-1&&t%1==0&&t<=uN}var cN="[object Arguments]",fN="[object Array]",dN="[object Boolean]",vN="[object Date]",pN="[object Error]",hN="[object Function]",gN="[object Map]",mN="[object Number]",yN="[object Object]",bN="[object RegExp]",wN="[object Set]",_N="[object String]",CN="[object WeakMap]",SN="[object ArrayBuffer]",xN="[object DataView]",TN="[object Float32Array]",EN="[object Float64Array]",ON="[object Int8Array]",PN="[object Int16Array]",AN="[object Int32Array]",IN="[object Uint8Array]",kN="[object Uint8ClampedArray]",MN="[object Uint16Array]",NN="[object Uint32Array]",pt={};pt[TN]=pt[EN]=pt[ON]=pt[PN]=pt[AN]=pt[IN]=pt[kN]=pt[MN]=pt[NN]=!0;pt[cN]=pt[fN]=pt[SN]=pt[dN]=pt[xN]=pt[vN]=pt[pN]=pt[hN]=pt[gN]=pt[mN]=pt[yN]=pt[bN]=pt[wN]=pt[_N]=pt[CN]=!1;function RN(t){return wr(t)&&Cv(t.length)&&!!pt[fa(t)]}function Sv(t){return function(e){return t(e)}}var h_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,So=h_&&typeof module=="object"&&module&&!module.nodeType&&module,$N=So&&So.exports===h_,mc=$N&&U1.process,DN=function(){try{var t=So&&So.require&&So.require("util").types;return t||mc&&mc.binding&&mc.binding("util")}catch{}}();const Pi=DN;var Kg=Pi&&Pi.isTypedArray,LN=Kg?Sv(Kg):RN;const g_=LN;var FN=Object.prototype,BN=FN.hasOwnProperty;function m_(t,e){var n=ir(t),r=!n&&wv(t),a=!n&&!r&&Ml(t),i=!n&&!r&&!a&&g_(t),o=n||r||a||i,s=o?Z2(t.length,String):[],l=s.length;for(var u in t)(e||BN.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_v(u,l)))&&s.push(u);return s}var zN=Object.prototype;function xv(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||zN;return t===n}var jN=G1(Object.keys,Object);const WN=jN;var HN=Object.prototype,VN=HN.hasOwnProperty;function UN(t){if(!xv(t))return WN(t);var e=[];for(var n in Object(t))VN.call(t,n)&&n!="constructor"&&e.push(n);return e}function y_(t){return t!=null&&Cv(t.length)&&!l_(t)}function wu(t){return y_(t)?m_(t):UN(t)}function Tf(t){return f_(t,wu,bv)}var KN=1,GN=Object.prototype,qN=GN.hasOwnProperty;function YN(t,e,n,r,a,i){var o=n&KN,s=Tf(t),l=s.length,u=Tf(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var v=s[d];if(!(o?v in e:qN.call(e,v)))return!1}var h=i.get(t),f=i.get(e);if(h&&f)return h==e&&f==t;var p=!0;i.set(t,e),i.set(e,t);for(var m=o;++d1&&(X=S("div",{class:"".concat(j,"-content")},[X]));var Y=Ce(j,a.class,l.value),ne=f.value||!e.visible,le=ne?cs(I.value.name,I.value):{};return S(Yn,M(M({ref:s},le),{},{onBeforeEnter:T}),{default:function(){return!D||e.visible?dn(S(fR,{target:_(),key:"popup",ref:o,monitorWindowResize:!0,disabled:N.value,align:L,onAlign:E},{default:function(){return S("div",M(M({class:Y,onMouseenter:P,onMouseleave:O,onMousedown:An(G,["capture"])},te({},ln?"onTouchstartPassive":"onTouchstart",An($,["capture"]))),{},{style:Z}),[X])}}),[[$r,f.value]]):null}})}}}),vR=he({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Yk,setup:function(e,n){var r=n.attrs,a=n.slots,i=n.expose,o=z(!1),s=z(!1),l=z();return pe([function(){return e.visible},function(){return e.mobile}],function(){o.value=e.visible,e.visible&&e.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:function(){var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:function(){var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),function(){var u=M(M(M({},e),r),{},{visible:o.value}),c=s.value?S(Jk,M(M({},u),{},{mobile:e.mobile,ref:l}),{default:a.default}):S(dR,M(M({},u),{},{ref:l}),{default:a.default});return S("div",null,[S(Qw,u,null),c])}}});function pR(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function rm(t,e,n){var r=t[e]||{};return M(M({},r),n)}function hR(t,e,n,r){for(var a=n.points,i=Object.keys(t),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var a=this.getDerivedStateFromProps(oA(this),M(M({},this.$data),r));if(a===null)return;r=M(M({},r),a||{})}Ut(this.$data,r),this._.isMounted&&this.$forceUpdate(),Ke(function(){n&&n()})},__emit:function(){var e=[].slice.call(arguments,0),n=e[0];n="on".concat(n[0].toUpperCase()).concat(n.substring(1));var r=this.$props[n]||this.$attrs[n];if(e.length&&r)if(Array.isArray(r))for(var a=0,i=r.length;a1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};wt(w_,{inTriggerContext:n.inTriggerContext,shouldRender:V(function(){var r=e||{},a=r.sPopupVisible,i=r.popupRef,o=r.forceRender,s=r.autoDestroy,l=!1;return(a||i||o)&&(l=!0),!a&&s&&(l=!1),l})})},yR=function(){Tv({},{inTriggerContext:!1});var e=ot(w_,{shouldRender:V(function(){return!1}),inTriggerContext:!1});return{shouldRender:V(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const Af=he({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ee.func.isRequired,didUpdate:Function},setup:function(e,n){var r=n.slots,a=!0,i,o=yR(),s=o.shouldRender;Rd(function(){a=!1,s.value&&(i=e.getContainer())});var l=pe(s,function(){s.value&&!i&&(i=e.getContainer()),i&&l()});return ca(function(){Ke(function(){if(s.value){var u;(u=e.didUpdate)===null||u===void 0||u.call(e,e)}})}),st(function(){i&&i.parentNode&&i.parentNode.removeChild(i)}),function(){if(!s.value)return null;if(a){var u;return(u=r.default)===null||u===void 0?void 0:u.call(r)}return i?S(uu,{to:i},r):null}}});function am(){}function bR(){return""}function wR(t){return t?t.ownerDocument:window.document}var _R=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Cu=he({compatConfig:{MODE:3},name:"Trigger",mixins:[b_],inheritAttrs:!1,props:{action:ee.oneOfType([ee.string,ee.arrayOf(ee.string)]).def([]),showAction:ee.any.def([]),hideAction:ee.any.def([]),getPopupClassNameFromAlign:ee.any.def(bR),onPopupVisibleChange:Function,afterPopupVisibleChange:ee.func.def(am),popup:ee.any,popupStyle:{type:Object,default:void 0},prefixCls:ee.string.def("rc-trigger-popup"),popupClassName:ee.string.def(""),popupPlacement:String,builtinPlacements:ee.object,popupTransitionName:String,popupAnimation:ee.any,mouseEnterDelay:ee.number.def(0),mouseLeaveDelay:ee.number.def(.1),zIndex:Number,focusDelay:ee.number.def(0),blurDelay:ee.number.def(.15),getPopupContainer:Function,getDocument:ee.func.def(wR),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ee.object.def(function(){return{}}),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function,tryPopPortal:Boolean},setup:function(e){var n=V(function(){var l=e.popupPlacement,u=e.popupAlign,c=e.builtinPlacements;return l&&c?rm(c,l,u):u}),r=mR(e.tryPopPortal),a=r.setPortal,i=r.popPortal,o=z(null),s=function(u){o.value=u};return{popPortal:i,setPortal:a,vcTriggerContext:ot("vcTriggerContext",{}),popupRef:o,setPopupRef:s,triggerRef:z(null),align:n,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,n,r=this.$props,a;return this.popupVisible!==void 0?a=!!r.popupVisible:a=!!r.defaultPopupVisible,_R.forEach(function(i){e["fire".concat(i)]=function(o){e.fireEvents(i,o)}}),(n=this.setPortal)===null||n===void 0||n.call(this,S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:a,sPopupVisible:a,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){wt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),Tv(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ue.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,n=this.$data;if(n.sPopupVisible){var r;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(r=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=jn(r,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(r=r||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=jn(r,"touchstart",this.onDocumentClick,ln?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(r=r||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=jn(r,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=jn(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var n=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,n,n?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var n;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&Oa((n=this.popupRef)===null||n===void 0?void 0:n.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){Oa(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var r=!this.$data.sPopupVisible;(this.isClickToHide()&&!r||r&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,n=this.vcTriggerContext,r=n===void 0?{}:n;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),r.onPopupMouseDown&&r.onPopupMouseDown.apply(r,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var n=e.target,r=this.getRootDomNode(),a=this.getPopupDomNode();(!Oa(r,n)||this.isContextMenuOnly())&&!Oa(a,n)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var n=Ia(this.triggerRef);return Ia(e(n))}try{var r=Ia(this.triggerRef);if(r)return r}catch{}return Ia(this)},handleGetPopupClassFromAlign:function(e){var n=[],r=this.$props,a=r.popupPlacement,i=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return a&&i&&n.push(hR(i,o,e,s)),l&&n.push(l(e)),n.join(" ")},getPopupAlign:function(){var e=this.$props,n=e.popupPlacement,r=e.popupAlign,a=e.builtinPlacements;return n&&a?rm(a,n,r):r},getComponent:function(){var e=this,n={};this.isMouseEnterToShow()&&(n.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(n.onMouseleave=this.onPopupMouseleave),n.onMousedown=this.onPopupMouseDown,n[ln?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var r=this.handleGetPopupClassFromAlign,a=this.getRootDomNode,i=this.getContainer,o=this.$attrs,s=this.$props,l=s.prefixCls,u=s.destroyPopupOnHide,c=s.popupClassName,d=s.popupAnimation,v=s.popupTransitionName,h=s.popupStyle,f=s.mask,p=s.maskAnimation,m=s.maskTransitionName,g=s.zIndex,y=s.stretch,b=s.alignPoint,w=s.mobile,_=s.forceRender,C=this.$data,E=C.sPopupVisible,I=C.point,T=M(M({prefixCls:l,destroyPopupOnHide:u,visible:E,point:b?I:null,align:this.align,animation:d,getClassNameFromAlign:r,stretch:y,getRootDomNode:a,mask:f,zIndex:g,transitionName:v,maskAnimation:p,maskTransitionName:m,getContainer:i,class:c,style:h,onAlign:o.onPopupAlign||am},n),{},{ref:this.setPopupRef,mobile:w,forceRender:_});return S(vR,T,{default:this.$slots.popup||function(){return J1(e,"popup")}})},attachParent:function(e){var n=this;Ue.cancel(this.attachId);var r=this.$props,a=r.getPopupContainer,i=r.getDocument,o=this.getRootDomNode(),s;a?(o||a.length===0)&&(s=a(o)):s=i(this.getRootDomNode()).body,s?s.appendChild(e):this.attachId=Ue(function(){n.attachParent(e)})},getContainer:function(){var e=this.$props,n=e.getDocument,r=n(this.getRootDomNode()).createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",this.attachParent(r),r},setPopupVisible:function(e,n){var r=this.alignPoint,a=this.sPopupVisible,i=this.onPopupVisibleChange;this.clearDelayTimer(),a!==e&&(oi(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:a}),i&&i(e)),r&&n&&e&&this.setPoint(n)},setPoint:function(e){var n=this.$props.alignPoint;!n||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,n,r){var a=this,i=n*1e3;if(this.clearDelayTimer(),i){var o=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=Gk(function(){a.setPopupVisible(e,o),a.clearDelayTimer()},i)}else this.setPopupVisible(e,r)},clearDelayTimer:function(){this.delayTimer&&(Kk(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var n=function(){},r=Fh(this);return this.childOriginEvents[e]&&r[e]?this["fire".concat(e)]:(n=this.childOriginEvents[e]||r[e]||n,n)},isClickToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("contextmenu")!==-1||r.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("click")!==-1||r.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("hover")!==-1||r.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("hover")!==-1||r.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,n=e.action,r=e.showAction;return n.indexOf("focus")!==-1||r.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,n=e.action,r=e.hideAction;return n.indexOf("focus")!==-1||r.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,n){this.childOriginEvents[e]&&this.childOriginEvents[e](n);var r=this.$props[e]||this.$attrs[e];r&&r(n)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,n=this.$attrs,r=Fi(iA(this)),a=this.$props.alignPoint,i=r[0];this.childOriginEvents=Fh(i);var o={key:"trigger"};this.isContextmenuToShow()?o.onContextmenu=this.onContextmenu:o.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMousedown=this.onMousedown,o[ln?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(o.onClick=this.createTwoChains("onClick"),o.onMousedown=this.createTwoChains("onMousedown"),o[ln?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(o.onMouseenter=this.onMouseenter,a&&(o.onMousemove=this.onMouseMove)):o.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?o.onMouseleave=this.onMouseleave:o.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=function(c){c&&(!c.relatedTarget||!Oa(c.target,c.relatedTarget))&&e.createTwoChains("onBlur")(c)});var s=Ce(i&&i.props&&i.props.class,n.class);s&&(o.class=s);var l=Et(i,M(M({},o),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var u=S(Af,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return S(Re,null,[u,l])}});var CR=["empty"],SR=function(e){var n=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}},xR=he({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ee.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ee.oneOfType([Number,Boolean]).def(!0),popupElement:ee.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=V(function(){var l=e.dropdownMatchSelectWidth;return SR(l)}),s=z();return i({getPopupElement:function(){return s.value}}),function(){var l=M(M({},e),a),u=l.empty,c=u===void 0?!1:u,d=bt(l,CR),v=d.visible,h=d.dropdownAlign,f=d.prefixCls,p=d.popupElement,m=d.dropdownClassName,g=d.dropdownStyle,y=d.direction,b=y===void 0?"ltr":y,w=d.placement,_=d.dropdownMatchSelectWidth,C=d.containerWidth,E=d.dropdownRender,I=d.animation,T=d.transitionName,N=d.getPopupContainer,R=d.getTriggerDOMNode,F=d.onPopupVisibleChange,L=d.onPopupMouseEnter,j="".concat(f,"-dropdown"),D=p;E&&(D=E({menuNode:p,props:e}));var P=I?"".concat(j,"-").concat(I):T,O=M({minWidth:"".concat(C,"px")},g);return typeof _=="number"?O.width="".concat(_,"px"):_&&(O.width="".concat(C,"px")),S(Cu,M(M({},e),{},{showAction:F?["click"]:[],hideAction:F?["click"]:[],popupPlacement:w||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:o.value,prefixCls:j,popupTransitionName:P,popupAlign:h,popupVisible:v,getPopupContainer:N,popupClassName:Ce(m,te({},"".concat(j,"-empty"),c)),popupStyle:O,getTriggerDOMNode:R,onPopupVisibleChange:F}),{default:r.default,popup:function(){return S("div",{ref:s,onMouseenter:L},[D])}})}}});const TR=xR;var Ne={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=Ne.F1&&n<=Ne.F12)return!1;switch(n){case Ne.ALT:case Ne.CAPS_LOCK:case Ne.CONTEXT_MENU:case Ne.CTRL:case Ne.DOWN:case Ne.END:case Ne.ESC:case Ne.HOME:case Ne.INSERT:case Ne.LEFT:case Ne.MAC_FF_META:case Ne.META:case Ne.NUMLOCK:case Ne.NUM_CENTER:case Ne.PAGE_DOWN:case Ne.PAGE_UP:case Ne.PAUSE:case Ne.PRINT_SCREEN:case Ne.RIGHT:case Ne.SHIFT:case Ne.UP:case Ne.WIN_KEY:case Ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ne.ZERO&&e<=Ne.NINE||e>=Ne.NUM_ZERO&&e<=Ne.NUM_MULTIPLY||e>=Ne.A&&e<=Ne.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Ne.SPACE:case Ne.QUESTION_MARK:case Ne.NUM_PLUS:case Ne.NUM_MINUS:case Ne.NUM_PERIOD:case Ne.NUM_DIVISION:case Ne.SEMICOLON:case Ne.DASH:case Ne.EQUALS:case Ne.COMMA:case Ne.PERIOD:case Ne.SLASH:case Ne.APOSTROPHE:case Ne.SINGLE_QUOTE:case Ne.OPEN_SQUARE_BRACKET:case Ne.BACKSLASH:case Ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Ae=Ne;var Su=function(e,n){var r,a=n.slots,i=e.class,o=e.customizeIcon,s=e.customizeIconProps,l=e.onMousedown,u=e.onClick,c;return typeof o=="function"?c=o(s):c=o,S("span",{class:i,onMousedown:function(v){v.preventDefault(),l&&l(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[c!==void 0?c:S("span",{class:i.split(/\s+/).map(function(d){return"".concat(d,"-icon")})},[(r=a.default)===null||r===void 0?void 0:r.call(a)])])};Su.inheritAttrs=!1;Su.displayName="TransBtn";Su.props={class:String,customizeIcon:ee.any,customizeIconProps:ee.any,onMousedown:Function,onClick:Function};const Nl=Su;function ER(t){t.target.composing=!0}function im(t){t.target.composing&&(t.target.composing=!1,OR(t.target,"input"))}function OR(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function yc(t,e,n,r){t.addEventListener(e,n,r)}var PR={created:function(e,n){(!n.modifiers||!n.modifiers.lazy)&&(yc(e,"compositionstart",ER),yc(e,"compositionend",im),yc(e,"change",im))}};const vs=PR;var AR={inputRef:ee.any,prefixCls:String,id:String,inputElement:ee.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ee.oneOfType([ee.number,ee.string]),attrs:ee.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},IR=he({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:AR,setup:function(e){var n=null,r=ot("VCSelectContainerEvent");return function(){var a,i,o=e.prefixCls,s=e.id,l=e.inputElement,u=e.disabled,c=e.tabindex,d=e.autofocus,v=e.autocomplete,h=e.editable,f=e.activeDescendantId,p=e.value,m=e.onKeydown,g=e.onMousedown,y=e.onChange,b=e.onPaste,w=e.onCompositionstart,_=e.onCompositionend,C=e.onFocus,E=e.onBlur,I=e.open,T=e.inputRef,N=e.attrs,R=l||dn(S("input",null,null),[[vs]]),F=R.props||{},L=F.onKeydown,j=F.onInput,D=F.onFocus,P=F.onBlur,O=F.onMousedown,k=F.onCompositionstart,$=F.onCompositionend,G=F.style;return R=Et(R,Ut(M(M(M({type:"search"},F),{},{id:s,ref:T,disabled:u,tabindex:c,autocomplete:v||"off",autofocus:d,class:Ce("".concat(o,"-selection-search-input"),(a=R)===null||a===void 0||(i=a.props)===null||i===void 0?void 0:i.class),role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":f},N),{},{value:h?p:"",readonly:!h,unselectable:h?null:"on",style:M(M({},G),{},{opacity:h?null:0}),onKeydown:function(Z){m(Z),L&&L(Z)},onMousedown:function(Z){g(Z),O&&O(Z)},onInput:function(Z){y(Z),j&&j(Z)},onCompositionstart:function(Z){w(Z),k&&k(Z)},onCompositionend:function(Z){_(Z),$&&$(Z)},onPaste:b,onFocus:function(){clearTimeout(n),D&&D(arguments.length<=0?void 0:arguments[0]),C&&C(arguments.length<=0?void 0:arguments[0]),r==null||r.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var Z=arguments.length,X=new Array(Z),Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=k({},e);var r={};return Object.keys(t).forEach(function(a){(n.aria&&(a==="role"||sm(a,NR))||n.data&&sm(a,RR)||n.attr&&(om.includes(a)||om.includes(a.toLowerCase())))&&(r[a]=t[a])}),r}var C_=Symbol("OverflowContextProviderKey"),If=he({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,n){var r=n.slots;return wt(C_,V(function(){return e.value})),function(){var a;return(a=r.default)===null||a===void 0?void 0:a.call(r)}}}),$R=function(){return ot(C_,V(function(){return null}))},DR=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],Za=void 0;const ll=he({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:ee.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:ee.any,invalidate:Boolean},setup:function(e,n){var r=n.slots,a=n.expose,i=V(function(){return e.responsive&&!e.display}),o=z();a({itemNodeRef:o});function s(l){e.registerSize(e.itemKey,l)}return vn(function(){s(null)}),function(){var l,u=e.prefixCls,c=e.invalidate,d=e.item,v=e.renderItem,h=e.responsive;e.registerSize,e.itemKey,e.display;var f=e.order,p=e.component,m=p===void 0?"div":p,g=bt(e,DR),y=(l=r.default)===null||l===void 0?void 0:l.call(r),b=v&&d!==Za?v(d):y,w;c||(w={opacity:i.value?0:1,height:i.value?0:Za,overflowY:i.value?"hidden":Za,order:h?f:Za,pointerEvents:i.value?"none":Za,position:i.value?"absolute":Za});var _={};return i.value&&(_["aria-hidden"]=!0),S(Ti,{disabled:!h,onResize:function(E){var I=E.offsetWidth;s(I)}},{default:function(){return S(m,k(k(k({class:Ce(!c&&u),style:w},_),g),{},{ref:o}),{default:function(){return[b]}})}})}}});var LR=["component"],FR=["className"],BR=["class"];const zR=he({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:ee.any,title:ee.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,n){var r=n.slots,a=n.attrs,i=$R();return function(){if(!i.value){var o,s=e.component,l=s===void 0?"div":s,u=bt(e,LR);return S(l,k(k({},u),a),{default:function(){return[(o=r.default)===null||o===void 0?void 0:o.call(r)]}})}var c=i.value,d=c.className,v=bt(c,FR),h=a.class,f=bt(a,BR);return S(If,{value:null},{default:function(){return[S(ll,k(k(k({class:Ce(d,h)},v),f),e),r)]}})}}});var jR=["class","style"],S_="responsive",x_="invalidate";function WR(t){return"+ ".concat(t.length," ...")}var HR=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:ee.any,component:String,itemComponent:ee.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},Tu=he({name:"Overflow",inheritAttrs:!1,props:HR(),emits:["visibleChange"],setup:function(e,n){var r=n.attrs,a=n.emit,i=n.slots,o=V(function(){return e.ssr==="full"}),s=z(null),l=V(function(){return s.value||0}),u=z(new Map),c=z(0),d=z(0),v=z(0),h=z(null),f=z(null),p=V(function(){return f.value===null&&o.value?Number.MAX_SAFE_INTEGER:f.value||0}),m=z(!1),g=V(function(){return"".concat(e.prefixCls,"-item")}),y=V(function(){return Math.max(c.value,d.value)}),b=V(function(){return!!(e.data.length&&e.maxCount===S_)}),w=V(function(){return e.maxCount===x_}),_=V(function(){return b.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),C=V(function(){var P=e.data;return b.value?s.value===null&&o.value?P=e.data:P=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(P=e.data.slice(0,e.maxCount)),P}),E=V(function(){return b.value?e.data.slice(p.value+1):e.data.slice(C.value.length)}),I=function(O,M){var $;return typeof e.itemKey=="function"?e.itemKey(O):($=e.itemKey&&(O==null?void 0:O[e.itemKey]))!==null&&$!==void 0?$:M},T=V(function(){return e.renderItem||function(P){return P}}),N=function(O,M){f.value=O,M||(m.value=Ol.value){N($-1),h.value=P-G-v.value+d.value;break}}e.suffix&&D(0)+v.value>l.value&&(h.value=null)}}),function(){var P=m.value&&!!E.value.length,O=e.itemComponent,M=e.renderRawItem,$=e.renderRawRest,G=e.renderRest,J=e.prefixCls,Z=J===void 0?"rc-overflow":J,X=e.suffix,Y=e.component,ne=Y===void 0?"div":Y,le=e.id,ge=e.onMousedown,_e=r.class,me=r.style,ye=bt(r,jR),Se={};h.value!==null&&b.value&&(Se={position:"absolute",left:"".concat(h.value,"px"),top:0});var B={prefixCls:g.value,responsive:b.value,component:O,invalidate:w.value},x=M?function(se,ie){var re=I(se,ie);return S(If,{key:re,value:k(k({},B),{},{order:ie,item:se,itemKey:re,registerSize:F,display:ie<=p.value})},{default:function(){return[M(se,ie)]}})}:function(se,ie){var re=I(se,ie);return S(ll,k(k({},B),{},{order:ie,key:re,item:se,renderItem:T.value,itemKey:re,registerSize:F,display:ie<=p.value}),null)},A=function(){return null},W={order:P?p.value:Number.MAX_SAFE_INTEGER,className:"".concat(g.value," ").concat(g.value,"-rest"),registerSize:L,display:P};if($)$&&(A=function(){return S(If,{value:k(k({},B),W)},{default:function(){return[$(E.value)]}})});else{var K=G||WR;A=function(){return S(ll,k(k({},B),W),{default:function(){return typeof K=="function"?K(E.value):K}})}}var U=function(){var ie;return S(ne,k({id:le,class:Ce(!w.value&&Z,_e),style:me,onMousedown:ge},ye),{default:function(){return[C.value.map(x),_.value?A():null,X&&S(ll,k(k({},B),{},{order:p.value,class:"".concat(g.value,"-suffix"),registerSize:j,display:!0,style:Se}),{default:function(){return X}}),(ie=i.default)===null||ie===void 0?void 0:ie.call(i)]}})};return S(Ti,{disabled:!b.value,onResize:R},{default:U})}}});Tu.Item=zR;Tu.RESPONSIVE=S_;Tu.INVALIDATE=x_;const wi=Tu;var VR=Symbol("TreeSelectLegacyContextPropsKey");function Ev(){return ot(VR,{})}var UR={id:String,prefixCls:String,values:ee.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ee.any,placeholder:ee.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ee.oneOfType([ee.number,ee.string]),removeIcon:ee.any,choiceTransitionName:String,maxTagCount:ee.oneOfType([ee.number,ee.string]),maxTagTextLength:Number,maxTagPlaceholder:ee.any.def(function(){return function(t){return"+ ".concat(t.length," ...")}}),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},lm=function(e){e.preventDefault(),e.stopPropagation()},KR=he({name:"MultipleSelectSelector",inheritAttrs:!1,props:UR,setup:function(e){var n=z(),r=z(0),a=z(!1),i=Ev(),o=V(function(){return"".concat(e.prefixCls,"-selection")}),s=V(function(){return e.open||e.mode==="tags"?e.searchValue:""}),l=V(function(){return e.mode==="tags"||e.showSearch&&(e.open||a.value)});Ve(function(){pe(s,function(){r.value=n.value.scrollWidth},{flush:"post",immediate:!0})});function u(h,f,p,m,g){return S("span",{class:Ce("".concat(o.value,"-item"),te({},"".concat(o.value,"-item-disabled"),p)),title:typeof h=="string"||typeof h=="number"?h.toString():void 0},[S("span",{class:"".concat(o.value,"-item-content")},[f]),m&&S(Nl,{class:"".concat(o.value,"-item-remove"),onMousedown:lm,onClick:g,customizeIcon:e.removeIcon},{default:function(){return[_n("×")]}})])}function c(h,f,p,m,g,y){var b=function(E){lm(E),e.onToggleOpen(!open)},w=y;if(i.keyEntities){var _;w=((_=i.keyEntities[h])===null||_===void 0?void 0:_.node)||{}}return S("span",{key:h,onMousedown:b},[e.tagRender({label:f,value:h,disabled:p,closable:m,onClose:g,option:w})])}function d(h){var f=h.disabled,p=h.label,m=h.value,g=h.option,y=!e.disabled&&!f,b=p;if(typeof e.maxTagTextLength=="number"&&(typeof p=="string"||typeof p=="number")){var w=String(b);w.length>e.maxTagTextLength&&(b="".concat(w.slice(0,e.maxTagTextLength),"..."))}var _=function(E){var I;E&&E.stopPropagation(),(I=e.onRemove)===null||I===void 0||I.call(e,h)};return typeof e.tagRender=="function"?c(m,b,f,y,_,g):u(p,b,f,y,_)}function v(h){var f=e.maxTagPlaceholder,p=f===void 0?function(g){return"+ ".concat(g.length," ...")}:f,m=typeof p=="function"?p(h):p;return u(m,m,!1)}return function(){var h=e.id,f=e.prefixCls,p=e.values,m=e.open,g=e.inputRef,y=e.placeholder,b=e.disabled,w=e.autofocus,_=e.autocomplete,C=e.activeDescendantId,E=e.tabindex,I=e.onInputChange,T=e.onInputPaste,N=e.onInputKeyDown,R=e.onInputMouseDown,F=e.onInputCompositionStart,L=e.onInputCompositionEnd,j=S("div",{class:"".concat(o.value,"-search"),style:{width:r.value+"px"},key:"input"},[S(__,{inputRef:g,open:m,prefixCls:f,id:h,inputElement:null,disabled:b,autofocus:w,autocomplete:_,editable:l.value,activeDescendantId:C,value:s.value,onKeydown:N,onMousedown:R,onChange:I,onPaste:T,onCompositionstart:F,onCompositionend:L,tabindex:E,attrs:xu(e,!0),onFocus:function(){return a.value=!0},onBlur:function(){return a.value=!1}},null),S("span",{ref:n,class:"".concat(o.value,"-search-mirror"),"aria-hidden":!0},[s.value,_n(" ")])]),D=S(wi,{prefixCls:"".concat(o.value,"-overflow"),data:p,renderItem:d,renderRest:v,suffix:j,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return S(Re,null,[D,!p.length&&!s.value&&S("span",{class:"".concat(o.value,"-placeholder")},[y])])}}});const GR=KR;var qR={inputElement:ee.any,id:String,prefixCls:String,values:ee.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ee.any,placeholder:ee.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ee.oneOfType([ee.number,ee.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ov=he({name:"SingleSelector",setup:function(e){var n=z(!1),r=V(function(){return e.mode==="combobox"}),a=V(function(){return r.value||e.showSearch}),i=V(function(){var c=e.searchValue||"";return r.value&&e.activeValue&&!n.value&&(c=e.activeValue),c}),o=Ev();pe([r,function(){return e.activeValue}],function(){r.value&&(n.value=!1)},{immediate:!0});var s=V(function(){return e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!i.value}),l=V(function(){var c=e.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),u=function(){if(e.values[0])return null;var d=s.value?{visibility:"hidden"}:void 0;return S("span",{class:"".concat(e.prefixCls,"-selection-placeholder"),style:d},[e.placeholder])};return function(){var c,d=e.inputElement,v=e.prefixCls,h=e.id,f=e.values,p=e.inputRef,m=e.disabled,g=e.autofocus,y=e.autocomplete,b=e.activeDescendantId,w=e.open,_=e.tabindex,C=e.optionLabelRender,E=e.onInputKeyDown,I=e.onInputMouseDown,T=e.onInputChange,N=e.onInputPaste,R=e.onInputCompositionStart,F=e.onInputCompositionEnd,L=f[0],j=null;if(L&&o.customSlots){var D,P,O,M=(D=L.key)!==null&&D!==void 0?D:L.value,$=((P=o.keyEntities[M])===null||P===void 0?void 0:P.node)||{};j=o.customSlots[(O=$.slots)===null||O===void 0?void 0:O.title]||o.customSlots.title||L.label,typeof j=="function"&&(j=j($))}else j=C&&L?C(L.option):L==null?void 0:L.label;return S(Re,null,[S("span",{class:"".concat(v,"-selection-search")},[S(__,{inputRef:p,prefixCls:v,id:h,open:w,inputElement:d,disabled:m,autofocus:g,autocomplete:y,editable:a.value,activeDescendantId:b,value:i.value,onKeydown:E,onMousedown:I,onChange:function(J){n.value=!0,T(J)},onPaste:N,onCompositionstart:R,onCompositionend:F,tabindex:_,attrs:xu(e,!0)},null)]),!r.value&&L&&!s.value&&S("span",{class:"".concat(v,"-selection-item"),title:l.value},[S(Re,{key:(c=L.key)!==null&&c!==void 0?c:L.value},[j])]),u()])}}});Ov.props=qR;Ov.inheritAttrs=!1;const YR=Ov;function JR(t){return![Ae.ESC,Ae.SHIFT,Ae.BACKSPACE,Ae.TAB,Ae.WIN_KEY,Ae.ALT,Ae.META,Ae.WIN_KEY_RIGHT,Ae.CTRL,Ae.SEMICOLON,Ae.EQUALS,Ae.CAPS_LOCK,Ae.CONTEXT_MENU,Ae.F1,Ae.F2,Ae.F3,Ae.F4,Ae.F5,Ae.F6,Ae.F7,Ae.F8,Ae.F9,Ae.F10,Ae.F11,Ae.F12].includes(t)}function T_(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,n;st(function(){clearTimeout(n)});function r(a){(a||e===null)&&(e=a),clearTimeout(n),n=setTimeout(function(){e=null},t)}return[function(){return e},r]}function Yo(){var t=function e(n){e.current=n};return t}var XR=he({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ee.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ee.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ee.oneOfType([ee.number,ee.string]),disabled:{type:Boolean,default:void 0},placeholder:ee.any,removeIcon:ee.any,maxTagCount:ee.oneOfType([ee.number,ee.string]),maxTagTextLength:Number,maxTagPlaceholder:ee.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup:function(e,n){var r=n.expose,a=Yo(),i=!1,o=T_(0),s=Me(o,2),l=s[0],u=s[1],c=function(_){var C=_.which;(C===Ae.UP||C===Ae.DOWN)&&_.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(_),C===Ae.ENTER&&e.mode==="tags"&&!i&&!e.open&&e.onSearchSubmit(_.target.value),JR(C)&&e.onToggleOpen(!0)},d=function(){u(!0)},v=null,h=function(_){e.onSearch(_,!0,i)!==!1&&e.onToggleOpen(!0)},f=function(){i=!0},p=function(_){i=!1,e.mode!=="combobox"&&h(_.target.value)},m=function(_){var C=_.target.value;if(e.tokenWithEnter&&v&&/[\r\n]/.test(v)){var E=v.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");C=C.replace(E,v)}v=null,h(C)},g=function(_){var C=_.clipboardData,E=C.getData("text");v=E},y=function(_){var C=_.target;if(C!==a.current){var E=document.body.style.msTouchAction!==void 0;E?setTimeout(function(){a.current.focus()}):a.current.focus()}},b=function(_){var C=l();_.target!==a.current&&!C&&_.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!C)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return r({focus:function(){a.current.focus()},blur:function(){a.current.blur()}}),function(){var w=e.prefixCls,_=e.domRef,C=e.mode,E={inputRef:a,onInputKeyDown:c,onInputMouseDown:d,onInputChange:m,onInputPaste:g,onInputCompositionStart:f,onInputCompositionEnd:p},I=C==="multiple"||C==="tags"?S(GR,k(k({},e),E),null):S(YR,k(k({},e),E),null);return S("div",{ref:_,class:"".concat(w,"-selector"),onClick:y,onMousedown:b},[I])}}});const ZR=XR;function QR(t,e,n){function r(a){var i,o,s,l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l);var u=[(i=t[0])===null||i===void 0?void 0:i.value,(o=t[1])===null||o===void 0||(s=o.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(function(c){return c&&!c.contains(l)&&c!==l})&&n(!1)}Ve(function(){window.addEventListener("mousedown",r)}),st(function(){window.removeEventListener("mousedown",r)})}function e$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=z(!1),n,r=function(){clearTimeout(n)};Ve(function(){r()});var a=function(o,s){r(),n=setTimeout(function(){e.value=o,s&&s()},t)};return[e,a,r]}var E_=Symbol("BaseSelectContextKey");function t$(t){return wt(E_,t)}function n$(){return ot(E_,{})}const O_=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4)))};function P_(t){if(!dt(t))return ct(t);var e=new Proxy({},{get:function(r,a,i){return Reflect.get(t.value,a,i)},set:function(r,a,i){return t.value[a]=i,!0},deleteProperty:function(r,a){return Reflect.deleteProperty(t.value,a)},has:function(r,a){return Reflect.has(t.value,a)},ownKeys:function(){return Object.keys(t.value)},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}}});return ct(e)}var r$=["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"],a$=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],i$=function(){return{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ee.any,emptyOptions:Boolean}},A_=function(){return{showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ee.any,placeholder:ee.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ee.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ee.any,clearIcon:ee.any,removeIcon:ee.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}},o$=function(){return k(k({},i$()),A_())};function I_(t){return t==="tags"||t==="multiple"}const s$=he({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:pn(o$(),{showAction:[],notFoundContent:"Not Found"}),setup:function(e,n){var r=n.attrs,a=n.expose,i=n.slots,o=V(function(){return I_(e.mode)}),s=V(function(){return e.showSearch!==void 0?e.showSearch:o.value||e.mode==="combobox"}),l=z(!1);Ve(function(){l.value=O_()});var u=Ev(),c=z(null),d=Yo(),v=z(null),h=z(null),f=z(null),p=e$(),m=Me(p,3),g=m[0],y=m[1],b=m[2],w=function(){var x;(x=h.value)===null||x===void 0||x.focus()},_=function(){var x;(x=h.value)===null||x===void 0||x.blur()};a({focus:w,blur:_,scrollTo:function(x){var A;return(A=f.value)===null||A===void 0?void 0:A.scrollTo(x)}});var C=V(function(){var B;if(e.mode!=="combobox")return e.searchValue;var x=(B=e.displayValues[0])===null||B===void 0?void 0:B.value;return typeof x=="string"||typeof x=="number"?String(x):""}),E=e.open!==void 0?e.open:e.defaultOpen,I=z(E),T=z(E),N=function(x){I.value=e.open!==void 0?e.open:x,T.value=I.value};pe(function(){return e.open},function(){N(e.open)});var R=V(function(){return!e.notFoundContent&&e.emptyOptions});yt(function(){T.value=I.value,(e.disabled||R.value&&T.value&&e.mode==="combobox")&&(T.value=!1)});var F=V(function(){return R.value?!1:T.value}),L=function(x){var A=x!==void 0?x:!T.value;I.value!==A&&!e.disabled&&(N(A),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(A))},j=V(function(){return(e.tokenSeparators||[]).some(function(B){return[` + onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,om="".concat(kR," ").concat(MR).split(/[\s\n]+/),NR="aria-",RR="data-";function sm(t,e){return t.indexOf(e)===0}function xu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=M({},e);var r={};return Object.keys(t).forEach(function(a){(n.aria&&(a==="role"||sm(a,NR))||n.data&&sm(a,RR)||n.attr&&(om.includes(a)||om.includes(a.toLowerCase())))&&(r[a]=t[a])}),r}var C_=Symbol("OverflowContextProviderKey"),If=he({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,n){var r=n.slots;return wt(C_,V(function(){return e.value})),function(){var a;return(a=r.default)===null||a===void 0?void 0:a.call(r)}}}),$R=function(){return ot(C_,V(function(){return null}))},DR=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],Za=void 0;const ll=he({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:ee.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:ee.any,invalidate:Boolean},setup:function(e,n){var r=n.slots,a=n.expose,i=V(function(){return e.responsive&&!e.display}),o=z();a({itemNodeRef:o});function s(l){e.registerSize(e.itemKey,l)}return vn(function(){s(null)}),function(){var l,u=e.prefixCls,c=e.invalidate,d=e.item,v=e.renderItem,h=e.responsive;e.registerSize,e.itemKey,e.display;var f=e.order,p=e.component,m=p===void 0?"div":p,g=bt(e,DR),y=(l=r.default)===null||l===void 0?void 0:l.call(r),b=v&&d!==Za?v(d):y,w;c||(w={opacity:i.value?0:1,height:i.value?0:Za,overflowY:i.value?"hidden":Za,order:h?f:Za,pointerEvents:i.value?"none":Za,position:i.value?"absolute":Za});var _={};return i.value&&(_["aria-hidden"]=!0),S(Ti,{disabled:!h,onResize:function(E){var I=E.offsetWidth;s(I)}},{default:function(){return S(m,M(M(M({class:Ce(!c&&u),style:w},_),g),{},{ref:o}),{default:function(){return[b]}})}})}}});var LR=["component"],FR=["className"],BR=["class"];const zR=he({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:ee.any,title:ee.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,n){var r=n.slots,a=n.attrs,i=$R();return function(){if(!i.value){var o,s=e.component,l=s===void 0?"div":s,u=bt(e,LR);return S(l,M(M({},u),a),{default:function(){return[(o=r.default)===null||o===void 0?void 0:o.call(r)]}})}var c=i.value,d=c.className,v=bt(c,FR),h=a.class,f=bt(a,BR);return S(If,{value:null},{default:function(){return[S(ll,M(M(M({class:Ce(d,h)},v),f),e),r)]}})}}});var jR=["class","style"],S_="responsive",x_="invalidate";function WR(t){return"+ ".concat(t.length," ...")}var HR=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:ee.any,component:String,itemComponent:ee.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},Tu=he({name:"Overflow",inheritAttrs:!1,props:HR(),emits:["visibleChange"],setup:function(e,n){var r=n.attrs,a=n.emit,i=n.slots,o=V(function(){return e.ssr==="full"}),s=z(null),l=V(function(){return s.value||0}),u=z(new Map),c=z(0),d=z(0),v=z(0),h=z(null),f=z(null),p=V(function(){return f.value===null&&o.value?Number.MAX_SAFE_INTEGER:f.value||0}),m=z(!1),g=V(function(){return"".concat(e.prefixCls,"-item")}),y=V(function(){return Math.max(c.value,d.value)}),b=V(function(){return!!(e.data.length&&e.maxCount===S_)}),w=V(function(){return e.maxCount===x_}),_=V(function(){return b.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),C=V(function(){var P=e.data;return b.value?s.value===null&&o.value?P=e.data:P=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(P=e.data.slice(0,e.maxCount)),P}),E=V(function(){return b.value?e.data.slice(p.value+1):e.data.slice(C.value.length)}),I=function(O,k){var $;return typeof e.itemKey=="function"?e.itemKey(O):($=e.itemKey&&(O==null?void 0:O[e.itemKey]))!==null&&$!==void 0?$:k},T=V(function(){return e.renderItem||function(P){return P}}),N=function(O,k){f.value=O,k||(m.value=Ol.value){N($-1),h.value=P-G-v.value+d.value;break}}e.suffix&&D(0)+v.value>l.value&&(h.value=null)}}),function(){var P=m.value&&!!E.value.length,O=e.itemComponent,k=e.renderRawItem,$=e.renderRawRest,G=e.renderRest,J=e.prefixCls,Z=J===void 0?"rc-overflow":J,X=e.suffix,Y=e.component,ne=Y===void 0?"div":Y,le=e.id,ge=e.onMousedown,_e=r.class,me=r.style,ye=bt(r,jR),Se={};h.value!==null&&b.value&&(Se={position:"absolute",left:"".concat(h.value,"px"),top:0});var B={prefixCls:g.value,responsive:b.value,component:O,invalidate:w.value},x=k?function(se,ie){var re=I(se,ie);return S(If,{key:re,value:M(M({},B),{},{order:ie,item:se,itemKey:re,registerSize:F,display:ie<=p.value})},{default:function(){return[k(se,ie)]}})}:function(se,ie){var re=I(se,ie);return S(ll,M(M({},B),{},{order:ie,key:re,item:se,renderItem:T.value,itemKey:re,registerSize:F,display:ie<=p.value}),null)},A=function(){return null},W={order:P?p.value:Number.MAX_SAFE_INTEGER,className:"".concat(g.value," ").concat(g.value,"-rest"),registerSize:L,display:P};if($)$&&(A=function(){return S(If,{value:M(M({},B),W)},{default:function(){return[$(E.value)]}})});else{var K=G||WR;A=function(){return S(ll,M(M({},B),W),{default:function(){return typeof K=="function"?K(E.value):K}})}}var U=function(){var ie;return S(ne,M({id:le,class:Ce(!w.value&&Z,_e),style:me,onMousedown:ge},ye),{default:function(){return[C.value.map(x),_.value?A():null,X&&S(ll,M(M({},B),{},{order:p.value,class:"".concat(g.value,"-suffix"),registerSize:j,display:!0,style:Se}),{default:function(){return X}}),(ie=i.default)===null||ie===void 0?void 0:ie.call(i)]}})};return S(Ti,{disabled:!b.value,onResize:R},{default:U})}}});Tu.Item=zR;Tu.RESPONSIVE=S_;Tu.INVALIDATE=x_;const wi=Tu;var VR=Symbol("TreeSelectLegacyContextPropsKey");function Ev(){return ot(VR,{})}var UR={id:String,prefixCls:String,values:ee.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ee.any,placeholder:ee.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ee.oneOfType([ee.number,ee.string]),removeIcon:ee.any,choiceTransitionName:String,maxTagCount:ee.oneOfType([ee.number,ee.string]),maxTagTextLength:Number,maxTagPlaceholder:ee.any.def(function(){return function(t){return"+ ".concat(t.length," ...")}}),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},lm=function(e){e.preventDefault(),e.stopPropagation()},KR=he({name:"MultipleSelectSelector",inheritAttrs:!1,props:UR,setup:function(e){var n=z(),r=z(0),a=z(!1),i=Ev(),o=V(function(){return"".concat(e.prefixCls,"-selection")}),s=V(function(){return e.open||e.mode==="tags"?e.searchValue:""}),l=V(function(){return e.mode==="tags"||e.showSearch&&(e.open||a.value)});Ve(function(){pe(s,function(){r.value=n.value.scrollWidth},{flush:"post",immediate:!0})});function u(h,f,p,m,g){return S("span",{class:Ce("".concat(o.value,"-item"),te({},"".concat(o.value,"-item-disabled"),p)),title:typeof h=="string"||typeof h=="number"?h.toString():void 0},[S("span",{class:"".concat(o.value,"-item-content")},[f]),m&&S(Nl,{class:"".concat(o.value,"-item-remove"),onMousedown:lm,onClick:g,customizeIcon:e.removeIcon},{default:function(){return[_n("×")]}})])}function c(h,f,p,m,g,y){var b=function(E){lm(E),e.onToggleOpen(!open)},w=y;if(i.keyEntities){var _;w=((_=i.keyEntities[h])===null||_===void 0?void 0:_.node)||{}}return S("span",{key:h,onMousedown:b},[e.tagRender({label:f,value:h,disabled:p,closable:m,onClose:g,option:w})])}function d(h){var f=h.disabled,p=h.label,m=h.value,g=h.option,y=!e.disabled&&!f,b=p;if(typeof e.maxTagTextLength=="number"&&(typeof p=="string"||typeof p=="number")){var w=String(b);w.length>e.maxTagTextLength&&(b="".concat(w.slice(0,e.maxTagTextLength),"..."))}var _=function(E){var I;E&&E.stopPropagation(),(I=e.onRemove)===null||I===void 0||I.call(e,h)};return typeof e.tagRender=="function"?c(m,b,f,y,_,g):u(p,b,f,y,_)}function v(h){var f=e.maxTagPlaceholder,p=f===void 0?function(g){return"+ ".concat(g.length," ...")}:f,m=typeof p=="function"?p(h):p;return u(m,m,!1)}return function(){var h=e.id,f=e.prefixCls,p=e.values,m=e.open,g=e.inputRef,y=e.placeholder,b=e.disabled,w=e.autofocus,_=e.autocomplete,C=e.activeDescendantId,E=e.tabindex,I=e.onInputChange,T=e.onInputPaste,N=e.onInputKeyDown,R=e.onInputMouseDown,F=e.onInputCompositionStart,L=e.onInputCompositionEnd,j=S("div",{class:"".concat(o.value,"-search"),style:{width:r.value+"px"},key:"input"},[S(__,{inputRef:g,open:m,prefixCls:f,id:h,inputElement:null,disabled:b,autofocus:w,autocomplete:_,editable:l.value,activeDescendantId:C,value:s.value,onKeydown:N,onMousedown:R,onChange:I,onPaste:T,onCompositionstart:F,onCompositionend:L,tabindex:E,attrs:xu(e,!0),onFocus:function(){return a.value=!0},onBlur:function(){return a.value=!1}},null),S("span",{ref:n,class:"".concat(o.value,"-search-mirror"),"aria-hidden":!0},[s.value,_n(" ")])]),D=S(wi,{prefixCls:"".concat(o.value,"-overflow"),data:p,renderItem:d,renderRest:v,suffix:j,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return S(Re,null,[D,!p.length&&!s.value&&S("span",{class:"".concat(o.value,"-placeholder")},[y])])}}});const GR=KR;var qR={inputElement:ee.any,id:String,prefixCls:String,values:ee.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ee.any,placeholder:ee.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ee.oneOfType([ee.number,ee.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ov=he({name:"SingleSelector",setup:function(e){var n=z(!1),r=V(function(){return e.mode==="combobox"}),a=V(function(){return r.value||e.showSearch}),i=V(function(){var c=e.searchValue||"";return r.value&&e.activeValue&&!n.value&&(c=e.activeValue),c}),o=Ev();pe([r,function(){return e.activeValue}],function(){r.value&&(n.value=!1)},{immediate:!0});var s=V(function(){return e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!i.value}),l=V(function(){var c=e.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),u=function(){if(e.values[0])return null;var d=s.value?{visibility:"hidden"}:void 0;return S("span",{class:"".concat(e.prefixCls,"-selection-placeholder"),style:d},[e.placeholder])};return function(){var c,d=e.inputElement,v=e.prefixCls,h=e.id,f=e.values,p=e.inputRef,m=e.disabled,g=e.autofocus,y=e.autocomplete,b=e.activeDescendantId,w=e.open,_=e.tabindex,C=e.optionLabelRender,E=e.onInputKeyDown,I=e.onInputMouseDown,T=e.onInputChange,N=e.onInputPaste,R=e.onInputCompositionStart,F=e.onInputCompositionEnd,L=f[0],j=null;if(L&&o.customSlots){var D,P,O,k=(D=L.key)!==null&&D!==void 0?D:L.value,$=((P=o.keyEntities[k])===null||P===void 0?void 0:P.node)||{};j=o.customSlots[(O=$.slots)===null||O===void 0?void 0:O.title]||o.customSlots.title||L.label,typeof j=="function"&&(j=j($))}else j=C&&L?C(L.option):L==null?void 0:L.label;return S(Re,null,[S("span",{class:"".concat(v,"-selection-search")},[S(__,{inputRef:p,prefixCls:v,id:h,open:w,inputElement:d,disabled:m,autofocus:g,autocomplete:y,editable:a.value,activeDescendantId:b,value:i.value,onKeydown:E,onMousedown:I,onChange:function(J){n.value=!0,T(J)},onPaste:N,onCompositionstart:R,onCompositionend:F,tabindex:_,attrs:xu(e,!0)},null)]),!r.value&&L&&!s.value&&S("span",{class:"".concat(v,"-selection-item"),title:l.value},[S(Re,{key:(c=L.key)!==null&&c!==void 0?c:L.value},[j])]),u()])}}});Ov.props=qR;Ov.inheritAttrs=!1;const YR=Ov;function JR(t){return![Ae.ESC,Ae.SHIFT,Ae.BACKSPACE,Ae.TAB,Ae.WIN_KEY,Ae.ALT,Ae.META,Ae.WIN_KEY_RIGHT,Ae.CTRL,Ae.SEMICOLON,Ae.EQUALS,Ae.CAPS_LOCK,Ae.CONTEXT_MENU,Ae.F1,Ae.F2,Ae.F3,Ae.F4,Ae.F5,Ae.F6,Ae.F7,Ae.F8,Ae.F9,Ae.F10,Ae.F11,Ae.F12].includes(t)}function T_(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,n;st(function(){clearTimeout(n)});function r(a){(a||e===null)&&(e=a),clearTimeout(n),n=setTimeout(function(){e=null},t)}return[function(){return e},r]}function Yo(){var t=function e(n){e.current=n};return t}var XR=he({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ee.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ee.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ee.oneOfType([ee.number,ee.string]),disabled:{type:Boolean,default:void 0},placeholder:ee.any,removeIcon:ee.any,maxTagCount:ee.oneOfType([ee.number,ee.string]),maxTagTextLength:Number,maxTagPlaceholder:ee.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup:function(e,n){var r=n.expose,a=Yo(),i=!1,o=T_(0),s=ke(o,2),l=s[0],u=s[1],c=function(_){var C=_.which;(C===Ae.UP||C===Ae.DOWN)&&_.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(_),C===Ae.ENTER&&e.mode==="tags"&&!i&&!e.open&&e.onSearchSubmit(_.target.value),JR(C)&&e.onToggleOpen(!0)},d=function(){u(!0)},v=null,h=function(_){e.onSearch(_,!0,i)!==!1&&e.onToggleOpen(!0)},f=function(){i=!0},p=function(_){i=!1,e.mode!=="combobox"&&h(_.target.value)},m=function(_){var C=_.target.value;if(e.tokenWithEnter&&v&&/[\r\n]/.test(v)){var E=v.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");C=C.replace(E,v)}v=null,h(C)},g=function(_){var C=_.clipboardData,E=C.getData("text");v=E},y=function(_){var C=_.target;if(C!==a.current){var E=document.body.style.msTouchAction!==void 0;E?setTimeout(function(){a.current.focus()}):a.current.focus()}},b=function(_){var C=l();_.target!==a.current&&!C&&_.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!C)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return r({focus:function(){a.current.focus()},blur:function(){a.current.blur()}}),function(){var w=e.prefixCls,_=e.domRef,C=e.mode,E={inputRef:a,onInputKeyDown:c,onInputMouseDown:d,onInputChange:m,onInputPaste:g,onInputCompositionStart:f,onInputCompositionEnd:p},I=C==="multiple"||C==="tags"?S(GR,M(M({},e),E),null):S(YR,M(M({},e),E),null);return S("div",{ref:_,class:"".concat(w,"-selector"),onClick:y,onMousedown:b},[I])}}});const ZR=XR;function QR(t,e,n){function r(a){var i,o,s,l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l);var u=[(i=t[0])===null||i===void 0?void 0:i.value,(o=t[1])===null||o===void 0||(s=o.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(function(c){return c&&!c.contains(l)&&c!==l})&&n(!1)}Ve(function(){window.addEventListener("mousedown",r)}),st(function(){window.removeEventListener("mousedown",r)})}function e$(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=z(!1),n,r=function(){clearTimeout(n)};Ve(function(){r()});var a=function(o,s){r(),n=setTimeout(function(){e.value=o,s&&s()},t)};return[e,a,r]}var E_=Symbol("BaseSelectContextKey");function t$(t){return wt(E_,t)}function n$(){return ot(E_,{})}const O_=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4)))};function P_(t){if(!dt(t))return ct(t);var e=new Proxy({},{get:function(r,a,i){return Reflect.get(t.value,a,i)},set:function(r,a,i){return t.value[a]=i,!0},deleteProperty:function(r,a){return Reflect.deleteProperty(t.value,a)},has:function(r,a){return Reflect.has(t.value,a)},ownKeys:function(){return Object.keys(t.value)},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}}});return ct(e)}var r$=["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"],a$=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],i$=function(){return{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ee.any,emptyOptions:Boolean}},A_=function(){return{showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ee.any,placeholder:ee.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ee.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ee.any,clearIcon:ee.any,removeIcon:ee.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}},o$=function(){return M(M({},i$()),A_())};function I_(t){return t==="tags"||t==="multiple"}const s$=he({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:pn(o$(),{showAction:[],notFoundContent:"Not Found"}),setup:function(e,n){var r=n.attrs,a=n.expose,i=n.slots,o=V(function(){return I_(e.mode)}),s=V(function(){return e.showSearch!==void 0?e.showSearch:o.value||e.mode==="combobox"}),l=z(!1);Ve(function(){l.value=O_()});var u=Ev(),c=z(null),d=Yo(),v=z(null),h=z(null),f=z(null),p=e$(),m=ke(p,3),g=m[0],y=m[1],b=m[2],w=function(){var x;(x=h.value)===null||x===void 0||x.focus()},_=function(){var x;(x=h.value)===null||x===void 0||x.blur()};a({focus:w,blur:_,scrollTo:function(x){var A;return(A=f.value)===null||A===void 0?void 0:A.scrollTo(x)}});var C=V(function(){var B;if(e.mode!=="combobox")return e.searchValue;var x=(B=e.displayValues[0])===null||B===void 0?void 0:B.value;return typeof x=="string"||typeof x=="number"?String(x):""}),E=e.open!==void 0?e.open:e.defaultOpen,I=z(E),T=z(E),N=function(x){I.value=e.open!==void 0?e.open:x,T.value=I.value};pe(function(){return e.open},function(){N(e.open)});var R=V(function(){return!e.notFoundContent&&e.emptyOptions});yt(function(){T.value=I.value,(e.disabled||R.value&&T.value&&e.mode==="combobox")&&(T.value=!1)});var F=V(function(){return R.value?!1:T.value}),L=function(x){var A=x!==void 0?x:!T.value;I.value!==A&&!e.disabled&&(N(A),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(A))},j=V(function(){return(e.tokenSeparators||[]).some(function(B){return[` `,`\r -`].includes(B)})}),D=function(x,A,W){var K,U=!0,se=x;(K=e.onActiveValueChange)===null||K===void 0||K.call(e,null);var ie=W?null:WM(x,e.tokenSeparators);if(e.mode!=="combobox"&&ie){var re;se="",(re=e.onSearchSplit)===null||re===void 0||re.call(e,ie),L(!1),U=!1}return e.onSearch&&C.value!==se&&e.onSearch(se,{source:A?"typing":"effect"}),U},P=function(x){var A;!x||!x.trim()||(A=e.onSearch)===null||A===void 0||A.call(e,x,{source:"submit"})};pe(T,function(){!T.value&&!o.value&&e.mode!=="combobox"&&D("",!1,!1)},{immediate:!0,flush:"post"}),pe(function(){return e.disabled},function(){I.value&&e.disabled&&N(!1)},{immediate:!0});var O=T_(),M=Me(O,2),$=M[0],G=M[1],J=function(x){var A,W=$(),K=x.which;if(K===Ae.ENTER&&(e.mode!=="combobox"&&x.preventDefault(),T.value||L(!0)),G(!!C.value),K===Ae.BACKSPACE&&!W&&o.value&&!C.value&&e.displayValues.length){for(var U=nt(e.displayValues),se=null,ie=U.length-1;ie>=0;ie-=1){var re=U[ie];if(!re.disabled){U.splice(ie,1),se=re;break}}se&&e.onDisplayValuesChange(U,{type:"remove",values:[se]})}for(var Q=arguments.length,H=new Array(Q>1?Q-1:0),q=1;q1?A-1:0),K=1;K1?ie-1:0),Q=1;Qn}},render:function(){var e=this.state,n=e.dragging,r=e.visible,a=this.$props.prefixCls,i=this.getSpinHeight()+"px",o=this.getTop()+"px",s=this.showScroll(),l=s&&r;return S("div",{ref:this.scrollbarRef,class:Ce("".concat(a,"-scrollbar"),te({},"".concat(a,"-scrollbar-show"),s)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[S("div",{ref:this.thumbRef,class:Ce("".concat(a,"-scrollbar-thumb"),te({},"".concat(a,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:i,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function d$(t,e,n,r){var a=new Map,i=new Map,o=z(Symbol("update"));pe(t,function(){o.value=Symbol("update")});var s=void 0;function l(){Ue.cancel(s)}function u(){l(),s=Ue(function(){a.forEach(function(d,v){if(d&&d.offsetParent){var h=d.offsetHeight;i.get(v)!==h&&(o.value=Symbol("update"),i.set(v,d.offsetHeight))}})})}function c(d,v){var h=e(d),f=a.get(h);v?(a.set(h,v.$el||v),u()):a.delete(h),!f!=!v&&(v?n==null||n(d):r==null||r(d))}return vn(function(){l()}),[c,u,i,o]}function v$(t,e,n,r,a,i,o,s){var l;return function(u){if(u==null){s();return}Ue.cancel(l);var c=e.value,d=r.itemHeight;if(typeof u=="number")o(u);else if(u&&Qe(u)==="object"){var v,h=u.align;"index"in u?v=u.index:v=c.findIndex(function(g){return a(g)===u.key});var f=u.offset,p=f===void 0?0:f,m=function g(y,b){if(!(y<0||!t.value)){var w=t.value.clientHeight,_=!1,C=b;if(w){for(var E=b||h,I=0,T=0,N=0,R=Math.min(c.length,v),F=0;F<=R;F+=1){var L=a(c[F]);T=I;var j=n.get(L);N=T+(j===void 0?d:j),I=N,F===v&&j===void 0&&(_=!0)}var D=t.value.scrollTop,P=null;switch(E){case"top":P=T-p;break;case"bottom":P=N-w+p;break;default:{var O=D+w;TO&&(C="bottom")}}P!==null&&P!==D&&o(P)}l=Ue(function(){_&&i(),g(y-1,C)},2)}};m(5)}}}var p$=(typeof navigator>"u"?"undefined":Qe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const h$=p$,k_=function(t,e){var n=!1,r=null;function a(){clearTimeout(r),n=!0,r=setTimeout(function(){n=!1},50)}return function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i<0&&t.value||i>0&&e.value;return o&&s?(clearTimeout(r),n=!1):(!s||n)&&a(),!n&&s}};function g$(t,e,n,r){var a=0,i=null,o=null,s=!1,l=k_(e,n);function u(d){if(t.value){Ue.cancel(i);var v=d.deltaY;a+=v,o=v,!l(v)&&(h$||d.preventDefault(),i=Ue(function(){var h=s?10:1;r(a*h),a=0}))}}function c(d){t.value&&(s=d.detail===o)}return[u,c]}var m$=14/15;function y$(t,e,n){var r=!1,a=0,i=null,o=null,s=function(){i&&(i.removeEventListener("touchmove",l),i.removeEventListener("touchend",u))},l=function(h){if(r){var f=Math.ceil(h.touches[0].pageY),p=a-f;a=f,n(p)&&h.preventDefault(),clearInterval(o),o=setInterval(function(){p*=m$,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(o)},16)}},u=function(){r=!1,s()},c=function(h){s(),h.touches.length===1&&!r&&(r=!0,a=Math.ceil(h.touches[0].pageY),i=h.target,i.addEventListener("touchmove",l,{passive:!1}),i.addEventListener("touchend",u))},d=function(){};Ve(function(){document.addEventListener("touchmove",d,{passive:!1}),pe(t,function(v){e.value.removeEventListener("touchstart",c),s(),clearInterval(o),v&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),st(function(){document.removeEventListener("touchmove",d)})}var b$=["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"],w$=[],_$={overflowY:"auto",overflowAnchor:"none"};function C$(t,e,n,r,a,i){var o=i.getKey;return t.slice(e,n+1).map(function(s,l){var u=e+l,c=a(s,u,{}),d=o(s);return S(u$,{key:d,setRef:function(h){return r(s,h)}},{default:function(){return[c]}})})}var S$=he({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ee.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(e,n){var r=n.expose,a=V(function(){var X=e.height,Y=e.itemHeight,ne=e.virtual;return!!(ne!==!1&&X&&Y)}),i=V(function(){var X=e.height,Y=e.itemHeight,ne=e.data;return a.value&&ne&&Y*ne.length>X}),o=ct({scrollTop:0,scrollMoving:!1}),s=V(function(){return e.data||w$}),l=Qn([]);pe(s,function(){l.value=De(s.value).slice()},{immediate:!0});var u=Qn(function(X){});pe(function(){return e.itemKey},function(X){typeof X=="function"?u.value=X:u.value=function(Y){return Y==null?void 0:Y[X]}},{immediate:!0});var c=z(),d=z(),v=z(),h=function(Y){return u.value(Y)},f={getKey:h};function p(X){var Y;typeof X=="function"?Y=X(o.scrollTop):Y=X;var ne=T(Y);c.value&&(c.value.scrollTop=ne),o.scrollTop=ne}var m=d$(l,h,null,null),g=Me(m,4),y=g[0],b=g[1],w=g[2],_=g[3],C=ct({scrollHeight:void 0,start:0,end:0,offset:void 0}),E=z(0);Ve(function(){Ke(function(){var X;E.value=((X=d.value)===null||X===void 0?void 0:X.offsetHeight)||0})}),ca(function(){Ke(function(){var X;E.value=((X=d.value)===null||X===void 0?void 0:X.offsetHeight)||0})}),pe([a,l],function(){a.value||Ut(C,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),pe([a,l,E,i],function(){a.value&&!i.value&&Ut(C,{scrollHeight:E.value,start:0,end:l.value.length-1,offset:void 0}),c.value&&(o.scrollTop=c.value.scrollTop)},{immediate:!0}),pe([i,a,function(){return o.scrollTop},l,_,function(){return e.height},E],function(){if(!(!a.value||!i.value)){for(var X=0,Y,ne,le,ge=l.value.length,_e=l.value,me=o.scrollTop,ye=e.itemHeight,Se=e.height,B=me+Se,x=0;x=me&&(Y=x,ne=X),le===void 0&&U>B&&(le=x),X=U}Y===void 0&&(Y=0,ne=0,le=Math.ceil(Se/ye)),le===void 0&&(le=ge-1),le=Math.min(le+1,ge),Ut(C,{scrollHeight:X,start:Y,end:le,offset:ne})}},{immediate:!0});var I=V(function(){return C.scrollHeight-e.height});function T(X){var Y=X;return Number.isNaN(I.value)||(Y=Math.min(Y,I.value)),Y=Math.max(Y,0),Y}var N=V(function(){return o.scrollTop<=0}),R=V(function(){return o.scrollTop>=I.value}),F=k_(N,R);function L(X){var Y=X;p(Y)}function j(X){var Y,ne=X.currentTarget.scrollTop;ne!==o.scrollTop&&p(ne),(Y=e.onScroll)===null||Y===void 0||Y.call(e,X)}var D=g$(a,N,R,function(X){p(function(Y){var ne=Y+X;return ne})}),P=Me(D,2),O=P[0],M=P[1];y$(a,c,function(X,Y){return F(X,Y)?!1:(O({preventDefault:function(){},deltaY:X}),!0)});function $(X){a.value&&X.preventDefault()}var G=function(){c.value&&(c.value.removeEventListener("wheel",O,ln?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",M),c.value.removeEventListener("MozMousePixelScroll",$))};yt(function(){Ke(function(){c.value&&(G(),c.value.addEventListener("wheel",O,ln?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",M),c.value.addEventListener("MozMousePixelScroll",$))})}),st(function(){G()});var J=v$(c,l,w,e,h,b,p,function(){var X;(X=v.value)===null||X===void 0||X.delayHidden()});r({scrollTo:J});var Z=V(function(){var X=null;return e.height&&(X=k(te({},e.fullHeight?"height":"maxHeight",e.height+"px"),_$),a.value&&(X.overflowY="hidden",o.scrollMoving&&(X.pointerEvents="none"))),X});return pe([function(){return C.start},function(){return C.end},l],function(){if(e.onVisibleChange){var X=l.value.slice(C.start,C.end+1);e.onVisibleChange(X,l.value)}},{flush:"post"}),{state:o,mergedData:l,componentStyle:Z,onFallbackScroll:j,onScrollBar:L,componentRef:c,useVirtual:a,calRes:C,collectHeight:b,setInstance:y,sharedConfig:f,scrollBarRef:v,fillerInnerRef:d}},render:function(){var e=this,n=k(k({},this.$props),this.$attrs),r=n.prefixCls,a=r===void 0?"rc-virtual-list":r,i=n.height;n.itemHeight,n.fullHeight,n.data,n.itemKey,n.virtual;var o=n.component,s=o===void 0?"div":o;n.onScroll;var l=n.children,u=l===void 0?this.$slots.default:l,c=n.style,d=n.class,v=bt(n,b$),h=Ce(a,d),f=this.state.scrollTop,p=this.calRes,m=p.scrollHeight,g=p.offset,y=p.start,b=p.end,w=this.componentStyle,_=this.onFallbackScroll,C=this.onScrollBar,E=this.useVirtual,I=this.collectHeight,T=this.sharedConfig,N=this.setInstance,R=this.mergedData;return S("div",k({style:k(k({},c),{},{position:"relative"}),class:h},v),[S(s,{class:"".concat(a,"-holder"),style:w,ref:"componentRef",onScroll:_},{default:function(){return[S(l$,{prefixCls:a,height:m,offset:g,onInnerResize:I,ref:"fillerInnerRef"},{default:function(){return C$(R,y,b,N,u,T)}})]}}),E&&S(f$,{ref:"scrollBarRef",prefixCls:a,scrollTop:f,height:i,scrollHeight:m,count:R.length,onScroll:C,onStartMove:function(){e.state.scrollMoving=!0},onStopMove:function(){e.state.scrollMoving=!1}},null)])}});const x$=S$;function T$(t,e,n){var r=z(t());return pe(e,function(a,i){n?n(a,i)&&(r.value=t()):r.value=t()}),r}function E$(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var N_=Symbol("SelectContextKey");function O$(t){return wt(N_,t)}function P$(){return ot(N_,{})}var A$=["disabled","title","children","style","class","className"];function cm(t){return typeof t=="string"||typeof t=="number"}var I$=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["option"],setup:function(e,n){var r=n.expose,a=n.slots,i=n$(),o=P$(),s=V(function(){return"".concat(i.prefixCls,"-item")}),l=T$(function(){return o.flattenOptions},[function(){return i.open},function(){return o.flattenOptions}],function(C){return C[0]}),u=Yo(),c=function(E){E.preventDefault()},d=function(E){u.current&&u.current.scrollTo(typeof E=="number"?{index:E}:E)},v=function(E){for(var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,T=l.value.length,N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;h.activeIndex=E;var T={source:I?"keyboard":"mouse"},N=l.value[E];if(!N){o.onActiveValue(null,-1,T);return}o.onActiveValue(N.value,E,T)};pe([function(){return l.value.length},function(){return i.searchValue}],function(){f(o.defaultActiveFirstOption!==!1?v(0):-1)},{immediate:!0});var p=function(E){return o.rawValues.has(E)&&i.mode!=="combobox"};pe([function(){return i.open},function(){return i.searchValue}],function(){if(!i.multiple&&i.open&&o.rawValues.size===1){var C=Array.from(o.rawValues)[0],E=De(l.value).findIndex(function(I){var T=I.data;return T[o.fieldNames.value]===C});E!==-1&&(f(E),Ke(function(){d(E)}))}i.open&&Ke(function(){var I;(I=u.current)===null||I===void 0||I.scrollTo(void 0)})},{immediate:!0,flush:"post"});var m=function(E){E!==void 0&&o.onSelect(E,{selected:!o.rawValues.has(E)}),i.multiple||i.toggleOpen(!1)},g=function(E){return typeof E.label=="function"?E.label():E.label};function y(C){var E=l.value[C];if(!E)return null;var I=E.data||{},T=I.value,N=E.group,R=xu(I,!0),F=g(E);return E?S("div",k(k({"aria-label":typeof F=="string"&&!N?F:null},R),{},{key:C,role:N?"presentation":"option",id:"".concat(i.id,"_list_").concat(C),"aria-selected":p(T)}),[T]):null}var b=function(E){var I=E.which,T=E.ctrlKey;switch(I){case Ae.N:case Ae.P:case Ae.UP:case Ae.DOWN:{var N=0;if(I===Ae.UP?N=-1:I===Ae.DOWN?N=1:E$()&&T&&(I===Ae.N?N=1:I===Ae.P&&(N=-1)),N!==0){var R=v(h.activeIndex+N,N);d(R),f(R,!0)}break}case Ae.ENTER:{var F=l.value[h.activeIndex];F&&!F.data.disabled?m(F.value):m(void 0),i.open&&E.preventDefault();break}case Ae.ESC:i.toggleOpen(!1),i.open&&E.stopPropagation()}},w=function(){},_=function(E){d(E)};return r({onKeydown:b,onKeyup:w,scrollTo:_}),function(){var C=i.id,E=i.notFoundContent,I=i.onPopupScroll,T=o.menuItemSelectedIcon,N=o.fieldNames,R=o.virtual,F=o.listHeight,L=o.listItemHeight,j=a.option,D=h.activeIndex,P=Object.keys(N).map(function(O){return N[O]});return l.value.length===0?S("div",{role:"listbox",id:"".concat(C,"_list"),class:"".concat(s.value,"-empty"),onMousedown:c},[E]):S(Re,null,[S("div",{role:"listbox",id:"".concat(C,"_list"),style:{height:0,width:0,overflow:"hidden"}},[y(D-1),y(D),y(D+1)]),S(x$,{itemKey:"key",ref:u,data:l.value,height:F,itemHeight:L,fullHeight:!1,onMousedown:c,onScroll:I,virtual:R},{default:function(M,$){var G,J=M.group,Z=M.groupOption,X=M.data,Y=M.value,ne=X.key,le=typeof M.label=="function"?M.label():M.label;if(J){var ge,_e=(ge=X.title)!==null&&ge!==void 0?ge:cm(le)&≤return S("div",{class:Ce(s.value,"".concat(s.value,"-group")),title:_e},[j?j(X):le!==void 0?le:ne])}var me=X.disabled,ye=X.title;X.children;var Se=X.style,B=X.class,x=X.className,A=bt(X,A$),W=Lt(A,P),K=p(Y),U="".concat(s.value,"-option"),se=Ce(s.value,U,B,x,(G={},te(G,"".concat(U,"-grouped"),Z),te(G,"".concat(U,"-active"),D===$&&!me),te(G,"".concat(U,"-disabled"),me),te(G,"".concat(U,"-selected"),K),G)),ie=g(M),re=!T||typeof T=="function"||K,Q=typeof ie=="number"?ie:ie||Y,H=cm(Q)?Q.toString():void 0;return ye!==void 0&&(H=ye),S("div",k(k({},W),{},{"aria-selected":K,class:se,title:H,onMousemove:function(ue){A.onMousemove&&A.onMousemove(ue),!(D===$||me)&&f($)},onClick:function(ue){me||m(Y),A.onClick&&A.onClick(ue)},style:Se}),[S("div",{class:"".concat(U,"-content")},[j?j(X):Q]),ar(T)||K,re&&S(Nl,{class:"".concat(s.value,"-option-state"),customizeIcon:T,customizeIconProps:{isSelected:K}},{default:function(){return[K?"✓":null]}})])}})])}}});const M$=I$;var k$=["value","disabled"];function N$(t){var e=t.key,n=t.children,r=t.props,a=r.value,i=r.disabled,o=bt(r,k$),s=n==null?void 0:n.default;return k({key:e,value:a!==void 0?a:e,children:s,disabled:i||i===""},o)}function R_(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Mn(t).map(function(r,a){var i;if(!ar(r)||!r.type)return null;var o=r.type.isSelectOptGroup,s=r.key,l=r.children,u=r.props;if(e||!o)return N$(r);var c=l&&l.default?l.default():void 0,d=(u==null?void 0:u.label)||((i=l.label)===null||i===void 0?void 0:i.call(l))||s;return k(k({key:"__RC_SELECT_GRP__".concat(s===null?a:String(s),"__")},u),{},{label:d,options:R_(c||[])})}).filter(function(r){return r});return n}function R$(t,e,n){var r=Qn(),a=Qn(),i=Qn(),o=Qn([]);return pe([t,e],function(){t.value?o.value=De(t.value).slice():o.value=R_(e.value)},{immediate:!0,deep:!0}),yt(function(){var s=o.value,l=new Map,u=new Map,c=n.value;function d(v){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=0;f0&&arguments[0]!==void 0?arguments[0]:z(""),e="rc_select_".concat(D$());return t.value||e}function $_(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function bc(t,e){return $_(t).join("").toUpperCase().includes(e)}const F$=function(t,e,n,r,a){return V(function(){var i=n.value,o=a==null?void 0:a.value,s=r==null?void 0:r.value;if(!i||s===!1)return t.value;var l=e.value,u=l.options,c=l.label,d=l.value,v=[],h=typeof s=="function",f=i.toUpperCase(),p=h?s:function(g,y){return o?bc(y[o],f):y[u]?bc(y[c!=="children"?c:"label"],f):bc(y[d],f)},m=h?function(g){return wf(g)}:function(g){return g};return t.value.forEach(function(g){if(g[u]){var y=p(i,m(g));if(y)v.push(g);else{var b=g[u].filter(function(w){return p(i,m(w))});b.length&&v.push(k(k({},g),{},te({},u,b)))}return}p(i,m(g))&&v.push(g)}),v})},B$=function(t,e){var n=Qn({values:new Map,options:new Map}),r=V(function(){var i=n.value,o=i.values,s=i.options,l=t.value.map(function(d){if(d.label===void 0){var v;return k(k({},d),{},{label:(v=o.get(d.value))===null||v===void 0?void 0:v.label})}return d}),u=new Map,c=new Map;return l.forEach(function(d){u.set(d.value,d),c.set(d.value,e.value.get(d.value)||s.get(d.value))}),n.value.values=u,n.value.options=c,l}),a=function(o){return e.value.get(o)||n.value.options.get(o)};return[r,a]};function Ai(t,e){var n=e||{},r=n.defaultValue,a=n.value,i=a===void 0?z():a,o=typeof t=="function"?t():t;i.value!==void 0&&(o=be(i)),r!==void 0&&(o=typeof r=="function"?r():r);var s=z(o),l=z(o);yt(function(){var c=i.value!==void 0?i.value:s.value;e.postState&&(c=e.postState(c)),l.value=c});function u(c){var d=l.value;s.value=c,De(l.value)!==c&&e.onChange&&e.onChange(c,d)}return pe(i,function(){s.value=i.value}),[l,u]}function Ht(t){var e=typeof t=="function"?t():t,n=z(e);function r(a){n.value=a}return[n,r]}var z$=["inputValue"];function D_(){return k(k({},A_()),{},{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ee.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ee.any,defaultValue:ee.any,onChange:Function,children:Array})}function j$(t){return!t||Qe(t)!=="object"}const W$=he({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:pn(D_(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup:function(e,n){var r=n.expose,a=n.attrs,i=n.slots,o=L$(sn(e,"id")),s=V(function(){return I_(e.mode)}),l=V(function(){return!!(!e.options&&e.children)}),u=V(function(){return e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption}),c=V(function(){return Jw(e.fieldNames,l.value)}),d=Ai("",{value:V(function(){return e.searchValue!==void 0?e.searchValue:e.inputValue}),postState:function(Q){return Q||""}}),v=Me(d,2),h=v[0],f=v[1],p=R$(sn(e,"options"),sn(e,"children"),c),m=p.valueOptions,g=p.labelOptions,y=p.options,b=function(Q){var H=$_(Q);return H.map(function(q){var ue,ae,fe,we;if(j$(q))ue=q;else{var xe;fe=q.key,ae=q.label,ue=(xe=q.value)!==null&&xe!==void 0?xe:fe}var Pe=m.value.get(ue);if(Pe){var oe;ae===void 0&&(ae=Pe==null?void 0:Pe[e.optionLabelProp||c.value.label]),fe===void 0&&(fe=(oe=Pe==null?void 0:Pe.key)!==null&&oe!==void 0?oe:ue),we=Pe==null?void 0:Pe.disabled}return{label:ae,value:ue,key:fe,disabled:we,option:Pe}})},w=Ai(e.defaultValue,{value:sn(e,"value")}),_=Me(w,2),C=_[0],E=_[1],I=V(function(){var re,Q=b(C.value);return e.mode==="combobox"&&!((re=Q[0])!==null&&re!==void 0&&re.value)?[]:Q}),T=B$(I,m),N=Me(T,2),R=N[0],F=N[1],L=V(function(){if(!e.mode&&R.value.length===1){var re=R.value[0];if(re.value===null&&(re.label===null||re.label===void 0))return[]}return R.value.map(function(Q){var H;return k(k({},Q),{},{label:(H=typeof Q.label=="function"?Q.label():Q.label)!==null&&H!==void 0?H:Q.value})})}),j=V(function(){return new Set(R.value.map(function(re){return re.value}))});yt(function(){if(e.mode==="combobox"){var re,Q=(re=R.value[0])===null||re===void 0?void 0:re.value;Q!=null&&f(String(Q))}},{flush:"post"});var D=function(Q,H){var q,ue=H??Q;return q={},te(q,c.value.value,Q),te(q,c.value.label,ue),q},P=Qn();yt(function(){if(e.mode!=="tags"){P.value=y.value;return}var re=y.value.slice(),Q=function(q){return m.value.has(q)};nt(R.value).sort(function(H,q){return H.value2&&arguments[2]!==void 0?arguments[2]:{},ue=q.source,ae=ue===void 0?"keyboard":ue;me(H),e.backfill&&e.mode==="combobox"&&Q!==null&&ae==="keyboard"&&ne(String(Q))},B=function(Q,H){var q=function(){var Ie,Le=F(Q),Ye=Le==null?void 0:Le[c.value.label];return[e.labelInValue?{label:typeof Ye=="function"?Ye():Ye,originLabel:Ye,value:Q,key:(Ie=Le==null?void 0:Le.key)!==null&&Ie!==void 0?Ie:Q}:Q,wf(Le)]};if(H&&e.onSelect){var ue=q(),ae=Me(ue,2),fe=ae[0],we=ae[1];e.onSelect(fe,we)}else if(!H&&e.onDeselect){var xe=q(),Pe=Me(xe,2),oe=Pe[0],ve=Pe[1];e.onDeselect(oe,ve)}},x=function(Q,H){var q,ue=s.value?H.selected:!0;ue?q=s.value?[].concat(nt(R.value),[Q]):[Q]:q=R.value.filter(function(ae){return ae.value!==Q}),J(q),B(Q,ue),e.mode==="combobox"?ne(""):(!s.value||e.autoClearSearchValue)&&(f(""),ne(""))},A=function(Q,H){J(Q),(H.type==="remove"||H.type==="clear")&&H.values.forEach(function(q){B(q.value,!1)})},W=function(Q,H){if(f(Q),ne(null),H.source==="submit"){var q=(Q||"").trim();if(q){var ue=Array.from(new Set([].concat(nt(j.value),[q])));J(ue),B(q,!0),f("")}return}if(H.source!=="blur"){var ae;e.mode==="combobox"&&J(Q),(ae=e.onSearch)===null||ae===void 0||ae.call(e,Q)}},K=function(Q){var H=Q;e.mode!=="tags"&&(H=Q.map(function(ue){var ae=g.value.get(ue);return ae==null?void 0:ae.value}).filter(function(ue){return ue!==void 0}));var q=Array.from(new Set([].concat(nt(j.value),nt(H))));J(q),q.forEach(function(ue){B(ue,!0)})},U=V(function(){return e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1});O$(P_(k(k({},p),{},{flattenOptions:G,onActiveValue:Se,defaultActiveFirstOption:ye,onSelect:x,menuItemSelectedIcon:sn(e,"menuItemSelectedIcon"),rawValues:j,fieldNames:c,virtual:U,listHeight:sn(e,"listHeight"),listItemHeight:sn(e,"listItemHeight"),childrenAsData:l})));var se=z();r({focus:function(){var Q;(Q=se.value)===null||Q===void 0||Q.focus()},blur:function(){var Q;(Q=se.value)===null||Q===void 0||Q.blur()},scrollTo:function(Q){var H;(H=se.value)===null||H===void 0||H.scrollTo(Q)}});var ie=V(function(){return Lt(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])});return function(){return S(s$,k(k(k({},ie.value),a),{},{id:o,prefixCls:e.prefixCls,ref:se,omitDomProps:z$,mode:e.mode,displayValues:L.value,onDisplayValuesChange:A,searchValue:h.value,onSearch:W,onSearchSplit:K,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:M$,emptyOptions:!G.value.length,activeValue:Y.value,activeDescendantId:"".concat(o,"_list_").concat(_e.value)}),i)}}});var Pv=function(){return null};Pv.isSelectOption=!0;Pv.displayName="ASelectOption";const H$=Pv;var Av=function(){return null};Av.isSelectOptGroup=!0;Av.displayName="ASelectOptGroup";const V$=Av;var U$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const K$=U$;function dm(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=t.loading,r=t.multiple,a=t.prefixCls,i=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),o=t.clearIcon||e.clearIcon&&e.clearIcon(),s=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),l=t.removeIcon||e.removeIcon&&e.removeIcon(),u=o;o||(u=S(hu,null,null));var c=null;if(i!==void 0)c=i;else if(n)c=S(Pl,{spin:!0},null);else{var d="".concat(a,"-suffix");c=function(p){var m=p.open,g=p.showSearch;return m&&g?S(F_,{class:d},null):S(L_,{class:d},null)}}var v=null;s!==void 0?v=s:r?v=S(X$,null,null):v=null;var h=null;return l!==void 0?h=l:h=S(zr,null,null),{clearIcon:u,suffixIcon:c,itemIcon:v,removeIcon:h}}var Rl=Symbol("ContextProps"),$l=Symbol("InternalContextProps"),zG=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V(function(){return!0}),r=z(new Map),a=function(s,l){r.value.set(s,l),r.value=new Map(r.value)},i=function(s){r.value.delete(s),r.value=new Map(r.value)};pe([n,r],function(){}),wt(Rl,e),wt($l,{addFormItemField:a,removeFormItemField:i})},Mf={id:V(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},kf={addFormItemField:function(){},removeFormItemField:function(){}},Nv=function(){var e=ot($l,kf),n=Symbol("FormItemFieldKey"),r=Pt();return e.addFormItemField(n,r.type),st(function(){e.removeFormItemField(n)}),wt($l,kf),wt(Rl,Mf),ot(Rl,Mf)};const jG=he({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(e,n){var r=n.slots;return wt($l,kf),wt(Rl,Mf),function(){var a;return(a=r.default)===null||a===void 0?void 0:a.call(r)}}});var B_=function(){return k(k({},Lt(D_(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{},{value:{type:[Array,Object,String,Number]},defaultValue:{type:[Array,Object,String,Number]},notFoundContent:ee.any,suffixIcon:ee.any,itemIcon:ee.any,size:String,mode:String,bordered:{type:Boolean,default:!0},transitionName:String,choiceTransitionName:{type:String,default:""},"onUpdate:value":Function})},hm="SECRET_COMBOBOX_MODE_DO_NOT_USE",fr=he({compatConfig:{MODE:3},name:"ASelect",Option:H$,OptGroup:V$,inheritAttrs:!1,props:pn(B_(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:hm,slots:["notFoundContent","suffixIcon","itemIcon","removeIcon","clearIcon","dropdownRender","option","placeholder","tagRender","maxTagPlaceholder","optionLabel"],setup:function(e,n){var r=n.attrs,a=n.emit,i=n.slots,o=n.expose,s=z(),l=Nv(),u=function(){var N;(N=s.value)===null||N===void 0||N.focus()},c=function(){var N;(N=s.value)===null||N===void 0||N.blur()},d=function(N){var R;(R=s.value)===null||R===void 0||R.scrollTo(N)},v=V(function(){var T=e.mode;if(T!=="combobox")return T===hm?"combobox":T}),h=lt("select",e),f=h.prefixCls,p=h.direction,m=h.configProvider,g=h.size,y=h.getPrefixCls,b=V(function(){return y()}),w=V(function(){return Da(b.value,"slide-up",e.transitionName)}),_=V(function(){var T;return Ce((T={},te(T,"".concat(f.value,"-lg"),g.value==="large"),te(T,"".concat(f.value,"-sm"),g.value==="small"),te(T,"".concat(f.value,"-rtl"),p.value==="rtl"),te(T,"".concat(f.value,"-borderless"),!e.bordered),T))}),C=function(){for(var N=arguments.length,R=new Array(N),F=0;F=1},subscribe:function(e){return ya.size||this.register(),wc+=1,ya.set(wc,e),e(zs),wc},unsubscribe:function(e){ya.delete(e),ya.size||this.unregister()},unregister:function(){var e=this;Object.keys(Bs).forEach(function(n){var r=Bs[n],a=e.matchHandlers[r];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),ya.clear()},register:function(){var e=this;Object.keys(Bs).forEach(function(n){var r=Bs[n],a=function(s){var l=s.matches;e.dispatch(k(k({},zs),{},te({},n,l)))},i=window.matchMedia(r);i.addListener(a),e.matchHandlers[r]={mql:i,listener:a},a(i)})}};const gm=lD;function uD(){var t=z({}),e=null;return Ve(function(){e=gm.subscribe(function(n){t.value=n})}),vn(function(){gm.unsubscribe(e)}),t}var Ln={adjustX:1,adjustY:1},Fn=[0,0],z_={left:{points:["cr","cl"],overflow:Ln,offset:[-4,0],targetOffset:Fn},right:{points:["cl","cr"],overflow:Ln,offset:[4,0],targetOffset:Fn},top:{points:["bc","tc"],overflow:Ln,offset:[0,-4],targetOffset:Fn},bottom:{points:["tc","bc"],overflow:Ln,offset:[0,4],targetOffset:Fn},topLeft:{points:["bl","tl"],overflow:Ln,offset:[0,-4],targetOffset:Fn},leftTop:{points:["tr","tl"],overflow:Ln,offset:[-4,0],targetOffset:Fn},topRight:{points:["br","tr"],overflow:Ln,offset:[0,-4],targetOffset:Fn},rightTop:{points:["tl","tr"],overflow:Ln,offset:[4,0],targetOffset:Fn},bottomRight:{points:["tr","br"],overflow:Ln,offset:[0,4],targetOffset:Fn},rightBottom:{points:["bl","br"],overflow:Ln,offset:[4,0],targetOffset:Fn},bottomLeft:{points:["tl","bl"],overflow:Ln,offset:[0,4],targetOffset:Fn},leftBottom:{points:["br","bl"],overflow:Ln,offset:[-4,0],targetOffset:Fn}},cD={prefixCls:String,id:String,overlayInnerStyle:ee.any};const fD=he({compatConfig:{MODE:3},name:"Content",props:cD,slots:["overlay"],setup:function(e,n){var r=n.slots;return function(){var a;return S("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(a=r.overlay)===null||a===void 0?void 0:a.call(r)])}}});var dD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function mm(){}const vD=he({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:ee.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:ee.string.def("right"),transitionName:String,animation:ee.any,afterVisibleChange:ee.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ee.string.def("rc-tooltip"),mouseEnterDelay:ee.number.def(.1),mouseLeaveDelay:ee.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ee.object.def(function(){return{}}),arrowContent:ee.any.def(null),tipId:String,builtinPlacements:ee.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=z(),s=function(){var v=e.prefixCls,h=e.tipId,f=e.overlayInnerStyle;return[S("div",{class:"".concat(v,"-arrow"),key:"arrow"},[Wn(r,e,"arrowContent")]),S(fD,{key:"content",prefixCls:v,id:h,overlayInnerStyle:f},{overlay:r.overlay})]},l=function(){return o.value.getPopupDomNode()};i({getPopupDomNode:l,triggerDOM:o,forcePopupAlign:function(){var v;return(v=o.value)===null||v===void 0?void 0:v.forcePopupAlign()}});var u=z(!1),c=z(!1);return yt(function(){var d=e.destroyTooltipOnHide;if(typeof d=="boolean")u.value=d;else if(d&&Qe(d)==="object"){var v=d.keepParent;u.value=v===!0,c.value=v===!1}}),function(){var d=e.overlayClassName,v=e.trigger,h=e.mouseEnterDelay,f=e.mouseLeaveDelay,p=e.overlayStyle,m=e.prefixCls,g=e.afterVisibleChange,y=e.transitionName,b=e.animation,w=e.placement,_=e.align;e.destroyTooltipOnHide;var C=e.defaultVisible,E=bt(e,dD),I=k({},E);e.visible!==void 0&&(I.popupVisible=e.visible);var T=k(k(k({popupClassName:d,prefixCls:m,action:v,builtinPlacements:z_,popupPlacement:w,popupAlign:_,afterPopupVisibleChange:g,popupTransitionName:y,popupAnimation:b,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:c.value,mouseLeaveDelay:f,popupStyle:p,mouseEnterDelay:h},I),a),{},{onPopupVisibleChange:e.onVisibleChange||mm,onPopupAlign:e.onPopupAlign||mm,ref:o,popup:s()});return S(Cu,T,{default:r.default})}}});var VG=Ha("success","processing","error","default","warning"),pD=Ha("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const hD=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var gD={adjustX:1,adjustY:1},ym={adjustX:0,adjustY:0},mD=[0,0];function bm(t){return typeof t=="boolean"?t?gD:ym:k(k({},ym),t)}function yD(t){var e=t.arrowWidth,n=e===void 0?4:e,r=t.horizontalArrowShift,a=r===void 0?16:r,i=t.verticalArrowShift,o=i===void 0?8:i,s=t.autoAdjustOverflow,l=t.arrowPointAtCenter,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,o+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,o+n]}};return Object.keys(u).forEach(function(c){u[c]=l?k(k({},u[c]),{},{overflow:bm(s),targetOffset:mD}):k(k({},z_[c]),{},{overflow:bm(s)}),u[c].ignoreShake=!0}),u}function Nf(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,n=t.length;e=0||T.indexOf("Bottom")>=0?R.top="".concat(N.height-E.offset[1],"px"):(T.indexOf("Top")>=0||T.indexOf("bottom")>=0)&&(R.top="".concat(-E.offset[1],"px")),T.indexOf("left")>=0||T.indexOf("Right")>=0?R.left="".concat(N.width-E.offset[0],"px"):(T.indexOf("right")>=0||T.indexOf("Left")>=0)&&(R.left="".concat(-E.offset[0],"px")),C.style.transformOrigin="".concat(R.left," ").concat(R.top)}};return function(){var _,C,E,I=e.openClassName,T=e.color,N=e.overlayClassName,R=(_=Fi((C=r.default)===null||C===void 0?void 0:C.call(r)))!==null&&_!==void 0?_:null;R=R.length===1?R[0]:R;var F=c.value;if(e.visible===void 0&&h()&&(F=!1),!R)return null;var L=y(ar(R)?R:S("span",null,[R])),j=Ce((E={},te(E,I||"".concat(l.value,"-open"),!0),te(E,L.props&&L.props.class,L.props&&L.props.class),E)),D=Ce(N,te({},"".concat(l.value,"-").concat(T),T&&wm.test(T))),P,O;T&&!wm.test(T)&&(P={backgroundColor:T},O={backgroundColor:T});var M=k(k(k({},i),e),{},{prefixCls:l.value,getPopupContainer:u.value,builtinPlacements:m.value,visible:F,ref:d,overlayClassName:D,overlayInnerStyle:P,onVisibleChange:f,onPopupAlign:w});return S(vD,M,{default:function(){return[c.value?Et(L,{class:j}):L]},arrowContent:function(){return S("span",{class:"".concat(l.value,"-arrow-content"),style:O},null)},overlay:b})}}}),CD=Bi(_D);var Qa={adjustX:1,adjustY:1},ei=[0,0],SD={topLeft:{points:["bl","tl"],overflow:Qa,offset:[0,-4],targetOffset:ei},topCenter:{points:["bc","tc"],overflow:Qa,offset:[0,-4],targetOffset:ei},topRight:{points:["br","tr"],overflow:Qa,offset:[0,-4],targetOffset:ei},bottomLeft:{points:["tl","bl"],overflow:Qa,offset:[0,4],targetOffset:ei},bottomCenter:{points:["tc","bc"],overflow:Qa,offset:[0,4],targetOffset:ei},bottomRight:{points:["tr","br"],overflow:Qa,offset:[0,4],targetOffset:ei}};const xD=SD;var TD=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const ED=he({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:ee.string.def("rc-dropdown"),transitionName:String,overlayClassName:ee.string.def(""),openClassName:String,animation:ee.any,align:ee.object,overlayStyle:{type:Object,default:void 0},placement:ee.string.def("bottomLeft"),overlay:ee.any,trigger:ee.oneOfType([ee.string,ee.arrayOf(ee.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:ee.array,hideAction:ee.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:ee.number.def(.15),mouseLeaveDelay:ee.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,n){var r=n.slots,a=n.emit,i=n.expose,o=z(!!e.visible);pe(function(){return e.visible},function(f){f!==void 0&&(o.value=f)});var s=z();i({triggerRef:s});var l=function(p){e.visible===void 0&&(o.value=!1),a("overlayClick",p)},u=function(p){e.visible===void 0&&(o.value=p),a("visibleChange",p)},c=function(){var p,m=(p=r.overlay)===null||p===void 0?void 0:p.call(r),g={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:l,getPopupContainer:function(){return s.value.getPopupDomNode()}};return S(Re,null,[e.arrow&&S("div",{class:"".concat(e.prefixCls,"-arrow")},null),Et(m,g,!1)])},d=V(function(){var f=e.minOverlayWidthMatchTrigger,p=f===void 0?!e.alignPoint:f;return p}),v=function(){var p,m=(p=r.default)===null||p===void 0?void 0:p.call(r);return o.value&&m?Et(m[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):m},h=V(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var f=e.prefixCls,p=e.arrow,m=e.showAction,g=e.overlayStyle,y=e.trigger,b=e.placement,w=e.align,_=e.getPopupContainer,C=e.transitionName,E=e.animation,I=e.overlayClassName,T=bt(e,TD);return S(Cu,k(k({},T),{},{prefixCls:f,ref:s,popupClassName:Ce(I,te({},"".concat(f,"-show-arrow"),p)),popupStyle:g,builtinPlacements:xD,action:y,showAction:m,hideAction:h.value||[],popupPlacement:b,popupAlign:w,popupTransitionName:C,popupAnimation:E,popupVisible:o.value,stretch:d.value?"minWidth":"",onPopupVisibleChange:u,getPopupContainer:_}),{popup:c,default:v})}}});var _c={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},Cc={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},li=[],ui=[];function OD(){var t=document.createElement("div"),e=t.style;"AnimationEvent"in window||(delete _c.animationstart.animation,delete Cc.animationend.animation),"TransitionEvent"in window||(delete _c.transitionstart.transition,delete Cc.transitionend.transition);function n(r,a){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];for(var s in o)if(s in e){a.push(o[s]);break}}}n(_c,li),n(Cc,ui)}typeof window<"u"&&typeof document<"u"&&OD();function _m(t,e,n){t.addEventListener(e,n,!1)}function Cm(t,e,n){t.removeEventListener(e,n,!1)}var PD={startEvents:li,addStartEventListener:function(e,n){if(li.length===0){setTimeout(n,0);return}li.forEach(function(r){_m(e,r,n)})},removeStartEventListener:function(e,n){li.length!==0&&li.forEach(function(r){Cm(e,r,n)})},endEvents:ui,addEndEventListener:function(e,n){if(ui.length===0){setTimeout(n,0);return}ui.forEach(function(r){_m(e,r,n)})},removeEndEventListener:function(e,n){ui.length!==0&&ui.forEach(function(r){Cm(e,r,n)})}};const js=PD;var Kr;function Sm(t){return!t||t.offsetParent===null}function AD(t){var e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}const ID=he({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(e,n){var r=n.slots,a=n.expose,i=Pt(),o=lt("",e),s=o.csp,l=o.prefixCls;a({csp:s});var u=null,c=null,d=null,v=!1,h=null,f=!1,p=function(C){if(!f){var E=Ia(i);!C||C.target!==E||v||b(E)}},m=function(C){!C||C.animationName!=="fadeEffect"||b(C.target)},g=function(){var C=e.insertExtraNode;return C?"".concat(l.value,"-click-animating"):"".concat(l.value,"-click-animating-without-extra-node")},y=function(C,E){var I=e.insertExtraNode,T=e.disabled;if(!(T||!C||Sm(C)||C.className.indexOf("-leave")>=0)){h=document.createElement("div"),h.className="".concat(l.value,"-click-animating-node");var N=g();if(C.removeAttribute(N),C.setAttribute(N,"true"),Kr=Kr||document.createElement("style"),E&&E!=="#ffffff"&&E!=="rgb(255, 255, 255)"&&AD(E)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(E)&&E!=="transparent"){var R;(R=s.value)!==null&&R!==void 0&&R.nonce&&(Kr.nonce=s.value.nonce),h.style.borderColor=E,Kr.innerHTML=` +`].includes(B)})}),D=function(x,A,W){var K,U=!0,se=x;(K=e.onActiveValueChange)===null||K===void 0||K.call(e,null);var ie=W?null:Wk(x,e.tokenSeparators);if(e.mode!=="combobox"&&ie){var re;se="",(re=e.onSearchSplit)===null||re===void 0||re.call(e,ie),L(!1),U=!1}return e.onSearch&&C.value!==se&&e.onSearch(se,{source:A?"typing":"effect"}),U},P=function(x){var A;!x||!x.trim()||(A=e.onSearch)===null||A===void 0||A.call(e,x,{source:"submit"})};pe(T,function(){!T.value&&!o.value&&e.mode!=="combobox"&&D("",!1,!1)},{immediate:!0,flush:"post"}),pe(function(){return e.disabled},function(){I.value&&e.disabled&&N(!1)},{immediate:!0});var O=T_(),k=ke(O,2),$=k[0],G=k[1],J=function(x){var A,W=$(),K=x.which;if(K===Ae.ENTER&&(e.mode!=="combobox"&&x.preventDefault(),T.value||L(!0)),G(!!C.value),K===Ae.BACKSPACE&&!W&&o.value&&!C.value&&e.displayValues.length){for(var U=nt(e.displayValues),se=null,ie=U.length-1;ie>=0;ie-=1){var re=U[ie];if(!re.disabled){U.splice(ie,1),se=re;break}}se&&e.onDisplayValuesChange(U,{type:"remove",values:[se]})}for(var Q=arguments.length,H=new Array(Q>1?Q-1:0),q=1;q1?A-1:0),K=1;K1?ie-1:0),Q=1;Qn}},render:function(){var e=this.state,n=e.dragging,r=e.visible,a=this.$props.prefixCls,i=this.getSpinHeight()+"px",o=this.getTop()+"px",s=this.showScroll(),l=s&&r;return S("div",{ref:this.scrollbarRef,class:Ce("".concat(a,"-scrollbar"),te({},"".concat(a,"-scrollbar-show"),s)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[S("div",{ref:this.thumbRef,class:Ce("".concat(a,"-scrollbar-thumb"),te({},"".concat(a,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:i,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function d$(t,e,n,r){var a=new Map,i=new Map,o=z(Symbol("update"));pe(t,function(){o.value=Symbol("update")});var s=void 0;function l(){Ue.cancel(s)}function u(){l(),s=Ue(function(){a.forEach(function(d,v){if(d&&d.offsetParent){var h=d.offsetHeight;i.get(v)!==h&&(o.value=Symbol("update"),i.set(v,d.offsetHeight))}})})}function c(d,v){var h=e(d),f=a.get(h);v?(a.set(h,v.$el||v),u()):a.delete(h),!f!=!v&&(v?n==null||n(d):r==null||r(d))}return vn(function(){l()}),[c,u,i,o]}function v$(t,e,n,r,a,i,o,s){var l;return function(u){if(u==null){s();return}Ue.cancel(l);var c=e.value,d=r.itemHeight;if(typeof u=="number")o(u);else if(u&&Qe(u)==="object"){var v,h=u.align;"index"in u?v=u.index:v=c.findIndex(function(g){return a(g)===u.key});var f=u.offset,p=f===void 0?0:f,m=function g(y,b){if(!(y<0||!t.value)){var w=t.value.clientHeight,_=!1,C=b;if(w){for(var E=b||h,I=0,T=0,N=0,R=Math.min(c.length,v),F=0;F<=R;F+=1){var L=a(c[F]);T=I;var j=n.get(L);N=T+(j===void 0?d:j),I=N,F===v&&j===void 0&&(_=!0)}var D=t.value.scrollTop,P=null;switch(E){case"top":P=T-p;break;case"bottom":P=N-w+p;break;default:{var O=D+w;TO&&(C="bottom")}}P!==null&&P!==D&&o(P)}l=Ue(function(){_&&i(),g(y-1,C)},2)}};m(5)}}}var p$=(typeof navigator>"u"?"undefined":Qe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const h$=p$,M_=function(t,e){var n=!1,r=null;function a(){clearTimeout(r),n=!0,r=setTimeout(function(){n=!1},50)}return function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i<0&&t.value||i>0&&e.value;return o&&s?(clearTimeout(r),n=!1):(!s||n)&&a(),!n&&s}};function g$(t,e,n,r){var a=0,i=null,o=null,s=!1,l=M_(e,n);function u(d){if(t.value){Ue.cancel(i);var v=d.deltaY;a+=v,o=v,!l(v)&&(h$||d.preventDefault(),i=Ue(function(){var h=s?10:1;r(a*h),a=0}))}}function c(d){t.value&&(s=d.detail===o)}return[u,c]}var m$=14/15;function y$(t,e,n){var r=!1,a=0,i=null,o=null,s=function(){i&&(i.removeEventListener("touchmove",l),i.removeEventListener("touchend",u))},l=function(h){if(r){var f=Math.ceil(h.touches[0].pageY),p=a-f;a=f,n(p)&&h.preventDefault(),clearInterval(o),o=setInterval(function(){p*=m$,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(o)},16)}},u=function(){r=!1,s()},c=function(h){s(),h.touches.length===1&&!r&&(r=!0,a=Math.ceil(h.touches[0].pageY),i=h.target,i.addEventListener("touchmove",l,{passive:!1}),i.addEventListener("touchend",u))},d=function(){};Ve(function(){document.addEventListener("touchmove",d,{passive:!1}),pe(t,function(v){e.value.removeEventListener("touchstart",c),s(),clearInterval(o),v&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),st(function(){document.removeEventListener("touchmove",d)})}var b$=["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"],w$=[],_$={overflowY:"auto",overflowAnchor:"none"};function C$(t,e,n,r,a,i){var o=i.getKey;return t.slice(e,n+1).map(function(s,l){var u=e+l,c=a(s,u,{}),d=o(s);return S(u$,{key:d,setRef:function(h){return r(s,h)}},{default:function(){return[c]}})})}var S$=he({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ee.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(e,n){var r=n.expose,a=V(function(){var X=e.height,Y=e.itemHeight,ne=e.virtual;return!!(ne!==!1&&X&&Y)}),i=V(function(){var X=e.height,Y=e.itemHeight,ne=e.data;return a.value&&ne&&Y*ne.length>X}),o=ct({scrollTop:0,scrollMoving:!1}),s=V(function(){return e.data||w$}),l=Qn([]);pe(s,function(){l.value=De(s.value).slice()},{immediate:!0});var u=Qn(function(X){});pe(function(){return e.itemKey},function(X){typeof X=="function"?u.value=X:u.value=function(Y){return Y==null?void 0:Y[X]}},{immediate:!0});var c=z(),d=z(),v=z(),h=function(Y){return u.value(Y)},f={getKey:h};function p(X){var Y;typeof X=="function"?Y=X(o.scrollTop):Y=X;var ne=T(Y);c.value&&(c.value.scrollTop=ne),o.scrollTop=ne}var m=d$(l,h,null,null),g=ke(m,4),y=g[0],b=g[1],w=g[2],_=g[3],C=ct({scrollHeight:void 0,start:0,end:0,offset:void 0}),E=z(0);Ve(function(){Ke(function(){var X;E.value=((X=d.value)===null||X===void 0?void 0:X.offsetHeight)||0})}),ca(function(){Ke(function(){var X;E.value=((X=d.value)===null||X===void 0?void 0:X.offsetHeight)||0})}),pe([a,l],function(){a.value||Ut(C,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),pe([a,l,E,i],function(){a.value&&!i.value&&Ut(C,{scrollHeight:E.value,start:0,end:l.value.length-1,offset:void 0}),c.value&&(o.scrollTop=c.value.scrollTop)},{immediate:!0}),pe([i,a,function(){return o.scrollTop},l,_,function(){return e.height},E],function(){if(!(!a.value||!i.value)){for(var X=0,Y,ne,le,ge=l.value.length,_e=l.value,me=o.scrollTop,ye=e.itemHeight,Se=e.height,B=me+Se,x=0;x=me&&(Y=x,ne=X),le===void 0&&U>B&&(le=x),X=U}Y===void 0&&(Y=0,ne=0,le=Math.ceil(Se/ye)),le===void 0&&(le=ge-1),le=Math.min(le+1,ge),Ut(C,{scrollHeight:X,start:Y,end:le,offset:ne})}},{immediate:!0});var I=V(function(){return C.scrollHeight-e.height});function T(X){var Y=X;return Number.isNaN(I.value)||(Y=Math.min(Y,I.value)),Y=Math.max(Y,0),Y}var N=V(function(){return o.scrollTop<=0}),R=V(function(){return o.scrollTop>=I.value}),F=M_(N,R);function L(X){var Y=X;p(Y)}function j(X){var Y,ne=X.currentTarget.scrollTop;ne!==o.scrollTop&&p(ne),(Y=e.onScroll)===null||Y===void 0||Y.call(e,X)}var D=g$(a,N,R,function(X){p(function(Y){var ne=Y+X;return ne})}),P=ke(D,2),O=P[0],k=P[1];y$(a,c,function(X,Y){return F(X,Y)?!1:(O({preventDefault:function(){},deltaY:X}),!0)});function $(X){a.value&&X.preventDefault()}var G=function(){c.value&&(c.value.removeEventListener("wheel",O,ln?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",k),c.value.removeEventListener("MozMousePixelScroll",$))};yt(function(){Ke(function(){c.value&&(G(),c.value.addEventListener("wheel",O,ln?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",k),c.value.addEventListener("MozMousePixelScroll",$))})}),st(function(){G()});var J=v$(c,l,w,e,h,b,p,function(){var X;(X=v.value)===null||X===void 0||X.delayHidden()});r({scrollTo:J});var Z=V(function(){var X=null;return e.height&&(X=M(te({},e.fullHeight?"height":"maxHeight",e.height+"px"),_$),a.value&&(X.overflowY="hidden",o.scrollMoving&&(X.pointerEvents="none"))),X});return pe([function(){return C.start},function(){return C.end},l],function(){if(e.onVisibleChange){var X=l.value.slice(C.start,C.end+1);e.onVisibleChange(X,l.value)}},{flush:"post"}),{state:o,mergedData:l,componentStyle:Z,onFallbackScroll:j,onScrollBar:L,componentRef:c,useVirtual:a,calRes:C,collectHeight:b,setInstance:y,sharedConfig:f,scrollBarRef:v,fillerInnerRef:d}},render:function(){var e=this,n=M(M({},this.$props),this.$attrs),r=n.prefixCls,a=r===void 0?"rc-virtual-list":r,i=n.height;n.itemHeight,n.fullHeight,n.data,n.itemKey,n.virtual;var o=n.component,s=o===void 0?"div":o;n.onScroll;var l=n.children,u=l===void 0?this.$slots.default:l,c=n.style,d=n.class,v=bt(n,b$),h=Ce(a,d),f=this.state.scrollTop,p=this.calRes,m=p.scrollHeight,g=p.offset,y=p.start,b=p.end,w=this.componentStyle,_=this.onFallbackScroll,C=this.onScrollBar,E=this.useVirtual,I=this.collectHeight,T=this.sharedConfig,N=this.setInstance,R=this.mergedData;return S("div",M({style:M(M({},c),{},{position:"relative"}),class:h},v),[S(s,{class:"".concat(a,"-holder"),style:w,ref:"componentRef",onScroll:_},{default:function(){return[S(l$,{prefixCls:a,height:m,offset:g,onInnerResize:I,ref:"fillerInnerRef"},{default:function(){return C$(R,y,b,N,u,T)}})]}}),E&&S(f$,{ref:"scrollBarRef",prefixCls:a,scrollTop:f,height:i,scrollHeight:m,count:R.length,onScroll:C,onStartMove:function(){e.state.scrollMoving=!0},onStopMove:function(){e.state.scrollMoving=!1}},null)])}});const x$=S$;function T$(t,e,n){var r=z(t());return pe(e,function(a,i){n?n(a,i)&&(r.value=t()):r.value=t()}),r}function E$(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var N_=Symbol("SelectContextKey");function O$(t){return wt(N_,t)}function P$(){return ot(N_,{})}var A$=["disabled","title","children","style","class","className"];function cm(t){return typeof t=="string"||typeof t=="number"}var I$=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["option"],setup:function(e,n){var r=n.expose,a=n.slots,i=n$(),o=P$(),s=V(function(){return"".concat(i.prefixCls,"-item")}),l=T$(function(){return o.flattenOptions},[function(){return i.open},function(){return o.flattenOptions}],function(C){return C[0]}),u=Yo(),c=function(E){E.preventDefault()},d=function(E){u.current&&u.current.scrollTo(typeof E=="number"?{index:E}:E)},v=function(E){for(var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,T=l.value.length,N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;h.activeIndex=E;var T={source:I?"keyboard":"mouse"},N=l.value[E];if(!N){o.onActiveValue(null,-1,T);return}o.onActiveValue(N.value,E,T)};pe([function(){return l.value.length},function(){return i.searchValue}],function(){f(o.defaultActiveFirstOption!==!1?v(0):-1)},{immediate:!0});var p=function(E){return o.rawValues.has(E)&&i.mode!=="combobox"};pe([function(){return i.open},function(){return i.searchValue}],function(){if(!i.multiple&&i.open&&o.rawValues.size===1){var C=Array.from(o.rawValues)[0],E=De(l.value).findIndex(function(I){var T=I.data;return T[o.fieldNames.value]===C});E!==-1&&(f(E),Ke(function(){d(E)}))}i.open&&Ke(function(){var I;(I=u.current)===null||I===void 0||I.scrollTo(void 0)})},{immediate:!0,flush:"post"});var m=function(E){E!==void 0&&o.onSelect(E,{selected:!o.rawValues.has(E)}),i.multiple||i.toggleOpen(!1)},g=function(E){return typeof E.label=="function"?E.label():E.label};function y(C){var E=l.value[C];if(!E)return null;var I=E.data||{},T=I.value,N=E.group,R=xu(I,!0),F=g(E);return E?S("div",M(M({"aria-label":typeof F=="string"&&!N?F:null},R),{},{key:C,role:N?"presentation":"option",id:"".concat(i.id,"_list_").concat(C),"aria-selected":p(T)}),[T]):null}var b=function(E){var I=E.which,T=E.ctrlKey;switch(I){case Ae.N:case Ae.P:case Ae.UP:case Ae.DOWN:{var N=0;if(I===Ae.UP?N=-1:I===Ae.DOWN?N=1:E$()&&T&&(I===Ae.N?N=1:I===Ae.P&&(N=-1)),N!==0){var R=v(h.activeIndex+N,N);d(R),f(R,!0)}break}case Ae.ENTER:{var F=l.value[h.activeIndex];F&&!F.data.disabled?m(F.value):m(void 0),i.open&&E.preventDefault();break}case Ae.ESC:i.toggleOpen(!1),i.open&&E.stopPropagation()}},w=function(){},_=function(E){d(E)};return r({onKeydown:b,onKeyup:w,scrollTo:_}),function(){var C=i.id,E=i.notFoundContent,I=i.onPopupScroll,T=o.menuItemSelectedIcon,N=o.fieldNames,R=o.virtual,F=o.listHeight,L=o.listItemHeight,j=a.option,D=h.activeIndex,P=Object.keys(N).map(function(O){return N[O]});return l.value.length===0?S("div",{role:"listbox",id:"".concat(C,"_list"),class:"".concat(s.value,"-empty"),onMousedown:c},[E]):S(Re,null,[S("div",{role:"listbox",id:"".concat(C,"_list"),style:{height:0,width:0,overflow:"hidden"}},[y(D-1),y(D),y(D+1)]),S(x$,{itemKey:"key",ref:u,data:l.value,height:F,itemHeight:L,fullHeight:!1,onMousedown:c,onScroll:I,virtual:R},{default:function(k,$){var G,J=k.group,Z=k.groupOption,X=k.data,Y=k.value,ne=X.key,le=typeof k.label=="function"?k.label():k.label;if(J){var ge,_e=(ge=X.title)!==null&&ge!==void 0?ge:cm(le)&≤return S("div",{class:Ce(s.value,"".concat(s.value,"-group")),title:_e},[j?j(X):le!==void 0?le:ne])}var me=X.disabled,ye=X.title;X.children;var Se=X.style,B=X.class,x=X.className,A=bt(X,A$),W=Lt(A,P),K=p(Y),U="".concat(s.value,"-option"),se=Ce(s.value,U,B,x,(G={},te(G,"".concat(U,"-grouped"),Z),te(G,"".concat(U,"-active"),D===$&&!me),te(G,"".concat(U,"-disabled"),me),te(G,"".concat(U,"-selected"),K),G)),ie=g(k),re=!T||typeof T=="function"||K,Q=typeof ie=="number"?ie:ie||Y,H=cm(Q)?Q.toString():void 0;return ye!==void 0&&(H=ye),S("div",M(M({},W),{},{"aria-selected":K,class:se,title:H,onMousemove:function(ue){A.onMousemove&&A.onMousemove(ue),!(D===$||me)&&f($)},onClick:function(ue){me||m(Y),A.onClick&&A.onClick(ue)},style:Se}),[S("div",{class:"".concat(U,"-content")},[j?j(X):Q]),ar(T)||K,re&&S(Nl,{class:"".concat(s.value,"-option-state"),customizeIcon:T,customizeIconProps:{isSelected:K}},{default:function(){return[K?"✓":null]}})])}})])}}});const k$=I$;var M$=["value","disabled"];function N$(t){var e=t.key,n=t.children,r=t.props,a=r.value,i=r.disabled,o=bt(r,M$),s=n==null?void 0:n.default;return M({key:e,value:a!==void 0?a:e,children:s,disabled:i||i===""},o)}function R_(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=kn(t).map(function(r,a){var i;if(!ar(r)||!r.type)return null;var o=r.type.isSelectOptGroup,s=r.key,l=r.children,u=r.props;if(e||!o)return N$(r);var c=l&&l.default?l.default():void 0,d=(u==null?void 0:u.label)||((i=l.label)===null||i===void 0?void 0:i.call(l))||s;return M(M({key:"__RC_SELECT_GRP__".concat(s===null?a:String(s),"__")},u),{},{label:d,options:R_(c||[])})}).filter(function(r){return r});return n}function R$(t,e,n){var r=Qn(),a=Qn(),i=Qn(),o=Qn([]);return pe([t,e],function(){t.value?o.value=De(t.value).slice():o.value=R_(e.value)},{immediate:!0,deep:!0}),yt(function(){var s=o.value,l=new Map,u=new Map,c=n.value;function d(v){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=0;f0&&arguments[0]!==void 0?arguments[0]:z(""),e="rc_select_".concat(D$());return t.value||e}function $_(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function bc(t,e){return $_(t).join("").toUpperCase().includes(e)}const F$=function(t,e,n,r,a){return V(function(){var i=n.value,o=a==null?void 0:a.value,s=r==null?void 0:r.value;if(!i||s===!1)return t.value;var l=e.value,u=l.options,c=l.label,d=l.value,v=[],h=typeof s=="function",f=i.toUpperCase(),p=h?s:function(g,y){return o?bc(y[o],f):y[u]?bc(y[c!=="children"?c:"label"],f):bc(y[d],f)},m=h?function(g){return wf(g)}:function(g){return g};return t.value.forEach(function(g){if(g[u]){var y=p(i,m(g));if(y)v.push(g);else{var b=g[u].filter(function(w){return p(i,m(w))});b.length&&v.push(M(M({},g),{},te({},u,b)))}return}p(i,m(g))&&v.push(g)}),v})},B$=function(t,e){var n=Qn({values:new Map,options:new Map}),r=V(function(){var i=n.value,o=i.values,s=i.options,l=t.value.map(function(d){if(d.label===void 0){var v;return M(M({},d),{},{label:(v=o.get(d.value))===null||v===void 0?void 0:v.label})}return d}),u=new Map,c=new Map;return l.forEach(function(d){u.set(d.value,d),c.set(d.value,e.value.get(d.value)||s.get(d.value))}),n.value.values=u,n.value.options=c,l}),a=function(o){return e.value.get(o)||n.value.options.get(o)};return[r,a]};function Ai(t,e){var n=e||{},r=n.defaultValue,a=n.value,i=a===void 0?z():a,o=typeof t=="function"?t():t;i.value!==void 0&&(o=be(i)),r!==void 0&&(o=typeof r=="function"?r():r);var s=z(o),l=z(o);yt(function(){var c=i.value!==void 0?i.value:s.value;e.postState&&(c=e.postState(c)),l.value=c});function u(c){var d=l.value;s.value=c,De(l.value)!==c&&e.onChange&&e.onChange(c,d)}return pe(i,function(){s.value=i.value}),[l,u]}function Ht(t){var e=typeof t=="function"?t():t,n=z(e);function r(a){n.value=a}return[n,r]}var z$=["inputValue"];function D_(){return M(M({},A_()),{},{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ee.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ee.any,defaultValue:ee.any,onChange:Function,children:Array})}function j$(t){return!t||Qe(t)!=="object"}const W$=he({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:pn(D_(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup:function(e,n){var r=n.expose,a=n.attrs,i=n.slots,o=L$(sn(e,"id")),s=V(function(){return I_(e.mode)}),l=V(function(){return!!(!e.options&&e.children)}),u=V(function(){return e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption}),c=V(function(){return Jw(e.fieldNames,l.value)}),d=Ai("",{value:V(function(){return e.searchValue!==void 0?e.searchValue:e.inputValue}),postState:function(Q){return Q||""}}),v=ke(d,2),h=v[0],f=v[1],p=R$(sn(e,"options"),sn(e,"children"),c),m=p.valueOptions,g=p.labelOptions,y=p.options,b=function(Q){var H=$_(Q);return H.map(function(q){var ue,ae,fe,we;if(j$(q))ue=q;else{var xe;fe=q.key,ae=q.label,ue=(xe=q.value)!==null&&xe!==void 0?xe:fe}var Pe=m.value.get(ue);if(Pe){var oe;ae===void 0&&(ae=Pe==null?void 0:Pe[e.optionLabelProp||c.value.label]),fe===void 0&&(fe=(oe=Pe==null?void 0:Pe.key)!==null&&oe!==void 0?oe:ue),we=Pe==null?void 0:Pe.disabled}return{label:ae,value:ue,key:fe,disabled:we,option:Pe}})},w=Ai(e.defaultValue,{value:sn(e,"value")}),_=ke(w,2),C=_[0],E=_[1],I=V(function(){var re,Q=b(C.value);return e.mode==="combobox"&&!((re=Q[0])!==null&&re!==void 0&&re.value)?[]:Q}),T=B$(I,m),N=ke(T,2),R=N[0],F=N[1],L=V(function(){if(!e.mode&&R.value.length===1){var re=R.value[0];if(re.value===null&&(re.label===null||re.label===void 0))return[]}return R.value.map(function(Q){var H;return M(M({},Q),{},{label:(H=typeof Q.label=="function"?Q.label():Q.label)!==null&&H!==void 0?H:Q.value})})}),j=V(function(){return new Set(R.value.map(function(re){return re.value}))});yt(function(){if(e.mode==="combobox"){var re,Q=(re=R.value[0])===null||re===void 0?void 0:re.value;Q!=null&&f(String(Q))}},{flush:"post"});var D=function(Q,H){var q,ue=H??Q;return q={},te(q,c.value.value,Q),te(q,c.value.label,ue),q},P=Qn();yt(function(){if(e.mode!=="tags"){P.value=y.value;return}var re=y.value.slice(),Q=function(q){return m.value.has(q)};nt(R.value).sort(function(H,q){return H.value2&&arguments[2]!==void 0?arguments[2]:{},ue=q.source,ae=ue===void 0?"keyboard":ue;me(H),e.backfill&&e.mode==="combobox"&&Q!==null&&ae==="keyboard"&&ne(String(Q))},B=function(Q,H){var q=function(){var Ie,Le=F(Q),Ye=Le==null?void 0:Le[c.value.label];return[e.labelInValue?{label:typeof Ye=="function"?Ye():Ye,originLabel:Ye,value:Q,key:(Ie=Le==null?void 0:Le.key)!==null&&Ie!==void 0?Ie:Q}:Q,wf(Le)]};if(H&&e.onSelect){var ue=q(),ae=ke(ue,2),fe=ae[0],we=ae[1];e.onSelect(fe,we)}else if(!H&&e.onDeselect){var xe=q(),Pe=ke(xe,2),oe=Pe[0],ve=Pe[1];e.onDeselect(oe,ve)}},x=function(Q,H){var q,ue=s.value?H.selected:!0;ue?q=s.value?[].concat(nt(R.value),[Q]):[Q]:q=R.value.filter(function(ae){return ae.value!==Q}),J(q),B(Q,ue),e.mode==="combobox"?ne(""):(!s.value||e.autoClearSearchValue)&&(f(""),ne(""))},A=function(Q,H){J(Q),(H.type==="remove"||H.type==="clear")&&H.values.forEach(function(q){B(q.value,!1)})},W=function(Q,H){if(f(Q),ne(null),H.source==="submit"){var q=(Q||"").trim();if(q){var ue=Array.from(new Set([].concat(nt(j.value),[q])));J(ue),B(q,!0),f("")}return}if(H.source!=="blur"){var ae;e.mode==="combobox"&&J(Q),(ae=e.onSearch)===null||ae===void 0||ae.call(e,Q)}},K=function(Q){var H=Q;e.mode!=="tags"&&(H=Q.map(function(ue){var ae=g.value.get(ue);return ae==null?void 0:ae.value}).filter(function(ue){return ue!==void 0}));var q=Array.from(new Set([].concat(nt(j.value),nt(H))));J(q),q.forEach(function(ue){B(ue,!0)})},U=V(function(){return e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1});O$(P_(M(M({},p),{},{flattenOptions:G,onActiveValue:Se,defaultActiveFirstOption:ye,onSelect:x,menuItemSelectedIcon:sn(e,"menuItemSelectedIcon"),rawValues:j,fieldNames:c,virtual:U,listHeight:sn(e,"listHeight"),listItemHeight:sn(e,"listItemHeight"),childrenAsData:l})));var se=z();r({focus:function(){var Q;(Q=se.value)===null||Q===void 0||Q.focus()},blur:function(){var Q;(Q=se.value)===null||Q===void 0||Q.blur()},scrollTo:function(Q){var H;(H=se.value)===null||H===void 0||H.scrollTo(Q)}});var ie=V(function(){return Lt(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])});return function(){return S(s$,M(M(M({},ie.value),a),{},{id:o,prefixCls:e.prefixCls,ref:se,omitDomProps:z$,mode:e.mode,displayValues:L.value,onDisplayValuesChange:A,searchValue:h.value,onSearch:W,onSearchSplit:K,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:k$,emptyOptions:!G.value.length,activeValue:Y.value,activeDescendantId:"".concat(o,"_list_").concat(_e.value)}),i)}}});var Pv=function(){return null};Pv.isSelectOption=!0;Pv.displayName="ASelectOption";const H$=Pv;var Av=function(){return null};Av.isSelectOptGroup=!0;Av.displayName="ASelectOptGroup";const V$=Av;var U$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const K$=U$;function dm(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=t.loading,r=t.multiple,a=t.prefixCls,i=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),o=t.clearIcon||e.clearIcon&&e.clearIcon(),s=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),l=t.removeIcon||e.removeIcon&&e.removeIcon(),u=o;o||(u=S(hu,null,null));var c=null;if(i!==void 0)c=i;else if(n)c=S(Pl,{spin:!0},null);else{var d="".concat(a,"-suffix");c=function(p){var m=p.open,g=p.showSearch;return m&&g?S(F_,{class:d},null):S(L_,{class:d},null)}}var v=null;s!==void 0?v=s:r?v=S(X$,null,null):v=null;var h=null;return l!==void 0?h=l:h=S(zr,null,null),{clearIcon:u,suffixIcon:c,itemIcon:v,removeIcon:h}}var Rl=Symbol("ContextProps"),$l=Symbol("InternalContextProps"),zG=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V(function(){return!0}),r=z(new Map),a=function(s,l){r.value.set(s,l),r.value=new Map(r.value)},i=function(s){r.value.delete(s),r.value=new Map(r.value)};pe([n,r],function(){}),wt(Rl,e),wt($l,{addFormItemField:a,removeFormItemField:i})},kf={id:V(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},Mf={addFormItemField:function(){},removeFormItemField:function(){}},Nv=function(){var e=ot($l,Mf),n=Symbol("FormItemFieldKey"),r=Pt();return e.addFormItemField(n,r.type),st(function(){e.removeFormItemField(n)}),wt($l,Mf),wt(Rl,kf),ot(Rl,kf)};const jG=he({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(e,n){var r=n.slots;return wt($l,Mf),wt(Rl,kf),function(){var a;return(a=r.default)===null||a===void 0?void 0:a.call(r)}}});var B_=function(){return M(M({},Lt(D_(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{},{value:{type:[Array,Object,String,Number]},defaultValue:{type:[Array,Object,String,Number]},notFoundContent:ee.any,suffixIcon:ee.any,itemIcon:ee.any,size:String,mode:String,bordered:{type:Boolean,default:!0},transitionName:String,choiceTransitionName:{type:String,default:""},"onUpdate:value":Function})},hm="SECRET_COMBOBOX_MODE_DO_NOT_USE",fr=he({compatConfig:{MODE:3},name:"ASelect",Option:H$,OptGroup:V$,inheritAttrs:!1,props:pn(B_(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:hm,slots:["notFoundContent","suffixIcon","itemIcon","removeIcon","clearIcon","dropdownRender","option","placeholder","tagRender","maxTagPlaceholder","optionLabel"],setup:function(e,n){var r=n.attrs,a=n.emit,i=n.slots,o=n.expose,s=z(),l=Nv(),u=function(){var N;(N=s.value)===null||N===void 0||N.focus()},c=function(){var N;(N=s.value)===null||N===void 0||N.blur()},d=function(N){var R;(R=s.value)===null||R===void 0||R.scrollTo(N)},v=V(function(){var T=e.mode;if(T!=="combobox")return T===hm?"combobox":T}),h=lt("select",e),f=h.prefixCls,p=h.direction,m=h.configProvider,g=h.size,y=h.getPrefixCls,b=V(function(){return y()}),w=V(function(){return Da(b.value,"slide-up",e.transitionName)}),_=V(function(){var T;return Ce((T={},te(T,"".concat(f.value,"-lg"),g.value==="large"),te(T,"".concat(f.value,"-sm"),g.value==="small"),te(T,"".concat(f.value,"-rtl"),p.value==="rtl"),te(T,"".concat(f.value,"-borderless"),!e.bordered),T))}),C=function(){for(var N=arguments.length,R=new Array(N),F=0;F=1},subscribe:function(e){return ya.size||this.register(),wc+=1,ya.set(wc,e),e(zs),wc},unsubscribe:function(e){ya.delete(e),ya.size||this.unregister()},unregister:function(){var e=this;Object.keys(Bs).forEach(function(n){var r=Bs[n],a=e.matchHandlers[r];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),ya.clear()},register:function(){var e=this;Object.keys(Bs).forEach(function(n){var r=Bs[n],a=function(s){var l=s.matches;e.dispatch(M(M({},zs),{},te({},n,l)))},i=window.matchMedia(r);i.addListener(a),e.matchHandlers[r]={mql:i,listener:a},a(i)})}};const gm=lD;function uD(){var t=z({}),e=null;return Ve(function(){e=gm.subscribe(function(n){t.value=n})}),vn(function(){gm.unsubscribe(e)}),t}var Ln={adjustX:1,adjustY:1},Fn=[0,0],z_={left:{points:["cr","cl"],overflow:Ln,offset:[-4,0],targetOffset:Fn},right:{points:["cl","cr"],overflow:Ln,offset:[4,0],targetOffset:Fn},top:{points:["bc","tc"],overflow:Ln,offset:[0,-4],targetOffset:Fn},bottom:{points:["tc","bc"],overflow:Ln,offset:[0,4],targetOffset:Fn},topLeft:{points:["bl","tl"],overflow:Ln,offset:[0,-4],targetOffset:Fn},leftTop:{points:["tr","tl"],overflow:Ln,offset:[-4,0],targetOffset:Fn},topRight:{points:["br","tr"],overflow:Ln,offset:[0,-4],targetOffset:Fn},rightTop:{points:["tl","tr"],overflow:Ln,offset:[4,0],targetOffset:Fn},bottomRight:{points:["tr","br"],overflow:Ln,offset:[0,4],targetOffset:Fn},rightBottom:{points:["bl","br"],overflow:Ln,offset:[4,0],targetOffset:Fn},bottomLeft:{points:["tl","bl"],overflow:Ln,offset:[0,4],targetOffset:Fn},leftBottom:{points:["br","bl"],overflow:Ln,offset:[-4,0],targetOffset:Fn}},cD={prefixCls:String,id:String,overlayInnerStyle:ee.any};const fD=he({compatConfig:{MODE:3},name:"Content",props:cD,slots:["overlay"],setup:function(e,n){var r=n.slots;return function(){var a;return S("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(a=r.overlay)===null||a===void 0?void 0:a.call(r)])}}});var dD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function mm(){}const vD=he({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:ee.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:ee.string.def("right"),transitionName:String,animation:ee.any,afterVisibleChange:ee.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ee.string.def("rc-tooltip"),mouseEnterDelay:ee.number.def(.1),mouseLeaveDelay:ee.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ee.object.def(function(){return{}}),arrowContent:ee.any.def(null),tipId:String,builtinPlacements:ee.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=z(),s=function(){var v=e.prefixCls,h=e.tipId,f=e.overlayInnerStyle;return[S("div",{class:"".concat(v,"-arrow"),key:"arrow"},[Wn(r,e,"arrowContent")]),S(fD,{key:"content",prefixCls:v,id:h,overlayInnerStyle:f},{overlay:r.overlay})]},l=function(){return o.value.getPopupDomNode()};i({getPopupDomNode:l,triggerDOM:o,forcePopupAlign:function(){var v;return(v=o.value)===null||v===void 0?void 0:v.forcePopupAlign()}});var u=z(!1),c=z(!1);return yt(function(){var d=e.destroyTooltipOnHide;if(typeof d=="boolean")u.value=d;else if(d&&Qe(d)==="object"){var v=d.keepParent;u.value=v===!0,c.value=v===!1}}),function(){var d=e.overlayClassName,v=e.trigger,h=e.mouseEnterDelay,f=e.mouseLeaveDelay,p=e.overlayStyle,m=e.prefixCls,g=e.afterVisibleChange,y=e.transitionName,b=e.animation,w=e.placement,_=e.align;e.destroyTooltipOnHide;var C=e.defaultVisible,E=bt(e,dD),I=M({},E);e.visible!==void 0&&(I.popupVisible=e.visible);var T=M(M(M({popupClassName:d,prefixCls:m,action:v,builtinPlacements:z_,popupPlacement:w,popupAlign:_,afterPopupVisibleChange:g,popupTransitionName:y,popupAnimation:b,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:c.value,mouseLeaveDelay:f,popupStyle:p,mouseEnterDelay:h},I),a),{},{onPopupVisibleChange:e.onVisibleChange||mm,onPopupAlign:e.onPopupAlign||mm,ref:o,popup:s()});return S(Cu,T,{default:r.default})}}});var VG=Ha("success","processing","error","default","warning"),pD=Ha("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const hD=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var gD={adjustX:1,adjustY:1},ym={adjustX:0,adjustY:0},mD=[0,0];function bm(t){return typeof t=="boolean"?t?gD:ym:M(M({},ym),t)}function yD(t){var e=t.arrowWidth,n=e===void 0?4:e,r=t.horizontalArrowShift,a=r===void 0?16:r,i=t.verticalArrowShift,o=i===void 0?8:i,s=t.autoAdjustOverflow,l=t.arrowPointAtCenter,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,o+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,o+n]}};return Object.keys(u).forEach(function(c){u[c]=l?M(M({},u[c]),{},{overflow:bm(s),targetOffset:mD}):M(M({},z_[c]),{},{overflow:bm(s)}),u[c].ignoreShake=!0}),u}function Nf(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,n=t.length;e=0||T.indexOf("Bottom")>=0?R.top="".concat(N.height-E.offset[1],"px"):(T.indexOf("Top")>=0||T.indexOf("bottom")>=0)&&(R.top="".concat(-E.offset[1],"px")),T.indexOf("left")>=0||T.indexOf("Right")>=0?R.left="".concat(N.width-E.offset[0],"px"):(T.indexOf("right")>=0||T.indexOf("Left")>=0)&&(R.left="".concat(-E.offset[0],"px")),C.style.transformOrigin="".concat(R.left," ").concat(R.top)}};return function(){var _,C,E,I=e.openClassName,T=e.color,N=e.overlayClassName,R=(_=Fi((C=r.default)===null||C===void 0?void 0:C.call(r)))!==null&&_!==void 0?_:null;R=R.length===1?R[0]:R;var F=c.value;if(e.visible===void 0&&h()&&(F=!1),!R)return null;var L=y(ar(R)?R:S("span",null,[R])),j=Ce((E={},te(E,I||"".concat(l.value,"-open"),!0),te(E,L.props&&L.props.class,L.props&&L.props.class),E)),D=Ce(N,te({},"".concat(l.value,"-").concat(T),T&&wm.test(T))),P,O;T&&!wm.test(T)&&(P={backgroundColor:T},O={backgroundColor:T});var k=M(M(M({},i),e),{},{prefixCls:l.value,getPopupContainer:u.value,builtinPlacements:m.value,visible:F,ref:d,overlayClassName:D,overlayInnerStyle:P,onVisibleChange:f,onPopupAlign:w});return S(vD,k,{default:function(){return[c.value?Et(L,{class:j}):L]},arrowContent:function(){return S("span",{class:"".concat(l.value,"-arrow-content"),style:O},null)},overlay:b})}}}),CD=Bi(_D);var Qa={adjustX:1,adjustY:1},ei=[0,0],SD={topLeft:{points:["bl","tl"],overflow:Qa,offset:[0,-4],targetOffset:ei},topCenter:{points:["bc","tc"],overflow:Qa,offset:[0,-4],targetOffset:ei},topRight:{points:["br","tr"],overflow:Qa,offset:[0,-4],targetOffset:ei},bottomLeft:{points:["tl","bl"],overflow:Qa,offset:[0,4],targetOffset:ei},bottomCenter:{points:["tc","bc"],overflow:Qa,offset:[0,4],targetOffset:ei},bottomRight:{points:["tr","br"],overflow:Qa,offset:[0,4],targetOffset:ei}};const xD=SD;var TD=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const ED=he({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:ee.string.def("rc-dropdown"),transitionName:String,overlayClassName:ee.string.def(""),openClassName:String,animation:ee.any,align:ee.object,overlayStyle:{type:Object,default:void 0},placement:ee.string.def("bottomLeft"),overlay:ee.any,trigger:ee.oneOfType([ee.string,ee.arrayOf(ee.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:ee.array,hideAction:ee.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:ee.number.def(.15),mouseLeaveDelay:ee.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,n){var r=n.slots,a=n.emit,i=n.expose,o=z(!!e.visible);pe(function(){return e.visible},function(f){f!==void 0&&(o.value=f)});var s=z();i({triggerRef:s});var l=function(p){e.visible===void 0&&(o.value=!1),a("overlayClick",p)},u=function(p){e.visible===void 0&&(o.value=p),a("visibleChange",p)},c=function(){var p,m=(p=r.overlay)===null||p===void 0?void 0:p.call(r),g={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:l,getPopupContainer:function(){return s.value.getPopupDomNode()}};return S(Re,null,[e.arrow&&S("div",{class:"".concat(e.prefixCls,"-arrow")},null),Et(m,g,!1)])},d=V(function(){var f=e.minOverlayWidthMatchTrigger,p=f===void 0?!e.alignPoint:f;return p}),v=function(){var p,m=(p=r.default)===null||p===void 0?void 0:p.call(r);return o.value&&m?Et(m[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):m},h=V(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var f=e.prefixCls,p=e.arrow,m=e.showAction,g=e.overlayStyle,y=e.trigger,b=e.placement,w=e.align,_=e.getPopupContainer,C=e.transitionName,E=e.animation,I=e.overlayClassName,T=bt(e,TD);return S(Cu,M(M({},T),{},{prefixCls:f,ref:s,popupClassName:Ce(I,te({},"".concat(f,"-show-arrow"),p)),popupStyle:g,builtinPlacements:xD,action:y,showAction:m,hideAction:h.value||[],popupPlacement:b,popupAlign:w,popupTransitionName:C,popupAnimation:E,popupVisible:o.value,stretch:d.value?"minWidth":"",onPopupVisibleChange:u,getPopupContainer:_}),{popup:c,default:v})}}});var _c={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},Cc={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},li=[],ui=[];function OD(){var t=document.createElement("div"),e=t.style;"AnimationEvent"in window||(delete _c.animationstart.animation,delete Cc.animationend.animation),"TransitionEvent"in window||(delete _c.transitionstart.transition,delete Cc.transitionend.transition);function n(r,a){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];for(var s in o)if(s in e){a.push(o[s]);break}}}n(_c,li),n(Cc,ui)}typeof window<"u"&&typeof document<"u"&&OD();function _m(t,e,n){t.addEventListener(e,n,!1)}function Cm(t,e,n){t.removeEventListener(e,n,!1)}var PD={startEvents:li,addStartEventListener:function(e,n){if(li.length===0){setTimeout(n,0);return}li.forEach(function(r){_m(e,r,n)})},removeStartEventListener:function(e,n){li.length!==0&&li.forEach(function(r){Cm(e,r,n)})},endEvents:ui,addEndEventListener:function(e,n){if(ui.length===0){setTimeout(n,0);return}ui.forEach(function(r){_m(e,r,n)})},removeEndEventListener:function(e,n){ui.length!==0&&ui.forEach(function(r){Cm(e,r,n)})}};const js=PD;var Kr;function Sm(t){return!t||t.offsetParent===null}function AD(t){var e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}const ID=he({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(e,n){var r=n.slots,a=n.expose,i=Pt(),o=lt("",e),s=o.csp,l=o.prefixCls;a({csp:s});var u=null,c=null,d=null,v=!1,h=null,f=!1,p=function(C){if(!f){var E=Ia(i);!C||C.target!==E||v||b(E)}},m=function(C){!C||C.animationName!=="fadeEffect"||b(C.target)},g=function(){var C=e.insertExtraNode;return C?"".concat(l.value,"-click-animating"):"".concat(l.value,"-click-animating-without-extra-node")},y=function(C,E){var I=e.insertExtraNode,T=e.disabled;if(!(T||!C||Sm(C)||C.className.indexOf("-leave")>=0)){h=document.createElement("div"),h.className="".concat(l.value,"-click-animating-node");var N=g();if(C.removeAttribute(N),C.setAttribute(N,"true"),Kr=Kr||document.createElement("style"),E&&E!=="#ffffff"&&E!=="rgb(255, 255, 255)"&&AD(E)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(E)&&E!=="transparent"){var R;(R=s.value)!==null&&R!==void 0&&R.nonce&&(Kr.nonce=s.value.nonce),h.style.borderColor=E,Kr.innerHTML=` [`.concat(l.value,"-click-animating-without-extra-node='true']::after, .").concat(l.value,`-click-animating-node { --antd-wave-shadow-color: `).concat(E,`; - }`),document.body.contains(Kr)||document.body.appendChild(Kr)}I&&C.appendChild(h),js.addStartEventListener(C,p),js.addEndEventListener(C,m)}},b=function(C){if(!(!C||C===h||!(C instanceof Element))){var E=e.insertExtraNode,I=g();C.setAttribute(I,"false"),Kr&&(Kr.innerHTML=""),E&&h&&C.contains(h)&&C.removeChild(h),js.removeStartEventListener(C,p),js.removeEndEventListener(C,m)}},w=function(C){if(!(!C||!C.getAttribute||C.getAttribute("disabled")||C.className.indexOf("disabled")>=0)){var E=function(T){if(!(T.target.tagName==="INPUT"||Sm(T.target))){b(C);var N=getComputedStyle(C).getPropertyValue("border-top-color")||getComputedStyle(C).getPropertyValue("border-color")||getComputedStyle(C).getPropertyValue("background-color");c=setTimeout(function(){return y(C,N)},0),Ue.cancel(d),v=!0,d=Ue(function(){v=!1},10)}};return C.addEventListener("click",E,!0),{cancel:function(){C.removeEventListener("click",E,!0)}}}};return Ve(function(){Ke(function(){var _=Ia(i);_.nodeType===1&&(u=w(_))})}),st(function(){u&&u.cancel(),clearTimeout(c),f=!0}),function(){var _;return(_=r.default)===null||_===void 0?void 0:_.call(r)[0]}}});function j_(t){return t==="danger"?{danger:!0}:{type:t}}var MD=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ee.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const kD=MD;var xm=function(e){e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Tm=function(e){Ke(function(){e&&(e.style.width="".concat(e.scrollWidth,"px"),e.style.opacity="1",e.style.transform="scale(1)")})},Em=function(e){e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};const ND=he({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(e){return function(){var n=e.existIcon,r=e.prefixCls,a=e.loading;if(n)return S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]);var i=!!a;return S(Yn,{name:"".concat(r,"-loading-icon-motion"),onBeforeEnter:xm,onEnter:Tm,onAfterEnter:Em,onBeforeLeave:Tm,onLeave:function(s){setTimeout(function(){xm(s)})},onAfterLeave:Em},{default:function(){return[i?S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]):null]}})}}});var Om=/^[\u4e00-\u9fa5]{2}$/,Pm=Om.test.bind(Om);function Ws(t){return t==="text"||t==="link"}const Xt=he({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:pn(kD(),{type:"default"}),slots:["icon"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.emit,o=n.expose,s=lt("btn",e),l=s.prefixCls,u=s.autoInsertSpaceInButton,c=s.direction,d=s.size,v=z(null),h=z(void 0),f=!1,p=z(!1),m=z(!1),g=V(function(){return u.value!==!1}),y=V(function(){return Qe(e.loading)==="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading});pe(y,function(T){clearTimeout(h.value),typeof y.value=="number"?h.value=setTimeout(function(){p.value=T},y.value):p.value=T},{immediate:!0});var b=V(function(){var T,N=e.type,R=e.shape,F=R===void 0?"default":R,L=e.ghost,j=e.block,D=e.danger,P=l.value,O={large:"lg",small:"sm",middle:void 0},M=d.value,$=M&&O[M]||"";return T={},te(T,"".concat(P),!0),te(T,"".concat(P,"-").concat(N),N),te(T,"".concat(P,"-").concat(F),F!=="default"&&F),te(T,"".concat(P,"-").concat($),$),te(T,"".concat(P,"-loading"),p.value),te(T,"".concat(P,"-background-ghost"),L&&!Ws(N)),te(T,"".concat(P,"-two-chinese-chars"),m.value&&g.value),te(T,"".concat(P,"-block"),j),te(T,"".concat(P,"-dangerous"),!!D),te(T,"".concat(P,"-rtl"),c.value==="rtl"),T}),w=function(){var N=v.value;if(!(!N||u.value===!1)){var R=N.textContent;f&&Pm(R)?m.value||(m.value=!0):m.value&&(m.value=!1)}},_=function(N){if(p.value||e.disabled){N.preventDefault();return}i("click",N)},C=function(N,R){var F=R?" ":"";if(N.type===Wa){var L=N.children.trim();return Pm(L)&&(L=L.split("").join(F)),S("span",null,[L])}return N};yt(function(){Un(!(e.ghost&&Ws(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Ve(w),ca(w),st(function(){h.value&&clearTimeout(h.value)});var E=function(){var N;(N=v.value)===null||N===void 0||N.focus()},I=function(){var N;(N=v.value)===null||N===void 0||N.blur()};return o({focus:E,blur:I}),function(){var T,N,R=e.icon,F=R===void 0?(T=r.icon)===null||T===void 0?void 0:T.call(r):R,L=Mn((N=r.default)===null||N===void 0?void 0:N.call(r));f=L.length===1&&!F&&!Ws(e.type);var j=e.type,D=e.htmlType,P=e.disabled,O=e.href,M=e.title,$=e.target,G=e.onMousedown,J=p.value?"loading":F,Z=k(k({},a),{},{title:M,disabled:P,class:[b.value,a.class,te({},"".concat(l.value,"-icon-only"),L.length===0&&!!J)],onClick:_,onMousedown:G});P||delete Z.disabled;var X=F&&!p.value?F:S(ND,{existIcon:!!F,prefixCls:l.value,loading:!!p.value},null),Y=L.map(function(le){return C(le,f&&g.value)});if(O!==void 0)return S("a",k(k({},Z),{},{href:O,target:$,ref:v}),[X,Y]);var ne=S("button",k(k({},Z),{},{ref:v,type:D}),[X,Y]);return Ws(j)?ne:S(ID,{ref:"wave",disabled:!!p.value},{default:function(){return[ne]}})}}});function Am(t,e){for(var n=0;n-1}function XD(t,e,n){for(var r=-1,a=t==null?0:t.length;++r=tL){var u=e?null:eL(t);if(u)return mv(u);o=!1,a=u_,l=new Go}else l=e?[]:s;e:for(;++r"u"?Se=T&&ye?me:"":_e===!1&&(Se="");var B={title:Se};!w.value&&!b.value&&(B.title=null,B.visible=!1);var x={};e.role==="option"&&(x["aria-selected"]=j.value);var A=Wn(r,e,"icon");return S(CD,k(k({},B),{},{placement:y.value?"left":"right",overlayClassName:"".concat(f.value,"-inline-collapsed-tooltip")}),{default:function(){return[S(wi.Item,k(k(k({component:"li"},i),{},{id:e.id,style:k(k({},i.style||{}),X.value),class:[D.value,(ge={},te(ge,"".concat(i.class),!!i.class),te(ge,"".concat(f.value,"-item-only-child"),(A?ye+1:ye)===1),ge)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},x),{},{onMouseenter:M,onMouseleave:$,onClick:O,onKeydown:G,onFocus:J,title:typeof _e=="string"?_e:void 0}),{default:function(){return[Et(A,{class:"".concat(f.value,"-item-icon")},!1),Z(A,me)]}})]}})}}});var ta={adjustX:1,adjustY:1},sL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},lL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},uL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const Nm=he({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,n){var r=n.slots,a=n.emit,i=z(!1),o=da(),s=o.getPopupContainer,l=o.rtl,u=o.subMenuOpenDelay,c=o.subMenuCloseDelay,d=o.builtinPlacements,v=o.triggerSubMenuAction,h=o.isRootMenu,f=o.forceSubMenuRender,p=o.motion,m=o.defaultMotions,g=Y_(),y=V(function(){return l.value?k(k({},lL),d.value):k(k({},sL),d.value)}),b=V(function(){return uL[e.mode]}),w=z();pe(function(){return e.visible},function(E){Ue.cancel(w.value),w.value=Ue(function(){i.value=E})},{immediate:!0}),st(function(){Ue.cancel(w.value)});var _=function(I){a("visibleChange",I)},C=V(function(){var E,I,T=p.value||((E=m.value)===null||E===void 0?void 0:E[e.mode])||((I=m.value)===null||I===void 0?void 0:I.other),N=typeof T=="function"?T():T;return N?cs(N.name,{css:!0}):void 0});return function(){var E=e.prefixCls,I=e.popupClassName,T=e.mode,N=e.popupOffset,R=e.disabled;return S(Cu,{prefixCls:E,popupClassName:Ce("".concat(E,"-popup"),te({},"".concat(E,"-rtl"),l.value),I),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:h.value?s.value:function(F){return F.parentNode},builtinPlacements:y.value,popupPlacement:b.value,popupVisible:i.value,popupAlign:N&&{offset:N},action:R?[]:[v.value],mouseEnterDelay:u.value,mouseLeaveDelay:c.value,onPopupVisibleChange:_,forceRender:g||f.value,popupAnimation:C.value},{popup:r.popup,default:r.default})}}});var rC=function(e,n){var r,a=n.slots,i=n.attrs,o=da(),s=o.prefixCls,l=o.mode;return S("ul",k(k({},i),{},{class:Ce(s.value,"".concat(s.value,"-sub"),"".concat(s.value,"-").concat(l.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(r=a.default)===null||r===void 0?void 0:r.call(a)])};rC.displayName="SubMenuList";const aC=rC,cL=he({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,n){var r=n.slots,a=V(function(){return"inline"}),i=da(),o=i.motion,s=i.mode,l=i.defaultMotions,u=V(function(){return s.value===a.value}),c=z(!u.value),d=V(function(){return u.value?e.open:!1});pe(s,function(){u.value&&(c.value=!1)},{flush:"post"});var v=V(function(){var h,f,p=o.value||((h=l.value)===null||h===void 0?void 0:h[a.value])||((f=l.value)===null||f===void 0?void 0:f.other),m=typeof p=="function"?p():p;return k(k({},m),{},{appear:e.keyPath.length<=1})});return function(){var h;return c.value?null:S(Ll,{mode:a.value},{default:function(){return[S(Yn,v.value,{default:function(){return[dn(S(aC,{id:e.id},{default:function(){return[(h=r.default)===null||h===void 0?void 0:h.call(r)]}}),[[$r,d.value]])]}})]}})}}});var Rm=0,fL=function(){return{icon:ee.any,title:ee.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Xo=he({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:fL(),slots:["icon","title","expandIcon"],setup:function(e,n){var r,a,i=n.slots,o=n.attrs,s=n.emit;X_(!1);var l=Lv(),u=Pt(),c=Qe(u.vnode.key)==="symbol"?String(u.vnode.key):u.vnode.key;Un(Qe(u.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(c),'"` not support Symbol type'));var d=lf(c)?c:"sub_menu_".concat(++Rm,"_$$_not_set_key"),v=(r=e.eventKey)!==null&&r!==void 0?r:lf(c)?"sub_menu_".concat(++Rm,"_$$_").concat(c):d,h=Dv(),f=h.parentEventKeys,p=h.parentInfo,m=h.parentKeys,g=V(function(){return[].concat(nt(m.value),[d])}),y=z([]),b={eventKey:v,key:d,parentEventKeys:f,childrenEventKeys:y,parentKeys:m};(a=p.childrenEventKeys)===null||a===void 0||a.value.push(v),st(function(){if(p.childrenEventKeys){var H;p.childrenEventKeys.value=(H=p.childrenEventKeys)===null||H===void 0?void 0:H.value.filter(function(q){return q!=v})}}),aL(v,d,b);var w=da(),_=w.prefixCls,C=w.activeKeys,E=w.disabled,I=w.changeActiveKeys,T=w.mode,N=w.inlineCollapsed,R=w.antdMenuTheme,F=w.openKeys,L=w.overflowDisabled,j=w.onOpenChange,D=w.registerMenuInfo,P=w.unRegisterMenuInfo,O=w.selectedSubMenuKeys,M=w.expandIcon,$=c!=null,G=!l&&(Y_()||!$);HD(G),(l&&$||!l&&!$||G)&&(D(v,b),st(function(){P(v)}));var J=V(function(){return"".concat(_.value,"-submenu")}),Z=V(function(){return E.value||e.disabled}),X=z(),Y=z(),ne=V(function(){return F.value.includes(d)}),le=V(function(){return!L.value&&ne.value}),ge=V(function(){return O.value.includes(d)}),_e=z(!1);pe(C,function(){_e.value=!!C.value.find(function(H){return H===d})},{immediate:!0});var me=function(q){Z.value||(s("titleClick",q,d),T.value==="inline"&&j(d,!ne.value))},ye=function(q){Z.value||(I(g.value),s("mouseenter",q))},Se=function(q){Z.value||(I([]),s("mouseleave",q))},B=nC(V(function(){return g.value.length})),x=function(q){T.value!=="inline"&&j(d,q)},A=function(){I(g.value)},W=v&&"".concat(v,"-popup"),K=V(function(){return Ce(_.value,"".concat(_.value,"-").concat(R.value),e.popupClassName)}),U=function(q,ue){if(!ue)return N.value&&!m.value.length&&q&&typeof q=="string"?S("div",{class:"".concat(_.value,"-inline-collapsed-noicon")},[q.charAt(0)]):S("span",{class:"".concat(_.value,"-title-content")},[q]);var ae=ar(q)&&q.type==="span";return S(Re,null,[Et(ue,{class:"".concat(_.value,"-item-icon")},!1),ae?q:S("span",{class:"".concat(_.value,"-title-content")},[q])])},se=V(function(){return T.value!=="inline"&&g.value.length>1?"vertical":T.value}),ie=V(function(){return T.value==="horizontal"?"vertical":T.value}),re=V(function(){return se.value==="horizontal"?"vertical":se.value}),Q=function(){var q=J.value,ue=Wn(i,e,"icon"),ae=e.expandIcon||i.expandIcon||M.value,fe=U(Wn(i,e,"title"),ue);return S("div",{style:B.value,class:"".concat(q,"-title"),tabindex:Z.value?null:-1,ref:X,title:typeof fe=="string"?fe:null,"data-menu-id":d,"aria-expanded":le.value,"aria-haspopup":!0,"aria-controls":W,"aria-disabled":Z.value,onClick:me,onFocus:A},[fe,T.value!=="horizontal"&&ae?ae(k(k({},e),{},{isOpen:le.value})):S("i",{class:"".concat(q,"-arrow")},null)])};return function(){var H;if(l){var q;return $?(q=i.default)===null||q===void 0?void 0:q.call(i):null}var ue=J.value,ae=function(){return null};return!L.value&&T.value!=="inline"?ae=function(){return S(Nm,{mode:se.value,prefixCls:ue,visible:!e.internalPopupClose&&le.value,popupClassName:K.value,popupOffset:e.popupOffset,disabled:Z.value,onVisibleChange:x},{default:function(){return[Q()]},popup:function(){return S(Ll,{mode:re.value,isRootMenu:!1},{default:function(){return[S(aC,{id:W,ref:Y},{default:i.default})]}})}})}:ae=function(){return S(Nm,null,{default:Q})},S(Ll,{mode:ie.value},{default:function(){return[S(wi.Item,k(k({component:"li"},o),{},{role:"none",class:Ce(ue,"".concat(ue,"-").concat(T.value),o.class,(H={},te(H,"".concat(ue,"-open"),le.value),te(H,"".concat(ue,"-active"),_e.value),te(H,"".concat(ue,"-selected"),ge.value),te(H,"".concat(ue,"-disabled"),Z.value),H)),onMouseenter:ye,onMouseleave:Se,"data-submenu-id":d}),{default:function(){return S(Re,null,[ae(),!L.value&&S(cL,{id:W,open:le.value,keyPath:g.value},{default:i.default})])}})]}})}}});function iC(t,e){if(t.classList)return t.classList.contains(e);var n=t.className;return" ".concat(n," ").indexOf(" ".concat(e," "))>-1}function $m(t,e){t.classList?t.classList.add(e):iC(t,e)||(t.className="".concat(t.className," ").concat(e))}function Dm(t,e){if(t.classList)t.classList.remove(e);else if(iC(t,e)){var n=t.className;t.className=" ".concat(n," ").replace(" ".concat(e," ")," ")}}var dL=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:n,css:!0,onBeforeEnter:function(a){a.style.height="0px",a.style.opacity="0",$m(a,e)},onEnter:function(a){Ke(function(){a.style.height="".concat(a.scrollHeight,"px"),a.style.opacity="1"})},onAfterEnter:function(a){a&&(Dm(a,e),a.style.height=null,a.style.opacity=null)},onBeforeLeave:function(a){$m(a,e),a.style.height="".concat(a.offsetHeight,"px"),a.style.opacity=null},onLeave:function(a){setTimeout(function(){a.style.height="0px",a.style.opacity="0"})},onAfterLeave:function(a){a&&(Dm(a,e),a.style&&(a.style.height=null,a.style.opacity=null))}}};const vL=dL;var pL=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},Lm=[];const ia=he({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:pL(),slots:["expandIcon","overflowedIndicator"],setup:function(e,n){var r=n.slots,a=n.emit,i=n.attrs,o=lt("menu",e),s=o.prefixCls,l=o.direction,u=o.getPrefixCls,c=z({}),d=ot(nL,z(void 0)),v=V(function(){return d.value!==void 0?d.value:e.inlineCollapsed}),h=z(!1);Ve(function(){h.value=!0}),yt(function(){Un(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Un(!(d.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var f=z([]),p=z([]),m=z({});pe(c,function(){for(var Y={},ne=0,le=Object.values(c.value);ne0&&arguments[0]!==void 0?arguments[0]:b.value;no(b.value,Y)||(b.value=Y.slice())},{immediate:!0,deep:!0});var w,_=function(ne){clearTimeout(w),w=setTimeout(function(){e.activeKey===void 0&&(f.value=ne),a("update:activeKey",ne[ne.length-1])})},C=V(function(){return!!e.disabled}),E=V(function(){return l.value==="rtl"}),I=z("vertical"),T=z(!1);yt(function(){(e.mode==="inline"||e.mode==="vertical")&&v.value?(I.value="vertical",T.value=v.value):(I.value=e.mode,T.value=!1)});var N=V(function(){return I.value==="inline"}),R=function(ne){b.value=ne,a("update:openKeys",ne),a("openChange",ne)},F=z(b.value),L=z(!1);pe(b,function(){N.value&&(F.value=b.value)},{immediate:!0}),pe(N,function(){if(!L.value){L.value=!0;return}N.value?b.value=F.value:R(Lm)},{immediate:!0});var j=V(function(){var Y;return Y={},te(Y,"".concat(s.value),!0),te(Y,"".concat(s.value,"-root"),!0),te(Y,"".concat(s.value,"-").concat(I.value),!0),te(Y,"".concat(s.value,"-inline-collapsed"),T.value),te(Y,"".concat(s.value,"-rtl"),E.value),te(Y,"".concat(s.value,"-").concat(e.theme),!0),Y}),D=V(function(){return u()}),P=V(function(){return{horizontal:{name:"".concat(D.value,"-slide-up")},inline:vL,other:{name:"".concat(D.value,"-zoom-big")}}});X_(!0);var O=function Y(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=[],ge=c.value;return ne.forEach(function(_e){var me=ge[_e],ye=me.key,Se=me.childrenEventKeys;le.push.apply(le,[ye].concat(nt(Y(be(Se)))))}),le},M=function(ne){a("click",ne),y(ne)},$=function(ne,le){var ge,_e=((ge=m.value[ne])===null||ge===void 0?void 0:ge.childrenEventKeys)||[],me=b.value.filter(function(Se){return Se!==ne});if(le)me.push(ne);else if(I.value!=="inline"){var ye=O(be(_e));me=Sc(me.filter(function(Se){return!ye.includes(Se)}))}no(b,me)||R(me)},G=function(ne,le){c.value=k(k({},c.value),{},te({},ne,le))},J=function(ne){delete c.value[ne],c.value=k({},c.value)},Z=z(0),X=V(function(){return e.expandIcon||r.expandIcon?function(Y){var ne=e.expandIcon||r.expandIcon;return ne=typeof ne=="function"?ne(Y):ne,Et(ne,{class:"".concat(s.value,"-submenu-expand-icon")},!1)}:null});return UD({store:c,prefixCls:s,activeKeys:f,openKeys:b,selectedKeys:p,changeActiveKeys:_,disabled:C,rtl:E,mode:I,inlineIndent:V(function(){return e.inlineIndent}),subMenuCloseDelay:V(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:V(function(){return e.subMenuOpenDelay}),builtinPlacements:V(function(){return e.builtinPlacements}),triggerSubMenuAction:V(function(){return e.triggerSubMenuAction}),getPopupContainer:V(function(){return e.getPopupContainer}),inlineCollapsed:T,antdMenuTheme:V(function(){return e.theme}),siderCollapsed:d,defaultMotions:V(function(){return h.value?P.value:null}),motion:V(function(){return h.value?e.motion:null}),overflowDisabled:z(void 0),onOpenChange:$,onItemClick:M,registerMenuInfo:G,unRegisterMenuInfo:J,selectedSubMenuKeys:g,isRootMenu:z(!0),expandIcon:X,forceSubMenuRender:V(function(){return e.forceSubMenuRender})}),function(){var Y,ne,le=Mn((Y=r.default)===null||Y===void 0?void 0:Y.call(r)),ge=Z.value>=le.length-1||I.value!=="horizontal"||e.disabledOverflow,_e=I.value!=="horizontal"||e.disabledOverflow?le:le.map(function(ye,Se){return S(Ll,{key:ye.key,overflowDisabled:Se>Z.value},{default:function(){return ye}})}),me=((ne=r.overflowedIndicator)===null||ne===void 0?void 0:ne.call(r))||S(V_,null,null);return S(wi,k(k({},i),{},{onMousedown:e.onMousedown,prefixCls:"".concat(s.value,"-overflow"),component:"ul",itemComponent:Jo,class:[j.value,i.class],role:"menu",id:e.id,data:_e,renderRawItem:function(Se){return Se},renderRawRest:function(Se){var B=Se.length,x=B?le.slice(-B):null;return S(Re,null,[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}}),S(km,null,{default:function(){return[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}})]}})])},maxCount:I.value!=="horizontal"||e.disabledOverflow?wi.INVALIDATE:wi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Se){Z.value=Se}}),{default:function(){return[S(uu,{to:"body"},{default:function(){return[S("div",{style:{display:"none"},"aria-hidden":!0},[S(km,null,{default:function(){return[_e]}})])]}})]}})}}});var hL=function(){return{title:ee.any}};const $f=he({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:hL(),slots:["title"],setup:function(e,n){var r=n.slots,a=n.attrs,i=da(),o=i.prefixCls,s=V(function(){return"".concat(o.value,"-item-group")}),l=Lv();return function(){var u,c;return l?(u=r.default)===null||u===void 0?void 0:u.call(r):S("li",k(k({},a),{},{onClick:function(v){return v.stopPropagation()},class:s.value}),[S("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(s.value,"-title")},[Wn(r,e,"title")]),S("ul",{class:"".concat(s.value,"-list")},[(c=r.default)===null||c===void 0?void 0:c.call(r)])])}}});var gL=function(){return{prefixCls:String,dashed:Boolean}};const Df=he({compatConfig:{MODE:3},name:"AMenuDivider",props:gL(),setup:function(e){var n=lt("menu",e),r=n.prefixCls,a=V(function(){var i;return i={},te(i,"".concat(r.value,"-item-divider"),!0),te(i,"".concat(r.value,"-item-divider-dashed"),!!e.dashed),i});return function(){return S("li",{class:a.value},null)}}});ia.install=function(t){return t.component(ia.name,ia),t.component(Jo.name,Jo),t.component(Xo.name,Xo),t.component(Df.name,Df),t.component($f.name,$f),t};ia.Item=Jo;ia.Divider=Df;ia.SubMenu=Xo;ia.ItemGroup=$f;var mL={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(nM,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",d="month",v="quarter",h="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,y={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(L){var j=["th","st","nd","rd"],D=L%100;return"["+L+(j[(D-20)%10]||j[D]||j[0])+"]"}},b=function(L,j,D){var P=String(L);return!P||P.length>=j?L:""+Array(j+1-P.length).join(D)+L},w={s:b,z:function(L){var j=-L.utcOffset(),D=Math.abs(j),P=Math.floor(D/60),O=D%60;return(j<=0?"+":"-")+b(P,2,"0")+":"+b(O,2,"0")},m:function L(j,D){if(j.date()1)return L($[0])}else{var G=j.name;C[G]=j,O=G}return!P&&O&&(_=O),O||!P&&_},T=function(L,j){if(E(L))return L.clone();var D=typeof j=="object"?j:{};return D.date=L,D.args=arguments,new R(D)},N=w;N.l=I,N.i=E,N.w=function(L,j){return T(L,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var R=function(){function L(D){this.$L=I(D.locale,null,!0),this.parse(D)}var j=L.prototype;return j.parse=function(D){this.$d=function(P){var O=P.date,M=P.utc;if(O===null)return new Date(NaN);if(N.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var $=O.match(m);if($){var G=$[2]-1||0,J=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)):new Date($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)}}return new Date(O)}(D),this.$x=D.x||{},this.init()},j.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==p},j.isSame=function(D,P){var O=T(D);return this.startOf(P)<=O&&O<=this.endOf(P)},j.isAfter=function(D,P){return T(D)M?(P=j,C.value="x"):(P=D,C.value="y"),e(-P,-P)&&L.preventDefault()}var I=z({onTouchStart:b,onTouchMove:w,onTouchEnd:_,onWheel:E});function T(L){I.value.onTouchStart(L)}function N(L){I.value.onTouchMove(L)}function R(L){I.value.onTouchEnd(L)}function F(L){I.value.onWheel(L)}Ve(function(){var L,j;document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),(L=t.value)===null||L===void 0||L.addEventListener("touchstart",T,{passive:!1}),(j=t.value)===null||j===void 0||j.addEventListener("wheel",F,{passive:!1})}),st(function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",R)})}function Um(t,e){var n=z(t);function r(a){var i=typeof a=="function"?a(n.value):a;i!==n.value&&e(i,n.value),n.value=i}return[n,r]}var WL=function(){var e=z(new Map),n=function(a){return function(i){e.value.set(a,i)}};return c1(function(){e.value=new Map}),[n,e]};const HL=WL;var VL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UL=/^\w*$/;function Fv(t,e){if(ir(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Ou(t)?!0:UL.test(t)||!VL.test(t)||e!=null&&t in Object(e)}var KL="Expected a function";function Bv(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(KL);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bv.Cache||Hr),n}Bv.Cache=Hr;var GL=500;function qL(t){var e=Bv(t,function(r){return n.size===GL&&n.clear(),r}),n=e.cache;return e}var YL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JL=/\\(\\)?/g,XL=qL(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(YL,function(n,r,a,i){e.push(a?i.replace(JL,"$1"):r||n)}),e});const ZL=XL;function Pu(t,e){return ir(t)?t:Fv(t,e)?[t]:ZL(sC(t))}var QL=1/0;function ps(t){if(typeof t=="string"||Ou(t))return t;var e=t+"";return e=="0"&&1/t==-QL?"-0":e}function zv(t,e){e=Pu(e,t);for(var n=0,r=e.length;t!=null&&n0&&n(s)?e>1?vC(s,e-1,n,r,a):yv(a,s):r||(a[a.length]=s)}return a}function u4(t){var e=t==null?0:t.length;return e?vC(t,1):[]}function c4(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Gm=Math.max;function f4(t,e,n){return e=Gm(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=Gm(r.length-e,0),o=Array(i);++a0){if(++e>=h4)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var b4=y4(p4);const w4=b4;function _4(t){return w4(f4(t,void 0,u4),t+"")}var C4=_4(function(t,e){return t==null?{}:s4(t,e)});const hC=C4;var qm={width:0,height:0,left:0,top:0,right:0},S4=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:ee.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const Ym=he({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:S4(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,n){var r=n.attrs,a=n.slots,i=cC(),o=i.tabs,s=i.prefixCls,l=z(),u=z(),c=z(),d=z(),v=HL(),h=Me(v,2),f=h[0],p=h[1],m=V(function(){return e.tabPosition==="top"||e.tabPosition==="bottom"}),g=Um(0,function(Ze,it){m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"left":"right"})}),y=Me(g,2),b=y[0],w=y[1],_=Um(0,function(Ze,it){!m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"top":"bottom"})}),C=Me(_,2),E=C[0],I=C[1],T=Ht(0),N=Me(T,2),R=N[0],F=N[1],L=Ht(0),j=Me(L,2),D=j[0],P=j[1],O=Ht(null),M=Me(O,2),$=M[0],G=M[1],J=Ht(null),Z=Me(J,2),X=Z[0],Y=Z[1],ne=Ht(0),le=Me(ne,2),ge=le[0],_e=le[1],me=Ht(0),ye=Me(me,2),Se=ye[0],B=ye[1],x=RL(new Map),A=Me(x,2),W=A[0],K=A[1],U=DL(o,W),se=V(function(){return"".concat(s.value,"-nav-operations-hidden")}),ie=z(0),re=z(0);yt(function(){m.value?e.rtl?(ie.value=0,re.value=Math.max(0,R.value-$.value)):(ie.value=Math.min(0,$.value-R.value),re.value=0):(ie.value=Math.min(0,X.value-D.value),re.value=0)});var Q=function(it){return itre.value?re.value:it},H=z(),q=Ht(),ue=Me(q,2),ae=ue[0],fe=ue[1],we=function(){fe(Date.now())},xe=function(){clearTimeout(H.value)},Pe=function(it,Je){it(function(Ct){var at=Q(Ct+Je);return at})};jL(l,function(Ze,it){if(m.value){if($.value>=R.value)return!1;Pe(w,Ze)}else{if(X.value>=D.value)return!1;Pe(I,it)}return xe(),we(),!0}),pe(ae,function(){xe(),ae.value&&(H.value=setTimeout(function(){fe(0)},100))});var oe=function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,Je=U.value.get(it)||{width:0,height:0,left:0,right:0,top:0};if(m.value){var Ct=b.value;e.rtl?Je.rightb.value+$.value&&(Ct=Je.right+Je.width-$.value):Je.left<-b.value?Ct=-Je.left:Je.left+Je.width>-b.value+$.value&&(Ct=-(Je.left+Je.width-$.value)),I(0),w(Q(Ct))}else{var at=E.value;Je.top<-E.value?at=-Je.top:Je.top+Je.height>-E.value+X.value&&(at=-(Je.top+Je.height-X.value)),w(0),I(Q(at))}},ve=z(0),Xe=z(0);yt(function(){var Ze,it,Je,Ct,at,zt,Gt,sr=U.value;["top","bottom"].includes(e.tabPosition)?(it="width",at=$.value,zt=R.value,Gt=ge.value,Je=e.rtl?"right":"left",Ct=Math.abs(b.value)):(it="height",at=X.value,zt=R.value,Gt=Se.value,Je="top",Ct=-E.value);var rn=at;zt+Gt>at&&ztCt+rn){jt=Sn-1;break}}for(var At=0,Wt=Tr-1;Wt>=0;Wt-=1){var $n=sr.get(Rn[Wt].key)||qm;if($n[Je]0,At=b.value+$.value=e||E<0||d&&I>=i}function g(){var C=xc();if(m(C))return y(C);s=setTimeout(g,p(C))}function y(C){return s=void 0,v&&r?h(C):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:y(xc())}function _(){var C=xc(),E=m(C);if(r=arguments,a=this,l=C,E){if(s===void 0)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,e),h(l)}return s===void 0&&(s=setTimeout(g,e)),o}return _.cancel=b,_.flush=w,_}var D4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const L4=D4;function Zm(t){for(var e=1;e"u")return 0;if(t||Tc===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var a=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),Tc=a-i}return Tc}var EC=function(){return{prefixCls:String,width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),style:{type:Object,default:void 0},class:String,placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:{type:Object,default:void 0},autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0}}},E8=function(){return k(k({},EC()),{},{forceRender:{type:Boolean,default:void 0},getContainer:ee.oneOfType([ee.string,ee.func,ee.object,ee.looseBool])})},O8=function(){return k(k({},EC()),{},{getContainer:Function,getOpenCount:Function,scrollLocker:ee.any,switchScrollingEffect:Function})};function P8(t){return Array.isArray(t)?t:[t]}var OC={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},A8=Object.keys(OC).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],sy=OC[A8];function ly(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on".concat(e),n)}function uy(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on".concat(e),n)}function I8(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var cy=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Ec=!(typeof window<"u"&&window.document&&window.document.createElement),M8=function t(e,n,r,a){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(a))===Math.abs(a),o=Math.max(Math.abs(r),Math.abs(a))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c=u.overflowY==="auto"||u.overflowY==="scroll",d=u.overflowX==="auto"||u.overflowX==="scroll",v=s&&c,h=l&&d;return i&&(!v||v&&(n.scrollTop>=s&&a<0||n.scrollTop<=0&&a>0))||o&&(!h||h&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0))?t(e,n.parentNode,r,a):!1},k8=["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class"],ro={},N8=he({compatConfig:{MODE:3},inheritAttrs:!1,props:O8(),emits:["close","handleClick","change"],setup:function(e,n){var r=n.emit,a=n.slots,i=ct({startPos:{x:null,y:null}}),o,s=z(),l=z(),u=z(),c=z(),d=z(),v=[],h="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),f=!Ec&&ln?{passive:!1}:!1;Ve(function(){Ke(function(){var O=e.open,M=e.getContainer,$=e.showMask,G=e.autofocus,J=M==null?void 0:M();if(j(e),O&&(J&&J.parentNode===document.body&&(ro[h]=O),E(),Ke(function(){G&&p()}),$)){var Z;(Z=e.scrollLocker)===null||Z===void 0||Z.lock()}})}),pe(function(){return e.level},function(){j(e)},{flush:"post"}),pe(function(){return e.open},function(){var O=e.open,M=e.getContainer,$=e.scrollLocker,G=e.showMask,J=e.autofocus,Z=M==null?void 0:M();Z&&Z.parentNode===document.body&&(ro[h]=!!O),E(),O?(J&&p(),G&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),vn(function(){var O,M=e.open;delete ro[h],M&&(I(!1),document.body.style.touchAction=""),(O=e.scrollLocker)===null||O===void 0||O.unLock()}),pe(function(){return e.placement},function(O){O&&(d.value=null)});var p=function(){var M,$;(M=l.value)===null||M===void 0||($=M.focus)===null||$===void 0||$.call(M)},m=function(M){M.touches.length>1||(i.startPos={x:M.touches[0].clientX,y:M.touches[0].clientY})},g=function(M){if(!(M.changedTouches.length>1)){var $=M.currentTarget,G=M.changedTouches[0].clientX-i.startPos.x,J=M.changedTouches[0].clientY-i.startPos.y;($===u.value||$===c.value||$===d.value&&M8($,M.target,G,J))&&M.cancelable&&M.preventDefault()}},y=function O(M){var $=M.target;uy($,sy,O),$.style.transition=""},b=function(M){r("close",M)},w=function(M){M.keyCode===Ae.ESC&&(M.stopPropagation(),b(M))},_=function(M){var $=e.open,G=e.afterVisibleChange;M.target===s.value&&M.propertyName.match(/transform$/)&&(l.value.style.transition="",!$&&L()&&(document.body.style.overflowX="",u.value&&(u.value.style.left="",u.value.style.width="")),G&&G(!!$))},C=V(function(){var O=e.placement,M=O==="left"||O==="right",$="translate".concat(M?"X":"Y");return{isHorizontal:M,placementName:$}}),E=function(){var M=e.open,$=e.width,G=e.height,J=C.value,Z=J.isHorizontal,X=J.placementName,Y=d.value?d.value.getBoundingClientRect()[Z?"width":"height"]:0,ne=(Z?$:G)||Y;T(M,X,ne)},I=function(M,$,G,J){var Z=e.placement,X=e.levelMove,Y=e.duration,ne=e.ease,le=e.showMask;v.forEach(function(ge){ge.style.transition="transform ".concat(Y," ").concat(ne),ly(ge,sy,y);var _e=M?G:0;if(X){var me=I8(X,{target:ge,open:M});_e=M?me[0]:me[1]||0}var ye=typeof _e=="number"?"".concat(_e,"px"):_e,Se=Z==="left"||Z==="top"?ye:"-".concat(ye);Se=le&&Z==="right"&&J?"calc(".concat(Se," + ").concat(J,"px)"):Se,ge.style.transform=_e?"".concat($,"(").concat(Se,")"):""})},T=function(M,$,G){if(!Ec){var J=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Kv(!0):0;I(M,$,G,J),N(J)}r("change",M)},N=function(M){var $=e.getContainer,G=e.showMask,J=e.open,Z=$==null?void 0:$();if(Z&&Z.parentNode===document.body&&G){var X=["touchstart"],Y=[document.body,u.value,c.value,d.value];J&&document.body.style.overflow!=="hidden"?(M&&R(M),document.body.style.touchAction="none",Y.forEach(function(ne,le){ne&&ly(ne,X[le]||"touchmove",le?g:m,f)})):L()&&(document.body.style.touchAction="",M&&F(M),Y.forEach(function(ne,le){ne&&uy(ne,X[le]||"touchmove",le?g:m,f)}))}},R=function(M){var $=e.placement,G=e.duration,J=e.ease,Z="width ".concat(G," ").concat(J),X="transform ".concat(G," ").concat(J);switch(l.value.style.transition="none",$){case"right":l.value.style.transform="translateX(-".concat(M,"px)");break;case"top":case"bottom":l.value.style.width="calc(100% - ".concat(M,"px)"),l.value.style.transform="translateZ(0)";break}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(X,",").concat(Z),l.value.style.width="",l.value.style.transform="")})},F=function(M){var $=e.placement,G=e.duration,J=e.ease;l.value.style.transition="none";var Z,X="width ".concat(G," ").concat(J),Y="transform ".concat(G," ").concat(J);switch($){case"left":{l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G);break}case"right":{l.value.style.transform="translateX(".concat(M,"px)"),l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G),u.value&&(u.value.style.left="-".concat(M,"px"),u.value.style.width="calc(100% + ".concat(M,"px)"));break}case"top":case"bottom":{l.value.style.width="calc(100% + ".concat(M,"px)"),l.value.style.height="100%",l.value.style.transform="translateZ(0)",Z="height 0s ".concat(J," ").concat(G);break}}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(Y,",").concat(Z?"".concat(Z,","):"").concat(X),l.value.style.transform="",l.value.style.width="",l.value.style.height="")})},L=function(){return!Object.keys(ro).some(function(M){return ro[M]})},j=function(M){var $=M.level,G=M.getContainer;if(!Ec){var J=G==null?void 0:G(),Z=J?J.parentNode:null;if(v=[],$==="all"){var X=Z?Array.prototype.slice.call(Z.children):[];X.forEach(function(Y){Y.nodeName!=="SCRIPT"&&Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y!==J&&v.push(Y)})}else $&&P8($).forEach(function(Y){document.querySelectorAll(Y).forEach(function(ne){v.push(ne)})})}},D=function(M){r("handleClick",M)},P=z(!1);return pe(l,function(){Ke(function(){P.value=!0})}),function(){var O,M,$,G=e.width,J=e.height,Z=e.open,X=e.prefixCls,Y=e.placement;e.level,e.levelMove,e.ease,e.duration,e.getContainer,e.onChange,e.afterVisibleChange;var ne=e.showMask,le=e.maskClosable,ge=e.maskStyle,_e=e.keyboard;e.getOpenCount,e.scrollLocker;var me=e.contentWrapperStyle,ye=e.style,Se=e.class,B=bt(e,k8),x=Z&&P.value,A=Ce(X,(O={},te(O,"".concat(X,"-").concat(Y),!0),te(O,"".concat(X,"-open"),x),te(O,Se,!!Se),te(O,"no-mask",!ne),O)),W=C.value.placementName,K=Y==="left"||Y==="top"?"-100%":"100%",U=x?"":"".concat(W,"(").concat(K,")");return S("div",k(k({},Lt(B,["switchScrollingEffect","autofocus"])),{},{tabindex:-1,class:A,style:ye,ref:l,onKeydown:x&&_e?w:void 0,onTransitionend:_}),[ne&&S("div",{class:"".concat(X,"-mask"),onClick:le?b:void 0,style:ge,ref:u},null),S("div",{class:"".concat(X,"-content-wrapper"),style:k({transform:U,msTransform:U,width:cy(G)?"".concat(G,"px"):G,height:cy(J)?"".concat(J,"px"):J},me),ref:s},[S("div",{class:"".concat(X,"-content"),ref:d},[(M=a.default)===null||M===void 0?void 0:M.call(a)]),a.handler?S("div",{onClick:D,ref:c},[($=a.handler)===null||$===void 0?void 0:$.call(a)]):null])])}}});const fy=N8;function Ii(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.element,r=n===void 0?document.body:n,a={},i=Object.keys(t);return i.forEach(function(o){a[o]=r.style[o]}),i.forEach(function(o){r.style[o]=t[o]}),a}function R8(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Oc={};const dy=function(t){if(!(!R8()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),r=document.body.className;if(t){if(!n.test(r))return;Ii(Oc),Oc={},document.body.className=r.replace(n,"").trim();return}var a=Kv();if(a&&(Oc=Ii({position:"relative",width:"calc(100% - ".concat(a,"px)")}),!n.test(r))){var i="".concat(r," ").concat(e);document.body.className=i.trim()}}};var Bn=[],PC="ant-scrolling-effect",Pc=new RegExp("".concat(PC),"g"),$8=0,Ac=new Map,D8=W_(function t(e){var n=this;H_(this,t),te(this,"getContainer",function(){var r;return(r=n.options)===null||r===void 0?void 0:r.container}),te(this,"reLock",function(r){var a=Bn.find(function(i){var o=i.target;return o===n.lockTarget});a&&n.unLock(),n.options=r,a&&(a.options=r,n.lock())}),te(this,"lock",function(){var r;if(!Bn.some(function(l){var u=l.target;return u===n.lockTarget})){if(Bn.some(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)})){Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}]);return}var a=0,i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body;(i===document.body&&window.innerWidth-document.documentElement.clientWidth>0||i.scrollHeight>i.clientHeight)&&(a=Kv());var o=i.className;if(Bn.filter(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)}).length===0&&Ac.set(i,Ii({width:a!==0?"calc(100% - ".concat(a,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:i})),!Pc.test(o)){var s="".concat(o," ").concat(PC);i.className=s.trim()}Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}])}}),te(this,"unLock",function(){var r,a=Bn.find(function(s){var l=s.target;return l===n.lockTarget});if(Bn=Bn.filter(function(s){var l=s.target;return l!==n.lockTarget}),!(!a||Bn.some(function(s){var l,u=s.options;return(u==null?void 0:u.container)===((l=a.options)===null||l===void 0?void 0:l.container)}))){var i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body,o=i.className;Pc.test(o)&&(Ii(Ac.get(i),{element:i}),Ac.delete(i),i.className=i.className.replace(Pc,"").trim())}}),this.lockTarget=$8++,this.options=e}),Or=0,ho=fs(),Us={},ti=function(e){if(!ho)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(Qe(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body};const AC=he({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ee.any,visible:{type:Boolean,default:void 0}},setup:function(e,n){var r=n.slots,a=z(),i=z(),o=z(),s=new D8({container:ti(e.getContainer)}),l=function(){var p,m;(p=a.value)===null||p===void 0||(m=p.parentNode)===null||m===void 0||m.removeChild(a.value)},u=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(p||a.value&&!a.value.parentNode){var m=ti(e.getContainer);return m?(m.appendChild(a.value),!0):!1}return!0},c=function(){return ho?(a.value||(a.value=document.createElement("div"),u(!0)),d(),a.value):null},d=function(){var p=e.wrapperClassName;a.value&&p&&p!==a.value.className&&(a.value.className=p)};ca(function(){d(),u()});var v=function(){Or===1&&!Object.keys(Us).length?(dy(),Us=Ii({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Or||(Ii(Us),Us={},dy(!0))},h=Pt();return Ve(function(){var f=!1;pe([function(){return e.visible},function(){return e.getContainer}],function(p,m){var g=Me(p,2),y=g[0],b=g[1],w=Me(m,2),_=w[0],C=w[1];if(ho&&ti(e.getContainer)===document.body&&(y&&!_?Or+=1:f&&(Or-=1)),f){var E=typeof b=="function"&&typeof C=="function";(E?b.toString()!==C.toString():b!==C)&&l(),y&&y!==_&&ho&&ti(b)!==s.getContainer()&&s.reLock({container:ti(b)})}f=!0},{immediate:!0,flush:"post"}),Ke(function(){u()||(o.value=Ue(function(){h.update()}))})}),st(function(){var f=e.visible,p=e.getContainer;ho&&ti(p)===document.body&&(Or=f&&Or?Or-1:Or),l(),Ue.cancel(o.value)}),function(){var f=e.forceRender,p=e.visible,m=null,g={getOpenCount:function(){return Or},getContainer:c,switchScrollingEffect:v,scrollLocker:s};return(f||p||i.value)&&(m=S(Af,{getContainer:c,ref:i},{default:function(){var b;return(b=r.default)===null||b===void 0?void 0:b.call(r,g)}})),m}}});var L8=["afterVisibleChange","getContainer","wrapperClassName","forceRender"],F8=["visible","afterClose"],B8=he({compatConfig:{MODE:3},inheritAttrs:!1,props:pn(E8(),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:function(){},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],slots:["handler"],setup:function(e,n){var r=n.emit,a=n.slots,i=z(null),o=function(u){r("handleClick",u)},s=function(u){r("close",u)};return function(){e.afterVisibleChange;var l=e.getContainer,u=e.wrapperClassName,c=e.forceRender,d=bt(e,L8),v=null;if(!l)return S("div",{class:u,ref:i},[S(fy,k(k({},d),{},{open:e.open,getContainer:function(){return i.value},onClose:s,onHandleClick:o}),a)]);var h=!!a.handler||c;return(h||e.open||i.value)&&(v=S(AC,{visible:e.open,forceRender:h,getContainer:l,wrapperClassName:u},{default:function(p){var m=p.visible,g=p.afterClose,y=bt(p,F8);return S(fy,k(k(k({ref:i},d),y),{},{open:m!==void 0?m:e.open,afterVisibleChange:g!==void 0?g:e.afterVisibleChange,onClose:s,onHandleClick:o}),a)}})),v}}});const z8=B8;var j8=["width","height","visible","placement","mask","wrapClassName","class"],W8=Ha("top","right","bottom","left");Ha("default","large");var vy={distance:180},H8=function(){return{autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:ee.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:ee.any,maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},wrapStyle:{type:Object,default:void 0},style:{type:Object,default:void 0},class:ee.any,wrapClassName:String,size:{type:String},drawerStyle:{type:Object,default:void 0},headerStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},contentWrapperStyle:{type:Object,default:void 0},title:ee.any,visible:{type:Boolean,default:void 0},width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),zIndex:Number,prefixCls:String,push:ee.oneOfType([ee.looseBool,{type:Object}]),placement:ee.oneOf(W8),keyboard:{type:Boolean,default:void 0},extra:ee.any,footer:ee.any,footerStyle:{type:Object,default:void 0},level:ee.any,levelMove:{type:[Number,Array,Function]},handle:ee.any,afterVisibleChange:Function,onAfterVisibleChange:Function,"onUpdate:visible":Function,onClose:Function}},V8=he({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:pn(H8(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:vy}),slots:["closeIcon","title","extra","footer","handle"],setup:function(e,n){var r=n.emit,a=n.slots,i=n.attrs,o=z(!1),s=z(!1),l=z(null),u=ot("parentDrawerOpts",null),c=lt("drawer",e),d=c.prefixCls;Un(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Un(e.wrapStyle===void 0,"Drawer","`wrapStyle` prop is deprecated, please use `style` instead"),Un(e.wrapClassName===void 0,"Drawer","`wrapClassName` prop is deprecated, please use `class` instead");var v=function(){o.value=!0},h=function(){o.value=!1,Ke(function(){f()})};wt("parentDrawerOpts",{setPush:v,setPull:h}),Ve(function(){var N=e.visible;N&&u&&u.setPush()}),vn(function(){u&&u.setPull()}),pe(function(){return e.visible},function(N){u&&(N?u.setPush():u.setPull())},{flush:"post"});var f=function(){var R,F;(R=l.value)===null||R===void 0||(F=R.domFocus)===null||F===void 0||F.call(R)},p=function(R){r("update:visible",!1),r("close",R)},m=function(R){var F;(F=e.afterVisibleChange)===null||F===void 0||F.call(e,R),r("afterVisibleChange",R)},g=V(function(){return e.destroyOnClose&&!e.visible}),y=function(){var R=g.value;R&&(e.visible||(s.value=!0))},b=V(function(){var N=e.push,R=e.placement,F;return typeof N=="boolean"?F=N?vy.distance:0:F=N.distance,F=parseFloat(String(F||0)),R==="left"||R==="right"?"translateX(".concat(R==="left"?F:-F,"px)"):R==="top"||R==="bottom"?"translateY(".concat(R==="top"?F:-F,"px)"):null}),w=V(function(){var N=e.visible,R=e.mask,F=e.placement,L=e.size,j=L===void 0?"default":L,D=e.width,P=e.height;if(!N&&!R)return{};var O={};if(F==="left"||F==="right"){var M=j==="large"?736:378;O.width=typeof D>"u"?M:D,O.width=typeof O.width=="string"?O.width:"".concat(O.width,"px")}else{var $=j==="large"?736:378;O.height=typeof P>"u"?$:P,O.height=typeof O.height=="string"?O.height:"".concat(O.height,"px")}return O}),_=V(function(){var N=e.zIndex,R=e.wrapStyle,F=e.mask,L=e.style,j=F?{}:w.value;return k(k(k({zIndex:N,transform:o.value?b.value:void 0},j),R),L)}),C=function(R){var F=e.closable,L=e.headerStyle,j=Wn(a,e,"extra"),D=Wn(a,e,"title");return!D&&!F?null:S("div",{class:Ce("".concat(R,"-header"),te({},"".concat(R,"-header-close-only"),F&&!D&&!j)),style:L},[S("div",{class:"".concat(R,"-header-title")},[E(R),D&&S("div",{class:"".concat(R,"-title")},[D])]),j&&S("div",{class:"".concat(R,"-extra")},[j])])},E=function(R){var F,L=e.closable,j=a.closeIcon?(F=a.closeIcon)===null||F===void 0?void 0:F.call(a):e.closeIcon;return L&&S("button",{key:"closer",onClick:p,"aria-label":"Close",class:"".concat(R,"-close")},[j===void 0?S(zr,null,null):j])},I=function(R){var F;if(s.value&&!e.visible)return null;s.value=!1;var L=e.bodyStyle,j=e.drawerStyle,D={},P=g.value;return P&&(D.opacity=0,D.transition="opacity .3s"),S("div",{class:"".concat(R,"-wrapper-body"),style:k(k({},D),j),onTransitionend:y},[C(R),S("div",{key:"body",class:"".concat(R,"-body"),style:L},[(F=a.default)===null||F===void 0?void 0:F.call(a)]),T(R)])},T=function(R){var F=Wn(a,e,"footer");if(!F)return null;var L="".concat(R,"-footer");return S("div",{class:L,style:e.footerStyle},[F])};return function(){var N;e.width,e.height;var R=e.visible,F=e.placement,L=e.mask,j=e.wrapClassName,D=e.class,P=bt(e,j8),O=L?w.value:{},M=L?"":"no-mask",$=k(k(k(k({},i),Lt(P,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","wrapStyle","onAfterVisibleChange","onClose","onUpdate:visible"])),O),{},{onClose:p,afterVisibleChange:m,handler:!1,prefixCls:d.value,open:R,showMask:L,placement:F,class:Ce((N={},te(N,D,D),te(N,j,!!j),te(N,M,!!M),N)),style:_.value,ref:l});return S(z8,$,{handler:e.handle?function(){return e.handle}:a.handle,default:function(){return I(d.value)}})}}});const U8=Bi(V8);var IC=function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:ee.oneOfType([ee.string,ee.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:ee.any,addonAfter:ee.any,prefix:ee.any,suffix:ee.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}};const Gv=IC;var MC=function(){return k(k({},Lt(IC(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function kC(t,e,n,r,a){var i;return Ce(t,(i={},te(i,"".concat(t,"-sm"),n==="small"),te(i,"".concat(t,"-lg"),n==="large"),te(i,"".concat(t,"-disabled"),r),te(i,"".concat(t,"-rtl"),a==="rtl"),te(i,"".concat(t,"-borderless"),!e),i))}var To=function(e){return e!=null&&(Array.isArray(e)?Fi(e).length:!0)};function K8(t){return To(t.prefix)||To(t.suffix)||To(t.allowClear)}function Ic(t){return To(t.addonBefore)||To(t.addonAfter)}var G8=["text","input"];const NC=he({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ee.oneOf(Ha("text","input")),value:ee.any,defaultValue:ee.any,allowClear:{type:Boolean,default:void 0},element:ee.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ee.any,prefix:ee.any,addonBefore:ee.any,addonAfter:ee.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(e,n){var r=n.slots,a=n.attrs,i=z(),o=function(h){var f;if((f=i.value)!==null&&f!==void 0&&f.contains(h.target)){var p=e.triggerFocus;p==null||p()}},s=function(h){var f,p=e.allowClear,m=e.value,g=e.disabled,y=e.readonly,b=e.handleReset,w=e.suffix,_=w===void 0?r.suffix:w;if(!p)return null;var C=!g&&!y&&m,E="".concat(h,"-clear-icon");return S(hu,{onClick:b,onMousedown:function(T){return T.preventDefault()},class:Ce((f={},te(f,"".concat(E,"-hidden"),!C),te(f,"".concat(E,"-has-suffix"),!!_),f),E),role:"button"},null)},l=function(h){var f,p=e.suffix,m=p===void 0?(f=r.suffix)===null||f===void 0?void 0:f.call(r):p,g=e.allowClear;return m||g?S("span",{class:"".concat(h,"-suffix")},[s(h),m]):null},u=function(h,f){var p,m,g,y=e.focused,b=e.value,w=e.prefix,_=w===void 0?(p=r.prefix)===null||p===void 0?void 0:p.call(r):w,C=e.size,E=e.suffix,I=E===void 0?(m=r.suffix)===null||m===void 0?void 0:m.call(r):E,T=e.disabled,N=e.allowClear,R=e.direction,F=e.readonly,L=e.bordered,j=e.hidden,D=e.addonAfter,P=D===void 0?r.addonAfter:D,O=e.addonBefore,M=O===void 0?r.addonBefore:O,$=l(h);if(!K8({prefix:_,suffix:I,allowClear:N}))return Et(f,{value:b});var G=_?S("span",{class:"".concat(h,"-prefix")},[_]):null,J=Ce("".concat(h,"-affix-wrapper"),(g={},te(g,"".concat(h,"-affix-wrapper-focused"),y),te(g,"".concat(h,"-affix-wrapper-disabled"),T),te(g,"".concat(h,"-affix-wrapper-sm"),C==="small"),te(g,"".concat(h,"-affix-wrapper-lg"),C==="large"),te(g,"".concat(h,"-affix-wrapper-input-with-clear-btn"),I&&N&&b),te(g,"".concat(h,"-affix-wrapper-rtl"),R==="rtl"),te(g,"".concat(h,"-affix-wrapper-readonly"),F),te(g,"".concat(h,"-affix-wrapper-borderless"),!L),te(g,"".concat(a.class),!Ic({addonAfter:P,addonBefore:M})&&a.class),g));return S("span",{ref:i,class:J,style:a.style,onMouseup:o,hidden:j},[G,Et(f,{style:null,value:b,class:kC(h,L,C,T)}),$])},c=function(h,f){var p,m,g,y=e.addonBefore,b=y===void 0?(p=r.addonBefore)===null||p===void 0?void 0:p.call(r):y,w=e.addonAfter,_=w===void 0?(m=r.addonAfter)===null||m===void 0?void 0:m.call(r):w,C=e.size,E=e.direction,I=e.hidden,T=e.disabled;if(!Ic({addonBefore:b,addonAfter:_}))return f;var N="".concat(h,"-group"),R="".concat(N,"-addon"),F=Ce(R,te({},"".concat(R,"-disabled"),T)),L=b?S("span",{class:F},[b]):null,j=_?S("span",{class:F},[_]):null,D=Ce("".concat(h,"-wrapper"),N,te({},"".concat(N,"-rtl"),E==="rtl")),P=Ce("".concat(h,"-group-wrapper"),(g={},te(g,"".concat(h,"-group-wrapper-sm"),C==="small"),te(g,"".concat(h,"-group-wrapper-lg"),C==="large"),te(g,"".concat(h,"-group-wrapper-rtl"),E==="rtl"),g),a.class);return S("span",{class:P,style:a.style,hidden:I},[S("span",{class:D},[L,Et(f,{style:null}),j])])},d=function(h,f){var p,m=e.value,g=e.allowClear,y=e.direction,b=e.bordered,w=e.hidden,_=e.addonAfter,C=_===void 0?r.addonAfter:_,E=e.addonBefore,I=E===void 0?r.addonBefore:E;if(!g)return Et(f,{value:m});var T=Ce("".concat(h,"-affix-wrapper"),"".concat(h,"-affix-wrapper-textarea-with-clear-btn"),(p={},te(p,"".concat(h,"-affix-wrapper-rtl"),y==="rtl"),te(p,"".concat(h,"-affix-wrapper-borderless"),!b),te(p,"".concat(a.class),!Ic({addonAfter:C,addonBefore:I})&&a.class),p));return S("span",{class:T,style:a.style,hidden:w},[Et(f,{style:null,value:m}),s(h)])};return function(){var v,h=e.prefixCls,f=e.inputType,p=e.element,m=p===void 0?(v=r.element)===null||v===void 0?void 0:v.call(r):p;return f===G8[0]?d(h,m):c(h,u(h,m))}}});function Ff(t){return typeof t>"u"||t===null?"":String(t)}function Eo(t,e,n,r){if(n){var a=e;if(e.type==="click"){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0});var i=t.cloneNode(!0);a.target=i,a.currentTarget=i,i.value="",n(a);return}if(r!==void 0){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0}),a.target=t,a.currentTarget=t,t.value=r,n(a);return}n(a)}}function RC(t,e){if(t){t.focus(e);var n=e||{},r=n.cursor;if(r){var a=t.value.length;switch(r){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(a,a);break;default:t.setSelectionRange(0,a)}}}}const Mt=he({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Gv(),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=z(),u,c=Nv(),d=lt("input",e),v=d.direction,h=d.prefixCls,f=d.size,p=d.autocomplete,m=z(e.value===void 0?e.defaultValue:e.value),g=z(!1);pe(function(){return e.value},function(){m.value=e.value}),pe(function(){return e.disabled},function(){e.value!==void 0&&(m.value=e.value),e.disabled&&(g.value=!1)});var y=function(){u=setTimeout(function(){var M;((M=s.value)===null||M===void 0?void 0:M.getAttribute("type"))==="password"&&s.value.hasAttribute("value")&&s.value.removeAttribute("value")})},b=function(M){RC(s.value,M)},w=function(){var M;(M=s.value)===null||M===void 0||M.blur()},_=function(M,$,G){var J;(J=s.value)===null||J===void 0||J.setSelectionRange(M,$,G)},C=function(){var M;(M=s.value)===null||M===void 0||M.select()};i({focus:b,blur:w,input:s,stateValue:m,setSelectionRange:_,select:C});var E=function(M){var $=e.onFocus;g.value=!0,$==null||$(M),Ke(function(){y()})},I=function(M){var $=e.onBlur;g.value=!1,$==null||$(M),c.onFieldBlur(),Ke(function(){y()})},T=function(M){o("update:value",M.target.value),o("change",M),o("input",M),c.onFieldChange()},N=Pt(),R=function(M,$){m.value!==M&&(e.value===void 0?m.value=M:Ke(function(){s.value.value!==m.value&&N.update()}),Ke(function(){$&&$()}))},F=function(M){Eo(s.value,M,T),R("",function(){b()})},L=function(M){var $=M.target,G=$.value,J=$.composing;if(!((M.isComposing||J)&&e.lazy||m.value===G)){var Z=M.target.value;Eo(s.value,M,T),R(Z,function(){y()})}},j=function(M){M.keyCode===13&&o("pressEnter",M),o("keydown",M)};Ve(function(){y()}),st(function(){clearTimeout(u)});var D=function(){var M,$=e.addonBefore,G=$===void 0?r.addonBefore:$,J=e.addonAfter,Z=J===void 0?r.addonAfter:J,X=e.disabled,Y=e.bordered,ne=Y===void 0?!0:Y,le=e.valueModifiers,ge=le===void 0?{}:le,_e=e.htmlSize,me=Lt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),ye=k(k(k({},me),a),{},{autocomplete:p.value,onChange:L,onInput:L,onFocus:E,onBlur:I,onKeydown:j,class:Ce(kC(h.value,ne,f.value,X,v.value),te({},a.class,a.class&&!G&&!Z)),ref:s,key:"ant-input",size:_e,id:(M=me.id)!==null&&M!==void 0?M:c.id.value});ge.lazy&&delete ye.onInput,ye.autofocus||delete ye.autofocus;var Se=S("input",Lt(ye,["size"]),null);return dn(Se,[[vs]])},P=function(){var M,$=m.value,G=e.maxlength,J=e.suffix,Z=J===void 0?(M=r.suffix)===null||M===void 0?void 0:M.call(r):J,X=e.showCount,Y=Number(G)>0;if(Z||X){var ne=nt(Ff($)).length,le=null;return Qe(X)==="object"?le=X.formatter({count:ne,maxlength:G}):le="".concat(ne).concat(Y?" / ".concat(G):""),S(Re,null,[!!X&&S("span",{class:Ce("".concat(h.value,"-show-count-suffix"),te({},"".concat(h.value,"-show-count-has-suffix"),!!Z))},[le]),Z])}return null};return function(){var O=k(k(k({},a),e),{},{prefixCls:h.value,inputType:"input",value:Ff(m.value),handleReset:F,focused:g.value&&!e.disabled});return S(NC,k(k({},Lt(O,["element","valueModifiers","suffix","showCount"])),{},{ref:l}),k(k({},r),{},{element:D,suffix:P}))}}}),q8=he({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(e,n){var r=n.slots,a=lt("input-group",e),i=a.prefixCls,o=a.direction,s=V(function(){var l,u=i.value;return l={},te(l,"".concat(u),!0),te(l,"".concat(u,"-lg"),e.size==="large"),te(l,"".concat(u,"-sm"),e.size==="small"),te(l,"".concat(u,"-compact"),e.compact),te(l,"".concat(u,"-rtl"),o.value==="rtl"),l});return function(){var l;return S("span",{class:s.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onFocus:e.onFocus,onBlur:e.onBlur},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});var Mc=/iPhone/i,py=/iPod/i,hy=/iPad/i,kc=/\bAndroid(?:.+)Mobile\b/i,gy=/Android/i,ni=/\bAndroid(?:.+)SD4930UR\b/i,Ks=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Pr=/Windows Phone/i,my=/\bWindows(?:.+)ARM\b/i,yy=/BlackBerry/i,by=/BB10/i,wy=/Opera Mini/i,_y=/\b(CriOS|Chrome)(?:.+)Mobile/i,Cy=/Mobile(?:.+)Firefox\b/i;function ze(t,e){return t.test(e)}function Sy(t){var e=t||(typeof navigator<"u"?navigator.userAgent:""),n=e.split("[FBAN");if(typeof n[1]<"u"){var r=n,a=Me(r,1);e=a[0]}if(n=e.split("Twitter"),typeof n[1]<"u"){var i=n,o=Me(i,1);e=o[0]}var s={apple:{phone:ze(Mc,e)&&!ze(Pr,e),ipod:ze(py,e),tablet:!ze(Mc,e)&&ze(hy,e)&&!ze(Pr,e),device:(ze(Mc,e)||ze(py,e)||ze(hy,e))&&!ze(Pr,e)},amazon:{phone:ze(ni,e),tablet:!ze(ni,e)&&ze(Ks,e),device:ze(ni,e)||ze(Ks,e)},android:{phone:!ze(Pr,e)&&ze(ni,e)||!ze(Pr,e)&&ze(kc,e),tablet:!ze(Pr,e)&&!ze(ni,e)&&!ze(kc,e)&&(ze(Ks,e)||ze(gy,e)),device:!ze(Pr,e)&&(ze(ni,e)||ze(Ks,e)||ze(kc,e)||ze(gy,e))||ze(/\bokhttp\b/i,e)},windows:{phone:ze(Pr,e),tablet:ze(my,e),device:ze(Pr,e)||ze(my,e)},other:{blackberry:ze(yy,e),blackberry10:ze(by,e),opera:ze(wy,e),firefox:ze(Cy,e),chrome:ze(_y,e),device:ze(yy,e)||ze(by,e)||ze(wy,e)||ze(Cy,e)||ze(_y,e)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var Y8=k(k({},Sy()),{},{isMobile:Sy});const J8=Y8;var X8=["disabled","loading","addonAfter","suffix"];const Z8=he({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:k(k({},Gv()),{},{inputPrefixCls:String,enterButton:ee.any,onSearch:{type:Function}}),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=function(){var w;(w=s.value)===null||w===void 0||w.focus()},u=function(){var w;(w=s.value)===null||w===void 0||w.blur()};i({focus:l,blur:u});var c=function(w){o("update:value",w.target.value),w&&w.target&&w.type==="click"&&o("search",w.target.value,w),o("change",w)},d=function(w){var _;document.activeElement===((_=s.value)===null||_===void 0?void 0:_.input)&&w.preventDefault()},v=function(w){var _;o("search",(_=s.value)===null||_===void 0?void 0:_.stateValue,w),J8.tablet||s.value.focus()},h=lt("input-search",e),f=h.prefixCls,p=h.getPrefixCls,m=h.direction,g=h.size,y=V(function(){return p("input",e.inputPrefixCls)});return function(){var b,w,_,C,E,I=e.disabled,T=e.loading,N=e.addonAfter,R=N===void 0?(b=r.addonAfter)===null||b===void 0?void 0:b.call(r):N,F=e.suffix,L=F===void 0?(w=r.suffix)===null||w===void 0?void 0:w.call(r):F,j=bt(e,X8),D=e.enterButton,P=D===void 0?(_=(C=r.enterButton)===null||C===void 0?void 0:C.call(r))!==null&&_!==void 0?_:!1:D;P=P||P==="";var O=typeof P=="boolean"?S(F_,null,null):null,M="".concat(f.value,"-button"),$=Array.isArray(P)?P[0]:P,G,J=$.type&&tA($.type)&&$.type.__ANT_BUTTON;if(J||$.tagName==="button")G=Et($,k({onMousedown:d,onClick:v,key:"enterButton"},J?{class:M,size:g.value}:{}),!1);else{var Z=O&&!P;G=S(Xt,{class:M,type:P?"primary":void 0,size:g.value,disabled:I,key:"enterButton",onMousedown:d,onClick:v,loading:T,icon:Z?O:null},{default:function(){return[Z?null:O||P]}})}R&&(G=[G,R]);var X=Ce(f.value,(E={},te(E,"".concat(f.value,"-rtl"),m.value==="rtl"),te(E,"".concat(f.value,"-").concat(g.value),!!g.value),te(E,"".concat(f.value,"-with-button"),!!P),E),a.class);return S(Mt,k(k(k({ref:s},Lt(j,["onUpdate:value","onSearch","enterButton"])),a),{},{onPressEnter:v,size:g.value,prefixCls:y.value,addonAfter:G,suffix:L,onChange:c,class:X,disabled:I}),r)}}});var Q8=` + }`),document.body.contains(Kr)||document.body.appendChild(Kr)}I&&C.appendChild(h),js.addStartEventListener(C,p),js.addEndEventListener(C,m)}},b=function(C){if(!(!C||C===h||!(C instanceof Element))){var E=e.insertExtraNode,I=g();C.setAttribute(I,"false"),Kr&&(Kr.innerHTML=""),E&&h&&C.contains(h)&&C.removeChild(h),js.removeStartEventListener(C,p),js.removeEndEventListener(C,m)}},w=function(C){if(!(!C||!C.getAttribute||C.getAttribute("disabled")||C.className.indexOf("disabled")>=0)){var E=function(T){if(!(T.target.tagName==="INPUT"||Sm(T.target))){b(C);var N=getComputedStyle(C).getPropertyValue("border-top-color")||getComputedStyle(C).getPropertyValue("border-color")||getComputedStyle(C).getPropertyValue("background-color");c=setTimeout(function(){return y(C,N)},0),Ue.cancel(d),v=!0,d=Ue(function(){v=!1},10)}};return C.addEventListener("click",E,!0),{cancel:function(){C.removeEventListener("click",E,!0)}}}};return Ve(function(){Ke(function(){var _=Ia(i);_.nodeType===1&&(u=w(_))})}),st(function(){u&&u.cancel(),clearTimeout(c),f=!0}),function(){var _;return(_=r.default)===null||_===void 0?void 0:_.call(r)[0]}}});function j_(t){return t==="danger"?{danger:!0}:{type:t}}var kD=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ee.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const MD=kD;var xm=function(e){e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Tm=function(e){Ke(function(){e&&(e.style.width="".concat(e.scrollWidth,"px"),e.style.opacity="1",e.style.transform="scale(1)")})},Em=function(e){e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};const ND=he({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(e){return function(){var n=e.existIcon,r=e.prefixCls,a=e.loading;if(n)return S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]);var i=!!a;return S(Yn,{name:"".concat(r,"-loading-icon-motion"),onBeforeEnter:xm,onEnter:Tm,onAfterEnter:Em,onBeforeLeave:Tm,onLeave:function(s){setTimeout(function(){xm(s)})},onAfterLeave:Em},{default:function(){return[i?S("span",{class:"".concat(r,"-loading-icon")},[S(Pl,null,null)]):null]}})}}});var Om=/^[\u4e00-\u9fa5]{2}$/,Pm=Om.test.bind(Om);function Ws(t){return t==="text"||t==="link"}const Xt=he({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:pn(MD(),{type:"default"}),slots:["icon"],setup:function(e,n){var r=n.slots,a=n.attrs,i=n.emit,o=n.expose,s=lt("btn",e),l=s.prefixCls,u=s.autoInsertSpaceInButton,c=s.direction,d=s.size,v=z(null),h=z(void 0),f=!1,p=z(!1),m=z(!1),g=V(function(){return u.value!==!1}),y=V(function(){return Qe(e.loading)==="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading});pe(y,function(T){clearTimeout(h.value),typeof y.value=="number"?h.value=setTimeout(function(){p.value=T},y.value):p.value=T},{immediate:!0});var b=V(function(){var T,N=e.type,R=e.shape,F=R===void 0?"default":R,L=e.ghost,j=e.block,D=e.danger,P=l.value,O={large:"lg",small:"sm",middle:void 0},k=d.value,$=k&&O[k]||"";return T={},te(T,"".concat(P),!0),te(T,"".concat(P,"-").concat(N),N),te(T,"".concat(P,"-").concat(F),F!=="default"&&F),te(T,"".concat(P,"-").concat($),$),te(T,"".concat(P,"-loading"),p.value),te(T,"".concat(P,"-background-ghost"),L&&!Ws(N)),te(T,"".concat(P,"-two-chinese-chars"),m.value&&g.value),te(T,"".concat(P,"-block"),j),te(T,"".concat(P,"-dangerous"),!!D),te(T,"".concat(P,"-rtl"),c.value==="rtl"),T}),w=function(){var N=v.value;if(!(!N||u.value===!1)){var R=N.textContent;f&&Pm(R)?m.value||(m.value=!0):m.value&&(m.value=!1)}},_=function(N){if(p.value||e.disabled){N.preventDefault();return}i("click",N)},C=function(N,R){var F=R?" ":"";if(N.type===Wa){var L=N.children.trim();return Pm(L)&&(L=L.split("").join(F)),S("span",null,[L])}return N};yt(function(){Un(!(e.ghost&&Ws(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Ve(w),ca(w),st(function(){h.value&&clearTimeout(h.value)});var E=function(){var N;(N=v.value)===null||N===void 0||N.focus()},I=function(){var N;(N=v.value)===null||N===void 0||N.blur()};return o({focus:E,blur:I}),function(){var T,N,R=e.icon,F=R===void 0?(T=r.icon)===null||T===void 0?void 0:T.call(r):R,L=kn((N=r.default)===null||N===void 0?void 0:N.call(r));f=L.length===1&&!F&&!Ws(e.type);var j=e.type,D=e.htmlType,P=e.disabled,O=e.href,k=e.title,$=e.target,G=e.onMousedown,J=p.value?"loading":F,Z=M(M({},a),{},{title:k,disabled:P,class:[b.value,a.class,te({},"".concat(l.value,"-icon-only"),L.length===0&&!!J)],onClick:_,onMousedown:G});P||delete Z.disabled;var X=F&&!p.value?F:S(ND,{existIcon:!!F,prefixCls:l.value,loading:!!p.value},null),Y=L.map(function(le){return C(le,f&&g.value)});if(O!==void 0)return S("a",M(M({},Z),{},{href:O,target:$,ref:v}),[X,Y]);var ne=S("button",M(M({},Z),{},{ref:v,type:D}),[X,Y]);return Ws(j)?ne:S(ID,{ref:"wave",disabled:!!p.value},{default:function(){return[ne]}})}}});function Am(t,e){for(var n=0;n-1}function XD(t,e,n){for(var r=-1,a=t==null?0:t.length;++r=tL){var u=e?null:eL(t);if(u)return mv(u);o=!1,a=u_,l=new Go}else l=e?[]:s;e:for(;++r"u"?Se=T&&ye?me:"":_e===!1&&(Se="");var B={title:Se};!w.value&&!b.value&&(B.title=null,B.visible=!1);var x={};e.role==="option"&&(x["aria-selected"]=j.value);var A=Wn(r,e,"icon");return S(CD,M(M({},B),{},{placement:y.value?"left":"right",overlayClassName:"".concat(f.value,"-inline-collapsed-tooltip")}),{default:function(){return[S(wi.Item,M(M(M({component:"li"},i),{},{id:e.id,style:M(M({},i.style||{}),X.value),class:[D.value,(ge={},te(ge,"".concat(i.class),!!i.class),te(ge,"".concat(f.value,"-item-only-child"),(A?ye+1:ye)===1),ge)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},x),{},{onMouseenter:k,onMouseleave:$,onClick:O,onKeydown:G,onFocus:J,title:typeof _e=="string"?_e:void 0}),{default:function(){return[Et(A,{class:"".concat(f.value,"-item-icon")},!1),Z(A,me)]}})]}})}}});var ta={adjustX:1,adjustY:1},sL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},lL={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ta,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ta,offset:[4,0]}},uL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const Nm=he({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,n){var r=n.slots,a=n.emit,i=z(!1),o=da(),s=o.getPopupContainer,l=o.rtl,u=o.subMenuOpenDelay,c=o.subMenuCloseDelay,d=o.builtinPlacements,v=o.triggerSubMenuAction,h=o.isRootMenu,f=o.forceSubMenuRender,p=o.motion,m=o.defaultMotions,g=Y_(),y=V(function(){return l.value?M(M({},lL),d.value):M(M({},sL),d.value)}),b=V(function(){return uL[e.mode]}),w=z();pe(function(){return e.visible},function(E){Ue.cancel(w.value),w.value=Ue(function(){i.value=E})},{immediate:!0}),st(function(){Ue.cancel(w.value)});var _=function(I){a("visibleChange",I)},C=V(function(){var E,I,T=p.value||((E=m.value)===null||E===void 0?void 0:E[e.mode])||((I=m.value)===null||I===void 0?void 0:I.other),N=typeof T=="function"?T():T;return N?cs(N.name,{css:!0}):void 0});return function(){var E=e.prefixCls,I=e.popupClassName,T=e.mode,N=e.popupOffset,R=e.disabled;return S(Cu,{prefixCls:E,popupClassName:Ce("".concat(E,"-popup"),te({},"".concat(E,"-rtl"),l.value),I),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:h.value?s.value:function(F){return F.parentNode},builtinPlacements:y.value,popupPlacement:b.value,popupVisible:i.value,popupAlign:N&&{offset:N},action:R?[]:[v.value],mouseEnterDelay:u.value,mouseLeaveDelay:c.value,onPopupVisibleChange:_,forceRender:g||f.value,popupAnimation:C.value},{popup:r.popup,default:r.default})}}});var rC=function(e,n){var r,a=n.slots,i=n.attrs,o=da(),s=o.prefixCls,l=o.mode;return S("ul",M(M({},i),{},{class:Ce(s.value,"".concat(s.value,"-sub"),"".concat(s.value,"-").concat(l.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(r=a.default)===null||r===void 0?void 0:r.call(a)])};rC.displayName="SubMenuList";const aC=rC,cL=he({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,n){var r=n.slots,a=V(function(){return"inline"}),i=da(),o=i.motion,s=i.mode,l=i.defaultMotions,u=V(function(){return s.value===a.value}),c=z(!u.value),d=V(function(){return u.value?e.open:!1});pe(s,function(){u.value&&(c.value=!1)},{flush:"post"});var v=V(function(){var h,f,p=o.value||((h=l.value)===null||h===void 0?void 0:h[a.value])||((f=l.value)===null||f===void 0?void 0:f.other),m=typeof p=="function"?p():p;return M(M({},m),{},{appear:e.keyPath.length<=1})});return function(){var h;return c.value?null:S(Ll,{mode:a.value},{default:function(){return[S(Yn,v.value,{default:function(){return[dn(S(aC,{id:e.id},{default:function(){return[(h=r.default)===null||h===void 0?void 0:h.call(r)]}}),[[$r,d.value]])]}})]}})}}});var Rm=0,fL=function(){return{icon:ee.any,title:ee.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Xo=he({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:fL(),slots:["icon","title","expandIcon"],setup:function(e,n){var r,a,i=n.slots,o=n.attrs,s=n.emit;X_(!1);var l=Lv(),u=Pt(),c=Qe(u.vnode.key)==="symbol"?String(u.vnode.key):u.vnode.key;Un(Qe(u.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(c),'"` not support Symbol type'));var d=lf(c)?c:"sub_menu_".concat(++Rm,"_$$_not_set_key"),v=(r=e.eventKey)!==null&&r!==void 0?r:lf(c)?"sub_menu_".concat(++Rm,"_$$_").concat(c):d,h=Dv(),f=h.parentEventKeys,p=h.parentInfo,m=h.parentKeys,g=V(function(){return[].concat(nt(m.value),[d])}),y=z([]),b={eventKey:v,key:d,parentEventKeys:f,childrenEventKeys:y,parentKeys:m};(a=p.childrenEventKeys)===null||a===void 0||a.value.push(v),st(function(){if(p.childrenEventKeys){var H;p.childrenEventKeys.value=(H=p.childrenEventKeys)===null||H===void 0?void 0:H.value.filter(function(q){return q!=v})}}),aL(v,d,b);var w=da(),_=w.prefixCls,C=w.activeKeys,E=w.disabled,I=w.changeActiveKeys,T=w.mode,N=w.inlineCollapsed,R=w.antdMenuTheme,F=w.openKeys,L=w.overflowDisabled,j=w.onOpenChange,D=w.registerMenuInfo,P=w.unRegisterMenuInfo,O=w.selectedSubMenuKeys,k=w.expandIcon,$=c!=null,G=!l&&(Y_()||!$);HD(G),(l&&$||!l&&!$||G)&&(D(v,b),st(function(){P(v)}));var J=V(function(){return"".concat(_.value,"-submenu")}),Z=V(function(){return E.value||e.disabled}),X=z(),Y=z(),ne=V(function(){return F.value.includes(d)}),le=V(function(){return!L.value&&ne.value}),ge=V(function(){return O.value.includes(d)}),_e=z(!1);pe(C,function(){_e.value=!!C.value.find(function(H){return H===d})},{immediate:!0});var me=function(q){Z.value||(s("titleClick",q,d),T.value==="inline"&&j(d,!ne.value))},ye=function(q){Z.value||(I(g.value),s("mouseenter",q))},Se=function(q){Z.value||(I([]),s("mouseleave",q))},B=nC(V(function(){return g.value.length})),x=function(q){T.value!=="inline"&&j(d,q)},A=function(){I(g.value)},W=v&&"".concat(v,"-popup"),K=V(function(){return Ce(_.value,"".concat(_.value,"-").concat(R.value),e.popupClassName)}),U=function(q,ue){if(!ue)return N.value&&!m.value.length&&q&&typeof q=="string"?S("div",{class:"".concat(_.value,"-inline-collapsed-noicon")},[q.charAt(0)]):S("span",{class:"".concat(_.value,"-title-content")},[q]);var ae=ar(q)&&q.type==="span";return S(Re,null,[Et(ue,{class:"".concat(_.value,"-item-icon")},!1),ae?q:S("span",{class:"".concat(_.value,"-title-content")},[q])])},se=V(function(){return T.value!=="inline"&&g.value.length>1?"vertical":T.value}),ie=V(function(){return T.value==="horizontal"?"vertical":T.value}),re=V(function(){return se.value==="horizontal"?"vertical":se.value}),Q=function(){var q=J.value,ue=Wn(i,e,"icon"),ae=e.expandIcon||i.expandIcon||k.value,fe=U(Wn(i,e,"title"),ue);return S("div",{style:B.value,class:"".concat(q,"-title"),tabindex:Z.value?null:-1,ref:X,title:typeof fe=="string"?fe:null,"data-menu-id":d,"aria-expanded":le.value,"aria-haspopup":!0,"aria-controls":W,"aria-disabled":Z.value,onClick:me,onFocus:A},[fe,T.value!=="horizontal"&&ae?ae(M(M({},e),{},{isOpen:le.value})):S("i",{class:"".concat(q,"-arrow")},null)])};return function(){var H;if(l){var q;return $?(q=i.default)===null||q===void 0?void 0:q.call(i):null}var ue=J.value,ae=function(){return null};return!L.value&&T.value!=="inline"?ae=function(){return S(Nm,{mode:se.value,prefixCls:ue,visible:!e.internalPopupClose&&le.value,popupClassName:K.value,popupOffset:e.popupOffset,disabled:Z.value,onVisibleChange:x},{default:function(){return[Q()]},popup:function(){return S(Ll,{mode:re.value,isRootMenu:!1},{default:function(){return[S(aC,{id:W,ref:Y},{default:i.default})]}})}})}:ae=function(){return S(Nm,null,{default:Q})},S(Ll,{mode:ie.value},{default:function(){return[S(wi.Item,M(M({component:"li"},o),{},{role:"none",class:Ce(ue,"".concat(ue,"-").concat(T.value),o.class,(H={},te(H,"".concat(ue,"-open"),le.value),te(H,"".concat(ue,"-active"),_e.value),te(H,"".concat(ue,"-selected"),ge.value),te(H,"".concat(ue,"-disabled"),Z.value),H)),onMouseenter:ye,onMouseleave:Se,"data-submenu-id":d}),{default:function(){return S(Re,null,[ae(),!L.value&&S(cL,{id:W,open:le.value,keyPath:g.value},{default:i.default})])}})]}})}}});function iC(t,e){if(t.classList)return t.classList.contains(e);var n=t.className;return" ".concat(n," ").indexOf(" ".concat(e," "))>-1}function $m(t,e){t.classList?t.classList.add(e):iC(t,e)||(t.className="".concat(t.className," ").concat(e))}function Dm(t,e){if(t.classList)t.classList.remove(e);else if(iC(t,e)){var n=t.className;t.className=" ".concat(n," ").replace(" ".concat(e," ")," ")}}var dL=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:n,css:!0,onBeforeEnter:function(a){a.style.height="0px",a.style.opacity="0",$m(a,e)},onEnter:function(a){Ke(function(){a.style.height="".concat(a.scrollHeight,"px"),a.style.opacity="1"})},onAfterEnter:function(a){a&&(Dm(a,e),a.style.height=null,a.style.opacity=null)},onBeforeLeave:function(a){$m(a,e),a.style.height="".concat(a.offsetHeight,"px"),a.style.opacity=null},onLeave:function(a){setTimeout(function(){a.style.height="0px",a.style.opacity="0"})},onAfterLeave:function(a){a&&(Dm(a,e),a.style&&(a.style.height=null,a.style.opacity=null))}}};const vL=dL;var pL=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},Lm=[];const ia=he({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:pL(),slots:["expandIcon","overflowedIndicator"],setup:function(e,n){var r=n.slots,a=n.emit,i=n.attrs,o=lt("menu",e),s=o.prefixCls,l=o.direction,u=o.getPrefixCls,c=z({}),d=ot(nL,z(void 0)),v=V(function(){return d.value!==void 0?d.value:e.inlineCollapsed}),h=z(!1);Ve(function(){h.value=!0}),yt(function(){Un(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Un(!(d.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var f=z([]),p=z([]),m=z({});pe(c,function(){for(var Y={},ne=0,le=Object.values(c.value);ne0&&arguments[0]!==void 0?arguments[0]:b.value;no(b.value,Y)||(b.value=Y.slice())},{immediate:!0,deep:!0});var w,_=function(ne){clearTimeout(w),w=setTimeout(function(){e.activeKey===void 0&&(f.value=ne),a("update:activeKey",ne[ne.length-1])})},C=V(function(){return!!e.disabled}),E=V(function(){return l.value==="rtl"}),I=z("vertical"),T=z(!1);yt(function(){(e.mode==="inline"||e.mode==="vertical")&&v.value?(I.value="vertical",T.value=v.value):(I.value=e.mode,T.value=!1)});var N=V(function(){return I.value==="inline"}),R=function(ne){b.value=ne,a("update:openKeys",ne),a("openChange",ne)},F=z(b.value),L=z(!1);pe(b,function(){N.value&&(F.value=b.value)},{immediate:!0}),pe(N,function(){if(!L.value){L.value=!0;return}N.value?b.value=F.value:R(Lm)},{immediate:!0});var j=V(function(){var Y;return Y={},te(Y,"".concat(s.value),!0),te(Y,"".concat(s.value,"-root"),!0),te(Y,"".concat(s.value,"-").concat(I.value),!0),te(Y,"".concat(s.value,"-inline-collapsed"),T.value),te(Y,"".concat(s.value,"-rtl"),E.value),te(Y,"".concat(s.value,"-").concat(e.theme),!0),Y}),D=V(function(){return u()}),P=V(function(){return{horizontal:{name:"".concat(D.value,"-slide-up")},inline:vL,other:{name:"".concat(D.value,"-zoom-big")}}});X_(!0);var O=function Y(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=[],ge=c.value;return ne.forEach(function(_e){var me=ge[_e],ye=me.key,Se=me.childrenEventKeys;le.push.apply(le,[ye].concat(nt(Y(be(Se)))))}),le},k=function(ne){a("click",ne),y(ne)},$=function(ne,le){var ge,_e=((ge=m.value[ne])===null||ge===void 0?void 0:ge.childrenEventKeys)||[],me=b.value.filter(function(Se){return Se!==ne});if(le)me.push(ne);else if(I.value!=="inline"){var ye=O(be(_e));me=Sc(me.filter(function(Se){return!ye.includes(Se)}))}no(b,me)||R(me)},G=function(ne,le){c.value=M(M({},c.value),{},te({},ne,le))},J=function(ne){delete c.value[ne],c.value=M({},c.value)},Z=z(0),X=V(function(){return e.expandIcon||r.expandIcon?function(Y){var ne=e.expandIcon||r.expandIcon;return ne=typeof ne=="function"?ne(Y):ne,Et(ne,{class:"".concat(s.value,"-submenu-expand-icon")},!1)}:null});return UD({store:c,prefixCls:s,activeKeys:f,openKeys:b,selectedKeys:p,changeActiveKeys:_,disabled:C,rtl:E,mode:I,inlineIndent:V(function(){return e.inlineIndent}),subMenuCloseDelay:V(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:V(function(){return e.subMenuOpenDelay}),builtinPlacements:V(function(){return e.builtinPlacements}),triggerSubMenuAction:V(function(){return e.triggerSubMenuAction}),getPopupContainer:V(function(){return e.getPopupContainer}),inlineCollapsed:T,antdMenuTheme:V(function(){return e.theme}),siderCollapsed:d,defaultMotions:V(function(){return h.value?P.value:null}),motion:V(function(){return h.value?e.motion:null}),overflowDisabled:z(void 0),onOpenChange:$,onItemClick:k,registerMenuInfo:G,unRegisterMenuInfo:J,selectedSubMenuKeys:g,isRootMenu:z(!0),expandIcon:X,forceSubMenuRender:V(function(){return e.forceSubMenuRender})}),function(){var Y,ne,le=kn((Y=r.default)===null||Y===void 0?void 0:Y.call(r)),ge=Z.value>=le.length-1||I.value!=="horizontal"||e.disabledOverflow,_e=I.value!=="horizontal"||e.disabledOverflow?le:le.map(function(ye,Se){return S(Ll,{key:ye.key,overflowDisabled:Se>Z.value},{default:function(){return ye}})}),me=((ne=r.overflowedIndicator)===null||ne===void 0?void 0:ne.call(r))||S(V_,null,null);return S(wi,M(M({},i),{},{onMousedown:e.onMousedown,prefixCls:"".concat(s.value,"-overflow"),component:"ul",itemComponent:Jo,class:[j.value,i.class],role:"menu",id:e.id,data:_e,renderRawItem:function(Se){return Se},renderRawRest:function(Se){var B=Se.length,x=B?le.slice(-B):null;return S(Re,null,[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}}),S(Mm,null,{default:function(){return[S(Xo,{eventKey:Hs,key:Hs,title:me,disabled:ge,internalPopupClose:B===0},{default:function(){return x}})]}})])},maxCount:I.value!=="horizontal"||e.disabledOverflow?wi.INVALIDATE:wi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Se){Z.value=Se}}),{default:function(){return[S(uu,{to:"body"},{default:function(){return[S("div",{style:{display:"none"},"aria-hidden":!0},[S(Mm,null,{default:function(){return[_e]}})])]}})]}})}}});var hL=function(){return{title:ee.any}};const $f=he({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:hL(),slots:["title"],setup:function(e,n){var r=n.slots,a=n.attrs,i=da(),o=i.prefixCls,s=V(function(){return"".concat(o.value,"-item-group")}),l=Lv();return function(){var u,c;return l?(u=r.default)===null||u===void 0?void 0:u.call(r):S("li",M(M({},a),{},{onClick:function(v){return v.stopPropagation()},class:s.value}),[S("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(s.value,"-title")},[Wn(r,e,"title")]),S("ul",{class:"".concat(s.value,"-list")},[(c=r.default)===null||c===void 0?void 0:c.call(r)])])}}});var gL=function(){return{prefixCls:String,dashed:Boolean}};const Df=he({compatConfig:{MODE:3},name:"AMenuDivider",props:gL(),setup:function(e){var n=lt("menu",e),r=n.prefixCls,a=V(function(){var i;return i={},te(i,"".concat(r.value,"-item-divider"),!0),te(i,"".concat(r.value,"-item-divider-dashed"),!!e.dashed),i});return function(){return S("li",{class:a.value},null)}}});ia.install=function(t){return t.component(ia.name,ia),t.component(Jo.name,Jo),t.component(Xo.name,Xo),t.component(Df.name,Df),t.component($f.name,$f),t};ia.Item=Jo;ia.Divider=Df;ia.SubMenu=Xo;ia.ItemGroup=$f;var mL={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(nk,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",d="month",v="quarter",h="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,y={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(L){var j=["th","st","nd","rd"],D=L%100;return"["+L+(j[(D-20)%10]||j[D]||j[0])+"]"}},b=function(L,j,D){var P=String(L);return!P||P.length>=j?L:""+Array(j+1-P.length).join(D)+L},w={s:b,z:function(L){var j=-L.utcOffset(),D=Math.abs(j),P=Math.floor(D/60),O=D%60;return(j<=0?"+":"-")+b(P,2,"0")+":"+b(O,2,"0")},m:function L(j,D){if(j.date()1)return L($[0])}else{var G=j.name;C[G]=j,O=G}return!P&&O&&(_=O),O||!P&&_},T=function(L,j){if(E(L))return L.clone();var D=typeof j=="object"?j:{};return D.date=L,D.args=arguments,new R(D)},N=w;N.l=I,N.i=E,N.w=function(L,j){return T(L,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var R=function(){function L(D){this.$L=I(D.locale,null,!0),this.parse(D)}var j=L.prototype;return j.parse=function(D){this.$d=function(P){var O=P.date,k=P.utc;if(O===null)return new Date(NaN);if(N.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var $=O.match(m);if($){var G=$[2]-1||0,J=($[7]||"0").substring(0,3);return k?new Date(Date.UTC($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)):new Date($[1],G,$[3]||1,$[4]||0,$[5]||0,$[6]||0,J)}}return new Date(O)}(D),this.$x=D.x||{},this.init()},j.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==p},j.isSame=function(D,P){var O=T(D);return this.startOf(P)<=O&&O<=this.endOf(P)},j.isAfter=function(D,P){return T(D)k?(P=j,C.value="x"):(P=D,C.value="y"),e(-P,-P)&&L.preventDefault()}var I=z({onTouchStart:b,onTouchMove:w,onTouchEnd:_,onWheel:E});function T(L){I.value.onTouchStart(L)}function N(L){I.value.onTouchMove(L)}function R(L){I.value.onTouchEnd(L)}function F(L){I.value.onWheel(L)}Ve(function(){var L,j;document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),(L=t.value)===null||L===void 0||L.addEventListener("touchstart",T,{passive:!1}),(j=t.value)===null||j===void 0||j.addEventListener("wheel",F,{passive:!1})}),st(function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",R)})}function Um(t,e){var n=z(t);function r(a){var i=typeof a=="function"?a(n.value):a;i!==n.value&&e(i,n.value),n.value=i}return[n,r]}var WL=function(){var e=z(new Map),n=function(a){return function(i){e.value.set(a,i)}};return c1(function(){e.value=new Map}),[n,e]};const HL=WL;var VL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UL=/^\w*$/;function Fv(t,e){if(ir(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Ou(t)?!0:UL.test(t)||!VL.test(t)||e!=null&&t in Object(e)}var KL="Expected a function";function Bv(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(KL);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bv.Cache||Hr),n}Bv.Cache=Hr;var GL=500;function qL(t){var e=Bv(t,function(r){return n.size===GL&&n.clear(),r}),n=e.cache;return e}var YL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JL=/\\(\\)?/g,XL=qL(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(YL,function(n,r,a,i){e.push(a?i.replace(JL,"$1"):r||n)}),e});const ZL=XL;function Pu(t,e){return ir(t)?t:Fv(t,e)?[t]:ZL(sC(t))}var QL=1/0;function ps(t){if(typeof t=="string"||Ou(t))return t;var e=t+"";return e=="0"&&1/t==-QL?"-0":e}function zv(t,e){e=Pu(e,t);for(var n=0,r=e.length;t!=null&&n0&&n(s)?e>1?vC(s,e-1,n,r,a):yv(a,s):r||(a[a.length]=s)}return a}function u4(t){var e=t==null?0:t.length;return e?vC(t,1):[]}function c4(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Gm=Math.max;function f4(t,e,n){return e=Gm(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=Gm(r.length-e,0),o=Array(i);++a0){if(++e>=h4)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var b4=y4(p4);const w4=b4;function _4(t){return w4(f4(t,void 0,u4),t+"")}var C4=_4(function(t,e){return t==null?{}:s4(t,e)});const hC=C4;var qm={width:0,height:0,left:0,top:0,right:0},S4=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:ee.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const Ym=he({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:S4(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,n){var r=n.attrs,a=n.slots,i=cC(),o=i.tabs,s=i.prefixCls,l=z(),u=z(),c=z(),d=z(),v=HL(),h=ke(v,2),f=h[0],p=h[1],m=V(function(){return e.tabPosition==="top"||e.tabPosition==="bottom"}),g=Um(0,function(Ze,it){m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"left":"right"})}),y=ke(g,2),b=y[0],w=y[1],_=Um(0,function(Ze,it){!m.value&&e.onTabScroll&&e.onTabScroll({direction:Ze>it?"top":"bottom"})}),C=ke(_,2),E=C[0],I=C[1],T=Ht(0),N=ke(T,2),R=N[0],F=N[1],L=Ht(0),j=ke(L,2),D=j[0],P=j[1],O=Ht(null),k=ke(O,2),$=k[0],G=k[1],J=Ht(null),Z=ke(J,2),X=Z[0],Y=Z[1],ne=Ht(0),le=ke(ne,2),ge=le[0],_e=le[1],me=Ht(0),ye=ke(me,2),Se=ye[0],B=ye[1],x=RL(new Map),A=ke(x,2),W=A[0],K=A[1],U=DL(o,W),se=V(function(){return"".concat(s.value,"-nav-operations-hidden")}),ie=z(0),re=z(0);yt(function(){m.value?e.rtl?(ie.value=0,re.value=Math.max(0,R.value-$.value)):(ie.value=Math.min(0,$.value-R.value),re.value=0):(ie.value=Math.min(0,X.value-D.value),re.value=0)});var Q=function(it){return itre.value?re.value:it},H=z(),q=Ht(),ue=ke(q,2),ae=ue[0],fe=ue[1],we=function(){fe(Date.now())},xe=function(){clearTimeout(H.value)},Pe=function(it,Je){it(function(Ct){var at=Q(Ct+Je);return at})};jL(l,function(Ze,it){if(m.value){if($.value>=R.value)return!1;Pe(w,Ze)}else{if(X.value>=D.value)return!1;Pe(I,it)}return xe(),we(),!0}),pe(ae,function(){xe(),ae.value&&(H.value=setTimeout(function(){fe(0)},100))});var oe=function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,Je=U.value.get(it)||{width:0,height:0,left:0,right:0,top:0};if(m.value){var Ct=b.value;e.rtl?Je.rightb.value+$.value&&(Ct=Je.right+Je.width-$.value):Je.left<-b.value?Ct=-Je.left:Je.left+Je.width>-b.value+$.value&&(Ct=-(Je.left+Je.width-$.value)),I(0),w(Q(Ct))}else{var at=E.value;Je.top<-E.value?at=-Je.top:Je.top+Je.height>-E.value+X.value&&(at=-(Je.top+Je.height-X.value)),w(0),I(Q(at))}},ve=z(0),Xe=z(0);yt(function(){var Ze,it,Je,Ct,at,zt,Gt,sr=U.value;["top","bottom"].includes(e.tabPosition)?(it="width",at=$.value,zt=R.value,Gt=ge.value,Je=e.rtl?"right":"left",Ct=Math.abs(b.value)):(it="height",at=X.value,zt=R.value,Gt=Se.value,Je="top",Ct=-E.value);var rn=at;zt+Gt>at&&ztCt+rn){jt=Sn-1;break}}for(var At=0,Wt=Tr-1;Wt>=0;Wt-=1){var $n=sr.get(Rn[Wt].key)||qm;if($n[Je]0,At=b.value+$.value=e||E<0||d&&I>=i}function g(){var C=xc();if(m(C))return y(C);s=setTimeout(g,p(C))}function y(C){return s=void 0,v&&r?h(C):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:y(xc())}function _(){var C=xc(),E=m(C);if(r=arguments,a=this,l=C,E){if(s===void 0)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,e),h(l)}return s===void 0&&(s=setTimeout(g,e)),o}return _.cancel=b,_.flush=w,_}var D4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const L4=D4;function Zm(t){for(var e=1;e"u")return 0;if(t||Tc===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var a=e.offsetWidth;n.style.overflow="scroll";var i=e.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),Tc=a-i}return Tc}var EC=function(){return{prefixCls:String,width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),style:{type:Object,default:void 0},class:String,placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:{type:Object,default:void 0},autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0}}},EF=function(){return M(M({},EC()),{},{forceRender:{type:Boolean,default:void 0},getContainer:ee.oneOfType([ee.string,ee.func,ee.object,ee.looseBool])})},OF=function(){return M(M({},EC()),{},{getContainer:Function,getOpenCount:Function,scrollLocker:ee.any,switchScrollingEffect:Function})};function PF(t){return Array.isArray(t)?t:[t]}var OC={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},AF=Object.keys(OC).filter(function(t){if(typeof document>"u")return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],sy=OC[AF];function ly(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on".concat(e),n)}function uy(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on".concat(e),n)}function IF(t,e){var n=typeof t=="function"?t(e):t;return Array.isArray(n)?n.length===2?n:[n[0],n[1]]:[n]}var cy=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Ec=!(typeof window<"u"&&window.document&&window.document.createElement),kF=function t(e,n,r,a){if(!n||n===document||n instanceof Document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(a))===Math.abs(a),o=Math.max(Math.abs(r),Math.abs(a))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c=u.overflowY==="auto"||u.overflowY==="scroll",d=u.overflowX==="auto"||u.overflowX==="scroll",v=s&&c,h=l&&d;return i&&(!v||v&&(n.scrollTop>=s&&a<0||n.scrollTop<=0&&a>0))||o&&(!h||h&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0))?t(e,n.parentNode,r,a):!1},MF=["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class"],ro={},NF=he({compatConfig:{MODE:3},inheritAttrs:!1,props:OF(),emits:["close","handleClick","change"],setup:function(e,n){var r=n.emit,a=n.slots,i=ct({startPos:{x:null,y:null}}),o,s=z(),l=z(),u=z(),c=z(),d=z(),v=[],h="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),f=!Ec&&ln?{passive:!1}:!1;Ve(function(){Ke(function(){var O=e.open,k=e.getContainer,$=e.showMask,G=e.autofocus,J=k==null?void 0:k();if(j(e),O&&(J&&J.parentNode===document.body&&(ro[h]=O),E(),Ke(function(){G&&p()}),$)){var Z;(Z=e.scrollLocker)===null||Z===void 0||Z.lock()}})}),pe(function(){return e.level},function(){j(e)},{flush:"post"}),pe(function(){return e.open},function(){var O=e.open,k=e.getContainer,$=e.scrollLocker,G=e.showMask,J=e.autofocus,Z=k==null?void 0:k();Z&&Z.parentNode===document.body&&(ro[h]=!!O),E(),O?(J&&p(),G&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),vn(function(){var O,k=e.open;delete ro[h],k&&(I(!1),document.body.style.touchAction=""),(O=e.scrollLocker)===null||O===void 0||O.unLock()}),pe(function(){return e.placement},function(O){O&&(d.value=null)});var p=function(){var k,$;(k=l.value)===null||k===void 0||($=k.focus)===null||$===void 0||$.call(k)},m=function(k){k.touches.length>1||(i.startPos={x:k.touches[0].clientX,y:k.touches[0].clientY})},g=function(k){if(!(k.changedTouches.length>1)){var $=k.currentTarget,G=k.changedTouches[0].clientX-i.startPos.x,J=k.changedTouches[0].clientY-i.startPos.y;($===u.value||$===c.value||$===d.value&&kF($,k.target,G,J))&&k.cancelable&&k.preventDefault()}},y=function O(k){var $=k.target;uy($,sy,O),$.style.transition=""},b=function(k){r("close",k)},w=function(k){k.keyCode===Ae.ESC&&(k.stopPropagation(),b(k))},_=function(k){var $=e.open,G=e.afterVisibleChange;k.target===s.value&&k.propertyName.match(/transform$/)&&(l.value.style.transition="",!$&&L()&&(document.body.style.overflowX="",u.value&&(u.value.style.left="",u.value.style.width="")),G&&G(!!$))},C=V(function(){var O=e.placement,k=O==="left"||O==="right",$="translate".concat(k?"X":"Y");return{isHorizontal:k,placementName:$}}),E=function(){var k=e.open,$=e.width,G=e.height,J=C.value,Z=J.isHorizontal,X=J.placementName,Y=d.value?d.value.getBoundingClientRect()[Z?"width":"height"]:0,ne=(Z?$:G)||Y;T(k,X,ne)},I=function(k,$,G,J){var Z=e.placement,X=e.levelMove,Y=e.duration,ne=e.ease,le=e.showMask;v.forEach(function(ge){ge.style.transition="transform ".concat(Y," ").concat(ne),ly(ge,sy,y);var _e=k?G:0;if(X){var me=IF(X,{target:ge,open:k});_e=k?me[0]:me[1]||0}var ye=typeof _e=="number"?"".concat(_e,"px"):_e,Se=Z==="left"||Z==="top"?ye:"-".concat(ye);Se=le&&Z==="right"&&J?"calc(".concat(Se," + ").concat(J,"px)"):Se,ge.style.transform=_e?"".concat($,"(").concat(Se,")"):""})},T=function(k,$,G){if(!Ec){var J=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Kv(!0):0;I(k,$,G,J),N(J)}r("change",k)},N=function(k){var $=e.getContainer,G=e.showMask,J=e.open,Z=$==null?void 0:$();if(Z&&Z.parentNode===document.body&&G){var X=["touchstart"],Y=[document.body,u.value,c.value,d.value];J&&document.body.style.overflow!=="hidden"?(k&&R(k),document.body.style.touchAction="none",Y.forEach(function(ne,le){ne&&ly(ne,X[le]||"touchmove",le?g:m,f)})):L()&&(document.body.style.touchAction="",k&&F(k),Y.forEach(function(ne,le){ne&&uy(ne,X[le]||"touchmove",le?g:m,f)}))}},R=function(k){var $=e.placement,G=e.duration,J=e.ease,Z="width ".concat(G," ").concat(J),X="transform ".concat(G," ").concat(J);switch(l.value.style.transition="none",$){case"right":l.value.style.transform="translateX(-".concat(k,"px)");break;case"top":case"bottom":l.value.style.width="calc(100% - ".concat(k,"px)"),l.value.style.transform="translateZ(0)";break}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(X,",").concat(Z),l.value.style.width="",l.value.style.transform="")})},F=function(k){var $=e.placement,G=e.duration,J=e.ease;l.value.style.transition="none";var Z,X="width ".concat(G," ").concat(J),Y="transform ".concat(G," ").concat(J);switch($){case"left":{l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G);break}case"right":{l.value.style.transform="translateX(".concat(k,"px)"),l.value.style.width="100%",X="width 0s ".concat(J," ").concat(G),u.value&&(u.value.style.left="-".concat(k,"px"),u.value.style.width="calc(100% + ".concat(k,"px)"));break}case"top":case"bottom":{l.value.style.width="calc(100% + ".concat(k,"px)"),l.value.style.height="100%",l.value.style.transform="translateZ(0)",Z="height 0s ".concat(J," ").concat(G);break}}clearTimeout(o),o=setTimeout(function(){l.value&&(l.value.style.transition="".concat(Y,",").concat(Z?"".concat(Z,","):"").concat(X),l.value.style.transform="",l.value.style.width="",l.value.style.height="")})},L=function(){return!Object.keys(ro).some(function(k){return ro[k]})},j=function(k){var $=k.level,G=k.getContainer;if(!Ec){var J=G==null?void 0:G(),Z=J?J.parentNode:null;if(v=[],$==="all"){var X=Z?Array.prototype.slice.call(Z.children):[];X.forEach(function(Y){Y.nodeName!=="SCRIPT"&&Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y!==J&&v.push(Y)})}else $&&PF($).forEach(function(Y){document.querySelectorAll(Y).forEach(function(ne){v.push(ne)})})}},D=function(k){r("handleClick",k)},P=z(!1);return pe(l,function(){Ke(function(){P.value=!0})}),function(){var O,k,$,G=e.width,J=e.height,Z=e.open,X=e.prefixCls,Y=e.placement;e.level,e.levelMove,e.ease,e.duration,e.getContainer,e.onChange,e.afterVisibleChange;var ne=e.showMask,le=e.maskClosable,ge=e.maskStyle,_e=e.keyboard;e.getOpenCount,e.scrollLocker;var me=e.contentWrapperStyle,ye=e.style,Se=e.class,B=bt(e,MF),x=Z&&P.value,A=Ce(X,(O={},te(O,"".concat(X,"-").concat(Y),!0),te(O,"".concat(X,"-open"),x),te(O,Se,!!Se),te(O,"no-mask",!ne),O)),W=C.value.placementName,K=Y==="left"||Y==="top"?"-100%":"100%",U=x?"":"".concat(W,"(").concat(K,")");return S("div",M(M({},Lt(B,["switchScrollingEffect","autofocus"])),{},{tabindex:-1,class:A,style:ye,ref:l,onKeydown:x&&_e?w:void 0,onTransitionend:_}),[ne&&S("div",{class:"".concat(X,"-mask"),onClick:le?b:void 0,style:ge,ref:u},null),S("div",{class:"".concat(X,"-content-wrapper"),style:M({transform:U,msTransform:U,width:cy(G)?"".concat(G,"px"):G,height:cy(J)?"".concat(J,"px"):J},me),ref:s},[S("div",{class:"".concat(X,"-content"),ref:d},[(k=a.default)===null||k===void 0?void 0:k.call(a)]),a.handler?S("div",{onClick:D,ref:c},[($=a.handler)===null||$===void 0?void 0:$.call(a)]):null])])}}});const fy=NF;function Ii(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.element,r=n===void 0?document.body:n,a={},i=Object.keys(t);return i.forEach(function(o){a[o]=r.style[o]}),i.forEach(function(o){r.style[o]=t[o]}),a}function RF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Oc={};const dy=function(t){if(!(!RF()&&!t)){var e="ant-scrolling-effect",n=new RegExp("".concat(e),"g"),r=document.body.className;if(t){if(!n.test(r))return;Ii(Oc),Oc={},document.body.className=r.replace(n,"").trim();return}var a=Kv();if(a&&(Oc=Ii({position:"relative",width:"calc(100% - ".concat(a,"px)")}),!n.test(r))){var i="".concat(r," ").concat(e);document.body.className=i.trim()}}};var Bn=[],PC="ant-scrolling-effect",Pc=new RegExp("".concat(PC),"g"),$F=0,Ac=new Map,DF=W_(function t(e){var n=this;H_(this,t),te(this,"getContainer",function(){var r;return(r=n.options)===null||r===void 0?void 0:r.container}),te(this,"reLock",function(r){var a=Bn.find(function(i){var o=i.target;return o===n.lockTarget});a&&n.unLock(),n.options=r,a&&(a.options=r,n.lock())}),te(this,"lock",function(){var r;if(!Bn.some(function(l){var u=l.target;return u===n.lockTarget})){if(Bn.some(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)})){Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}]);return}var a=0,i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body;(i===document.body&&window.innerWidth-document.documentElement.clientWidth>0||i.scrollHeight>i.clientHeight)&&(a=Kv());var o=i.className;if(Bn.filter(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=n.options)===null||u===void 0?void 0:u.container)}).length===0&&Ac.set(i,Ii({width:a!==0?"calc(100% - ".concat(a,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:i})),!Pc.test(o)){var s="".concat(o," ").concat(PC);i.className=s.trim()}Bn=[].concat(nt(Bn),[{target:n.lockTarget,options:n.options}])}}),te(this,"unLock",function(){var r,a=Bn.find(function(s){var l=s.target;return l===n.lockTarget});if(Bn=Bn.filter(function(s){var l=s.target;return l!==n.lockTarget}),!(!a||Bn.some(function(s){var l,u=s.options;return(u==null?void 0:u.container)===((l=a.options)===null||l===void 0?void 0:l.container)}))){var i=((r=n.options)===null||r===void 0?void 0:r.container)||document.body,o=i.className;Pc.test(o)&&(Ii(Ac.get(i),{element:i}),Ac.delete(i),i.className=i.className.replace(Pc,"").trim())}}),this.lockTarget=$F++,this.options=e}),Or=0,ho=fs(),Us={},ti=function(e){if(!ho)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(Qe(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body};const AC=he({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ee.any,visible:{type:Boolean,default:void 0}},setup:function(e,n){var r=n.slots,a=z(),i=z(),o=z(),s=new DF({container:ti(e.getContainer)}),l=function(){var p,m;(p=a.value)===null||p===void 0||(m=p.parentNode)===null||m===void 0||m.removeChild(a.value)},u=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(p||a.value&&!a.value.parentNode){var m=ti(e.getContainer);return m?(m.appendChild(a.value),!0):!1}return!0},c=function(){return ho?(a.value||(a.value=document.createElement("div"),u(!0)),d(),a.value):null},d=function(){var p=e.wrapperClassName;a.value&&p&&p!==a.value.className&&(a.value.className=p)};ca(function(){d(),u()});var v=function(){Or===1&&!Object.keys(Us).length?(dy(),Us=Ii({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Or||(Ii(Us),Us={},dy(!0))},h=Pt();return Ve(function(){var f=!1;pe([function(){return e.visible},function(){return e.getContainer}],function(p,m){var g=ke(p,2),y=g[0],b=g[1],w=ke(m,2),_=w[0],C=w[1];if(ho&&ti(e.getContainer)===document.body&&(y&&!_?Or+=1:f&&(Or-=1)),f){var E=typeof b=="function"&&typeof C=="function";(E?b.toString()!==C.toString():b!==C)&&l(),y&&y!==_&&ho&&ti(b)!==s.getContainer()&&s.reLock({container:ti(b)})}f=!0},{immediate:!0,flush:"post"}),Ke(function(){u()||(o.value=Ue(function(){h.update()}))})}),st(function(){var f=e.visible,p=e.getContainer;ho&&ti(p)===document.body&&(Or=f&&Or?Or-1:Or),l(),Ue.cancel(o.value)}),function(){var f=e.forceRender,p=e.visible,m=null,g={getOpenCount:function(){return Or},getContainer:c,switchScrollingEffect:v,scrollLocker:s};return(f||p||i.value)&&(m=S(Af,{getContainer:c,ref:i},{default:function(){var b;return(b=r.default)===null||b===void 0?void 0:b.call(r,g)}})),m}}});var LF=["afterVisibleChange","getContainer","wrapperClassName","forceRender"],FF=["visible","afterClose"],BF=he({compatConfig:{MODE:3},inheritAttrs:!1,props:pn(EF(),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:function(){},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],slots:["handler"],setup:function(e,n){var r=n.emit,a=n.slots,i=z(null),o=function(u){r("handleClick",u)},s=function(u){r("close",u)};return function(){e.afterVisibleChange;var l=e.getContainer,u=e.wrapperClassName,c=e.forceRender,d=bt(e,LF),v=null;if(!l)return S("div",{class:u,ref:i},[S(fy,M(M({},d),{},{open:e.open,getContainer:function(){return i.value},onClose:s,onHandleClick:o}),a)]);var h=!!a.handler||c;return(h||e.open||i.value)&&(v=S(AC,{visible:e.open,forceRender:h,getContainer:l,wrapperClassName:u},{default:function(p){var m=p.visible,g=p.afterClose,y=bt(p,FF);return S(fy,M(M(M({ref:i},d),y),{},{open:m!==void 0?m:e.open,afterVisibleChange:g!==void 0?g:e.afterVisibleChange,onClose:s,onHandleClick:o}),a)}})),v}}});const zF=BF;var jF=["width","height","visible","placement","mask","wrapClassName","class"],WF=Ha("top","right","bottom","left");Ha("default","large");var vy={distance:180},HF=function(){return{autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:ee.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:ee.any,maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},wrapStyle:{type:Object,default:void 0},style:{type:Object,default:void 0},class:ee.any,wrapClassName:String,size:{type:String},drawerStyle:{type:Object,default:void 0},headerStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},contentWrapperStyle:{type:Object,default:void 0},title:ee.any,visible:{type:Boolean,default:void 0},width:ee.oneOfType([ee.string,ee.number]),height:ee.oneOfType([ee.string,ee.number]),zIndex:Number,prefixCls:String,push:ee.oneOfType([ee.looseBool,{type:Object}]),placement:ee.oneOf(WF),keyboard:{type:Boolean,default:void 0},extra:ee.any,footer:ee.any,footerStyle:{type:Object,default:void 0},level:ee.any,levelMove:{type:[Number,Array,Function]},handle:ee.any,afterVisibleChange:Function,onAfterVisibleChange:Function,"onUpdate:visible":Function,onClose:Function}},VF=he({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:pn(HF(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:vy}),slots:["closeIcon","title","extra","footer","handle"],setup:function(e,n){var r=n.emit,a=n.slots,i=n.attrs,o=z(!1),s=z(!1),l=z(null),u=ot("parentDrawerOpts",null),c=lt("drawer",e),d=c.prefixCls;Un(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Un(e.wrapStyle===void 0,"Drawer","`wrapStyle` prop is deprecated, please use `style` instead"),Un(e.wrapClassName===void 0,"Drawer","`wrapClassName` prop is deprecated, please use `class` instead");var v=function(){o.value=!0},h=function(){o.value=!1,Ke(function(){f()})};wt("parentDrawerOpts",{setPush:v,setPull:h}),Ve(function(){var N=e.visible;N&&u&&u.setPush()}),vn(function(){u&&u.setPull()}),pe(function(){return e.visible},function(N){u&&(N?u.setPush():u.setPull())},{flush:"post"});var f=function(){var R,F;(R=l.value)===null||R===void 0||(F=R.domFocus)===null||F===void 0||F.call(R)},p=function(R){r("update:visible",!1),r("close",R)},m=function(R){var F;(F=e.afterVisibleChange)===null||F===void 0||F.call(e,R),r("afterVisibleChange",R)},g=V(function(){return e.destroyOnClose&&!e.visible}),y=function(){var R=g.value;R&&(e.visible||(s.value=!0))},b=V(function(){var N=e.push,R=e.placement,F;return typeof N=="boolean"?F=N?vy.distance:0:F=N.distance,F=parseFloat(String(F||0)),R==="left"||R==="right"?"translateX(".concat(R==="left"?F:-F,"px)"):R==="top"||R==="bottom"?"translateY(".concat(R==="top"?F:-F,"px)"):null}),w=V(function(){var N=e.visible,R=e.mask,F=e.placement,L=e.size,j=L===void 0?"default":L,D=e.width,P=e.height;if(!N&&!R)return{};var O={};if(F==="left"||F==="right"){var k=j==="large"?736:378;O.width=typeof D>"u"?k:D,O.width=typeof O.width=="string"?O.width:"".concat(O.width,"px")}else{var $=j==="large"?736:378;O.height=typeof P>"u"?$:P,O.height=typeof O.height=="string"?O.height:"".concat(O.height,"px")}return O}),_=V(function(){var N=e.zIndex,R=e.wrapStyle,F=e.mask,L=e.style,j=F?{}:w.value;return M(M(M({zIndex:N,transform:o.value?b.value:void 0},j),R),L)}),C=function(R){var F=e.closable,L=e.headerStyle,j=Wn(a,e,"extra"),D=Wn(a,e,"title");return!D&&!F?null:S("div",{class:Ce("".concat(R,"-header"),te({},"".concat(R,"-header-close-only"),F&&!D&&!j)),style:L},[S("div",{class:"".concat(R,"-header-title")},[E(R),D&&S("div",{class:"".concat(R,"-title")},[D])]),j&&S("div",{class:"".concat(R,"-extra")},[j])])},E=function(R){var F,L=e.closable,j=a.closeIcon?(F=a.closeIcon)===null||F===void 0?void 0:F.call(a):e.closeIcon;return L&&S("button",{key:"closer",onClick:p,"aria-label":"Close",class:"".concat(R,"-close")},[j===void 0?S(zr,null,null):j])},I=function(R){var F;if(s.value&&!e.visible)return null;s.value=!1;var L=e.bodyStyle,j=e.drawerStyle,D={},P=g.value;return P&&(D.opacity=0,D.transition="opacity .3s"),S("div",{class:"".concat(R,"-wrapper-body"),style:M(M({},D),j),onTransitionend:y},[C(R),S("div",{key:"body",class:"".concat(R,"-body"),style:L},[(F=a.default)===null||F===void 0?void 0:F.call(a)]),T(R)])},T=function(R){var F=Wn(a,e,"footer");if(!F)return null;var L="".concat(R,"-footer");return S("div",{class:L,style:e.footerStyle},[F])};return function(){var N;e.width,e.height;var R=e.visible,F=e.placement,L=e.mask,j=e.wrapClassName,D=e.class,P=bt(e,jF),O=L?w.value:{},k=L?"":"no-mask",$=M(M(M(M({},i),Lt(P,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","wrapStyle","onAfterVisibleChange","onClose","onUpdate:visible"])),O),{},{onClose:p,afterVisibleChange:m,handler:!1,prefixCls:d.value,open:R,showMask:L,placement:F,class:Ce((N={},te(N,D,D),te(N,j,!!j),te(N,k,!!k),N)),style:_.value,ref:l});return S(zF,$,{handler:e.handle?function(){return e.handle}:a.handle,default:function(){return I(d.value)}})}}});const UF=Bi(VF);var IC=function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:ee.oneOfType([ee.string,ee.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:ee.any,addonAfter:ee.any,prefix:ee.any,suffix:ee.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}};const Gv=IC;var kC=function(){return M(M({},Lt(IC(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function MC(t,e,n,r,a){var i;return Ce(t,(i={},te(i,"".concat(t,"-sm"),n==="small"),te(i,"".concat(t,"-lg"),n==="large"),te(i,"".concat(t,"-disabled"),r),te(i,"".concat(t,"-rtl"),a==="rtl"),te(i,"".concat(t,"-borderless"),!e),i))}var To=function(e){return e!=null&&(Array.isArray(e)?Fi(e).length:!0)};function KF(t){return To(t.prefix)||To(t.suffix)||To(t.allowClear)}function Ic(t){return To(t.addonBefore)||To(t.addonAfter)}var GF=["text","input"];const NC=he({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ee.oneOf(Ha("text","input")),value:ee.any,defaultValue:ee.any,allowClear:{type:Boolean,default:void 0},element:ee.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ee.any,prefix:ee.any,addonBefore:ee.any,addonAfter:ee.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(e,n){var r=n.slots,a=n.attrs,i=z(),o=function(h){var f;if((f=i.value)!==null&&f!==void 0&&f.contains(h.target)){var p=e.triggerFocus;p==null||p()}},s=function(h){var f,p=e.allowClear,m=e.value,g=e.disabled,y=e.readonly,b=e.handleReset,w=e.suffix,_=w===void 0?r.suffix:w;if(!p)return null;var C=!g&&!y&&m,E="".concat(h,"-clear-icon");return S(hu,{onClick:b,onMousedown:function(T){return T.preventDefault()},class:Ce((f={},te(f,"".concat(E,"-hidden"),!C),te(f,"".concat(E,"-has-suffix"),!!_),f),E),role:"button"},null)},l=function(h){var f,p=e.suffix,m=p===void 0?(f=r.suffix)===null||f===void 0?void 0:f.call(r):p,g=e.allowClear;return m||g?S("span",{class:"".concat(h,"-suffix")},[s(h),m]):null},u=function(h,f){var p,m,g,y=e.focused,b=e.value,w=e.prefix,_=w===void 0?(p=r.prefix)===null||p===void 0?void 0:p.call(r):w,C=e.size,E=e.suffix,I=E===void 0?(m=r.suffix)===null||m===void 0?void 0:m.call(r):E,T=e.disabled,N=e.allowClear,R=e.direction,F=e.readonly,L=e.bordered,j=e.hidden,D=e.addonAfter,P=D===void 0?r.addonAfter:D,O=e.addonBefore,k=O===void 0?r.addonBefore:O,$=l(h);if(!KF({prefix:_,suffix:I,allowClear:N}))return Et(f,{value:b});var G=_?S("span",{class:"".concat(h,"-prefix")},[_]):null,J=Ce("".concat(h,"-affix-wrapper"),(g={},te(g,"".concat(h,"-affix-wrapper-focused"),y),te(g,"".concat(h,"-affix-wrapper-disabled"),T),te(g,"".concat(h,"-affix-wrapper-sm"),C==="small"),te(g,"".concat(h,"-affix-wrapper-lg"),C==="large"),te(g,"".concat(h,"-affix-wrapper-input-with-clear-btn"),I&&N&&b),te(g,"".concat(h,"-affix-wrapper-rtl"),R==="rtl"),te(g,"".concat(h,"-affix-wrapper-readonly"),F),te(g,"".concat(h,"-affix-wrapper-borderless"),!L),te(g,"".concat(a.class),!Ic({addonAfter:P,addonBefore:k})&&a.class),g));return S("span",{ref:i,class:J,style:a.style,onMouseup:o,hidden:j},[G,Et(f,{style:null,value:b,class:MC(h,L,C,T)}),$])},c=function(h,f){var p,m,g,y=e.addonBefore,b=y===void 0?(p=r.addonBefore)===null||p===void 0?void 0:p.call(r):y,w=e.addonAfter,_=w===void 0?(m=r.addonAfter)===null||m===void 0?void 0:m.call(r):w,C=e.size,E=e.direction,I=e.hidden,T=e.disabled;if(!Ic({addonBefore:b,addonAfter:_}))return f;var N="".concat(h,"-group"),R="".concat(N,"-addon"),F=Ce(R,te({},"".concat(R,"-disabled"),T)),L=b?S("span",{class:F},[b]):null,j=_?S("span",{class:F},[_]):null,D=Ce("".concat(h,"-wrapper"),N,te({},"".concat(N,"-rtl"),E==="rtl")),P=Ce("".concat(h,"-group-wrapper"),(g={},te(g,"".concat(h,"-group-wrapper-sm"),C==="small"),te(g,"".concat(h,"-group-wrapper-lg"),C==="large"),te(g,"".concat(h,"-group-wrapper-rtl"),E==="rtl"),g),a.class);return S("span",{class:P,style:a.style,hidden:I},[S("span",{class:D},[L,Et(f,{style:null}),j])])},d=function(h,f){var p,m=e.value,g=e.allowClear,y=e.direction,b=e.bordered,w=e.hidden,_=e.addonAfter,C=_===void 0?r.addonAfter:_,E=e.addonBefore,I=E===void 0?r.addonBefore:E;if(!g)return Et(f,{value:m});var T=Ce("".concat(h,"-affix-wrapper"),"".concat(h,"-affix-wrapper-textarea-with-clear-btn"),(p={},te(p,"".concat(h,"-affix-wrapper-rtl"),y==="rtl"),te(p,"".concat(h,"-affix-wrapper-borderless"),!b),te(p,"".concat(a.class),!Ic({addonAfter:C,addonBefore:I})&&a.class),p));return S("span",{class:T,style:a.style,hidden:w},[Et(f,{style:null,value:m}),s(h)])};return function(){var v,h=e.prefixCls,f=e.inputType,p=e.element,m=p===void 0?(v=r.element)===null||v===void 0?void 0:v.call(r):p;return f===GF[0]?d(h,m):c(h,u(h,m))}}});function Ff(t){return typeof t>"u"||t===null?"":String(t)}function Eo(t,e,n,r){if(n){var a=e;if(e.type==="click"){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0});var i=t.cloneNode(!0);a.target=i,a.currentTarget=i,i.value="",n(a);return}if(r!==void 0){Object.defineProperty(a,"target",{writable:!0}),Object.defineProperty(a,"currentTarget",{writable:!0}),a.target=t,a.currentTarget=t,t.value=r,n(a);return}n(a)}}function RC(t,e){if(t){t.focus(e);var n=e||{},r=n.cursor;if(r){var a=t.value.length;switch(r){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(a,a);break;default:t.setSelectionRange(0,a)}}}}const kt=he({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Gv(),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=z(),u,c=Nv(),d=lt("input",e),v=d.direction,h=d.prefixCls,f=d.size,p=d.autocomplete,m=z(e.value===void 0?e.defaultValue:e.value),g=z(!1);pe(function(){return e.value},function(){m.value=e.value}),pe(function(){return e.disabled},function(){e.value!==void 0&&(m.value=e.value),e.disabled&&(g.value=!1)});var y=function(){u=setTimeout(function(){var k;((k=s.value)===null||k===void 0?void 0:k.getAttribute("type"))==="password"&&s.value.hasAttribute("value")&&s.value.removeAttribute("value")})},b=function(k){RC(s.value,k)},w=function(){var k;(k=s.value)===null||k===void 0||k.blur()},_=function(k,$,G){var J;(J=s.value)===null||J===void 0||J.setSelectionRange(k,$,G)},C=function(){var k;(k=s.value)===null||k===void 0||k.select()};i({focus:b,blur:w,input:s,stateValue:m,setSelectionRange:_,select:C});var E=function(k){var $=e.onFocus;g.value=!0,$==null||$(k),Ke(function(){y()})},I=function(k){var $=e.onBlur;g.value=!1,$==null||$(k),c.onFieldBlur(),Ke(function(){y()})},T=function(k){o("update:value",k.target.value),o("change",k),o("input",k),c.onFieldChange()},N=Pt(),R=function(k,$){m.value!==k&&(e.value===void 0?m.value=k:Ke(function(){s.value.value!==m.value&&N.update()}),Ke(function(){$&&$()}))},F=function(k){Eo(s.value,k,T),R("",function(){b()})},L=function(k){var $=k.target,G=$.value,J=$.composing;if(!((k.isComposing||J)&&e.lazy||m.value===G)){var Z=k.target.value;Eo(s.value,k,T),R(Z,function(){y()})}},j=function(k){k.keyCode===13&&o("pressEnter",k),o("keydown",k)};Ve(function(){y()}),st(function(){clearTimeout(u)});var D=function(){var k,$=e.addonBefore,G=$===void 0?r.addonBefore:$,J=e.addonAfter,Z=J===void 0?r.addonAfter:J,X=e.disabled,Y=e.bordered,ne=Y===void 0?!0:Y,le=e.valueModifiers,ge=le===void 0?{}:le,_e=e.htmlSize,me=Lt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),ye=M(M(M({},me),a),{},{autocomplete:p.value,onChange:L,onInput:L,onFocus:E,onBlur:I,onKeydown:j,class:Ce(MC(h.value,ne,f.value,X,v.value),te({},a.class,a.class&&!G&&!Z)),ref:s,key:"ant-input",size:_e,id:(k=me.id)!==null&&k!==void 0?k:c.id.value});ge.lazy&&delete ye.onInput,ye.autofocus||delete ye.autofocus;var Se=S("input",Lt(ye,["size"]),null);return dn(Se,[[vs]])},P=function(){var k,$=m.value,G=e.maxlength,J=e.suffix,Z=J===void 0?(k=r.suffix)===null||k===void 0?void 0:k.call(r):J,X=e.showCount,Y=Number(G)>0;if(Z||X){var ne=nt(Ff($)).length,le=null;return Qe(X)==="object"?le=X.formatter({count:ne,maxlength:G}):le="".concat(ne).concat(Y?" / ".concat(G):""),S(Re,null,[!!X&&S("span",{class:Ce("".concat(h.value,"-show-count-suffix"),te({},"".concat(h.value,"-show-count-has-suffix"),!!Z))},[le]),Z])}return null};return function(){var O=M(M(M({},a),e),{},{prefixCls:h.value,inputType:"input",value:Ff(m.value),handleReset:F,focused:g.value&&!e.disabled});return S(NC,M(M({},Lt(O,["element","valueModifiers","suffix","showCount"])),{},{ref:l}),M(M({},r),{},{element:D,suffix:P}))}}}),qF=he({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(e,n){var r=n.slots,a=lt("input-group",e),i=a.prefixCls,o=a.direction,s=V(function(){var l,u=i.value;return l={},te(l,"".concat(u),!0),te(l,"".concat(u,"-lg"),e.size==="large"),te(l,"".concat(u,"-sm"),e.size==="small"),te(l,"".concat(u,"-compact"),e.compact),te(l,"".concat(u,"-rtl"),o.value==="rtl"),l});return function(){var l;return S("span",{class:s.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onFocus:e.onFocus,onBlur:e.onBlur},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});var kc=/iPhone/i,py=/iPod/i,hy=/iPad/i,Mc=/\bAndroid(?:.+)Mobile\b/i,gy=/Android/i,ni=/\bAndroid(?:.+)SD4930UR\b/i,Ks=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Pr=/Windows Phone/i,my=/\bWindows(?:.+)ARM\b/i,yy=/BlackBerry/i,by=/BB10/i,wy=/Opera Mini/i,_y=/\b(CriOS|Chrome)(?:.+)Mobile/i,Cy=/Mobile(?:.+)Firefox\b/i;function ze(t,e){return t.test(e)}function Sy(t){var e=t||(typeof navigator<"u"?navigator.userAgent:""),n=e.split("[FBAN");if(typeof n[1]<"u"){var r=n,a=ke(r,1);e=a[0]}if(n=e.split("Twitter"),typeof n[1]<"u"){var i=n,o=ke(i,1);e=o[0]}var s={apple:{phone:ze(kc,e)&&!ze(Pr,e),ipod:ze(py,e),tablet:!ze(kc,e)&&ze(hy,e)&&!ze(Pr,e),device:(ze(kc,e)||ze(py,e)||ze(hy,e))&&!ze(Pr,e)},amazon:{phone:ze(ni,e),tablet:!ze(ni,e)&&ze(Ks,e),device:ze(ni,e)||ze(Ks,e)},android:{phone:!ze(Pr,e)&&ze(ni,e)||!ze(Pr,e)&&ze(Mc,e),tablet:!ze(Pr,e)&&!ze(ni,e)&&!ze(Mc,e)&&(ze(Ks,e)||ze(gy,e)),device:!ze(Pr,e)&&(ze(ni,e)||ze(Ks,e)||ze(Mc,e)||ze(gy,e))||ze(/\bokhttp\b/i,e)},windows:{phone:ze(Pr,e),tablet:ze(my,e),device:ze(Pr,e)||ze(my,e)},other:{blackberry:ze(yy,e),blackberry10:ze(by,e),opera:ze(wy,e),firefox:ze(Cy,e),chrome:ze(_y,e),device:ze(yy,e)||ze(by,e)||ze(wy,e)||ze(Cy,e)||ze(_y,e)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var YF=M(M({},Sy()),{},{isMobile:Sy});const JF=YF;var XF=["disabled","loading","addonAfter","suffix"];const ZF=he({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:M(M({},Gv()),{},{inputPrefixCls:String,enterButton:ee.any,onSearch:{type:Function}}),setup:function(e,n){var r=n.slots,a=n.attrs,i=n.expose,o=n.emit,s=z(),l=function(){var w;(w=s.value)===null||w===void 0||w.focus()},u=function(){var w;(w=s.value)===null||w===void 0||w.blur()};i({focus:l,blur:u});var c=function(w){o("update:value",w.target.value),w&&w.target&&w.type==="click"&&o("search",w.target.value,w),o("change",w)},d=function(w){var _;document.activeElement===((_=s.value)===null||_===void 0?void 0:_.input)&&w.preventDefault()},v=function(w){var _;o("search",(_=s.value)===null||_===void 0?void 0:_.stateValue,w),JF.tablet||s.value.focus()},h=lt("input-search",e),f=h.prefixCls,p=h.getPrefixCls,m=h.direction,g=h.size,y=V(function(){return p("input",e.inputPrefixCls)});return function(){var b,w,_,C,E,I=e.disabled,T=e.loading,N=e.addonAfter,R=N===void 0?(b=r.addonAfter)===null||b===void 0?void 0:b.call(r):N,F=e.suffix,L=F===void 0?(w=r.suffix)===null||w===void 0?void 0:w.call(r):F,j=bt(e,XF),D=e.enterButton,P=D===void 0?(_=(C=r.enterButton)===null||C===void 0?void 0:C.call(r))!==null&&_!==void 0?_:!1:D;P=P||P==="";var O=typeof P=="boolean"?S(F_,null,null):null,k="".concat(f.value,"-button"),$=Array.isArray(P)?P[0]:P,G,J=$.type&&tA($.type)&&$.type.__ANT_BUTTON;if(J||$.tagName==="button")G=Et($,M({onMousedown:d,onClick:v,key:"enterButton"},J?{class:k,size:g.value}:{}),!1);else{var Z=O&&!P;G=S(Xt,{class:k,type:P?"primary":void 0,size:g.value,disabled:I,key:"enterButton",onMousedown:d,onClick:v,loading:T,icon:Z?O:null},{default:function(){return[Z?null:O||P]}})}R&&(G=[G,R]);var X=Ce(f.value,(E={},te(E,"".concat(f.value,"-rtl"),m.value==="rtl"),te(E,"".concat(f.value,"-").concat(g.value),!!g.value),te(E,"".concat(f.value,"-with-button"),!!P),E),a.class);return S(kt,M(M(M({ref:s},Lt(j,["onUpdate:value","onSearch","enterButton"])),a),{},{onPressEnter:v,size:g.value,prefixCls:y.value,addonAfter:G,suffix:L,onChange:c,class:X,disabled:I}),r)}}});var QF=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -100,9 +100,9 @@ summary tabindex target title type usemap value width wmode wrap`,kR=`onCopy onC z-index:-1000 !important; top:0 !important; right:0 !important -`,eF=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Nc={},zn;function tF(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&Nc[n])return Nc[n];var r=window.getComputedStyle(t),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=eF.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return e&&n&&(Nc[n]=l),l}function nF(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;zn||(zn=document.createElement("textarea"),zn.setAttribute("tab-index","-1"),zn.setAttribute("aria-hidden","true"),document.body.appendChild(zn)),t.getAttribute("wrap")?zn.setAttribute("wrap",t.getAttribute("wrap")):zn.removeAttribute("wrap");var a=tF(t,e),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;zn.setAttribute("style","".concat(l,";").concat(Q8)),zn.value=t.value||t.placeholder||"";var u=Number.MIN_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER,d=zn.scrollHeight,v;if(s==="border-box"?d+=o:s==="content-box"&&(d-=i),n!==null||r!==null){zn.value=" ";var h=zn.scrollHeight-i;n!==null&&(u=h*n,s==="border-box"&&(u=u+i+o),d=Math.max(u,d)),r!==null&&(c=h*r,s==="border-box"&&(c=c+i+o),v=d>c?"":"hidden",d=Math.min(c,d))}return{height:"".concat(d,"px"),minHeight:"".concat(u,"px"),maxHeight:"".concat(c,"px"),overflowY:v,resize:"none"}}var Rc=0,xy=1,rF=2,aF=he({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:MC(),setup:function(e,n){var r=n.attrs,a=n.emit,i=n.expose,o,s,l=z(),u=z({}),c=z(Rc);st(function(){Ue.cancel(o),Ue.cancel(s)});var d=function(){try{if(document.activeElement===l.value){var y=l.value.selectionStart,b=l.value.selectionEnd;l.value.setSelectionRange(y,b)}}catch{}},v=function(){var y=e.autoSize||e.autosize;if(!(!y||!l.value)){var b=y.minRows,w=y.maxRows;u.value=nF(l.value,!1,b,w),c.value=xy,Ue.cancel(s),s=Ue(function(){c.value=rF,s=Ue(function(){c.value=Rc,d()})})}},h=function(){Ue.cancel(o),o=Ue(v)},f=function(y){if(c.value===Rc){a("resize",y);var b=e.autoSize||e.autosize;b&&h()}};pu(e.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var p=function(){var y=e.prefixCls,b=e.autoSize,w=e.autosize,_=e.disabled,C=Lt(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),E=Ce(y,r.class,te({},"".concat(y,"-disabled"),_)),I=[r.style,u.value,c.value===xy?{overflowX:"hidden",overflowY:"hidden"}:null],T=k(k(k({},C),r),{},{style:I,class:E});return T.autofocus||delete T.autofocus,T.rows===0&&delete T.rows,S(Ti,{onResize:f,disabled:!(b||w)},{default:function(){return[dn(S("textarea",k(k({},T),{},{ref:l}),null),[[vs]])]}})};pe(function(){return e.value},function(){Ke(function(){v()})}),Ve(function(){Ke(function(){v()})});var m=Pt();return i({resizeTextarea:v,textArea:l,instance:m}),function(){return p()}}});const iF=aF;function $C(t,e){return nt(t||"").slice(0,e).join("")}function Ty(t,e,n,r){var a=n;return t?a=$C(n,r):nt(e||"").lengthr&&(a=e),a}const oF=he({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:MC(),setup:function(e,n){var r=n.attrs,a=n.expose,i=n.emit,o=Nv(),s=z(e.value===void 0?e.defaultValue:e.value),l=z(),u=z(""),c=lt("input",e),d=c.prefixCls,v=c.size,h=c.direction,f=V(function(){return e.showCount===""||e.showCount||!1}),p=V(function(){return Number(e.maxlength)>0}),m=z(!1),g=z(),y=z(0),b=function(P){m.value=!0,g.value=u.value,y.value=P.currentTarget.selectionStart,i("compositionstart",P)},w=function(P){m.value=!1;var O=P.currentTarget.value;if(p.value){var M,$=y.value>=e.maxlength+1||y.value===((M=g.value)===null||M===void 0?void 0:M.length);O=Ty($,g.value,O,e.maxlength)}O!==u.value&&(I(O),Eo(P.currentTarget,P,R,O)),i("compositionend",P)},_=Pt();pe(function(){return e.value},function(){"value"in _.vnode.props;var D;s.value=(D=e.value)!==null&&D!==void 0?D:""});var C=function(P){var O;RC((O=l.value)===null||O===void 0?void 0:O.textArea,P)},E=function(){var P,O;(P=l.value)===null||P===void 0||(O=P.textArea)===null||O===void 0||O.blur()},I=function(P,O){s.value!==P&&(e.value===void 0?s.value=P:Ke(function(){if(l.value.textArea.value!==u.value){var M,$,G;(M=l.value)===null||M===void 0||($=(G=M.instance).update)===null||$===void 0||$.call(G)}}),Ke(function(){O&&O()}))},T=function(P){P.keyCode===13&&i("pressEnter",P),i("keydown",P)},N=function(P){var O=e.onBlur;O==null||O(P),o.onFieldBlur()},R=function(P){i("update:value",P.target.value),i("change",P),i("input",P),o.onFieldChange()},F=function(P){Eo(l.value.textArea,P,R),I("",function(){C()})},L=function(P){var O=P.target.composing,M=P.target.value;if(m.value=!!(P.isComposing||O),!(m.value&&e.lazy||s.value===M)){if(p.value){var $=P.target,G=$.selectionStart>=e.maxlength+1||$.selectionStart===M.length||!$.selectionStart;M=Ty(G,u.value,M,e.maxlength)}Eo(P.currentTarget,P,R,M),I(M)}},j=function(){var P,O,M,$=r.style,G=r.class,J=e.bordered,Z=J===void 0?!0:J,X=k(k(k({},Lt(e,["allowClear"])),r),{},{style:f.value?{}:$,class:(P={},te(P,"".concat(d.value,"-borderless"),!Z),te(P,"".concat(G),G&&!f.value),te(P,"".concat(d.value,"-sm"),v.value==="small"),te(P,"".concat(d.value,"-lg"),v.value==="large"),P),showCount:null,prefixCls:d.value,onInput:L,onChange:L,onBlur:N,onKeydown:T,onCompositionstart:b,onCompositionend:w});return(O=e.valueModifiers)!==null&&O!==void 0&&O.lazy&&delete X.onInput,S(iF,k(k({},X),{},{id:(M=X.id)!==null&&M!==void 0?M:o.id.value,ref:l,maxlength:e.maxlength}),null)};return a({focus:C,blur:E,resizableTextArea:l}),yt(function(){var D=Ff(s.value);!m.value&&p.value&&(e.value===null||e.value===void 0)&&(D=$C(D,e.maxlength)),u.value=D}),function(){var D=e.maxlength,P=e.bordered,O=P===void 0?!0:P,M=e.hidden,$=r.style,G=r.class,J=k(k(k({},e),r),{},{prefixCls:d.value,inputType:"text",handleReset:F,direction:h.value,bordered:O,style:f.value?void 0:$}),Z=S(NC,k(k({},J),{},{value:u.value}),{element:j});if(f.value){var X=nt(u.value).length,Y="";Qe(f.value)==="object"?Y=f.value.formatter({count:X,maxlength:D}):Y="".concat(X).concat(p.value?" / ".concat(D):""),Z=S("div",{hidden:M,class:Ce("".concat(d.value,"-textarea"),te({},"".concat(d.value,"-textarea-rtl"),h.value==="rtl"),"".concat(d.value,"-textarea-show-count"),G),style:$,"data-count":Qe(Y)!=="object"?Y:void 0},[Z])}return Z}}});var sF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const lF=sF;function Ey(t){for(var e=1;er){if(e>0)return te({},t,i);if(e<0&&ar)return te({},t,e<0?i:-i);return{}}function OF(t,e,n,r){var a=bF(),i=a.width,o=a.height,s=null;return t<=i&&e<=o?s={x:0,y:0}:(t>i||e>o)&&(s=k(k({},Ny("x",n,t,i)),Ny("y",r,e,o))),s}var Ry=Symbol("previewGroupContext"),Jv={provide:function(e){wt(Ry,e)},inject:function(){return ot(Ry,{isPreviewGroup:z(!1),previewUrls:V(function(){return new Map}),setPreviewUrls:function(){},current:z(null),setCurrent:function(){},setShowPreview:function(){},setMousePosition:function(){},registerImage:null,rootClassName:""})}},PF=he({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:function(){return{}}}},setup:function(e,n){var r=n.slots,a=V(function(){var I={visible:void 0,onVisibleChange:function(){},getContainer:void 0,current:0};return Qe(e.preview)==="object"?HC(e.preview,I):I}),i=ct(new Map),o=z(),s=V(function(){return a.value.visible}),l=V(function(){return a.value.getContainer}),u=function(T,N){var R,F;(R=(F=a.value).onVisibleChange)===null||R===void 0||R.call(F,T,N)},c=Ai(!!s.value,{value:s,onChange:u}),d=Me(c,2),v=d[0],h=d[1],f=z(null),p=V(function(){return s.value!==void 0}),m=V(function(){return Array.from(i.keys())}),g=V(function(){return m.value[a.value.current]}),y=V(function(){return new Map(Array.from(i).filter(function(I){var T=Me(I,2),N=T[1].canPreview;return!!N}).map(function(I){var T=Me(I,2),N=T[0],R=T[1].url;return[N,R]}))}),b=function(T,N){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;i.set(T,{url:N,canPreview:R})},w=function(T){o.value=T},_=function(T){f.value=T},C=function(T,N){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=function(){i.delete(T)};return i.set(T,{url:N,canPreview:R}),F},E=function(T){T==null||T.stopPropagation(),h(!1),_(null)};return pe(g,function(I){w(I)},{immediate:!0,flush:"post"}),yt(function(){v.value&&p.value&&w(g.value)},{flush:"post"}),Jv.provide({isPreviewGroup:z(!0),previewUrls:y,setPreviewUrls:b,current:o,setCurrent:w,setShowPreview:h,setMousePosition:_,registerImage:C}),function(){var I=Ut({},(FC(a.value),a.value));return S(Re,null,[r.default&&r.default(),S(jC,k(k({},I),{},{"ria-hidden":!v.value,visible:v.value,prefixCls:e.previewPrefixCls,onClose:E,mousePosition:f.value,src:y.value.get(o.value),icons:e.icons,getContainer:l.value}),null)])}}});const zC=PF;var ba={x:0,y:0},AF=k(k({},Iu()),{},{src:String,alt:String,rootClassName:String,icons:{type:Object,default:function(){return{}}}}),IF=he({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:AF,emits:["close","afterClose"],setup:function(e,n){var r=n.emit,a=n.attrs,i=ct(e.icons),o=i.rotateLeft,s=i.rotateRight,l=i.zoomIn,u=i.zoomOut,c=i.close,d=i.left,v=i.right,h=z(1),f=z(0),p=EF(ba),m=Me(p,2),g=m[0],y=m[1],b=function(){return r("close")},w=z(),_=ct({originX:0,originY:0,deltaX:0,deltaY:0}),C=z(!1),E=Jv.inject(),I=E.previewUrls,T=E.current,N=E.isPreviewGroup,R=E.setCurrent,F=V(function(){return I.value.size}),L=V(function(){return Array.from(I.value.keys())}),j=V(function(){return L.value.indexOf(T.value)}),D=V(function(){return N.value?I.value.get(T.value):e.src}),P=V(function(){return N.value&&F.value>1}),O=z({wheelDirection:0}),M=function(){h.value=1,f.value=0,y(ba),r("afterClose")},$=function(){h.value++,y(ba)},G=function(){h.value>1&&h.value--,y(ba)},J=function(){f.value+=90},Z=function(){f.value-=90},X=function(U){U.preventDefault(),U.stopPropagation(),j.value>0&&R(L.value[j.value-1])},Y=function(U){U.preventDefault(),U.stopPropagation(),j.value0&&R(L.value[j.value-1]):U.keyCode===Ae.RIGHT&&j.value0?G():K<0&&$()})}),vn(function(){W()}),function(){var K=e.visible,U=e.prefixCls,se=e.rootClassName;return S(BC,k(k({},a),{},{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:U,onClose:b,afterClose:M,visible:K,wrapClassName:ne,rootClassName:se,getContainer:e.getContainer}),{default:function(){return[S("ul",{class:"".concat(e.prefixCls,"-operations")},[_e.map(function(re){var Q=re.icon,H=re.onClick,q=re.type,ue=re.disabled;return S("li",{class:Ce(le,te({},"".concat(e.prefixCls,"-operations-operation-disabled"),ue&&(ue==null?void 0:ue.value))),onClick:H,key:q},[rr(Q,{class:ge})])})]),S("div",{class:"".concat(e.prefixCls,"-img-wrapper"),style:{transform:"translate3d(".concat(g.x,"px, ").concat(g.y,"px, 0)")}},[S("img",{onMousedown:ye,onDblclick:A,ref:w,class:"".concat(e.prefixCls,"-img"),src:D.value,alt:e.alt,style:{transform:"scale3d(".concat(h.value,", ").concat(h.value,", 1) rotate(").concat(f.value,"deg)")}},null)]),P.value&&S("div",{class:Ce("".concat(e.prefixCls,"-switch-left"),te({},"".concat(e.prefixCls,"-switch-left-disabled"),j.value<=0)),onClick:X},[d]),P.value&&S("div",{class:Ce("".concat(e.prefixCls,"-switch-right"),te({},"".concat(e.prefixCls,"-switch-right-disabled"),j.value>=F.value-1)),onClick:Y},[v])]}})}}});const jC=IF;var MF=["icons","maskClassName"],WC=function(){return{src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:ee.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}},HC=function(e,n){var r=k({},e);return Object.keys(n).forEach(function(a){e[a]===void 0&&(r[a]=n[a])}),r},kF=0,VC=he({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:WC(),emits:["click","error"],setup:function(e,n){var r=n.attrs,a=n.slots,i=n.emit,o=V(function(){return e.prefixCls}),s=V(function(){return"".concat(o.value,"-preview")}),l=V(function(){var J={visible:void 0,onVisibleChange:function(){},getContainer:void 0};return Qe(e.preview)==="object"?HC(e.preview,J):J}),u=V(function(){var J;return(J=l.value.src)!==null&&J!==void 0?J:e.src}),c=V(function(){return e.placeholder&&e.placeholder!==!0||a.placeholder}),d=V(function(){return l.value.visible}),v=V(function(){return l.value.getContainer}),h=V(function(){return d.value!==void 0}),f=function(Z,X){var Y,ne;(Y=(ne=l.value).onVisibleChange)===null||Y===void 0||Y.call(ne,Z,X)},p=Ai(!!d.value,{value:d,onChange:f}),m=Me(p,2),g=m[0],y=m[1];pe(g,function(J,Z){f(J,Z)});var b=z(c.value?"loading":"normal");pe(function(){return e.src},function(){b.value=c.value?"loading":"normal"});var w=z(null),_=V(function(){return b.value==="error"}),C=Jv.inject(),E=C.isPreviewGroup,I=C.setCurrent,T=C.setShowPreview,N=C.setMousePosition,R=C.registerImage,F=z(kF++),L=V(function(){return e.preview&&!_.value}),j=function(){b.value="normal"},D=function(Z){b.value="error",i("error",Z)},P=function(Z){if(!h.value){var X=LC(Z.target),Y=X.left,ne=X.top;E.value?(I(F.value),N({x:Y,y:ne})):w.value={x:Y,y:ne}}E.value?T(!0):y(!0),i("click",Z)},O=function(){y(!1),h.value||(w.value=null)},M=z(null);pe(function(){return M},function(){b.value==="loading"&&M.value.complete&&(M.value.naturalWidth||M.value.naturalHeight)&&j()});var $=function(){};Ve(function(){pe([u,L],function(){if($(),!E.value)return function(){};$=R(F.value,u.value,L.value),L.value||$()},{flush:"post",immediate:!0})}),vn(function(){$()});var G=function(Z){return Bf(Z)?Z+"px":Z};return function(){var J=e.prefixCls,Z=e.wrapperClassName,X=e.fallback,Y=e.src,ne=e.placeholder,le=e.wrapperStyle,ge=e.rootClassName,_e=r.width,me=r.height,ye=r.crossorigin,Se=r.decoding,B=r.alt,x=r.sizes,A=r.srcset,W=r.usemap,K=r.class,U=r.style,se=l.value,ie=se.icons,re=se.maskClassName,Q=bt(se,MF),H=Ce(J,Z,ge,te({},"".concat(J,"-error"),_.value)),q=_.value&&X?X:u.value,ue={crossorigin:ye,decoding:Se,alt:B,sizes:x,srcset:A,usemap:W,class:Ce("".concat(J,"-img"),te({},"".concat(J,"-img-placeholder"),ne===!0),K),style:k({height:me},U)};return S(Re,null,[S("div",{class:H,onClick:L.value?P:function(ae){i("click",ae)},style:k({width:G(_e),height:G(me)},le)},[S("img",k(k(k({},ue),_.value&&X?{src:X}:{onLoad:j,onError:D,src:Y}),{},{ref:M}),null),b.value==="loading"&&S("div",{"aria-hidden":"true",class:"".concat(J,"-placeholder")},[ne||a.placeholder&&a.placeholder()]),a.previewMask&&L.value&&S("div",{class:["".concat(J,"-mask"),re]},[a.previewMask()])]),!E.value&&L.value&&S(jC,k(k({},Q),{},{"aria-hidden":!g.value,visible:g.value,prefixCls:s.value,onClose:O,mousePosition:w.value,src:q,alt:B,getContainer:v.value,icons:ie,rootClassName:ge}),null)])}}});VC.PreviewGroup=zC;const NF=VC;var RF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const $F=RF;function $y(t){for(var e=1;e=0||c.relatedTarget.className.indexOf("".concat(h,"-item"))>=0)){n.value="";return}else v(r.value),n.value=""},s=function(c){n.value!==""&&(c.keyCode===Ca.ENTER||c.type==="click")&&(e.quickGo(r.value),n.value="")},l=V(function(){var u=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===u.toString()})?c:c.concat([u.toString()]).sort(function(d,v){var h=isNaN(Number(d))?0:Number(d),f=isNaN(Number(v))?0:Number(v);return h-f})});return function(){var u=e.rootPrefixCls,c=e.locale,d=e.changeSize,v=e.quickGo,h=e.goButton,f=e.selectComponentClass,p=e.selectPrefixCls,m=e.pageSize,g=e.disabled,y="".concat(u,"-options"),b=null,w=null,_=null;if(!d&&!v)return null;if(d&&f){var C=e.buildOptionText||a,E=l.value.map(function(I,T){return S(f.Option,{key:T,value:I},{default:function(){return[C({value:I})]}})});b=S(f,{disabled:g,prefixCls:p,showSearch:!1,class:"".concat(y,"-size-changer"),optionLabelProp:"children",value:(m||l.value[0]).toString(),onChange:function(T){return d(Number(T))},getPopupContainer:function(T){return T.parentNode}},{default:function(){return[E]}})}return v&&(h&&(_=typeof h=="boolean"?S("button",{type:"button",onClick:s,onKeyup:s,disabled:g,class:"".concat(y,"-quick-jumper-button")},[c.jump_to_confirm]):S("span",{onClick:s,onKeyup:s},[h])),w=S("div",{class:"".concat(y,"-quick-jumper")},[c.jump_to,dn(S("input",{disabled:g,type:"text",value:n.value,onInput:i,onChange:i,onKeyup:s,onBlur:o},null),[[vs]]),c.page,_])),S("li",{class:"".concat(y)},[b,w])}}}),v3={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var p3=["class"];function h3(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function g3(t){var e=t.originalElement;return e}function Ar(t,e,n){var r=typeof t>"u"?e.statePageSize:t;return Math.floor((n.total-1)/r)+1}const m3=he({compatConfig:{MODE:3},name:"Pagination",mixins:[b_],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:ee.string.def("rc-pagination"),selectPrefixCls:ee.string.def("rc-select"),current:Number,defaultCurrent:ee.number.def(1),total:ee.number.def(0),pageSize:Number,defaultPageSize:ee.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:ee.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:ee.oneOfType([ee.looseBool,ee.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:ee.arrayOf(ee.oneOfType([ee.number,ee.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:ee.object.def(v3),itemRender:ee.func.def(g3),prevIcon:ee.any,nextIcon:ee.any,jumpPrevIcon:ee.any,jumpNextIcon:ee.any,totalBoundaryShowSizeChanger:ee.number.def(50)},data:function(){var e=this.$props,n=Nf([this.current,this.defaultCurrent]),r=Nf([this.pageSize,this.defaultPageSize]);return n=Math.min(n,Ar(r,void 0,e)),{stateCurrent:n,stateCurrentInputValue:n,statePageSize:r}},watch:{current:function(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize:function(e){var n={},r=this.stateCurrent,a=Ar(e,this.$data,this.$props);r=r>a?a:r,oi(this,"current")||(n.stateCurrent=r,n.stateCurrentInputValue=r),n.statePageSize=e,this.setState(n)},stateCurrent:function(e,n){var r=this;this.$nextTick(function(){if(r.$refs.paginationNode){var a=r.$refs.paginationNode.querySelector(".".concat(r.prefixCls,"-item-").concat(n));a&&document.activeElement===a&&a.blur()}})},total:function(){var e={},n=Ar(this.pageSize,this.$data,this.$props);if(oi(this,"current")){var r=Math.min(this.current,n);e.stateCurrent=r,e.stateCurrentInputValue=r}else{var a=this.stateCurrent;a===0&&n>0?a=1:a=Math.min(this.stateCurrent,n),e.stateCurrent=a}this.setState(e)}},methods:{getJumpPrevPage:function(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage:function(){return Math.min(Ar(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon:function(e,n){var r=this.$props.prefixCls,a=J1(this,e,this.$props)||S("button",{type:"button","aria-label":n,class:"".concat(r,"-item-link")},null);return a},getValidValue:function(e){var n=e.target.value,r=Ar(void 0,this.$data,this.$props),a=this.$data.stateCurrentInputValue,i;return n===""?i=n:isNaN(Number(n))?i=a:n>=r?i=r:i=Number(n),i},isValid:function(e){return h3(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper:function(){var e=this.$props,n=e.showQuickJumper,r=e.pageSize,a=e.total;return a<=r?!1:n},handleKeyDown:function(e){(e.keyCode===Ca.ARROW_UP||e.keyCode===Ca.ARROW_DOWN)&&e.preventDefault()},handleKeyUp:function(e){if(!(e.isComposing||e.target.composing)){var n=this.getValidValue(e),r=this.stateCurrentInputValue;n!==r&&this.setState({stateCurrentInputValue:n}),e.keyCode===Ca.ENTER?this.handleChange(n):e.keyCode===Ca.ARROW_UP?this.handleChange(n-1):e.keyCode===Ca.ARROW_DOWN&&this.handleChange(n+1)}},changePageSize:function(e){var n=this.stateCurrent,r=n,a=Ar(e,this.$data,this.$props);n=n>a?a:n,a===0&&(n=this.stateCurrent),typeof e=="number"&&(oi(this,"pageSize")||this.setState({statePageSize:e}),oi(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n})),this.__emit("update:pageSize",e),n!==r&&this.__emit("update:current",n),this.__emit("showSizeChange",n,e),this.__emit("change",n,e)},handleChange:function(e){var n=this.$props.disabled,r=e;if(this.isValid(r)&&!n){var a=Ar(void 0,this.$data,this.$props);return r>a?r=a:r<1&&(r=1),oi(this,"current")||this.setState({stateCurrent:r,stateCurrentInputValue:r}),this.__emit("update:current",r),this.__emit("change",r,this.statePageSize),r}return this.stateCurrent},prev:function(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next:function(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev:function(){this.handleChange(this.getJumpPrevPage())},jumpNext:function(){this.handleChange(this.getJumpNextPage())},hasPrev:function(){return this.stateCurrent>1},hasNext:function(){return this.stateCurrenta},runIfEnter:function(e,n){if(e.key==="Enter"||e.charCode===13){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i0?w-1:0,$=w+1=O*2&&w!==1+2&&(N[0]=S(wa,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ge,page:ge,class:"".concat(r,"-item-after-jump-prev"),active:!1,showTitle:this.showTitle,itemRender:h},null),N.unshift(R)),T-w>=O*2&&w!==T-2&&(N[N.length-1]=S(wa,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:_e,page:_e,class:"".concat(r,"-item-before-jump-next"),active:!1,showTitle:this.showTitle,itemRender:h},null),N.push(F)),ge!==1&&N.unshift(L),_e!==T&&N.push(j)}var Se=null;d&&(Se=S("li",{class:"".concat(r,"-total-text")},[d(o,[o===0?0:(w-1)*_+1,w*_>o?o:w*_])]));var B=!G||!T,x=!J||!T,A=this.buildOptionText||this.$slots.buildOptionText;return S("ul",k(k({unselectable:"on",ref:"paginationNode"},I),{},{class:Ce((e={},te(e,"".concat(r),!0),te(e,"".concat(r,"-disabled"),a),e),E)}),[Se,S("li",{title:c?s.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:Ce("".concat(r,"-prev"),te({},"".concat(r,"-disabled"),B)),"aria-disabled":B},[this.renderPrev(M)]),N,S("li",{title:c?s.next_page:null,onClick:this.next,tabindex:x?null:0,onKeypress:this.runIfEnterNext,class:Ce("".concat(r,"-next"),te({},"".concat(r,"-disabled"),x)),"aria-disabled":x},[this.renderNext($)]),S(d3,{disabled:a,locale:s,rootPrefixCls:r,selectComponentClass:g,selectPrefixCls:y,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:w,pageSize:_,pageSizeOptions:b,buildOptionText:A||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:P},null)])}});var y3=["size","itemRender","buildOptionText","selectComponentClass","responsive"],b3=function(){return{total:Number,defaultCurrent:Number,disabled:{type:Boolean,default:void 0},current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:{type:Boolean,default:void 0},showSizeChanger:{type:Boolean,default:void 0},pageSizeOptions:Array,buildOptionText:Function,showQuickJumper:{type:[Boolean,Object],default:void 0},showTotal:Function,size:String,simple:{type:Boolean,default:void 0},locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Function,role:String,responsive:Boolean,showLessItems:{type:Boolean,default:void 0},onChange:Function,onShowSizeChange:Function,"onUpdate:current":Function,"onUpdate:pageSize":Function}};const w3=he({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:b3(),setup:function(e,n){var r=n.slots,a=n.attrs,i=lt("pagination",e),o=i.prefixCls,s=i.configProvider,l=i.direction,u=V(function(){return s.getPrefixCls("select",e.selectPrefixCls)}),c=uD(),d=Gd("Pagination",nw,sn(e,"locale")),v=Me(d,1),h=v[0],f=function(m){var g=S("span",{class:"".concat(m,"-item-ellipsis")},[_n("•••")]),y=S("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[S(yC,null,null)]),b=S("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[S(U_,null,null)]),w=S("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[S("div",{class:"".concat(m,"-item-container")},[S(o3,{class:"".concat(m,"-item-link-icon")},null),g])]),_=S("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[S("div",{class:"".concat(m,"-item-container")},[S(c3,{class:"".concat(m,"-item-link-icon")},null),g])]);if(l.value==="rtl"){var C=[b,y];y=C[0],b=C[1];var E=[_,w];w=E[0],_=E[1]}return{prevIcon:y,nextIcon:b,jumpPrevIcon:w,jumpNextIcon:_}};return function(){var p,m=e.size,g=e.itemRender,y=g===void 0?r.itemRender:g,b=e.buildOptionText,w=b===void 0?r.buildOptionText:b,_=e.selectComponentClass,C=e.responsive,E=bt(e,y3),I=m==="small"||!!((p=c.value)!==null&&p!==void 0&&p.xs&&!m&&C),T=k(k(k(k({},E),f(o.value)),{},{prefixCls:o.value,selectPrefixCls:u.value,selectComponentClass:_||(I?f3:Dl),locale:h.value,buildOptionText:w},a),{},{class:Ce(te({mini:I},"".concat(o.value,"-rtl"),l.value==="rtl"),a.class),itemRender:y});return S(m3,T,null)}}}),_3=Bi(w3);var C3=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],zf=null,S3=function(e){zf={x:e.pageX,y:e.pageY},setTimeout(function(){return zf=null},100)};mC()&&jn(document.documentElement,"click",S3,!0);var x3=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:ee.any,closable:{type:Boolean,default:void 0},closeIcon:ee.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:ee.any,okText:ee.any,okType:String,cancelText:ee.any,icon:ee.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},ci=[];const xt=he({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:pn(x3(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(e,n){var r=n.emit,a=n.slots,i=n.attrs,o=Gd("Modal"),s=Me(o,1),l=s[0],u=lt("modal",e),c=u.prefixCls,d=u.rootPrefixCls,v=u.direction,h=u.getPopupContainer,f=function(y){r("update:visible",!1),r("cancel",y),r("change",!1)},p=function(y){r("ok",y)},m=function(){var y,b,w=e.okText,_=w===void 0?(y=a.okText)===null||y===void 0?void 0:y.call(a):w,C=e.okType,E=e.cancelText,I=E===void 0?(b=a.cancelText)===null||b===void 0?void 0:b.call(a):E,T=e.confirmLoading;return S(Re,null,[S(Xt,k({onClick:f},e.cancelButtonProps),{default:function(){return[I||l.value.cancelText]}}),S(Xt,k(k({},j_(C)),{},{loading:T,onClick:p},e.okButtonProps),{default:function(){return[_||l.value.okText]}})])};return function(){var g,y;e.prefixCls;var b=e.visible,w=e.wrapClassName,_=e.centered,C=e.getContainer,E=e.closeIcon,I=E===void 0?(g=a.closeIcon)===null||g===void 0?void 0:g.call(a):E,T=e.focusTriggerAfterClose,N=T===void 0?!0:T,R=bt(e,C3),F=Ce(w,(y={},te(y,"".concat(c.value,"-centered"),!!_),te(y,"".concat(c.value,"-wrap-rtl"),v.value==="rtl"),y));return S(BC,k(k(k({},R),i),{},{getContainer:C||h.value,prefixCls:c.value,wrapClassName:F,visible:b,mousePosition:zf,onClose:f,focusTriggerAfterClose:N,transitionName:Da(d.value,"zoom",e.transitionName),maskTransitionName:Da(d.value,"fade",e.maskTransitionName)}),k(k({},a),{},{footer:a.footer||m,closeIcon:function(){return S("span",{class:"".concat(c.value,"-close-x")},[I||S(zr,{class:"".concat(c.value,"-close-icon")},null)])}}))}}});var T3=function(){var e=z(!1);return st(function(){e.value=!0}),e};const E3=T3;var O3={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Wy(t){return!!(t&&t.then)}const Hy=he({compatConfig:{MODE:3},name:"ActionButton",props:O3,setup:function(e,n){var r=n.slots,a=z(!1),i=z(),o=z(!1),s,l=E3();Ve(function(){e.autofocus&&(s=setTimeout(function(){var d;return(d=i.value.$el)===null||d===void 0?void 0:d.focus()}))}),st(function(){clearTimeout(s)});var u=function(v){var h=e.close;Wy(v)&&(o.value=!0,v.then(function(){l.value||(o.value=!1),h.apply(void 0,arguments),a.value=!1},function(f){console.error(f),l.value||(o.value=!1),a.value=!1}))},c=function(v){var h=e.actionFn,f=e.close,p=f===void 0?function(){}:f;if(!a.value){if(a.value=!0,!h){p();return}var m;if(e.emitEvent){if(m=h(v),e.quitOnNullishReturnValue&&!Wy(m)){a.value=!1,p(v);return}}else if(h.length)m=h(p),a.value=!1;else if(m=h(),!m){p();return}u(m)}};return function(){var d=e.type,v=e.prefixCls,h=e.buttonProps;return S(Xt,k(k(k({},j_(d)),{},{onClick:c,loading:o.value,prefixCls:v},h),{},{ref:i}),r)}}});function ao(t){return typeof t=="function"?t():t}const P3=he({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(e,n){var r=n.attrs,a=Gd("Modal"),i=Me(a,1),o=i[0];return function(){var s=e.icon,l=e.onCancel,u=e.onOk,c=e.close,d=e.closable,v=d===void 0?!1:d,h=e.zIndex,f=e.afterClose,p=e.visible,m=e.keyboard,g=e.centered,y=e.getContainer,b=e.maskStyle,w=e.okButtonProps,_=e.cancelButtonProps,C=e.okCancel,E=C===void 0?!0:C,I=e.width,T=I===void 0?416:I,N=e.mask,R=N===void 0?!0:N,F=e.maskClosable,L=F===void 0?!1:F,j=e.type,D=e.title,P=e.content,O=e.direction,M=e.closeIcon,$=e.modalRender,G=e.focusTriggerAfterClose,J=e.rootPrefixCls,Z=e.bodyStyle,X=e.wrapClassName,Y=e.okType||"primary",ne=e.prefixCls||"ant-modal",le="".concat(ne,"-confirm"),ge=r.style||{},_e=ao(e.okText)||(E?o.value.okText:o.value.justOkText),me=ao(e.cancelText)||o.value.cancelText,ye=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",Se=Ce(le,"".concat(le,"-").concat(j),"".concat(ne,"-").concat(j),te({},"".concat(le,"-rtl"),O==="rtl"),r.class),B=E&&S(Hy,{actionFn:l,close:c,autofocus:ye==="cancel",buttonProps:_,prefixCls:"".concat(J,"-btn")},{default:function(){return[me]}});return S(xt,{prefixCls:ne,class:Se,wrapClassName:Ce(te({},"".concat(le,"-centered"),!!g),X),onCancel:function(A){return c({triggerCancel:!0},A)},visible:p,title:"",footer:"",transitionName:Da(J,"zoom",e.transitionName),maskTransitionName:Da(J,"fade",e.maskTransitionName),mask:R,maskClosable:L,maskStyle:b,style:ge,bodyStyle:Z,width:T,zIndex:h,afterClose:f,keyboard:m,centered:g,getContainer:y,closable:v,closeIcon:M,modalRender:$,focusTriggerAfterClose:G},{default:function(){return[S("div",{class:"".concat(le,"-body-wrapper")},[S("div",{class:"".concat(le,"-body")},[ao(s),D===void 0?null:S("span",{class:"".concat(le,"-title")},[ao(D)]),S("div",{class:"".concat(le,"-content")},[ao(P)])]),S("div",{class:"".concat(le,"-btns")},[B,S(Hy,{type:Y,actionFn:u,close:c,autofocus:ye==="ok",buttonProps:w,prefixCls:"".concat(J,"-btn")},{default:function(){return[_e]}})])])]}})}}});var A3=function(e){var n=document.createDocumentFragment(),r=k(k({},Lt(e,["parentContext","appContext"])),{},{close:o,visible:!0}),a=null;function i(){a&&(xl(null,n),a.component.update(),a=null);for(var c=arguments.length,d=new Array(c),v=0;ve=>{const n=t5.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xr=t=>(t=t.toLowerCase(),e=>Nu(e)===t),Ru=t=>e=>typeof e===t,{isArray:Hi}=Array,Qo=Ru("undefined");function n5(t){return t!==null&&!Qo(t)&&t.constructor!==null&&!Qo(t.constructor)&&Kn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const eS=xr("ArrayBuffer");function r5(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&eS(t.buffer),e}const a5=Ru("string"),Kn=Ru("function"),tS=Ru("number"),$u=t=>t!==null&&typeof t=="object",i5=t=>t===!0||t===!1,fl=t=>{if(Nu(t)!=="object")return!1;const e=op(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},o5=xr("Date"),s5=xr("File"),l5=xr("Blob"),u5=xr("FileList"),c5=t=>$u(t)&&Kn(t.pipe),f5=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Kn(t.append)&&((e=Nu(t))==="formdata"||e==="object"&&Kn(t.toString)&&t.toString()==="[object FormData]"))},d5=xr("URLSearchParams"),v5=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gs(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),Hi(t))for(r=0,a=t.length;r0;)if(a=n[r],e===a.toLowerCase())return a;return null}const rS=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),aS=t=>!Qo(t)&&t!==rS;function jf(){const{caseless:t}=aS(this)&&this||{},e={},n=(r,a)=>{const i=t&&nS(e,a)||a;fl(e[i])&&fl(r)?e[i]=jf(e[i],r):fl(r)?e[i]=jf({},r):Hi(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r(gs(e,(a,i)=>{n&&Kn(a)?t[i]=QC(a,n):t[i]=a},{allOwnKeys:r}),t),h5=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),g5=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},m5=(t,e,n,r)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&op(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},y5=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},b5=t=>{if(!t)return null;if(Hi(t))return t;let e=t.length;if(!tS(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},w5=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&op(Uint8Array)),_5=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},C5=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},S5=xr("HTMLFormElement"),x5=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Uy=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),T5=xr("RegExp"),iS=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};gs(n,(a,i)=>{e(a,i,t)!==!1&&(r[i]=a)}),Object.defineProperties(t,r)},E5=t=>{iS(t,(e,n)=>{if(Kn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Kn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},O5=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Hi(t)?r(t):r(String(t).split(e)),n},P5=()=>{},A5=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Dc="abcdefghijklmnopqrstuvwxyz",Ky="0123456789",oS={DIGIT:Ky,ALPHA:Dc,ALPHA_DIGIT:Dc+Dc.toUpperCase()+Ky},I5=(t=16,e=oS.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function M5(t){return!!(t&&Kn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const k5=t=>{const e=new Array(10),n=(r,a)=>{if($u(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=Hi(r)?[]:{};return gs(r,(o,s)=>{const l=n(o,a+1);!Qo(l)&&(i[s]=l)}),e[a]=void 0,i}}return r};return n(t,0)},N5=xr("AsyncFunction"),R5=t=>t&&($u(t)||Kn(t))&&Kn(t.then)&&Kn(t.catch),de={isArray:Hi,isArrayBuffer:eS,isBuffer:n5,isFormData:f5,isArrayBufferView:r5,isString:a5,isNumber:tS,isBoolean:i5,isObject:$u,isPlainObject:fl,isUndefined:Qo,isDate:o5,isFile:s5,isBlob:l5,isRegExp:T5,isFunction:Kn,isStream:c5,isURLSearchParams:d5,isTypedArray:w5,isFileList:u5,forEach:gs,merge:jf,extend:p5,trim:v5,stripBOM:h5,inherits:g5,toFlatObject:m5,kindOf:Nu,kindOfTest:xr,endsWith:y5,toArray:b5,forEachEntry:_5,matchAll:C5,isHTMLForm:S5,hasOwnProperty:Uy,hasOwnProp:Uy,reduceDescriptors:iS,freezeMethods:E5,toObjectSet:O5,toCamelCase:x5,noop:P5,toFiniteNumber:A5,findKey:nS,global:rS,isContextDefined:aS,ALPHABET:oS,generateString:I5,isSpecCompliantForm:M5,toJSONObject:k5,isAsyncFn:N5,isThenable:R5};function tt(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}de.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sS=tt.prototype,lS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{lS[t]={value:t}});Object.defineProperties(tt,lS);Object.defineProperty(sS,"isAxiosError",{value:!0});tt.from=(t,e,n,r,a,i)=>{const o=Object.create(sS);return de.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),tt.call(o,t.message,e,n,r,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const $5=null;function Wf(t){return de.isPlainObject(t)||de.isArray(t)}function uS(t){return de.endsWith(t,"[]")?t.slice(0,-2):t}function Gy(t,e,n){return t?t.concat(e).map(function(a,i){return a=uS(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function D5(t){return de.isArray(t)&&!t.some(Wf)}const L5=de.toFlatObject(de,{},null,function(e){return/^is[A-Z]/.test(e)});function Du(t,e,n){if(!de.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!de.isUndefined(m[p])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(e);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(de.isDate(f))return f.toISOString();if(!l&&de.isBlob(f))throw new tt("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(f)||de.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,p,m){let g=f;if(f&&!m&&typeof f=="object"){if(de.endsWith(p,"{}"))p=r?p:p.slice(0,-2),f=JSON.stringify(f);else if(de.isArray(f)&&D5(f)||(de.isFileList(f)||de.endsWith(p,"[]"))&&(g=de.toArray(f)))return p=uS(p),g.forEach(function(b,w){!(de.isUndefined(b)||b===null)&&e.append(o===!0?Gy([p],w,i):o===null?p:p+"[]",u(b))}),!1}return Wf(f)?!0:(e.append(Gy(m,p,i),u(f)),!1)}const d=[],v=Object.assign(L5,{defaultVisitor:c,convertValue:u,isVisitable:Wf});function h(f,p){if(!de.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(f),de.forEach(f,function(g,y){(!(de.isUndefined(g)||g===null)&&a.call(e,g,de.isString(y)?y.trim():y,p,v))===!0&&h(g,p?p.concat(y):[y])}),d.pop()}}if(!de.isObject(t))throw new TypeError("data must be an object");return h(t),e}function qy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function sp(t,e){this._pairs=[],t&&Du(t,this,e)}const cS=sp.prototype;cS.append=function(e,n){this._pairs.push([e,n])};cS.toString=function(e){const n=e?function(r){return e.call(this,r,qy)}:qy;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function F5(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fS(t,e,n){if(!e)return t;const r=n&&n.encode||F5,a=n&&n.serialize;let i;if(a?i=a(e,n):i=de.isURLSearchParams(e)?e.toString():new sp(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class B5{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){de.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Yy=B5,dS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z5=typeof URLSearchParams<"u"?URLSearchParams:sp,j5=typeof FormData<"u"?FormData:null,W5=typeof Blob<"u"?Blob:null,H5=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),V5=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),gr={isBrowser:!0,classes:{URLSearchParams:z5,FormData:j5,Blob:W5},isStandardBrowserEnv:H5,isStandardBrowserWebWorkerEnv:V5,protocols:["http","https","file","blob","url","data"]};function U5(t,e){return Du(t,new gr.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return gr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function K5(t){return de.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function G5(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&de.isArray(a)?a.length:o,l?(de.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!de.isObject(a[o]))&&(a[o]=[]),e(n,r,a[o],i)&&de.isArray(a[o])&&(a[o]=G5(a[o])),!s)}if(de.isFormData(t)&&de.isFunction(t.entries)){const n={};return de.forEachEntry(t,(r,a)=>{e(K5(r),a,n,0)}),n}return null}const q5={"Content-Type":void 0};function Y5(t,e,n){if(de.isString(t))try{return(e||JSON.parse)(t),de.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Lu={transitional:dS,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=de.isObject(e);if(i&&de.isHTMLForm(e)&&(e=new FormData(e)),de.isFormData(e))return a&&a?JSON.stringify(vS(e)):e;if(de.isArrayBuffer(e)||de.isBuffer(e)||de.isStream(e)||de.isFile(e)||de.isBlob(e))return e;if(de.isArrayBufferView(e))return e.buffer;if(de.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return U5(e,this.formSerializer).toString();if((s=de.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Du(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),Y5(e)):e}],transformResponse:[function(e){const n=this.transitional||Lu.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(e&&de.isString(e)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?tt.from(s,tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gr.classes.FormData,Blob:gr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};de.forEach(["delete","get","head"],function(e){Lu.headers[e]={}});de.forEach(["post","put","patch"],function(e){Lu.headers[e]=de.merge(q5)});const lp=Lu,J5=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X5=t=>{const e={};let n,r,a;return t&&t.split(` +`,e8=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Nc={},zn;function t8(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&Nc[n])return Nc[n];var r=window.getComputedStyle(t),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=e8.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return e&&n&&(Nc[n]=l),l}function n8(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;zn||(zn=document.createElement("textarea"),zn.setAttribute("tab-index","-1"),zn.setAttribute("aria-hidden","true"),document.body.appendChild(zn)),t.getAttribute("wrap")?zn.setAttribute("wrap",t.getAttribute("wrap")):zn.removeAttribute("wrap");var a=t8(t,e),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;zn.setAttribute("style","".concat(l,";").concat(QF)),zn.value=t.value||t.placeholder||"";var u=Number.MIN_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER,d=zn.scrollHeight,v;if(s==="border-box"?d+=o:s==="content-box"&&(d-=i),n!==null||r!==null){zn.value=" ";var h=zn.scrollHeight-i;n!==null&&(u=h*n,s==="border-box"&&(u=u+i+o),d=Math.max(u,d)),r!==null&&(c=h*r,s==="border-box"&&(c=c+i+o),v=d>c?"":"hidden",d=Math.min(c,d))}return{height:"".concat(d,"px"),minHeight:"".concat(u,"px"),maxHeight:"".concat(c,"px"),overflowY:v,resize:"none"}}var Rc=0,xy=1,r8=2,a8=he({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:kC(),setup:function(e,n){var r=n.attrs,a=n.emit,i=n.expose,o,s,l=z(),u=z({}),c=z(Rc);st(function(){Ue.cancel(o),Ue.cancel(s)});var d=function(){try{if(document.activeElement===l.value){var y=l.value.selectionStart,b=l.value.selectionEnd;l.value.setSelectionRange(y,b)}}catch{}},v=function(){var y=e.autoSize||e.autosize;if(!(!y||!l.value)){var b=y.minRows,w=y.maxRows;u.value=n8(l.value,!1,b,w),c.value=xy,Ue.cancel(s),s=Ue(function(){c.value=r8,s=Ue(function(){c.value=Rc,d()})})}},h=function(){Ue.cancel(o),o=Ue(v)},f=function(y){if(c.value===Rc){a("resize",y);var b=e.autoSize||e.autosize;b&&h()}};pu(e.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var p=function(){var y=e.prefixCls,b=e.autoSize,w=e.autosize,_=e.disabled,C=Lt(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),E=Ce(y,r.class,te({},"".concat(y,"-disabled"),_)),I=[r.style,u.value,c.value===xy?{overflowX:"hidden",overflowY:"hidden"}:null],T=M(M(M({},C),r),{},{style:I,class:E});return T.autofocus||delete T.autofocus,T.rows===0&&delete T.rows,S(Ti,{onResize:f,disabled:!(b||w)},{default:function(){return[dn(S("textarea",M(M({},T),{},{ref:l}),null),[[vs]])]}})};pe(function(){return e.value},function(){Ke(function(){v()})}),Ve(function(){Ke(function(){v()})});var m=Pt();return i({resizeTextarea:v,textArea:l,instance:m}),function(){return p()}}});const i8=a8;function $C(t,e){return nt(t||"").slice(0,e).join("")}function Ty(t,e,n,r){var a=n;return t?a=$C(n,r):nt(e||"").lengthr&&(a=e),a}const o8=he({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:kC(),setup:function(e,n){var r=n.attrs,a=n.expose,i=n.emit,o=Nv(),s=z(e.value===void 0?e.defaultValue:e.value),l=z(),u=z(""),c=lt("input",e),d=c.prefixCls,v=c.size,h=c.direction,f=V(function(){return e.showCount===""||e.showCount||!1}),p=V(function(){return Number(e.maxlength)>0}),m=z(!1),g=z(),y=z(0),b=function(P){m.value=!0,g.value=u.value,y.value=P.currentTarget.selectionStart,i("compositionstart",P)},w=function(P){m.value=!1;var O=P.currentTarget.value;if(p.value){var k,$=y.value>=e.maxlength+1||y.value===((k=g.value)===null||k===void 0?void 0:k.length);O=Ty($,g.value,O,e.maxlength)}O!==u.value&&(I(O),Eo(P.currentTarget,P,R,O)),i("compositionend",P)},_=Pt();pe(function(){return e.value},function(){"value"in _.vnode.props;var D;s.value=(D=e.value)!==null&&D!==void 0?D:""});var C=function(P){var O;RC((O=l.value)===null||O===void 0?void 0:O.textArea,P)},E=function(){var P,O;(P=l.value)===null||P===void 0||(O=P.textArea)===null||O===void 0||O.blur()},I=function(P,O){s.value!==P&&(e.value===void 0?s.value=P:Ke(function(){if(l.value.textArea.value!==u.value){var k,$,G;(k=l.value)===null||k===void 0||($=(G=k.instance).update)===null||$===void 0||$.call(G)}}),Ke(function(){O&&O()}))},T=function(P){P.keyCode===13&&i("pressEnter",P),i("keydown",P)},N=function(P){var O=e.onBlur;O==null||O(P),o.onFieldBlur()},R=function(P){i("update:value",P.target.value),i("change",P),i("input",P),o.onFieldChange()},F=function(P){Eo(l.value.textArea,P,R),I("",function(){C()})},L=function(P){var O=P.target.composing,k=P.target.value;if(m.value=!!(P.isComposing||O),!(m.value&&e.lazy||s.value===k)){if(p.value){var $=P.target,G=$.selectionStart>=e.maxlength+1||$.selectionStart===k.length||!$.selectionStart;k=Ty(G,u.value,k,e.maxlength)}Eo(P.currentTarget,P,R,k),I(k)}},j=function(){var P,O,k,$=r.style,G=r.class,J=e.bordered,Z=J===void 0?!0:J,X=M(M(M({},Lt(e,["allowClear"])),r),{},{style:f.value?{}:$,class:(P={},te(P,"".concat(d.value,"-borderless"),!Z),te(P,"".concat(G),G&&!f.value),te(P,"".concat(d.value,"-sm"),v.value==="small"),te(P,"".concat(d.value,"-lg"),v.value==="large"),P),showCount:null,prefixCls:d.value,onInput:L,onChange:L,onBlur:N,onKeydown:T,onCompositionstart:b,onCompositionend:w});return(O=e.valueModifiers)!==null&&O!==void 0&&O.lazy&&delete X.onInput,S(i8,M(M({},X),{},{id:(k=X.id)!==null&&k!==void 0?k:o.id.value,ref:l,maxlength:e.maxlength}),null)};return a({focus:C,blur:E,resizableTextArea:l}),yt(function(){var D=Ff(s.value);!m.value&&p.value&&(e.value===null||e.value===void 0)&&(D=$C(D,e.maxlength)),u.value=D}),function(){var D=e.maxlength,P=e.bordered,O=P===void 0?!0:P,k=e.hidden,$=r.style,G=r.class,J=M(M(M({},e),r),{},{prefixCls:d.value,inputType:"text",handleReset:F,direction:h.value,bordered:O,style:f.value?void 0:$}),Z=S(NC,M(M({},J),{},{value:u.value}),{element:j});if(f.value){var X=nt(u.value).length,Y="";Qe(f.value)==="object"?Y=f.value.formatter({count:X,maxlength:D}):Y="".concat(X).concat(p.value?" / ".concat(D):""),Z=S("div",{hidden:k,class:Ce("".concat(d.value,"-textarea"),te({},"".concat(d.value,"-textarea-rtl"),h.value==="rtl"),"".concat(d.value,"-textarea-show-count"),G),style:$,"data-count":Qe(Y)!=="object"?Y:void 0},[Z])}return Z}}});var s8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const l8=s8;function Ey(t){for(var e=1;er){if(e>0)return te({},t,i);if(e<0&&ar)return te({},t,e<0?i:-i);return{}}function O8(t,e,n,r){var a=b8(),i=a.width,o=a.height,s=null;return t<=i&&e<=o?s={x:0,y:0}:(t>i||e>o)&&(s=M(M({},Ny("x",n,t,i)),Ny("y",r,e,o))),s}var Ry=Symbol("previewGroupContext"),Jv={provide:function(e){wt(Ry,e)},inject:function(){return ot(Ry,{isPreviewGroup:z(!1),previewUrls:V(function(){return new Map}),setPreviewUrls:function(){},current:z(null),setCurrent:function(){},setShowPreview:function(){},setMousePosition:function(){},registerImage:null,rootClassName:""})}},P8=he({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:function(){return{}}}},setup:function(e,n){var r=n.slots,a=V(function(){var I={visible:void 0,onVisibleChange:function(){},getContainer:void 0,current:0};return Qe(e.preview)==="object"?HC(e.preview,I):I}),i=ct(new Map),o=z(),s=V(function(){return a.value.visible}),l=V(function(){return a.value.getContainer}),u=function(T,N){var R,F;(R=(F=a.value).onVisibleChange)===null||R===void 0||R.call(F,T,N)},c=Ai(!!s.value,{value:s,onChange:u}),d=ke(c,2),v=d[0],h=d[1],f=z(null),p=V(function(){return s.value!==void 0}),m=V(function(){return Array.from(i.keys())}),g=V(function(){return m.value[a.value.current]}),y=V(function(){return new Map(Array.from(i).filter(function(I){var T=ke(I,2),N=T[1].canPreview;return!!N}).map(function(I){var T=ke(I,2),N=T[0],R=T[1].url;return[N,R]}))}),b=function(T,N){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;i.set(T,{url:N,canPreview:R})},w=function(T){o.value=T},_=function(T){f.value=T},C=function(T,N){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=function(){i.delete(T)};return i.set(T,{url:N,canPreview:R}),F},E=function(T){T==null||T.stopPropagation(),h(!1),_(null)};return pe(g,function(I){w(I)},{immediate:!0,flush:"post"}),yt(function(){v.value&&p.value&&w(g.value)},{flush:"post"}),Jv.provide({isPreviewGroup:z(!0),previewUrls:y,setPreviewUrls:b,current:o,setCurrent:w,setShowPreview:h,setMousePosition:_,registerImage:C}),function(){var I=Ut({},(FC(a.value),a.value));return S(Re,null,[r.default&&r.default(),S(jC,M(M({},I),{},{"ria-hidden":!v.value,visible:v.value,prefixCls:e.previewPrefixCls,onClose:E,mousePosition:f.value,src:y.value.get(o.value),icons:e.icons,getContainer:l.value}),null)])}}});const zC=P8;var ba={x:0,y:0},A8=M(M({},Iu()),{},{src:String,alt:String,rootClassName:String,icons:{type:Object,default:function(){return{}}}}),I8=he({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:A8,emits:["close","afterClose"],setup:function(e,n){var r=n.emit,a=n.attrs,i=ct(e.icons),o=i.rotateLeft,s=i.rotateRight,l=i.zoomIn,u=i.zoomOut,c=i.close,d=i.left,v=i.right,h=z(1),f=z(0),p=E8(ba),m=ke(p,2),g=m[0],y=m[1],b=function(){return r("close")},w=z(),_=ct({originX:0,originY:0,deltaX:0,deltaY:0}),C=z(!1),E=Jv.inject(),I=E.previewUrls,T=E.current,N=E.isPreviewGroup,R=E.setCurrent,F=V(function(){return I.value.size}),L=V(function(){return Array.from(I.value.keys())}),j=V(function(){return L.value.indexOf(T.value)}),D=V(function(){return N.value?I.value.get(T.value):e.src}),P=V(function(){return N.value&&F.value>1}),O=z({wheelDirection:0}),k=function(){h.value=1,f.value=0,y(ba),r("afterClose")},$=function(){h.value++,y(ba)},G=function(){h.value>1&&h.value--,y(ba)},J=function(){f.value+=90},Z=function(){f.value-=90},X=function(U){U.preventDefault(),U.stopPropagation(),j.value>0&&R(L.value[j.value-1])},Y=function(U){U.preventDefault(),U.stopPropagation(),j.value0&&R(L.value[j.value-1]):U.keyCode===Ae.RIGHT&&j.value0?G():K<0&&$()})}),vn(function(){W()}),function(){var K=e.visible,U=e.prefixCls,se=e.rootClassName;return S(BC,M(M({},a),{},{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:U,onClose:b,afterClose:k,visible:K,wrapClassName:ne,rootClassName:se,getContainer:e.getContainer}),{default:function(){return[S("ul",{class:"".concat(e.prefixCls,"-operations")},[_e.map(function(re){var Q=re.icon,H=re.onClick,q=re.type,ue=re.disabled;return S("li",{class:Ce(le,te({},"".concat(e.prefixCls,"-operations-operation-disabled"),ue&&(ue==null?void 0:ue.value))),onClick:H,key:q},[rr(Q,{class:ge})])})]),S("div",{class:"".concat(e.prefixCls,"-img-wrapper"),style:{transform:"translate3d(".concat(g.x,"px, ").concat(g.y,"px, 0)")}},[S("img",{onMousedown:ye,onDblclick:A,ref:w,class:"".concat(e.prefixCls,"-img"),src:D.value,alt:e.alt,style:{transform:"scale3d(".concat(h.value,", ").concat(h.value,", 1) rotate(").concat(f.value,"deg)")}},null)]),P.value&&S("div",{class:Ce("".concat(e.prefixCls,"-switch-left"),te({},"".concat(e.prefixCls,"-switch-left-disabled"),j.value<=0)),onClick:X},[d]),P.value&&S("div",{class:Ce("".concat(e.prefixCls,"-switch-right"),te({},"".concat(e.prefixCls,"-switch-right-disabled"),j.value>=F.value-1)),onClick:Y},[v])]}})}}});const jC=I8;var k8=["icons","maskClassName"],WC=function(){return{src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:ee.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}},HC=function(e,n){var r=M({},e);return Object.keys(n).forEach(function(a){e[a]===void 0&&(r[a]=n[a])}),r},M8=0,VC=he({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:WC(),emits:["click","error"],setup:function(e,n){var r=n.attrs,a=n.slots,i=n.emit,o=V(function(){return e.prefixCls}),s=V(function(){return"".concat(o.value,"-preview")}),l=V(function(){var J={visible:void 0,onVisibleChange:function(){},getContainer:void 0};return Qe(e.preview)==="object"?HC(e.preview,J):J}),u=V(function(){var J;return(J=l.value.src)!==null&&J!==void 0?J:e.src}),c=V(function(){return e.placeholder&&e.placeholder!==!0||a.placeholder}),d=V(function(){return l.value.visible}),v=V(function(){return l.value.getContainer}),h=V(function(){return d.value!==void 0}),f=function(Z,X){var Y,ne;(Y=(ne=l.value).onVisibleChange)===null||Y===void 0||Y.call(ne,Z,X)},p=Ai(!!d.value,{value:d,onChange:f}),m=ke(p,2),g=m[0],y=m[1];pe(g,function(J,Z){f(J,Z)});var b=z(c.value?"loading":"normal");pe(function(){return e.src},function(){b.value=c.value?"loading":"normal"});var w=z(null),_=V(function(){return b.value==="error"}),C=Jv.inject(),E=C.isPreviewGroup,I=C.setCurrent,T=C.setShowPreview,N=C.setMousePosition,R=C.registerImage,F=z(M8++),L=V(function(){return e.preview&&!_.value}),j=function(){b.value="normal"},D=function(Z){b.value="error",i("error",Z)},P=function(Z){if(!h.value){var X=LC(Z.target),Y=X.left,ne=X.top;E.value?(I(F.value),N({x:Y,y:ne})):w.value={x:Y,y:ne}}E.value?T(!0):y(!0),i("click",Z)},O=function(){y(!1),h.value||(w.value=null)},k=z(null);pe(function(){return k},function(){b.value==="loading"&&k.value.complete&&(k.value.naturalWidth||k.value.naturalHeight)&&j()});var $=function(){};Ve(function(){pe([u,L],function(){if($(),!E.value)return function(){};$=R(F.value,u.value,L.value),L.value||$()},{flush:"post",immediate:!0})}),vn(function(){$()});var G=function(Z){return Bf(Z)?Z+"px":Z};return function(){var J=e.prefixCls,Z=e.wrapperClassName,X=e.fallback,Y=e.src,ne=e.placeholder,le=e.wrapperStyle,ge=e.rootClassName,_e=r.width,me=r.height,ye=r.crossorigin,Se=r.decoding,B=r.alt,x=r.sizes,A=r.srcset,W=r.usemap,K=r.class,U=r.style,se=l.value,ie=se.icons,re=se.maskClassName,Q=bt(se,k8),H=Ce(J,Z,ge,te({},"".concat(J,"-error"),_.value)),q=_.value&&X?X:u.value,ue={crossorigin:ye,decoding:Se,alt:B,sizes:x,srcset:A,usemap:W,class:Ce("".concat(J,"-img"),te({},"".concat(J,"-img-placeholder"),ne===!0),K),style:M({height:me},U)};return S(Re,null,[S("div",{class:H,onClick:L.value?P:function(ae){i("click",ae)},style:M({width:G(_e),height:G(me)},le)},[S("img",M(M(M({},ue),_.value&&X?{src:X}:{onLoad:j,onError:D,src:Y}),{},{ref:k}),null),b.value==="loading"&&S("div",{"aria-hidden":"true",class:"".concat(J,"-placeholder")},[ne||a.placeholder&&a.placeholder()]),a.previewMask&&L.value&&S("div",{class:["".concat(J,"-mask"),re]},[a.previewMask()])]),!E.value&&L.value&&S(jC,M(M({},Q),{},{"aria-hidden":!g.value,visible:g.value,prefixCls:s.value,onClose:O,mousePosition:w.value,src:q,alt:B,getContainer:v.value,icons:ie,rootClassName:ge}),null)])}}});VC.PreviewGroup=zC;const N8=VC;var R8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const $8=R8;function $y(t){for(var e=1;e=0||c.relatedTarget.className.indexOf("".concat(h,"-item"))>=0)){n.value="";return}else v(r.value),n.value=""},s=function(c){n.value!==""&&(c.keyCode===Ca.ENTER||c.type==="click")&&(e.quickGo(r.value),n.value="")},l=V(function(){var u=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===u.toString()})?c:c.concat([u.toString()]).sort(function(d,v){var h=isNaN(Number(d))?0:Number(d),f=isNaN(Number(v))?0:Number(v);return h-f})});return function(){var u=e.rootPrefixCls,c=e.locale,d=e.changeSize,v=e.quickGo,h=e.goButton,f=e.selectComponentClass,p=e.selectPrefixCls,m=e.pageSize,g=e.disabled,y="".concat(u,"-options"),b=null,w=null,_=null;if(!d&&!v)return null;if(d&&f){var C=e.buildOptionText||a,E=l.value.map(function(I,T){return S(f.Option,{key:T,value:I},{default:function(){return[C({value:I})]}})});b=S(f,{disabled:g,prefixCls:p,showSearch:!1,class:"".concat(y,"-size-changer"),optionLabelProp:"children",value:(m||l.value[0]).toString(),onChange:function(T){return d(Number(T))},getPopupContainer:function(T){return T.parentNode}},{default:function(){return[E]}})}return v&&(h&&(_=typeof h=="boolean"?S("button",{type:"button",onClick:s,onKeyup:s,disabled:g,class:"".concat(y,"-quick-jumper-button")},[c.jump_to_confirm]):S("span",{onClick:s,onKeyup:s},[h])),w=S("div",{class:"".concat(y,"-quick-jumper")},[c.jump_to,dn(S("input",{disabled:g,type:"text",value:n.value,onInput:i,onChange:i,onKeyup:s,onBlur:o},null),[[vs]]),c.page,_])),S("li",{class:"".concat(y)},[b,w])}}}),v3={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var p3=["class"];function h3(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function g3(t){var e=t.originalElement;return e}function Ar(t,e,n){var r=typeof t>"u"?e.statePageSize:t;return Math.floor((n.total-1)/r)+1}const m3=he({compatConfig:{MODE:3},name:"Pagination",mixins:[b_],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:ee.string.def("rc-pagination"),selectPrefixCls:ee.string.def("rc-select"),current:Number,defaultCurrent:ee.number.def(1),total:ee.number.def(0),pageSize:Number,defaultPageSize:ee.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:ee.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:ee.oneOfType([ee.looseBool,ee.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:ee.arrayOf(ee.oneOfType([ee.number,ee.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:ee.object.def(v3),itemRender:ee.func.def(g3),prevIcon:ee.any,nextIcon:ee.any,jumpPrevIcon:ee.any,jumpNextIcon:ee.any,totalBoundaryShowSizeChanger:ee.number.def(50)},data:function(){var e=this.$props,n=Nf([this.current,this.defaultCurrent]),r=Nf([this.pageSize,this.defaultPageSize]);return n=Math.min(n,Ar(r,void 0,e)),{stateCurrent:n,stateCurrentInputValue:n,statePageSize:r}},watch:{current:function(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize:function(e){var n={},r=this.stateCurrent,a=Ar(e,this.$data,this.$props);r=r>a?a:r,oi(this,"current")||(n.stateCurrent=r,n.stateCurrentInputValue=r),n.statePageSize=e,this.setState(n)},stateCurrent:function(e,n){var r=this;this.$nextTick(function(){if(r.$refs.paginationNode){var a=r.$refs.paginationNode.querySelector(".".concat(r.prefixCls,"-item-").concat(n));a&&document.activeElement===a&&a.blur()}})},total:function(){var e={},n=Ar(this.pageSize,this.$data,this.$props);if(oi(this,"current")){var r=Math.min(this.current,n);e.stateCurrent=r,e.stateCurrentInputValue=r}else{var a=this.stateCurrent;a===0&&n>0?a=1:a=Math.min(this.stateCurrent,n),e.stateCurrent=a}this.setState(e)}},methods:{getJumpPrevPage:function(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage:function(){return Math.min(Ar(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon:function(e,n){var r=this.$props.prefixCls,a=J1(this,e,this.$props)||S("button",{type:"button","aria-label":n,class:"".concat(r,"-item-link")},null);return a},getValidValue:function(e){var n=e.target.value,r=Ar(void 0,this.$data,this.$props),a=this.$data.stateCurrentInputValue,i;return n===""?i=n:isNaN(Number(n))?i=a:n>=r?i=r:i=Number(n),i},isValid:function(e){return h3(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper:function(){var e=this.$props,n=e.showQuickJumper,r=e.pageSize,a=e.total;return a<=r?!1:n},handleKeyDown:function(e){(e.keyCode===Ca.ARROW_UP||e.keyCode===Ca.ARROW_DOWN)&&e.preventDefault()},handleKeyUp:function(e){if(!(e.isComposing||e.target.composing)){var n=this.getValidValue(e),r=this.stateCurrentInputValue;n!==r&&this.setState({stateCurrentInputValue:n}),e.keyCode===Ca.ENTER?this.handleChange(n):e.keyCode===Ca.ARROW_UP?this.handleChange(n-1):e.keyCode===Ca.ARROW_DOWN&&this.handleChange(n+1)}},changePageSize:function(e){var n=this.stateCurrent,r=n,a=Ar(e,this.$data,this.$props);n=n>a?a:n,a===0&&(n=this.stateCurrent),typeof e=="number"&&(oi(this,"pageSize")||this.setState({statePageSize:e}),oi(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n})),this.__emit("update:pageSize",e),n!==r&&this.__emit("update:current",n),this.__emit("showSizeChange",n,e),this.__emit("change",n,e)},handleChange:function(e){var n=this.$props.disabled,r=e;if(this.isValid(r)&&!n){var a=Ar(void 0,this.$data,this.$props);return r>a?r=a:r<1&&(r=1),oi(this,"current")||this.setState({stateCurrent:r,stateCurrentInputValue:r}),this.__emit("update:current",r),this.__emit("change",r,this.statePageSize),r}return this.stateCurrent},prev:function(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next:function(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev:function(){this.handleChange(this.getJumpPrevPage())},jumpNext:function(){this.handleChange(this.getJumpNextPage())},hasPrev:function(){return this.stateCurrent>1},hasNext:function(){return this.stateCurrenta},runIfEnter:function(e,n){if(e.key==="Enter"||e.charCode===13){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i0?w-1:0,$=w+1=O*2&&w!==1+2&&(N[0]=S(wa,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ge,page:ge,class:"".concat(r,"-item-after-jump-prev"),active:!1,showTitle:this.showTitle,itemRender:h},null),N.unshift(R)),T-w>=O*2&&w!==T-2&&(N[N.length-1]=S(wa,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:_e,page:_e,class:"".concat(r,"-item-before-jump-next"),active:!1,showTitle:this.showTitle,itemRender:h},null),N.push(F)),ge!==1&&N.unshift(L),_e!==T&&N.push(j)}var Se=null;d&&(Se=S("li",{class:"".concat(r,"-total-text")},[d(o,[o===0?0:(w-1)*_+1,w*_>o?o:w*_])]));var B=!G||!T,x=!J||!T,A=this.buildOptionText||this.$slots.buildOptionText;return S("ul",M(M({unselectable:"on",ref:"paginationNode"},I),{},{class:Ce((e={},te(e,"".concat(r),!0),te(e,"".concat(r,"-disabled"),a),e),E)}),[Se,S("li",{title:c?s.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:Ce("".concat(r,"-prev"),te({},"".concat(r,"-disabled"),B)),"aria-disabled":B},[this.renderPrev(k)]),N,S("li",{title:c?s.next_page:null,onClick:this.next,tabindex:x?null:0,onKeypress:this.runIfEnterNext,class:Ce("".concat(r,"-next"),te({},"".concat(r,"-disabled"),x)),"aria-disabled":x},[this.renderNext($)]),S(d3,{disabled:a,locale:s,rootPrefixCls:r,selectComponentClass:g,selectPrefixCls:y,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:w,pageSize:_,pageSizeOptions:b,buildOptionText:A||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:P},null)])}});var y3=["size","itemRender","buildOptionText","selectComponentClass","responsive"],b3=function(){return{total:Number,defaultCurrent:Number,disabled:{type:Boolean,default:void 0},current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:{type:Boolean,default:void 0},showSizeChanger:{type:Boolean,default:void 0},pageSizeOptions:Array,buildOptionText:Function,showQuickJumper:{type:[Boolean,Object],default:void 0},showTotal:Function,size:String,simple:{type:Boolean,default:void 0},locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Function,role:String,responsive:Boolean,showLessItems:{type:Boolean,default:void 0},onChange:Function,onShowSizeChange:Function,"onUpdate:current":Function,"onUpdate:pageSize":Function}};const w3=he({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:b3(),setup:function(e,n){var r=n.slots,a=n.attrs,i=lt("pagination",e),o=i.prefixCls,s=i.configProvider,l=i.direction,u=V(function(){return s.getPrefixCls("select",e.selectPrefixCls)}),c=uD(),d=Gd("Pagination",nw,sn(e,"locale")),v=ke(d,1),h=v[0],f=function(m){var g=S("span",{class:"".concat(m,"-item-ellipsis")},[_n("•••")]),y=S("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[S(yC,null,null)]),b=S("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[S(U_,null,null)]),w=S("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[S("div",{class:"".concat(m,"-item-container")},[S(o3,{class:"".concat(m,"-item-link-icon")},null),g])]),_=S("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[S("div",{class:"".concat(m,"-item-container")},[S(c3,{class:"".concat(m,"-item-link-icon")},null),g])]);if(l.value==="rtl"){var C=[b,y];y=C[0],b=C[1];var E=[_,w];w=E[0],_=E[1]}return{prevIcon:y,nextIcon:b,jumpPrevIcon:w,jumpNextIcon:_}};return function(){var p,m=e.size,g=e.itemRender,y=g===void 0?r.itemRender:g,b=e.buildOptionText,w=b===void 0?r.buildOptionText:b,_=e.selectComponentClass,C=e.responsive,E=bt(e,y3),I=m==="small"||!!((p=c.value)!==null&&p!==void 0&&p.xs&&!m&&C),T=M(M(M(M({},E),f(o.value)),{},{prefixCls:o.value,selectPrefixCls:u.value,selectComponentClass:_||(I?f3:Dl),locale:h.value,buildOptionText:w},a),{},{class:Ce(te({mini:I},"".concat(o.value,"-rtl"),l.value==="rtl"),a.class),itemRender:y});return S(m3,T,null)}}}),_3=Bi(w3);var C3=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],zf=null,S3=function(e){zf={x:e.pageX,y:e.pageY},setTimeout(function(){return zf=null},100)};mC()&&jn(document.documentElement,"click",S3,!0);var x3=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:ee.any,closable:{type:Boolean,default:void 0},closeIcon:ee.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:ee.any,okText:ee.any,okType:String,cancelText:ee.any,icon:ee.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},ci=[];const xt=he({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:pn(x3(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(e,n){var r=n.emit,a=n.slots,i=n.attrs,o=Gd("Modal"),s=ke(o,1),l=s[0],u=lt("modal",e),c=u.prefixCls,d=u.rootPrefixCls,v=u.direction,h=u.getPopupContainer,f=function(y){r("update:visible",!1),r("cancel",y),r("change",!1)},p=function(y){r("ok",y)},m=function(){var y,b,w=e.okText,_=w===void 0?(y=a.okText)===null||y===void 0?void 0:y.call(a):w,C=e.okType,E=e.cancelText,I=E===void 0?(b=a.cancelText)===null||b===void 0?void 0:b.call(a):E,T=e.confirmLoading;return S(Re,null,[S(Xt,M({onClick:f},e.cancelButtonProps),{default:function(){return[I||l.value.cancelText]}}),S(Xt,M(M({},j_(C)),{},{loading:T,onClick:p},e.okButtonProps),{default:function(){return[_||l.value.okText]}})])};return function(){var g,y;e.prefixCls;var b=e.visible,w=e.wrapClassName,_=e.centered,C=e.getContainer,E=e.closeIcon,I=E===void 0?(g=a.closeIcon)===null||g===void 0?void 0:g.call(a):E,T=e.focusTriggerAfterClose,N=T===void 0?!0:T,R=bt(e,C3),F=Ce(w,(y={},te(y,"".concat(c.value,"-centered"),!!_),te(y,"".concat(c.value,"-wrap-rtl"),v.value==="rtl"),y));return S(BC,M(M(M({},R),i),{},{getContainer:C||h.value,prefixCls:c.value,wrapClassName:F,visible:b,mousePosition:zf,onClose:f,focusTriggerAfterClose:N,transitionName:Da(d.value,"zoom",e.transitionName),maskTransitionName:Da(d.value,"fade",e.maskTransitionName)}),M(M({},a),{},{footer:a.footer||m,closeIcon:function(){return S("span",{class:"".concat(c.value,"-close-x")},[I||S(zr,{class:"".concat(c.value,"-close-icon")},null)])}}))}}});var T3=function(){var e=z(!1);return st(function(){e.value=!0}),e};const E3=T3;var O3={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Wy(t){return!!(t&&t.then)}const Hy=he({compatConfig:{MODE:3},name:"ActionButton",props:O3,setup:function(e,n){var r=n.slots,a=z(!1),i=z(),o=z(!1),s,l=E3();Ve(function(){e.autofocus&&(s=setTimeout(function(){var d;return(d=i.value.$el)===null||d===void 0?void 0:d.focus()}))}),st(function(){clearTimeout(s)});var u=function(v){var h=e.close;Wy(v)&&(o.value=!0,v.then(function(){l.value||(o.value=!1),h.apply(void 0,arguments),a.value=!1},function(f){console.error(f),l.value||(o.value=!1),a.value=!1}))},c=function(v){var h=e.actionFn,f=e.close,p=f===void 0?function(){}:f;if(!a.value){if(a.value=!0,!h){p();return}var m;if(e.emitEvent){if(m=h(v),e.quitOnNullishReturnValue&&!Wy(m)){a.value=!1,p(v);return}}else if(h.length)m=h(p),a.value=!1;else if(m=h(),!m){p();return}u(m)}};return function(){var d=e.type,v=e.prefixCls,h=e.buttonProps;return S(Xt,M(M(M({},j_(d)),{},{onClick:c,loading:o.value,prefixCls:v},h),{},{ref:i}),r)}}});function ao(t){return typeof t=="function"?t():t}const P3=he({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(e,n){var r=n.attrs,a=Gd("Modal"),i=ke(a,1),o=i[0];return function(){var s=e.icon,l=e.onCancel,u=e.onOk,c=e.close,d=e.closable,v=d===void 0?!1:d,h=e.zIndex,f=e.afterClose,p=e.visible,m=e.keyboard,g=e.centered,y=e.getContainer,b=e.maskStyle,w=e.okButtonProps,_=e.cancelButtonProps,C=e.okCancel,E=C===void 0?!0:C,I=e.width,T=I===void 0?416:I,N=e.mask,R=N===void 0?!0:N,F=e.maskClosable,L=F===void 0?!1:F,j=e.type,D=e.title,P=e.content,O=e.direction,k=e.closeIcon,$=e.modalRender,G=e.focusTriggerAfterClose,J=e.rootPrefixCls,Z=e.bodyStyle,X=e.wrapClassName,Y=e.okType||"primary",ne=e.prefixCls||"ant-modal",le="".concat(ne,"-confirm"),ge=r.style||{},_e=ao(e.okText)||(E?o.value.okText:o.value.justOkText),me=ao(e.cancelText)||o.value.cancelText,ye=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",Se=Ce(le,"".concat(le,"-").concat(j),"".concat(ne,"-").concat(j),te({},"".concat(le,"-rtl"),O==="rtl"),r.class),B=E&&S(Hy,{actionFn:l,close:c,autofocus:ye==="cancel",buttonProps:_,prefixCls:"".concat(J,"-btn")},{default:function(){return[me]}});return S(xt,{prefixCls:ne,class:Se,wrapClassName:Ce(te({},"".concat(le,"-centered"),!!g),X),onCancel:function(A){return c({triggerCancel:!0},A)},visible:p,title:"",footer:"",transitionName:Da(J,"zoom",e.transitionName),maskTransitionName:Da(J,"fade",e.maskTransitionName),mask:R,maskClosable:L,maskStyle:b,style:ge,bodyStyle:Z,width:T,zIndex:h,afterClose:f,keyboard:m,centered:g,getContainer:y,closable:v,closeIcon:k,modalRender:$,focusTriggerAfterClose:G},{default:function(){return[S("div",{class:"".concat(le,"-body-wrapper")},[S("div",{class:"".concat(le,"-body")},[ao(s),D===void 0?null:S("span",{class:"".concat(le,"-title")},[ao(D)]),S("div",{class:"".concat(le,"-content")},[ao(P)])]),S("div",{class:"".concat(le,"-btns")},[B,S(Hy,{type:Y,actionFn:u,close:c,autofocus:ye==="ok",buttonProps:w,prefixCls:"".concat(J,"-btn")},{default:function(){return[_e]}})])])]}})}}});var A3=function(e){var n=document.createDocumentFragment(),r=M(M({},Lt(e,["parentContext","appContext"])),{},{close:o,visible:!0}),a=null;function i(){a&&(xl(null,n),a.component.update(),a=null);for(var c=arguments.length,d=new Array(c),v=0;ve=>{const n=t5.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xr=t=>(t=t.toLowerCase(),e=>Nu(e)===t),Ru=t=>e=>typeof e===t,{isArray:Hi}=Array,Qo=Ru("undefined");function n5(t){return t!==null&&!Qo(t)&&t.constructor!==null&&!Qo(t.constructor)&&Kn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const eS=xr("ArrayBuffer");function r5(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&eS(t.buffer),e}const a5=Ru("string"),Kn=Ru("function"),tS=Ru("number"),$u=t=>t!==null&&typeof t=="object",i5=t=>t===!0||t===!1,fl=t=>{if(Nu(t)!=="object")return!1;const e=op(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},o5=xr("Date"),s5=xr("File"),l5=xr("Blob"),u5=xr("FileList"),c5=t=>$u(t)&&Kn(t.pipe),f5=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Kn(t.append)&&((e=Nu(t))==="formdata"||e==="object"&&Kn(t.toString)&&t.toString()==="[object FormData]"))},d5=xr("URLSearchParams"),v5=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gs(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),Hi(t))for(r=0,a=t.length;r0;)if(a=n[r],e===a.toLowerCase())return a;return null}const rS=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),aS=t=>!Qo(t)&&t!==rS;function jf(){const{caseless:t}=aS(this)&&this||{},e={},n=(r,a)=>{const i=t&&nS(e,a)||a;fl(e[i])&&fl(r)?e[i]=jf(e[i],r):fl(r)?e[i]=jf({},r):Hi(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r(gs(e,(a,i)=>{n&&Kn(a)?t[i]=QC(a,n):t[i]=a},{allOwnKeys:r}),t),h5=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),g5=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},m5=(t,e,n,r)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&op(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},y5=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},b5=t=>{if(!t)return null;if(Hi(t))return t;let e=t.length;if(!tS(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},w5=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&op(Uint8Array)),_5=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},C5=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},S5=xr("HTMLFormElement"),x5=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Uy=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),T5=xr("RegExp"),iS=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};gs(n,(a,i)=>{e(a,i,t)!==!1&&(r[i]=a)}),Object.defineProperties(t,r)},E5=t=>{iS(t,(e,n)=>{if(Kn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Kn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},O5=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Hi(t)?r(t):r(String(t).split(e)),n},P5=()=>{},A5=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Dc="abcdefghijklmnopqrstuvwxyz",Ky="0123456789",oS={DIGIT:Ky,ALPHA:Dc,ALPHA_DIGIT:Dc+Dc.toUpperCase()+Ky},I5=(t=16,e=oS.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function k5(t){return!!(t&&Kn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const M5=t=>{const e=new Array(10),n=(r,a)=>{if($u(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=Hi(r)?[]:{};return gs(r,(o,s)=>{const l=n(o,a+1);!Qo(l)&&(i[s]=l)}),e[a]=void 0,i}}return r};return n(t,0)},N5=xr("AsyncFunction"),R5=t=>t&&($u(t)||Kn(t))&&Kn(t.then)&&Kn(t.catch),de={isArray:Hi,isArrayBuffer:eS,isBuffer:n5,isFormData:f5,isArrayBufferView:r5,isString:a5,isNumber:tS,isBoolean:i5,isObject:$u,isPlainObject:fl,isUndefined:Qo,isDate:o5,isFile:s5,isBlob:l5,isRegExp:T5,isFunction:Kn,isStream:c5,isURLSearchParams:d5,isTypedArray:w5,isFileList:u5,forEach:gs,merge:jf,extend:p5,trim:v5,stripBOM:h5,inherits:g5,toFlatObject:m5,kindOf:Nu,kindOfTest:xr,endsWith:y5,toArray:b5,forEachEntry:_5,matchAll:C5,isHTMLForm:S5,hasOwnProperty:Uy,hasOwnProp:Uy,reduceDescriptors:iS,freezeMethods:E5,toObjectSet:O5,toCamelCase:x5,noop:P5,toFiniteNumber:A5,findKey:nS,global:rS,isContextDefined:aS,ALPHABET:oS,generateString:I5,isSpecCompliantForm:k5,toJSONObject:M5,isAsyncFn:N5,isThenable:R5};function tt(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}de.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sS=tt.prototype,lS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{lS[t]={value:t}});Object.defineProperties(tt,lS);Object.defineProperty(sS,"isAxiosError",{value:!0});tt.from=(t,e,n,r,a,i)=>{const o=Object.create(sS);return de.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),tt.call(o,t.message,e,n,r,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const $5=null;function Wf(t){return de.isPlainObject(t)||de.isArray(t)}function uS(t){return de.endsWith(t,"[]")?t.slice(0,-2):t}function Gy(t,e,n){return t?t.concat(e).map(function(a,i){return a=uS(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function D5(t){return de.isArray(t)&&!t.some(Wf)}const L5=de.toFlatObject(de,{},null,function(e){return/^is[A-Z]/.test(e)});function Du(t,e,n){if(!de.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!de.isUndefined(m[p])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(e);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(de.isDate(f))return f.toISOString();if(!l&&de.isBlob(f))throw new tt("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(f)||de.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,p,m){let g=f;if(f&&!m&&typeof f=="object"){if(de.endsWith(p,"{}"))p=r?p:p.slice(0,-2),f=JSON.stringify(f);else if(de.isArray(f)&&D5(f)||(de.isFileList(f)||de.endsWith(p,"[]"))&&(g=de.toArray(f)))return p=uS(p),g.forEach(function(b,w){!(de.isUndefined(b)||b===null)&&e.append(o===!0?Gy([p],w,i):o===null?p:p+"[]",u(b))}),!1}return Wf(f)?!0:(e.append(Gy(m,p,i),u(f)),!1)}const d=[],v=Object.assign(L5,{defaultVisitor:c,convertValue:u,isVisitable:Wf});function h(f,p){if(!de.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(f),de.forEach(f,function(g,y){(!(de.isUndefined(g)||g===null)&&a.call(e,g,de.isString(y)?y.trim():y,p,v))===!0&&h(g,p?p.concat(y):[y])}),d.pop()}}if(!de.isObject(t))throw new TypeError("data must be an object");return h(t),e}function qy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function sp(t,e){this._pairs=[],t&&Du(t,this,e)}const cS=sp.prototype;cS.append=function(e,n){this._pairs.push([e,n])};cS.toString=function(e){const n=e?function(r){return e.call(this,r,qy)}:qy;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function F5(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fS(t,e,n){if(!e)return t;const r=n&&n.encode||F5,a=n&&n.serialize;let i;if(a?i=a(e,n):i=de.isURLSearchParams(e)?e.toString():new sp(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class B5{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){de.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Yy=B5,dS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z5=typeof URLSearchParams<"u"?URLSearchParams:sp,j5=typeof FormData<"u"?FormData:null,W5=typeof Blob<"u"?Blob:null,H5=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),V5=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),gr={isBrowser:!0,classes:{URLSearchParams:z5,FormData:j5,Blob:W5},isStandardBrowserEnv:H5,isStandardBrowserWebWorkerEnv:V5,protocols:["http","https","file","blob","url","data"]};function U5(t,e){return Du(t,new gr.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return gr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function K5(t){return de.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function G5(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&de.isArray(a)?a.length:o,l?(de.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!de.isObject(a[o]))&&(a[o]=[]),e(n,r,a[o],i)&&de.isArray(a[o])&&(a[o]=G5(a[o])),!s)}if(de.isFormData(t)&&de.isFunction(t.entries)){const n={};return de.forEachEntry(t,(r,a)=>{e(K5(r),a,n,0)}),n}return null}const q5={"Content-Type":void 0};function Y5(t,e,n){if(de.isString(t))try{return(e||JSON.parse)(t),de.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Lu={transitional:dS,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=de.isObject(e);if(i&&de.isHTMLForm(e)&&(e=new FormData(e)),de.isFormData(e))return a&&a?JSON.stringify(vS(e)):e;if(de.isArrayBuffer(e)||de.isBuffer(e)||de.isStream(e)||de.isFile(e)||de.isBlob(e))return e;if(de.isArrayBufferView(e))return e.buffer;if(de.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return U5(e,this.formSerializer).toString();if((s=de.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Du(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),Y5(e)):e}],transformResponse:[function(e){const n=this.transitional||Lu.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(e&&de.isString(e)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?tt.from(s,tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gr.classes.FormData,Blob:gr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};de.forEach(["delete","get","head"],function(e){Lu.headers[e]={}});de.forEach(["post","put","patch"],function(e){Lu.headers[e]=de.merge(q5)});const lp=Lu,J5=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X5=t=>{const e={};let n,r,a;return t&&t.split(` `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||e[n]&&J5[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Jy=Symbol("internals");function io(t){return t&&String(t).trim().toLowerCase()}function dl(t){return t===!1||t==null?t:de.isArray(t)?t.map(dl):String(t)}function Z5(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Q5=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Lc(t,e,n,r,a){if(de.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!de.isString(e)){if(de.isString(r))return e.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(e)}}function eB(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function tB(t,e){const n=de.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(a,i,o){return this[r].call(this,e,a,i,o)},configurable:!0})})}let Fu=class{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function i(s,l,u){const c=io(l);if(!c)throw new Error("header name must be a non-empty string");const d=de.findKey(a,c);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=dl(s))}const o=(s,l)=>de.forEach(s,(u,c)=>i(u,c,l));return de.isPlainObject(e)||e instanceof this.constructor?o(e,n):de.isString(e)&&(e=e.trim())&&!Q5(e)?o(X5(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=io(e),e){const r=de.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return Z5(a);if(de.isFunction(n))return n.call(this,a,r);if(de.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=io(e),e){const r=de.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Lc(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function i(o){if(o=io(o),o){const s=de.findKey(r,o);s&&(!n||Lc(r,r[s],s,n))&&(delete r[s],a=!0)}}return de.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!e||Lc(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const n=this,r={};return de.forEach(this,(a,i)=>{const o=de.findKey(r,i);if(o){n[o]=dl(a),delete n[i];return}const s=e?eB(i):String(i).trim();s!==i&&delete n[i],n[s]=dl(a),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return de.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[Jy]=this[Jy]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=io(o);r[s]||(tB(a,o),r[s]=!0)}return de.isArray(e)?e.forEach(i):i(e),this}};Fu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.freezeMethods(Fu.prototype);de.freezeMethods(Fu);const Lr=Fu;function Fc(t,e){const n=this||lp,r=e||n,a=Lr.from(r.headers);let i=r.data;return de.forEach(t,function(s){i=s.call(n,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function pS(t){return!!(t&&t.__CANCEL__)}function ms(t,e,n){tt.call(this,t??"canceled",tt.ERR_CANCELED,e,n),this.name="CanceledError"}de.inherits(ms,tt,{__CANCEL__:!0});function nB(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const rB=gr.isStandardBrowserEnv?function(){return{write:function(n,r,a,i,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),de.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),de.isString(i)&&l.push("path="+i),de.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function aB(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function iB(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function hS(t,e){return t&&!aB(e)?iB(t,e):e}const oB=gr.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=de.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function sB(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function lB(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,v=0;for(;d!==a;)v+=n[d++],d=d%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};c[e?"download":"upload"]=!0,t(c)}}const uB=typeof XMLHttpRequest<"u",cB=uB&&function(t){return new Promise(function(n,r){let a=t.data;const i=Lr.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}de.isFormData(a)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+f))}const c=hS(t.baseURL,t.url);u.open(t.method.toUpperCase(),fS(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const h=Lr.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};nB(function(g){n(g),l()},function(g){r(g),l()},p),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new tt("Request aborted",tt.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new tt("Network Error",tt.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let f=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||dS;t.timeoutErrorMessage&&(f=t.timeoutErrorMessage),r(new tt(f,p.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,t,u)),u=null},gr.isStandardBrowserEnv){const h=(t.withCredentials||oB(c))&&t.xsrfCookieName&&rB.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&de.forEach(i.toJSON(),function(f,p){u.setRequestHeader(p,f)}),de.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",Xy(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Xy(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{u&&(r(!h||h.type?new ms(null,t,u):h),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const v=sB(c);if(v&&gr.protocols.indexOf(v)===-1){r(new tt("Unsupported protocol "+v+":",tt.ERR_BAD_REQUEST,t));return}u.send(a||null)})},vl={http:$5,xhr:cB};de.forEach(vl,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const fB={getAdapter:t=>{t=de.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let a=0;at instanceof Lr?t.toJSON():t;function Mi(t,e){e=e||{};const n={};function r(u,c,d){return de.isPlainObject(u)&&de.isPlainObject(c)?de.merge.call({caseless:d},u,c):de.isPlainObject(c)?de.merge({},c):de.isArray(c)?c.slice():c}function a(u,c,d){if(de.isUndefined(c)){if(!de.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!de.isUndefined(c))return r(void 0,c)}function o(u,c){if(de.isUndefined(c)){if(!de.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in e)return r(u,c);if(d in t)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(Qy(u),Qy(c),!0)};return de.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||a,v=d(t[c],e[c],c);de.isUndefined(v)&&d!==s||(n[c]=v)}),n}const gS="1.4.0",up={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{up[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const eb={};up.transitional=function(e,n,r){function a(i,o){return"[Axios v"+gS+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new tt(a(o," has been removed"+(n?" in "+n:"")),tt.ERR_DEPRECATED);return n&&!eb[o]&&(eb[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,s):!0}};function dB(t,e,n){if(typeof t!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const i=r[a],o=e[i];if(o){const s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new tt("option "+i+" must be "+l,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const Hf={assertOptions:dB,validators:up},Gr=Hf.validators;let zl=class{constructor(e){this.defaults=e,this.interceptors={request:new Yy,response:new Yy}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Mi(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Hf.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Hf.assertOptions(a,{encode:Gr.function,serialize:Gr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&de.merge(i.common,i[n.method]),o&&de.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=Lr.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,d=0,v;if(!l){const f=[Zy.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),v=f.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,s){r.reason||(r.reason=new ms(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new mS(function(a){e=a}),cancel:e}}};const pB=vB;function hB(t){return function(n){return t.apply(null,n)}}function gB(t){return de.isObject(t)&&t.isAxiosError===!0}const Vf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vf).forEach(([t,e])=>{Vf[e]=t});const mB=Vf;function yS(t){const e=new pl(t),n=QC(pl.prototype.request,e);return de.extend(n,pl.prototype,e,{allOwnKeys:!0}),de.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return yS(Mi(t,a))},n}const Bt=yS(lp);Bt.Axios=pl;Bt.CanceledError=ms;Bt.CancelToken=pB;Bt.isCancel=pS;Bt.VERSION=gS;Bt.toFormData=Du;Bt.AxiosError=tt;Bt.Cancel=Bt.CanceledError;Bt.all=function(e){return Promise.all(e)};Bt.spread=hB;Bt.isAxiosError=gB;Bt.mergeConfig=Mi;Bt.AxiosHeaders=Lr;Bt.formToJSON=t=>vS(de.isHTMLForm(t)?new FormData(t):t);Bt.HttpStatusCode=mB;Bt.default=Bt;const bS=Bt,{Axios:qG,AxiosError:YG,CanceledError:JG,isCancel:XG,CancelToken:ZG,VERSION:QG,all:eq,Cancel:tq,isAxiosError:yB,spread:nq,toFormData:rq,AxiosHeaders:aq,HttpStatusCode:iq,formToJSON:oq,mergeConfig:sq}=bS;/*! +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[Jy]=this[Jy]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=io(o);r[s]||(tB(a,o),r[s]=!0)}return de.isArray(e)?e.forEach(i):i(e),this}};Fu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.freezeMethods(Fu.prototype);de.freezeMethods(Fu);const Lr=Fu;function Fc(t,e){const n=this||lp,r=e||n,a=Lr.from(r.headers);let i=r.data;return de.forEach(t,function(s){i=s.call(n,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function pS(t){return!!(t&&t.__CANCEL__)}function ms(t,e,n){tt.call(this,t??"canceled",tt.ERR_CANCELED,e,n),this.name="CanceledError"}de.inherits(ms,tt,{__CANCEL__:!0});function nB(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const rB=gr.isStandardBrowserEnv?function(){return{write:function(n,r,a,i,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),de.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),de.isString(i)&&l.push("path="+i),de.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function aB(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function iB(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function hS(t,e){return t&&!aB(e)?iB(t,e):e}const oB=gr.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=de.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function sB(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function lB(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let d=i,v=0;for(;d!==a;)v+=n[d++],d=d%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};c[e?"download":"upload"]=!0,t(c)}}const uB=typeof XMLHttpRequest<"u",cB=uB&&function(t){return new Promise(function(n,r){let a=t.data;const i=Lr.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}de.isFormData(a)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+f))}const c=hS(t.baseURL,t.url);u.open(t.method.toUpperCase(),fS(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const h=Lr.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};nB(function(g){n(g),l()},function(g){r(g),l()},p),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new tt("Request aborted",tt.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new tt("Network Error",tt.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let f=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||dS;t.timeoutErrorMessage&&(f=t.timeoutErrorMessage),r(new tt(f,p.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,t,u)),u=null},gr.isStandardBrowserEnv){const h=(t.withCredentials||oB(c))&&t.xsrfCookieName&&rB.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&de.forEach(i.toJSON(),function(f,p){u.setRequestHeader(p,f)}),de.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",Xy(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Xy(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{u&&(r(!h||h.type?new ms(null,t,u):h),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const v=sB(c);if(v&&gr.protocols.indexOf(v)===-1){r(new tt("Unsupported protocol "+v+":",tt.ERR_BAD_REQUEST,t));return}u.send(a||null)})},vl={http:$5,xhr:cB};de.forEach(vl,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const fB={getAdapter:t=>{t=de.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let a=0;at instanceof Lr?t.toJSON():t;function ki(t,e){e=e||{};const n={};function r(u,c,d){return de.isPlainObject(u)&&de.isPlainObject(c)?de.merge.call({caseless:d},u,c):de.isPlainObject(c)?de.merge({},c):de.isArray(c)?c.slice():c}function a(u,c,d){if(de.isUndefined(c)){if(!de.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!de.isUndefined(c))return r(void 0,c)}function o(u,c){if(de.isUndefined(c)){if(!de.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in e)return r(u,c);if(d in t)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(Qy(u),Qy(c),!0)};return de.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||a,v=d(t[c],e[c],c);de.isUndefined(v)&&d!==s||(n[c]=v)}),n}const gS="1.4.0",up={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{up[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const eb={};up.transitional=function(e,n,r){function a(i,o){return"[Axios v"+gS+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new tt(a(o," has been removed"+(n?" in "+n:"")),tt.ERR_DEPRECATED);return n&&!eb[o]&&(eb[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,s):!0}};function dB(t,e,n){if(typeof t!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const i=r[a],o=e[i];if(o){const s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new tt("option "+i+" must be "+l,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const Hf={assertOptions:dB,validators:up},Gr=Hf.validators;let zl=class{constructor(e){this.defaults=e,this.interceptors={request:new Yy,response:new Yy}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ki(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Hf.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Hf.assertOptions(a,{encode:Gr.function,serialize:Gr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&de.merge(i.common,i[n.method]),o&&de.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=Lr.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,d=0,v;if(!l){const f=[Zy.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),v=f.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,s){r.reason||(r.reason=new ms(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new mS(function(a){e=a}),cancel:e}}};const pB=vB;function hB(t){return function(n){return t.apply(null,n)}}function gB(t){return de.isObject(t)&&t.isAxiosError===!0}const Vf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vf).forEach(([t,e])=>{Vf[e]=t});const mB=Vf;function yS(t){const e=new pl(t),n=QC(pl.prototype.request,e);return de.extend(n,pl.prototype,e,{allOwnKeys:!0}),de.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return yS(ki(t,a))},n}const Bt=yS(lp);Bt.Axios=pl;Bt.CanceledError=ms;Bt.CancelToken=pB;Bt.isCancel=pS;Bt.VERSION=gS;Bt.toFormData=Du;Bt.AxiosError=tt;Bt.Cancel=Bt.CanceledError;Bt.all=function(e){return Promise.all(e)};Bt.spread=hB;Bt.isAxiosError=gB;Bt.mergeConfig=ki;Bt.AxiosHeaders=Lr;Bt.formToJSON=t=>vS(de.isHTMLForm(t)?new FormData(t):t);Bt.HttpStatusCode=mB;Bt.default=Bt;const bS=Bt,{Axios:qG,AxiosError:YG,CanceledError:JG,isCancel:XG,CancelToken:ZG,VERSION:QG,all:eq,Cancel:tq,isAxiosError:yB,spread:nq,toFormData:rq,AxiosHeaders:aq,HttpStatusCode:iq,formToJSON:oq,mergeConfig:sq}=bS;/*! * shared v9.3.0-beta.19 * (c) 2023 kazuya kawaguchi * Released under the MIT License. @@ -111,8 +111,8 @@ summary tabindex target title type usemap value width wmode wrap`,kR=`onCopy onC * (c) 2023 kazuya kawaguchi * Released under the MIT License. */const rt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function zu(t,e,n={}){const{domain:r,messages:a,args:i}=n,o=t,s=new SyntaxError(String(o));return s.code=t,e&&(s.location=e),s.domain=r,s}function TB(t){throw t}function EB(t,e,n){return{line:t,column:e,offset:n}}function Kf(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const Ir=" ",OB="\r",on=` -`,PB=String.fromCharCode(8232),AB=String.fromCharCode(8233);function IB(t){const e=t;let n=0,r=1,a=1,i=0;const o=E=>e[E]===OB&&e[E+1]===on,s=E=>e[E]===on,l=E=>e[E]===AB,u=E=>e[E]===PB,c=E=>o(E)||s(E)||l(E)||u(E),d=()=>n,v=()=>r,h=()=>a,f=()=>i,p=E=>o(E)||l(E)||u(E)?on:e[E],m=()=>p(n),g=()=>p(n+i);function y(){return i=0,c(n)&&(r++,a=0),o(n)&&n++,n++,a++,e[n]}function b(){return o(n+i)&&i++,i++,e[n+i]}function w(){n=0,r=1,a=1,i=0}function _(E=0){i=E}function C(){const E=n+i;for(;E!==n;)y();i=0}return{index:d,line:v,column:h,peekOffset:f,charAt:p,currentChar:m,currentPeek:g,next:y,peek:b,reset:w,resetPeek:_,skipToPeek:C}}const qr=void 0,rb="'",MB="tokenizer";function kB(t,e={}){const n=e.location!==!1,r=IB(t),a=()=>r.index(),i=()=>EB(r.line(),r.column(),r.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=e;function d(x,A,W,...K){const U=u();if(A.column+=W,A.offset+=W,c){const se=Kf(U.startLoc,A),ie=zu(x,se,{domain:MB,args:K});c(ie)}}function v(x,A,W){x.endLoc=i(),x.currentType=A;const K={type:A};return n&&(K.loc=Kf(x.startLoc,x.endLoc)),W!=null&&(K.value=W),K}const h=x=>v(x,14);function f(x,A){return x.currentChar()===A?(x.next(),A):(d(rt.EXPECTED_TOKEN,i(),0,A),"")}function p(x){let A="";for(;x.currentPeek()===Ir||x.currentPeek()===on;)A+=x.currentPeek(),x.peek();return A}function m(x){const A=p(x);return x.skipToPeek(),A}function g(x){if(x===qr)return!1;const A=x.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A===95}function y(x){if(x===qr)return!1;const A=x.charCodeAt(0);return A>=48&&A<=57}function b(x,A){const{currentType:W}=A;if(W!==2)return!1;p(x);const K=g(x.currentPeek());return x.resetPeek(),K}function w(x,A){const{currentType:W}=A;if(W!==2)return!1;p(x);const K=x.currentPeek()==="-"?x.peek():x.currentPeek(),U=y(K);return x.resetPeek(),U}function _(x,A){const{currentType:W}=A;if(W!==2)return!1;p(x);const K=x.currentPeek()===rb;return x.resetPeek(),K}function C(x,A){const{currentType:W}=A;if(W!==8)return!1;p(x);const K=x.currentPeek()===".";return x.resetPeek(),K}function E(x,A){const{currentType:W}=A;if(W!==9)return!1;p(x);const K=g(x.currentPeek());return x.resetPeek(),K}function I(x,A){const{currentType:W}=A;if(!(W===8||W===12))return!1;p(x);const K=x.currentPeek()===":";return x.resetPeek(),K}function T(x,A){const{currentType:W}=A;if(W!==10)return!1;const K=()=>{const se=x.currentPeek();return se==="{"?g(x.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===Ir||!se?!1:se===on?(x.peek(),K()):g(se)},U=K();return x.resetPeek(),U}function N(x){p(x);const A=x.currentPeek()==="|";return x.resetPeek(),A}function R(x){const A=p(x),W=x.currentPeek()==="%"&&x.peek()==="{";return x.resetPeek(),{isModulo:W,hasSpace:A.length>0}}function F(x,A=!0){const W=(U=!1,se="",ie=!1)=>{const re=x.currentPeek();return re==="{"?se==="%"?!1:U:re==="@"||!re?se==="%"?!0:U:re==="%"?(x.peek(),W(U,"%",!0)):re==="|"?se==="%"||ie?!0:!(se===Ir||se===on):re===Ir?(x.peek(),W(!0,Ir,ie)):re===on?(x.peek(),W(!0,on,ie)):!0},K=W();return A&&x.resetPeek(),K}function L(x,A){const W=x.currentChar();return W===qr?qr:A(W)?(x.next(),W):null}function j(x){return L(x,W=>{const K=W.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===95||K===36})}function D(x){return L(x,W=>{const K=W.charCodeAt(0);return K>=48&&K<=57})}function P(x){return L(x,W=>{const K=W.charCodeAt(0);return K>=48&&K<=57||K>=65&&K<=70||K>=97&&K<=102})}function O(x){let A="",W="";for(;A=D(x);)W+=A;return W}function M(x){m(x);const A=x.currentChar();return A!=="%"&&d(rt.EXPECTED_TOKEN,i(),0,A),x.next(),"%"}function $(x){let A="";for(;;){const W=x.currentChar();if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W==="%")if(F(x))A+=W,x.next();else break;else if(W===Ir||W===on)if(F(x))A+=W,x.next();else{if(N(x))break;A+=W,x.next()}else A+=W,x.next()}return A}function G(x){m(x);let A="",W="";for(;A=j(x);)W+=A;return x.currentChar()===qr&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),W}function J(x){m(x);let A="";return x.currentChar()==="-"?(x.next(),A+=`-${O(x)}`):A+=O(x),x.currentChar()===qr&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),A}function Z(x){m(x),f(x,"'");let A="",W="";const K=se=>se!==rb&&se!==on;for(;A=L(x,K);)A==="\\"?W+=X(x):W+=A;const U=x.currentChar();return U===on||U===qr?(d(rt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),U===on&&(x.next(),f(x,"'")),W):(f(x,"'"),W)}function X(x){const A=x.currentChar();switch(A){case"\\":case"'":return x.next(),`\\${A}`;case"u":return Y(x,A,4);case"U":return Y(x,A,6);default:return d(rt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,A),""}}function Y(x,A,W){f(x,A);let K="";for(let U=0;UU!=="{"&&U!=="}"&&U!==Ir&&U!==on;for(;A=L(x,K);)W+=A;return W}function le(x){let A="",W="";for(;A=j(x);)W+=A;return W}function ge(x){const A=(W=!1,K)=>{const U=x.currentChar();return U==="{"||U==="%"||U==="@"||U==="|"||!U||U===Ir?K:U===on?(K+=U,x.next(),A(W,K)):(K+=U,x.next(),A(!0,K))};return A(!1,"")}function _e(x){m(x);const A=f(x,"|");return m(x),A}function me(x,A){let W=null;switch(x.currentChar()){case"{":return A.braceNest>=1&&d(rt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),x.next(),W=v(A,2,"{"),m(x),A.braceNest++,W;case"}":return A.braceNest>0&&A.currentType===2&&d(rt.EMPTY_PLACEHOLDER,i(),0),x.next(),W=v(A,3,"}"),A.braceNest--,A.braceNest>0&&m(x),A.inLinked&&A.braceNest===0&&(A.inLinked=!1),W;case"@":return A.braceNest>0&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),W=ye(x,A)||h(A),A.braceNest=0,W;default:let U=!0,se=!0,ie=!0;if(N(x))return A.braceNest>0&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),W=v(A,1,_e(x)),A.braceNest=0,A.inLinked=!1,W;if(A.braceNest>0&&(A.currentType===5||A.currentType===6||A.currentType===7))return d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),A.braceNest=0,Se(x,A);if(U=b(x,A))return W=v(A,5,G(x)),m(x),W;if(se=w(x,A))return W=v(A,6,J(x)),m(x),W;if(ie=_(x,A))return W=v(A,7,Z(x)),m(x),W;if(!U&&!se&&!ie)return W=v(A,13,ne(x)),d(rt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,W.value),m(x),W;break}return W}function ye(x,A){const{currentType:W}=A;let K=null;const U=x.currentChar();switch((W===8||W===9||W===12||W===10)&&(U===on||U===Ir)&&d(rt.INVALID_LINKED_FORMAT,i(),0),U){case"@":return x.next(),K=v(A,8,"@"),A.inLinked=!0,K;case".":return m(x),x.next(),v(A,9,".");case":":return m(x),x.next(),v(A,10,":");default:return N(x)?(K=v(A,1,_e(x)),A.braceNest=0,A.inLinked=!1,K):C(x,A)||I(x,A)?(m(x),ye(x,A)):E(x,A)?(m(x),v(A,12,le(x))):T(x,A)?(m(x),U==="{"?me(x,A)||K:v(A,11,ge(x))):(W===8&&d(rt.INVALID_LINKED_FORMAT,i(),0),A.braceNest=0,A.inLinked=!1,Se(x,A))}}function Se(x,A){let W={type:14};if(A.braceNest>0)return me(x,A)||h(A);if(A.inLinked)return ye(x,A)||h(A);switch(x.currentChar()){case"{":return me(x,A)||h(A);case"}":return d(rt.UNBALANCED_CLOSING_BRACE,i(),0),x.next(),v(A,3,"}");case"@":return ye(x,A)||h(A);default:if(N(x))return W=v(A,1,_e(x)),A.braceNest=0,A.inLinked=!1,W;const{isModulo:U,hasSpace:se}=R(x);if(U)return se?v(A,0,$(x)):v(A,4,M(x));if(F(x))return v(A,0,$(x));break}return W}function B(){const{currentType:x,offset:A,startLoc:W,endLoc:K}=l;return l.lastType=x,l.lastOffset=A,l.lastStartLoc=W,l.lastEndLoc=K,l.offset=a(),l.startLoc=i(),r.currentChar()===qr?v(l,14):Se(r,l)}return{nextToken:B,currentOffset:a,currentPosition:i,context:u}}const NB="parser",RB=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $B(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function DB(t={}){const e=t.location!==!1,{onError:n}=t;function r(g,y,b,w,..._){const C=g.currentPosition();if(C.offset+=w,C.column+=w,n){const E=Kf(b,C),I=zu(y,E,{domain:NB,args:_});n(I)}}function a(g,y,b){const w={type:g,start:y,end:y};return e&&(w.loc={start:b,end:b}),w}function i(g,y,b,w){g.end=y,w&&(g.type=w),e&&g.loc&&(g.loc.end=b)}function o(g,y){const b=g.context(),w=a(3,b.offset,b.startLoc);return w.value=y,i(w,g.currentOffset(),g.currentPosition()),w}function s(g,y){const b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(5,w,_);return C.index=parseInt(y,10),g.nextToken(),i(C,g.currentOffset(),g.currentPosition()),C}function l(g,y){const b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(4,w,_);return C.key=y,g.nextToken(),i(C,g.currentOffset(),g.currentPosition()),C}function u(g,y){const b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(9,w,_);return C.value=y.replace(RB,$B),g.nextToken(),i(C,g.currentOffset(),g.currentPosition()),C}function c(g){const y=g.nextToken(),b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(8,w,_);return y.type!==12?(r(g,rt.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),C.value="",i(C,w,_),{nextConsumeToken:y,node:C}):(y.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ur(y)),C.value=y.value||"",i(C,g.currentOffset(),g.currentPosition()),{node:C})}function d(g,y){const b=g.context(),w=a(7,b.offset,b.startLoc);return w.value=y,i(w,g.currentOffset(),g.currentPosition()),w}function v(g){const y=g.context(),b=a(6,y.offset,y.startLoc);let w=g.nextToken();if(w.type===9){const _=c(g);b.modifier=_.node,w=_.nextConsumeToken||g.nextToken()}switch(w.type!==10&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),w=g.nextToken(),w.type===2&&(w=g.nextToken()),w.type){case 11:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=d(g,w.value||"");break;case 5:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=l(g,w.value||"");break;case 6:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=s(g,w.value||"");break;case 7:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=u(g,w.value||"");break;default:r(g,rt.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const _=g.context(),C=a(7,_.offset,_.startLoc);return C.value="",i(C,_.offset,_.startLoc),b.key=C,i(b,_.offset,_.startLoc),{nextConsumeToken:w,node:b}}return i(b,g.currentOffset(),g.currentPosition()),{node:b}}function h(g){const y=g.context(),b=y.currentType===1?g.currentOffset():y.offset,w=y.currentType===1?y.endLoc:y.startLoc,_=a(2,b,w);_.items=[];let C=null;do{const T=C||g.nextToken();switch(C=null,T.type){case 0:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(o(g,T.value||""));break;case 6:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(s(g,T.value||""));break;case 5:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(l(g,T.value||""));break;case 7:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(u(g,T.value||""));break;case 8:const N=v(g);_.items.push(N.node),C=N.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const E=y.currentType===1?y.lastOffset:g.currentOffset(),I=y.currentType===1?y.lastEndLoc:g.currentPosition();return i(_,E,I),_}function f(g,y,b,w){const _=g.context();let C=w.items.length===0;const E=a(1,y,b);E.cases=[],E.cases.push(w);do{const I=h(g);C||(C=I.items.length===0),E.cases.push(I)}while(_.currentType!==14);return C&&r(g,rt.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),i(E,g.currentOffset(),g.currentPosition()),E}function p(g){const y=g.context(),{offset:b,startLoc:w}=y,_=h(g);return y.currentType===14?_:f(g,b,w,_)}function m(g){const y=kB(g,Kt({},t)),b=y.context(),w=a(0,b.offset,b.startLoc);return e&&w.loc&&(w.loc.source=g),w.body=p(y),b.currentType!==14&&r(y,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,g[b.offset]||""),i(w,y.currentOffset(),y.currentPosition()),w}return{parse:m}}function ur(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function LB(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function ab(t,e){for(let n=0;no;function l(p,m){o.code+=p}function u(p,m=!0){const g=m?a:"";l(i?g+" ".repeat(p):g)}function c(p=!0){const m=++o.indentLevel;p&&u(m)}function d(p=!0){const m=--o.indentLevel;p&&u(m)}function v(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:d,newline:v,helper:p=>`_${p}`,needIndent:()=>o.needIndent}}function zB(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),ki(t,e.key),e.modifier?(t.push(", "),ki(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function jB(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const a=e.items.length;for(let i=0;i1){t.push(`${n("plural")}([`),t.indent(r());const a=e.cases.length;for(let i=0;i{const n=Ee(e.mode)?e.mode:"normal",r=Ee(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` -`,o=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],l=BB(t,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(d=>`${d}: _${d}`).join(", ")} } = ctx`),l.newline()),l.push("return "),ki(l,t),l.deindent(o),l.push("}");const{code:u,map:c}=l.context();return{ast:t,code:u,map:c?c.toJSON():void 0}};function UB(t,e={}){const n=Kt({},e),a=DB(n).parse(t);return FB(a,n),VB(a,n)}/*! +`,PB=String.fromCharCode(8232),AB=String.fromCharCode(8233);function IB(t){const e=t;let n=0,r=1,a=1,i=0;const o=E=>e[E]===OB&&e[E+1]===on,s=E=>e[E]===on,l=E=>e[E]===AB,u=E=>e[E]===PB,c=E=>o(E)||s(E)||l(E)||u(E),d=()=>n,v=()=>r,h=()=>a,f=()=>i,p=E=>o(E)||l(E)||u(E)?on:e[E],m=()=>p(n),g=()=>p(n+i);function y(){return i=0,c(n)&&(r++,a=0),o(n)&&n++,n++,a++,e[n]}function b(){return o(n+i)&&i++,i++,e[n+i]}function w(){n=0,r=1,a=1,i=0}function _(E=0){i=E}function C(){const E=n+i;for(;E!==n;)y();i=0}return{index:d,line:v,column:h,peekOffset:f,charAt:p,currentChar:m,currentPeek:g,next:y,peek:b,reset:w,resetPeek:_,skipToPeek:C}}const qr=void 0,rb="'",kB="tokenizer";function MB(t,e={}){const n=e.location!==!1,r=IB(t),a=()=>r.index(),i=()=>EB(r.line(),r.column(),r.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=e;function d(x,A,W,...K){const U=u();if(A.column+=W,A.offset+=W,c){const se=Kf(U.startLoc,A),ie=zu(x,se,{domain:kB,args:K});c(ie)}}function v(x,A,W){x.endLoc=i(),x.currentType=A;const K={type:A};return n&&(K.loc=Kf(x.startLoc,x.endLoc)),W!=null&&(K.value=W),K}const h=x=>v(x,14);function f(x,A){return x.currentChar()===A?(x.next(),A):(d(rt.EXPECTED_TOKEN,i(),0,A),"")}function p(x){let A="";for(;x.currentPeek()===Ir||x.currentPeek()===on;)A+=x.currentPeek(),x.peek();return A}function m(x){const A=p(x);return x.skipToPeek(),A}function g(x){if(x===qr)return!1;const A=x.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A===95}function y(x){if(x===qr)return!1;const A=x.charCodeAt(0);return A>=48&&A<=57}function b(x,A){const{currentType:W}=A;if(W!==2)return!1;p(x);const K=g(x.currentPeek());return x.resetPeek(),K}function w(x,A){const{currentType:W}=A;if(W!==2)return!1;p(x);const K=x.currentPeek()==="-"?x.peek():x.currentPeek(),U=y(K);return x.resetPeek(),U}function _(x,A){const{currentType:W}=A;if(W!==2)return!1;p(x);const K=x.currentPeek()===rb;return x.resetPeek(),K}function C(x,A){const{currentType:W}=A;if(W!==8)return!1;p(x);const K=x.currentPeek()===".";return x.resetPeek(),K}function E(x,A){const{currentType:W}=A;if(W!==9)return!1;p(x);const K=g(x.currentPeek());return x.resetPeek(),K}function I(x,A){const{currentType:W}=A;if(!(W===8||W===12))return!1;p(x);const K=x.currentPeek()===":";return x.resetPeek(),K}function T(x,A){const{currentType:W}=A;if(W!==10)return!1;const K=()=>{const se=x.currentPeek();return se==="{"?g(x.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===Ir||!se?!1:se===on?(x.peek(),K()):g(se)},U=K();return x.resetPeek(),U}function N(x){p(x);const A=x.currentPeek()==="|";return x.resetPeek(),A}function R(x){const A=p(x),W=x.currentPeek()==="%"&&x.peek()==="{";return x.resetPeek(),{isModulo:W,hasSpace:A.length>0}}function F(x,A=!0){const W=(U=!1,se="",ie=!1)=>{const re=x.currentPeek();return re==="{"?se==="%"?!1:U:re==="@"||!re?se==="%"?!0:U:re==="%"?(x.peek(),W(U,"%",!0)):re==="|"?se==="%"||ie?!0:!(se===Ir||se===on):re===Ir?(x.peek(),W(!0,Ir,ie)):re===on?(x.peek(),W(!0,on,ie)):!0},K=W();return A&&x.resetPeek(),K}function L(x,A){const W=x.currentChar();return W===qr?qr:A(W)?(x.next(),W):null}function j(x){return L(x,W=>{const K=W.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===95||K===36})}function D(x){return L(x,W=>{const K=W.charCodeAt(0);return K>=48&&K<=57})}function P(x){return L(x,W=>{const K=W.charCodeAt(0);return K>=48&&K<=57||K>=65&&K<=70||K>=97&&K<=102})}function O(x){let A="",W="";for(;A=D(x);)W+=A;return W}function k(x){m(x);const A=x.currentChar();return A!=="%"&&d(rt.EXPECTED_TOKEN,i(),0,A),x.next(),"%"}function $(x){let A="";for(;;){const W=x.currentChar();if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W==="%")if(F(x))A+=W,x.next();else break;else if(W===Ir||W===on)if(F(x))A+=W,x.next();else{if(N(x))break;A+=W,x.next()}else A+=W,x.next()}return A}function G(x){m(x);let A="",W="";for(;A=j(x);)W+=A;return x.currentChar()===qr&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),W}function J(x){m(x);let A="";return x.currentChar()==="-"?(x.next(),A+=`-${O(x)}`):A+=O(x),x.currentChar()===qr&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),A}function Z(x){m(x),f(x,"'");let A="",W="";const K=se=>se!==rb&&se!==on;for(;A=L(x,K);)A==="\\"?W+=X(x):W+=A;const U=x.currentChar();return U===on||U===qr?(d(rt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),U===on&&(x.next(),f(x,"'")),W):(f(x,"'"),W)}function X(x){const A=x.currentChar();switch(A){case"\\":case"'":return x.next(),`\\${A}`;case"u":return Y(x,A,4);case"U":return Y(x,A,6);default:return d(rt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,A),""}}function Y(x,A,W){f(x,A);let K="";for(let U=0;UU!=="{"&&U!=="}"&&U!==Ir&&U!==on;for(;A=L(x,K);)W+=A;return W}function le(x){let A="",W="";for(;A=j(x);)W+=A;return W}function ge(x){const A=(W=!1,K)=>{const U=x.currentChar();return U==="{"||U==="%"||U==="@"||U==="|"||!U||U===Ir?K:U===on?(K+=U,x.next(),A(W,K)):(K+=U,x.next(),A(!0,K))};return A(!1,"")}function _e(x){m(x);const A=f(x,"|");return m(x),A}function me(x,A){let W=null;switch(x.currentChar()){case"{":return A.braceNest>=1&&d(rt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),x.next(),W=v(A,2,"{"),m(x),A.braceNest++,W;case"}":return A.braceNest>0&&A.currentType===2&&d(rt.EMPTY_PLACEHOLDER,i(),0),x.next(),W=v(A,3,"}"),A.braceNest--,A.braceNest>0&&m(x),A.inLinked&&A.braceNest===0&&(A.inLinked=!1),W;case"@":return A.braceNest>0&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),W=ye(x,A)||h(A),A.braceNest=0,W;default:let U=!0,se=!0,ie=!0;if(N(x))return A.braceNest>0&&d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),W=v(A,1,_e(x)),A.braceNest=0,A.inLinked=!1,W;if(A.braceNest>0&&(A.currentType===5||A.currentType===6||A.currentType===7))return d(rt.UNTERMINATED_CLOSING_BRACE,i(),0),A.braceNest=0,Se(x,A);if(U=b(x,A))return W=v(A,5,G(x)),m(x),W;if(se=w(x,A))return W=v(A,6,J(x)),m(x),W;if(ie=_(x,A))return W=v(A,7,Z(x)),m(x),W;if(!U&&!se&&!ie)return W=v(A,13,ne(x)),d(rt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,W.value),m(x),W;break}return W}function ye(x,A){const{currentType:W}=A;let K=null;const U=x.currentChar();switch((W===8||W===9||W===12||W===10)&&(U===on||U===Ir)&&d(rt.INVALID_LINKED_FORMAT,i(),0),U){case"@":return x.next(),K=v(A,8,"@"),A.inLinked=!0,K;case".":return m(x),x.next(),v(A,9,".");case":":return m(x),x.next(),v(A,10,":");default:return N(x)?(K=v(A,1,_e(x)),A.braceNest=0,A.inLinked=!1,K):C(x,A)||I(x,A)?(m(x),ye(x,A)):E(x,A)?(m(x),v(A,12,le(x))):T(x,A)?(m(x),U==="{"?me(x,A)||K:v(A,11,ge(x))):(W===8&&d(rt.INVALID_LINKED_FORMAT,i(),0),A.braceNest=0,A.inLinked=!1,Se(x,A))}}function Se(x,A){let W={type:14};if(A.braceNest>0)return me(x,A)||h(A);if(A.inLinked)return ye(x,A)||h(A);switch(x.currentChar()){case"{":return me(x,A)||h(A);case"}":return d(rt.UNBALANCED_CLOSING_BRACE,i(),0),x.next(),v(A,3,"}");case"@":return ye(x,A)||h(A);default:if(N(x))return W=v(A,1,_e(x)),A.braceNest=0,A.inLinked=!1,W;const{isModulo:U,hasSpace:se}=R(x);if(U)return se?v(A,0,$(x)):v(A,4,k(x));if(F(x))return v(A,0,$(x));break}return W}function B(){const{currentType:x,offset:A,startLoc:W,endLoc:K}=l;return l.lastType=x,l.lastOffset=A,l.lastStartLoc=W,l.lastEndLoc=K,l.offset=a(),l.startLoc=i(),r.currentChar()===qr?v(l,14):Se(r,l)}return{nextToken:B,currentOffset:a,currentPosition:i,context:u}}const NB="parser",RB=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $B(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function DB(t={}){const e=t.location!==!1,{onError:n}=t;function r(g,y,b,w,..._){const C=g.currentPosition();if(C.offset+=w,C.column+=w,n){const E=Kf(b,C),I=zu(y,E,{domain:NB,args:_});n(I)}}function a(g,y,b){const w={type:g,start:y,end:y};return e&&(w.loc={start:b,end:b}),w}function i(g,y,b,w){g.end=y,w&&(g.type=w),e&&g.loc&&(g.loc.end=b)}function o(g,y){const b=g.context(),w=a(3,b.offset,b.startLoc);return w.value=y,i(w,g.currentOffset(),g.currentPosition()),w}function s(g,y){const b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(5,w,_);return C.index=parseInt(y,10),g.nextToken(),i(C,g.currentOffset(),g.currentPosition()),C}function l(g,y){const b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(4,w,_);return C.key=y,g.nextToken(),i(C,g.currentOffset(),g.currentPosition()),C}function u(g,y){const b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(9,w,_);return C.value=y.replace(RB,$B),g.nextToken(),i(C,g.currentOffset(),g.currentPosition()),C}function c(g){const y=g.nextToken(),b=g.context(),{lastOffset:w,lastStartLoc:_}=b,C=a(8,w,_);return y.type!==12?(r(g,rt.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),C.value="",i(C,w,_),{nextConsumeToken:y,node:C}):(y.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ur(y)),C.value=y.value||"",i(C,g.currentOffset(),g.currentPosition()),{node:C})}function d(g,y){const b=g.context(),w=a(7,b.offset,b.startLoc);return w.value=y,i(w,g.currentOffset(),g.currentPosition()),w}function v(g){const y=g.context(),b=a(6,y.offset,y.startLoc);let w=g.nextToken();if(w.type===9){const _=c(g);b.modifier=_.node,w=_.nextConsumeToken||g.nextToken()}switch(w.type!==10&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),w=g.nextToken(),w.type===2&&(w=g.nextToken()),w.type){case 11:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=d(g,w.value||"");break;case 5:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=l(g,w.value||"");break;case 6:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=s(g,w.value||"");break;case 7:w.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(w)),b.key=u(g,w.value||"");break;default:r(g,rt.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const _=g.context(),C=a(7,_.offset,_.startLoc);return C.value="",i(C,_.offset,_.startLoc),b.key=C,i(b,_.offset,_.startLoc),{nextConsumeToken:w,node:b}}return i(b,g.currentOffset(),g.currentPosition()),{node:b}}function h(g){const y=g.context(),b=y.currentType===1?g.currentOffset():y.offset,w=y.currentType===1?y.endLoc:y.startLoc,_=a(2,b,w);_.items=[];let C=null;do{const T=C||g.nextToken();switch(C=null,T.type){case 0:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(o(g,T.value||""));break;case 6:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(s(g,T.value||""));break;case 5:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(l(g,T.value||""));break;case 7:T.value==null&&r(g,rt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ur(T)),_.items.push(u(g,T.value||""));break;case 8:const N=v(g);_.items.push(N.node),C=N.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const E=y.currentType===1?y.lastOffset:g.currentOffset(),I=y.currentType===1?y.lastEndLoc:g.currentPosition();return i(_,E,I),_}function f(g,y,b,w){const _=g.context();let C=w.items.length===0;const E=a(1,y,b);E.cases=[],E.cases.push(w);do{const I=h(g);C||(C=I.items.length===0),E.cases.push(I)}while(_.currentType!==14);return C&&r(g,rt.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),i(E,g.currentOffset(),g.currentPosition()),E}function p(g){const y=g.context(),{offset:b,startLoc:w}=y,_=h(g);return y.currentType===14?_:f(g,b,w,_)}function m(g){const y=MB(g,Kt({},t)),b=y.context(),w=a(0,b.offset,b.startLoc);return e&&w.loc&&(w.loc.source=g),w.body=p(y),b.currentType!==14&&r(y,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,g[b.offset]||""),i(w,y.currentOffset(),y.currentPosition()),w}return{parse:m}}function ur(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function LB(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function ab(t,e){for(let n=0;no;function l(p,m){o.code+=p}function u(p,m=!0){const g=m?a:"";l(i?g+" ".repeat(p):g)}function c(p=!0){const m=++o.indentLevel;p&&u(m)}function d(p=!0){const m=--o.indentLevel;p&&u(m)}function v(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:d,newline:v,helper:p=>`_${p}`,needIndent:()=>o.needIndent}}function zB(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Mi(t,e.key),e.modifier?(t.push(", "),Mi(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function jB(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const a=e.items.length;for(let i=0;i1){t.push(`${n("plural")}([`),t.indent(r());const a=e.cases.length;for(let i=0;i{const n=Ee(e.mode)?e.mode:"normal",r=Ee(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` +`,o=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],l=BB(t,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(d=>`${d}: _${d}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Mi(l,t),l.deindent(o),l.push("}");const{code:u,map:c}=l.context();return{ast:t,code:u,map:c?c.toJSON():void 0}};function UB(t,e={}){const n=Kt({},e),a=DB(n).parse(t);return FB(a,n),VB(a,n)}/*! * devtools-if v9.3.0-beta.19 * (c) 2023 kazuya kawaguchi * Released under the MIT License. @@ -120,21 +120,21 @@ summary tabindex target title type usemap value width wmode wrap`,kR=`onCopy onC * core-base v9.3.0-beta.19 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const va=[];va[0]={w:[0],i:[3,0],["["]:[4],o:[7]};va[1]={w:[1],["."]:[2],["["]:[4],o:[7]};va[2]={w:[2],i:[3,0],[0]:[3,0]};va[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};va[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};va[5]={["'"]:[4,0],o:8,l:[5,0]};va[6]={['"']:[4,0],o:8,l:[6,0]};const KB=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function GB(t){return KB.test(t)}function qB(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function YB(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function JB(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:GB(e)?qB(e):"*"+e}function XB(t){const e=[];let n=-1,r=0,a=0,i,o,s,l,u,c,d;const v=[];v[0]=()=>{o===void 0?o=s:o+=s},v[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},v[2]=()=>{v[0](),a++},v[3]=()=>{if(a>0)a--,r=4,v[0]();else{if(a=0,o===void 0||(o=JB(o),o===!1))return!1;v[1]()}};function h(){const f=t[n+1];if(r===5&&f==="'"||r===6&&f==='"')return n++,s="\\"+f,v[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&h())){if(l=YB(i),d=va[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=v[u[1]],c&&(s=i,c()===!1))))return;if(r===7)return e}}const ib=new Map;function ZB(t,e){return ut(t)?t[e]:null}function QB(t,e){if(!ut(t))return null;let n=ib.get(e);if(n||(n=XB(e),n&&ib.set(e,n)),!n)return null;const r=n.length;let a=t,i=0;for(;it,tz=t=>"",nz="text",rz=t=>t.length===0?"":t.join(""),az=xB;function ob(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function iz(t){const e=Dt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Dt(t.named.count)||Dt(t.named.n))?Dt(t.named.count)?t.named.count:Dt(t.named.n)?t.named.n:e:e}function oz(t,e){e.count||(e.count=t),e.n||(e.n=t)}function sz(t={}){const e=t.locale,n=iz(t),r=ut(t.pluralRules)&&Ee(e)&&It(t.pluralRules[e])?t.pluralRules[e]:ob,a=ut(t.pluralRules)&&Ee(e)&&It(t.pluralRules[e])?ob:void 0,i=g=>g[r(n,g.length,a)],o=t.list||[],s=g=>o[g],l=t.named||{};Dt(t.pluralIndex)&&oz(n,l);const u=g=>l[g];function c(g){const y=It(t.messages)?t.messages(g):ut(t.messages)?t.messages[g]:!1;return y||(t.parent?t.parent.message(g):tz)}const d=g=>t.modifiers?t.modifiers[g]:ez,v=Be(t.processor)&&It(t.processor.normalize)?t.processor.normalize:rz,h=Be(t.processor)&&It(t.processor.interpolate)?t.processor.interpolate:az,f=Be(t.processor)&&Ee(t.processor.type)?t.processor.type:nz,m={list:s,named:u,plural:i,linked:(g,...y)=>{const[b,w]=y;let _="text",C="";y.length===1?ut(b)?(C=b.modifier||C,_=b.type||_):Ee(b)&&(C=b||C):y.length===2&&(Ee(b)&&(C=b||C),Ee(w)&&(_=w||_));let E=c(g)(m);return _==="vnode"&>(E)&&C&&(E=E[0]),C?d(C)(E,_):E},message:c,type:f,interpolate:h,normalize:v};return m}let es=null;function lz(t){es=t}function uz(t,e,n){es&&es.emit(CS.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const cz=fz(CS.FunctionTranslate);function fz(t){return e=>es&&es.emit(t,e)}function dz(t,e,n){return[...new Set([n,...gt(e)?e:ut(e)?Object.keys(e):Ee(e)?[e]:[n]])]}function SS(t,e,n){const r=Ee(n)?n:ys,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;gt(o);)o=sb(i,o,e);const s=gt(e)||!Be(e)?e:e.default?e.default:null;o=Ee(s)?[s]:s,gt(o)&&sb(i,o,!1),a.__localeChainCache.set(r,i)}return i}function sb(t,e,n){let r=!0;for(let a=0;a`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function gz(){return{upper:(t,e)=>e==="text"&&Ee(t)?t.toUpperCase():e==="vnode"&&ut(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Ee(t)?t.toLowerCase():e==="vnode"&&ut(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Ee(t)?ub(t):e==="vnode"&&ut(t)&&"__v_isVNode"in t?ub(t.children):t}}let xS;function mz(t){xS=t}let TS;function yz(t){TS=t}let ES;function bz(t){ES=t}let OS=null;const cb=t=>{OS=t},wz=()=>OS;let PS=null;const fb=t=>{PS=t},_z=()=>PS;let db=0;function Cz(t={}){const e=Ee(t.version)?t.version:hz,n=Ee(t.locale)?t.locale:ys,r=gt(t.fallbackLocale)||Be(t.fallbackLocale)||Ee(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=Be(t.messages)?t.messages:{[n]:{}},i=Be(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=Be(t.numberFormats)?t.numberFormats:{[n]:{}},s=Kt({},t.modifiers||{},gz()),l=t.pluralRules||{},u=It(t.missing)?t.missing:null,c=Ge(t.missingWarn)||la(t.missingWarn)?t.missingWarn:!0,d=Ge(t.fallbackWarn)||la(t.fallbackWarn)?t.fallbackWarn:!0,v=!!t.fallbackFormat,h=!!t.unresolving,f=It(t.postTranslation)?t.postTranslation:null,p=Be(t.processor)?t.processor:null,m=Ge(t.warnHtmlMessage)?t.warnHtmlMessage:!0,g=!!t.escapeParameter,y=It(t.messageCompiler)?t.messageCompiler:xS,b=It(t.messageResolver)?t.messageResolver:TS||ZB,w=It(t.localeFallbacker)?t.localeFallbacker:ES||dz,_=ut(t.fallbackContext)?t.fallbackContext:void 0,C=It(t.onWarn)?t.onWarn:CB,E=t,I=ut(E.__datetimeFormatters)?E.__datetimeFormatters:new Map,T=ut(E.__numberFormatters)?E.__numberFormatters:new Map,N=ut(E.__meta)?E.__meta:{};db++;const R={version:e,cid:db,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:l,missing:u,missingWarn:c,fallbackWarn:d,fallbackFormat:v,unresolving:h,postTranslation:f,processor:p,warnHtmlMessage:m,escapeParameter:g,messageCompiler:y,messageResolver:b,localeFallbacker:w,fallbackContext:_,onWarn:C,__meta:N};return R.datetimeFormats=i,R.numberFormats=o,R.__datetimeFormatters=I,R.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&uz(R,e,N),R}function dp(t,e,n,r,a){const{missing:i,onWarn:o}=t;if(i!==null){const s=i(t,n,e,a);return Ee(s)?s:e}else return e}function oo(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const Sz=t=>t;let vb=Object.create(null);function xz(t,e={}){{Ge(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||Sz)(t),a=vb[r];if(a)return a;let i=!1;const o=e.onError||TB;e.onError=u=>{i=!0,o(u)};const{code:s}=UB(t,e),l=new Function(`return ${s}`)();return i?l:vb[r]=l}}let AS=rt.__EXTEND_POINT__;const zc=()=>++AS,fi={INVALID_ARGUMENT:AS,INVALID_DATE_ARGUMENT:zc(),INVALID_ISO_DATE_ARGUMENT:zc(),__EXTEND_POINT__:zc()};function di(t){return zu(t,null,void 0)}const pb=()=>"",vr=t=>It(t);function hb(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=t,[l,u]=Gf(...e),c=Ge(u.missingWarn)?u.missingWarn:t.missingWarn,d=Ge(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,v=Ge(u.escapeParameter)?u.escapeParameter:t.escapeParameter,h=!!u.resolvedMessage,f=Ee(u.default)||Ge(u.default)?Ge(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",p=n||f!=="",m=Ee(u.locale)?u.locale:t.locale;v&&Tz(u);let[g,y,b]=h?[l,m,s[m]||{}]:IS(t,l,m,o,d,c),w=g,_=l;if(!h&&!(Ee(w)||vr(w))&&p&&(w=f,_=w),!h&&(!(Ee(w)||vr(w))||!Ee(y)))return a?ju:l;let C=!1;const E=()=>{C=!0},I=vr(w)?w:MS(t,l,y,w,_,E);if(C)return w;const T=Pz(t,y,b,u),N=sz(T),R=Ez(t,I,N),F=r?r(R,l):R;if(__INTLIFY_PROD_DEVTOOLS__){const L={timestamp:Date.now(),key:Ee(l)?l:vr(w)?w.key:"",locale:y||(vr(w)?w.locale:""),format:Ee(w)?w:vr(w)?w.source:"",message:F};L.meta=Kt({},t.__meta,wz()||{}),cz(L)}return F}function Tz(t){gt(t.list)?t.list=t.list.map(e=>Ee(e)?nb(e):e):ut(t.named)&&Object.keys(t.named).forEach(e=>{Ee(t.named[e])&&(t.named[e]=nb(t.named[e]))})}function IS(t,e,n,r,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=t,c=u(t,r,n);let d={},v,h=null;const f="translate";for(let p=0;pr;return u.locale=n,u.key=e,u}const l=o(r,Oz(t,n,a,r,s,i));return l.locale=n,l.key=e,l.source=r,l}function Ez(t,e,n){return e(n)}function Gf(...t){const[e,n,r]=t,a={};if(!Ee(e)&&!Dt(e)&&!vr(e))throw di(fi.INVALID_ARGUMENT);const i=Dt(e)?String(e):(vr(e),e);return Dt(n)?a.plural=n:Ee(n)?a.default=n:Be(n)&&!Bu(n)?a.named=n:gt(n)&&(a.list=n),Dt(r)?a.plural=r:Ee(r)?a.default=r:Be(r)&&Kt(a,r),[i,a]}function Oz(t,e,n,r,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>bB(e,n,o)}}function Pz(t,e,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=t,v={locale:e,modifiers:a,pluralRules:i,messages:h=>{let f=o(n,h);if(f==null&&c){const[,,p]=IS(c,h,e,s,l,u);f=o(p,h)}if(Ee(f)){let p=!1;const g=MS(t,h,e,f,h,()=>{p=!0});return p?pb:g}else return vr(f)?f:pb}};return t.processor&&(v.processor=t.processor),r.list&&(v.list=r.list),r.named&&(v.named=r.named),Dt(r.plural)&&(v.pluralIndex=r.plural),v}function gb(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:s}=t,[l,u,c,d]=qf(...e),v=Ge(c.missingWarn)?c.missingWarn:t.missingWarn;Ge(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn;const h=!!c.part,f=Ee(c.locale)?c.locale:t.locale,p=o(t,a,f);if(!Ee(l)||l==="")return new Intl.DateTimeFormat(f,d).format(u);let m={},g,y=null;const b="datetime format";for(let C=0;C{kS.includes(l)?o[l]=n[l]:i[l]=n[l]}),Ee(r)?i.locale=r:Be(r)&&(o=r),Be(a)&&(o=a),[i.key||"",s,i,o]}function mb(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function yb(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:s}=t,[l,u,c,d]=Yf(...e),v=Ge(c.missingWarn)?c.missingWarn:t.missingWarn;Ge(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn;const h=!!c.part,f=Ee(c.locale)?c.locale:t.locale,p=o(t,a,f);if(!Ee(l)||l==="")return new Intl.NumberFormat(f,d).format(u);let m={},g,y=null;const b="number format";for(let C=0;C{NS.includes(l)?o[l]=n[l]:i[l]=n[l]}),Ee(r)?i.locale=r:Be(r)&&(o=r),Be(a)&&(o=a),[i.key||"",s,i,o]}function bb(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Oo().__INTLIFY_PROD_DEVTOOLS__=!1);/*! + */const va=[];va[0]={w:[0],i:[3,0],["["]:[4],o:[7]};va[1]={w:[1],["."]:[2],["["]:[4],o:[7]};va[2]={w:[2],i:[3,0],[0]:[3,0]};va[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};va[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};va[5]={["'"]:[4,0],o:8,l:[5,0]};va[6]={['"']:[4,0],o:8,l:[6,0]};const KB=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function GB(t){return KB.test(t)}function qB(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function YB(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function JB(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:GB(e)?qB(e):"*"+e}function XB(t){const e=[];let n=-1,r=0,a=0,i,o,s,l,u,c,d;const v=[];v[0]=()=>{o===void 0?o=s:o+=s},v[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},v[2]=()=>{v[0](),a++},v[3]=()=>{if(a>0)a--,r=4,v[0]();else{if(a=0,o===void 0||(o=JB(o),o===!1))return!1;v[1]()}};function h(){const f=t[n+1];if(r===5&&f==="'"||r===6&&f==='"')return n++,s="\\"+f,v[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&h())){if(l=YB(i),d=va[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=v[u[1]],c&&(s=i,c()===!1))))return;if(r===7)return e}}const ib=new Map;function ZB(t,e){return ut(t)?t[e]:null}function QB(t,e){if(!ut(t))return null;let n=ib.get(e);if(n||(n=XB(e),n&&ib.set(e,n)),!n)return null;const r=n.length;let a=t,i=0;for(;it,tz=t=>"",nz="text",rz=t=>t.length===0?"":t.join(""),az=xB;function ob(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function iz(t){const e=Dt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Dt(t.named.count)||Dt(t.named.n))?Dt(t.named.count)?t.named.count:Dt(t.named.n)?t.named.n:e:e}function oz(t,e){e.count||(e.count=t),e.n||(e.n=t)}function sz(t={}){const e=t.locale,n=iz(t),r=ut(t.pluralRules)&&Ee(e)&&It(t.pluralRules[e])?t.pluralRules[e]:ob,a=ut(t.pluralRules)&&Ee(e)&&It(t.pluralRules[e])?ob:void 0,i=g=>g[r(n,g.length,a)],o=t.list||[],s=g=>o[g],l=t.named||{};Dt(t.pluralIndex)&&oz(n,l);const u=g=>l[g];function c(g){const y=It(t.messages)?t.messages(g):ut(t.messages)?t.messages[g]:!1;return y||(t.parent?t.parent.message(g):tz)}const d=g=>t.modifiers?t.modifiers[g]:ez,v=Be(t.processor)&&It(t.processor.normalize)?t.processor.normalize:rz,h=Be(t.processor)&&It(t.processor.interpolate)?t.processor.interpolate:az,f=Be(t.processor)&&Ee(t.processor.type)?t.processor.type:nz,m={list:s,named:u,plural:i,linked:(g,...y)=>{const[b,w]=y;let _="text",C="";y.length===1?ut(b)?(C=b.modifier||C,_=b.type||_):Ee(b)&&(C=b||C):y.length===2&&(Ee(b)&&(C=b||C),Ee(w)&&(_=w||_));let E=c(g)(m);return _==="vnode"&>(E)&&C&&(E=E[0]),C?d(C)(E,_):E},message:c,type:f,interpolate:h,normalize:v};return m}let es=null;function lz(t){es=t}function uz(t,e,n){es&&es.emit(CS.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:n})}const cz=fz(CS.FunctionTranslate);function fz(t){return e=>es&&es.emit(t,e)}function dz(t,e,n){return[...new Set([n,...gt(e)?e:ut(e)?Object.keys(e):Ee(e)?[e]:[n]])]}function SS(t,e,n){const r=Ee(n)?n:ys,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;gt(o);)o=sb(i,o,e);const s=gt(e)||!Be(e)?e:e.default?e.default:null;o=Ee(s)?[s]:s,gt(o)&&sb(i,o,!1),a.__localeChainCache.set(r,i)}return i}function sb(t,e,n){let r=!0;for(let a=0;a`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function gz(){return{upper:(t,e)=>e==="text"&&Ee(t)?t.toUpperCase():e==="vnode"&&ut(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Ee(t)?t.toLowerCase():e==="vnode"&&ut(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Ee(t)?ub(t):e==="vnode"&&ut(t)&&"__v_isVNode"in t?ub(t.children):t}}let xS;function mz(t){xS=t}let TS;function yz(t){TS=t}let ES;function bz(t){ES=t}let OS=null;const cb=t=>{OS=t},wz=()=>OS;let PS=null;const fb=t=>{PS=t},_z=()=>PS;let db=0;function Cz(t={}){const e=Ee(t.version)?t.version:hz,n=Ee(t.locale)?t.locale:ys,r=gt(t.fallbackLocale)||Be(t.fallbackLocale)||Ee(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,a=Be(t.messages)?t.messages:{[n]:{}},i=Be(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},o=Be(t.numberFormats)?t.numberFormats:{[n]:{}},s=Kt({},t.modifiers||{},gz()),l=t.pluralRules||{},u=It(t.missing)?t.missing:null,c=Ge(t.missingWarn)||la(t.missingWarn)?t.missingWarn:!0,d=Ge(t.fallbackWarn)||la(t.fallbackWarn)?t.fallbackWarn:!0,v=!!t.fallbackFormat,h=!!t.unresolving,f=It(t.postTranslation)?t.postTranslation:null,p=Be(t.processor)?t.processor:null,m=Ge(t.warnHtmlMessage)?t.warnHtmlMessage:!0,g=!!t.escapeParameter,y=It(t.messageCompiler)?t.messageCompiler:xS,b=It(t.messageResolver)?t.messageResolver:TS||ZB,w=It(t.localeFallbacker)?t.localeFallbacker:ES||dz,_=ut(t.fallbackContext)?t.fallbackContext:void 0,C=It(t.onWarn)?t.onWarn:CB,E=t,I=ut(E.__datetimeFormatters)?E.__datetimeFormatters:new Map,T=ut(E.__numberFormatters)?E.__numberFormatters:new Map,N=ut(E.__meta)?E.__meta:{};db++;const R={version:e,cid:db,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:l,missing:u,missingWarn:c,fallbackWarn:d,fallbackFormat:v,unresolving:h,postTranslation:f,processor:p,warnHtmlMessage:m,escapeParameter:g,messageCompiler:y,messageResolver:b,localeFallbacker:w,fallbackContext:_,onWarn:C,__meta:N};return R.datetimeFormats=i,R.numberFormats=o,R.__datetimeFormatters=I,R.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&uz(R,e,N),R}function dp(t,e,n,r,a){const{missing:i,onWarn:o}=t;if(i!==null){const s=i(t,n,e,a);return Ee(s)?s:e}else return e}function oo(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}const Sz=t=>t;let vb=Object.create(null);function xz(t,e={}){{Ge(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||Sz)(t),a=vb[r];if(a)return a;let i=!1;const o=e.onError||TB;e.onError=u=>{i=!0,o(u)};const{code:s}=UB(t,e),l=new Function(`return ${s}`)();return i?l:vb[r]=l}}let AS=rt.__EXTEND_POINT__;const zc=()=>++AS,fi={INVALID_ARGUMENT:AS,INVALID_DATE_ARGUMENT:zc(),INVALID_ISO_DATE_ARGUMENT:zc(),__EXTEND_POINT__:zc()};function di(t){return zu(t,null,void 0)}const pb=()=>"",vr=t=>It(t);function hb(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=t,[l,u]=Gf(...e),c=Ge(u.missingWarn)?u.missingWarn:t.missingWarn,d=Ge(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,v=Ge(u.escapeParameter)?u.escapeParameter:t.escapeParameter,h=!!u.resolvedMessage,f=Ee(u.default)||Ge(u.default)?Ge(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",p=n||f!=="",m=Ee(u.locale)?u.locale:t.locale;v&&Tz(u);let[g,y,b]=h?[l,m,s[m]||{}]:IS(t,l,m,o,d,c),w=g,_=l;if(!h&&!(Ee(w)||vr(w))&&p&&(w=f,_=w),!h&&(!(Ee(w)||vr(w))||!Ee(y)))return a?ju:l;let C=!1;const E=()=>{C=!0},I=vr(w)?w:kS(t,l,y,w,_,E);if(C)return w;const T=Pz(t,y,b,u),N=sz(T),R=Ez(t,I,N),F=r?r(R,l):R;if(__INTLIFY_PROD_DEVTOOLS__){const L={timestamp:Date.now(),key:Ee(l)?l:vr(w)?w.key:"",locale:y||(vr(w)?w.locale:""),format:Ee(w)?w:vr(w)?w.source:"",message:F};L.meta=Kt({},t.__meta,wz()||{}),cz(L)}return F}function Tz(t){gt(t.list)?t.list=t.list.map(e=>Ee(e)?nb(e):e):ut(t.named)&&Object.keys(t.named).forEach(e=>{Ee(t.named[e])&&(t.named[e]=nb(t.named[e]))})}function IS(t,e,n,r,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=t,c=u(t,r,n);let d={},v,h=null;const f="translate";for(let p=0;pr;return u.locale=n,u.key=e,u}const l=o(r,Oz(t,n,a,r,s,i));return l.locale=n,l.key=e,l.source=r,l}function Ez(t,e,n){return e(n)}function Gf(...t){const[e,n,r]=t,a={};if(!Ee(e)&&!Dt(e)&&!vr(e))throw di(fi.INVALID_ARGUMENT);const i=Dt(e)?String(e):(vr(e),e);return Dt(n)?a.plural=n:Ee(n)?a.default=n:Be(n)&&!Bu(n)?a.named=n:gt(n)&&(a.list=n),Dt(r)?a.plural=r:Ee(r)?a.default=r:Be(r)&&Kt(a,r),[i,a]}function Oz(t,e,n,r,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>bB(e,n,o)}}function Pz(t,e,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=t,v={locale:e,modifiers:a,pluralRules:i,messages:h=>{let f=o(n,h);if(f==null&&c){const[,,p]=IS(c,h,e,s,l,u);f=o(p,h)}if(Ee(f)){let p=!1;const g=kS(t,h,e,f,h,()=>{p=!0});return p?pb:g}else return vr(f)?f:pb}};return t.processor&&(v.processor=t.processor),r.list&&(v.list=r.list),r.named&&(v.named=r.named),Dt(r.plural)&&(v.pluralIndex=r.plural),v}function gb(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:s}=t,[l,u,c,d]=qf(...e),v=Ge(c.missingWarn)?c.missingWarn:t.missingWarn;Ge(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn;const h=!!c.part,f=Ee(c.locale)?c.locale:t.locale,p=o(t,a,f);if(!Ee(l)||l==="")return new Intl.DateTimeFormat(f,d).format(u);let m={},g,y=null;const b="datetime format";for(let C=0;C{MS.includes(l)?o[l]=n[l]:i[l]=n[l]}),Ee(r)?i.locale=r:Be(r)&&(o=r),Be(a)&&(o=a),[i.key||"",s,i,o]}function mb(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function yb(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:s}=t,[l,u,c,d]=Yf(...e),v=Ge(c.missingWarn)?c.missingWarn:t.missingWarn;Ge(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn;const h=!!c.part,f=Ee(c.locale)?c.locale:t.locale,p=o(t,a,f);if(!Ee(l)||l==="")return new Intl.NumberFormat(f,d).format(u);let m={},g,y=null;const b="number format";for(let C=0;C{NS.includes(l)?o[l]=n[l]:i[l]=n[l]}),Ee(r)?i.locale=r:Be(r)&&(o=r),Be(a)&&(o=a),[i.key||"",s,i,o]}function bb(t,e,n){const r=t;for(const a in n){const i=`${e}__${a}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Oo().__INTLIFY_PROD_DEVTOOLS__=!1);/*! * vue-i18n v9.3.0-beta.19 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const Az="9.3.0-beta.19";function Iz(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Oo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Oo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Oo().__INTLIFY_PROD_DEVTOOLS__=!1)}let RS=rt.__EXTEND_POINT__;const gn=()=>++RS,Rt={UNEXPECTED_RETURN_TYPE:RS,INVALID_ARGUMENT:gn(),MUST_BE_CALL_SETUP_TOP:gn(),NOT_INSTALLED:gn(),NOT_AVAILABLE_IN_LEGACY_MODE:gn(),REQUIRED_VALUE:gn(),INVALID_VALUE:gn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:gn(),NOT_INSTALLED_WITH_PROVIDE:gn(),UNEXPECTED_ERROR:gn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:gn(),BRIDGE_SUPPORT_VUE_2_ONLY:gn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:gn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:gn(),__EXTEND_POINT__:gn()};function Ft(t,...e){return zu(t,null,void 0)}const Jf=Ga("__translateVNode"),Xf=Ga("__datetimeParts"),Zf=Ga("__numberParts"),$S=Ga("__setPluralRules"),DS=Ga("__injectWithOption");function Qf(t){if(!ut(t))return t;for(const e in t)if(cp(t,e))if(!e.includes("."))ut(t[e])&&Qf(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Po(u,o[l])):Po(u,o)}else Ee(s)&&Po(JSON.parse(s),o)}),a==null&&i)for(const s in o)cp(o,s)&&Qf(o[s]);return o}const Gs=t=>!ut(t)||gt(t);function Po(t,e){if(Gs(t)||Gs(e))throw Ft(Rt.INVALID_VALUE);for(const n in t)cp(t,n)&&(Gs(t[n])||Gs(e[n])?e[n]=t[n]:Po(t[n],e[n]))}function LS(t){return t.type}function FS(t,e,n){let r=ut(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Wu(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(ut(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(ut(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function wb(t){return S(Wa,null,t,0)}const _b="__INTLIFY_META__";let Cb=0;function Sb(t){return(e,n,r,a)=>t(n,r,Pt()||void 0,a)}const Mz=()=>{const t=Pt();let e=null;return t&&(e=LS(t)[_b])?{[_b]:e}:null};function vp(t={},e){const{__root:n}=t,r=n===void 0;let a=Ge(t.inheritLocale)?t.inheritLocale:!0;const i=z(n&&a?n.locale.value:Ee(t.locale)?t.locale:ys),o=z(n&&a?n.fallbackLocale.value:Ee(t.fallbackLocale)||gt(t.fallbackLocale)||Be(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=z(Wu(i.value,t)),l=z(Be(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=z(Be(t.numberFormats)?t.numberFormats:{[i.value]:{}});let c=n?n.missingWarn:Ge(t.missingWarn)||la(t.missingWarn)?t.missingWarn:!0,d=n?n.fallbackWarn:Ge(t.fallbackWarn)||la(t.fallbackWarn)?t.fallbackWarn:!0,v=n?n.fallbackRoot:Ge(t.fallbackRoot)?t.fallbackRoot:!0,h=!!t.fallbackFormat,f=It(t.missing)?t.missing:null,p=It(t.missing)?Sb(t.missing):null,m=It(t.postTranslation)?t.postTranslation:null,g=n?n.warnHtmlMessage:Ge(t.warnHtmlMessage)?t.warnHtmlMessage:!0,y=!!t.escapeParameter;const b=n?n.modifiers:Be(t.modifiers)?t.modifiers:{};let w=t.pluralRules||n&&n.pluralRules,_;_=(()=>{r&&fb(null);const H={version:Az,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:b,pluralRules:w,missing:p===null?void 0:p,missingWarn:c,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:g,escapeParameter:y,messageResolver:t.messageResolver,__meta:{framework:"vue"}};H.datetimeFormats=l.value,H.numberFormats=u.value,H.__datetimeFormatters=Be(_)?_.__datetimeFormatters:void 0,H.__numberFormatters=Be(_)?_.__numberFormatters:void 0;const q=Cz(H);return r&&fb(q),q})(),oo(_,i.value,o.value);function E(){return[i.value,o.value,s.value,l.value,u.value]}const I=V({get:()=>i.value,set:H=>{i.value=H,_.locale=i.value}}),T=V({get:()=>o.value,set:H=>{o.value=H,_.fallbackLocale=o.value,oo(_,i.value,H)}}),N=V(()=>s.value),R=V(()=>l.value),F=V(()=>u.value);function L(){return It(m)?m:null}function j(H){m=H,_.postTranslation=H}function D(){return f}function P(H){H!==null&&(p=Sb(H)),f=H,_.missing=p}const O=(H,q,ue,ae,fe,we)=>{E();let xe;if(__INTLIFY_PROD_DEVTOOLS__)try{cb(Mz()),r||(_.fallbackContext=n?_z():void 0),xe=H(_)}finally{cb(null),r||(_.fallbackContext=void 0)}else xe=H(_);if(Dt(xe)&&xe===ju){const[Pe,oe]=q();return n&&v?ae(n):fe(Pe)}else{if(we(xe))return xe;throw Ft(Rt.UNEXPECTED_RETURN_TYPE)}};function M(...H){return O(q=>Reflect.apply(hb,null,[q,...H]),()=>Gf(...H),"translate",q=>Reflect.apply(q.t,q,[...H]),q=>q,q=>Ee(q))}function $(...H){const[q,ue,ae]=H;if(ae&&!ut(ae))throw Ft(Rt.INVALID_ARGUMENT);return M(q,ue,Kt({resolvedMessage:!0},ae||{}))}function G(...H){return O(q=>Reflect.apply(gb,null,[q,...H]),()=>qf(...H),"datetime format",q=>Reflect.apply(q.d,q,[...H]),()=>lb,q=>Ee(q))}function J(...H){return O(q=>Reflect.apply(yb,null,[q,...H]),()=>Yf(...H),"number format",q=>Reflect.apply(q.n,q,[...H]),()=>lb,q=>Ee(q))}function Z(H){return H.map(q=>Ee(q)||Dt(q)||Ge(q)?wb(String(q)):q)}const Y={normalize:Z,interpolate:H=>H,type:"vnode"};function ne(...H){return O(q=>{let ue;const ae=q;try{ae.processor=Y,ue=Reflect.apply(hb,null,[ae,...H])}finally{ae.processor=null}return ue},()=>Gf(...H),"translate",q=>q[Jf](...H),q=>[wb(q)],q=>gt(q))}function le(...H){return O(q=>Reflect.apply(yb,null,[q,...H]),()=>Yf(...H),"number format",q=>q[Zf](...H),()=>[],q=>Ee(q)||gt(q))}function ge(...H){return O(q=>Reflect.apply(gb,null,[q,...H]),()=>qf(...H),"datetime format",q=>q[Xf](...H),()=>[],q=>Ee(q)||gt(q))}function _e(H){w=H,_.pluralRules=w}function me(H,q){const ue=Ee(q)?q:i.value,ae=B(ue);return _.messageResolver(ae,H)!==null}function ye(H){let q=null;const ue=SS(_,o.value,i.value);for(let ae=0;ae{a&&(i.value=H,_.locale=H,oo(_,i.value,o.value))}),pe(n.fallbackLocale,H=>{a&&(o.value=H,_.fallbackLocale=H,oo(_,i.value,o.value))}));const Q={id:Cb,locale:I,fallbackLocale:T,get inheritLocale(){return a},set inheritLocale(H){a=H,H&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,oo(_,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:N,get modifiers(){return b},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return c},set missingWarn(H){c=H,_.missingWarn=c},get fallbackWarn(){return d},set fallbackWarn(H){d=H,_.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(H){v=H},get fallbackFormat(){return h},set fallbackFormat(H){h=H,_.fallbackFormat=h},get warnHtmlMessage(){return g},set warnHtmlMessage(H){g=H,_.warnHtmlMessage=H},get escapeParameter(){return y},set escapeParameter(H){y=H,_.escapeParameter=H},t:M,getLocaleMessage:B,setLocaleMessage:x,mergeLocaleMessage:A,getPostTranslationHandler:L,setPostTranslationHandler:j,getMissingHandler:D,setMissingHandler:P,[$S]:_e};return Q.datetimeFormats=R,Q.numberFormats=F,Q.rt=$,Q.te=me,Q.tm=Se,Q.d=G,Q.n=J,Q.getDateTimeFormat=W,Q.setDateTimeFormat=K,Q.mergeDateTimeFormat=U,Q.getNumberFormat=se,Q.setNumberFormat=ie,Q.mergeNumberFormat=re,Q[DS]=t.__injectWithOption,Q[Jf]=ne,Q[Xf]=ge,Q[Zf]=le,Q}function kz(t){const e=Ee(t.locale)?t.locale:ys,n=Ee(t.fallbackLocale)||gt(t.fallbackLocale)||Be(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=It(t.missing)?t.missing:void 0,a=Ge(t.silentTranslationWarn)||la(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Ge(t.silentFallbackWarn)||la(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Ge(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=Be(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,c=It(t.postTranslation)?t.postTranslation:void 0,d=Ee(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,v=!!t.escapeParameterHtml,h=Ge(t.sync)?t.sync:!0;let f=t.messages;if(Be(t.sharedMessages)){const _=t.sharedMessages;f=Object.keys(_).reduce((E,I)=>{const T=E[I]||(E[I]={});return Kt(T,_[I]),E},f||{})}const{__i18n:p,__root:m,__injectWithOption:g}=t,y=t.datetimeFormats,b=t.numberFormats,w=t.flatJson;return{locale:e,fallbackLocale:n,messages:f,flatJson:w,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:v,messageResolver:t.messageResolver,inheritLocale:h,__i18n:p,__root:m,__injectWithOption:g}}function ed(t={},e){{const n=vp(kz(t)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return Ge(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Ge(a)?!a:a},get silentFallbackWarn(){return Ge(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Ge(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,o,s]=a,l={};let u=null,c=null;if(!Ee(i))throw Ft(Rt.INVALID_ARGUMENT);const d=i;return Ee(o)?l.locale=o:gt(o)?u=o:Be(o)&&(c=o),gt(s)?u=s:Be(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let u=null,c=null;if(!Ee(i))throw Ft(Rt.INVALID_ARGUMENT);const d=i;return Ee(o)?l.locale=o:Dt(o)?l.plural=o:gt(o)?u=o:Be(o)&&(c=o),Ee(s)?l.locale=s:gt(s)?u=s:Be(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,r)}};return r}}const pp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Nz({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>[...r,...a.type===Re?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function BS(t){return Re}const Rz=he({name:"i18n-t",props:Kt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Dt(t)||!isNaN(t)}},pp),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||hp({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=Ee(t.plural)?+t.plural:t.plural);const s=Nz(e,i),l=a[Jf](t.keypath,s,o),u=Kt({},r),c=Ee(t.tag)||ut(t.tag)?t.tag:BS();return sa(c,u,l)}}}),xb=Rz;function $z(t){return gt(t)&&!Ee(t[0])}function zS(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),Ee(t.format)?o.key=t.format:ut(t.format)&&(Ee(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((v,h)=>n.includes(h)?Kt({},v,{[h]:t.format[h]}):v,{}));const l=r(t.value,o,s);let u=[o.key];gt(l)?u=l.map((v,h)=>{const f=a[v.type],p=f?f({[v.type]:v.value,index:h,parts:l}):[v.value];return $z(p)&&(p[0].key=`${v.type}-${h}`),p}):Ee(l)&&(u=[l]);const c=Kt({},i),d=Ee(t.tag)||ut(t.tag)?t.tag:BS();return sa(d,c,u)}}const Dz=he({name:"i18n-n",props:Kt({value:{type:Number,required:!0},format:{type:[String,Object]}},pp),setup(t,e){const n=t.i18n||hp({useScope:"parent",__useComponent:!0});return zS(t,e,NS,(...r)=>n[Zf](...r))}}),Tb=Dz,Lz=he({name:"i18n-d",props:Kt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pp),setup(t,e){const n=t.i18n||hp({useScope:"parent",__useComponent:!0});return zS(t,e,kS,(...r)=>n[Xf](...r))}}),Eb=Lz;function Fz(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function Bz(t){const e=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw Ft(Rt.UNEXPECTED_ERROR);const c=Fz(t,s.$),d=Ob(u);return[Reflect.apply(c.t,c,[...Pb(d)]),c]};return{created:(o,s)=>{const[l,u]=e(s);Uf&&t.global===u&&(o.__i18nWatcher=pe(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Uf&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=Ob(s);o.textContent=Reflect.apply(l.t,l,[...Pb(u)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Ob(t){if(Ee(t))return{path:t};if(Be(t)){if(!("path"in t))throw Ft(Rt.REQUIRED_VALUE,"path");return t}else throw Ft(Rt.INVALID_VALUE)}function Pb(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},s=r||{};return Ee(n)&&(o.locale=n),Dt(a)&&(o.plural=a),Dt(i)&&(o.plural=i),[e,s,o]}function zz(t,e,...n){const r=Be(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Ge(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":xb.name,xb),t.component(Tb.name,Tb),t.component(Eb.name,Eb)),t.directive("t",Bz(e))}function jz(t,e,n){return{beforeCreate(){const r=Pt();if(!r)throw Ft(Rt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=Ab(t,i):(i.__injectWithOption=!0,this.$i18n=ed(i))}else a.__i18n?this===this.$root?this.$i18n=Ab(t,a):this.$i18n=ed({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&FS(e,a,a),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const r=Pt();if(!r)throw Ft(Rt.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Ab(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[$S](e.pluralizationRules||t.pluralizationRules);const n=Wu(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const Wz=Ga("global-vue-i18n");function Hz(t={},e){const n=__VUE_I18N_LEGACY_API__&&Ge(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Ge(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,s]=Vz(t,n),l=Ga("");function u(v){return i.get(v)||null}function c(v,h){i.set(v,h)}function d(v){i.delete(v)}{const v={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...f){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,v),Be(f[0])){const m=f[0];v.__composerExtend=m.__composerExtend,v.__vueI18nExtend=m.__vueI18nExtend}!n&&r&&ej(h,v.global),__VUE_I18N_FULL_INSTALL__&&zz(h,v,...f),__VUE_I18N_LEGACY_API__&&n&&h.mixin(jz(s,s.__composer,v));const p=h.unmount;h.unmount=()=>{v.dispose(),p()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:c,__deleteInstance:d};return v}}function hp(t={}){const e=Pt();if(e==null)throw Ft(Rt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ft(Rt.NOT_INSTALLED);const n=Uz(e),r=Gz(n),a=LS(e),i=Kz(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Ft(Rt.NOT_AVAILABLE_IN_LEGACY_MODE);return Xz(e,i,r,t)}if(i==="global")return FS(r,t,a),r;if(i==="parent"){let l=qz(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(e);if(s==null){const l=Kt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=vp(l),o.__composerExtend&&o.__composerExtend(s),Jz(o,e),o.__setInstance(e,s)}return s}function Vz(t,e,n){const r=bd();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>ed(t)):r.run(()=>vp(t));if(a==null)throw Ft(Rt.UNEXPECTED_ERROR);return[r,a]}}function Uz(t){{const e=ot(t.isCE?Wz:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ft(t.isCE?Rt.NOT_INSTALLED_WITH_PROVIDE:Rt.UNEXPECTED_ERROR);return e}}function Kz(t,e){return Bu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Gz(t){return t.mode==="composition"?t.global:t.global.__composer}function qz(t,e,n=!1){let r=null;const a=e.root;let i=Yz(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(r=s.__composer,n&&r&&!r[DS]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function Yz(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function Jz(t,e,n){Ve(()=>{},e),vn(()=>{t.__deleteInstance(e)},e)}function Xz(t,e,n,r={}){const a=e==="local",i=Qn(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Ft(Rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Ge(r.inheritLocale)?r.inheritLocale:!Ee(r.locale),s=z(!a||o?n.locale.value:Ee(r.locale)?r.locale:ys),l=z(!a||o?n.fallbackLocale.value:Ee(r.fallbackLocale)||gt(r.fallbackLocale)||Be(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=z(Wu(s.value,r)),c=z(Be(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=z(Be(r.numberFormats)?r.numberFormats:{[s.value]:{}}),v=a?n.missingWarn:Ge(r.missingWarn)||la(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:Ge(r.fallbackWarn)||la(r.fallbackWarn)?r.fallbackWarn:!0,f=a?n.fallbackRoot:Ge(r.fallbackRoot)?r.fallbackRoot:!0,p=!!r.fallbackFormat,m=It(r.missing)?r.missing:null,g=It(r.postTranslation)?r.postTranslation:null,y=a?n.warnHtmlMessage:Ge(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,w=a?n.modifiers:Be(r.modifiers)?r.modifiers:{},_=r.pluralRules||a&&n.pluralRules;function C(){return[s.value,l.value,u.value,c.value,d.value]}const E=V({get:()=>i.value?i.value.locale.value:s.value,set:A=>{i.value&&(i.value.locale.value=A),s.value=A}}),I=V({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:A=>{i.value&&(i.value.fallbackLocale.value=A),l.value=A}}),T=V(()=>i.value?i.value.messages.value:u.value),N=V(()=>c.value),R=V(()=>d.value);function F(){return i.value?i.value.getPostTranslationHandler():g}function L(A){i.value&&i.value.setPostTranslationHandler(A)}function j(){return i.value?i.value.getMissingHandler():m}function D(A){i.value&&i.value.setMissingHandler(A)}function P(A){return C(),A()}function O(...A){return i.value?P(()=>Reflect.apply(i.value.t,null,[...A])):P(()=>"")}function M(...A){return i.value?Reflect.apply(i.value.rt,null,[...A]):""}function $(...A){return i.value?P(()=>Reflect.apply(i.value.d,null,[...A])):P(()=>"")}function G(...A){return i.value?P(()=>Reflect.apply(i.value.n,null,[...A])):P(()=>"")}function J(A){return i.value?i.value.tm(A):{}}function Z(A,W){return i.value?i.value.te(A,W):!1}function X(A){return i.value?i.value.getLocaleMessage(A):{}}function Y(A,W){i.value&&(i.value.setLocaleMessage(A,W),u.value[A]=W)}function ne(A,W){i.value&&i.value.mergeLocaleMessage(A,W)}function le(A){return i.value?i.value.getDateTimeFormat(A):{}}function ge(A,W){i.value&&(i.value.setDateTimeFormat(A,W),c.value[A]=W)}function _e(A,W){i.value&&i.value.mergeDateTimeFormat(A,W)}function me(A){return i.value?i.value.getNumberFormat(A):{}}function ye(A,W){i.value&&(i.value.setNumberFormat(A,W),d.value[A]=W)}function Se(A,W){i.value&&i.value.mergeNumberFormat(A,W)}const B={get id(){return i.value?i.value.id:-1},locale:E,fallbackLocale:I,messages:T,datetimeFormats:N,numberFormats:R,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(A){i.value&&(i.value.inheritLocale=A)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:w},get pluralRules(){return i.value?i.value.pluralRules:_},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackRoot(){return i.value?i.value.fallbackRoot:f},set fallbackRoot(A){i.value&&(i.value.fallbackRoot=A)},get fallbackFormat(){return i.value?i.value.fallbackFormat:p},set fallbackFormat(A){i.value&&(i.value.fallbackFormat=A)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(A){i.value&&(i.value.warnHtmlMessage=A)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(A){i.value&&(i.value.escapeParameter=A)},t:O,getPostTranslationHandler:F,setPostTranslationHandler:L,getMissingHandler:j,setMissingHandler:D,rt:M,d:$,n:G,tm:J,te:Z,getLocaleMessage:X,setLocaleMessage:Y,mergeLocaleMessage:ne,getDateTimeFormat:le,setDateTimeFormat:ge,mergeDateTimeFormat:_e,getNumberFormat:me,setNumberFormat:ye,mergeNumberFormat:Se};function x(A){A.locale.value=s.value,A.fallbackLocale.value=l.value,Object.keys(u.value).forEach(W=>{A.mergeLocaleMessage(W,u.value[W])}),Object.keys(c.value).forEach(W=>{A.mergeDateTimeFormat(W,c.value[W])}),Object.keys(d.value).forEach(W=>{A.mergeNumberFormat(W,d.value[W])}),A.escapeParameter=b,A.fallbackFormat=p,A.fallbackRoot=f,A.fallbackWarn=h,A.missingWarn=v,A.warnHtmlMessage=y}return Rd(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Ft(Rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const A=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=A.locale.value,l.value=A.fallbackLocale.value,u.value=A.messages.value,c.value=A.datetimeFormats.value,d.value=A.numberFormats.value):a&&x(A)}),B}const Zz=["locale","fallbackLocale","availableLocales"],Qz=["t","rt","d","n","tm","te"];function ej(t,e){const n=Object.create(null);Zz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw Ft(Rt.UNEXPECTED_ERROR);const i=dt(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,Qz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw Ft(Rt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}mz(xz);yz(QB);bz(SS);Iz();if(__INTLIFY_PROD_DEVTOOLS__){const t=Oo();t.__INTLIFY__=!0,lz(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Ib={tryMyLuck:"试试手气",randomImage:"随机图像",randomImageSettings:"随机图像设置",showRandomImageInStartup:"在启动页面显示随机图像",showRandomImageInStartupDesc:"控制随机图像选项是否在启动页面显示",randomImageSettingNotification:"提示:您可以在全局设置页面中控制是否在启动页面显示随机图像选项",shuffle:"换一批",pathOnly:"仅路径",takeEffectAfterReloadPage:"更改将在重新加载页面后生效",disableMaximize:"禁用最大化",compressFile:"对文件压缩",packOnlyNotDownload:"仅打包不下载",notAllowSingleCtrlOrShiftAsShortcut:"不允许使用单独的 Ctrl 或者 Shift 作为快捷键",conflictWithOtherShortcuts:"与其他快捷键冲突",pinnedSearchHistoryDesc:"你可以通过点击置顶的搜索历史来快速还原到之前的搜索状态",addNewCustomTag:"添加新的自定义标签",clearCacheIfNotTakeEffect:"如果更改没有生效,请尝试清理页面缓存",showTiktokNavigator:"显示导航按钮",showTiktokNavigatorDesc:"在 TikTok 视图中显示导航按钮(上/下箭头)",topicSearchExperimental:"自然语言分类&搜索(实验性)",topicSearchTitleExperimental:"自然语言分类 & 搜索(实验性)",topicSearchScope:"范围",topicSearchNeedScope:"请先选择向量化范围(文件夹)",topicSearchQueryPlaceholder:"输入一句话,召回相似图片(RAG 召回)",topicSearchOpenResults:"打开结果",topicSearchThreshold:"阈值",topicSearchMinClusterSize:"最小组",topicSearchEmptyNoScope:"请先选择范围,然后刷新/归类",topicSearchEmptyNoTopics:"暂无主题结果(可尝试降低“最小组”或调整“阈值”)",topicSearchChooseScope:"选择范围",topicSearchRefreshAndCluster:"刷新/归类",topicSearchScopeModalTitle:"选择向量化范围(文件夹)",topicSearchScopeTip:"默认不启用任何范围;必须选择后才能归类/搜索。范围来源于 QuickMovePaths。",topicSearchSavingToBackend:"正在保存到后端...",topicSearchScopePlaceholder:"选择文件夹(可多选)",topicSearchRecallMsg:"召回 {0} / {1}(TopK={2})",topicSearchCacheStale:"已显示缓存结果(可更新)",topicSearchCacheStaleDesc:"检测到范围内文件夹可能有变更,缓存可能已过期。可点击更新重新生成主题(会先更新索引)。",topicSearchCacheUpdate:"更新缓存",topicSearchGuideTitle:"快速上手(实验性)",topicSearchGuideStep1:"选择要分析的文件夹范围(可多选)",topicSearchGuideStep2:"点击刷新,生成主题卡片(会增量向量化)",topicSearchGuideStep3:"输入一句话搜索,会召回相似图片并打开结果页",topicSearchGuideAdvantage1:"基于语义相似度自动分组:AI自动发现相似主题,无需手动分类",topicSearchGuideAdvantage2:"自然语言语义检索:用一句话快速找到相关图片,类似RAG检索",topicSearchGuideEmptyReasonNoScope:"当前为空:未选择范围(已默认关闭),请先点“范围”选择文件夹",topicSearchGuideEmptyReasonNoTopics:"当前为空:该范围内还未生成主题(可点刷新,或调低最小组/阈值)",topicSearchRequirementsTitle:"使用前置条件",topicSearchRequirementsOpenai:"必须配置:OPENAI_BASE_URL、OPENAI_API_KEY(后端环境变量)",topicSearchRequirementsDepsPython:"必须安装:Python 依赖 numpy、hnswlib(缺少则功能不可用)",topicSearchRequirementsDepsDesktop:"桌面客户端:已内置依赖(无需手动安装 numpy/hnswlib)",topicSearchRequirementsInstallCmd:"安装命令:pip install numpy hnswlib",topicSearchJobFailed:"任务失败",topicSearchJobStage:"阶段",topicSearchJobQueued:"已提交任务,准备开始…",topicSearchJobStageEmbedding:"向量化中(Embedding)",topicSearchJobStageClustering:"归类中(Clustering)",topicSearchJobStageTitling:"生成标题中(LLM)",topicSearchJobStageDone:"完成",topicSearchJobStageError:"失败",topicSearchJobEmbeddingDesc:"已向量化 {0}/{1}(扫描 {2});当前:{3}",topicSearchJobClusteringDesc:"正在归类 {0}/{1}",topicSearchJobTitlingDesc:"正在生成标题 {0}/{1}",success:"成功",setCurrFrameAsVideoPoster:"设置当前帧为视频封面",sync:"同步",syncDesc:"当你需要实现多设备或者多用户之间的简单设置隔离时你可以关闭这个选项, IIB的大部分设置将只会保存到当前浏览器上(跨域的情况下也是隔离),不会同步到服务器",readonlyModeSettingPageDesc:"当前为只读模式,你可以调整调整设置,但这些更改不会被保存",syncHistoryToLocal:"同步历史到本地",showCommaInGenInfoPanel:"在生成信息面板中显示逗号",walkModeAutoRefreshDisabled:"Walk模式下自动刷新已停用",disable:"停用",autoRefresh:"自动刷新",autoRefreshNormalFixedMode:"启用自动刷新 (Normal/Fixed模式)",autoRefreshWalkMode:"启用自动刷新 (Walk模式)",autoRefreshWalkModePosLimit:"Walk模式下触发自动刷新的位置极限",pollRefresh:"轮询刷新",pollInterval:"轮询间隔",stopPollRefresh:"停止轮询刷新",pollRefreshTip:"默认情况下你从其他TAB返回IIB时或者IIB的可见性发生改变时IIB都会自动刷新。这个功能是为了让你一直呆在IIB内时他也能自动刷新,请慎重使用",restoreLastWorkspaceStateSuccess:"成功恢复上次工作区状态",restoreWorkspaceSnapshotSuccess:"成功恢复工作区快照",openOnAppStart:"启动时打开",confirmThisAction:"确认这个操作?",saveWorkspaceSnapshot:"保存工作区快照",WorkspaceSnapshot:"工作区快照",restoreLastWorkspaceState:"恢复上次工作区状态",restoreWorkspaceSnapshot:"恢复工作区快照: {0}",WorkspaceSnapshotDesc:`使用工作区快照功能你可以保存当前工作区的状态,以便下次打开IIB时快速恢复到当前状态。 + */const Az="9.3.0-beta.19";function Iz(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Oo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Oo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Oo().__INTLIFY_PROD_DEVTOOLS__=!1)}let RS=rt.__EXTEND_POINT__;const gn=()=>++RS,Rt={UNEXPECTED_RETURN_TYPE:RS,INVALID_ARGUMENT:gn(),MUST_BE_CALL_SETUP_TOP:gn(),NOT_INSTALLED:gn(),NOT_AVAILABLE_IN_LEGACY_MODE:gn(),REQUIRED_VALUE:gn(),INVALID_VALUE:gn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:gn(),NOT_INSTALLED_WITH_PROVIDE:gn(),UNEXPECTED_ERROR:gn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:gn(),BRIDGE_SUPPORT_VUE_2_ONLY:gn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:gn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:gn(),__EXTEND_POINT__:gn()};function Ft(t,...e){return zu(t,null,void 0)}const Jf=Ga("__translateVNode"),Xf=Ga("__datetimeParts"),Zf=Ga("__numberParts"),$S=Ga("__setPluralRules"),DS=Ga("__injectWithOption");function Qf(t){if(!ut(t))return t;for(const e in t)if(cp(t,e))if(!e.includes("."))ut(t[e])&&Qf(t[e]);else{const n=e.split("."),r=n.length-1;let a=t;for(let i=0;i{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Po(u,o[l])):Po(u,o)}else Ee(s)&&Po(JSON.parse(s),o)}),a==null&&i)for(const s in o)cp(o,s)&&Qf(o[s]);return o}const Gs=t=>!ut(t)||gt(t);function Po(t,e){if(Gs(t)||Gs(e))throw Ft(Rt.INVALID_VALUE);for(const n in t)cp(t,n)&&(Gs(t[n])||Gs(e[n])?e[n]=t[n]:Po(t[n],e[n]))}function LS(t){return t.type}function FS(t,e,n){let r=ut(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Wu(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(ut(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(ut(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function wb(t){return S(Wa,null,t,0)}const _b="__INTLIFY_META__";let Cb=0;function Sb(t){return(e,n,r,a)=>t(n,r,Pt()||void 0,a)}const kz=()=>{const t=Pt();let e=null;return t&&(e=LS(t)[_b])?{[_b]:e}:null};function vp(t={},e){const{__root:n}=t,r=n===void 0;let a=Ge(t.inheritLocale)?t.inheritLocale:!0;const i=z(n&&a?n.locale.value:Ee(t.locale)?t.locale:ys),o=z(n&&a?n.fallbackLocale.value:Ee(t.fallbackLocale)||gt(t.fallbackLocale)||Be(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=z(Wu(i.value,t)),l=z(Be(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=z(Be(t.numberFormats)?t.numberFormats:{[i.value]:{}});let c=n?n.missingWarn:Ge(t.missingWarn)||la(t.missingWarn)?t.missingWarn:!0,d=n?n.fallbackWarn:Ge(t.fallbackWarn)||la(t.fallbackWarn)?t.fallbackWarn:!0,v=n?n.fallbackRoot:Ge(t.fallbackRoot)?t.fallbackRoot:!0,h=!!t.fallbackFormat,f=It(t.missing)?t.missing:null,p=It(t.missing)?Sb(t.missing):null,m=It(t.postTranslation)?t.postTranslation:null,g=n?n.warnHtmlMessage:Ge(t.warnHtmlMessage)?t.warnHtmlMessage:!0,y=!!t.escapeParameter;const b=n?n.modifiers:Be(t.modifiers)?t.modifiers:{};let w=t.pluralRules||n&&n.pluralRules,_;_=(()=>{r&&fb(null);const H={version:Az,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:b,pluralRules:w,missing:p===null?void 0:p,missingWarn:c,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:g,escapeParameter:y,messageResolver:t.messageResolver,__meta:{framework:"vue"}};H.datetimeFormats=l.value,H.numberFormats=u.value,H.__datetimeFormatters=Be(_)?_.__datetimeFormatters:void 0,H.__numberFormatters=Be(_)?_.__numberFormatters:void 0;const q=Cz(H);return r&&fb(q),q})(),oo(_,i.value,o.value);function E(){return[i.value,o.value,s.value,l.value,u.value]}const I=V({get:()=>i.value,set:H=>{i.value=H,_.locale=i.value}}),T=V({get:()=>o.value,set:H=>{o.value=H,_.fallbackLocale=o.value,oo(_,i.value,H)}}),N=V(()=>s.value),R=V(()=>l.value),F=V(()=>u.value);function L(){return It(m)?m:null}function j(H){m=H,_.postTranslation=H}function D(){return f}function P(H){H!==null&&(p=Sb(H)),f=H,_.missing=p}const O=(H,q,ue,ae,fe,we)=>{E();let xe;if(__INTLIFY_PROD_DEVTOOLS__)try{cb(kz()),r||(_.fallbackContext=n?_z():void 0),xe=H(_)}finally{cb(null),r||(_.fallbackContext=void 0)}else xe=H(_);if(Dt(xe)&&xe===ju){const[Pe,oe]=q();return n&&v?ae(n):fe(Pe)}else{if(we(xe))return xe;throw Ft(Rt.UNEXPECTED_RETURN_TYPE)}};function k(...H){return O(q=>Reflect.apply(hb,null,[q,...H]),()=>Gf(...H),"translate",q=>Reflect.apply(q.t,q,[...H]),q=>q,q=>Ee(q))}function $(...H){const[q,ue,ae]=H;if(ae&&!ut(ae))throw Ft(Rt.INVALID_ARGUMENT);return k(q,ue,Kt({resolvedMessage:!0},ae||{}))}function G(...H){return O(q=>Reflect.apply(gb,null,[q,...H]),()=>qf(...H),"datetime format",q=>Reflect.apply(q.d,q,[...H]),()=>lb,q=>Ee(q))}function J(...H){return O(q=>Reflect.apply(yb,null,[q,...H]),()=>Yf(...H),"number format",q=>Reflect.apply(q.n,q,[...H]),()=>lb,q=>Ee(q))}function Z(H){return H.map(q=>Ee(q)||Dt(q)||Ge(q)?wb(String(q)):q)}const Y={normalize:Z,interpolate:H=>H,type:"vnode"};function ne(...H){return O(q=>{let ue;const ae=q;try{ae.processor=Y,ue=Reflect.apply(hb,null,[ae,...H])}finally{ae.processor=null}return ue},()=>Gf(...H),"translate",q=>q[Jf](...H),q=>[wb(q)],q=>gt(q))}function le(...H){return O(q=>Reflect.apply(yb,null,[q,...H]),()=>Yf(...H),"number format",q=>q[Zf](...H),()=>[],q=>Ee(q)||gt(q))}function ge(...H){return O(q=>Reflect.apply(gb,null,[q,...H]),()=>qf(...H),"datetime format",q=>q[Xf](...H),()=>[],q=>Ee(q)||gt(q))}function _e(H){w=H,_.pluralRules=w}function me(H,q){const ue=Ee(q)?q:i.value,ae=B(ue);return _.messageResolver(ae,H)!==null}function ye(H){let q=null;const ue=SS(_,o.value,i.value);for(let ae=0;ae{a&&(i.value=H,_.locale=H,oo(_,i.value,o.value))}),pe(n.fallbackLocale,H=>{a&&(o.value=H,_.fallbackLocale=H,oo(_,i.value,o.value))}));const Q={id:Cb,locale:I,fallbackLocale:T,get inheritLocale(){return a},set inheritLocale(H){a=H,H&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,oo(_,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:N,get modifiers(){return b},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return c},set missingWarn(H){c=H,_.missingWarn=c},get fallbackWarn(){return d},set fallbackWarn(H){d=H,_.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(H){v=H},get fallbackFormat(){return h},set fallbackFormat(H){h=H,_.fallbackFormat=h},get warnHtmlMessage(){return g},set warnHtmlMessage(H){g=H,_.warnHtmlMessage=H},get escapeParameter(){return y},set escapeParameter(H){y=H,_.escapeParameter=H},t:k,getLocaleMessage:B,setLocaleMessage:x,mergeLocaleMessage:A,getPostTranslationHandler:L,setPostTranslationHandler:j,getMissingHandler:D,setMissingHandler:P,[$S]:_e};return Q.datetimeFormats=R,Q.numberFormats=F,Q.rt=$,Q.te=me,Q.tm=Se,Q.d=G,Q.n=J,Q.getDateTimeFormat=W,Q.setDateTimeFormat=K,Q.mergeDateTimeFormat=U,Q.getNumberFormat=se,Q.setNumberFormat=ie,Q.mergeNumberFormat=re,Q[DS]=t.__injectWithOption,Q[Jf]=ne,Q[Xf]=ge,Q[Zf]=le,Q}function Mz(t){const e=Ee(t.locale)?t.locale:ys,n=Ee(t.fallbackLocale)||gt(t.fallbackLocale)||Be(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=It(t.missing)?t.missing:void 0,a=Ge(t.silentTranslationWarn)||la(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Ge(t.silentFallbackWarn)||la(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Ge(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=Be(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,c=It(t.postTranslation)?t.postTranslation:void 0,d=Ee(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,v=!!t.escapeParameterHtml,h=Ge(t.sync)?t.sync:!0;let f=t.messages;if(Be(t.sharedMessages)){const _=t.sharedMessages;f=Object.keys(_).reduce((E,I)=>{const T=E[I]||(E[I]={});return Kt(T,_[I]),E},f||{})}const{__i18n:p,__root:m,__injectWithOption:g}=t,y=t.datetimeFormats,b=t.numberFormats,w=t.flatJson;return{locale:e,fallbackLocale:n,messages:f,flatJson:w,datetimeFormats:y,numberFormats:b,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:v,messageResolver:t.messageResolver,inheritLocale:h,__i18n:p,__root:m,__injectWithOption:g}}function ed(t={},e){{const n=vp(Mz(t)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return Ge(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=Ge(a)?!a:a},get silentFallbackWarn(){return Ge(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=Ge(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,o,s]=a,l={};let u=null,c=null;if(!Ee(i))throw Ft(Rt.INVALID_ARGUMENT);const d=i;return Ee(o)?l.locale=o:gt(o)?u=o:Be(o)&&(c=o),gt(s)?u=s:Be(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let u=null,c=null;if(!Ee(i))throw Ft(Rt.INVALID_ARGUMENT);const d=i;return Ee(o)?l.locale=o:Dt(o)?l.plural=o:gt(o)?u=o:Be(o)&&(c=o),Ee(s)?l.locale=s:gt(s)?u=s:Be(s)&&(c=s),Reflect.apply(n.t,n,[d,u||c||{},l])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,r)}};return r}}const pp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Nz({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,a)=>[...r,...a.type===Re?a.children:[a]],[]):e.reduce((n,r)=>{const a=t[r];return a&&(n[r]=a()),n},{})}function BS(t){return Re}const Rz=he({name:"i18n-t",props:Kt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Dt(t)||!isNaN(t)}},pp),setup(t,e){const{slots:n,attrs:r}=e,a=t.i18n||hp({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=Ee(t.plural)?+t.plural:t.plural);const s=Nz(e,i),l=a[Jf](t.keypath,s,o),u=Kt({},r),c=Ee(t.tag)||ut(t.tag)?t.tag:BS();return sa(c,u,l)}}}),xb=Rz;function $z(t){return gt(t)&&!Ee(t[0])}function zS(t,e,n,r){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),Ee(t.format)?o.key=t.format:ut(t.format)&&(Ee(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((v,h)=>n.includes(h)?Kt({},v,{[h]:t.format[h]}):v,{}));const l=r(t.value,o,s);let u=[o.key];gt(l)?u=l.map((v,h)=>{const f=a[v.type],p=f?f({[v.type]:v.value,index:h,parts:l}):[v.value];return $z(p)&&(p[0].key=`${v.type}-${h}`),p}):Ee(l)&&(u=[l]);const c=Kt({},i),d=Ee(t.tag)||ut(t.tag)?t.tag:BS();return sa(d,c,u)}}const Dz=he({name:"i18n-n",props:Kt({value:{type:Number,required:!0},format:{type:[String,Object]}},pp),setup(t,e){const n=t.i18n||hp({useScope:"parent",__useComponent:!0});return zS(t,e,NS,(...r)=>n[Zf](...r))}}),Tb=Dz,Lz=he({name:"i18n-d",props:Kt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pp),setup(t,e){const n=t.i18n||hp({useScope:"parent",__useComponent:!0});return zS(t,e,MS,(...r)=>n[Xf](...r))}}),Eb=Lz;function Fz(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function Bz(t){const e=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw Ft(Rt.UNEXPECTED_ERROR);const c=Fz(t,s.$),d=Ob(u);return[Reflect.apply(c.t,c,[...Pb(d)]),c]};return{created:(o,s)=>{const[l,u]=e(s);Uf&&t.global===u&&(o.__i18nWatcher=pe(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Uf&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=Ob(s);o.textContent=Reflect.apply(l.t,l,[...Pb(u)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Ob(t){if(Ee(t))return{path:t};if(Be(t)){if(!("path"in t))throw Ft(Rt.REQUIRED_VALUE,"path");return t}else throw Ft(Rt.INVALID_VALUE)}function Pb(t){const{path:e,locale:n,args:r,choice:a,plural:i}=t,o={},s=r||{};return Ee(n)&&(o.locale=n),Dt(a)&&(o.plural=a),Dt(i)&&(o.plural=i),[e,s,o]}function zz(t,e,...n){const r=Be(n[0])?n[0]:{},a=!!r.useI18nComponentName;(Ge(r.globalInstall)?r.globalInstall:!0)&&(t.component(a?"i18n":xb.name,xb),t.component(Tb.name,Tb),t.component(Eb.name,Eb)),t.directive("t",Bz(e))}function jz(t,e,n){return{beforeCreate(){const r=Pt();if(!r)throw Ft(Rt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=Ab(t,i):(i.__injectWithOption=!0,this.$i18n=ed(i))}else a.__i18n?this===this.$root?this.$i18n=Ab(t,a):this.$i18n=ed({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&FS(e,a,a),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),this!==this.$root&&!this.$i18n.__extended__&&n.__vueI18nExtend&&(n.__vueI18nExtend(this.$i18n),this.$i18n.__extended__=!0)},mounted(){},unmounted(){const r=Pt();if(!r)throw Ft(Rt.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Ab(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[$S](e.pluralizationRules||t.pluralizationRules);const n=Wu(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const Wz=Ga("global-vue-i18n");function Hz(t={},e){const n=__VUE_I18N_LEGACY_API__&&Ge(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Ge(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,i=new Map,[o,s]=Vz(t,n),l=Ga("");function u(v){return i.get(v)||null}function c(v,h){i.set(v,h)}function d(v){i.delete(v)}{const v={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...f){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,v),Be(f[0])){const m=f[0];v.__composerExtend=m.__composerExtend,v.__vueI18nExtend=m.__vueI18nExtend}!n&&r&&ej(h,v.global),__VUE_I18N_FULL_INSTALL__&&zz(h,v,...f),__VUE_I18N_LEGACY_API__&&n&&h.mixin(jz(s,s.__composer,v));const p=h.unmount;h.unmount=()=>{v.dispose(),p()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:c,__deleteInstance:d};return v}}function hp(t={}){const e=Pt();if(e==null)throw Ft(Rt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ft(Rt.NOT_INSTALLED);const n=Uz(e),r=Gz(n),a=LS(e),i=Kz(t,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Ft(Rt.NOT_AVAILABLE_IN_LEGACY_MODE);return Xz(e,i,r,t)}if(i==="global")return FS(r,t,a),r;if(i==="parent"){let l=qz(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(e);if(s==null){const l=Kt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=vp(l),o.__composerExtend&&o.__composerExtend(s),Jz(o,e),o.__setInstance(e,s)}return s}function Vz(t,e,n){const r=bd();{const a=__VUE_I18N_LEGACY_API__&&e?r.run(()=>ed(t)):r.run(()=>vp(t));if(a==null)throw Ft(Rt.UNEXPECTED_ERROR);return[r,a]}}function Uz(t){{const e=ot(t.isCE?Wz:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ft(t.isCE?Rt.NOT_INSTALLED_WITH_PROVIDE:Rt.UNEXPECTED_ERROR);return e}}function Kz(t,e){return Bu(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Gz(t){return t.mode==="composition"?t.global:t.global.__composer}function qz(t,e,n=!1){let r=null;const a=e.root;let i=Yz(e,n);for(;i!=null;){const o=t;if(t.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(r=s.__composer,n&&r&&!r[DS]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function Yz(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function Jz(t,e,n){Ve(()=>{},e),vn(()=>{t.__deleteInstance(e)},e)}function Xz(t,e,n,r={}){const a=e==="local",i=Qn(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Ft(Rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Ge(r.inheritLocale)?r.inheritLocale:!Ee(r.locale),s=z(!a||o?n.locale.value:Ee(r.locale)?r.locale:ys),l=z(!a||o?n.fallbackLocale.value:Ee(r.fallbackLocale)||gt(r.fallbackLocale)||Be(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=z(Wu(s.value,r)),c=z(Be(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=z(Be(r.numberFormats)?r.numberFormats:{[s.value]:{}}),v=a?n.missingWarn:Ge(r.missingWarn)||la(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:Ge(r.fallbackWarn)||la(r.fallbackWarn)?r.fallbackWarn:!0,f=a?n.fallbackRoot:Ge(r.fallbackRoot)?r.fallbackRoot:!0,p=!!r.fallbackFormat,m=It(r.missing)?r.missing:null,g=It(r.postTranslation)?r.postTranslation:null,y=a?n.warnHtmlMessage:Ge(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,w=a?n.modifiers:Be(r.modifiers)?r.modifiers:{},_=r.pluralRules||a&&n.pluralRules;function C(){return[s.value,l.value,u.value,c.value,d.value]}const E=V({get:()=>i.value?i.value.locale.value:s.value,set:A=>{i.value&&(i.value.locale.value=A),s.value=A}}),I=V({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:A=>{i.value&&(i.value.fallbackLocale.value=A),l.value=A}}),T=V(()=>i.value?i.value.messages.value:u.value),N=V(()=>c.value),R=V(()=>d.value);function F(){return i.value?i.value.getPostTranslationHandler():g}function L(A){i.value&&i.value.setPostTranslationHandler(A)}function j(){return i.value?i.value.getMissingHandler():m}function D(A){i.value&&i.value.setMissingHandler(A)}function P(A){return C(),A()}function O(...A){return i.value?P(()=>Reflect.apply(i.value.t,null,[...A])):P(()=>"")}function k(...A){return i.value?Reflect.apply(i.value.rt,null,[...A]):""}function $(...A){return i.value?P(()=>Reflect.apply(i.value.d,null,[...A])):P(()=>"")}function G(...A){return i.value?P(()=>Reflect.apply(i.value.n,null,[...A])):P(()=>"")}function J(A){return i.value?i.value.tm(A):{}}function Z(A,W){return i.value?i.value.te(A,W):!1}function X(A){return i.value?i.value.getLocaleMessage(A):{}}function Y(A,W){i.value&&(i.value.setLocaleMessage(A,W),u.value[A]=W)}function ne(A,W){i.value&&i.value.mergeLocaleMessage(A,W)}function le(A){return i.value?i.value.getDateTimeFormat(A):{}}function ge(A,W){i.value&&(i.value.setDateTimeFormat(A,W),c.value[A]=W)}function _e(A,W){i.value&&i.value.mergeDateTimeFormat(A,W)}function me(A){return i.value?i.value.getNumberFormat(A):{}}function ye(A,W){i.value&&(i.value.setNumberFormat(A,W),d.value[A]=W)}function Se(A,W){i.value&&i.value.mergeNumberFormat(A,W)}const B={get id(){return i.value?i.value.id:-1},locale:E,fallbackLocale:I,messages:T,datetimeFormats:N,numberFormats:R,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(A){i.value&&(i.value.inheritLocale=A)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:w},get pluralRules(){return i.value?i.value.pluralRules:_},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackRoot(){return i.value?i.value.fallbackRoot:f},set fallbackRoot(A){i.value&&(i.value.fallbackRoot=A)},get fallbackFormat(){return i.value?i.value.fallbackFormat:p},set fallbackFormat(A){i.value&&(i.value.fallbackFormat=A)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(A){i.value&&(i.value.warnHtmlMessage=A)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(A){i.value&&(i.value.escapeParameter=A)},t:O,getPostTranslationHandler:F,setPostTranslationHandler:L,getMissingHandler:j,setMissingHandler:D,rt:k,d:$,n:G,tm:J,te:Z,getLocaleMessage:X,setLocaleMessage:Y,mergeLocaleMessage:ne,getDateTimeFormat:le,setDateTimeFormat:ge,mergeDateTimeFormat:_e,getNumberFormat:me,setNumberFormat:ye,mergeNumberFormat:Se};function x(A){A.locale.value=s.value,A.fallbackLocale.value=l.value,Object.keys(u.value).forEach(W=>{A.mergeLocaleMessage(W,u.value[W])}),Object.keys(c.value).forEach(W=>{A.mergeDateTimeFormat(W,c.value[W])}),Object.keys(d.value).forEach(W=>{A.mergeNumberFormat(W,d.value[W])}),A.escapeParameter=b,A.fallbackFormat=p,A.fallbackRoot=f,A.fallbackWarn=h,A.missingWarn=v,A.warnHtmlMessage=y}return Rd(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Ft(Rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const A=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=A.locale.value,l.value=A.fallbackLocale.value,u.value=A.messages.value,c.value=A.datetimeFormats.value,d.value=A.numberFormats.value):a&&x(A)}),B}const Zz=["locale","fallbackLocale","availableLocales"],Qz=["t","rt","d","n","tm","te"];function ej(t,e){const n=Object.create(null);Zz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a)throw Ft(Rt.UNEXPECTED_ERROR);const i=dt(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),t.config.globalProperties.$i18n=n,Qz.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw Ft(Rt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)})}mz(xz);yz(QB);bz(SS);Iz();if(__INTLIFY_PROD_DEVTOOLS__){const t=Oo();t.__INTLIFY__=!0,lz(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Ib={tryMyLuck:"试试手气",randomImage:"随机图像",randomImageSettings:"随机图像设置",showRandomImageInStartup:"在启动页面显示随机图像",showRandomImageInStartupDesc:"控制随机图像选项是否在启动页面显示",randomImageSettingNotification:"提示:您可以在全局设置页面中控制是否在启动页面显示随机图像选项",shuffle:"换一批",pathOnly:"仅路径",takeEffectAfterReloadPage:"更改将在重新加载页面后生效",disableMaximize:"禁用最大化",compressFile:"对文件压缩",packOnlyNotDownload:"仅打包不下载",notAllowSingleCtrlOrShiftAsShortcut:"不允许使用单独的 Ctrl 或者 Shift 作为快捷键",conflictWithOtherShortcuts:"与其他快捷键冲突",pinnedSearchHistoryDesc:"你可以通过点击置顶的搜索历史来快速还原到之前的搜索状态",addNewCustomTag:"添加新的自定义标签",clearCacheIfNotTakeEffect:"如果更改没有生效,请尝试清理页面缓存",showTiktokNavigator:"显示导航按钮",showTiktokNavigatorDesc:"在 TikTok 视图中显示导航按钮(上/下箭头)",topicSearchExperimental:"自然语言分类&搜索(实验性)",topicSearchTitleExperimental:"自然语言分类 & 搜索(实验性)",topicSearchScope:"范围",topicSearchNeedScope:"请先选择向量化范围(文件夹)",topicSearchQueryPlaceholder:"输入一句话,召回相似图片(RAG 召回)",topicSearchOpenResults:"打开结果",topicSearchThreshold:"阈值",topicSearchMinClusterSize:"最小组",topicSearchEmptyNoScope:"请先选择范围,然后刷新/归类",topicSearchEmptyNoTopics:"暂无主题结果(可尝试降低“最小组”或调整“阈值”)",topicSearchChooseScope:"选择范围",topicSearchRefreshAndCluster:"刷新/归类",topicSearchScopeModalTitle:"选择向量化范围(文件夹)",topicSearchScopeTip:"默认不启用任何范围;必须选择后才能归类/搜索。范围来源于 QuickMovePaths。",topicSearchSavingToBackend:"正在保存到后端...",topicSearchScopePlaceholder:"选择文件夹(可多选)",topicSearchRecallMsg:"召回 {0} / {1}(TopK={2})",topicSearchCacheStale:"已显示缓存结果(可更新)",topicSearchCacheStaleDesc:"检测到范围内文件夹可能有变更,缓存可能已过期。可点击更新重新生成主题(会先更新索引)。",topicSearchCacheUpdate:"更新缓存",topicSearchGuideTitle:"快速上手(实验性)",topicSearchGuideStep1:"选择要分析的文件夹范围(可多选)",topicSearchGuideStep2:"点击刷新,生成主题卡片(会增量向量化)",topicSearchGuideStep3:"输入一句话搜索,会召回相似图片并打开结果页",topicSearchGuideAdvantage1:"基于语义相似度自动分组:AI自动发现相似主题,无需手动分类",topicSearchGuideAdvantage2:"自然语言语义检索:用一句话快速找到相关图片,类似RAG检索",topicSearchGuideEmptyReasonNoScope:"当前为空:未选择范围(已默认关闭),请先点“范围”选择文件夹",topicSearchGuideEmptyReasonNoTopics:"当前为空:该范围内还未生成主题(可点刷新,或调低最小组/阈值)",topicSearchRequirementsTitle:"使用前置条件",topicSearchRequirementsOpenai:"必须配置:OPENAI_BASE_URL、OPENAI_API_KEY(后端环境变量)",topicSearchRequirementsDepsPython:"必须安装:Python 依赖 numpy、hnswlib(缺少则功能不可用)",topicSearchRequirementsDepsDesktop:"桌面客户端:已内置依赖(无需手动安装 numpy/hnswlib)",topicSearchRequirementsInstallCmd:"安装命令:pip install numpy hnswlib",topicSearchJobFailed:"任务失败",topicSearchJobStage:"阶段",topicSearchJobQueued:"已提交任务,准备开始…",topicSearchJobStageEmbedding:"向量化中(Embedding)",topicSearchJobStageClustering:"归类中(Clustering)",topicSearchJobStageTitling:"生成标题中(LLM)",topicSearchJobStageDone:"完成",topicSearchJobStageError:"失败",topicSearchJobEmbeddingDesc:"已向量化 {0}/{1}(扫描 {2});当前:{3}",topicSearchJobClusteringDesc:"正在归类 {0}/{1}",topicSearchJobTitlingDesc:"正在生成标题 {0}/{1}",success:"成功",setCurrFrameAsVideoPoster:"设置当前帧为视频封面",sync:"同步",syncDesc:"当你需要实现多设备或者多用户之间的简单设置隔离时你可以关闭这个选项, IIB的大部分设置将只会保存到当前浏览器上(跨域的情况下也是隔离),不会同步到服务器",readonlyModeSettingPageDesc:"当前为只读模式,你可以调整调整设置,但这些更改不会被保存",syncHistoryToLocal:"同步历史到本地",showCommaInGenInfoPanel:"在生成信息面板中显示逗号",walkModeAutoRefreshDisabled:"Walk模式下自动刷新已停用",disable:"停用",autoRefresh:"自动刷新",autoRefreshNormalFixedMode:"启用自动刷新 (Normal/Fixed模式)",autoRefreshWalkMode:"启用自动刷新 (Walk模式)",autoRefreshWalkModePosLimit:"Walk模式下触发自动刷新的位置极限",pollRefresh:"轮询刷新",pollInterval:"轮询间隔",stopPollRefresh:"停止轮询刷新",pollRefreshTip:"默认情况下你从其他TAB返回IIB时或者IIB的可见性发生改变时IIB都会自动刷新。这个功能是为了让你一直呆在IIB内时他也能自动刷新,请慎重使用",restoreLastWorkspaceStateSuccess:"成功恢复上次工作区状态",restoreWorkspaceSnapshotSuccess:"成功恢复工作区快照",openOnAppStart:"启动时打开",confirmThisAction:"确认这个操作?",saveWorkspaceSnapshot:"保存工作区快照",WorkspaceSnapshot:"工作区快照",restoreLastWorkspaceState:"恢复上次工作区状态",restoreWorkspaceSnapshot:"恢复工作区快照: {0}",WorkspaceSnapshotDesc:`使用工作区快照功能你可以保存当前工作区的状态,以便下次打开IIB时快速恢复到当前状态。 你可以在全局设置页面中指定启动IIB时恢复到哪一个快照,或者恢复到最后关闭前的工作区状态。`,nameRequired:"名称不能为空",save:"保存",name:"名称",saveCompleted:"保存完成",openThisAppInNewWindow:"在新窗口打开本应用",readonly:"只读",accessLimited:"访问受限",selectFolder:"选择文件夹",openFileLocationInNewTab:"在新标签页打开文件位置",copyTo:"复制到",moveTo:"移动到",moveSuccess:"移动成功",copySuccess:"复制成功",copyFilePath:"复制文件路径",previewMaskBackgroundOpacity:"预览遮罩背景透明度",experimentalLRLayout:"并列布局",width:"宽度",alwaysOnTooltipInfo:"若关闭此项,信息面板将收起,直至鼠标移动至屏幕右侧时才打开",alwaysOn:"常驻",time:"时间",pin:"置顶",unpin:"取消置顶",restore:"还原",restoreFromHistory:"从历史记录中恢复",history:"历史记录",historyRecordsSubstr:"输入值",historyRecordsisRegex:"是否正则",walkModeDoc:"无需翻页即可浏览指定文件夹下的所有文件,使用无限滚动的方式呈现。将会使用DFS的方式遍历所有文件. 注意:该模式下排序仅在同层之间进行",normalModelDoc:"类似于windows的文件浏览器,拥有较高的灵活性. 但在访问云存储或者类似SMB这样的地方时可能会出现异常",fixedModeDoc:"类似Normal模式,但页面初始速度更快,兼容性更好,灵活性稍差。在Normal模式下出现了异常的话都可以改用这个试试",type:"类型",filterByKeyword:"输入标签关键词过滤",loadmore:"加载更多",rename:"重命名",inputAlias:"输入别名",addAliasCompleted:"添加别名完成",alias:"别名",exit:"退出","select-all":"全选","rerverse-select":"反选","clear-all-selected":"清除所有选择","keep-multi-selected":"保留多选","Source Identifier":"来源",openWithDefaultApp:"使用默认应用打开",saveSelectedAsJson:"保存选中图像信息",saveAllAsJson:"保存所有图像信息",saveLoadedImageAsJson:"保存已加载的图像信息",items:"{0}个项目",selectedItems:"已选择{0}个项目",scrollDownToComparePrompt:"向下滚查看Prompt比较",sourceText:"源文本",structuredData:"结构化数据",searchScope:"搜索范围",specifiedSearchFolder:"指定搜索的文件夹,使用逗号或者换行分割多个",batchAddTag:"批量添加Tag",batchRemoveTag:"批量移除Tag",errorOccurred:"发生了个错误",useThumbnailPreview:"使用缩略图预览",gridThumbnailWidth:"网格缩略图宽度",start:"开始",tip:"提示",sortByDateAscending:"修改日期升序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"创建日期升序",sortByCreatedDateDescending:"创建日期降序",sortByNameAscending:"名称升序",sortByNameDescending:"名称降序",sortBySizeAscending:"大小升序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"输入地址回车",go:"前往",unknownError:"未知错误",loadingNextFolder:"即将加载下一个文件夹的文件",moveFailedCheckPath:"移动失败,检查你的路径输入",detailList:"详情列表",previewGrid:"预览网格",moveSelectedFilesTo:"下列文件 移动 / 复制 至",confirm:"确定",download:"下载",local:"本地",sendImageFailed:"发送图像失败,请携带console的错误消息找开发者",confirmDelete:"确认删除?",deleteSuccess:"删除成功",moveToTrashSuccess:"已移动到回收站",doubleClickToCopy:"双击复制",root:"根",drive:"盘",promptcompare:"Compare Prompts",refresh:"刷新",quickMove:"快速移动",more:"更多",viewMode:"查看模式",sortingMethod:"排序方法",copyPath:"复制路径",deleteSelected:"删除",previewInNewWindow:"在新窗口预览",copySourceFilePreviewLink:"复制源文件预览链接",viewGenerationInfo:"查看生成信息(prompt等)",sendToTxt2img:"发送到文生图",sendToImg2img:"发送到图生图",sendToInpaint:"发送到局部重绘",sendToControlNet:"发送到ControlNet",sendToBatchDownload:"发送到批量下载",sendToExtraFeatures:"发送到附加功能",loadNextPage:"加载下一页",localFile:"本地文件",globalSettings:"全局设置",welcome:"欢迎",openInNewWindow:"在新页面打开",restoreLastRecord:"还原上次记录",launch:"启动",walkMode:"使用 Walk 模式浏览图片",launchFromNormalAndFixed:"使用 Normal / Fixed 模式浏览图片",recent:"最近",emptyStartPage:"空启动页",t2i:"文生图",i2i:"图生图",saveButtonSavesTo:"保存",extra:"附加",gridImage:"宫格图","i2i-grid":"图生图宫格",image:"图像","t2i-grid":"文生图宫格",workingFolder:"工作文件夹",lang:"语言",langChangeReload:"重新加载: 一些变化可能需要在重新加载后生效",openOnTheRight:"在右边打开",openInNewTab:"在新标签打开",openWithWalkMode:"使用 Walk 模式打开",longPressOpenContextMenu:"支持使用长按打开右键菜单",searchResults:"搜索结果",imgSearch:"图像搜索",onlyFoldersAndImages:"只显示文件夹/图像/视频",fileTypeFilter:"文件类型过滤",allFiles:"所有文件",audio:"音频",send2savedDir:"发送到保存的文件夹",unknownSavedDir:"找不到保存的文件夹(配置文件中的outdir_save字段)",Model:"模型",Sampler:"采样器",lora:"LoRA",size:"尺寸",pos:"正面提示",generateIndexHint:"生成索引用于搜索图像",UpdateIndex:"更新索引",needGenerateIdx:`你需要先点击按钮生成索引用于搜索图像 -这个过程可能需要消耗几分钟`,search:"搜索",custom:"自定义",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在于其他类型",alreadyExists:"已存在",toggleTag:"切换标签选中 (收藏)",addCompleted:"添加完成",removeCompleted:"删除完成",addedTagToImage:'已添加标签 "{tag}" 到本图片',removedTagFromImage:'已从本图片上移除 "{tag}" 标签',openContextMenu:"打开上下文菜单",copyPrompt:"复制提示",copyPositivePrompt:"复制正向提示",refreshCompleted:"刷新完成","walk-mode-move-message":'在walk模式下仅允许使用"快速移动"移动位置',manualExitFullScreen:"你删除了最后一张图片,也许需要你手动退出全屏查看",copied:"已复制!","index.expired":"索引过期,正在自动更新","auto.refreshed":"自动刷新完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"选择完全匹配的 Tag。 您可以输入部分字符进行搜索",selectAnyMatchTag:"可选,选择匹配其中一个或多个的 Tag。 您可以输入部分字符进行搜索",selectExcludeTag:"可选,选择需要排除掉的 Tag。 您可以输入部分字符进行搜索",faq:"常见问题",autoUpdate:"检测到发生改变自动更新","fuzzy-search":"模糊搜索","fuzzy-search-placeholder":"输入图像信息或者文件名的一部分来进行搜索","fuzzy-search-noResults":"什么都没找到",openWithLocalFileBrowser:"使用本地文件浏览器打开",addToSearchScanPathAndQuickMove:"添加到搜索扫描路径",removeFromSearchScanPathAndQuickMove:"从搜索扫描路径和快速移动中移除",serverKeyRequired:"服务器配置了密匙,你必须提供相同的密匙才能继续使用",shortcutKey:"快捷键(仅允许在全屏查看下使用)",shortcutKeyDescription:"点击输入框按下你想使用的按键,支持与Shift和Ctrl进行组合",fullscreenRestriction:"受技术限制,当前拓展不允许删除打开全屏查看时的首张图片。",clear:"清除",toggleTagSelection:'切换 "{tag}" 标签选中',changlog:"更新日志",accessControlModeTips:"为确保数据安全,您当前正以访问控制模式运行,仅能访问授权文件夹。您可以通过编辑本拓展根目录的下.env文件来调整访问权限设置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以将.env.example文件复制并重命名为.env",dontShowAgain:"不再显示",defaultSortingMethod:"默认排序方法",defaultViewMode:"默认查看模式",showPreviewImage:"显示预览图",copy:"复制",edit:"编辑",document:"文档",multiSelectTips:"您可以按住 Shift、Ctrl 或 Cmd 键,然后单击文件来进行多选删除/移动操作",copyLocationUrlSuccessMsg:"复制完成,你可以通过复制的链接直接打开当前文件夹",share:"分享",dragImageHere:"拖拽图像到这里",imgCompare:"图像对比",close:"关闭",fullscreenview:"全屏查看",fileName:"文件名",resolution:"分辨率",fileSize:"文件大小",selectAll:"全选","tauriLaunchConf.readSdWebuiConfigTitle":"读取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已经安装sd-webui,且在sd-webui内安装了本拓展,推荐直接使用这个,将直接读取配置并且数据共享","tauriLaunchConf.selectSdWebuiFolder":"点击选择SD-webui的文件夹","tauriLaunchConf.skipThisConfigTitle":"跳过本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍将可用,你可以在设置页重置","tauriLaunchConf.skipButton":"跳过","tauriLaunchConfMessages.configNotFound":"找不到对应配置,检查选择的文件夹是否正确","tauriLaunchConfMessages.folderNotFound":"找不到对应文件夹,检查选择的文件夹是否正确","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即将重启","tauriLaunchConfMessages.firstTimeUserTitle":"看起来你好像是第一次使用, 需要进行一些配置",inputTargetFolderPath:"输入目标文件夹的绝对路径",pathDoesNotExist:"路径不存在",confirmToAddToExtraPath:"确定添加?如果文件夹过大将会消耗过多时间建立索引。",clientSpecificSettings:"客户端特有的设置",initiateSoftwareStartupConfig:"初始化软件启动配置",gridCellWidth:"网格单元宽度 (px)",showChangeIndicators:"显示变更指示器",seedAsChange:"将Seed也进行比较",defaultShowChangeIndicators:"默认显示变更指示器",defaultSeedAsChange:"默认将Seed也进行比较",defaultGridCellWidth:"默认网格单元宽度 (px)",thumbnailResolution:"缩略图分辨率 (px)",livePreview:"实时预览",other:"其他",ImageBrowsingSettings:"图像浏览设置",majorUpdateCustomCellSizeTips:'重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的"更多"里面进行调整',desktop:"桌面",move:"移动",inputFolderName:"输入文件夹名",createFolder:"创建文件夹",sendToThirdPartyExtension:"发送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:'使用拖拽或者右键菜单中的"发送到批量下载"将其他页面的图片添加到这里,支持多选',zipDownload:"打包成zip下载",archive:"归档",batchDownload:"批量下载",remove:"移除",secretKeyRequiredWarnMsg:`为了安全考虑,你必须为本拓展单独配置Secret Key,具体参考本拓展根目录下的.env.example文件内的IIB_SECRET_KEY。 +这个过程可能需要消耗几分钟`,search:"搜索",custom:"自定义",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在于其他类型",alreadyExists:"已存在",toggleTag:"切换标签选中 (收藏)",addCompleted:"添加完成",removeCompleted:"删除完成",addedTagToImage:'已添加标签 "{tag}" 到本图片',removedTagFromImage:'已从本图片上移除 "{tag}" 标签',openContextMenu:"打开上下文菜单",copyPrompt:"复制提示",copyPositivePrompt:"复制正向提示",refreshCompleted:"刷新完成","walk-mode-move-message":'在walk模式下仅允许使用"快速移动"移动位置',manualExitFullScreen:"你删除了最后一张图片,也许需要你手动退出全屏查看",copied:"已复制!","index.expired":"索引过期,正在自动更新","auto.refreshed":"自动刷新完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"选择完全匹配的 Tag。 您可以输入部分字符进行搜索",selectAnyMatchTag:"可选,选择匹配其中一个或多个的 Tag。 您可以输入部分字符进行搜索",selectExcludeTag:"可选,选择需要排除掉的 Tag。 您可以输入部分字符进行搜索",faq:"常见问题",helpFeedback:"寻求帮助/反馈",helpFeedbackWay1:"先看看常见问题 / 找找相关 issue",helpFeedbackSearchIssues:"搜索 issues",helpFeedbackWay2:"提一个新的 issue",helpFeedbackNewIssue:"去 GitHub 创建",helpFeedbackWay3:"直接发邮件给维护者",tagGraphGenerating:"正在生成关系图...",tagGraphStatLayers:"层级",tagGraphStatNodes:"节点",tagGraphStatLinks:"连线",tagGraphAllLayers:"全部层级",tagGraphFilterPlaceholder:"关键字过滤(命中 + 上下游)",tagGraphFilterHopsTitle:"扩展层数(N 跳)",tagGraphFilterApply:"筛选",tagGraphFilterReset:"重置",tagGraphTooltipFilter:"过滤",tagGraphTooltipOpenCluster:"打开聚类",tagGraphFullscreenUnsupported:"当前环境不支持全屏",tagGraphFullscreenFailed:"全屏失败",autoUpdate:"检测到发生改变自动更新","fuzzy-search":"模糊搜索","fuzzy-search-placeholder":"输入图像信息或者文件名的一部分来进行搜索","fuzzy-search-noResults":"什么都没找到",openWithLocalFileBrowser:"使用本地文件浏览器打开",addToSearchScanPathAndQuickMove:"添加到搜索扫描路径",removeFromSearchScanPathAndQuickMove:"从搜索扫描路径和快速移动中移除",serverKeyRequired:"服务器配置了密匙,你必须提供相同的密匙才能继续使用",shortcutKey:"快捷键(仅允许在全屏查看下使用)",shortcutKeyDescription:"点击输入框按下你想使用的按键,支持与Shift和Ctrl进行组合",fullscreenRestriction:"受技术限制,当前拓展不允许删除打开全屏查看时的首张图片。",clear:"清除",toggleTagSelection:'切换 "{tag}" 标签选中',changlog:"更新日志",accessControlModeTips:"为确保数据安全,您当前正以访问控制模式运行,仅能访问授权文件夹。您可以通过编辑本拓展根目录的下.env文件来调整访问权限设置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以将.env.example文件复制并重命名为.env",dontShowAgain:"不再显示",defaultSortingMethod:"默认排序方法",defaultViewMode:"默认查看模式",showPreviewImage:"显示预览图",copy:"复制",edit:"编辑",document:"文档",multiSelectTips:"您可以按住 Shift、Ctrl 或 Cmd 键,然后单击文件来进行多选删除/移动操作",copyLocationUrlSuccessMsg:"复制完成,你可以通过复制的链接直接打开当前文件夹",share:"分享",dragImageHere:"拖拽图像到这里",imgCompare:"图像对比",close:"关闭",fullscreenview:"全屏查看",fileName:"文件名",resolution:"分辨率",fileSize:"文件大小",selectAll:"全选","tauriLaunchConf.readSdWebuiConfigTitle":"读取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已经安装sd-webui,且在sd-webui内安装了本拓展,推荐直接使用这个,将直接读取配置并且数据共享","tauriLaunchConf.selectSdWebuiFolder":"点击选择SD-webui的文件夹","tauriLaunchConf.skipThisConfigTitle":"跳过本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍将可用,你可以在设置页重置","tauriLaunchConf.skipButton":"跳过","tauriLaunchConfMessages.configNotFound":"找不到对应配置,检查选择的文件夹是否正确","tauriLaunchConfMessages.folderNotFound":"找不到对应文件夹,检查选择的文件夹是否正确","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即将重启","tauriLaunchConfMessages.firstTimeUserTitle":"看起来你好像是第一次使用, 需要进行一些配置",inputTargetFolderPath:"输入目标文件夹的绝对路径",pathDoesNotExist:"路径不存在",confirmToAddToExtraPath:"确定添加?如果文件夹过大将会消耗过多时间建立索引。",clientSpecificSettings:"客户端特有的设置",initiateSoftwareStartupConfig:"初始化软件启动配置",gridCellWidth:"网格单元宽度 (px)",showChangeIndicators:"显示变更指示器",seedAsChange:"将Seed也进行比较",defaultShowChangeIndicators:"默认显示变更指示器",defaultSeedAsChange:"默认将Seed也进行比较",defaultGridCellWidth:"默认网格单元宽度 (px)",thumbnailResolution:"缩略图分辨率 (px)",livePreview:"实时预览",other:"其他",ImageBrowsingSettings:"图像浏览设置",majorUpdateCustomCellSizeTips:'重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的"更多"里面进行调整',desktop:"桌面",move:"移动",inputFolderName:"输入文件夹名",createFolder:"创建文件夹",sendToThirdPartyExtension:"发送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:'使用拖拽或者右键菜单中的"发送到批量下载"将其他页面的图片添加到这里,支持多选',zipDownload:"打包成zip下载",archive:"归档",batchDownload:"批量下载",remove:"移除",secretKeyRequiredWarnMsg:`为了安全考虑,你必须为本拓展单独配置Secret Key,具体参考本拓展根目录下的.env.example文件内的IIB_SECRET_KEY。 这项警告只会在配置了gradio-auth时出现`,secretKeyMustBeConfigured:"必须配置Secret Key",deleteOneOnlySkipConfirm:"删除单个文件时不进行确认",resetOnGlobalSettingsPage:"你可以在全局设置页重置",privacyAndSecurity:"安全与隐私",dragToResizePanel:"按住并拖动来调整面板的大小",clickToToggleMaximizeMinimize:"单击切换最大化/最小化",dragToMovePanel:"按住并拖动来移动面板",imageCompareTips:'拖拽文件时也会出现这个面板,可以不需要打开 "图像对比" 功能',regexSearchEnabledHint:"(你也可以通过点击右侧的正则式图标来启用正则式搜索)",confirmRebuildImageIndex:"确认重建图像索引?",rebuildComplete:"重新构建完成",rebuildImageIndex:"重新构建图像索引",tagSearchNoResultsMessage:"看起来没匹配到任何结果,尝试通过重新构建索引来去掉无用的tag?","TikTok View":"抖音式浏览",tiktokView:"抖音式浏览",magicSwitchTiktokView:"TikTok 观看模式",magicSwitchTiktokViewDesc:"开启后,点击图片/视频文件将直接进入TikTok式观看模式",magicSwitchEnabled:"🎬 开启 - 点击媒体文件直接进入 TikTok 观看",magicSwitchDisabled:"📁 关闭 - 点击媒体文件正常打开",magicSwitchDetailDesc:"点击图片和视频文件时直接进入 TikTok 式浏览体验",autoPlay:"自动轮播",autoPlayOff:"关闭",autoPlay5s:"5秒",autoPlay10s:"10秒",autoPlay20s:"20秒",autoPlayTooltip:"自动轮播: {mode} (A键切换)",autoPlayStatus:"自动轮播:{mode}",exitFullscreen:"退出全屏",fullscreen:"全屏",soundOn:"开启声音",soundOff:"关闭声音",like:"喜欢",unlike:"取消喜欢",tags:"标签",tag:"标签",tagOperationFailed:"标签操作失败",mediaType:"媒体类型",all:"全部",video:"视频",randomSort:"随机排序",sortByDate:"按日期排序","autoTag.name":"自动标签 (Auto Tagging)","autoTag.description":"这些规则会在图像被索引时自动应用,为符合条件的图像添加标签(触发时机:在搜索页更新索引或重新构建索引时)。注意:同一规则内的多个条件是AND(且)关系,需全部满足才会应用标签","autoTag.addRule":"添加规则","autoTag.saveConfig":"保存配置","autoTag.tagName":"标签名称","autoTag.inputTagName":"选择自定义标签","autoTag.field":"字段","autoTag.operator":"操作符","autoTag.value":"值","autoTag.addFilter":"添加条件","autoTag.noRules":"暂无规则,点击上方按钮添加","autoTag.saveSuccess":"保存成功","autoTag.saveFail":"保存失败","autoTag.fields.posPrompt":"正向提示词 (Pos Prompt)","autoTag.fields.negPrompt":"负向提示词 (Neg Prompt)","autoTag.fields.model":"模型 (Model)","autoTag.fields.sampler":"采样器 (Sampler)","autoTag.fields.size":"尺寸 (Size)","autoTag.fields.cfgScale":"CFG Scale","autoTag.fields.steps":"Steps","autoTag.fields.seed":"Seed","autoTag.operators.contains":"包含 (Contains)","autoTag.operators.equals":"等于 (Equals)","autoTag.operators.regex":"正则 (Regex)",aiAnalyzeTags:"AI分析标签",aiAnalyzeTagsNoPrompt:"没有找到提示词",aiAnalyzeTagsNoCustomTags:"没有自定义标签",aiAnalyzeTagsNoMatchedTags:"AI没有找到匹配的标签",aiAnalyzeTagsNoValidTags:"没有找到有效的匹配标签",aiAnalyzeTagsAllTagsAlreadyAdded:"所有匹配的标签已经添加到图像上了",aiAnalyzeTagsSuccess:"已添加 {0} 个标签:{1}",aiAnalyzeTagsFailed:"AI分析标签失败,请检查配置"},tj={tryMyLuck:"Try My Luck",randomImage:"Random Image",randomImageSettings:"Random Image Settings",showRandomImageInStartup:"Show Random Image in Startup",showRandomImageInStartupDesc:"Control whether the random image option is displayed on the startup page",randomImageSettingNotification:"Tip: You can control whether to show the random image option on the startup page in Global Settings",shuffle:"Shuffle",pathOnly:"Path Only",disableMaximize:"Disable Maximize",takeEffectAfterReloadPage:"Take effect after reloading the page",compressFile:"Compress File",packOnlyNotDownload:"Pack Only, Not Download",notAllowSingleCtrlOrShiftAsShortcut:"不允許使用單獨的 Ctrl 或者 Shift 作為快速鍵",conflictWithOtherShortcuts:"Conflict with other shortcuts",pinnedSearchHistoryDesc:"You can quickly restore to the previous search state by clicking the pinned search history.",addNewCustomTag:"Add New Custom Tag",clearCacheIfNotTakeEffect:"If the changes do not take effect, try clearing the page cache",showTiktokNavigator:"Show Navigation Buttons",showTiktokNavigatorDesc:"Show the navigation buttons (up/down arrows) in TikTok view",topicSearchExperimental:"Natural Language Categorization & Search (Experimental)",topicSearchTitleExperimental:"Natural Language Categorization & Search (Experimental)",topicSearchScope:"Scope",topicSearchNeedScope:"Please select a scope folder first",topicSearchQueryPlaceholder:"Type a sentence to retrieve similar images (RAG-like retrieval)",topicSearchOpenResults:"Open results",topicSearchThreshold:"Threshold",topicSearchMinClusterSize:"Min cluster",topicSearchEmptyNoScope:"Please select a scope, then refresh/categorize",topicSearchEmptyNoTopics:"No topics yet (try lowering “Min cluster” or adjusting “Threshold”)",topicSearchChooseScope:"Select scope",topicSearchRefreshAndCluster:"Refresh/Categorize",topicSearchScopeModalTitle:"Select vectorization scope (folders)",topicSearchScopeTip:"No scope is enabled by default. You must select folders to categorize/search. Scope comes from QuickMovePaths.",topicSearchSavingToBackend:"Saving to backend...",topicSearchScopePlaceholder:"Select folders (multi-select)",topicSearchRecallMsg:"Retrieved {0} / {1} (TopK={2})",topicSearchCacheStale:"Showing cached result (update available)",topicSearchCacheStaleDesc:"Folders in the selected scope may have changed. The cache may be stale. Click Update to regenerate topics (will update index first).",topicSearchCacheUpdate:"Update cache",topicSearchGuideTitle:"Quick Start (Experimental)",topicSearchGuideStep1:"Select the scope folders to analyze (multi-select)",topicSearchGuideStep2:"Click Refresh to generate topic cards (incremental vectorization)",topicSearchGuideStep3:"Type a sentence to search; it will retrieve similar images and open the result page",topicSearchGuideAdvantage1:"Auto-grouping by semantic similarity: AI automatically discovers similar themes without manual categorization",topicSearchGuideAdvantage2:"Natural language semantic search: Quickly find related images with a sentence, similar to RAG retrieval",topicSearchGuideEmptyReasonNoScope:"Empty because: no scope selected (disabled by default). Click “Scope” to choose folders.",topicSearchGuideEmptyReasonNoTopics:"Empty because: no topics generated yet for this scope (try Refresh or lower Min cluster/Threshold).",topicSearchRequirementsTitle:"Requirements",topicSearchRequirementsOpenai:"Required: OPENAI_BASE_URL and OPENAI_API_KEY (backend environment variables)",topicSearchRequirementsDepsPython:"Required: Python deps numpy and hnswlib (feature is disabled if missing)",topicSearchRequirementsDepsDesktop:"Desktop app: deps are bundled (no need to install numpy/hnswlib)",topicSearchRequirementsInstallCmd:"Install: pip install numpy hnswlib",topicSearchJobFailed:"Job failed",topicSearchJobStage:"Stage",topicSearchJobQueued:"Job queued…",topicSearchJobStageEmbedding:"Embedding…",topicSearchJobStageClustering:"Clustering…",topicSearchJobStageTitling:"Generating titles…",topicSearchJobStageDone:"Done",topicSearchJobStageError:"Error",topicSearchJobEmbeddingDesc:"Embedded {0}/{1} (scanned {2}); current: {3}",topicSearchJobClusteringDesc:"Clustering {0}/{1}",topicSearchJobTitlingDesc:"Titling {0}/{1}",success:"Success",setCurrFrameAsVideoPoster:"Set Current Frame as Video Cover",sync:"Sync",syncDesc:"When you need to achieve simple setting isolation between multiple devices or users, you can turn off this option. Most of the settings of IIB will only be saved to the current browser (isolation in the case of cross-domain), and will not be synchronized to the server.",readonlyModeSettingPageDesc:"You are currently in read-only mode. You can adjust the settings, but these changes will not be saved.",syncHistoryToLocal:"Sync History to Local",showCommaInGenInfoPanel:"Show Comma in Generation Info Panel",walkModeAutoRefreshDisabled:"Auto Refresh in Walk Mode Disabled",disable:"Disable",autoRefresh:"Auto Refresh",autoRefreshNormalFixedMode:"Enable Auto Refresh (Normal/Fixed Mode)",autoRefreshWalkMode:"Enable Auto Refresh (Walk Mode)",autoRefreshWalkModePosLimit:"Position Limit for Auto Refresh in Walk Mode",pollInterval:"Poll Interval",pollRefresh:"Polling refresh",pollRefreshTip:"By default, IIB will automatically refresh when you return to IIB from other tabs or when the visibility of IIB changes. This feature is designed to keep IIB refreshed even when you stay in IIB all the time, please use it with caution",stopPollRefresh:"Stop Polling refresh",restoreLastWorkspaceStateSuccess:"Restore Last Workspace State Success",restoreWorkspaceSnapshotSuccess:"Restore Workspace Snapshot Success",openOnAppStart:"Open on app start",confirmThisAction:"Confirm this action?",WorkspaceSnapshotDesc:`Using the Workspace Snapshot feature, you can save the current state of the workspace so that you can quickly restore to the current state the next time you open IIB. You can specify which snapshot to restore to when starting IIB in the global settings page, or restore to the last workspace state before closing.`,saveWorkspaceSnapshot:"Save Workspace Snapshot",WorkspaceSnapshot:"Workspace Snapshot",restoreLastWorkspaceState:"Restore Last Workspace State",restoreWorkspaceSnapshot:"Restore Workspace Snapshot: {0}",nameRequired:"Name is required",save:"Save",name:"Name",saveCompleted:"Save completed",openThisAppInNewWindow:"Open IIB in a new window",readonly:"Read-only",accessLimited:"Access Limited",selectFolder:"Select Folder",openFileLocationInNewTab:"Open File Location in New Tab",copyTo:"Copy to",moveTo:"Move to",moveSuccess:"Move success",copySuccess:"Copy success",copyFilePath:"Copy file path",previewMaskBackgroundOpacity:"Preview Mask Background Opacity",experimentalLRLayout:"Side-by-Side Layout",width:"Width",alwaysOnTooltipInfo:"If this is turned off, the info panel will be hidden until you move the mouse to the right side of the screen",alwaysOn:"Always On",time:"Time",pin:"Pin",unpin:"Unpin",restore:"Restore",restoreFromHistory:"Restore from History",history:"History",historyRecordsSubstr:"Input Value",historyRecordsisRegex:"Is Regex",walkModeDoc:"Browse all files in a specified folder without paging, using infinite scrolling to display them. DFS will be used to traverse all files. Note: Sorting is only performed within the same layer in this mode.",normalModelDoc:"Similar to the Windows file browser, with high flexibility. But exceptions may occur when accessing cloud storage or similar SMB.",fixedModeDoc:"Similar to Normal mode, but with faster initial page speed, better compatibility, and slightly less flexibility. If you encounter an exception in Normal mode, you can try this mode instead.",type:"Type",filterByKeyword:"Filter tags by keyword",loadmore:"Load more",rename:"Rename",inputAlias:"Input Alias",addAliasCompleted:"Add Alias Completed",alias:"Alias",exit:"Exit","select-all":"Select All","rerverse-select":"Reverse Select","clear-all-selected":"Clear All Selected","keep-multi-selected":"Keep Multi-selected","Source Identifier":"Source",openWithDefaultApp:"Open with default app",saveSelectedAsJson:"Save selected image info",saveAllAsJson:"Save all image info",saveLoadedImageAsJson:"Save loaded image info",selectedItems:" {0} selected",items:"{0} items",scrollDownToComparePrompt:"Scroll down to compare prompts",sourceText:"Source Text",structuredData:"Structured Data",searchScope:"Search Scope",specifiedSearchFolder:"Specify the folders to search, separate multiple folders with commas or line breaks",batchAddTag:"Batch Add Tag",batchRemoveTag:"Batch Remove Tag",imageCompareTips:`When dragging files, this panel will also appear, so you don't need to open the "Image Comparison" feature separately.`,dragToResizePanel:"Drag to resize the panel",clickToToggleMaximizeMinimize:"Click to toggle maximize/minimize",dragToMovePanel:"Drag to move the panel",privacyAndSecurity:"Security & Privacy",deleteOneOnlySkipConfirm:"Do not confirm when deleting a single file",resetOnGlobalSettingsPage:"You can reset on the global settings page",secretKeyMustBeConfigured:"Secret Key must be configured",secretKeyRequiredWarnMsg:`For security reasons, you must separately configure Secret Key for this extension, refer to the IIB_SECRET_KEY in the .env.example file under the root directory of this extension. - This error only appears when gradio-auth is configured.`,remove:"Remove",batchDownload:"Batch Download",archive:"Archive",zipDownload:"Download as ZIP",batchDownloaDDragAndDropHint:"Use drag and drop or the 'Send to Batch Download' option in the right-click menu to add images from other pages here. Multiple selections are supported.",lyco:"LyCORIS",sendToThirdPartyExtension:"Send to third-party extension",createFolder:"Create Folder",inputFolderName:"Input Folder Name",desktop:"Desktop",move:"Move",majorUpdateCustomCellSizeTips:'Major Update: You can now customize the size of the grid image. Adjust it in the global settings page or in the "More" menu in the upper right corner.',ImageBrowsingSettings:"Image Browsing Settings",other:"Other",livePreview:"Live Preview",gridCellWidth:"Grid Cell Width (px)",showChangeIndicators:"Show Change Indicators",seedAsChange:"Seed as Change",defaultShowChangeIndicators:"Default Show Change Indicators",defaultSeedAsChange:"Default Compare Seed as Change",defaultGridCellWidth:"Default Grid Cell Width (px)",thumbnailResolution:"Thumbnail Resolution (px)",inputTargetFolderPath:"Enter the absolute path of the target folder",pathDoesNotExist:"Path does not exist",confirmToAddToExtraPath:"Are you sure you want to add? This may take a lot of time to index if the folder is large. ",clientSpecificSettings:"Client-specific settings",initiateSoftwareStartupConfig:"Initiate software startup configuration","tauriLaunchConf.readSdWebuiConfigTitle":"Read Stable Diffusion Webui Config","tauriLaunchConf.readSdWebuiConfigDescription":"If you have installed sd-webui and this extension, it is recommended to use this option to directly read the configuration and share data.","tauriLaunchConf.selectSdWebuiFolder":"Click to select the SD-webui folder","tauriLaunchConf.skipThisConfigTitle":"Skip This Configuration","tauriLaunchConf.skipThisConfigDescription":"All features will still be available and you can reset them in the settings page.","tauriLaunchConf.skipButton":"Skip","tauriLaunchConfMessages.configNotFound":"Cannot find the corresponding configuration. Please check if the selected folder is correct.","tauriLaunchConfMessages.folderNotFound":"Cannot find the corresponding folder. Please check if the selected folder is correct.","tauriLaunchConfMessages.configCompletedMessage":"Configuration completed. The application will restart shortly.","tauriLaunchConfMessages.firstTimeUserTitle":"It looks like this is your first time using the application. Some configuration is required.",selectAll:"Select All",close:"Close",fileName:"File Name",resolution:"Resolution",fileSize:"File Size",fullscreenview:"Fullscreen View",promptcompare:"Compare Prompts",imgCompare:"Image Comparison",share:"Share",dragImageHere:"Drag image here",copyLocationUrlSuccessMsg:"Copy completed, you can directly open the current folder through the copied link",multiSelectTips:"You can hold down the Shift, Ctrl, or Cmd key and then click on files to perform batch delete/move operations",document:"Document",copy:"Copy",edit:"Edit",defaultSortingMethod:"Default Sorting Method",defaultViewMode:"Default View Mode",showPreviewImage:"Show Preview Image",dontShowAgain:"Don't show again",accessControlModeTips:"To ensure data security, you are currently running in access control mode, which only allows access to authorized folders. You can adjust the access permissions settings (IIB_ACCESS_CONTROL) by editing the .env file in the root directory of this extension. If the .env file does not exist, you can copy the .env.example file and rename it to .env.",changlog:"Change log",clear:"Clear",toggleTagSelection:'Toggle Selection of Tag "{tag}"',fullscreenRestriction:"Due to technical limitations, the first image cannot be deleted when opening the Full-screen view.",shortcutKey:"Keyboard Shortcuts (Only Available in Full-screen view mode)",shortcutKeyDescription:"Click on the input box and press the shortcut key you want to use, supporting combinations with Shift and Ctrl.",serverKeyRequired:"The server has configured a key. You must provide the same key to continue using it.",removeFromSearchScanPathAndQuickMove:"Remove from Search Scan Path and Quick Move",addToSearchScanPathAndQuickMove:"Add to Search Scan Path",openWithLocalFileBrowser:"Open with Local File Browser","fuzzy-search-noResults":"Nothing was found","fuzzy-search-placeholder":"Enter a part of the image information or filename to search","fuzzy-search":"Fuzzy search",autoUpdate:"Detected changes, automatically updating",faq:"FAQ",selectExactMatchTag:"Select Exact Match Tags. You can search by entering partial characters",selectAnyMatchTag:"Optional, Select Any Match Tags. You can search by entering partial characters",selectExcludeTag:"Optional, Select Exclude Tags. You can search by entering partial characters",exactMatch:"Exact Match",anyMatch:"Match Any",exclude:"Exclude","auto.refreshed":"Auto refresh completed!",copied:"Copied!","index.expired":"Index expired, updating automatically",manualExitFullScreen:"You have deleted the last image and may need to manually exit Full-screen view","walk-mode-move-message":"Moving position is only allowed using 'Quick Move' in walk mode",refreshCompleted:"Refresh completed",addedTagToImage:'Tag "{tag}" has been added to this image',removedTagFromImage:'Tag "{tag}" has been removed from this image',openContextMenu:"Open context menu",copyPrompt:"Copy prompt",copyPositivePrompt:"Copy positive prompt",toggleTag:"Toggle Tag Selection (Favorite)",addCompleted:"Add completed",removeCompleted:"Remove Completed",existInOtherType:"Already exists in other type",alreadyExists:"Already exists",cancel:"Cancel",submit:"Submit",add:"Add",custom:"Custom",needGenerateIdx:`You need to click the button to generate an index for searching images. - This process may take a few minutes to complete.`,search:"Search",UpdateIndex:"Update index",generateIndexHint:"Generate index for search image",Model:"Model",Sampler:"Sampler",lora:"LoRA",size:"Size",pos:"Positive Prompt",unknownSavedDir:"Cannot find the saved folder (outdir_save field in the config)",errorOccurred:"An error occurred",useThumbnailPreview:"Use thumbnail preview",gridThumbnailWidth:"Grid thumbnail width",start:"Start",tip:"Tip",sortByDateAscending:"Updated date ascending",sortByDateDescending:"UPdated date descending",sortByCreatedDateAscending:"Created date ascending",sortByCreatedDateDescending:"Created date descending",sortByNameAscending:"Name ascending",sortByNameDescending:"Name descending",sortBySizeAscending:"Size ascending",sortBySizeDescending:"Size descending",inputAddressAndPressEnter:"Input address and press Enter",go:"Go",unknownError:"Unknown error",loadingNextFolder:"Loading files from the next folder",moveFailedCheckPath:"Move failed. Check your path input.",detailList:"Detail list",previewGrid:"Preview grid",moveSelectedFilesTo:"Move / Copy selected files to",confirm:"Confirm",download:"Download",local:"Local",sendImageFailed:"Failed to send image. Please contact the developer with the error message from the console.",confirmDelete:"Are you sure you want to delete?",deleteSuccess:"Deleted successfully",moveToTrashSuccess:"Moved to trash",doubleClickToCopy:"Double-click to copy",root:"Root",drive:" drive",refresh:"Refresh",quickMove:"Quick move",more:"More",viewMode:"View mode",sortingMethod:"Sorting method",copyPath:"Copy path",deleteSelected:"Delete",previewInNewWindow:"Open in new window",copySourceFilePreviewLink:"Copy source file preview link",viewGenerationInfo:"View generation information (prompt, etc.)",sendToTxt2img:"Send to txt2img",sendToImg2img:"Send to img2img",sendToInpaint:"Send to Inpaint",sendToBatchDownload:"Send to BatchDownload",sendToExtraFeatures:"Send to Extra",sendToControlNet:"Send to ControlNet",loadNextPage:"Load next page",localFile:"Local file",globalSettings:"Global settings",welcome:"Welcome",openInNewWindow:"Open in new tab",restoreLastRecord:"Restore last record",launch:"Launch",walkMode:"Use Walk mode to browse images",launchFromNormalAndFixed:"Use Normal / Fixed mode to browse images",recent:"Recent",emptyStartPage:"Empty start page",t2i:"txt2img",i2i:"img2img",saveButtonSavesTo:"save",extra:"extras",gridImage:"Grid image","i2i-grid":"img2img grid",image:"Image","t2i-grid":"txt2img grid",workingFolder:"working folder",lang:"Language",langChangeReload:"Reload: Some changes may require a reload to take effect",openOnTheRight:"Open to the Side",openInNewTab:"Open in a new tab",openWithWalkMode:"Open with Walk Mode",longPressOpenContextMenu:"Support long press to open right-click menu",searchResults:"Search Results",imgSearch:"Image Search",onlyFoldersAndImages:"Only show folders/images/videos",fileTypeFilter:"File Type Filter",allFiles:"All Files",audio:"Audio",send2savedDir:"Send to saved folder",regexSearchEnabledHint:"(You can also enable regex search by clicking the regex icon on the right)",rebuildImageIndex:"Rebuild Image Index",confirmRebuildImageIndex:"Confirm rebuilding image index?",rebuildComplete:"Rebuild complete",tagSearchNoResultsMessage:"It looks like no results were matched, try rebuilding the index to remove useless tags?","TikTok View":"TikTok View",tiktokView:"TikTok View",magicSwitchTiktokView:"TikTok View Mode",magicSwitchTiktokViewDesc:"When enabled, clicking image/video files will directly enter TikTok-style viewing mode",magicSwitchEnabled:"🎬 ON - Click media files to enter TikTok View",magicSwitchDisabled:"📁 OFF - Click media files to open normally",magicSwitchDetailDesc:"Click images and videos to directly enter TikTok-style browsing experience",autoPlay:"Auto Play",autoPlayOff:"Off",autoPlay5s:"5s",autoPlay10s:"10s",autoPlay20s:"20s",autoPlayTooltip:"Auto Play: {mode} (A to toggle)",autoPlayStatus:"Auto Play: {mode}",exitFullscreen:"Exit Fullscreen",fullscreen:"Fullscreen",soundOn:"Sound On",soundOff:"Sound Off",like:"Like",unlike:"Unlike",tags:"Tags",tag:"Tag",tagOperationFailed:"Tag operation failed",mediaType:"Media Type",all:"All",video:"Video",randomSort:"Random Sort",sortByDate:"Sort by Date","autoTag.name":"Auto Tagging","autoTag.description":"These rules will be automatically applied when images are indexed, adding tags to matching images (Trigger timing: when updating index or rebuilding index on search page). Note: Multiple conditions within a rule use AND logic, all must be satisfied to apply the tag","autoTag.addRule":"Add Rule","autoTag.saveConfig":"Save Config","autoTag.tagName":"Tag Name","autoTag.inputTagName":"Select custom tag","autoTag.field":"Field","autoTag.operator":"Operator","autoTag.value":"Value","autoTag.addFilter":"Add Filter","autoTag.noRules":"No rules, click button above to add","autoTag.saveSuccess":"Saved successfully","autoTag.saveFail":"Save failed","autoTag.fields.posPrompt":"Pos Prompt","autoTag.fields.negPrompt":"Neg Prompt","autoTag.fields.model":"Model","autoTag.fields.sampler":"Sampler","autoTag.fields.size":"Size","autoTag.fields.cfgScale":"CFG Scale","autoTag.fields.steps":"Steps","autoTag.fields.seed":"Seed","autoTag.operators.contains":"Contains","autoTag.operators.equals":"Equals","autoTag.operators.regex":"Regex",aiAnalyzeTags:"AI Analyze Tags",aiAnalyzeTagsNoPrompt:"No prompt found",aiAnalyzeTagsNoCustomTags:"No custom tags available",aiAnalyzeTagsNoMatchedTags:"AI found no matching tags",aiAnalyzeTagsNoValidTags:"No valid matching tags found",aiAnalyzeTagsAllTagsAlreadyAdded:"All matched tags have already been added to the image",aiAnalyzeTagsSuccess:"Added {0} tags: {1}",aiAnalyzeTagsFailed:"AI tag analysis failed, please check configuration"},nj={serverKeyRequired:"Für die weitere Nutzung ist die Eingabe eines Schlüssels erforderlich, der vom Server konfiguriert wurde.",removeFromSearchScanPathAndQuickMove:"Schnellzugriff entfernen",addToSearchScanPathAndQuickMove:"Schnellzugriff hinzufügen",openWithLocalFileBrowser:"Im lokalen Dateimanager öffnen","fuzzy-search-noResults":"Es wurde nichts gefunden","fuzzy-search-placeholder":"Geben Sie einen Teil der Bildinformationen oder des Dateinamens ein, um passende Ergebnisse zu finden","fuzzy-search":"Schnellsuche",autoUpdate:"Erkannte Änderungen, automatische Aktualisierung wird ausgeführt",faq:"FAQ",selectExactMatchTag:"Wähle Tags für exakte Übereinstimmung aus",selectAnyMatchTag:"(Optional) Wähle Tags für beliebige Übereinstimmung aus",selectExcludeTag:"(Optional) Wähle Tags zum Ausschliessen aus",exactMatch:"Exakte Übereinstimmung",anyMatch:"Beliebige Übereinstimmung",exclude:"Ausschliessen",showTiktokNavigator:"Navigationsschaltflächen anzeigen",showTiktokNavigatorDesc:"Zeigen Sie die Navigationstasten (Pfeile nach oben/unten) in der TikTok-Ansicht an",topicSearchExperimental:"Natürliche Sprach-Kategorisierung & Suche (Experimentell)",topicSearchTitleExperimental:"Natürliche Sprach-Kategorisierung & Suche (Experimentell)",topicSearchScope:"Bereich",topicSearchNeedScope:"Bitte zuerst einen Bereich (Ordner) auswählen",topicSearchQueryPlaceholder:"Geben Sie einen Satz ein, um ähnliche Bilder zu finden (RAG-ähnliche Suche)",topicSearchOpenResults:"Ergebnisse öffnen",topicSearchThreshold:"Schwelle",topicSearchMinClusterSize:"Min. Cluster",topicSearchEmptyNoScope:"Bitte zuerst einen Bereich auswählen, dann aktualisieren/kategorisieren",topicSearchEmptyNoTopics:"Noch keine Themen (versuchen Sie „Min. Cluster“ zu verringern oder „Schwelle“ anzupassen)",topicSearchChooseScope:"Bereich auswählen",topicSearchRefreshAndCluster:"Aktualisieren/Kategorisieren",topicSearchScopeModalTitle:"Vektorisierungsbereich auswählen (Ordner)",topicSearchScopeTip:"Standardmäßig ist kein Bereich aktiviert. Sie müssen Ordner auswählen, um zu kategorisieren/suchen. Bereich stammt aus QuickMovePaths.",topicSearchSavingToBackend:"Wird im Backend gespeichert...",topicSearchScopePlaceholder:"Ordner auswählen (Mehrfachauswahl)",topicSearchRecallMsg:"{0} / {1} abgerufen (TopK={2})",topicSearchCacheStale:"Zwischengespeichertes Ergebnis wird angezeigt (Update verfügbar)",topicSearchCacheStaleDesc:"Ordner im ausgewählten Bereich könnten geändert worden sein. Der Cache könnte veraltet sein. Klicken Sie auf „Update“, um Themen neu zu erzeugen (Index wird zuerst aktualisiert).",topicSearchCacheUpdate:"Cache aktualisieren",topicSearchGuideTitle:"Schnellstart (Experimentell)",topicSearchGuideStep1:"Wählen Sie die Ordner (Bereich) zur Analyse aus (Mehrfachauswahl)",topicSearchGuideStep2:'Klicken Sie auf „Aktualisieren", um Themenkarten zu erzeugen (inkrementelle Vektorisierung)',topicSearchGuideStep3:"Geben Sie einen Satz ein, um zu suchen; ähnliche Bilder werden abgerufen und die Ergebnisse geöffnet",topicSearchGuideAdvantage1:"Automatische Gruppierung nach semantischer Ähnlichkeit: KI entdeckt automatisch ähnliche Themen ohne manuelle Kategorisierung",topicSearchGuideAdvantage2:"Natürliche Sprachsemantiksuche: Schnelles Finden verwandter Bilder mit einem Satz, ähnlich der RAG-Suche",topicSearchGuideEmptyReasonNoScope:"Leer, weil: kein Bereich ausgewählt (standardmäßig deaktiviert). Klicken Sie auf „Bereich“, um Ordner zu wählen.",topicSearchGuideEmptyReasonNoTopics:"Leer, weil: für diesen Bereich noch keine Themen erzeugt wurden (Aktualisieren oder Min. Cluster/Schwelle senken).",topicSearchRequirementsTitle:"Voraussetzungen",topicSearchRequirementsOpenai:"Erforderlich: OPENAI_BASE_URL und OPENAI_API_KEY (Backend-Umgebungsvariablen)",topicSearchRequirementsDepsPython:"Erforderlich: Python-Abhängigkeiten numpy und hnswlib (ohne sie ist die Funktion deaktiviert)",topicSearchRequirementsDepsDesktop:"Desktop-App: Abhängigkeiten sind enthalten (numpy/hnswlib müssen nicht installiert werden)",topicSearchRequirementsInstallCmd:"Installation: pip install numpy hnswlib",topicSearchJobFailed:"Job fehlgeschlagen",topicSearchJobStage:"Phase",topicSearchJobQueued:"Job in Warteschlange…",topicSearchJobStageEmbedding:"Vektorisierung…",topicSearchJobStageClustering:"Clustering…",topicSearchJobStageTitling:"Titel werden erzeugt…",topicSearchJobStageDone:"Fertig",topicSearchJobStageError:"Fehler",topicSearchJobEmbeddingDesc:"{0}/{1} vektorisiert (gescannt {2}); aktuell: {3}",topicSearchJobClusteringDesc:"Clustering {0}/{1}",topicSearchJobTitlingDesc:"Titel {0}/{1}","auto.refreshed":"Automatische Aktualisierung erfolgreich durchgeführt!",copied:"In die Zwischenablage kopiert!","index.expired":"Index abgelaufen, automatische Aktualisierung wird durchgeführt",manualExitFullScreen:"Du hast das letzte Bild gelöscht und musst möglicherweise manuell den Vollbild-Vorschaumodus beenden","walk-mode-move-message":"Im Walk-Modus ist das Verschieben des Verzeichnisses nur über 'Schnellzugriff' gestattet",refreshCompleted:"Aktualisierung erfolgreich abgeschlossen",addedTagToImage:"Schlagwort wurde erfolgreich diesem Bild hinzugefügt",removedTagFromImage:"Schlagwort wurde von diesem Bild entfernt",openContextMenu:"Öffne das Kontextmenü",copyPrompt:"Kopiere Prompt-Konfiguration",toggleTag:"(Favorite) Schlagwort hinzufügen/entfernen",addCompleted:"Hinzufügen abgeschlossen",removeCompleted:"Entfernen abgeschlossen",existInOtherType:"Bereits in anderem Typ vorhanden",alreadyExists:"Bereits vorhanden",cancel:"Abbrechen",submit:"Bestätigen",add:"Hinzufügen",custom:"Benutzerdefiniert",needGenerateIdx:`Klicken Sie auf die Schaltfläche, um einen Index zur Bildersuche zu generieren. + This error only appears when gradio-auth is configured.`,remove:"Remove",batchDownload:"Batch Download",archive:"Archive",zipDownload:"Download as ZIP",batchDownloaDDragAndDropHint:"Use drag and drop or the 'Send to Batch Download' option in the right-click menu to add images from other pages here. Multiple selections are supported.",lyco:"LyCORIS",sendToThirdPartyExtension:"Send to third-party extension",createFolder:"Create Folder",inputFolderName:"Input Folder Name",desktop:"Desktop",move:"Move",majorUpdateCustomCellSizeTips:'Major Update: You can now customize the size of the grid image. Adjust it in the global settings page or in the "More" menu in the upper right corner.',ImageBrowsingSettings:"Image Browsing Settings",other:"Other",livePreview:"Live Preview",gridCellWidth:"Grid Cell Width (px)",showChangeIndicators:"Show Change Indicators",seedAsChange:"Seed as Change",defaultShowChangeIndicators:"Default Show Change Indicators",defaultSeedAsChange:"Default Compare Seed as Change",defaultGridCellWidth:"Default Grid Cell Width (px)",thumbnailResolution:"Thumbnail Resolution (px)",inputTargetFolderPath:"Enter the absolute path of the target folder",pathDoesNotExist:"Path does not exist",confirmToAddToExtraPath:"Are you sure you want to add? This may take a lot of time to index if the folder is large. ",clientSpecificSettings:"Client-specific settings",initiateSoftwareStartupConfig:"Initiate software startup configuration","tauriLaunchConf.readSdWebuiConfigTitle":"Read Stable Diffusion Webui Config","tauriLaunchConf.readSdWebuiConfigDescription":"If you have installed sd-webui and this extension, it is recommended to use this option to directly read the configuration and share data.","tauriLaunchConf.selectSdWebuiFolder":"Click to select the SD-webui folder","tauriLaunchConf.skipThisConfigTitle":"Skip This Configuration","tauriLaunchConf.skipThisConfigDescription":"All features will still be available and you can reset them in the settings page.","tauriLaunchConf.skipButton":"Skip","tauriLaunchConfMessages.configNotFound":"Cannot find the corresponding configuration. Please check if the selected folder is correct.","tauriLaunchConfMessages.folderNotFound":"Cannot find the corresponding folder. Please check if the selected folder is correct.","tauriLaunchConfMessages.configCompletedMessage":"Configuration completed. The application will restart shortly.","tauriLaunchConfMessages.firstTimeUserTitle":"It looks like this is your first time using the application. Some configuration is required.",selectAll:"Select All",close:"Close",fileName:"File Name",resolution:"Resolution",fileSize:"File Size",fullscreenview:"Fullscreen View",promptcompare:"Compare Prompts",imgCompare:"Image Comparison",share:"Share",dragImageHere:"Drag image here",copyLocationUrlSuccessMsg:"Copy completed, you can directly open the current folder through the copied link",multiSelectTips:"You can hold down the Shift, Ctrl, or Cmd key and then click on files to perform batch delete/move operations",document:"Document",copy:"Copy",edit:"Edit",defaultSortingMethod:"Default Sorting Method",defaultViewMode:"Default View Mode",showPreviewImage:"Show Preview Image",dontShowAgain:"Don't show again",accessControlModeTips:"To ensure data security, you are currently running in access control mode, which only allows access to authorized folders. You can adjust the access permissions settings (IIB_ACCESS_CONTROL) by editing the .env file in the root directory of this extension. If the .env file does not exist, you can copy the .env.example file and rename it to .env.",changlog:"Change log",clear:"Clear",toggleTagSelection:'Toggle Selection of Tag "{tag}"',fullscreenRestriction:"Due to technical limitations, the first image cannot be deleted when opening the Full-screen view.",shortcutKey:"Keyboard Shortcuts (Only Available in Full-screen view mode)",shortcutKeyDescription:"Click on the input box and press the shortcut key you want to use, supporting combinations with Shift and Ctrl.",serverKeyRequired:"The server has configured a key. You must provide the same key to continue using it.",removeFromSearchScanPathAndQuickMove:"Remove from Search Scan Path and Quick Move",addToSearchScanPathAndQuickMove:"Add to Search Scan Path",openWithLocalFileBrowser:"Open with Local File Browser","fuzzy-search-noResults":"Nothing was found","fuzzy-search-placeholder":"Enter a part of the image information or filename to search","fuzzy-search":"Fuzzy search",autoUpdate:"Detected changes, automatically updating",faq:"FAQ",helpFeedback:"Help / Feedback",helpFeedbackWay1:"Check FAQ / search related issues",helpFeedbackSearchIssues:"Search issues",helpFeedbackWay2:"Open a new issue",helpFeedbackNewIssue:"Create on GitHub",helpFeedbackWay3:"Email the maintainer",tagGraphGenerating:"Generating graph...",tagGraphStatLayers:"Layers",tagGraphStatNodes:"Nodes",tagGraphStatLinks:"Links",tagGraphAllLayers:"All layers",tagGraphFilterPlaceholder:"Keyword filter (match + neighbors)",tagGraphFilterHopsTitle:"Expand hops (N)",tagGraphFilterApply:"Filter",tagGraphFilterReset:"Reset",tagGraphTooltipFilter:"Filter",tagGraphTooltipOpenCluster:"Open cluster",tagGraphFullscreenUnsupported:"Fullscreen is not supported in this environment",tagGraphFullscreenFailed:"Failed to enter fullscreen",selectExactMatchTag:"Select Exact Match Tags. You can search by entering partial characters",selectAnyMatchTag:"Optional, Select Any Match Tags. You can search by entering partial characters",selectExcludeTag:"Optional, Select Exclude Tags. You can search by entering partial characters",exactMatch:"Exact Match",anyMatch:"Match Any",exclude:"Exclude","auto.refreshed":"Auto refresh completed!",copied:"Copied!","index.expired":"Index expired, updating automatically",manualExitFullScreen:"You have deleted the last image and may need to manually exit Full-screen view","walk-mode-move-message":"Moving position is only allowed using 'Quick Move' in walk mode",refreshCompleted:"Refresh completed",addedTagToImage:'Tag "{tag}" has been added to this image',removedTagFromImage:'Tag "{tag}" has been removed from this image',openContextMenu:"Open context menu",copyPrompt:"Copy prompt",copyPositivePrompt:"Copy positive prompt",toggleTag:"Toggle Tag Selection (Favorite)",addCompleted:"Add completed",removeCompleted:"Remove Completed",existInOtherType:"Already exists in other type",alreadyExists:"Already exists",cancel:"Cancel",submit:"Submit",add:"Add",custom:"Custom",needGenerateIdx:`You need to click the button to generate an index for searching images. + This process may take a few minutes to complete.`,search:"Search",UpdateIndex:"Update index",generateIndexHint:"Generate index for search image",Model:"Model",Sampler:"Sampler",lora:"LoRA",size:"Size",pos:"Positive Prompt",unknownSavedDir:"Cannot find the saved folder (outdir_save field in the config)",errorOccurred:"An error occurred",useThumbnailPreview:"Use thumbnail preview",gridThumbnailWidth:"Grid thumbnail width",start:"Start",tip:"Tip",sortByDateAscending:"Updated date ascending",sortByDateDescending:"UPdated date descending",sortByCreatedDateAscending:"Created date ascending",sortByCreatedDateDescending:"Created date descending",sortByNameAscending:"Name ascending",sortByNameDescending:"Name descending",sortBySizeAscending:"Size ascending",sortBySizeDescending:"Size descending",inputAddressAndPressEnter:"Input address and press Enter",go:"Go",unknownError:"Unknown error",loadingNextFolder:"Loading files from the next folder",moveFailedCheckPath:"Move failed. Check your path input.",detailList:"Detail list",previewGrid:"Preview grid",moveSelectedFilesTo:"Move / Copy selected files to",confirm:"Confirm",download:"Download",local:"Local",sendImageFailed:"Failed to send image. Please contact the developer with the error message from the console.",confirmDelete:"Are you sure you want to delete?",deleteSuccess:"Deleted successfully",moveToTrashSuccess:"Moved to trash",doubleClickToCopy:"Double-click to copy",root:"Root",drive:" drive",refresh:"Refresh",quickMove:"Quick move",more:"More",viewMode:"View mode",sortingMethod:"Sorting method",copyPath:"Copy path",deleteSelected:"Delete",previewInNewWindow:"Open in new window",copySourceFilePreviewLink:"Copy source file preview link",viewGenerationInfo:"View generation information (prompt, etc.)",sendToTxt2img:"Send to txt2img",sendToImg2img:"Send to img2img",sendToInpaint:"Send to Inpaint",sendToBatchDownload:"Send to BatchDownload",sendToExtraFeatures:"Send to Extra",sendToControlNet:"Send to ControlNet",loadNextPage:"Load next page",localFile:"Local file",globalSettings:"Global settings",welcome:"Welcome",openInNewWindow:"Open in new tab",restoreLastRecord:"Restore last record",launch:"Launch",walkMode:"Use Walk mode to browse images",launchFromNormalAndFixed:"Use Normal / Fixed mode to browse images",recent:"Recent",emptyStartPage:"Empty start page",t2i:"txt2img",i2i:"img2img",saveButtonSavesTo:"save",extra:"extras",gridImage:"Grid image","i2i-grid":"img2img grid",image:"Image","t2i-grid":"txt2img grid",workingFolder:"working folder",lang:"Language",langChangeReload:"Reload: Some changes may require a reload to take effect",openOnTheRight:"Open to the Side",openInNewTab:"Open in a new tab",openWithWalkMode:"Open with Walk Mode",longPressOpenContextMenu:"Support long press to open right-click menu",searchResults:"Search Results",imgSearch:"Image Search",onlyFoldersAndImages:"Only show folders/images/videos",fileTypeFilter:"File Type Filter",allFiles:"All Files",audio:"Audio",send2savedDir:"Send to saved folder",regexSearchEnabledHint:"(You can also enable regex search by clicking the regex icon on the right)",rebuildImageIndex:"Rebuild Image Index",confirmRebuildImageIndex:"Confirm rebuilding image index?",rebuildComplete:"Rebuild complete",tagSearchNoResultsMessage:"It looks like no results were matched, try rebuilding the index to remove useless tags?","TikTok View":"TikTok View",tiktokView:"TikTok View",magicSwitchTiktokView:"TikTok View Mode",magicSwitchTiktokViewDesc:"When enabled, clicking image/video files will directly enter TikTok-style viewing mode",magicSwitchEnabled:"🎬 ON - Click media files to enter TikTok View",magicSwitchDisabled:"📁 OFF - Click media files to open normally",magicSwitchDetailDesc:"Click images and videos to directly enter TikTok-style browsing experience",autoPlay:"Auto Play",autoPlayOff:"Off",autoPlay5s:"5s",autoPlay10s:"10s",autoPlay20s:"20s",autoPlayTooltip:"Auto Play: {mode} (A to toggle)",autoPlayStatus:"Auto Play: {mode}",exitFullscreen:"Exit Fullscreen",fullscreen:"Fullscreen",soundOn:"Sound On",soundOff:"Sound Off",like:"Like",unlike:"Unlike",tags:"Tags",tag:"Tag",tagOperationFailed:"Tag operation failed",mediaType:"Media Type",all:"All",video:"Video",randomSort:"Random Sort",sortByDate:"Sort by Date","autoTag.name":"Auto Tagging","autoTag.description":"These rules will be automatically applied when images are indexed, adding tags to matching images (Trigger timing: when updating index or rebuilding index on search page). Note: Multiple conditions within a rule use AND logic, all must be satisfied to apply the tag","autoTag.addRule":"Add Rule","autoTag.saveConfig":"Save Config","autoTag.tagName":"Tag Name","autoTag.inputTagName":"Select custom tag","autoTag.field":"Field","autoTag.operator":"Operator","autoTag.value":"Value","autoTag.addFilter":"Add Filter","autoTag.noRules":"No rules, click button above to add","autoTag.saveSuccess":"Saved successfully","autoTag.saveFail":"Save failed","autoTag.fields.posPrompt":"Pos Prompt","autoTag.fields.negPrompt":"Neg Prompt","autoTag.fields.model":"Model","autoTag.fields.sampler":"Sampler","autoTag.fields.size":"Size","autoTag.fields.cfgScale":"CFG Scale","autoTag.fields.steps":"Steps","autoTag.fields.seed":"Seed","autoTag.operators.contains":"Contains","autoTag.operators.equals":"Equals","autoTag.operators.regex":"Regex",aiAnalyzeTags:"AI Analyze Tags",aiAnalyzeTagsNoPrompt:"No prompt found",aiAnalyzeTagsNoCustomTags:"No custom tags available",aiAnalyzeTagsNoMatchedTags:"AI found no matching tags",aiAnalyzeTagsNoValidTags:"No valid matching tags found",aiAnalyzeTagsAllTagsAlreadyAdded:"All matched tags have already been added to the image",aiAnalyzeTagsSuccess:"Added {0} tags: {1}",aiAnalyzeTagsFailed:"AI tag analysis failed, please check configuration"},nj={serverKeyRequired:"Für die weitere Nutzung ist die Eingabe eines Schlüssels erforderlich, der vom Server konfiguriert wurde.",removeFromSearchScanPathAndQuickMove:"Schnellzugriff entfernen",addToSearchScanPathAndQuickMove:"Schnellzugriff hinzufügen",openWithLocalFileBrowser:"Im lokalen Dateimanager öffnen","fuzzy-search-noResults":"Es wurde nichts gefunden","fuzzy-search-placeholder":"Geben Sie einen Teil der Bildinformationen oder des Dateinamens ein, um passende Ergebnisse zu finden","fuzzy-search":"Schnellsuche",autoUpdate:"Erkannte Änderungen, automatische Aktualisierung wird ausgeführt",faq:"FAQ",helpFeedback:"Hilfe / Feedback",helpFeedbackWay1:"FAQ ansehen / ähnliche Issues suchen",helpFeedbackSearchIssues:"Issues durchsuchen",helpFeedbackWay2:"Neues Issue erstellen",helpFeedbackNewIssue:"Auf GitHub erstellen",helpFeedbackWay3:"Dem Maintainer eine E-Mail senden",tagGraphGenerating:"Diagramm wird erzeugt…",tagGraphStatLayers:"Ebenen",tagGraphStatNodes:"Knoten",tagGraphStatLinks:"Verbindungen",tagGraphAllLayers:"Alle Ebenen",tagGraphFilterPlaceholder:"Stichwort-Filter (Treffer + Nachbarn)",tagGraphFilterHopsTitle:"Erweitern (N Hops)",tagGraphFilterApply:"Filtern",tagGraphFilterReset:"Zurücksetzen",tagGraphTooltipFilter:"Filtern",tagGraphTooltipOpenCluster:"Cluster öffnen",tagGraphFullscreenUnsupported:"Vollbild wird in dieser Umgebung nicht unterstützt",tagGraphFullscreenFailed:"Vollbild konnte nicht gestartet werden",selectExactMatchTag:"Wähle Tags für exakte Übereinstimmung aus",selectAnyMatchTag:"(Optional) Wähle Tags für beliebige Übereinstimmung aus",selectExcludeTag:"(Optional) Wähle Tags zum Ausschliessen aus",exactMatch:"Exakte Übereinstimmung",anyMatch:"Beliebige Übereinstimmung",exclude:"Ausschliessen",showTiktokNavigator:"Navigationsschaltflächen anzeigen",showTiktokNavigatorDesc:"Zeigen Sie die Navigationstasten (Pfeile nach oben/unten) in der TikTok-Ansicht an",topicSearchExperimental:"Natürliche Sprach-Kategorisierung & Suche (Experimentell)",topicSearchTitleExperimental:"Natürliche Sprach-Kategorisierung & Suche (Experimentell)",topicSearchScope:"Bereich",topicSearchNeedScope:"Bitte zuerst einen Bereich (Ordner) auswählen",topicSearchQueryPlaceholder:"Geben Sie einen Satz ein, um ähnliche Bilder zu finden (RAG-ähnliche Suche)",topicSearchOpenResults:"Ergebnisse öffnen",topicSearchThreshold:"Schwelle",topicSearchMinClusterSize:"Min. Cluster",topicSearchEmptyNoScope:"Bitte zuerst einen Bereich auswählen, dann aktualisieren/kategorisieren",topicSearchEmptyNoTopics:"Noch keine Themen (versuchen Sie „Min. Cluster“ zu verringern oder „Schwelle“ anzupassen)",topicSearchChooseScope:"Bereich auswählen",topicSearchRefreshAndCluster:"Aktualisieren/Kategorisieren",topicSearchScopeModalTitle:"Vektorisierungsbereich auswählen (Ordner)",topicSearchScopeTip:"Standardmäßig ist kein Bereich aktiviert. Sie müssen Ordner auswählen, um zu kategorisieren/suchen. Bereich stammt aus QuickMovePaths.",topicSearchSavingToBackend:"Wird im Backend gespeichert...",topicSearchScopePlaceholder:"Ordner auswählen (Mehrfachauswahl)",topicSearchRecallMsg:"{0} / {1} abgerufen (TopK={2})",topicSearchCacheStale:"Zwischengespeichertes Ergebnis wird angezeigt (Update verfügbar)",topicSearchCacheStaleDesc:"Ordner im ausgewählten Bereich könnten geändert worden sein. Der Cache könnte veraltet sein. Klicken Sie auf „Update“, um Themen neu zu erzeugen (Index wird zuerst aktualisiert).",topicSearchCacheUpdate:"Cache aktualisieren",topicSearchGuideTitle:"Schnellstart (Experimentell)",topicSearchGuideStep1:"Wählen Sie die Ordner (Bereich) zur Analyse aus (Mehrfachauswahl)",topicSearchGuideStep2:'Klicken Sie auf „Aktualisieren", um Themenkarten zu erzeugen (inkrementelle Vektorisierung)',topicSearchGuideStep3:"Geben Sie einen Satz ein, um zu suchen; ähnliche Bilder werden abgerufen und die Ergebnisse geöffnet",topicSearchGuideAdvantage1:"Automatische Gruppierung nach semantischer Ähnlichkeit: KI entdeckt automatisch ähnliche Themen ohne manuelle Kategorisierung",topicSearchGuideAdvantage2:"Natürliche Sprachsemantiksuche: Schnelles Finden verwandter Bilder mit einem Satz, ähnlich der RAG-Suche",topicSearchGuideEmptyReasonNoScope:"Leer, weil: kein Bereich ausgewählt (standardmäßig deaktiviert). Klicken Sie auf „Bereich“, um Ordner zu wählen.",topicSearchGuideEmptyReasonNoTopics:"Leer, weil: für diesen Bereich noch keine Themen erzeugt wurden (Aktualisieren oder Min. Cluster/Schwelle senken).",topicSearchRequirementsTitle:"Voraussetzungen",topicSearchRequirementsOpenai:"Erforderlich: OPENAI_BASE_URL und OPENAI_API_KEY (Backend-Umgebungsvariablen)",topicSearchRequirementsDepsPython:"Erforderlich: Python-Abhängigkeiten numpy und hnswlib (ohne sie ist die Funktion deaktiviert)",topicSearchRequirementsDepsDesktop:"Desktop-App: Abhängigkeiten sind enthalten (numpy/hnswlib müssen nicht installiert werden)",topicSearchRequirementsInstallCmd:"Installation: pip install numpy hnswlib",topicSearchJobFailed:"Job fehlgeschlagen",topicSearchJobStage:"Phase",topicSearchJobQueued:"Job in Warteschlange…",topicSearchJobStageEmbedding:"Vektorisierung…",topicSearchJobStageClustering:"Clustering…",topicSearchJobStageTitling:"Titel werden erzeugt…",topicSearchJobStageDone:"Fertig",topicSearchJobStageError:"Fehler",topicSearchJobEmbeddingDesc:"{0}/{1} vektorisiert (gescannt {2}); aktuell: {3}",topicSearchJobClusteringDesc:"Clustering {0}/{1}",topicSearchJobTitlingDesc:"Titel {0}/{1}","auto.refreshed":"Automatische Aktualisierung erfolgreich durchgeführt!",copied:"In die Zwischenablage kopiert!","index.expired":"Index abgelaufen, automatische Aktualisierung wird durchgeführt",manualExitFullScreen:"Du hast das letzte Bild gelöscht und musst möglicherweise manuell den Vollbild-Vorschaumodus beenden","walk-mode-move-message":"Im Walk-Modus ist das Verschieben des Verzeichnisses nur über 'Schnellzugriff' gestattet",refreshCompleted:"Aktualisierung erfolgreich abgeschlossen",addedTagToImage:"Schlagwort wurde erfolgreich diesem Bild hinzugefügt",removedTagFromImage:"Schlagwort wurde von diesem Bild entfernt",openContextMenu:"Öffne das Kontextmenü",copyPrompt:"Kopiere Prompt-Konfiguration",toggleTag:"(Favorite) Schlagwort hinzufügen/entfernen",addCompleted:"Hinzufügen abgeschlossen",removeCompleted:"Entfernen abgeschlossen",existInOtherType:"Bereits in anderem Typ vorhanden",alreadyExists:"Bereits vorhanden",cancel:"Abbrechen",submit:"Bestätigen",add:"Hinzufügen",custom:"Benutzerdefiniert",needGenerateIdx:`Klicken Sie auf die Schaltfläche, um einen Index zur Bildersuche zu generieren. Dieser Vorgang kann einige Minuten in Anspruch nehmen.`,search:"Suchen",UpdateIndex:"Index aktualisieren",generateIndexHint:"Index für die Bildersuche generieren",Model:"Modell",Sampler:"Sampler",lora:"LoRA",size:"Grösse",pos:"Positiver Prompt",unknownSavedDir:"Das Speicherverzeichnis konnte nicht gefunden werden (Einstellung für das Speicherverzeichnis in der Konfiguration)",errorOccurred:"Ein Fehler ist aufgetreten",useThumbnailPreview:"Verwende Miniaturansichtsvorschau",gridThumbnailWidth:"Breite der Miniatur-Rasteransicht",start:"Start",tip:"Hinweis",sortByDateAscending:"Datum aufsteigend",sortByDateDescending:"Datum absteigend",sortByCreatedDateAscending:"Erstellungsdatum aufsteigend",sortByCreatedDateDescending:"Erstellungsdatum absteigend",sortByNameAscending:"Name aufsteigend",sortByNameDescending:"Name absteigend",sortBySizeAscending:"Grösse aufsteigend",sortBySizeDescending:"Grösse absteigend",inputAddressAndPressEnter:"Geben Sie die Adresse ein und drücken Sie Enter",go:"Los",unknownError:"Unbekannter Fehler aufgetreten",loadingNextFolder:"Lade Dateien aus dem nächsten Verzeichnis",moveFailedCheckPath:`Fehler beim Verschieben. Überprüfen Sie den eingegebenen Pfad. `,detailList:"Detailübersicht",previewGrid:"Vorschau-Rasteransicht",moveSelectedFilesTo:"Ausgewählte Dateien verschieben nach",confirm:"Bestätigen",download:"Herunterladen",local:"Lokal",sendImageFailed:"Fehler beim Senden des Bildes. Bitte kontaktieren Sie den Entwickler mit der Fehlermeldung aus der Konsole.",confirmDelete:"Sind Sie sicher, dass Sie dies löschen möchten?",deleteSuccess:"Erfolgreich gelöscht",moveToTrashSuccess:"In den Papierkorb verschoben",doubleClickToCopy:"Doppelklick zum Kopieren",root:"Root",drive:" Laufwerk",refresh:"Aktualisieren",quickMove:"Schnellzugriff",more:"Mehr",viewMode:"Ansichtsmodus",sortingMethod:"Sortiermethode",copyPath:"Pfad kopieren",deleteSelected:"Löschen",previewInNewWindow:"In neuem Fenster öffnen",copySourceFilePreviewLink:"Kopiere Dateilink aus dem Verzeichnis",viewGenerationInfo:"Anzeige von Generierungsinformationen (Prompt, etc.)",sendToTxt2img:"Senden an Text-zu-Bild",sendToImg2img:"Senden an Bild-zu-Bild",sendToInpaint:"Senden an Inpaint",sendToExtraFeatures:"Senden an Extras",sendToControlNet:"Senden an ControlNet",loadNextPage:"Nächste Seite laden",localFile:"Lokale Datei",globalSettings:"Globale Einstellungen",welcome:"Willkommen",openInNewWindow:"In neuem Fenster öffnen",restoreLastRecord:"Letztes Verzeichnis wiederherstellen",launch:"Ausführen",walkMode:"Verwende den Walk-Modus, um Bilder zu durchsuchen",recent:"Kürzlich",emptyStartPage:"Leere Startseite",t2i:"Text-zu-Bild",i2i:"Bild-zu-Bild",saveButtonSavesTo:"Speichern",extra:"Extras",gridImage:"Rasterbild","i2i-grid":"Bild-zu-Bild Raster",image:"Bild","t2i-grid":"Text-zu-Bild Raster",workingFolder:"Arbeitsordner",lang:"Sprache",langChangeReload:"Neuladen: Einige Änderungen erfordern ein Neuladen, um wirksam zu werden",openOnTheRight:"Rechts öffnen",openInNewTab:"In neuem Tab öffnen",openWithWalkMode:"Im Walk-Modus öffnen",longPressOpenContextMenu:"Langes Rechtsklicken zur Öffnung des Kontextmenüs unterstützen",searchResults:"Suchergebnisse",imgSearch:"Bildsuche",send2savedDir:"In den gespeicherten Ordner senden",promptcompare:"Prompts vergleichen","TikTok View":"TikTok-Ansicht",rebuildImageIndex:"Bildindex neu erstellen",tagSearchNoResultsMessage:"Es scheint, als wären keine Ergebnisse gefunden worden. Versuchen Sie, den Index neu zu erstellen, um unbenutzte Tags zu entfernen?",tiktokView:"TikTok-Ansicht",magicSwitchTiktokView:"TikTok-Ansichtsmodus",magicSwitchTiktokViewDesc:"Wenn aktiviert, führt das Klicken auf Bild-/Videodateien direkt in den TikTok-Ansichtsmodus",magicSwitchEnabled:"🎬 EIN - Klicken Sie auf Mediendateien, um die TikTok-Ansicht zu öffnen",magicSwitchDisabled:"📁 AUS - Klicken Sie auf Mediendateien, um sie normal zu öffnen",magicSwitchDetailDesc:"Klicken Sie auf Bilder und Videos, um direkt in die TikTok-ähnliche Browsing-Erfahrung einzusteigen",randomImageSettings:"Zufallsbild-Einstellungen",showRandomImageInStartup:"Zufallsbild in Startseite anzeigen",showRandomImageInStartupDesc:"Kontrolliert, ob die Zufallsbild-Option auf der Startseite angezeigt wird",randomImageSettingNotification:"Tipp: Sie können in den globalen Einstellungen steuern, ob die Zufallsbild-Option auf der Startseite angezeigt wird",mediaType:"Medientyp",all:"Alle",video:"Video",randomSort:"Zufällig sortieren",sortByDate:"Nach Datum sortieren",fileTypeFilter:"Dateityp-Filter",allFiles:"Alle Dateien",audio:"Audio",aiAnalyzeTags:"KI-Tags analysieren",aiAnalyzeTagsNoPrompt:"Kein Prompt gefunden",aiAnalyzeTagsNoCustomTags:"Keine benutzerdefinierten Tags verfügbar",aiAnalyzeTagsNoMatchedTags:"KI hat keine passenden Tags gefunden",aiAnalyzeTagsNoValidTags:"Keine gültigen passenden Tags gefunden",aiAnalyzeTagsAllTagsAlreadyAdded:"Alle passenden Tags wurden bereits zum Bild hinzugefügt",aiAnalyzeTagsSuccess:"{0} Tags hinzugefügt: {1}",aiAnalyzeTagsFailed:"KI-Tag-Analyse fehlgeschlagen, bitte Konfiguration überprüfen"},rj={tryMyLuck:"隨便看看",randomImage:"隨機圖片",randomImageSettings:"隨機圖片設定",showRandomImageInStartup:"在啟動頁面顯示隨機圖片",showRandomImageInStartupDesc:"控制隨機圖片選項是否在啟動頁面顯示",randomImageSettingNotification:"提示:您可以在全域設定頁面中控制是否在啟動頁面顯示隨機圖片選項",shuffle:"換一批",pathOnly:"僅路徑",disableMaximize:"禁用最大化",takeEffectAfterReloadPage:"需要重新載入頁面才能生效",compressFile:"對文件壓縮",packOnlyNotDownload:"僅打包不下載",notAllowSingleCtrlOrShiftAsShortcut:"不允許使用單獨的 Ctrl 或者 Shift 作為快速鍵",conflictWithOtherShortcuts:"與其他快速鍵衝突",pinnedSearchHistoryDesc:"你可以通過點擊置頂的搜索歷史來快速還原到之前的搜索狀態。",addNewCustomTag:"添加新的自定義標籤",showTiktokNavigator:"顯示導航按鈕",showTiktokNavigatorDesc:"在 TikTok 視圖中顯示導航按鈕(上/下箭頭)",topicSearchExperimental:"自然語言分類&搜尋(實驗性)",topicSearchTitleExperimental:"自然語言分類 & 搜尋(實驗性)",topicSearchScope:"範圍",topicSearchNeedScope:"請先選擇向量化範圍(資料夾)",topicSearchQueryPlaceholder:"輸入一句話,召回相似圖片(RAG 召回)",topicSearchOpenResults:"打開結果",topicSearchThreshold:"閾值",topicSearchMinClusterSize:"最小組",topicSearchEmptyNoScope:"請先選擇範圍,然後刷新/歸類",topicSearchEmptyNoTopics:"暫無主題結果(可嘗試降低「最小組」或調整「閾值」)",topicSearchChooseScope:"選擇範圍",topicSearchRefreshAndCluster:"刷新/歸類",topicSearchScopeModalTitle:"選擇向量化範圍(資料夾)",topicSearchScopeTip:"預設不啟用任何範圍;必須選擇後才能歸類/搜尋。範圍來源於 QuickMovePaths。",topicSearchSavingToBackend:"正在保存到後端...",topicSearchScopePlaceholder:"選擇資料夾(可多選)",topicSearchRecallMsg:"召回 {0} / {1}(TopK={2})",topicSearchCacheStale:"已顯示快取結果(可更新)",topicSearchCacheStaleDesc:"偵測到範圍內資料夾可能有變更,快取可能已過期。可點擊更新重新生成主題(會先更新索引)。",topicSearchCacheUpdate:"更新快取",topicSearchGuideTitle:"快速上手(實驗性)",topicSearchGuideStep1:"選擇要分析的資料夾範圍(可多選)",topicSearchGuideStep2:"點擊刷新,生成主題卡片(會增量向量化)",topicSearchGuideStep3:"輸入一句話搜尋,召回相似圖片並打開結果頁",topicSearchGuideAdvantage1:"基於語義相似度自動分組:AI自動發現相似主題,無需手動分類",topicSearchGuideAdvantage2:"自然語言語義檢索:用一句話快速找到相關圖片,類似RAG檢索",topicSearchGuideEmptyReasonNoScope:"目前為空:尚未選擇範圍(預設關閉),請先點「範圍」選擇資料夾",topicSearchGuideEmptyReasonNoTopics:"目前為空:此範圍尚未生成主題(可點刷新,或調低最小組/閾值)",topicSearchRequirementsTitle:"使用前置條件",topicSearchRequirementsOpenai:"必須配置:OPENAI_BASE_URL、OPENAI_API_KEY(後端環境變數)",topicSearchRequirementsDepsPython:"必須安裝:Python 依賴 numpy、hnswlib(缺少則功能不可用)",topicSearchRequirementsDepsDesktop:"桌面客戶端:已內建依賴(無需手動安裝 numpy/hnswlib)",topicSearchRequirementsInstallCmd:"安裝命令:pip install numpy hnswlib",topicSearchJobFailed:"任務失敗",topicSearchJobStage:"階段",topicSearchJobQueued:"已提交任務,準備開始…",topicSearchJobStageEmbedding:"向量化中(Embedding)",topicSearchJobStageClustering:"歸類中(Clustering)",topicSearchJobStageTitling:"生成標題中(LLM)",topicSearchJobStageDone:"完成",topicSearchJobStageError:"失敗",topicSearchJobEmbeddingDesc:"已向量化 {0}/{1}(掃描 {2});目前:{3}",topicSearchJobClusteringDesc:"正在歸類 {0}/{1}",topicSearchJobTitlingDesc:"正在生成標題 {0}/{1}",clearCacheIfNotTakeEffect:"如果更改沒有生效,請嘗試清理頁面緩存",success:"成功",setCurrFrameAsVideoPoster:"設置當前幀為視頻封面",sync:"同步",syncDesc:"當你需要實現多設備或者多用戶之間的簡單設置隔離時你可以關閉這個選項, IIB的大部分設置將只會保存到當前瀏覽器上(跨域的情況下也是隔離),不會同步到服務器",readonlyModeSettingPageDesc:"當前為只讀模式,你可以調整調整設置,但這些更改不會被保存",syncHistoryToLocal:"同步歷史到本地",showCommaInGenInfoPanel:"在生成信息面板中顯示逗號",walkModeAutoRefreshDisabled:"Walk模式下自動刷新已停用",disable:"停用",autoRefresh:"自動刷新",autoRefreshNormalFixedMode:"啟用自動刷新 (Normal/Fixed模式)",autoRefreshWalkMode:"啟用自動刷新 (Walk模式)",autoRefreshWalkModePosLimit:"Walk模式下觸發自動刷新的位置極限",pollInterval:"輪詢間隔",pollRefresh:"輪詢刷新",stopPollRefresh:"停止輪詢刷新",pollRefreshTip:"默認情況下你從其他TAB返回IIB時或者IIB的可見性發生改變時IIB都會自動刷新。這個功能是為了讓你一直呆在IIB內時他也能自動刷新,請慎重使用",restoreLastWorkspaceStateSuccess:"成功恢復上次工作區狀態",restoreWorkspaceSnapshotSuccess:"成功恢復工作區快照",openOnAppStart:"啟動時打開",confirmThisAction:"確認這個操作?",WorkspaceSnapshotDesc:`使用工作區快照功能你可以保存當前工作區的狀態,以便下次打開IIB時快速恢復到當前狀態。 你可以在全局設置頁面中指定啟動IIB時恢復到哪一個快照,或者恢復到最後關閉前的工作區狀態。`,WorkspaceSnapshot:"工作區快照",restoreLastWorkspaceState:"恢復上次工作區狀態",restoreWorkspaceSnapshot:"恢復工作區快照: {0}",saveWorkspaceSnapshot:"保存工作區快照",save:"保存",name:"名稱",nameRequired:"名稱不能為空",saveCompleted:"保存完成",openThisAppInNewWindow:"在新窗口打開本應用",readonly:"只讀",accessLimited:"訪問受限",selectFolder:"選擇文件夾",openFileLocationInNewTab:"在新標籤頁打開文件位置",copyTo:"複製到",moveTo:"移動到",moveSuccess:"移動成功",copySuccess:"複製成功",copyFilePath:"複製文件路徑",previewMaskBackgroundOpacity:"預覽遮罩背景透明度",experimentalLRLayout:"並列布局",width:"寬度",alwaysOnTooltipInfo:"若關閉此項,信息面板將收起,直至滑鼠移動至屏幕右側時才打開",alwaysOn:"常駐",time:"時間",pin:"置頂",unpin:"取消置頂",restore:"還原",restoreFromHistory:"從歷史記錄中恢復",history:"歷史記錄",historyRecordsSubstr:"輸入值",historyRecordsisRegex:"是否正則",walkModeDoc:"無需翻頁即可瀏覽指定資料夾下的所有檔案,使用無限捲動的方式呈現。將會使用 DFS 的方式遍歷所有檔案. 注意:該模式下排序僅在同層之間進行",normalModelDoc:"類似於 Windows 的檔案瀏覽器,擁有較高的靈活性. 但在訪問雲端儲存或者類似 SMB 這樣的地方時可能會出現異常",fixedModeDoc:"類似 Normal 模式,但頁面初始速度更快,相容性更好,靈活性稍差。在 Normal 模式下出現了異常的話都可以改用這個試試",type:"類型",filterByKeyword:"輸入標籤關鍵詞過濾",loadmore:"載入更多",rename:"重命名",inputAlias:"輸入別名",addAliasCompleted:"添加別名完成",alias:"別名",showChangeIndicators:"顯示變更指示器",seedAsChange:"將Seed也進行比較",defaultShowChangeIndicators:"預設顯示變更指示器",defaultSeedAsChange:"預設將Seed也進行比較",exit:"退出","select-all":"全選","rerverse-select":"反選","clear-all-selected":"清除所有選擇","keep-multi-selected":"保留多選","Source Identifier":"來源",openWithDefaultApp:"使用預設應用程式開啟",saveSelectedAsJson:"儲存選取的圖像資訊",saveAllAsJson:"儲存所有圖像資訊",saveLoadedImageAsJson:"儲存已載入的圖像資訊",scrollDownToComparePrompt:"向下滾查看Prompt比較",sourceText:"源文本",structuredData:"結構化數據",searchScope:"搜尋範圍",specifiedSearchFolder:"指定搜尋的資料夾,使用逗號或換行分割多個",batchAddTag:"批量添加Tag",batchRemoveTag:"批量移除Tag",errorOccurred:"發生了個錯誤",useThumbnailPreview:"使用縮圖預覽",gridThumbnailWidth:"網格縮圖寬度",start:"開始",tip:"提示",sortByDateAscending:"修改日期昇序",sortByDateDescending:"修改日期降序",sortByCreatedDateAscending:"創建日期昇序",sortByCreatedDateDescending:"創建日期降序",sortByNameAscending:"名稱昇序",sortByNameDescending:"名稱降序",sortBySizeAscending:"大小昇序",sortBySizeDescending:"大小降序",inputAddressAndPressEnter:"輸入地址回車",go:"前往",unknownError:"未知錯誤",loadingNextFolder:"即將載入下一個文件夾的文件",moveFailedCheckPath:"移動失敗,檢查你的路徑輸入",detailList:"詳情列表",previewGrid:"預覽網格",moveSelectedFilesTo:"下列文件 移動 / 複製 至",confirm:"確定",download:"下載",local:"本地",sendImageFailed:"發送圖像失敗,請攜帶console的錯誤訊息找開發者",confirmDelete:"確認刪除?",deleteSuccess:"刪除成功",moveToTrashSuccess:"已移動到回收站",doubleClickToCopy:"雙擊複製",promptcompare:"Compare Prompts",root:"根",drive:"磁碟",refresh:"重新整理",quickMove:"快速移動",more:"更多",viewMode:"檢視模式",sortingMethod:"排序方法",copyPath:"複製路徑",deleteSelected:"刪除",previewInNewWindow:"在新窗口預覽",copySourceFilePreviewLink:"複製源文件預覽連結",viewGenerationInfo:"檢視生成信息(提示等)",sendToTxt2img:"發送到文生圖",sendToImg2img:"發送到圖生圖",sendToInpaint:"發送到局部重繪",sendToControlNet:"發送到ControlNet",sendToBatchDownload:"發送到批量下載",sendToExtraFeatures:"發送到附加功能",loadNextPage:"載入下一頁",localFile:"本地檔案",globalSettings:"全域設定",welcome:"歡迎",openInNewWindow:"在新頁面打開",restoreLastRecord:"還原上次記錄",launch:"啟動",walkMode:"使用 Walk 模式瀏覽圖片",launchFromNormalAndFixed:"使用 Normal / Fixed 模式瀏覽圖片",recent:"最近",emptyStartPage:"空啟動頁",t2i:"文生圖",i2i:"圖生圖",saveButtonSavesTo:"儲存",extra:"附加",gridImage:"網格式圖","i2i-grid":"圖生圖網格",image:"圖片","t2i-grid":"文生圖網格",workingFolder:"工作文件夾",lang:"語言",langChangeReload:"重新載入: 一些變化可能需要在重新載入後生效",openOnTheRight:"在右邊打開",openInNewTab:"在新分頁打開",openWithWalkMode:"使用 Walk 模式打開",longPressOpenContextMenu:"支持使用長按打開右鍵功能表",searchResults:"搜尋結果",imgSearch:"圖片搜尋",onlyFoldersAndImages:"只顯示文件夾/圖片/視頻",fileTypeFilter:"文件類型過濾",allFiles:"所有文件",audio:"音頻",send2savedDir:"發送到儲存的文件夾",unknownSavedDir:"找不到儲存的文件夾(配置文件中的outdir_save欄位)",Model:"模型",Sampler:"採樣器",lora:"LoRA",size:"尺寸",pos:"正面提示",generateIndexHint:"生成索引用於搜尋圖片",UpdateIndex:"更新索引",needGenerateIdx:`你需要先點擊按鈕生成索引用於搜尋圖片 -這個過程可能需要消耗幾分鐘`,search:"搜尋",custom:"自定義",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在於其他類型",alreadyExists:"已存在",toggleTag:"切換標籤選中 (收藏)",addCompleted:"新增完成",removeCompleted:"移除完成",addedTagToImage:'已添加標籤 "{tag}" 到本圖片',removedTagFromImage:'已從本圖片上移除 "{tag}" 標籤',openContextMenu:"打開上下文功能表",copyPrompt:"複製提示",copyPositivePrompt:"複製正向提示",refreshCompleted:"重新整理完成","walk-mode-move-message":'在walk模式下僅允許使用"快速移動"移動位置',manualExitFullScreen:"你刪除了最後一張圖片,也許需要你手動退出全螢幕檢視",copied:"已複製!","index.expired":"索引過期,正在自動更新","auto.refreshed":"自動重新整理完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"選擇完全匹配的 Tag。 您可以輸入部分字符進行搜索",selectAnyMatchTag:"可選,選擇匹配其中一個或多個的 Tag。 您可以輸入部分字符進行搜索",selectExcludeTag:"可選,選擇需要排除掉的 Tag。 您可以輸入部分字符進行搜索",faq:"常見問題",autoUpdate:"檢測到發生改變自動更新","fuzzy-search":"模糊搜尋","fuzzy-search-placeholder":"輸入圖片信息或者文件名的一部分來進行搜尋","fuzzy-search-noResults":"什麼都沒找到",openWithLocalFileBrowser:"使用本地檔案瀏覽器打開",addToSearchScanPathAndQuickMove:"加入搜尋掃描路徑",removeFromSearchScanPathAndQuickMove:"從搜尋掃描路徑和快速移動中移除",serverKeyRequired:"伺服器配置了密鑰,你必须提供相同的密鑰才能繼續使用",shortcutKey:"快速鍵(僅允許在全螢幕檢視下使用)",shortcutKeyDescription:"點擊輸入框按下你想使用的按鍵,支持與Shift和Ctrl進行組合",fullscreenRestriction:"受技術限制,目前拓展不允許刪除打開全螢幕檢視時的首張圖片。",clear:"清除",toggleTagSelection:'切換 "{tag}" 標籤選中',changlog:"更新紀錄",accessControlModeTips:"為確保數據安全,您目前正以訪問控制模式運行,僅能訪問授權文件夾。您可以通過編輯本拓展根目錄的下.env文件來調整訪問權限設置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以將.env.example文件複製並重命名為.env",dontShowAgain:"不再顯示",defaultSortingMethod:"默認排序方法",defaultViewMode:"默認檢視模式",showPreviewImage:"顯示預覽圖",copy:"複製",edit:"編輯",document:"文件",multiSelectTips:"您可以按住Shift、Ctrl或 Cmd鍵,然後單擊文件來進行多選刪除/移動操作",copyLocationUrlSuccessMsg:"複製完成,你可以通過複製的url直接打開目前文件夾",share:"分享",dragImageHere:"拖拽圖片到這裡",imgCompare:"圖片對比",close:"關閉",fullscreenview:"全屏查看",fileName:"文件名稱",resolution:"解析度",fileSize:"文件大小",selectAll:"全選","tauriLaunchConf.readSdWebuiConfigTitle":"讀取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已經安裝sd-webui,且在sd-webui內安裝了本拓展,推薦直接使用這個,將直接讀取配置並且數據共享","tauriLaunchConf.selectSdWebuiFolder":"點擊選擇SD-webui的文件夾","tauriLaunchConf.skipThisConfigTitle":"跳過本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍將可用,你可以在設置頁重置","tauriLaunchConf.skipButton":"跳過","tauriLaunchConfMessages.configNotFound":"找不到對應配置,檢查選擇的文件夾是否正確","tauriLaunchConfMessages.folderNotFound":"找不到對應文件夾,檢查選擇的文件夾是否正確","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即將重啟","tauriLaunchConfMessages.firstTimeUserTitle":"看起來你好像是第一次使用,需要進行一些配置",inputTargetFolderPath:"輸入目標文件夾的絕對路徑",pathDoesNotExist:"路徑不存在",confirmToAddToExtraPath:"確定添加?如果文件夾過大將會消耗過多時間建立索引。",clientSpecificSettings:"客戶端特有的設置",initiateSoftwareStartupConfig:"初始化軟件啟動配置",gridCellWidth:"網格單元寬度 (px)",defaultGridCellWidth:"默認網格單元寬度 (px)",thumbnailResolution:"縮圖解析度 (px)",livePreview:"實時預覽",other:"其他",ImageBrowsingSettings:"圖片瀏覽設置",majorUpdateCustomCellSizeTips:'重大更新:你可以自定義網格圖像的大小了,在全域設置頁或者右上角的"更多"裡面進行調整',desktop:"桌面",move:"移動",inputFolderName:"輸入文件夾名稱",createFolder:"新增文件夾",sendToThirdPartyExtension:"發送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:'使用拖拽或者右鍵功能表中的"發送到批量下載"將其他頁面的圖片添加到這裡,支持多選',zipDownload:"打包成zip下載",archive:"歸檔",batchDownload:"批量下載",remove:"移除",secretKeyRequiredWarnMsg:"為了安全考慮,你必須為本拓展單獨配置Secret Key,具體參考本拓展根目錄下的.env.example文件內的IIB_SECRET_KEY。 這項警告只會在配置了gradio-auth時出現",secretKeyMustBeConfigured:"必須配置Secret Key",deleteOneOnlySkipConfirm:"刪除單個文件時不進行確認",resetOnGlobalSettingsPage:"你可以在全域設置頁重置",privacyAndSecurity:"安全與隱私",dragToResizePanel:"按住並拖動來調整面板的大小",clickToToggleMaximizeMinimize:"單擊切換最大化/最小化",dragToMovePanel:"按住並拖動來移動面板",imageCompareTips:'拖拽文件時也會出現這個面板,可以不需要打開 "圖片對比" 功能',regexSearchEnabledHint:"(你也可以通過點擊右側的正則式圖標來啟用正則式搜索)",confirmRebuildImageIndex:"確認重建圖像索引?",rebuildImageIndex:"重新構建圖像索引",rebuildComplete:"重新構建完成",tagSearchNoResultsMessage:"看起來沒有匹配到任何結果,嘗試通過重新構建索引來去除無用的標籤?","TikTok View":"抖音式瀏覽",tiktokView:"抖音式觀看",magicSwitchTiktokView:"TikTok 觀看模式",magicSwitchTiktokViewDesc:"開啟後,點擊圖片/視頻文件將直接進入TikTok式觀看模式",magicSwitchEnabled:"🎬 開啟 - 點擊媒體文件直接進入 TikTok 觀看",magicSwitchDisabled:"📁 關閉 - 點擊媒體文件正常打開",magicSwitchDetailDesc:"點擊圖片和視頻文件時直接進入 TikTok 式瀏覽體驗",autoPlay:"自動輪播",autoPlayOff:"關閉",autoPlay5s:"5秒",autoPlay10s:"10秒",autoPlay20s:"20秒",autoPlayTooltip:"自動輪播: {mode} (A鍵切換)",autoPlayStatus:"自動輪播:{mode}",exitFullscreen:"退出全螢幕",fullscreen:"全螢幕",soundOn:"開啟聲音",soundOff:"關閉聲音",like:"喜歡",unlike:"取消喜歡",tags:"標籤",tag:"標籤",tagOperationFailed:"標籤操作失敗",mediaType:"媒體類型",all:"全部",video:"視頻",randomSort:"隨機排序",sortByDate:"按日期排序","autoTag.name":"自動標籤 (Auto Tagging)","autoTag.description":"這些規則會在圖像被索引時自動應用,為符合條件的圖像添加標籤(觸發時機:在搜索頁更新索引或重新構建索引時)。注意:同一規則內的多個條件是AND(且)關係,需全部滿足才會應用標籤","autoTag.addRule":"添加規則","autoTag.saveConfig":"保存配置","autoTag.tagName":"標籤名稱","autoTag.inputTagName":"選擇自定義標籤","autoTag.field":"欄位","autoTag.operator":"運算符","autoTag.value":"值","autoTag.addFilter":"添加條件","autoTag.noRules":"暫無規則,點擊上方按鈕添加","autoTag.saveSuccess":"保存成功","autoTag.saveFail":"保存失敗","autoTag.fields.posPrompt":"正向提示詞 (Pos Prompt)","autoTag.fields.negPrompt":"負向提示詞 (Neg Prompt)","autoTag.fields.model":"模型 (Model)","autoTag.fields.sampler":"採樣器 (Sampler)","autoTag.fields.size":"尺寸 (Size)","autoTag.fields.cfgScale":"CFG Scale","autoTag.fields.steps":"Steps","autoTag.fields.seed":"Seed","autoTag.operators.contains":"包含 (Contains)","autoTag.operators.equals":"等於 (Equals)","autoTag.operators.regex":"正則 (Regex)",aiAnalyzeTags:"AI分析標籤",aiAnalyzeTagsNoPrompt:"沒有找到提示詞",aiAnalyzeTagsNoCustomTags:"沒有自定義標籤",aiAnalyzeTagsNoMatchedTags:"AI沒有找到匹配的標籤",aiAnalyzeTagsNoValidTags:"沒有找到有效的匹配標籤",aiAnalyzeTagsAllTagsAlreadyAdded:"所有匹配的標籤已經添加到圖像上了",aiAnalyzeTagsSuccess:"已添加 {0} 個標籤:{1}",aiAnalyzeTagsFailed:"AI分析標籤失敗,請檢查配置"},jS=()=>{const t=navigator.language.toLowerCase();if(t.startsWith("zh"))return/hk|tw|mo/.test(t)?"zhHant":"zhHans";switch(t){case"de":case"de-de":return"de";default:return"en"}},gp=Hz({locale:jS(),fallbackLocale:"en",messages:{zhHans:Ib,zhHant:rj,zh:Ib,en:tj,de:nj},legacy:!1}),{t:Te,locale:lq}=gp.global;/*! js-cookie v3.0.5 | MIT */function qs(t){for(var e=1;e"u")){o=qs({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+t.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const t=new mp;return{eventEmitter:t,useEventListen:(n,r)=>{t.on(n,r),st(()=>t.off(n,r))}}};/*! ***************************************************************************** +這個過程可能需要消耗幾分鐘`,search:"搜尋",custom:"自定義",add:"新增",cancel:"取消",submit:"提交",existInOtherType:"已存在於其他類型",alreadyExists:"已存在",toggleTag:"切換標籤選中 (收藏)",addCompleted:"新增完成",removeCompleted:"移除完成",addedTagToImage:'已添加標籤 "{tag}" 到本圖片',removedTagFromImage:'已從本圖片上移除 "{tag}" 標籤',openContextMenu:"打開上下文功能表",copyPrompt:"複製提示",copyPositivePrompt:"複製正向提示",refreshCompleted:"重新整理完成","walk-mode-move-message":'在walk模式下僅允許使用"快速移動"移動位置',manualExitFullScreen:"你刪除了最後一張圖片,也許需要你手動退出全螢幕檢視",copied:"已複製!","index.expired":"索引過期,正在自動更新","auto.refreshed":"自動重新整理完成!",exactMatch:"完全匹配",anyMatch:"匹配任意",exclude:"排除掉",selectExactMatchTag:"選擇完全匹配的 Tag。 您可以輸入部分字符進行搜索",selectAnyMatchTag:"可選,選擇匹配其中一個或多個的 Tag。 您可以輸入部分字符進行搜索",selectExcludeTag:"可選,選擇需要排除掉的 Tag。 您可以輸入部分字符進行搜索",faq:"常見問題",helpFeedback:"尋求幫助/回饋",helpFeedbackWay1:"先看看常見問題 / 找找相關 issue",helpFeedbackSearchIssues:"搜尋 issues",helpFeedbackWay2:"提一個新的 issue",helpFeedbackNewIssue:"去 GitHub 建立",helpFeedbackWay3:"直接發郵件給維護者",tagGraphGenerating:"正在生成關係圖...",tagGraphStatLayers:"層級",tagGraphStatNodes:"節點",tagGraphStatLinks:"連線",tagGraphAllLayers:"全部層級",tagGraphFilterPlaceholder:"關鍵字過濾(命中 + 上下游)",tagGraphFilterHopsTitle:"擴展層數(N 跳)",tagGraphFilterApply:"篩選",tagGraphFilterReset:"重置",tagGraphTooltipFilter:"過濾",tagGraphTooltipOpenCluster:"打開聚類",tagGraphFullscreenUnsupported:"目前環境不支援全螢幕",tagGraphFullscreenFailed:"全螢幕失敗",autoUpdate:"檢測到發生改變自動更新","fuzzy-search":"模糊搜尋","fuzzy-search-placeholder":"輸入圖片信息或者文件名的一部分來進行搜尋","fuzzy-search-noResults":"什麼都沒找到",openWithLocalFileBrowser:"使用本地檔案瀏覽器打開",addToSearchScanPathAndQuickMove:"加入搜尋掃描路徑",removeFromSearchScanPathAndQuickMove:"從搜尋掃描路徑和快速移動中移除",serverKeyRequired:"伺服器配置了密鑰,你必须提供相同的密鑰才能繼續使用",shortcutKey:"快速鍵(僅允許在全螢幕檢視下使用)",shortcutKeyDescription:"點擊輸入框按下你想使用的按鍵,支持與Shift和Ctrl進行組合",fullscreenRestriction:"受技術限制,目前拓展不允許刪除打開全螢幕檢視時的首張圖片。",clear:"清除",toggleTagSelection:'切換 "{tag}" 標籤選中',changlog:"更新紀錄",accessControlModeTips:"為確保數據安全,您目前正以訪問控制模式運行,僅能訪問授權文件夾。您可以通過編輯本拓展根目錄的下.env文件來調整訪問權限設置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以將.env.example文件複製並重命名為.env",dontShowAgain:"不再顯示",defaultSortingMethod:"默認排序方法",defaultViewMode:"默認檢視模式",showPreviewImage:"顯示預覽圖",copy:"複製",edit:"編輯",document:"文件",multiSelectTips:"您可以按住Shift、Ctrl或 Cmd鍵,然後單擊文件來進行多選刪除/移動操作",copyLocationUrlSuccessMsg:"複製完成,你可以通過複製的url直接打開目前文件夾",share:"分享",dragImageHere:"拖拽圖片到這裡",imgCompare:"圖片對比",close:"關閉",fullscreenview:"全屏查看",fileName:"文件名稱",resolution:"解析度",fileSize:"文件大小",selectAll:"全選","tauriLaunchConf.readSdWebuiConfigTitle":"讀取Stable Diffusion Webui的配置","tauriLaunchConf.readSdWebuiConfigDescription":"如果你已經安裝sd-webui,且在sd-webui內安裝了本拓展,推薦直接使用這個,將直接讀取配置並且數據共享","tauriLaunchConf.selectSdWebuiFolder":"點擊選擇SD-webui的文件夾","tauriLaunchConf.skipThisConfigTitle":"跳過本次配置","tauriLaunchConf.skipThisConfigDescription":"所有功能仍將可用,你可以在設置頁重置","tauriLaunchConf.skipButton":"跳過","tauriLaunchConfMessages.configNotFound":"找不到對應配置,檢查選擇的文件夾是否正確","tauriLaunchConfMessages.folderNotFound":"找不到對應文件夾,檢查選擇的文件夾是否正確","tauriLaunchConfMessages.configCompletedMessage":"配置完成,即將重啟","tauriLaunchConfMessages.firstTimeUserTitle":"看起來你好像是第一次使用,需要進行一些配置",inputTargetFolderPath:"輸入目標文件夾的絕對路徑",pathDoesNotExist:"路徑不存在",confirmToAddToExtraPath:"確定添加?如果文件夾過大將會消耗過多時間建立索引。",clientSpecificSettings:"客戶端特有的設置",initiateSoftwareStartupConfig:"初始化軟件啟動配置",gridCellWidth:"網格單元寬度 (px)",defaultGridCellWidth:"默認網格單元寬度 (px)",thumbnailResolution:"縮圖解析度 (px)",livePreview:"實時預覽",other:"其他",ImageBrowsingSettings:"圖片瀏覽設置",majorUpdateCustomCellSizeTips:'重大更新:你可以自定義網格圖像的大小了,在全域設置頁或者右上角的"更多"裡面進行調整',desktop:"桌面",move:"移動",inputFolderName:"輸入文件夾名稱",createFolder:"新增文件夾",sendToThirdPartyExtension:"發送到第三方拓展",lyco:"LyCORIS",batchDownloaDDragAndDropHint:'使用拖拽或者右鍵功能表中的"發送到批量下載"將其他頁面的圖片添加到這裡,支持多選',zipDownload:"打包成zip下載",archive:"歸檔",batchDownload:"批量下載",remove:"移除",secretKeyRequiredWarnMsg:"為了安全考慮,你必須為本拓展單獨配置Secret Key,具體參考本拓展根目錄下的.env.example文件內的IIB_SECRET_KEY。 這項警告只會在配置了gradio-auth時出現",secretKeyMustBeConfigured:"必須配置Secret Key",deleteOneOnlySkipConfirm:"刪除單個文件時不進行確認",resetOnGlobalSettingsPage:"你可以在全域設置頁重置",privacyAndSecurity:"安全與隱私",dragToResizePanel:"按住並拖動來調整面板的大小",clickToToggleMaximizeMinimize:"單擊切換最大化/最小化",dragToMovePanel:"按住並拖動來移動面板",imageCompareTips:'拖拽文件時也會出現這個面板,可以不需要打開 "圖片對比" 功能',regexSearchEnabledHint:"(你也可以通過點擊右側的正則式圖標來啟用正則式搜索)",confirmRebuildImageIndex:"確認重建圖像索引?",rebuildImageIndex:"重新構建圖像索引",rebuildComplete:"重新構建完成",tagSearchNoResultsMessage:"看起來沒有匹配到任何結果,嘗試通過重新構建索引來去除無用的標籤?","TikTok View":"抖音式瀏覽",tiktokView:"抖音式觀看",magicSwitchTiktokView:"TikTok 觀看模式",magicSwitchTiktokViewDesc:"開啟後,點擊圖片/視頻文件將直接進入TikTok式觀看模式",magicSwitchEnabled:"🎬 開啟 - 點擊媒體文件直接進入 TikTok 觀看",magicSwitchDisabled:"📁 關閉 - 點擊媒體文件正常打開",magicSwitchDetailDesc:"點擊圖片和視頻文件時直接進入 TikTok 式瀏覽體驗",autoPlay:"自動輪播",autoPlayOff:"關閉",autoPlay5s:"5秒",autoPlay10s:"10秒",autoPlay20s:"20秒",autoPlayTooltip:"自動輪播: {mode} (A鍵切換)",autoPlayStatus:"自動輪播:{mode}",exitFullscreen:"退出全螢幕",fullscreen:"全螢幕",soundOn:"開啟聲音",soundOff:"關閉聲音",like:"喜歡",unlike:"取消喜歡",tags:"標籤",tag:"標籤",tagOperationFailed:"標籤操作失敗",mediaType:"媒體類型",all:"全部",video:"視頻",randomSort:"隨機排序",sortByDate:"按日期排序","autoTag.name":"自動標籤 (Auto Tagging)","autoTag.description":"這些規則會在圖像被索引時自動應用,為符合條件的圖像添加標籤(觸發時機:在搜索頁更新索引或重新構建索引時)。注意:同一規則內的多個條件是AND(且)關係,需全部滿足才會應用標籤","autoTag.addRule":"添加規則","autoTag.saveConfig":"保存配置","autoTag.tagName":"標籤名稱","autoTag.inputTagName":"選擇自定義標籤","autoTag.field":"欄位","autoTag.operator":"運算符","autoTag.value":"值","autoTag.addFilter":"添加條件","autoTag.noRules":"暫無規則,點擊上方按鈕添加","autoTag.saveSuccess":"保存成功","autoTag.saveFail":"保存失敗","autoTag.fields.posPrompt":"正向提示詞 (Pos Prompt)","autoTag.fields.negPrompt":"負向提示詞 (Neg Prompt)","autoTag.fields.model":"模型 (Model)","autoTag.fields.sampler":"採樣器 (Sampler)","autoTag.fields.size":"尺寸 (Size)","autoTag.fields.cfgScale":"CFG Scale","autoTag.fields.steps":"Steps","autoTag.fields.seed":"Seed","autoTag.operators.contains":"包含 (Contains)","autoTag.operators.equals":"等於 (Equals)","autoTag.operators.regex":"正則 (Regex)",aiAnalyzeTags:"AI分析標籤",aiAnalyzeTagsNoPrompt:"沒有找到提示詞",aiAnalyzeTagsNoCustomTags:"沒有自定義標籤",aiAnalyzeTagsNoMatchedTags:"AI沒有找到匹配的標籤",aiAnalyzeTagsNoValidTags:"沒有找到有效的匹配標籤",aiAnalyzeTagsAllTagsAlreadyAdded:"所有匹配的標籤已經添加到圖像上了",aiAnalyzeTagsSuccess:"已添加 {0} 個標籤:{1}",aiAnalyzeTagsFailed:"AI分析標籤失敗,請檢查配置"},jS=()=>{const t=navigator.language.toLowerCase();if(t.startsWith("zh"))return/hk|tw|mo/.test(t)?"zhHant":"zhHans";switch(t){case"de":case"de-de":return"de";default:return"en"}},gp=Hz({locale:jS(),fallbackLocale:"en",messages:{zhHans:Ib,zhHant:rj,zh:Ib,en:tj,de:nj},legacy:!1}),{t:Te,locale:lq}=gp.global;/*! js-cookie v3.0.5 | MIT */function qs(t){for(var e=1;e"u")){o=qs({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+t.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const t=new mp;return{eventEmitter:t,useEventListen:(n,r)=>{t.on(n,r),st(()=>t.off(n,r))}}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -147,7 +147,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function sj(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})}const nd=t=>t;function Qr(t=!0,e){const n={type:e||null};return typeof t=="function"?n.default=t:n.required=t,n}var lj="Expected a function";function uj(t,e){var n;if(typeof e!="function")throw new TypeError(lj);return t=kL(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}function cj(t){return t==null}function Mb(t){return uj(2,t)}var fj="Expected a function";function dj(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(fj);return qn(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Zo(t,e,{leading:r,maxWait:e,trailing:a})}function VS(t,e){return t&&t.length?Q_(t,x8(e)):[]}var vj=0;function mr(t){var e=++vj;return sC(t)+e}var Ys=function(e,n,r,a){if(cj(e))throw console.error({op:n,idx:r,field:a,val:e}),new Error("Conversion error, result is null or undefined, field: ".concat(a,", index: ").concat(r,"."));return e},pj=function(e,n){var r=V(function(){var a,i,o=e.options,s=e.conv,l=(a=s.key)!==null&&a!==void 0?a:s.value,u=(i=s.optionText)!==null&&i!==void 0?i:s.text;return n.value?o.reduce(function(c,d,v){var h=u(d).toString(),f=h.toLowerCase().indexOf(n.value.toLowerCase()),p=n.value.length;if(f!==-1){var m=[h.substring(0,f),h.substring(f,f+p),h.substring(f+p)];c.push({frag:m,src:d,key:l(d,v),title:s.text(d).toString(),label:S("div",null,[S("span",null,[m[0]]),S("span",{style:{color:"red"}},[m[1]]),S("span",null,[m[2]])]),value:s.value(d)})}return c},[]).sort(function(c,d){return c.frag[0].length-d.frag[0].length}):o.map(function(c,d){return{src:c,key:Ys(l(c,d),c,d,"key"),label:Ys(u(c),c,d,"label").toString(),title:Ys(s.text(c),c,d,"title").toString(),value:Ys(s.value(c),c,d,"value")}})});return{currOptions:r}};function hj(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function yp(t){return function e(n){return arguments.length===0||hj(n)?e:t.apply(this,arguments)}}function gj(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))}var mj=yp(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const yj=mj;function US(t,e,n,r){var a=function(o){for(var s=e.length,l=0;l{const n=z(),r=new ResizeObserver(i=>{n.value=i[0].target.getBoundingClientRect()});return Ve(()=>{const i=t.value;bp(i),r.observe(i)}),st(()=>{r.disconnect()}),nd({[e||"eleRef"]:t,rect:n})},Ej={enableClone:!0},Oj=(t,e={})=>{const n=typeof t=="function"?t:t.get,r=typeof t=="function"?Z_:t.set;let a=!0;const i=z(),{enableClone:o,debounceSet:s,debounceGet:l}=Object.assign(Object.assign({},Ej),e),u=o?wj:Sj,c=()=>{r(u(i.value))},d=Bf(s)?Zo(c,s):c;{const v=p=>{a=!1,i.value=u(p),a=!0},h=Bf(l)?Zo(v,l):v;let f=0;yt(()=>{++f===1?v(n()):h(n())})}{const v=z(0);pe(v,d),pe(i,()=>{a&&v.value++},{deep:!0,flush:"sync"})}return i};var Pj=he({props:{percent:Qr(()=>50),direction:Qr(()=>"horizontal")},setup(t,e){const n=V(()=>t.direction==="horizontal"),r=z(),{rect:a}=Tj(r),i=V(()=>{const v=a.value;return v?n.value?v.width:v.height:100}),o=Oj({get:()=>t.percent,set:v=>e.emit("update:percent",v)});let s=!1;const l=z(!1),u=v=>{s=v,s||(l.value=!1)},c=v=>{if(s){l.value=!0;const h=n.value?v.movementX:v.movementY;o.value+=h/i.value*100}},d=V(()=>n.value?"width":"height");return{split:o,switchLKeyState:u,changeSplitPercent:c,splitContainer:r,changedPropetry:d,isHorizontal:n,dragging:l}}});const wp=Pj,Aj=SE();Md("data-v-8772a08e");const Ij={class:"split-div"};kd();const Mj=Aj((t,e,n,r,a,i)=>(Oe(),mt("div",{ref:"splitContainer",class:["split-container",{dragging:t.dragging,vertcial:!t.isHorizontal}],onMouseupCapture:e[2]||(e[2]=o=>t.switchLKeyState(!1)),onMousemove:e[3]||(e[3]=(...o)=>t.changeSplitPercent&&t.changeSplitPercent(...o)),onMouseleave:e[4]||(e[4]=o=>t.switchLKeyState(!1))},[S("div",{class:"split-panel",style:`${t.changedPropetry}:${t.split}%`},[_l(t.$slots,"left")],4),S("div",Ij,[S("div",{class:"sense-area",onMousedown:e[1]||(e[1]=o=>t.switchLKeyState(!0))},null,32)]),S("div",{class:"split-panel",style:`${t.changedPropetry}:${100-t.split}%`},[_l(t.$slots,"right")],4)],34)));var kb=[],so=[];function kj(t,e){if(t&&typeof document<"u"){var n,r=e.prepend===!0?"prepend":"append",a=e.singleTag===!0,i=typeof e.container=="string"?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(a){var o=kb.indexOf(i);o===-1&&(o=kb.push(i)-1,so[o]={}),n=so[o]&&so[o][r]?so[o][r]:so[o][r]=s()}else n=s();t.charCodeAt(0)===65279&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),e.attributes)for(var u=Object.keys(e.attributes),c=0;ct;function Qr(t=!0,e){const n={type:e||null};return typeof t=="function"?n.default=t:n.required=t,n}var lj="Expected a function";function uj(t,e){var n;if(typeof e!="function")throw new TypeError(lj);return t=ML(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}function cj(t){return t==null}function kb(t){return uj(2,t)}var fj="Expected a function";function dj(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(fj);return qn(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Zo(t,e,{leading:r,maxWait:e,trailing:a})}function VS(t,e){return t&&t.length?Q_(t,xF(e)):[]}var vj=0;function mr(t){var e=++vj;return sC(t)+e}var Ys=function(e,n,r,a){if(cj(e))throw console.error({op:n,idx:r,field:a,val:e}),new Error("Conversion error, result is null or undefined, field: ".concat(a,", index: ").concat(r,"."));return e},pj=function(e,n){var r=V(function(){var a,i,o=e.options,s=e.conv,l=(a=s.key)!==null&&a!==void 0?a:s.value,u=(i=s.optionText)!==null&&i!==void 0?i:s.text;return n.value?o.reduce(function(c,d,v){var h=u(d).toString(),f=h.toLowerCase().indexOf(n.value.toLowerCase()),p=n.value.length;if(f!==-1){var m=[h.substring(0,f),h.substring(f,f+p),h.substring(f+p)];c.push({frag:m,src:d,key:l(d,v),title:s.text(d).toString(),label:S("div",null,[S("span",null,[m[0]]),S("span",{style:{color:"red"}},[m[1]]),S("span",null,[m[2]])]),value:s.value(d)})}return c},[]).sort(function(c,d){return c.frag[0].length-d.frag[0].length}):o.map(function(c,d){return{src:c,key:Ys(l(c,d),c,d,"key"),label:Ys(u(c),c,d,"label").toString(),title:Ys(s.text(c),c,d,"title").toString(),value:Ys(s.value(c),c,d,"value")}})});return{currOptions:r}};function hj(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function yp(t){return function e(n){return arguments.length===0||hj(n)?e:t.apply(this,arguments)}}function gj(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))}var mj=yp(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const yj=mj;function US(t,e,n,r){var a=function(o){for(var s=e.length,l=0;l{const n=z(),r=new ResizeObserver(i=>{n.value=i[0].target.getBoundingClientRect()});return Ve(()=>{const i=t.value;bp(i),r.observe(i)}),st(()=>{r.disconnect()}),nd({[e||"eleRef"]:t,rect:n})},Ej={enableClone:!0},Oj=(t,e={})=>{const n=typeof t=="function"?t:t.get,r=typeof t=="function"?Z_:t.set;let a=!0;const i=z(),{enableClone:o,debounceSet:s,debounceGet:l}=Object.assign(Object.assign({},Ej),e),u=o?wj:Sj,c=()=>{r(u(i.value))},d=Bf(s)?Zo(c,s):c;{const v=p=>{a=!1,i.value=u(p),a=!0},h=Bf(l)?Zo(v,l):v;let f=0;yt(()=>{++f===1?v(n()):h(n())})}{const v=z(0);pe(v,d),pe(i,()=>{a&&v.value++},{deep:!0,flush:"sync"})}return i};var Pj=he({props:{percent:Qr(()=>50),direction:Qr(()=>"horizontal")},setup(t,e){const n=V(()=>t.direction==="horizontal"),r=z(),{rect:a}=Tj(r),i=V(()=>{const v=a.value;return v?n.value?v.width:v.height:100}),o=Oj({get:()=>t.percent,set:v=>e.emit("update:percent",v)});let s=!1;const l=z(!1),u=v=>{s=v,s||(l.value=!1)},c=v=>{if(s){l.value=!0;const h=n.value?v.movementX:v.movementY;o.value+=h/i.value*100}},d=V(()=>n.value?"width":"height");return{split:o,switchLKeyState:u,changeSplitPercent:c,splitContainer:r,changedPropetry:d,isHorizontal:n,dragging:l}}});const wp=Pj,Aj=SE();kd("data-v-8772a08e");const Ij={class:"split-div"};Md();const kj=Aj((t,e,n,r,a,i)=>(Oe(),mt("div",{ref:"splitContainer",class:["split-container",{dragging:t.dragging,vertcial:!t.isHorizontal}],onMouseupCapture:e[2]||(e[2]=o=>t.switchLKeyState(!1)),onMousemove:e[3]||(e[3]=(...o)=>t.changeSplitPercent&&t.changeSplitPercent(...o)),onMouseleave:e[4]||(e[4]=o=>t.switchLKeyState(!1))},[S("div",{class:"split-panel",style:`${t.changedPropetry}:${t.split}%`},[_l(t.$slots,"left")],4),S("div",Ij,[S("div",{class:"sense-area",onMousedown:e[1]||(e[1]=o=>t.switchLKeyState(!0))},null,32)]),S("div",{class:"split-panel",style:`${t.changedPropetry}:${100-t.split}%`},[_l(t.$slots,"right")],4)],34)));var Mb=[],so=[];function Mj(t,e){if(t&&typeof document<"u"){var n,r=e.prepend===!0?"prepend":"append",a=e.singleTag===!0,i=typeof e.container=="string"?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(a){var o=Mb.indexOf(i);o===-1&&(o=Mb.push(i)-1,so[o]={}),n=so[o]&&so[o][r]?so[o][r]:so[o][r]=s()}else n=s();t.charCodeAt(0)===65279&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),e.attributes)for(var u=Object.keys(e.attributes),c=0;ct.value,text:t=>t.text};var $j=he({components:{ASelect:Dl},emits:["update:value"],props:{value:Qr(),options:Qr(),conv:Qr(()=>Rj),mode:Qr(!1),asNullValues:Qr(()=>[0,""])},setup(t,e){const n=z(""),r=V({get:()=>t.value,set:o=>{e.emit("update:value",o),n.value=""}}),a=o=>{n.value=o},{currOptions:i}=pj(t,n);return{currOptions:i,onSearch:a,selected:r,searchTarget:n}}});const KS=$j;function Dj(t,e,n,r,a,i){const o=us("a-select");return Oe(),mt(o,jd({value:t.asNullValues.includes(t.selected)?null:t.selected,"onUpdate:value":e[1]||(e[1]=s=>t.selected=s),"get-popup-container":s=>s.parentNode,placeholder:"请选择","filter-option":!1,onSearch:t.onSearch,options:t.currOptions,optionLabelProp:"title","show-search":"",mode:t.mode},t.$attrs),null,16,["value","get-popup-container","onSearch","options","mode"])}KS.render=Dj;KS.__file="src/SearchSelect/index.vue";var Lj=he({components:{APagination:_3},props:{option:Qr()},setup(){return{}}});const GS=Lj;function Fj(t,e,n,r,a,i){const o=us("a-pagination");return Oe(),mt(o,{onChange:t.option.onChange,total:t.option.total,current:t.option.curr,"onUpdate:current":t.option.setCurr,"page-size":t.option.pageSize},null,8,["onChange","total","current","onUpdate:current","page-size"])}GS.render=Fj;GS.__file="src/GeneralPagination/index.vue";const Fa=(t=0)=>new Promise(e=>setTimeout(e,t));class Bj extends Error{constructor(e){super(e),this.name="FetchTaskCancel"}}class ts{constructor(e=-1,n=3,r=3e3,a="retry"){this.maxConcurrencyCount=e,this.maxRetryCount=n,this.retryInterval=r,this.errorHandleMethod=a,this.eventEmitter=new mp,this.queue=[],this.lastIdleState=!0}get currConcurrencyCount(){return this.queue.filter(e=>e.running).length}get tasks(){return nd([...this.queue])}get conf(){const{maxConcurrencyCount:e,maxRetryCount:n,retryInterval:r,errorHandleMethod:a}=this;return nd({maxConcurrencyCount:e,maxRetryCount:n,retryInterval:r,errorHandleMethod:a})}noticeChange(){this.eventEmitter.emit("FETCH_QUEUE_CHANGE",this.queue)}noticeIdleChange(){this.isIdle!==this.lastIdleState&&(this.lastIdleState=this.isIdle,this.eventEmitter.emit("FETCH_QUEUE_IDLE_STATE_CHANGE",this.isIdle))}tryRunNext(){if(this.currConcurrencyCount!n.running).shift();e&&e.run()}}runAction(e,n,r){const{action:a}=e;e.running=!0,this.noticeIdleChange();const i=(o=this.maxRetryCount)=>sj(this,void 0,void 0,function*(){try{const s=yield a(e);n(s)}catch(s){switch(this.errorHandleMethod){case"retry":return o===0?(this.emit("RETRIES_EXHAUESTED",e),r(s)):(yield Fa(this.retryInterval),i(o-1));case"throw":return r(s)}}});i()}waitUntilEmpty(){return Promise.all(this.queue.map(e=>e.res))}on(e,n){this.eventEmitter.on(e,n)}static on(e,n){ts.eventEmitter.on(e,n)}emit(e,...n){this.eventEmitter.emit(e,...n),ts.eventEmitter.emit(e,this,...n)}get isIdle(){return this.queue.length===0}pushAction(e,...n){let r,a;const i=new Promise((l,u)=>{r=l,a=u}),o=HS().eventEmitter,s={running:!1,action:e,res:i,extra:n[0],cancel:()=>{o.emit("cancel"),a(new Bj)},run:()=>this.runAction(s,r,a),events:o};return i.finally(()=>{this.queue.splice(this.queue.indexOf(s),1),s.running=!1,this.noticeChange(),this.noticeIdleChange(),this.tryRunNext()}),this.queue.push(s),this.noticeChange(),this.tryRunNext(),s}}ts.eventEmitter=new mp;var qS={exports:{}};const zj={},jj=Object.freeze(Object.defineProperty({__proto__:null,default:zj},Symbol.toStringTag,{value:"Module"})),Wj=rM(jj);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(f){this.toString=function(){return"CORRUPT: "+this.message},this.message=f},invalid:function(f){this.toString=function(){return"INVALID: "+this.message},this.message=f},bug:function(f){this.toString=function(){return"BUG: "+this.message},this.message=f},notReady:function(f){this.toString=function(){return"NOT READY: "+this.message},this.message=f}}};e.cipher.aes=function(f){this.s[0][0][0]||this.O();var p,m,g,y,b=this.s[0][4],w=this.s[1];p=f.length;var _=1;if(p!==4&&p!==6&&p!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[g=f.slice(0),y=[]],f=p;f<4*p+28;f++)m=g[f-1],(f%p===0||p===8&&f%p===4)&&(m=b[m>>>24]<<24^b[m>>16&255]<<16^b[m>>8&255]<<8^b[m&255],f%p===0&&(m=m<<8^m>>>24^_<<24,_=_<<1^283*(_>>7))),g[f]=g[f-p]^m;for(p=0;f;p++,f--)m=g[p&3?f:f-4],y[p]=4>=f||4>p?m:w[0][b[m>>>24]]^w[1][b[m>>16&255]]^w[2][b[m>>8&255]]^w[3][b[m&255]]},e.cipher.aes.prototype={encrypt:function(f){return n(this,f,0)},decrypt:function(f){return n(this,f,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var f=this.s[0],p=this.s[1],m=f[4],g=p[4],y,b,w,_=[],C=[],E,I,T,N;for(y=0;256>y;y++)C[(_[y]=y<<1^283*(y>>7))^y]=y;for(b=w=0;!m[b];b^=E||1,w=C[w]||1)for(T=w^w<<1^w<<2^w<<3^w<<4,T=T>>8^T&255^99,m[b]=T,g[T]=b,I=_[y=_[E=_[b]]],N=16843009*I^65537*y^257*E^16843008*b,I=257*_[T]^16843008*T,y=0;4>y;y++)f[y][b]=I=I<<24^I>>>8,p[y][T]=N=N<<24^N>>>8;for(y=0;5>y;y++)f[y]=f[y].slice(0),p[y]=p[y].slice(0)}};function n(f,p,m){if(p.length!==4)throw new e.exception.invalid("invalid aes block size");var g=f.b[m],y=p[0]^g[0],b=p[m?3:1]^g[1],w=p[2]^g[2];p=p[m?1:3]^g[3];var _,C,E,I=g.length/4-2,T,N=4,R=[0,0,0,0];_=f.s[m],f=_[0];var F=_[1],L=_[2],j=_[3],D=_[4];for(T=0;T>>24]^F[b>>16&255]^L[w>>8&255]^j[p&255]^g[N],C=f[b>>>24]^F[w>>16&255]^L[p>>8&255]^j[y&255]^g[N+1],E=f[w>>>24]^F[p>>16&255]^L[y>>8&255]^j[b&255]^g[N+2],p=f[p>>>24]^F[y>>16&255]^L[b>>8&255]^j[w&255]^g[N+3],N+=4,y=_,b=C,w=E;for(T=0;4>T;T++)R[m?3&-T:T]=D[y>>>24]<<24^D[b>>16&255]<<16^D[w>>8&255]<<8^D[p&255]^g[N++],_=y,y=b,b=w,w=p,p=_;return R}e.bitArray={bitSlice:function(f,p,m){return f=e.bitArray.$(f.slice(p/32),32-(p&31)).slice(1),m===void 0?f:e.bitArray.clamp(f,m-p)},extract:function(f,p,m){var g=Math.floor(-p-m&31);return((p+m-1^p)&-32?f[p/32|0]<<32-g^f[p/32+1|0]>>>g:f[p/32|0]>>>g)&(1<>p-1,1)),f},partial:function(f,p,m){return f===32?p:(m?p|0:p<<32-f)+1099511627776*f},getPartial:function(f){return Math.round(f/1099511627776)||32},equal:function(f,p){if(e.bitArray.bitLength(f)!==e.bitArray.bitLength(p))return!1;var m=0,g;for(g=0;g>>p),m=f[y]<<32-p;return y=f.length?f[f.length-1]:0,f=e.bitArray.getPartial(y),g.push(e.bitArray.partial(p+f&31,32>>24|m>>>8&65280|(m&65280)<<8|m<<24;return f}},e.codec.utf8String={fromBits:function(f){var p="",m=e.bitArray.bitLength(f),g,y;for(g=0;g>>8>>>8>>>8),y<<=8;return decodeURIComponent(escape(p))},toBits:function(f){f=unescape(encodeURIComponent(f));var p=[],m,g=0;for(m=0;m>>w)>>>y),wI){if(!p)try{return e.codec.base32hex.toBits(f)}catch{}throw new e.exception.invalid("this isn't "+T+"!")}_>y?(_-=y,b.push(E^I>>>_),E=I<>>y)>>>26),6>y?(w=f[m]<<6-y,y+=26,m++):(w<<=6,y-=6);for(;g.length&3&&!p;)g+="=";return g},toBits:function(f,p){f=f.replace(/\s|=/g,"");var m=[],g,y=0,b=e.codec.base64.B,w=0,_;for(p&&(b=b.substr(0,62)+"-_"),g=0;g_)throw new e.exception.invalid("this isn't base64!");26>>y),w=_<<32-y):(y+=6,w^=_<<32-y)}return y&56&&m.push(e.bitArray.partial(y&56,w,1)),m}},e.codec.base64url={fromBits:function(f){return e.codec.base64.fromBits(f,1,1)},toBits:function(f){return e.codec.base64.toBits(f,1)}},e.hash.sha256=function(f){this.b[0]||this.O(),f?(this.F=f.F.slice(0),this.A=f.A.slice(0),this.l=f.l):this.reset()},e.hash.sha256.hash=function(f){return new e.hash.sha256().update(f).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(f){typeof f=="string"&&(f=e.codec.utf8String.toBits(f));var p,m=this.A=e.bitArray.concat(this.A,f);if(p=this.l,f=this.l=p+e.bitArray.bitLength(f),9007199254740991p;m++){for(y=!0,g=2;g*g<=m;g++)if(m%g===0){y=!1;break}y&&(8>p&&(this.Y[p]=f(Math.pow(m,.5))),this.b[p]=f(Math.pow(m,1/3)),p++)}}};function r(f,p){var m,g,y,b=f.F,w=f.b,_=b[0],C=b[1],E=b[2],I=b[3],T=b[4],N=b[5],R=b[6],F=b[7];for(m=0;64>m;m++)16>m?g=p[m]:(g=p[m+1&15],y=p[m+14&15],g=p[m&15]=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+p[m&15]+p[m+9&15]|0),g=g+F+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(R^T&(N^R))+w[m],F=R,R=N,N=T,T=I+g|0,I=E,E=C,C=_,_=g+(C&E^I&(C^E))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;b[0]=b[0]+_|0,b[1]=b[1]+C|0,b[2]=b[2]+E|0,b[3]=b[3]+I|0,b[4]=b[4]+T|0,b[5]=b[5]+N|0,b[6]=b[6]+R|0,b[7]=b[7]+F|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(f){e.mode.ccm.G.push(f)},unListenProgress:function(f){f=e.mode.ccm.G.indexOf(f),-1C)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(b=2;4>b&&E>>>8*b;b++);return b<15-C&&(b=15-C),m=_.clamp(m,8*(15-b)),p=e.mode.ccm.V(f,p,m,g,y,b),w=e.mode.ccm.C(f,w,m,p,y,b),_.concat(w.data,w.tag)},decrypt:function(f,p,m,g,y){y=y||64,g=g||[];var b=e.bitArray,w=b.bitLength(m)/8,E=b.bitLength(p),_=b.clamp(p,E-y),C=b.bitSlice(p,E-y),E=(E-y)/8;if(7>w)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(p=2;4>p&&E>>>8*p;p++);if(p<15-w&&(p=15-w),m=b.clamp(m,8*(15-p)),_=e.mode.ccm.C(f,_,m,C,y,p),f=e.mode.ccm.V(f,_.data,m,g,y,p),!b.equal(_.tag,f))throw new e.exception.corrupt("ccm: tag doesn't match");return _.data},na:function(f,p,m,g,y,b){var w=[],_=e.bitArray,C=_.i;if(g=[_.partial(8,(p.length?64:0)|g-2<<2|b-1)],g=_.concat(g,m),g[3]|=y,g=f.encrypt(g),p.length)for(m=_.bitLength(p)/8,65279>=m?w=[_.partial(16,m)]:4294967295>=m&&(w=_.concat([_.partial(16,65534)],[m])),w=_.concat(w,p),p=0;py||16I&&(e.mode.ccm.fa(w/C),I+=T),m[3]++,y=f.encrypt(m),p[w]^=y[0],p[w+1]^=y[1],p[w+2]^=y[2],p[w+3]^=y[3];return{tag:g,data:_.clamp(p,E)}}},e.mode.ocb2={name:"ocb2",encrypt:function(f,p,m,g,y,b){if(e.bitArray.bitLength(m)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var w,_=e.mode.ocb2.S,C=e.bitArray,E=C.i,I=[0,0,0,0];m=_(f.encrypt(m));var T,N=[];for(g=g||[],y=y||64,w=0;w+4y.bitLength(m)&&(_=b(_,g(_)),m=y.concat(m,[-2147483648,0,0,0])),w=b(w,m),f.encrypt(b(g(b(_,g(_))),w))},S:function(f){return[f[0]<<1^f[1]>>>31,f[1]<<1^f[2]>>>31,f[2]<<1^f[3]>>>31,f[3]<<1^135*(f[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(f,p,m,g,y){var b=p.slice(0);return p=e.bitArray,g=g||[],f=e.mode.gcm.C(!0,f,b,g,m,y||128),p.concat(f.data,f.tag)},decrypt:function(f,p,m,g,y){var b=p.slice(0),w=e.bitArray,_=w.bitLength(b);if(y=y||128,g=g||[],y<=_?(p=w.bitSlice(b,_-y),b=w.bitSlice(b,0,_-y)):(p=b,b=[]),f=e.mode.gcm.C(!1,f,b,g,m,y),!w.equal(f.tag,p))throw new e.exception.corrupt("gcm: tag doesn't match");return f.data},ka:function(f,p){var m,g,y,b,w,_=e.bitArray.i;for(y=[0,0,0,0],b=p.slice(0),m=0;128>m;m++){for((g=(f[Math.floor(m/32)]&1<<31-m%32)!==0)&&(y=_(y,b)),w=(b[3]&1)!==0,g=3;0>>1|(b[g-1]&1)<<31;b[0]>>>=1,w&&(b[0]^=-520093696)}return y},j:function(f,p,m){var g,y=m.length;for(p=p.slice(0),g=0;gy&&(f=p.hash(f)),g=0;gg||0>m)throw new e.exception.invalid("invalid params to pbkdf2");typeof f=="string"&&(f=e.codec.utf8String.toBits(f)),typeof p=="string"&&(p=e.codec.utf8String.toBits(p)),y=y||e.misc.hmac,f=new y(f);var b,w,_,C,E=[],I=e.bitArray;for(C=1;32*E.length<(g||1);C++){for(y=b=f.encrypt(I.concat(p,[C])),w=1;ww;w++)y.push(4294967296*Math.random()|0);for(w=0;w=1<this.o&&(this.o=b),this.P++,this.b=e.hash.sha256.hash(this.b.concat(y)),this.L=new e.cipher.aes(this.b),g=0;4>g&&(this.h[g]=this.h[g]+1|0,!this.h[g]);g++);}for(g=0;g>>1;this.c[w].update([g,this.N++,2,p,b,f.length].concat(f))}break;case"string":p===void 0&&(p=f.length),this.c[w].update([g,this.N++,3,p,b,f.length]),this.c[w].update(f);break;default:C=1}if(C)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[w]+=p,this.f+=p,_===this.u&&(this.isReady()!==this.u&&a("seeded",Math.max(this.o,this.f)),a("progress",this.getProgress()))},isReady:function(f){return f=this.T[f!==void 0?f:this.M],this.o&&this.o>=f?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=f?this.J|this.u:this.u},getProgress:function(f){return f=this.T[f||this.M],this.o>=f||this.f>f?1:this.f/f},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:l(this,this.ma),mouseCollector:l(this,this.oa),keyboardCollector:l(this,this.la),accelerometerCollector:l(this,this.ea),touchCollector:l(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new e.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(f,p){this.K[f][this.ga++]=p},removeEventListener:function(f,p){var m,g,y=this.K[f],b=[];for(g in y)y.hasOwnProperty(g)&&y[g]===p&&b.push(g);for(m=0;mp&&(f.h[p]=f.h[p]+1|0,!f.h[p]);p++);return f.L.encrypt(f.h)}function l(f,p){return function(){p.apply(f,arguments)}}e.random=new e.prng(6);e:try{var u,c,d,v;if(v=t.exports){var h;try{h=Wj}catch{h=null}v=c=h}if(v&&c.randomBytes)u=c.randomBytes(128),u=new Uint32Array(new Uint8Array(u).buffer),e.random.addEntropy(u,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(d=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(d);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(d);else break e;e.random.addEntropy(d,1024,"crypto['getRandomValues']")}}catch(f){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(f))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(f,p,m,g){m=m||{},g=g||{};var y=e.json,b=y.g({iv:e.random.randomWords(4,0)},y.defaults),w;if(y.g(b,m),m=b.adata,typeof b.salt=="string"&&(b.salt=e.codec.base64.toBits(b.salt)),typeof b.iv=="string"&&(b.iv=e.codec.base64.toBits(b.iv)),!e.mode[b.mode]||!e.cipher[b.cipher]||typeof f=="string"&&100>=b.iter||b.ts!==64&&b.ts!==96&&b.ts!==128||b.ks!==128&&b.ks!==192&&b.ks!==256||2>b.iv.length||4=p.iter||p.ts!==64&&p.ts!==96&&p.ts!==128||p.ks!==128&&p.ks!==192&&p.ks!==256||!p.iv||2>p.iv.length||4{for(var n in e)Vj(t,n,{get:e[n],enumerable:!0})},Uj={};en(Uj,{convertFileSrc:()=>Gj,invoke:()=>Hu,transformCallback:()=>Ba});function Kj(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function Ba(t,e=!1){let n=Kj(),r=`_${n}`;return Object.defineProperty(window,r,{value:a=>(e&&Reflect.deleteProperty(window,r),t==null?void 0:t(a)),writable:!1,configurable:!0}),n}async function Hu(t,e={}){return new Promise((n,r)=>{let a=Ba(o=>{n(o),Reflect.deleteProperty(window,`_${i}`)},!0),i=Ba(o=>{r(o),Reflect.deleteProperty(window,`_${a}`)},!0);window.__TAURI_IPC__({cmd:t,callback:a,error:i,...e})})}function Gj(t,e="asset"){let n=encodeURIComponent(t);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${n}`:`${e}://localhost/${n}`}async function ce(t){return Hu("tauri",t)}var qj={};en(qj,{TauriEvent:()=>ZS,emit:()=>Cp,listen:()=>QS,once:()=>ex});async function YS(t,e){return ce({__tauriModule:"Event",message:{cmd:"unlisten",event:t,eventId:e}})}async function JS(t,e,n){await ce({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})}async function _p(t,e,n){return ce({__tauriModule:"Event",message:{cmd:"listen",event:t,windowLabel:e,handler:Ba(n)}}).then(r=>async()=>YS(t,r))}async function XS(t,e,n){return _p(t,e,r=>{n(r),YS(t,r.id).catch(()=>{})})}var ZS=(t=>(t.WINDOW_RESIZED="tauri://resize",t.WINDOW_MOVED="tauri://move",t.WINDOW_CLOSE_REQUESTED="tauri://close-requested",t.WINDOW_CREATED="tauri://window-created",t.WINDOW_DESTROYED="tauri://destroyed",t.WINDOW_FOCUS="tauri://focus",t.WINDOW_BLUR="tauri://blur",t.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",t.WINDOW_THEME_CHANGED="tauri://theme-changed",t.WINDOW_FILE_DROP="tauri://file-drop",t.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",t.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",t.MENU="tauri://menu",t.CHECK_UPDATE="tauri://update",t.UPDATE_AVAILABLE="tauri://update-available",t.INSTALL_UPDATE="tauri://update-install",t.STATUS_UPDATE="tauri://update-status",t.DOWNLOAD_PROGRESS="tauri://update-download-progress",t))(ZS||{});async function QS(t,e){return _p(t,null,e)}async function ex(t,e){return XS(t,null,e)}async function Cp(t,e){return JS(t,void 0,e)}var Yj={};en(Yj,{checkUpdate:()=>Xj,installUpdate:()=>Jj,onUpdaterEvent:()=>Sp});async function Sp(t){return QS("tauri://update-status",e=>{t(e==null?void 0:e.payload)})}async function Jj(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function a(i){if(i.error){e(),r(i.error);return}i.status==="DONE"&&(e(),n())}Sp(a).then(i=>{t=i}).catch(i=>{throw e(),i}),Cp("tauri://update-install").catch(i=>{throw e(),i})})}async function Xj(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function a(o){e(),n({manifest:o,shouldUpdate:!0})}function i(o){if(o.error){e(),r(o.error);return}o.status==="UPTODATE"&&(e(),n({shouldUpdate:!1}))}ex("tauri://update-available",o=>{a(o==null?void 0:o.payload)}).catch(o=>{throw e(),o}),Sp(i).then(o=>{t=o}).catch(o=>{throw e(),o}),Cp("tauri://update").catch(o=>{throw e(),o})})}var Zj={};en(Zj,{CloseRequestedEvent:()=>ox,LogicalPosition:()=>nx,LogicalSize:()=>tx,PhysicalPosition:()=>Hl,PhysicalSize:()=>Wl,UserAttentionType:()=>rx,WebviewWindow:()=>Ni,WebviewWindowHandle:()=>ax,WindowManager:()=>ix,appWindow:()=>ad,availableMonitors:()=>n7,currentMonitor:()=>e7,getAll:()=>rd,getCurrent:()=>Qj,primaryMonitor:()=>t7});var tx=class{constructor(e,n){this.type="Logical",this.width=e,this.height=n}},Wl=class{constructor(e,n){this.type="Physical",this.width=e,this.height=n}toLogical(e){return new tx(this.width/e,this.height/e)}},nx=class{constructor(e,n){this.type="Logical",this.x=e,this.y=n}},Hl=class{constructor(e,n){this.type="Physical",this.x=e,this.y=n}toLogical(e){return new nx(this.x/e,this.y/e)}},rx=(t=>(t[t.Critical=1]="Critical",t[t.Informational=2]="Informational",t))(rx||{});function Qj(){return new Ni(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function rd(){return window.__TAURI_METADATA__.__windows.map(t=>new Ni(t.label,{skip:!0}))}var Nb=["tauri://created","tauri://error"],ax=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):_p(e,this.label,n)}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):XS(e,this.label,n)}async emit(e,n){if(Nb.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return JS(e,this.label,n)}_handleTauriEvent(e,n){return Nb.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}},ix=class extends ax{async scaleFactor(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:n})=>new Hl(e,n))}async outerPosition(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:n})=>new Hl(e,n))}async innerSize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:n})=>new Wl(e,n))}async outerSize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:n})=>new Wl(e,n))}async isFullscreen(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let n=null;return e&&(e===1?n={type:"Critical"}:n={type:"Informational"}),ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",n=>{n.payload=lx(n.payload),e(n)})}async onMoved(e){return this.listen("tauri://move",n=>{n.payload=sx(n.payload),e(n)})}async onCloseRequested(e){return this.listen("tauri://close-requested",n=>{let r=new ox(n);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let n=await this.listen("tauri://focus",a=>{e({...a,payload:!0})}),r=await this.listen("tauri://blur",a=>{e({...a,payload:!1})});return()=>{n(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let n=await this.listen("tauri://file-drop",i=>{e({...i,payload:{type:"drop",paths:i.payload}})}),r=await this.listen("tauri://file-drop-hover",i=>{e({...i,payload:{type:"hover",paths:i.payload}})}),a=await this.listen("tauri://file-drop-cancelled",i=>{e({...i,payload:{type:"cancel"}})});return()=>{n(),r(),a()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},ox=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},Ni=class extends ix{constructor(e,n={}){super(e),n!=null&&n.skip||ce({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return rd().some(n=>n.label===e)?new Ni(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of rd())if(await e.isFocused())return e;return null}},ad;"__TAURI_METADATA__"in window?ad=new Ni(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +}`;Mj(Nj,{});wp.render=kj;wp.__scopeId="data-v-8772a08e";wp.__file="src/SplitView/index.vue";const Rj={value:t=>t.value,text:t=>t.text};var $j=he({components:{ASelect:Dl},emits:["update:value"],props:{value:Qr(),options:Qr(),conv:Qr(()=>Rj),mode:Qr(!1),asNullValues:Qr(()=>[0,""])},setup(t,e){const n=z(""),r=V({get:()=>t.value,set:o=>{e.emit("update:value",o),n.value=""}}),a=o=>{n.value=o},{currOptions:i}=pj(t,n);return{currOptions:i,onSearch:a,selected:r,searchTarget:n}}});const KS=$j;function Dj(t,e,n,r,a,i){const o=us("a-select");return Oe(),mt(o,jd({value:t.asNullValues.includes(t.selected)?null:t.selected,"onUpdate:value":e[1]||(e[1]=s=>t.selected=s),"get-popup-container":s=>s.parentNode,placeholder:"请选择","filter-option":!1,onSearch:t.onSearch,options:t.currOptions,optionLabelProp:"title","show-search":"",mode:t.mode},t.$attrs),null,16,["value","get-popup-container","onSearch","options","mode"])}KS.render=Dj;KS.__file="src/SearchSelect/index.vue";var Lj=he({components:{APagination:_3},props:{option:Qr()},setup(){return{}}});const GS=Lj;function Fj(t,e,n,r,a,i){const o=us("a-pagination");return Oe(),mt(o,{onChange:t.option.onChange,total:t.option.total,current:t.option.curr,"onUpdate:current":t.option.setCurr,"page-size":t.option.pageSize},null,8,["onChange","total","current","onUpdate:current","page-size"])}GS.render=Fj;GS.__file="src/GeneralPagination/index.vue";const Fa=(t=0)=>new Promise(e=>setTimeout(e,t));class Bj extends Error{constructor(e){super(e),this.name="FetchTaskCancel"}}class ts{constructor(e=-1,n=3,r=3e3,a="retry"){this.maxConcurrencyCount=e,this.maxRetryCount=n,this.retryInterval=r,this.errorHandleMethod=a,this.eventEmitter=new mp,this.queue=[],this.lastIdleState=!0}get currConcurrencyCount(){return this.queue.filter(e=>e.running).length}get tasks(){return nd([...this.queue])}get conf(){const{maxConcurrencyCount:e,maxRetryCount:n,retryInterval:r,errorHandleMethod:a}=this;return nd({maxConcurrencyCount:e,maxRetryCount:n,retryInterval:r,errorHandleMethod:a})}noticeChange(){this.eventEmitter.emit("FETCH_QUEUE_CHANGE",this.queue)}noticeIdleChange(){this.isIdle!==this.lastIdleState&&(this.lastIdleState=this.isIdle,this.eventEmitter.emit("FETCH_QUEUE_IDLE_STATE_CHANGE",this.isIdle))}tryRunNext(){if(this.currConcurrencyCount!n.running).shift();e&&e.run()}}runAction(e,n,r){const{action:a}=e;e.running=!0,this.noticeIdleChange();const i=(o=this.maxRetryCount)=>sj(this,void 0,void 0,function*(){try{const s=yield a(e);n(s)}catch(s){switch(this.errorHandleMethod){case"retry":return o===0?(this.emit("RETRIES_EXHAUESTED",e),r(s)):(yield Fa(this.retryInterval),i(o-1));case"throw":return r(s)}}});i()}waitUntilEmpty(){return Promise.all(this.queue.map(e=>e.res))}on(e,n){this.eventEmitter.on(e,n)}static on(e,n){ts.eventEmitter.on(e,n)}emit(e,...n){this.eventEmitter.emit(e,...n),ts.eventEmitter.emit(e,this,...n)}get isIdle(){return this.queue.length===0}pushAction(e,...n){let r,a;const i=new Promise((l,u)=>{r=l,a=u}),o=HS().eventEmitter,s={running:!1,action:e,res:i,extra:n[0],cancel:()=>{o.emit("cancel"),a(new Bj)},run:()=>this.runAction(s,r,a),events:o};return i.finally(()=>{this.queue.splice(this.queue.indexOf(s),1),s.running=!1,this.noticeChange(),this.noticeIdleChange(),this.tryRunNext()}),this.queue.push(s),this.noticeChange(),this.tryRunNext(),s}}ts.eventEmitter=new mp;var qS={exports:{}};const zj={},jj=Object.freeze(Object.defineProperty({__proto__:null,default:zj},Symbol.toStringTag,{value:"Module"})),Wj=rk(jj);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(f){this.toString=function(){return"CORRUPT: "+this.message},this.message=f},invalid:function(f){this.toString=function(){return"INVALID: "+this.message},this.message=f},bug:function(f){this.toString=function(){return"BUG: "+this.message},this.message=f},notReady:function(f){this.toString=function(){return"NOT READY: "+this.message},this.message=f}}};e.cipher.aes=function(f){this.s[0][0][0]||this.O();var p,m,g,y,b=this.s[0][4],w=this.s[1];p=f.length;var _=1;if(p!==4&&p!==6&&p!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[g=f.slice(0),y=[]],f=p;f<4*p+28;f++)m=g[f-1],(f%p===0||p===8&&f%p===4)&&(m=b[m>>>24]<<24^b[m>>16&255]<<16^b[m>>8&255]<<8^b[m&255],f%p===0&&(m=m<<8^m>>>24^_<<24,_=_<<1^283*(_>>7))),g[f]=g[f-p]^m;for(p=0;f;p++,f--)m=g[p&3?f:f-4],y[p]=4>=f||4>p?m:w[0][b[m>>>24]]^w[1][b[m>>16&255]]^w[2][b[m>>8&255]]^w[3][b[m&255]]},e.cipher.aes.prototype={encrypt:function(f){return n(this,f,0)},decrypt:function(f){return n(this,f,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var f=this.s[0],p=this.s[1],m=f[4],g=p[4],y,b,w,_=[],C=[],E,I,T,N;for(y=0;256>y;y++)C[(_[y]=y<<1^283*(y>>7))^y]=y;for(b=w=0;!m[b];b^=E||1,w=C[w]||1)for(T=w^w<<1^w<<2^w<<3^w<<4,T=T>>8^T&255^99,m[b]=T,g[T]=b,I=_[y=_[E=_[b]]],N=16843009*I^65537*y^257*E^16843008*b,I=257*_[T]^16843008*T,y=0;4>y;y++)f[y][b]=I=I<<24^I>>>8,p[y][T]=N=N<<24^N>>>8;for(y=0;5>y;y++)f[y]=f[y].slice(0),p[y]=p[y].slice(0)}};function n(f,p,m){if(p.length!==4)throw new e.exception.invalid("invalid aes block size");var g=f.b[m],y=p[0]^g[0],b=p[m?3:1]^g[1],w=p[2]^g[2];p=p[m?1:3]^g[3];var _,C,E,I=g.length/4-2,T,N=4,R=[0,0,0,0];_=f.s[m],f=_[0];var F=_[1],L=_[2],j=_[3],D=_[4];for(T=0;T>>24]^F[b>>16&255]^L[w>>8&255]^j[p&255]^g[N],C=f[b>>>24]^F[w>>16&255]^L[p>>8&255]^j[y&255]^g[N+1],E=f[w>>>24]^F[p>>16&255]^L[y>>8&255]^j[b&255]^g[N+2],p=f[p>>>24]^F[y>>16&255]^L[b>>8&255]^j[w&255]^g[N+3],N+=4,y=_,b=C,w=E;for(T=0;4>T;T++)R[m?3&-T:T]=D[y>>>24]<<24^D[b>>16&255]<<16^D[w>>8&255]<<8^D[p&255]^g[N++],_=y,y=b,b=w,w=p,p=_;return R}e.bitArray={bitSlice:function(f,p,m){return f=e.bitArray.$(f.slice(p/32),32-(p&31)).slice(1),m===void 0?f:e.bitArray.clamp(f,m-p)},extract:function(f,p,m){var g=Math.floor(-p-m&31);return((p+m-1^p)&-32?f[p/32|0]<<32-g^f[p/32+1|0]>>>g:f[p/32|0]>>>g)&(1<>p-1,1)),f},partial:function(f,p,m){return f===32?p:(m?p|0:p<<32-f)+1099511627776*f},getPartial:function(f){return Math.round(f/1099511627776)||32},equal:function(f,p){if(e.bitArray.bitLength(f)!==e.bitArray.bitLength(p))return!1;var m=0,g;for(g=0;g>>p),m=f[y]<<32-p;return y=f.length?f[f.length-1]:0,f=e.bitArray.getPartial(y),g.push(e.bitArray.partial(p+f&31,32>>24|m>>>8&65280|(m&65280)<<8|m<<24;return f}},e.codec.utf8String={fromBits:function(f){var p="",m=e.bitArray.bitLength(f),g,y;for(g=0;g>>8>>>8>>>8),y<<=8;return decodeURIComponent(escape(p))},toBits:function(f){f=unescape(encodeURIComponent(f));var p=[],m,g=0;for(m=0;m>>w)>>>y),wI){if(!p)try{return e.codec.base32hex.toBits(f)}catch{}throw new e.exception.invalid("this isn't "+T+"!")}_>y?(_-=y,b.push(E^I>>>_),E=I<>>y)>>>26),6>y?(w=f[m]<<6-y,y+=26,m++):(w<<=6,y-=6);for(;g.length&3&&!p;)g+="=";return g},toBits:function(f,p){f=f.replace(/\s|=/g,"");var m=[],g,y=0,b=e.codec.base64.B,w=0,_;for(p&&(b=b.substr(0,62)+"-_"),g=0;g_)throw new e.exception.invalid("this isn't base64!");26>>y),w=_<<32-y):(y+=6,w^=_<<32-y)}return y&56&&m.push(e.bitArray.partial(y&56,w,1)),m}},e.codec.base64url={fromBits:function(f){return e.codec.base64.fromBits(f,1,1)},toBits:function(f){return e.codec.base64.toBits(f,1)}},e.hash.sha256=function(f){this.b[0]||this.O(),f?(this.F=f.F.slice(0),this.A=f.A.slice(0),this.l=f.l):this.reset()},e.hash.sha256.hash=function(f){return new e.hash.sha256().update(f).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(f){typeof f=="string"&&(f=e.codec.utf8String.toBits(f));var p,m=this.A=e.bitArray.concat(this.A,f);if(p=this.l,f=this.l=p+e.bitArray.bitLength(f),9007199254740991p;m++){for(y=!0,g=2;g*g<=m;g++)if(m%g===0){y=!1;break}y&&(8>p&&(this.Y[p]=f(Math.pow(m,.5))),this.b[p]=f(Math.pow(m,1/3)),p++)}}};function r(f,p){var m,g,y,b=f.F,w=f.b,_=b[0],C=b[1],E=b[2],I=b[3],T=b[4],N=b[5],R=b[6],F=b[7];for(m=0;64>m;m++)16>m?g=p[m]:(g=p[m+1&15],y=p[m+14&15],g=p[m&15]=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+p[m&15]+p[m+9&15]|0),g=g+F+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(R^T&(N^R))+w[m],F=R,R=N,N=T,T=I+g|0,I=E,E=C,C=_,_=g+(C&E^I&(C^E))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;b[0]=b[0]+_|0,b[1]=b[1]+C|0,b[2]=b[2]+E|0,b[3]=b[3]+I|0,b[4]=b[4]+T|0,b[5]=b[5]+N|0,b[6]=b[6]+R|0,b[7]=b[7]+F|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(f){e.mode.ccm.G.push(f)},unListenProgress:function(f){f=e.mode.ccm.G.indexOf(f),-1C)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(b=2;4>b&&E>>>8*b;b++);return b<15-C&&(b=15-C),m=_.clamp(m,8*(15-b)),p=e.mode.ccm.V(f,p,m,g,y,b),w=e.mode.ccm.C(f,w,m,p,y,b),_.concat(w.data,w.tag)},decrypt:function(f,p,m,g,y){y=y||64,g=g||[];var b=e.bitArray,w=b.bitLength(m)/8,E=b.bitLength(p),_=b.clamp(p,E-y),C=b.bitSlice(p,E-y),E=(E-y)/8;if(7>w)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(p=2;4>p&&E>>>8*p;p++);if(p<15-w&&(p=15-w),m=b.clamp(m,8*(15-p)),_=e.mode.ccm.C(f,_,m,C,y,p),f=e.mode.ccm.V(f,_.data,m,g,y,p),!b.equal(_.tag,f))throw new e.exception.corrupt("ccm: tag doesn't match");return _.data},na:function(f,p,m,g,y,b){var w=[],_=e.bitArray,C=_.i;if(g=[_.partial(8,(p.length?64:0)|g-2<<2|b-1)],g=_.concat(g,m),g[3]|=y,g=f.encrypt(g),p.length)for(m=_.bitLength(p)/8,65279>=m?w=[_.partial(16,m)]:4294967295>=m&&(w=_.concat([_.partial(16,65534)],[m])),w=_.concat(w,p),p=0;py||16I&&(e.mode.ccm.fa(w/C),I+=T),m[3]++,y=f.encrypt(m),p[w]^=y[0],p[w+1]^=y[1],p[w+2]^=y[2],p[w+3]^=y[3];return{tag:g,data:_.clamp(p,E)}}},e.mode.ocb2={name:"ocb2",encrypt:function(f,p,m,g,y,b){if(e.bitArray.bitLength(m)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var w,_=e.mode.ocb2.S,C=e.bitArray,E=C.i,I=[0,0,0,0];m=_(f.encrypt(m));var T,N=[];for(g=g||[],y=y||64,w=0;w+4y.bitLength(m)&&(_=b(_,g(_)),m=y.concat(m,[-2147483648,0,0,0])),w=b(w,m),f.encrypt(b(g(b(_,g(_))),w))},S:function(f){return[f[0]<<1^f[1]>>>31,f[1]<<1^f[2]>>>31,f[2]<<1^f[3]>>>31,f[3]<<1^135*(f[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(f,p,m,g,y){var b=p.slice(0);return p=e.bitArray,g=g||[],f=e.mode.gcm.C(!0,f,b,g,m,y||128),p.concat(f.data,f.tag)},decrypt:function(f,p,m,g,y){var b=p.slice(0),w=e.bitArray,_=w.bitLength(b);if(y=y||128,g=g||[],y<=_?(p=w.bitSlice(b,_-y),b=w.bitSlice(b,0,_-y)):(p=b,b=[]),f=e.mode.gcm.C(!1,f,b,g,m,y),!w.equal(f.tag,p))throw new e.exception.corrupt("gcm: tag doesn't match");return f.data},ka:function(f,p){var m,g,y,b,w,_=e.bitArray.i;for(y=[0,0,0,0],b=p.slice(0),m=0;128>m;m++){for((g=(f[Math.floor(m/32)]&1<<31-m%32)!==0)&&(y=_(y,b)),w=(b[3]&1)!==0,g=3;0>>1|(b[g-1]&1)<<31;b[0]>>>=1,w&&(b[0]^=-520093696)}return y},j:function(f,p,m){var g,y=m.length;for(p=p.slice(0),g=0;gy&&(f=p.hash(f)),g=0;gg||0>m)throw new e.exception.invalid("invalid params to pbkdf2");typeof f=="string"&&(f=e.codec.utf8String.toBits(f)),typeof p=="string"&&(p=e.codec.utf8String.toBits(p)),y=y||e.misc.hmac,f=new y(f);var b,w,_,C,E=[],I=e.bitArray;for(C=1;32*E.length<(g||1);C++){for(y=b=f.encrypt(I.concat(p,[C])),w=1;ww;w++)y.push(4294967296*Math.random()|0);for(w=0;w=1<this.o&&(this.o=b),this.P++,this.b=e.hash.sha256.hash(this.b.concat(y)),this.L=new e.cipher.aes(this.b),g=0;4>g&&(this.h[g]=this.h[g]+1|0,!this.h[g]);g++);}for(g=0;g>>1;this.c[w].update([g,this.N++,2,p,b,f.length].concat(f))}break;case"string":p===void 0&&(p=f.length),this.c[w].update([g,this.N++,3,p,b,f.length]),this.c[w].update(f);break;default:C=1}if(C)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[w]+=p,this.f+=p,_===this.u&&(this.isReady()!==this.u&&a("seeded",Math.max(this.o,this.f)),a("progress",this.getProgress()))},isReady:function(f){return f=this.T[f!==void 0?f:this.M],this.o&&this.o>=f?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=f?this.J|this.u:this.u},getProgress:function(f){return f=this.T[f||this.M],this.o>=f||this.f>f?1:this.f/f},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:l(this,this.ma),mouseCollector:l(this,this.oa),keyboardCollector:l(this,this.la),accelerometerCollector:l(this,this.ea),touchCollector:l(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new e.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(f,p){this.K[f][this.ga++]=p},removeEventListener:function(f,p){var m,g,y=this.K[f],b=[];for(g in y)y.hasOwnProperty(g)&&y[g]===p&&b.push(g);for(m=0;mp&&(f.h[p]=f.h[p]+1|0,!f.h[p]);p++);return f.L.encrypt(f.h)}function l(f,p){return function(){p.apply(f,arguments)}}e.random=new e.prng(6);e:try{var u,c,d,v;if(v=t.exports){var h;try{h=Wj}catch{h=null}v=c=h}if(v&&c.randomBytes)u=c.randomBytes(128),u=new Uint32Array(new Uint8Array(u).buffer),e.random.addEntropy(u,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(d=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(d);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(d);else break e;e.random.addEntropy(d,1024,"crypto['getRandomValues']")}}catch(f){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(f))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(f,p,m,g){m=m||{},g=g||{};var y=e.json,b=y.g({iv:e.random.randomWords(4,0)},y.defaults),w;if(y.g(b,m),m=b.adata,typeof b.salt=="string"&&(b.salt=e.codec.base64.toBits(b.salt)),typeof b.iv=="string"&&(b.iv=e.codec.base64.toBits(b.iv)),!e.mode[b.mode]||!e.cipher[b.cipher]||typeof f=="string"&&100>=b.iter||b.ts!==64&&b.ts!==96&&b.ts!==128||b.ks!==128&&b.ks!==192&&b.ks!==256||2>b.iv.length||4=p.iter||p.ts!==64&&p.ts!==96&&p.ts!==128||p.ks!==128&&p.ks!==192&&p.ks!==256||!p.iv||2>p.iv.length||4{for(var n in e)Vj(t,n,{get:e[n],enumerable:!0})},Uj={};en(Uj,{convertFileSrc:()=>Gj,invoke:()=>Hu,transformCallback:()=>Ba});function Kj(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function Ba(t,e=!1){let n=Kj(),r=`_${n}`;return Object.defineProperty(window,r,{value:a=>(e&&Reflect.deleteProperty(window,r),t==null?void 0:t(a)),writable:!1,configurable:!0}),n}async function Hu(t,e={}){return new Promise((n,r)=>{let a=Ba(o=>{n(o),Reflect.deleteProperty(window,`_${i}`)},!0),i=Ba(o=>{r(o),Reflect.deleteProperty(window,`_${a}`)},!0);window.__TAURI_IPC__({cmd:t,callback:a,error:i,...e})})}function Gj(t,e="asset"){let n=encodeURIComponent(t);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${n}`:`${e}://localhost/${n}`}async function ce(t){return Hu("tauri",t)}var qj={};en(qj,{TauriEvent:()=>ZS,emit:()=>Cp,listen:()=>QS,once:()=>ex});async function YS(t,e){return ce({__tauriModule:"Event",message:{cmd:"unlisten",event:t,eventId:e}})}async function JS(t,e,n){await ce({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})}async function _p(t,e,n){return ce({__tauriModule:"Event",message:{cmd:"listen",event:t,windowLabel:e,handler:Ba(n)}}).then(r=>async()=>YS(t,r))}async function XS(t,e,n){return _p(t,e,r=>{n(r),YS(t,r.id).catch(()=>{})})}var ZS=(t=>(t.WINDOW_RESIZED="tauri://resize",t.WINDOW_MOVED="tauri://move",t.WINDOW_CLOSE_REQUESTED="tauri://close-requested",t.WINDOW_CREATED="tauri://window-created",t.WINDOW_DESTROYED="tauri://destroyed",t.WINDOW_FOCUS="tauri://focus",t.WINDOW_BLUR="tauri://blur",t.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",t.WINDOW_THEME_CHANGED="tauri://theme-changed",t.WINDOW_FILE_DROP="tauri://file-drop",t.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",t.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",t.MENU="tauri://menu",t.CHECK_UPDATE="tauri://update",t.UPDATE_AVAILABLE="tauri://update-available",t.INSTALL_UPDATE="tauri://update-install",t.STATUS_UPDATE="tauri://update-status",t.DOWNLOAD_PROGRESS="tauri://update-download-progress",t))(ZS||{});async function QS(t,e){return _p(t,null,e)}async function ex(t,e){return XS(t,null,e)}async function Cp(t,e){return JS(t,void 0,e)}var Yj={};en(Yj,{checkUpdate:()=>Xj,installUpdate:()=>Jj,onUpdaterEvent:()=>Sp});async function Sp(t){return QS("tauri://update-status",e=>{t(e==null?void 0:e.payload)})}async function Jj(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function a(i){if(i.error){e(),r(i.error);return}i.status==="DONE"&&(e(),n())}Sp(a).then(i=>{t=i}).catch(i=>{throw e(),i}),Cp("tauri://update-install").catch(i=>{throw e(),i})})}async function Xj(){let t;function e(){t&&t(),t=void 0}return new Promise((n,r)=>{function a(o){e(),n({manifest:o,shouldUpdate:!0})}function i(o){if(o.error){e(),r(o.error);return}o.status==="UPTODATE"&&(e(),n({shouldUpdate:!1}))}ex("tauri://update-available",o=>{a(o==null?void 0:o.payload)}).catch(o=>{throw e(),o}),Sp(i).then(o=>{t=o}).catch(o=>{throw e(),o}),Cp("tauri://update").catch(o=>{throw e(),o})})}var Zj={};en(Zj,{CloseRequestedEvent:()=>ox,LogicalPosition:()=>nx,LogicalSize:()=>tx,PhysicalPosition:()=>Hl,PhysicalSize:()=>Wl,UserAttentionType:()=>rx,WebviewWindow:()=>Ni,WebviewWindowHandle:()=>ax,WindowManager:()=>ix,appWindow:()=>ad,availableMonitors:()=>n7,currentMonitor:()=>e7,getAll:()=>rd,getCurrent:()=>Qj,primaryMonitor:()=>t7});var tx=class{constructor(e,n){this.type="Logical",this.width=e,this.height=n}},Wl=class{constructor(e,n){this.type="Physical",this.width=e,this.height=n}toLogical(e){return new tx(this.width/e,this.height/e)}},nx=class{constructor(e,n){this.type="Logical",this.x=e,this.y=n}},Hl=class{constructor(e,n){this.type="Physical",this.x=e,this.y=n}toLogical(e){return new nx(this.x/e,this.y/e)}},rx=(t=>(t[t.Critical=1]="Critical",t[t.Informational=2]="Informational",t))(rx||{});function Qj(){return new Ni(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function rd(){return window.__TAURI_METADATA__.__windows.map(t=>new Ni(t.label,{skip:!0}))}var Nb=["tauri://created","tauri://error"],ax=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):_p(e,this.label,n)}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(n),1)}):XS(e,this.label,n)}async emit(e,n){if(Nb.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:n});return Promise.resolve()}return JS(e,this.label,n)}_handleTauriEvent(e,n){return Nb.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}},ix=class extends ax{async scaleFactor(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:n})=>new Hl(e,n))}async outerPosition(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:n})=>new Hl(e,n))}async innerSize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:n})=>new Wl(e,n))}async outerSize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:n})=>new Wl(e,n))}async isFullscreen(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let n=null;return e&&(e===1?n={type:"Critical"}:n={type:"Informational"}),ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:n}}}})}async setResizable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",n=>{n.payload=lx(n.payload),e(n)})}async onMoved(e){return this.listen("tauri://move",n=>{n.payload=sx(n.payload),e(n)})}async onCloseRequested(e){return this.listen("tauri://close-requested",n=>{let r=new ox(n);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let n=await this.listen("tauri://focus",a=>{e({...a,payload:!0})}),r=await this.listen("tauri://blur",a=>{e({...a,payload:!1})});return()=>{n(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let n=await this.listen("tauri://file-drop",i=>{e({...i,payload:{type:"drop",paths:i.payload}})}),r=await this.listen("tauri://file-drop-hover",i=>{e({...i,payload:{type:"hover",paths:i.payload}})}),a=await this.listen("tauri://file-drop-cancelled",i=>{e({...i,payload:{type:"cancel"}})});return()=>{n(),r(),a()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},ox=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},Ni=class extends ix{constructor(e,n={}){super(e),n!=null&&n.skip||ce({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...n}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return rd().some(n=>n.label===e)?new Ni(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of rd())if(await e.isFocused())return e;return null}},ad;"__TAURI_METADATA__"in window?ad=new Ni(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),ad=new Ni("main",{skip:!0}));function xp(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:sx(t.position),size:lx(t.size)}}function sx(t){return new Hl(t.x,t.y)}function lx(t){return new Wl(t.width,t.height)}async function e7(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(xp)}async function t7(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(xp)}async function n7(){return ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(t=>t.map(xp))}var r7={};en(r7,{isPermissionGranted:()=>a7,requestPermission:()=>i7,sendNotification:()=>o7});async function a7(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):ce({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function i7(){return window.Notification.requestPermission()}function o7(t){typeof t=="string"?new window.Notification(t):new window.Notification(t.title,t)}function Tp(){return navigator.appVersion.includes("Win")}var s7={};en(s7,{EOL:()=>l7,arch:()=>d7,locale:()=>p7,platform:()=>u7,tempdir:()=>v7,type:()=>f7,version:()=>c7});var l7=Tp()?`\r `:` -`;async function u7(){return ce({__tauriModule:"Os",message:{cmd:"platform"}})}async function c7(){return ce({__tauriModule:"Os",message:{cmd:"version"}})}async function f7(){return ce({__tauriModule:"Os",message:{cmd:"osType"}})}async function d7(){return ce({__tauriModule:"Os",message:{cmd:"arch"}})}async function v7(){return ce({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function p7(){return ce({__tauriModule:"Os",message:{cmd:"locale"}})}var ns={};en(ns,{BaseDirectory:()=>Vl,Dir:()=>Vl,copyFile:()=>_7,createDir:()=>b7,exists:()=>x7,readBinaryFile:()=>g7,readDir:()=>y7,readTextFile:()=>h7,removeDir:()=>w7,removeFile:()=>C7,renameFile:()=>S7,writeBinaryFile:()=>m7,writeFile:()=>Rb,writeTextFile:()=>Rb});var Vl=(t=>(t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log",t[t.Temp=20]="Temp",t[t.AppConfig=21]="AppConfig",t[t.AppData=22]="AppData",t[t.AppLocalData=23]="AppLocalData",t[t.AppCache=24]="AppCache",t[t.AppLog=25]="AppLog",t))(Vl||{});async function h7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})}async function g7(t,e={}){let n=await ce({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}});return Uint8Array.from(n)}async function Rb(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:""},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),typeof e=="string"?r.contents=e??"":a=e,ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:a}})}async function m7(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:[]},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),e&&"dir"in e?a=e:typeof t=="string"&&(r.contents=e??[]),ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:a}})}async function y7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})}async function b7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})}async function w7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})}async function _7(t,e,n={}){return ce({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})}async function C7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})}async function S7(t,e,n={}){return ce({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})}async function x7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"exists",path:t,options:e}})}var T7={};en(T7,{BaseDirectory:()=>Vl,appCacheDir:()=>A7,appConfigDir:()=>ux,appDataDir:()=>O7,appDir:()=>E7,appLocalDataDir:()=>P7,appLogDir:()=>cx,audioDir:()=>I7,basename:()=>n9,cacheDir:()=>M7,configDir:()=>k7,dataDir:()=>N7,delimiter:()=>J7,desktopDir:()=>R7,dirname:()=>e9,documentDir:()=>$7,downloadDir:()=>D7,executableDir:()=>L7,extname:()=>t9,fontDir:()=>F7,homeDir:()=>B7,isAbsolute:()=>r9,join:()=>Q7,localDataDir:()=>z7,logDir:()=>q7,normalize:()=>Z7,pictureDir:()=>j7,publicDir:()=>W7,resolve:()=>X7,resolveResource:()=>V7,resourceDir:()=>H7,runtimeDir:()=>U7,sep:()=>Y7,templateDir:()=>K7,videoDir:()=>G7});async function E7(){return ux()}async function ux(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function O7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function P7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function A7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function I7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function M7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function k7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function N7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function R7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function $7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function D7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function L7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function F7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function B7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function z7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function j7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function W7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function H7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function V7(t){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:t,directory:17}})}async function U7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function K7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function G7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function q7(){return cx()}async function cx(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var Y7=Tp()?"\\":"/",J7=Tp()?";":":";async function X7(...t){return ce({__tauriModule:"Path",message:{cmd:"resolve",paths:t}})}async function Z7(t){return ce({__tauriModule:"Path",message:{cmd:"normalize",path:t}})}async function Q7(...t){return ce({__tauriModule:"Path",message:{cmd:"join",paths:t}})}async function e9(t){return ce({__tauriModule:"Path",message:{cmd:"dirname",path:t}})}async function t9(t){return ce({__tauriModule:"Path",message:{cmd:"extname",path:t}})}async function n9(t,e){return ce({__tauriModule:"Path",message:{cmd:"basename",path:t,ext:e}})}async function r9(t){return ce({__tauriModule:"Path",message:{cmd:"isAbsolute",path:t}})}var a9={};en(a9,{exit:()=>i9,relaunch:()=>fx});async function i9(t=0){return ce({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})}async function fx(){return ce({__tauriModule:"Process",message:{cmd:"relaunch"}})}var o9={};en(o9,{Child:()=>dx,Command:()=>vx,EventEmitter:()=>hl,open:()=>l9});async function s9(t,e,n=[],r){return typeof n=="object"&&Object.freeze(n),ce({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:r,onEventFn:Ba(t)}})}var hl=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.addListener(e,r)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...n){if(e in this.eventListeners){let r=this.eventListeners[e];for(let a of r)a(...n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.prependListener(e,r)}},dx=class{constructor(e){this.pid=e}async write(e){return ce({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return ce({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},vx=class extends hl{constructor(e,n=[],r){super(),this.stdout=new hl,this.stderr=new hl,this.program=e,this.args=typeof n=="string"?[n]:n,this.options=r??{}}static sidecar(e,n=[],r){let a=new vx(e,n,r);return a.options.sidecar=!0,a}async spawn(){return s9(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new dx(e))}async execute(){return new Promise((e,n)=>{this.on("error",n);let r=[],a=[];this.stdout.on("data",i=>{r.push(i)}),this.stderr.on("data",i=>{a.push(i)}),this.on("close",i=>{e({code:i.code,signal:i.signal,stdout:r.join(` +`;async function u7(){return ce({__tauriModule:"Os",message:{cmd:"platform"}})}async function c7(){return ce({__tauriModule:"Os",message:{cmd:"version"}})}async function f7(){return ce({__tauriModule:"Os",message:{cmd:"osType"}})}async function d7(){return ce({__tauriModule:"Os",message:{cmd:"arch"}})}async function v7(){return ce({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function p7(){return ce({__tauriModule:"Os",message:{cmd:"locale"}})}var ns={};en(ns,{BaseDirectory:()=>Vl,Dir:()=>Vl,copyFile:()=>_7,createDir:()=>b7,exists:()=>x7,readBinaryFile:()=>g7,readDir:()=>y7,readTextFile:()=>h7,removeDir:()=>w7,removeFile:()=>C7,renameFile:()=>S7,writeBinaryFile:()=>m7,writeFile:()=>Rb,writeTextFile:()=>Rb});var Vl=(t=>(t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log",t[t.Temp=20]="Temp",t[t.AppConfig=21]="AppConfig",t[t.AppData=22]="AppData",t[t.AppLocalData=23]="AppLocalData",t[t.AppCache=24]="AppCache",t[t.AppLog=25]="AppLog",t))(Vl||{});async function h7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})}async function g7(t,e={}){let n=await ce({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}});return Uint8Array.from(n)}async function Rb(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:""},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),typeof e=="string"?r.contents=e??"":a=e,ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:a}})}async function m7(t,e,n){typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t);let r={path:"",contents:[]},a=n;return typeof t=="string"?r.path=t:(r.path=t.path,r.contents=t.contents),e&&"dir"in e?a=e:typeof t=="string"&&(r.contents=e??[]),ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:a}})}async function y7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})}async function b7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})}async function w7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})}async function _7(t,e,n={}){return ce({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})}async function C7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})}async function S7(t,e,n={}){return ce({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})}async function x7(t,e={}){return ce({__tauriModule:"Fs",message:{cmd:"exists",path:t,options:e}})}var T7={};en(T7,{BaseDirectory:()=>Vl,appCacheDir:()=>A7,appConfigDir:()=>ux,appDataDir:()=>O7,appDir:()=>E7,appLocalDataDir:()=>P7,appLogDir:()=>cx,audioDir:()=>I7,basename:()=>n9,cacheDir:()=>k7,configDir:()=>M7,dataDir:()=>N7,delimiter:()=>J7,desktopDir:()=>R7,dirname:()=>e9,documentDir:()=>$7,downloadDir:()=>D7,executableDir:()=>L7,extname:()=>t9,fontDir:()=>F7,homeDir:()=>B7,isAbsolute:()=>r9,join:()=>Q7,localDataDir:()=>z7,logDir:()=>q7,normalize:()=>Z7,pictureDir:()=>j7,publicDir:()=>W7,resolve:()=>X7,resolveResource:()=>V7,resourceDir:()=>H7,runtimeDir:()=>U7,sep:()=>Y7,templateDir:()=>K7,videoDir:()=>G7});async function E7(){return ux()}async function ux(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function O7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function P7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function A7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function I7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function k7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function M7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function N7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function R7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function $7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function D7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function L7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function F7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function B7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function z7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function j7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function W7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function H7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function V7(t){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:t,directory:17}})}async function U7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function K7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function G7(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function q7(){return cx()}async function cx(){return ce({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var Y7=Tp()?"\\":"/",J7=Tp()?";":":";async function X7(...t){return ce({__tauriModule:"Path",message:{cmd:"resolve",paths:t}})}async function Z7(t){return ce({__tauriModule:"Path",message:{cmd:"normalize",path:t}})}async function Q7(...t){return ce({__tauriModule:"Path",message:{cmd:"join",paths:t}})}async function e9(t){return ce({__tauriModule:"Path",message:{cmd:"dirname",path:t}})}async function t9(t){return ce({__tauriModule:"Path",message:{cmd:"extname",path:t}})}async function n9(t,e){return ce({__tauriModule:"Path",message:{cmd:"basename",path:t,ext:e}})}async function r9(t){return ce({__tauriModule:"Path",message:{cmd:"isAbsolute",path:t}})}var a9={};en(a9,{exit:()=>i9,relaunch:()=>fx});async function i9(t=0){return ce({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})}async function fx(){return ce({__tauriModule:"Process",message:{cmd:"relaunch"}})}var o9={};en(o9,{Child:()=>dx,Command:()=>vx,EventEmitter:()=>hl,open:()=>l9});async function s9(t,e,n=[],r){return typeof n=="object"&&Object.freeze(n),ce({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:r,onEventFn:Ba(t)}})}var hl=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.addListener(e,r)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...n){if(e in this.eventListeners){let r=this.eventListeners[e];for(let a of r)a(...n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){let r=(...a)=>{this.removeListener(e,r),n(...a)};return this.prependListener(e,r)}},dx=class{constructor(e){this.pid=e}async write(e){return ce({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return ce({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},vx=class extends hl{constructor(e,n=[],r){super(),this.stdout=new hl,this.stderr=new hl,this.program=e,this.args=typeof n=="string"?[n]:n,this.options=r??{}}static sidecar(e,n=[],r){let a=new vx(e,n,r);return a.options.sidecar=!0,a}async spawn(){return s9(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new dx(e))}async execute(){return new Promise((e,n)=>{this.on("error",n);let r=[],a=[];this.stdout.on("data",i=>{r.push(i)}),this.stderr.on("data",i=>{a.push(i)}),this.on("close",i=>{e({code:i.code,signal:i.signal,stdout:r.join(` `),stderr:a.join(` -`)})}),this.spawn().catch(n)})}};async function l9(t,e){return ce({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})}var u9={};en(u9,{getName:()=>f9,getTauriVersion:()=>d9,getVersion:()=>c9,hide:()=>p9,show:()=>v9});async function c9(){return ce({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function f9(){return ce({__tauriModule:"App",message:{cmd:"getAppName"}})}async function d9(){return ce({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function v9(){return ce({__tauriModule:"App",message:{cmd:"show"}})}async function p9(){return ce({__tauriModule:"App",message:{cmd:"hide"}})}var h9={};en(h9,{getMatches:()=>g9});async function g9(){return ce({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var m9={};en(m9,{readText:()=>b9,writeText:()=>y9});async function y9(t){return ce({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})}async function b9(){return ce({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var w9={};en(w9,{ask:()=>S9,confirm:()=>x9,message:()=>C9,open:()=>px,save:()=>_9});async function px(t={}){return typeof t=="object"&&Object.freeze(t),ce({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})}async function _9(t={}){return typeof t=="object"&&Object.freeze(t),ce({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})}async function C9(t,e){var r,a;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabel:(a=n==null?void 0:n.okLabel)==null?void 0:a.toString()}})}async function S9(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Yes",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"No"]}})}async function x9(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Ok",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"Cancel"]}})}var T9={};en(T9,{isRegistered:()=>P9,register:()=>E9,registerAll:()=>O9,unregister:()=>A9,unregisterAll:()=>I9});async function E9(t,e){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:Ba(e)}})}async function O9(t,e){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:Ba(e)}})}async function P9(t){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})}async function A9(t){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})}async function I9(){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var M9={};en(M9,{Body:()=>go,Client:()=>mx,Response:()=>gx,ResponseType:()=>hx,fetch:()=>k9,getClient:()=>yx});var hx=(t=>(t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary",t))(hx||{}),go=class{constructor(t,e){this.type=t,this.payload=e}static form(t){let e={},n=(r,a)=>{if(a!==null){let i;typeof a=="string"?i=a:a instanceof Uint8Array||Array.isArray(a)?i=Array.from(a):a instanceof File?i={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?i={file:a.file,mime:a.mime,fileName:a.fileName}:i={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},e[String(r)]=i}};if(t instanceof FormData)for(let[r,a]of t)n(r,a);else for(let[r,a]of Object.entries(t))n(r,a);return new go("Form",e)}static json(t){return new go("Json",t)}static text(t){return new go("Text",t)}static bytes(t){return new go("Bytes",Array.from(t instanceof ArrayBuffer?new Uint8Array(t):t))}},gx=class{constructor(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data}},mx=class{constructor(t){this.id=t}async drop(){return ce({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(t){let e=!t.responseType||t.responseType===1;return e&&(t.responseType=2),ce({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:t}}).then(n=>{let r=new gx(n);if(e){try{r.data=JSON.parse(r.data)}catch(a){if(r.ok&&r.data==="")r.data={};else if(r.ok)throw Error(`Failed to parse response \`${r.data}\` as JSON: ${a}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(t,e){return this.request({method:"GET",url:t,...e})}async post(t,e,n){return this.request({method:"POST",url:t,body:e,...n})}async put(t,e,n){return this.request({method:"PUT",url:t,body:e,...n})}async patch(t,e){return this.request({method:"PATCH",url:t,...e})}async delete(t,e){return this.request({method:"DELETE",url:t,...e})}};async function yx(t){return ce({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new mx(e))}var jc=null;async function k9(t,e){return jc===null&&(jc=await yx()),jc.request({url:t,method:(e==null?void 0:e.method)??"GET",...e})}var N9=Hu;const Ul=z(),R9=async()=>{if(console.log({BASE_URL:"/infinite_image_browsing/fe-static",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),!!{}.TAURI_ARCH)try{Ul.value=await N9("get_tauri_conf")}catch(t){console.error(t)}};var $9=!1;function Vu(t){return tu()?(wd(t),!0):!1}function za(t){return typeof t=="function"?t():be(t)}const bs=typeof window<"u",Ri=()=>{},D9=L9();function L9(){var t;return bs&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function bx(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const wx=t=>t();function F9(t,e={}){let n,r,a=Ri;const i=s=>{clearTimeout(s),a(),a=Ri};return s=>{const l=za(t),u=za(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,d)=>{a=e.rejectOnCancel?d:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function B9(t=wx){const e=z(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:os(e),pause:n,resume:r,eventFilter:a}}function wq(t){return t}function z9(...t){if(t.length!==1)return sn(...t);const e=t[0];return typeof e=="function"?os(dE(()=>({get:e,set:Ri}))):z(e)}function _q(t,e=200,n={}){return bx(F9(e,n),t)}function j9(t,e=!0){Pt()?Ve(t):e?t():Ke(t)}function W9(t,e,n={}){const{immediate:r=!0}=n,a=z(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...u)},za(e))}return r&&(a.value=!0,bs&&l()),Vu(s),{isPending:os(a),start:l,stop:s}}var $b=Object.getOwnPropertySymbols,H9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,U9=(t,e)=>{var n={};for(var r in t)H9.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$b)for(var r of $b(t))e.indexOf(r)<0&&V9.call(t,r)&&(n[r]=t[r]);return n};function K9(t,e,n={}){const r=n,{eventFilter:a=wx}=r,i=U9(r,["eventFilter"]);return pe(t,bx(a,e),i)}var G9=Object.defineProperty,q9=Object.defineProperties,Y9=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,_x=Object.prototype.hasOwnProperty,Cx=Object.prototype.propertyIsEnumerable,Db=(t,e,n)=>e in t?G9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J9=(t,e)=>{for(var n in e||(e={}))_x.call(e,n)&&Db(t,n,e[n]);if(Kl)for(var n of Kl(e))Cx.call(e,n)&&Db(t,n,e[n]);return t},X9=(t,e)=>q9(t,Y9(e)),Z9=(t,e)=>{var n={};for(var r in t)_x.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Kl)for(var r of Kl(t))e.indexOf(r)<0&&Cx.call(t,r)&&(n[r]=t[r]);return n};function Q9(t,e,n={}){const r=n,{eventFilter:a}=r,i=Z9(r,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=B9(a);return{stop:K9(t,e,X9(J9({},i),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Cq(t,e,n){return pe(t,(r,a,i)=>{r&&e(r,a,i)},n)}function id(t,e,n){let r;dt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:s=Ri}=r,l=z(!a),u=o?Qn(e):z(e);let c=0;return yt(async d=>{if(!l.value)return;c++;const v=c;let h=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const f=await t(p=>{d(()=>{i&&(i.value=!1),h||p()})});v===c&&(u.value=f)}catch(f){s(f)}finally{i&&v===c&&(i.value=!1),h=!0}}),a?V(()=>(l.value=!0,u.value)):u}function Hn(t){var e;const n=za(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Cr=bs?window:void 0,eW=bs?window.document:void 0,tW=bs?window.navigator:void 0;function Qt(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Cr):[e,n,r,a]=t,!e)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,v,h)=>(c.addEventListener(d,v,h),()=>c.removeEventListener(d,v,h)),l=pe(()=>[Hn(e),za(a)],([c,d])=>{o(),c&&i.push(...n.flatMap(v=>r.map(h=>s(c,v,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Vu(u),u}let Lb=!1;function Sq(t,e,n={}){const{window:r=Cr,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;D9&&!Lb&&(Lb=!0,Array.from(r.document.body.children).forEach(v=>v.addEventListener("click",Ri)));let s=!0;const l=v=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(f=>f===v.target||v.composedPath().includes(f));{const f=Hn(h);return f&&(v.target===f||v.composedPath().includes(f))}}),c=[Qt(r,"click",v=>{const h=Hn(t);if(!(!h||h===v.target||v.composedPath().includes(h))){if(v.detail===0&&(s=!l(v)),!s){s=!0;return}e(v)}},{passive:!0,capture:i}),Qt(r,"pointerdown",v=>{const h=Hn(t);h&&(s=!v.composedPath().includes(h)&&!l(v))},{passive:!0}),o&&Qt(r,"blur",v=>{var h;const f=Hn(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&e(v)})].filter(Boolean);return()=>c.forEach(v=>v())}const nW=500;function rW(t,e,n){var r,a;const i=V(()=>Hn(t));let o;function s(){o&&(clearTimeout(o),o=void 0)}function l(c){var d,v,h,f;(d=n==null?void 0:n.modifiers)!=null&&d.self&&c.target!==i.value||(s(),(v=n==null?void 0:n.modifiers)!=null&&v.prevent&&c.preventDefault(),(h=n==null?void 0:n.modifiers)!=null&&h.stop&&c.stopPropagation(),o=setTimeout(()=>e(c),(f=n==null?void 0:n.delay)!=null?f:nW))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};Qt(i,"pointerdown",l,u),Qt(i,"pointerup",s,u),Qt(i,"pointerleave",s,u)}function aW(){const t=z(!1);return Pt()&&Ve(()=>{t.value=!0}),t}function Ep(t){const e=aW();return V(()=>(e.value,!!t()))}function iW(t,e={}){const{window:n=Cr}=e,r=Ep(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=z(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{r.value&&(o(),a=n.matchMedia(z9(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",s):a.addListener(s)))};return yt(s),Vu(()=>o()),i}function xq(t={}){const{navigator:e=tW,read:n=!1,source:r,copiedDuring:a=1500,legacy:i=!1}=t,o=["copy","cut"],s=Ep(()=>e&&"clipboard"in e),l=V(()=>s.value||i),u=z(""),c=z(!1),d=W9(()=>c.value=!1,a);function v(){s.value?e.clipboard.readText().then(m=>{u.value=m}):u.value=p()}if(l.value&&n)for(const m of o)Qt(m,v);async function h(m=za(r)){l.value&&m!=null&&(s.value?await e.clipboard.writeText(m):f(m),u.value=m,c.value=!0,d.start())}function f(m){const g=document.createElement("textarea");g.value=m??"",g.style.position="absolute",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove()}function p(){var m,g,y;return(y=(g=(m=document==null?void 0:document.getSelection)==null?void 0:m.call(document))==null?void 0:g.toString())!=null?y:""}return{isSupported:l,text:u,copied:c,copy:h}}const Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xs="__vueuse_ssr_handlers__",oW=sW();function sW(){return Xs in Js||(Js[Xs]=Js[Xs]||{}),Js[Xs]}function lW(t,e){return oW[t]||e}function uW(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var cW=Object.defineProperty,Fb=Object.getOwnPropertySymbols,fW=Object.prototype.hasOwnProperty,dW=Object.prototype.propertyIsEnumerable,Bb=(t,e,n)=>e in t?cW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zb=(t,e)=>{for(var n in e||(e={}))fW.call(e,n)&&Bb(t,n,e[n]);if(Fb)for(var n of Fb(e))dW.call(e,n)&&Bb(t,n,e[n]);return t};const vW={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},jb="vueuse-storage";function pW(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Cr,eventFilter:v,onError:h=I=>{console.error(I)}}=r,f=(c?Qn:z)(e);if(!n)try{n=lW("getDefaultStorage",()=>{var I;return(I=Cr)==null?void 0:I.localStorage})()}catch(I){h(I)}if(!n)return f;const p=za(e),m=uW(p),g=(a=r.serializer)!=null?a:vW[m],{pause:y,resume:b}=Q9(f,()=>w(f.value),{flush:i,deep:o,eventFilter:v});return d&&s&&(Qt(d,"storage",E),Qt(d,jb,C)),E(),f;function w(I){try{if(I==null)n.removeItem(t);else{const T=g.write(I),N=n.getItem(t);N!==T&&(n.setItem(t,T),d&&d.dispatchEvent(new CustomEvent(jb,{detail:{key:t,oldValue:N,newValue:T,storageArea:n}})))}}catch(T){h(T)}}function _(I){const T=I?I.newValue:n.getItem(t);if(T==null)return l&&p!==null&&n.setItem(t,g.write(p)),p;if(!I&&u){const N=g.read(T);return typeof u=="function"?u(N,p):m==="object"&&!Array.isArray(N)?zb(zb({},p),N):N}else return typeof T!="string"?T:g.read(T)}function C(I){E(I.detail)}function E(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){f.value=p;return}if(!(I&&I.key!==t)){y();try{f.value=_(I)}catch(T){h(T)}finally{I?Ke(b):b()}}}}}function hW(t){return iW("(prefers-color-scheme: dark)",t)}function gW({document:t=eW}={}){if(!t)return z("visible");const e=z(t.visibilityState);return Qt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Wb=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,bW=(t,e)=>{var n={};for(var r in t)mW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wb)for(var r of Wb(t))e.indexOf(r)<0&&yW.call(t,r)&&(n[r]=t[r]);return n};function wW(t,e,n={}){const r=n,{window:a=Cr}=r,i=bW(r,["window"]);let o;const s=Ep(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=V(()=>Array.isArray(t)?t.map(v=>Hn(v)):[Hn(t)]),c=pe(u,v=>{if(l(),s.value&&a){o=new ResizeObserver(e);for(const h of v)h&&o.observe(h,i)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),c()};return Vu(d),{isSupported:s,stop:d}}function _W(t,e={width:0,height:0},n={}){const{window:r=Cr,box:a="content-box"}=n,i=V(()=>{var l,u;return(u=(l=Hn(t))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=z(e.width),s=z(e.height);return wW(t,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const c=Hn(t);if(c){const d=r.getComputedStyle(c);o.value=parseFloat(d.width),s.value=parseFloat(d.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((d,{inlineSize:v})=>d+v,0),s.value=c.reduce((d,{blockSize:v})=>d+v,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},n),pe(()=>Hn(t),l=>{o.value=l?e.width:0,s.value=l?e.height:0}),{width:o,height:s}}function Sx(t,e,n={}){const{window:r=Cr}=n;return pW(t,e,r==null?void 0:r.localStorage,n)}const CW={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function SW(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Cr,target:o=i,eventFilter:s}=t,l=z(a.x),u=z(a.y),c=z(null),d=typeof e=="function"?e:CW[e],v=g=>{const y=d(g);y&&([l.value,u.value]=y,c.value="mouse")},h=g=>{if(g.touches.length>0){const y=d(g.touches[0]);y&&([l.value,u.value]=y,c.value="touch")}},f=()=>{l.value=a.x,u.value=a.y},p=s?g=>s(()=>v(g),{}):g=>v(g),m=s?g=>s(()=>h(g),{}):g=>h(g);return o&&(Qt(o,"mousemove",p,{passive:!0}),Qt(o,"dragover",p,{passive:!0}),n&&e!=="movement"&&(Qt(o,"touchstart",m,{passive:!0}),Qt(o,"touchmove",m,{passive:!0}),r&&Qt(o,"touchend",f,{passive:!0}))),{x:l,y:u,sourceType:c}}function Hb(t,e={}){const{handleOutside:n=!0,window:r=Cr}=e,{x:a,y:i,sourceType:o}=SW(e),s=z(t??(r==null?void 0:r.document.body)),l=z(0),u=z(0),c=z(0),d=z(0),v=z(0),h=z(0),f=z(!0);let p=()=>{};return r&&(p=pe([s,a,i],()=>{const m=Hn(s);if(!m)return;const{left:g,top:y,width:b,height:w}=m.getBoundingClientRect();c.value=g+r.pageXOffset,d.value=y+r.pageYOffset,v.value=w,h.value=b;const _=a.value-c.value,C=i.value-d.value;f.value=b===0||w===0||_<0||C<0||_>b||C>w,(n||!f.value)&&(l.value=_,u.value=C)},{immediate:!0}),Qt(document,"mouseleave",()=>{f.value=!0})),{x:a,y:i,sourceType:o,elementX:l,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:v,elementWidth:h,isOutside:f,stop:p}}const xx=!!{}.TAURI_ARCH,xW=window===parent,Fr=encodeURIComponent,ua=(t,e=!1)=>`${Vi.value}/file?path=${Fr(t.fullpath)}&t=${Fr(t.date)}${e?`&disposition=${Fr(t.name)}`:""}`,Vb=(t,e="512x512")=>`${Vi.value}/image-thumbnail?path=${Fr(t.fullpath)}&size=${e}&t=${Fr(t.date)}`,TW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Tq=t=>(xx?"":parent.document.location.origin)+`${Vi.value}/video_cover?path=${Fr(t.fullpath)}&mt=${Fr(t.date)}`,EW=t=>typeof t=="object"&&t.__id==="FileTransferData",OW=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return EW(e)?e:null},Eq=t=>VS(t,"fullpath");function Tx(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".avif",".jpe"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function gl(t){var r;if(typeof t!="string")return!1;const e=[".mp4",".m4v",".avi",".mkv",".mov",".wmv",".flv",".ts",".webm"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function od(t){var r;if(typeof t!="string")return!1;const e=[".mp3",".wav",".ogg",".flac",".m4a",".aac",".wma"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const PW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Oq=t=>Tx(t)||gl(t)||od(t);function Ex(t){t.forEach((e,n)=>{try{const r=new URL(e,"https://github.com/zanllp/sd-webui-infinite-image-browsing");let a="";const i=r.searchParams.get("disposition");i&&(a=decodeURIComponent(i));const o=document.createElement("a");o.style.display="none",o.href=e,o.download=a,document.body.appendChild(o),setTimeout(()=>{o.click(),setTimeout(()=>{document.body.removeChild(o)},100)},n*100)}catch(r){console.error(`Failed to download file from URL: ${e}`,r)}})}const Pq=(t,e)=>{const n=window.URL.createObjectURL(new Blob([JSON.stringify({files:t},null,4)])),r=document.createElement("a");r.href=n,r.setAttribute("download",`iib_imginfo_${e??new Date().toLocaleString()}.json`),document.body.appendChild(r),r.click()},Op="iib://";function Ox(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const AW=()=>{const t=Ox().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},Px=()=>{try{Ox().querySelector("#tabs").querySelectorAll("button")[AW()].click()}catch(t){console.error(t)}},IW=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),Ax=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),Ix=()=>ct(new ts(-1,0,-1,"throw")),Aq=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}Jt.success(e??Te("copied"))}catch{Jt.error("copy failed. maybe it's non-secure environment")}},{useEventListen:sd,eventEmitter:Uu}=HS();function Iq(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function MW(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const ld=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),kW=t=>{try{return JSON.parse(t)}catch{return null}};function NW(t){return`${t}`.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}const Mq=(t,e)=>(e||(e=Te("confirmThisAction")),(...n)=>xt.confirm({content:e,onOk:()=>t(...n)})),Mx=Op+"sync",Ku=()=>{const t=localStorage.getItem(Mx);return t==="true"||t===null},kq=()=>Sx(Mx,!0),Vi=V(()=>Ul.value?`http://127.0.0.1:${Ul.value.port}/infinite_image_browsing`:"/infinite_image_browsing"),RW=t=>{const e=jl.hash.sha256.hash(t);return jl.codec.hex.fromBits(e)};let lo=null,Ub=!1;const $W=async()=>lo||(lo=new Promise(t=>{const e=z(""),n=r=>{lo=null,t(r)};xt.confirm({title:Te("serverKeyRequired"),content:()=>sa("input",{class:"ant-input",type:"password",value:e.value,onInput:r=>e.value=r.target.value,autocomplete:"current-password",name:"password",autocapitalize:"off",spellcheck:!1,style:"width: 100%;"}),onOk(){n(e.value)},onCancel(){n("")}})}),lo),DW=t=>{t.interceptors.response.use(e=>e,async e=>{var n,r,a,i,o,s,l,u,c,d;if(yB(e)){if(((n=e.response)==null?void 0:n.status)===401&&((i=(a=(r=e.response)==null?void 0:r.data)==null?void 0:a.detail)==null?void 0:i.type)==="secret_verification_failed"){const h=await $W();if(!h)throw e;return ij.set("IIB_S",RW(h+"_ciallo")),Ub||(Ub=!0,await Fa(100),location.reload()),new Promise(()=>{})}switch((l=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.detail)==null?void 0:l.type){case"secret_key_required":throw xt.error({width:"60vw",title:Te("secretKeyMustBeConfigured"),content:()=>sa("p",{style:"white-space: pre-line;"},Te("secretKeyRequiredWarnMsg"))}),new Error(Te("secretKeyRequiredWarnMsg"))}let v=(c=(u=e.response)==null?void 0:u.data)==null?void 0:c.detail;try{v||(v=JSON.parse(await((d=e.response)==null?void 0:d.data.text())).detail)}catch(h){console.error(e.response,h)}throw v??(v=Te("errorOccurred")),Jt.error(v),new Error(v)}return e})},We=V(()=>{const t=bS.create({baseURL:Vi.value});return DW(t),t}),LW=async()=>{const e=(await We.value.get("/global_setting")).data;try{Ku()||(e.app_fe_setting={})}catch(n){console.error(n)}return e},Nq=async()=>(await We.value.get("/global_setting")).data,Rq=async()=>(await We.value.get("/version")).data,FW=async t=>(await We.value.post("/check_path_exists",{paths:t})).data,$q=async t=>We.value.post(`/send_img_path?path=${encodeURIComponent(t)}`),Dq=async()=>(await We.value.get("/gen_info_completed",{timeout:6e4})).data,Kb=async t=>(await We.value.get(`/image_geninfo?path=${encodeURIComponent(t)}`)).data,Lq=async t=>t.length?(await We.value.post("/image_geninfo_batch",{paths:t})).data:{},Fq=async t=>{await We.value.post("/open_folder",{path:t})},Bq=async t=>{await We.value.post("/open_with_default_app",{path:t})},zq=async t=>(await We.value.post("/batch_top_4_media_info",{paths:t})).data,kx=async(t,e)=>{Ku()&&await We.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},jq=async(t,e)=>{await We.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},Wq=async t=>{Ku()&&await We.value.delete("/app_fe_setting",{data:{name:t}})},BW=async t=>{await We.value.post("/set_target_frame_as_video_cover",t)},Hq=async t=>(await We.value.post("/ai-chat",t)).data,zW=()=>({"date-asc":Te("sortByDateAscending"),"date-desc":Te("sortByDateDescending"),"name-asc":Te("sortByNameAscending"),"name-desc":Te("sortByNameDescending"),"size-asc":Te("sortBySizeAscending"),"size-desc":Te("sortBySizeDescending"),"created-time-asc":Te("sortByCreatedDateAscending"),"created-time-desc":Te("sortByCreatedDateDescending")});var Pp=(t=>(t.DATE_ASC="date-asc",t.DATE_DESC="date-desc",t.NAME_ASC="name-asc",t.NAME_DESC="name-desc",t.SIZE_ASC="size-asc",t.SIZE_DESC="size-desc",t.CREATED_TIME_ASC="created-time-asc",t.CREATED_TIME_DESC="created-time-desc",t))(Pp||{});const Vq=Object.values(Pp),Uq={value:t=>t,text:t=>zW()[t].toLocaleLowerCase()},jW=(t,e)=>{const n=t.type==="dir"?1:0;return(e.type==="dir"?1:0)-n},Gb=(t,e)=>{const n=Date.parse(t.date),r=Date.parse(e.date);return n-r},qb=(t,e)=>{const n=Date.parse(t.created_time),r=Date.parse(e.created_time);return n-r},Yb=(t,e)=>{const n=t.name.toLowerCase(),r=e.name.toLowerCase();return n.localeCompare(r)},Jb=(t,e)=>t.bytes-e.bytes,Kq=(t,e)=>{const n=(r,a)=>{switch(e){case"date-asc":return Gb(r,a);case"date-desc":return Gb(a,r);case"created-time-asc":return qb(r,a);case"created-time-desc":return qb(a,r);case"name-asc":return Yb(r,a);case"name-desc":return Yb(a,r);case"size-asc":return Jb(r,a);case"size-desc":return Jb(a,r);default:throw new Error(`Invalid sort method: ${e}`)}};return t.slice().sort((r,a)=>jW(r,a)||n(r,a))};/*! +`)})}),this.spawn().catch(n)})}};async function l9(t,e){return ce({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})}var u9={};en(u9,{getName:()=>f9,getTauriVersion:()=>d9,getVersion:()=>c9,hide:()=>p9,show:()=>v9});async function c9(){return ce({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function f9(){return ce({__tauriModule:"App",message:{cmd:"getAppName"}})}async function d9(){return ce({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function v9(){return ce({__tauriModule:"App",message:{cmd:"show"}})}async function p9(){return ce({__tauriModule:"App",message:{cmd:"hide"}})}var h9={};en(h9,{getMatches:()=>g9});async function g9(){return ce({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var m9={};en(m9,{readText:()=>b9,writeText:()=>y9});async function y9(t){return ce({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})}async function b9(){return ce({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var w9={};en(w9,{ask:()=>S9,confirm:()=>x9,message:()=>C9,open:()=>px,save:()=>_9});async function px(t={}){return typeof t=="object"&&Object.freeze(t),ce({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})}async function _9(t={}){return typeof t=="object"&&Object.freeze(t),ce({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})}async function C9(t,e){var r,a;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabel:(a=n==null?void 0:n.okLabel)==null?void 0:a.toString()}})}async function S9(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Yes",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"No"]}})}async function x9(t,e){var r,a,i;let n=typeof e=="string"?{title:e}:e;return ce({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t.toString(),title:(r=n==null?void 0:n.title)==null?void 0:r.toString(),type:n==null?void 0:n.type,buttonLabels:[((a=n==null?void 0:n.okLabel)==null?void 0:a.toString())??"Ok",((i=n==null?void 0:n.cancelLabel)==null?void 0:i.toString())??"Cancel"]}})}var T9={};en(T9,{isRegistered:()=>P9,register:()=>E9,registerAll:()=>O9,unregister:()=>A9,unregisterAll:()=>I9});async function E9(t,e){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:Ba(e)}})}async function O9(t,e){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:Ba(e)}})}async function P9(t){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})}async function A9(t){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})}async function I9(){return ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var k9={};en(k9,{Body:()=>go,Client:()=>mx,Response:()=>gx,ResponseType:()=>hx,fetch:()=>M9,getClient:()=>yx});var hx=(t=>(t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary",t))(hx||{}),go=class{constructor(t,e){this.type=t,this.payload=e}static form(t){let e={},n=(r,a)=>{if(a!==null){let i;typeof a=="string"?i=a:a instanceof Uint8Array||Array.isArray(a)?i=Array.from(a):a instanceof File?i={file:a.name,mime:a.type,fileName:a.name}:typeof a.file=="string"?i={file:a.file,mime:a.mime,fileName:a.fileName}:i={file:Array.from(a.file),mime:a.mime,fileName:a.fileName},e[String(r)]=i}};if(t instanceof FormData)for(let[r,a]of t)n(r,a);else for(let[r,a]of Object.entries(t))n(r,a);return new go("Form",e)}static json(t){return new go("Json",t)}static text(t){return new go("Text",t)}static bytes(t){return new go("Bytes",Array.from(t instanceof ArrayBuffer?new Uint8Array(t):t))}},gx=class{constructor(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data}},mx=class{constructor(t){this.id=t}async drop(){return ce({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(t){let e=!t.responseType||t.responseType===1;return e&&(t.responseType=2),ce({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:t}}).then(n=>{let r=new gx(n);if(e){try{r.data=JSON.parse(r.data)}catch(a){if(r.ok&&r.data==="")r.data={};else if(r.ok)throw Error(`Failed to parse response \`${r.data}\` as JSON: ${a}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(t,e){return this.request({method:"GET",url:t,...e})}async post(t,e,n){return this.request({method:"POST",url:t,body:e,...n})}async put(t,e,n){return this.request({method:"PUT",url:t,body:e,...n})}async patch(t,e){return this.request({method:"PATCH",url:t,...e})}async delete(t,e){return this.request({method:"DELETE",url:t,...e})}};async function yx(t){return ce({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(e=>new mx(e))}var jc=null;async function M9(t,e){return jc===null&&(jc=await yx()),jc.request({url:t,method:(e==null?void 0:e.method)??"GET",...e})}var N9=Hu;const Ul=z(),R9=async()=>{if(console.log({BASE_URL:"/infinite_image_browsing/fe-static",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),!!{}.TAURI_ARCH)try{Ul.value=await N9("get_tauri_conf")}catch(t){console.error(t)}};var $9=!1;function Vu(t){return tu()?(wd(t),!0):!1}function za(t){return typeof t=="function"?t():be(t)}const bs=typeof window<"u",Ri=()=>{},D9=L9();function L9(){var t;return bs&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function bx(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}const wx=t=>t();function F9(t,e={}){let n,r,a=Ri;const i=s=>{clearTimeout(s),a(),a=Ri};return s=>{const l=za(t),u=za(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,d)=>{a=e.rejectOnCancel?d:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function B9(t=wx){const e=z(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:os(e),pause:n,resume:r,eventFilter:a}}function wq(t){return t}function z9(...t){if(t.length!==1)return sn(...t);const e=t[0];return typeof e=="function"?os(dE(()=>({get:e,set:Ri}))):z(e)}function _q(t,e=200,n={}){return bx(F9(e,n),t)}function j9(t,e=!0){Pt()?Ve(t):e?t():Ke(t)}function W9(t,e,n={}){const{immediate:r=!0}=n,a=z(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...u)},za(e))}return r&&(a.value=!0,bs&&l()),Vu(s),{isPending:os(a),start:l,stop:s}}var $b=Object.getOwnPropertySymbols,H9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,U9=(t,e)=>{var n={};for(var r in t)H9.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$b)for(var r of $b(t))e.indexOf(r)<0&&V9.call(t,r)&&(n[r]=t[r]);return n};function K9(t,e,n={}){const r=n,{eventFilter:a=wx}=r,i=U9(r,["eventFilter"]);return pe(t,bx(a,e),i)}var G9=Object.defineProperty,q9=Object.defineProperties,Y9=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,_x=Object.prototype.hasOwnProperty,Cx=Object.prototype.propertyIsEnumerable,Db=(t,e,n)=>e in t?G9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J9=(t,e)=>{for(var n in e||(e={}))_x.call(e,n)&&Db(t,n,e[n]);if(Kl)for(var n of Kl(e))Cx.call(e,n)&&Db(t,n,e[n]);return t},X9=(t,e)=>q9(t,Y9(e)),Z9=(t,e)=>{var n={};for(var r in t)_x.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Kl)for(var r of Kl(t))e.indexOf(r)<0&&Cx.call(t,r)&&(n[r]=t[r]);return n};function Q9(t,e,n={}){const r=n,{eventFilter:a}=r,i=Z9(r,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=B9(a);return{stop:K9(t,e,X9(J9({},i),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Cq(t,e,n){return pe(t,(r,a,i)=>{r&&e(r,a,i)},n)}function id(t,e,n){let r;dt(n)?r={evaluating:n}:r=n||{};const{lazy:a=!1,evaluating:i=void 0,shallow:o=!0,onError:s=Ri}=r,l=z(!a),u=o?Qn(e):z(e);let c=0;return yt(async d=>{if(!l.value)return;c++;const v=c;let h=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const f=await t(p=>{d(()=>{i&&(i.value=!1),h||p()})});v===c&&(u.value=f)}catch(f){s(f)}finally{i&&v===c&&(i.value=!1),h=!0}}),a?V(()=>(l.value=!0,u.value)):u}function Hn(t){var e;const n=za(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Cr=bs?window:void 0,eW=bs?window.document:void 0,tW=bs?window.navigator:void 0;function Qt(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=Cr):[e,n,r,a]=t,!e)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,d,v,h)=>(c.addEventListener(d,v,h),()=>c.removeEventListener(d,v,h)),l=pe(()=>[Hn(e),za(a)],([c,d])=>{o(),c&&i.push(...n.flatMap(v=>r.map(h=>s(c,v,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Vu(u),u}let Lb=!1;function Sq(t,e,n={}){const{window:r=Cr,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;D9&&!Lb&&(Lb=!0,Array.from(r.document.body.children).forEach(v=>v.addEventListener("click",Ri)));let s=!0;const l=v=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(f=>f===v.target||v.composedPath().includes(f));{const f=Hn(h);return f&&(v.target===f||v.composedPath().includes(f))}}),c=[Qt(r,"click",v=>{const h=Hn(t);if(!(!h||h===v.target||v.composedPath().includes(h))){if(v.detail===0&&(s=!l(v)),!s){s=!0;return}e(v)}},{passive:!0,capture:i}),Qt(r,"pointerdown",v=>{const h=Hn(t);h&&(s=!v.composedPath().includes(h)&&!l(v))},{passive:!0}),o&&Qt(r,"blur",v=>{var h;const f=Hn(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&e(v)})].filter(Boolean);return()=>c.forEach(v=>v())}const nW=500;function rW(t,e,n){var r,a;const i=V(()=>Hn(t));let o;function s(){o&&(clearTimeout(o),o=void 0)}function l(c){var d,v,h,f;(d=n==null?void 0:n.modifiers)!=null&&d.self&&c.target!==i.value||(s(),(v=n==null?void 0:n.modifiers)!=null&&v.prevent&&c.preventDefault(),(h=n==null?void 0:n.modifiers)!=null&&h.stop&&c.stopPropagation(),o=setTimeout(()=>e(c),(f=n==null?void 0:n.delay)!=null?f:nW))}const u={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(a=n==null?void 0:n.modifiers)==null?void 0:a.once};Qt(i,"pointerdown",l,u),Qt(i,"pointerup",s,u),Qt(i,"pointerleave",s,u)}function aW(){const t=z(!1);return Pt()&&Ve(()=>{t.value=!0}),t}function Ep(t){const e=aW();return V(()=>(e.value,!!t()))}function iW(t,e={}){const{window:n=Cr}=e,r=Ep(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const i=z(!1),o=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{r.value&&(o(),a=n.matchMedia(z9(t).value),i.value=!!(a!=null&&a.matches),a&&("addEventListener"in a?a.addEventListener("change",s):a.addListener(s)))};return yt(s),Vu(()=>o()),i}function xq(t={}){const{navigator:e=tW,read:n=!1,source:r,copiedDuring:a=1500,legacy:i=!1}=t,o=["copy","cut"],s=Ep(()=>e&&"clipboard"in e),l=V(()=>s.value||i),u=z(""),c=z(!1),d=W9(()=>c.value=!1,a);function v(){s.value?e.clipboard.readText().then(m=>{u.value=m}):u.value=p()}if(l.value&&n)for(const m of o)Qt(m,v);async function h(m=za(r)){l.value&&m!=null&&(s.value?await e.clipboard.writeText(m):f(m),u.value=m,c.value=!0,d.start())}function f(m){const g=document.createElement("textarea");g.value=m??"",g.style.position="absolute",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove()}function p(){var m,g,y;return(y=(g=(m=document==null?void 0:document.getSelection)==null?void 0:m.call(document))==null?void 0:g.toString())!=null?y:""}return{isSupported:l,text:u,copied:c,copy:h}}const Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xs="__vueuse_ssr_handlers__",oW=sW();function sW(){return Xs in Js||(Js[Xs]=Js[Xs]||{}),Js[Xs]}function lW(t,e){return oW[t]||e}function uW(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var cW=Object.defineProperty,Fb=Object.getOwnPropertySymbols,fW=Object.prototype.hasOwnProperty,dW=Object.prototype.propertyIsEnumerable,Bb=(t,e,n)=>e in t?cW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zb=(t,e)=>{for(var n in e||(e={}))fW.call(e,n)&&Bb(t,n,e[n]);if(Fb)for(var n of Fb(e))dW.call(e,n)&&Bb(t,n,e[n]);return t};const vW={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},jb="vueuse-storage";function pW(t,e,n,r={}){var a;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Cr,eventFilter:v,onError:h=I=>{console.error(I)}}=r,f=(c?Qn:z)(e);if(!n)try{n=lW("getDefaultStorage",()=>{var I;return(I=Cr)==null?void 0:I.localStorage})()}catch(I){h(I)}if(!n)return f;const p=za(e),m=uW(p),g=(a=r.serializer)!=null?a:vW[m],{pause:y,resume:b}=Q9(f,()=>w(f.value),{flush:i,deep:o,eventFilter:v});return d&&s&&(Qt(d,"storage",E),Qt(d,jb,C)),E(),f;function w(I){try{if(I==null)n.removeItem(t);else{const T=g.write(I),N=n.getItem(t);N!==T&&(n.setItem(t,T),d&&d.dispatchEvent(new CustomEvent(jb,{detail:{key:t,oldValue:N,newValue:T,storageArea:n}})))}}catch(T){h(T)}}function _(I){const T=I?I.newValue:n.getItem(t);if(T==null)return l&&p!==null&&n.setItem(t,g.write(p)),p;if(!I&&u){const N=g.read(T);return typeof u=="function"?u(N,p):m==="object"&&!Array.isArray(N)?zb(zb({},p),N):N}else return typeof T!="string"?T:g.read(T)}function C(I){E(I.detail)}function E(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){f.value=p;return}if(!(I&&I.key!==t)){y();try{f.value=_(I)}catch(T){h(T)}finally{I?Ke(b):b()}}}}}function hW(t){return iW("(prefers-color-scheme: dark)",t)}function gW({document:t=eW}={}){if(!t)return z("visible");const e=z(t.visibilityState);return Qt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Wb=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,bW=(t,e)=>{var n={};for(var r in t)mW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wb)for(var r of Wb(t))e.indexOf(r)<0&&yW.call(t,r)&&(n[r]=t[r]);return n};function wW(t,e,n={}){const r=n,{window:a=Cr}=r,i=bW(r,["window"]);let o;const s=Ep(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=V(()=>Array.isArray(t)?t.map(v=>Hn(v)):[Hn(t)]),c=pe(u,v=>{if(l(),s.value&&a){o=new ResizeObserver(e);for(const h of v)h&&o.observe(h,i)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),c()};return Vu(d),{isSupported:s,stop:d}}function _W(t,e={width:0,height:0},n={}){const{window:r=Cr,box:a="content-box"}=n,i=V(()=>{var l,u;return(u=(l=Hn(t))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=z(e.width),s=z(e.height);return wW(t,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const c=Hn(t);if(c){const d=r.getComputedStyle(c);o.value=parseFloat(d.width),s.value=parseFloat(d.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((d,{inlineSize:v})=>d+v,0),s.value=c.reduce((d,{blockSize:v})=>d+v,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},n),pe(()=>Hn(t),l=>{o.value=l?e.width:0,s.value=l?e.height:0}),{width:o,height:s}}function Sx(t,e,n={}){const{window:r=Cr}=n;return pW(t,e,r==null?void 0:r.localStorage,n)}const CW={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function SW(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=Cr,target:o=i,eventFilter:s}=t,l=z(a.x),u=z(a.y),c=z(null),d=typeof e=="function"?e:CW[e],v=g=>{const y=d(g);y&&([l.value,u.value]=y,c.value="mouse")},h=g=>{if(g.touches.length>0){const y=d(g.touches[0]);y&&([l.value,u.value]=y,c.value="touch")}},f=()=>{l.value=a.x,u.value=a.y},p=s?g=>s(()=>v(g),{}):g=>v(g),m=s?g=>s(()=>h(g),{}):g=>h(g);return o&&(Qt(o,"mousemove",p,{passive:!0}),Qt(o,"dragover",p,{passive:!0}),n&&e!=="movement"&&(Qt(o,"touchstart",m,{passive:!0}),Qt(o,"touchmove",m,{passive:!0}),r&&Qt(o,"touchend",f,{passive:!0}))),{x:l,y:u,sourceType:c}}function Hb(t,e={}){const{handleOutside:n=!0,window:r=Cr}=e,{x:a,y:i,sourceType:o}=SW(e),s=z(t??(r==null?void 0:r.document.body)),l=z(0),u=z(0),c=z(0),d=z(0),v=z(0),h=z(0),f=z(!0);let p=()=>{};return r&&(p=pe([s,a,i],()=>{const m=Hn(s);if(!m)return;const{left:g,top:y,width:b,height:w}=m.getBoundingClientRect();c.value=g+r.pageXOffset,d.value=y+r.pageYOffset,v.value=w,h.value=b;const _=a.value-c.value,C=i.value-d.value;f.value=b===0||w===0||_<0||C<0||_>b||C>w,(n||!f.value)&&(l.value=_,u.value=C)},{immediate:!0}),Qt(document,"mouseleave",()=>{f.value=!0})),{x:a,y:i,sourceType:o,elementX:l,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:v,elementWidth:h,isOutside:f,stop:p}}const xx=!!{}.TAURI_ARCH,xW=window===parent,Fr=encodeURIComponent,ua=(t,e=!1)=>`${Vi.value}/file?path=${Fr(t.fullpath)}&t=${Fr(t.date)}${e?`&disposition=${Fr(t.name)}`:""}`,Vb=(t,e="512x512")=>`${Vi.value}/image-thumbnail?path=${Fr(t.fullpath)}&size=${e}&t=${Fr(t.date)}`,TW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Tq=t=>(xx?"":parent.document.location.origin)+`${Vi.value}/video_cover?path=${Fr(t.fullpath)}&mt=${Fr(t.date)}`,EW=t=>typeof t=="object"&&t.__id==="FileTransferData",OW=t=>{var n;const e=JSON.parse(((n=t.dataTransfer)==null?void 0:n.getData("text"))??"{}");return EW(e)?e:null},Eq=t=>VS(t,"fullpath");function Tx(t){var r;if(typeof t!="string")return!1;const e=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".avif",".jpe"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function gl(t){var r;if(typeof t!="string")return!1;const e=[".mp4",".m4v",".avi",".mkv",".mov",".wmv",".flv",".ts",".webm"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}function od(t){var r;if(typeof t!="string")return!1;const e=[".mp3",".wav",".ogg",".flac",".m4a",".aac",".wma"],n=(r=t.split(".").pop())==null?void 0:r.toLowerCase();return n!==void 0&&e.includes(`.${n}`)}const PW=t=>`${Vi.value}/stream_video?path=${Fr(t.fullpath)}`,Oq=t=>Tx(t)||gl(t)||od(t);function Ex(t){t.forEach((e,n)=>{try{const r=new URL(e,"https://github.com/zanllp/sd-webui-infinite-image-browsing");let a="";const i=r.searchParams.get("disposition");i&&(a=decodeURIComponent(i));const o=document.createElement("a");o.style.display="none",o.href=e,o.download=a,document.body.appendChild(o),setTimeout(()=>{o.click(),setTimeout(()=>{document.body.removeChild(o)},100)},n*100)}catch(r){console.error(`Failed to download file from URL: ${e}`,r)}})}const Pq=(t,e)=>{const n=window.URL.createObjectURL(new Blob([JSON.stringify({files:t},null,4)])),r=document.createElement("a");r.href=n,r.setAttribute("download",`iib_imginfo_${e??new Date().toLocaleString()}.json`),document.body.appendChild(r),r.click()},Op="iib://";function Ox(){try{return parent.window.gradioApp()}catch{}const t=parent.document.getElementsByTagName("gradio-app"),e=t.length==0?null:t[0].shadowRoot;return e||document}const AW=()=>{const t=Ox().querySelectorAll("#tabs > .tabitem[id^=tab_]");return Array.from(t).findIndex(e=>e.id.includes("infinite-image-browsing"))},Px=()=>{try{Ox().querySelector("#tabs").querySelectorAll("button")[AW()].click()}catch(t){console.error(t)}},IW=async(t,e=100,n=1e3)=>new Promise(r=>{const a=(i=0)=>{const o=t();o!=null||i>n/e?r(o):setTimeout(()=>a(++i),e)};a()}),Ax=(t,...e)=>e.reduce((n,r)=>(n[r]=t==null?void 0:t[r],n),{}),Ix=()=>ct(new ts(-1,0,-1,"throw")),Aq=async(t,e)=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}Jt.success(e??Te("copied"))}catch{Jt.error("copy failed. maybe it's non-secure environment")}},{useEventListen:sd,eventEmitter:Uu}=HS();function Iq(t){let e=null,n=!1;return async function(...r){if(n)return e;n=!0;try{return e=t.apply(this,r),await e}finally{n=!1}}}function kW(t){const e=parent.location.href,n=new URLSearchParams(parent.location.search);t.forEach(a=>{n.delete(a)});const r=`${e.split("?")[0]}${n.size?"?":""}${n.toString()}`;return parent.history.pushState(null,"",r),r}const ld=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=a=>n(a),r.src=t}),MW=t=>{try{return JSON.parse(t)}catch{return null}};function NW(t){return`${t}`.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}const kq=(t,e)=>(e||(e=Te("confirmThisAction")),(...n)=>xt.confirm({content:e,onOk:()=>t(...n)})),kx=Op+"sync",Ku=()=>{const t=localStorage.getItem(kx);return t==="true"||t===null},Mq=()=>Sx(kx,!0),Vi=V(()=>Ul.value?`http://127.0.0.1:${Ul.value.port}/infinite_image_browsing`:"/infinite_image_browsing"),RW=t=>{const e=jl.hash.sha256.hash(t);return jl.codec.hex.fromBits(e)};let lo=null,Ub=!1;const $W=async()=>lo||(lo=new Promise(t=>{const e=z(""),n=r=>{lo=null,t(r)};xt.confirm({title:Te("serverKeyRequired"),content:()=>sa("input",{class:"ant-input",type:"password",value:e.value,onInput:r=>e.value=r.target.value,autocomplete:"current-password",name:"password",autocapitalize:"off",spellcheck:!1,style:"width: 100%;"}),onOk(){n(e.value)},onCancel(){n("")}})}),lo),DW=t=>{t.interceptors.response.use(e=>e,async e=>{var n,r,a,i,o,s,l,u,c,d;if(yB(e)){if(((n=e.response)==null?void 0:n.status)===401&&((i=(a=(r=e.response)==null?void 0:r.data)==null?void 0:a.detail)==null?void 0:i.type)==="secret_verification_failed"){const h=await $W();if(!h)throw e;return ij.set("IIB_S",RW(h+"_ciallo")),Ub||(Ub=!0,await Fa(100),location.reload()),new Promise(()=>{})}switch((l=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.detail)==null?void 0:l.type){case"secret_key_required":throw xt.error({width:"60vw",title:Te("secretKeyMustBeConfigured"),content:()=>sa("p",{style:"white-space: pre-line;"},Te("secretKeyRequiredWarnMsg"))}),new Error(Te("secretKeyRequiredWarnMsg"))}let v=(c=(u=e.response)==null?void 0:u.data)==null?void 0:c.detail;try{v||(v=JSON.parse(await((d=e.response)==null?void 0:d.data.text())).detail)}catch(h){console.error(e.response,h)}throw v??(v=Te("errorOccurred")),Jt.error(v),new Error(v)}return e})},We=V(()=>{const t=bS.create({baseURL:Vi.value});return DW(t),t}),LW=async()=>{const e=(await We.value.get("/global_setting")).data;try{Ku()||(e.app_fe_setting={})}catch(n){console.error(n)}return e},Nq=async()=>(await We.value.get("/global_setting")).data,Rq=async()=>(await We.value.get("/version")).data,FW=async t=>(await We.value.post("/check_path_exists",{paths:t})).data,$q=async t=>We.value.post(`/send_img_path?path=${encodeURIComponent(t)}`),Dq=async()=>(await We.value.get("/gen_info_completed",{timeout:6e4})).data,Kb=async t=>(await We.value.get(`/image_geninfo?path=${encodeURIComponent(t)}`)).data,Lq=async t=>t.length?(await We.value.post("/image_geninfo_batch",{paths:t})).data:{},Fq=async t=>{await We.value.post("/open_folder",{path:t})},Bq=async t=>{await We.value.post("/open_with_default_app",{path:t})},zq=async t=>(await We.value.post("/batch_top_4_media_info",{paths:t})).data,Mx=async(t,e)=>{Ku()&&await We.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},jq=async(t,e)=>{await We.value.post("/app_fe_setting",{name:t,value:JSON.stringify(e)})},Wq=async t=>{Ku()&&await We.value.delete("/app_fe_setting",{data:{name:t}})},BW=async t=>{await We.value.post("/set_target_frame_as_video_cover",t)},Hq=async t=>(await We.value.post("/ai-chat",t)).data,zW=()=>({"date-asc":Te("sortByDateAscending"),"date-desc":Te("sortByDateDescending"),"name-asc":Te("sortByNameAscending"),"name-desc":Te("sortByNameDescending"),"size-asc":Te("sortBySizeAscending"),"size-desc":Te("sortBySizeDescending"),"created-time-asc":Te("sortByCreatedDateAscending"),"created-time-desc":Te("sortByCreatedDateDescending")});var Pp=(t=>(t.DATE_ASC="date-asc",t.DATE_DESC="date-desc",t.NAME_ASC="name-asc",t.NAME_DESC="name-desc",t.SIZE_ASC="size-asc",t.SIZE_DESC="size-desc",t.CREATED_TIME_ASC="created-time-asc",t.CREATED_TIME_DESC="created-time-desc",t))(Pp||{});const Vq=Object.values(Pp),Uq={value:t=>t,text:t=>zW()[t].toLocaleLowerCase()},jW=(t,e)=>{const n=t.type==="dir"?1:0;return(e.type==="dir"?1:0)-n},Gb=(t,e)=>{const n=Date.parse(t.date),r=Date.parse(e.date);return n-r},qb=(t,e)=>{const n=Date.parse(t.created_time),r=Date.parse(e.created_time);return n-r},Yb=(t,e)=>{const n=t.name.toLowerCase(),r=e.name.toLowerCase();return n.localeCompare(r)},Jb=(t,e)=>t.bytes-e.bytes,Kq=(t,e)=>{const n=(r,a)=>{switch(e){case"date-asc":return Gb(r,a);case"date-desc":return Gb(a,r);case"created-time-asc":return qb(r,a);case"created-time-desc":return qb(a,r);case"name-asc":return Yb(r,a);case"name-desc":return Yb(a,r);case"size-asc":return Jb(r,a);case"size-desc":return Jb(a,r);default:throw new Error(`Invalid sort method: ${e}`)}};return t.slice().sort((r,a)=>jW(r,a)||n(r,a))};/*! * pinia v2.1.3 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Nx;const Gu=t=>Nx=t,Rx=Symbol();function ud(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ao;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ao||(Ao={}));function WW(){const t=bd(!0),e=t.run(()=>z({}));let n=[],r=[];const a=ru({install(i){Gu(a),a._a=i,i.provide(Rx,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!$9?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const $x=()=>{};function Xb(t,e,n,r=$x){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&tu()&&wd(a),a}function ri(t,...e){t.slice().forEach(n=>{n(...e)})}const HW=t=>t();function cd(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];ud(a)&&ud(r)&&t.hasOwnProperty(n)&&!dt(r)&&!Dr(r)?t[n]=cd(a,r):t[n]=r}return t}const VW=Symbol();function UW(t){return!ud(t)||!t.hasOwnProperty(VW)}const{assign:Jr}=Object;function KW(t){return!!(dt(t)&&t.effect)}function GW(t,e,n,r){const{state:a,actions:i,getters:o}=e,s=n.state.value[t];let l;function u(){s||(n.state.value[t]=a?a():{});const c=Z0(n.state.value[t]);return Jr(c,i,Object.keys(o||{}).reduce((d,v)=>(d[v]=ru(V(()=>{Gu(n);const h=n._s.get(t);return o[v].call(h,h)})),d),{}))}return l=Dx(t,u,e,n,r,!0),l}function Dx(t,e,n={},r,a,i){let o;const s=Jr({actions:{}},n),l={deep:!0};let u,c,d=[],v=[],h;const f=r.state.value[t];!i&&!f&&(r.state.value[t]={}),z({});let p;function m(I){let T;u=c=!1,typeof I=="function"?(I(r.state.value[t]),T={type:Ao.patchFunction,storeId:t,events:h}):(cd(r.state.value[t],I),T={type:Ao.patchObject,payload:I,storeId:t,events:h});const N=p=Symbol();Ke().then(()=>{p===N&&(u=!0)}),c=!0,ri(d,T,r.state.value[t])}const g=i?function(){const{state:T}=n,N=T?T():{};this.$patch(R=>{Jr(R,N)})}:$x;function y(){o.stop(),d=[],v=[],r._s.delete(t)}function b(I,T){return function(){Gu(r);const N=Array.from(arguments),R=[],F=[];function L(P){R.push(P)}function j(P){F.push(P)}ri(v,{args:N,name:I,store:_,after:L,onError:j});let D;try{D=T.apply(this&&this.$id===t?this:_,N)}catch(P){throw ri(F,P),P}return D instanceof Promise?D.then(P=>(ri(R,P),P)).catch(P=>(ri(F,P),Promise.reject(P))):(ri(R,D),D)}}const w={_p:r,$id:t,$onAction:Xb.bind(null,v),$patch:m,$reset:g,$subscribe(I,T={}){const N=Xb(d,I,T.detached,()=>R()),R=o.run(()=>pe(()=>r.state.value[t],F=>{(T.flush==="sync"?c:u)&&I({storeId:t,type:Ao.direct,events:h},F)},Jr({},l,T)));return N},$dispose:y},_=ct(w);r._s.set(t,_);const C=r._a&&r._a.runWithContext||HW,E=r._e.run(()=>(o=bd(),C(()=>o.run(e))));for(const I in E){const T=E[I];if(dt(T)&&!KW(T)||Dr(T))i||(f&&UW(T)&&(dt(T)?T.value=f[I]:cd(T,f[I])),r.state.value[t][I]=T);else if(typeof T=="function"){const N=b(I,T);E[I]=N,s.actions[I]=T}}return Jr(_,E),Jr(De(_),E),Object.defineProperty(_,"$state",{get:()=>r.state.value[t],set:I=>{m(T=>{Jr(T,I)})}}),r._p.forEach(I=>{Jr(_,o.run(()=>I({store:_,app:r._a,pinia:r,options:s})))}),f&&i&&n.hydrate&&n.hydrate(_.$state,f),u=!0,c=!0,_}function ws(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(s,l){const u=QE();return s=s||(u?ot(Rx,null):null),s&&Gu(s),s=Nx,s._s.has(r)||(i?Dx(r,e,a,s):GW(r,a,s)),s._s.get(r)}return o.$id=r,o}function qW(t){{t=De(t);const e={};for(const n in t){const r=t[n];(dt(r)||Dr(r))&&(e[n]=sn(t,n))}return e}}function YW(t){return/^(?:\/|[a-z]:)/i.test($i(t))}function $i(t){if(!t)return"";t=t.replace(/\\/g,"/"),t=t.replace(/\/+/g,"/");const e=t.split("/"),n=[];for(let i=0;i{const n=YW(t)?t:$i(Lx(e,t));return $i(n)},Gq=t=>{t=$i(t);const e=t.split("/").filter(n=>n);return e[0].endsWith(":")&&(e[0]=e[0]+"/"),e};function qq(t){const e=t.lastIndexOf("/"),n=t.lastIndexOf("\\"),r=Math.max(e,n);return r===-1?".":t.substring(0,r)}const Fx=t=>Zr({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),Bx=t=>({...t,panes:t.panes.map(Fx)}),JW=t=>{var n;if(!t.panes.some(r=>r.type==="workspace-snapshot"))return Bx(t);const e=t.panes.filter(r=>r.type!=="workspace-snapshot").map(Fx);return{...t,panes:e,key:((n=T8(e))==null?void 0:n.key)??""}},zx=["defaultChangeIndchecked","defaultSeedChangeChecked","darkModeControl","dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","fileTypeFilter","shortcut","ignoredConfirmActions","previewBgOpacity","defaultInitinalPage","autoRefreshWalkMode","autoRefreshWalkModePosLimit","autoRefreshNormalFixedMode","showCommaInInfoPanel","batchDownloadCompress","batchDownloadPackOnly","magicSwitchTiktokView","showRandomImageInStartup","showTiktokNavigator"];function XW(t){if(t<768)return 176;{const e=160+Math.floor((t-768)/128)*16;return Math.min(e,256)}}const Nn=ws(Op+"useGlobalStore",()=>{const t=z(),e=z([]),n=z(!0),r=z(512),a=z(Pp.CREATED_TIME_DESC),i=z(256);try{typeof parent<"u"&&parent.window&&(i.value=XW(parent.window.innerHeight))}catch(L){console.error(L)}const o=z("auto"),s=()=>({type:"empty",name:Te("emptyStartPage"),key:mr()}),l=z([]);Ve(()=>{const L=s();l.value.push({panes:[L],key:L.key,id:mr()})});const u=z(),c=z(new Array),d=Date.now(),v=z(),h=()=>{var j;const L=De(l.value).map(Bx);((j=v.value)==null?void 0:j[0].time)!==d?v.value=[{tabs:L,time:d},...v.value??[]]:v.value[0].tabs=L,v.value=v.value.slice(0,2)},f=async(L,j,D)=>{let P=l.value.map(M=>M.panes).flat().find(M=>M.type==="tag-search-matched-image-grid"&&M.id===j);if(P){P.selectedTagIds=Zr(D);return}else P={type:"tag-search-matched-image-grid",id:j,selectedTagIds:Zr(D),key:mr(),name:Te("searchResults")};const O=l.value[L+1];O?(O.key=P.key,O.panes.push(P)):l.value.push({panes:[P],key:P.key,id:mr()})},p=z(jS());pe(p,L=>gp.global.locale.value=L);const m=z(!1),g=z({delete:"",download:""}),y=z({}),b=V(()=>{const L=["outdir_extras_samples","outdir_save","outdir_txt2img_samples","outdir_img2img_samples","outdir_img2img_grids","outdir_txt2img_grids"],j=e.value.filter(D=>L.includes(D.key)).map(D=>[D.zh,D.dir]);return{...Object.fromEntries(j),...y.value}}),w=new Map,_=ct({deleteOneOnly:!1}),C=hW(),E=V(()=>{const L=()=>{try{return parent.location.search.includes("theme=dark")}catch{return!1}};return(o.value==="auto"?C.value||L():o.value==="dark")?"dark":"light"}),I=L=>{var j;try{L=L.trim();const D=b.value,P=$i(L),O=[];for(const[M,$]of Object.entries(D))if(M&&$){if(L===$||P===$)return M;O.push(P.replace($,"$"+M))}return((j=O.sort((M,$)=>M.length-$.length))==null?void 0:j[0])??L}catch(D){return console.error(D),L}},T=z(.6),N=z(!1),R=z(!0),F=z(!1);return{computedTheme:E,showTiktokNavigator:F,darkModeControl:o,defaultSortingMethod:a,defaultGridCellWidth:i,defaultChangeIndchecked:z(!0),defaultSeedChangeChecked:z(!1),pathAliasMap:b,createEmptyPane:s,lang:p,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:u,saveRecord:h,recent:c,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:m,openTagSearchMatchedImageGridInRight:f,onlyFoldersAndImages:z(!0),fileTypeFilter:z(["image","video","audio"]),keepMultiSelect:z(!1),fullscreenPreviewInitialUrl:z(""),shortcut:g,pageFuncExportMap:w,dontShowAgain:z(!1),dontShowAgainNewImgOpts:z(!1),ignoredConfirmActions:_,getShortPath:I,extraPathAliasMap:y,previewBgOpacity:T,defaultInitinalPage:z("empty"),autoRefreshWalkMode:z(!0),autoRefreshWalkModePosLimit:z(128),autoRefreshNormalFixedMode:z(!0),showCommaInInfoPanel:z(!1),batchDownloadCompress:z(!1),batchDownloadPackOnly:z(!1),magicSwitchTiktokView:N,showRandomImageInStartup:R}},{persist:{paths:zx}}),ZW=ws(Op+"useWorkspeaceSnapshot",()=>{const t=Nn(),e=a=>{const i=De(t.tabList).map(JW);return{id:Date.now()+(Math.random()*1e5).toFixed(0),name:a,tabs:i}},n=z([]);return pe(()=>{var a;return(a=t.conf)==null?void 0:a.app_fe_setting},a=>{if(a&&Ku()){const s=Object.keys(a).filter(l=>l.startsWith("workspace_snapshot_")).map(l=>a[l]);n.value=s}},{immediate:!0}),{createSnapshot:e,snapshots:n,addSnapshot:async a=>{n.value.push(a),await kx(`workspace_snapshot_${a.id}`,a)}}},{persist:{paths:["snapshots"]}}),Qb=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const i=Ax(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save");i.outdir_extras_samples??(i.outdir_extras_samples="outputs/extras-images"),i.outdir_img2img_grids??(i.outdir_img2img_grids="outputs/img2img-grids"),i.outdir_img2img_samples??(i.outdir_img2img_samples="outputs/img2img-images"),i.outdir_save??(i.outdir_save="log/images"),i.outdir_txt2img_grids??(i.outdir_txt2img_grids="outputs/txt2img-grids"),i.outdir_txt2img_samples??(i.outdir_txt2img_samples="outputs/txt2img-images");const o={...i,cwd:e,home:n,desktop:`${n}/Desktop`};Object.keys(o).forEach(d=>{const v=d;if(o[v])try{o[v]=Zb(o[v],e)}catch(h){console.error(h)}});const s=await FW(Object.values(o).filter(d=>d)),l={outdir_txt2img_samples:Te("t2i"),outdir_img2img_samples:Te("i2i"),outdir_save:Te("saveButtonSavesTo"),outdir_extras_samples:Te("extra"),outdir_grids:Te("gridImage"),outdir_img2img_grids:Te("i2i-grid"),outdir_samples:Te("image"),outdir_txt2img_grids:Te("t2i-grid"),cwd:Te("workingFolder"),home:"home",desktop:Te("desktop")},u=Nn();u.extraPathAliasMap={home:n,[Te("desktop")]:o.desktop,[Te("workingFolder")]:a,[Te("t2i")]:o.outdir_txt2img_samples,[Te("i2i")]:o.outdir_img2img_samples,...r.filter(d=>d.alias).reduce((d,v)=>(d[v.alias]=Zb(v.path,e),d),{})},await Fa(0);const c=Object.keys(l).filter(d=>s[o[d]]).map(d=>{const v=d;return{key:v,zh:l[v],dir:o[v],can_delete:!1,types:["preset"]}}).concat(r.map(d=>({key:d.path,zh:d.alias||u.getShortPath(d.path),dir:d.path,can_delete:!0,types:d.types})));return VS(c,d=>d.key+d.types.join())};const jx={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,c=l.max<100&&i<=100-(l.max+this.sumNextPanesSize(e+1));if(u||c){u?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),l.size=l.max);return}if(this.pushOtherPanes){const d=this.doPushOtherPanes(n,i);if(!d)return;({sums:n,panesToResize:o}=d),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return sa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},QW=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},eH={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function tH(t,e,n,r,a,i){return Oe(),Fe("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:Pn(t.style)},[_l(t.$slots,"default")],4)}const fd=QW(eH,[["render",tH]]);const nH={style:{position:"relative"}},rH=he({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Nn(),r=z(),a=z(),{isOutside:i}=Hb(a),{isOutside:o}=Hb(r),s=V(()=>!i.value&&!!n.dragingTab),l=V(()=>!o.value&&!!n.dragingTab&&!s.value),u=(c,d)=>{var h,f,p,m;const v=kW(((h=c.dataTransfer)==null?void 0:h.getData("text"))??"{}");if(v&&(console.log("on-drop",d,v),(v==null?void 0:v.from)==="tab-drag")){if(c.stopPropagation(),n.dragingTab=void 0,d==="insert"&&v.tabIdx===e.tabIdx)return;const g=n.tabList,y=g[v.tabIdx].panes[v.paneIdx];g[v.tabIdx].panes.splice(v.paneIdx,1),d==="add-right"?(g[e.tabIdx].key=((f=g[e.tabIdx].panes[v.paneIdx-1])==null?void 0:f.key)??g[e.tabIdx].panes[0].key,g.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:mr()})):(g[v.tabIdx].key=((p=g[v.tabIdx].panes[v.paneIdx-1])==null?void 0:p.key)??((m=g[v.tabIdx].panes[0])==null?void 0:m.key),g[e.tabIdx].panes.push(y),g[e.tabIdx].key=y.key),g[v.tabIdx].panes.length===0&&g.splice(v.tabIdx,1)}};return(c,d)=>(Oe(),Fe("div",{class:qt(["wrap",{accept:l.value}]),ref_key:"trigger",ref:r,onDragover:d[2]||(d[2]=An(()=>{},["prevent"])),onDrop:d[3]||(d[3]=An(v=>u(v,"insert"),["prevent"]))},[$e("div",{class:qt(["iib-tab-edge-trigger",{accept:s.value}]),ref_key:"edgeTrigger",ref:a,onDragover:d[0]||(d[0]=An(()=>{},["prevent"])),onDrop:d[1]||(d[1]=An(v=>u(v,"add-right"),["prevent"]))},null,34),$e("div",nH,[_l(c.$slots,"default",{},void 0,!0)])],34))}});const Ui=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},aH=Ui(rH,[["__scopeId","data-v-f7ccb75b"]]);const Wx=ws("useImgSliStore",()=>{const t=z(!1),e=z(!1),n=z(!1),r=z(),a=z(),i=Nn(),o=V(()=>{var l;const s=i.tabList;for(const u of s)if(((l=u.panes.find(c=>c.key===u.key))==null?void 0:l.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}});var iH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};const oH=iH;function e0(t){for(var e=1;e(Md("data-v-9c9e2710"),t=t(),kd(),t),WH={key:0,class:"dragging-port-wrap"},HH={class:"content"},VH={key:0,class:"img-wrap"},UH={key:1},KH=jH(()=>$e("div",{style:{padding:"16px"}},null,-1)),GH={key:0,class:"img-wrap"},qH={key:1},YH={key:0,class:"tips",style:{"max-width":"30vw"}},JH={class:"actions"},XH=he({__name:"DraggingPort",setup(t){const e=Wx(),n=Nn(),{left:r,right:a}=qW(e),i=async(l,u)=>{const c=OW(l);if(c){const d=c.nodes[0];if(!Tx(d.name))return;e[u]=d}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},s=()=>{bp(r.value&&a.value);const l={type:"img-sli",left:r.value,right:a.value,name:`${Te("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:mr()};n.tabList[0].panes.push(l),n.tabList[0].key=l.key};return(l,u)=>{const c=ZF,d=Xt;return Oe(),mt(Yn,null,{default:kt(()=>[(be(e).fileDragging||be(r)||be(a)||be(e).opened)&&!be(e).imgSliActived?(Oe(),Fe("div",WH,[$e("h2",null,St(l.$t("imgCompare")),1),$e("div",HH,[$e("div",{class:"left port",onDragover:u[1]||(u[1]=An(()=>{},["prevent"])),onDrop:u[2]||(u[2]=An(v=>i(v,"left"),["prevent"]))},[be(r)?(Oe(),Fe("div",VH,[S(c,{src:be(Vb)(be(r)),preview:{src:be(ua)(be(r))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[0]||(u[0]=v=>r.value=void 0)})])):(Oe(),Fe("div",UH,St(l.$t("dragImageHere")),1))],32),KH,$e("div",{class:"right port",onDragover:u[4]||(u[4]=An(()=>{},["prevent"])),onDrop:u[5]||(u[5]=An(v=>i(v,"right"),["prevent"]))},[be(a)?(Oe(),Fe("div",GH,[S(c,{src:be(Vb)(be(a)),preview:{src:be(ua)(be(a))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[3]||(u[3]=v=>a.value=void 0)})])):(Oe(),Fe("div",qH,St(l.$t("dragImageHere")),1))],32)]),be(e).opened?(Oe(),Fe("p",YH," Tips: "+St(l.$t("imageCompareTips")),1)):$t("",!0),$e("div",JH,[be(r)&&be(a)?(Oe(),mt(d,{key:0,type:"primary",onClick:u[6]||(u[6]=v=>be(e).drawerVisible=!0)},{default:kt(()=>[_n(St(l.$t("confirm")),1)]),_:1})):$t("",!0),be(r)&&be(a)?(Oe(),mt(d,{key:1,type:"primary",onClick:s},{default:kt(()=>[_n(St(l.$t("confirm"))+"("+St(l.$t("openInNewTab"))+")",1)]),_:1})):$t("",!0),S(d,{style:{"margin-left":"16px"},onClick:o},{default:kt(()=>[_n(St(l.$t("close")),1)]),_:1})])])):$t("",!0)]),_:1})}}});const ZH=Ui(XH,[["__scopeId","data-v-9c9e2710"]]),QH=ws("useTiktokStore",()=>{const t=z(!1),e=z(!1),n=z([]),r=z(0),a=V(()=>n.value[r.value]||null),i=V(()=>r.valuer.value>0),s=V(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=768);return{visible:t,isFullscreen:e,mediaList:n,currentIndex:r,currentItem:a,hasNext:i,hasPrev:o,isMobile:s,openTiktokView:(f,p=0)=>{n.value=f,r.value=Math.max(0,Math.min(p,f.length-1)),t.value=!0,s.value&&(e.value=!0)},closeView:()=>{e.value=!1,n.value=[],r.value=0,setTimeout(()=>{t.value=!1},300)},next:()=>{i.value&&r.value++},prev:()=>{o.value&&r.value--},goToIndex:f=>{f>=0&&f{e.value=!e.value}}}),eV=async()=>(await We.value.get("/db/basic_info")).data,Yq=async()=>(await We.value.get("/db/expired_dirs")).data,Jq=async()=>{await We.value.post("/db/update_image_data",{},{timeout:1/0})},Xq=async t=>{await We.value.post("/db/update_tag",t)},Zq=async(t,e)=>(await We.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,tV=async t=>(await We.value.post("/db/add_custom_tag",t)).data,nV=async t=>(await We.value.post("/db/toggle_custom_tag_to_img",t)).data,Qq=async t=>{await We.value.post("/db/remove_custom_tag",t)},eY=async()=>(await We.value.get("/db/random_images")).data,tY=async t=>(await We.value.post("/db/search_by_substr",t)).data,Hx="/db/extra_paths",nY=async t=>{await We.value.post(Hx,t)},rY=async t=>{await We.value.delete(Hx,{data:t})},aY=async t=>{await We.value.post("/db/alias_extra_path",t)},rV=async t=>(await We.value.post("/db/get_image_tags",{paths:t})).data,aV=()=>We.value.post("/db/rebuild_index"),iY=t=>We.value.post("/db/batch_update_image_tag",t),iV=async t=>(await We.value.post("/db/rename",t)).data,oY=async t=>(await We.value.post("/db/cluster_iib_output_job_start",t)).data,sY=async t=>(await We.value.get("/db/cluster_iib_output_job_status",{params:{job_id:t}})).data,lY=async t=>(await We.value.post("/db/cluster_iib_output_cached",t)).data,uY=async t=>(await We.value.post("/db/search_iib_output_by_prompt",t,{timeout:1/0})).data,cY=async t=>(await We.value.post("/db/cluster_tag_graph",t,{timeout:6e4})).data;function oV(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const u0=oV(),qu=ws("useTagStore",()=>{const t=ct(new Map),e=async l=>{if(l=l.filter(u=>!t.has(u)),!!l.length)try{l.forEach(c=>t.set(c,[]));const u=await rV(l);for(const c in u)t.set(c,u[c])}catch{l.forEach(u=>t.delete(u))}},n=z(new Map),r=l=>{l&&n.value.set(l.id.toString(),l.color)},a=l=>{const u=l.id.toString();let c=n.value.get(u);if(c)return c;if(!c&&l.color)return n.value.set(u,l.color),l.color;if(!c){const d=jl.hash.sha256.hash(u),v=parseInt(jl.codec.hex.fromBits(d),16)%u0.length;c=u0[v],n.value.set(u,c)}return c},i=async l=>{l.forEach(u=>t.delete(u)),await e(l)},o=l=>({id:l.name,count:0,display_name:null,type:"temp",color:"",...l});return{set:(l,u)=>{const c=u.map(d=>o(typeof d=="string"?{name:d}:d));t.set(l,c)},colorCache:n,tagMap:t,getColor:a,fetchImageTags:e,refreshTags:i,tagConvert:o,notifyCacheUpdate:r}}),fY=async t=>(await We.value.get("/files",{params:{folder_path:t}})).data,dY=async t=>(await We.value.post("/delete_files",{file_paths:t})).data,vY=async(t,e,n)=>(await We.value.post("/move_files",{file_paths:t,dest:e,create_dest_folder:n})).data,pY=async(t,e,n)=>(await We.value.post("/copy_files",{file_paths:t,dest:e,create_dest_folder:n})).data,sV=async t=>{await We.value.post("/mkdirs",{dest_folder:t})},hY=async t=>(await We.value.post("/batch_get_files_info",{paths:t})).data;let uo,Wc;const lV=async(t,e,n="image/webp")=>{const a=await(await fetch(t)).arrayBuffer();return new File([a],e,{type:n})},uV=(t,e="image/webp")=>{if(!Wc){uo=document.createElement("canvas");const a=uo.getContext("2d");bp(a),Wc=a}const{videoHeight:n,videoWidth:r}=t;return uo.width=r,uo.height=n,Wc.drawImage(t,0,0,r,n),uo.toDataURL(e)},Vx=()=>{const t=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(e=>e.style.display!=="none");t?(console.log("closeImageFullscreenPreview success"),cV(t)):console.log("closeImageFullscreenPreview not found")};function cV(t){if(!(t instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:t});t.dispatchEvent(e)}const gY=(t,e)=>{const n=e.querySelector(`.idx-${t} .ant-image-img`);n?n.click():console.log("openImageFullscreenPreview error: not found",t,e)},mY=t=>{const e=z("");return new Promise(n=>{xt.confirm({title:Te("inputFolderName"),content:()=>S(Mt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=Lx(t,e.value);await sV(r),n()}})})},yY=()=>S("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[_n("Tips: "),Te("multiSelectTips")]),bY=(t,e,n)=>{const r=qu(),a=Nn(),i=d=>{var v;return!!((v=r.tagMap.get(t.fullpath))!=null&&v.some(h=>h.id===d))},o=z(null),s=async()=>{if(!o.value)return;const d=o.value;d.pause();const v=uV(d);await BW({path:t.fullpath,base64_img:v,updated_time:t.date}),t.cover_url=URL.createObjectURL(await lV(v,"cover")),Jt.success(Te("success")+"! "+Te("clearCacheIfNotTakeEffect"))},l={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},u=xt.confirm({width:"80vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("video",{ref:o,style:{maxHeight:xW?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:TW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"4px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...l}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(d=>S("div",{key:d.id,onClick:()=>e==null?void 0:e(d.id),style:{background:i(d.id)?r.getColor(d):"var(--zp-primary-background)",color:i(d.id)?"white":r.getColor(d),border:`2px solid ${r.getColor(d)}`,...l}},[d.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:c,type:"primary"},{default:Te("tiktokView")}),S(Xt,{onClick:s},{default:Te("setCurrFrameAsVideoPoster")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function c(){n==null||n(),Vx(),u.destroy()}},wY=(t,e,n)=>{const r=qu(),a=Nn(),i=u=>{var c;return!!((c=r.tagMap.get(t.fullpath))!=null&&c.some(d=>d.id===u))},o={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},s=xt.confirm({width:"60vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("div",{style:{fontSize:"80px",marginBottom:"16px"}},[_n("🎵")]),S("audio",{style:{width:"100%",maxWidth:"500px"},src:PW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"16px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...o}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(u=>S("div",{key:u.id,onClick:()=>e==null?void 0:e(u.id),style:{background:i(u.id)?r.getColor(u):"var(--zp-primary-background)",color:i(u.id)?"white":r.getColor(u),border:`2px solid ${r.getColor(u)}`,...o}},[u.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:l,type:"primary"},{default:Te("tiktokView")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function l(){n==null||n(),Vx(),s.destroy()}},_Y=()=>{xt.confirm({title:Te("confirmRebuildImageIndex"),onOk:async()=>{await aV(),Uu.emit("searchIndexExpired"),Jt.success(Te("rebuildComplete"))}})},CY=t=>{const e=z(t.split(/[\\/]/).pop()??"");return new Promise(n=>{xt.confirm({title:Te("rename"),content:()=>S(Mt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=await iV({path:t,name:e.value});n(r.new_path)}})})},Gl=()=>{const t=z(""),e=Nn();return new Promise(n=>{xt.confirm({title:Te("addNewCustomTag"),content:()=>S(Mt,{value:t.value,"onUpdate:value":r=>t.value=r},null),async onOk(){var i;if(!t.value)return;const r=await eV(),a=await tV({tag_name:t.value});if(a.type!=="custom")throw Jt.error(Te("existInOtherType")),new Error(Te("existInOtherType"));if(r.tags.find(o=>o.id===a.id))throw Jt.error(Te("alreadyExists")),new Error(Te("alreadyExists"));(i=e.conf)==null||i.all_custom_tags.push(a),Jt.success(Te("success")),n(t.value)}})})},fV=t=>(Md("data-v-c88a67da"),t=t(),kd(),t),dV={key:0,class:"debug-info"},vV={class:"debug-label"},pV={key:0,class:"media-content"},hV=["src","controls","loop"],gV={key:1,class:"tiktok-media tiktok-audio-container"},mV=fV(()=>$e("div",{class:"audio-icon"},"🎵",-1)),yV={class:"audio-filename"},bV=["src","controls","loop"],wV=["src"],_V={class:"tiktok-controls"},CV=["title"],SV=["title"],xV=["title"],TV=["title"],EV=["title"],OV={class:"autoplay-label"},PV=["title"],AV={key:1,class:"tiktok-navigation"},IV={class:"tiktok-bottom-overlay"},MV={key:0,class:"filename-display"},kV={class:"tiktok-progress"},NV={class:"progress-bar-row"},RV={class:"progress-bar"},$V={class:"progress-text"},DV={key:0,class:"tiktok-tags-panel"},LV={class:"tags-header"},FV={class:"tags-content"},BV=["onClick"],zV=he({__name:"TiktokViewer",setup(t){const n=QH(),r=qu(),a=Nn(),i=Nn(),o=V(()=>({isAnimating:_.value,isDragging:I.value,bufferTransform:w.value,dragOffset:T.value,autoPlayMode:l.value,isMuted:s.value,currentIndex:n.currentIndex})),s=Sx("tiktok-viewer-muted",!0),l=z("off"),u=z(null),c=["off","5s","10s","20s"],d=V(()=>({off:Te("autoPlayOff"),"5s":Te("autoPlay5s"),"10s":Te("autoPlay10s"),"20s":Te("autoPlay20s")})),v=oe=>{switch(oe){case"5s":return 5e3;case"10s":return 1e4;case"20s":return 2e4;default:return 0}},h=V(()=>/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform.toUpperCase().indexOf("MAC")>=0),f=oe=>h.value&&!oe?700:300,p=z(),m=z(),g=z([null,null,null]),y=z([null,null,null]),b=z([null,null,null]),w=z(0),_=z(!1),C=z(0),E=z(0),I=z(!1),T=z(0),N=z(!1),R=z(!0),F=()=>{R.value=!R.value},L=V(()=>b.value[1]),j=V(()=>({"tiktok-viewer":!0,"tiktok-viewer--fullscreen":n.isFullscreen,"tiktok-viewer--floating":!n.isFullscreen,"tiktok-viewer--mobile":n.isMobile})),D=oe=>{const ve=(oe-1)*100,Xe=w.value+T.value;return{transform:`translateY(${ve+Xe}%)`,transition:_.value&&!I.value?"transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none"}},P=()=>{u.value&&(clearTimeout(u.value),u.value=null)},O=()=>{if(P(),l.value==="off")return;const oe=b.value[1];if(!oe||gl(oe.url))return;const ve=v(l.value);ve>0&&(u.value=window.setTimeout(()=>{!_.value&&!I.value&&(n.hasNext?ye():Se())},ve))},M=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},$=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},G=async()=>{await Fa(30);for(let oe=0;oeM(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`视频播放控制失败 (index: ${oe}):`,Xe)}}for(let oe=0;oe$(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`音频播放控制失败 (index: ${oe}):`,Xe)}}},J=()=>{const oe=n.currentIndex,ve=n.mediaList;b.value=[oe>0?ve[oe-1]:null,ve[oe]||null,oe{G(),O()})},Z=oe=>{var Ie,Le,Ye,_t;if(!((Ie=L.value)==null?void 0:Ie.url))return!1;const Xe=((Le=L.value)==null?void 0:Le.fullpath)||((Ye=L.value)==null?void 0:Ye.id);return!!((_t=r.tagMap.get(Xe))!=null&&_t.some(tn=>tn.id===oe))},X=V(()=>{var oe,ve;return(ve=(oe=i.conf)==null?void 0:oe.all_custom_tags)==null?void 0:ve.find(Xe=>Xe.type==="custom"&&Xe.name==="like")}),Y=V(()=>X.value?Z(X.value.id):!1),ne=async()=>{X.value&&await le(X.value.id)},le=async oe=>{var Xe,Ie,Le,Ye,_t;if((Xe=L.value)!=null&&Xe.url)try{const tn=((Ie=L.value)==null?void 0:Ie.fullpath)||((Le=L.value)==null?void 0:Le.id),{is_remove:Ya}=await nV({tag_id:Number(oe),img_path:tn}),nn=((_t=(Ye=i.conf)==null?void 0:Ye.all_custom_tags.find(Ja=>Ja.id===oe))==null?void 0:_t.name)||Te("tag");await r.refreshTags([tn]),Jt.success(Te(Ya?"removedTagFromImage":"addedTagToImage",{tag:nn}))}catch(tn){console.error("Toggle tag error:",tn),Jt.error(Te("tagOperationFailed"))}},ge={margin:"4px",padding:"8px 16px",borderRadius:"20px",display:"inline-block",cursor:"pointer",fontWeight:"bold",transition:"0.3s all ease",userSelect:"none",fontSize:"14px"},_e=()=>{const ve=(c.indexOf(l.value)+1)%c.length;l.value=c[ve],O(),Jt.success(Te("autoPlayStatus",{mode:d.value[l.value]}))},me=(oe=!1)=>{_.value||!n.hasPrev||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.prev(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},ye=(oe=!1)=>{_.value||!n.hasNext||(P(),_.value=!0,T.value=0,w.value=-100,setTimeout(()=>{n.next(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},Se=(oe=!1)=>{_.value||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.currentIndex=0,J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},B=oe=>{if(_.value){oe.preventDefault();return}P(),C.value=oe.touches[0].clientY,E.value=oe.touches[0].clientY,I.value=!0,T.value=0,w.value!==0&&(w.value=0)},x=oe=>{if(_.value){oe.preventDefault();return}if(!I.value)return;E.value=oe.touches[0].clientY;const ve=E.value-C.value,Xe=window.innerHeight,Ie=ve/Xe*100;T.value=Ie,oe.preventDefault()},A=()=>{if(!I.value)return;const oe=E.value-C.value,ve=window.innerHeight,Xe=oe/ve*100;if(I.value=!1,_.value){T.value=0;return}Math.abs(Xe)>30?Xe>0&&n.hasPrev?me(!0):Xe<0&&n.hasNext?ye(!0):K():K()},W=()=>{I.value&&(I.value=!1,_.value||K())},K=()=>{_.value||(_.value=!0,T.value=0,w.value=0,setTimeout(()=>{_.value=!1,O()},300))},U=dj(oe=>{_.value||(oe.preventDefault(),P(),oe.deltaY>0&&n.hasNext?ye():oe.deltaY<0&&n.hasPrev&&me())},500),se=oe=>{if(!(!n.visible||_.value))switch(oe.key){case"ArrowUp":oe.preventDefault(),n.hasPrev&&me();break;case"ArrowDown":oe.preventDefault(),n.hasNext&&ye();break;case"Escape":oe.preventDefault(),n.closeView();break}},ie=async()=>{n.isFullscreen?await Q():await re()},re=async()=>{if(p.value&&!document.fullscreenElement)try{await p.value.requestFullscreen(),n.isFullscreen=!0}catch(oe){console.warn("无法进入全屏模式:",oe)}},Q=async()=>{if(document.fullscreenElement)try{await document.exitFullscreen(),n.isFullscreen=!1}catch(oe){console.warn("无法退出全屏模式:",oe)}},H=()=>{s.value=!s.value;const oe=g.value[1];oe&&(oe.muted=s.value);const ve=y.value[1];ve&&(ve.muted=s.value)},q=()=>{n.isFullscreen=!!document.fullscreenElement},ue=z([]),ae=z([]),fe=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))},we=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))};pe(ue,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&fe(ve)}},{deep:!0}),pe(ae,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&we(ve)}},{deep:!0}),pe(()=>n.visible===!1||n.mediaList.length===0,oe=>{oe||(ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[],l.value="off")},{immediate:!0});const xe=()=>{b.value.forEach(oe=>{if(oe)if(gl(oe.url)){const ve=document.createElement("video");ve.preload="metadata",ve.src=oe.url,ue.value.push(ve)}else if(od(oe.url)){const ve=document.createElement("audio");ve.preload="metadata",ve.src=oe.url,ae.value.push(ve)}else{const ve=new Image;ve.src=oe.url}})},Pe=async()=>{const oe=n.currentItem;if(!oe)return;const ve=(oe==null?void 0:oe.fullpath)||oe.id;ve&&await r.fetchImageTags([ve])};return rW(m,F,{delay:500}),Ve(()=>{document.addEventListener("keydown",se),document.addEventListener("fullscreenchange",q),J()}),vn(()=>{document.removeEventListener("keydown",se),document.removeEventListener("fullscreenchange",q),P(),g.value.forEach(oe=>{fe(oe)}),y.value.forEach(oe=>{we(oe)}),ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[]}),pe(()=>n.currentIndex,()=>{J(),Ke(()=>{xe(),Pe()})},{immediate:!0}),pe(()=>n.mediaList,()=>{J()},{deep:!0}),pe(()=>n.visible,oe=>{oe?(R.value=!0,Ke(()=>{J()})):(g.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),g.value=[null,null,null],y.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),y.value=[null,null,null],b.value=[null,null,null],P(),document.fullscreenElement&&Q())}),pe(()=>s.value,oe=>{g.value.forEach(ve=>{ve&&(ve.muted=oe)}),y.value.forEach(ve=>{ve&&(ve.muted=oe)})}),pe(()=>l.value,()=>{O()}),(oe,ve)=>{var Xe;return Oe(),mt(uu,{to:"body"},[be(n).visible?(Oe(),Fe("div",{key:0,ref_key:"containerRef",ref:p,class:qt(j.value),onTouchstart:B,onTouchmove:x,onTouchend:A,onTouchcancel:W,onWheel:ve[8]||(ve[8]=(...Ie)=>be(U)&&be(U)(...Ie))},[be(!1)?(Oe(),Fe("div",dV,[(Oe(!0),Fe(Re,null,Na(o.value,(Ie,Le)=>(Oe(),Fe("div",{key:Le,class:"debug-item"},[$e("span",vV,St(Le)+":",1),$e("span",{class:qt(["debug-value",{"is-true":Ie===!0,"is-false":Ie===!1}])},St(Ie),3)]))),128))])):$t("",!0),$e("div",{ref_key:"viewportRef",ref:m,class:"tiktok-viewport"},[(Oe(!0),Fe(Re,null,Na(b.value,(Ie,Le)=>(Oe(),Fe("div",{key:(Ie==null?void 0:Ie.id)||`empty-${Le}`,class:"tiktok-media-item",style:Pn(D(Le))},[Ie?(Oe(),Fe("div",pV,[be(gl)(Ie.url)&&be(n).visible?(Oe(),Fe("video",{class:"tiktok-media tiktok-video",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",playsinline:"",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(g.value[Le]=Ye)}},null,8,hV)):be(od)(Ie.url)&&be(n).visible?(Oe(),Fe("div",gV,[mV,$e("div",yV,St(Ie.name||Ie.url.split("/").pop()),1),(Oe(),Fe("audio",{class:"tiktok-audio",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(y.value[Le]=Ye)}},null,8,bV))])):(Oe(),Fe("img",{key:2,class:"tiktok-media",src:Ie.url},null,8,wV))])):$t("",!0)],4))),128))],512),dn($e("div",_V,[$e("button",{class:"control-btn close-btn",onClick:ve[0]||(ve[0]=(...Ie)=>be(n).closeView&&be(n).closeView(...Ie)),title:oe.$t("close")},[S(be(zr))],8,CV),$e("button",{class:"control-btn fullscreen-btn",onClick:ie,title:be(n).isFullscreen?oe.$t("exitFullscreen"):oe.$t("fullscreen")},[be(n).isFullscreen?(Oe(),mt(be(dH),{key:0})):(Oe(),mt(be(gH),{key:1}))],8,SV),$e("button",{class:"control-btn sound-btn",onClick:H,title:be(s)?oe.$t("soundOn"):oe.$t("soundOff")},[be(s)?(Oe(),mt(be(DH),{key:1})):(Oe(),mt(be(kH),{key:0}))],8,xV),X.value?(Oe(),Fe("button",{key:0,class:qt(["control-btn like-btn",{"like-active":Y.value}]),onClick:ne,title:Y.value?oe.$t("unlike"):oe.$t("like")},[Y.value?(Oe(),mt(be(wH),{key:0})):(Oe(),mt(be(xH),{key:1}))],10,TV)):$t("",!0),$e("button",{class:qt(["control-btn autoplay-btn",{"autoplay-active":l.value!=="off"}]),onClick:_e,title:oe.$t("autoPlayTooltip",{mode:d.value[l.value]})},[S(be(PH)),$e("span",OV,St(d.value[l.value]),1)],10,EV),$e("button",{class:"control-btn tags-btn",onClick:ve[1]||(ve[1]=Ie=>N.value=!N.value),title:oe.$t("tags")},[S(be(zH))],8,PV)],512),[[$r,R.value]]),be(a).showTiktokNavigator?dn((Oe(),Fe("div",AV,[be(n).hasPrev?(Oe(),Fe("div",{key:0,class:"nav-indicator nav-prev",onTouchstart:ve[2]||(ve[2]=An(Ie=>me(!1),["prevent"])),onClick:ve[3]||(ve[3]=Ie=>me(!1))},[S(be(n3))],32)):$t("",!0),be(n).hasNext?(Oe(),Fe("div",{key:1,class:"nav-indicator nav-next",onTouchstart:ve[4]||(ve[4]=An(Ie=>ye(!1),["prevent"])),onClick:ve[5]||(ve[5]=Ie=>ye(!1))},[S(be(L_))],32)):$t("",!0)],512)),[[$r,R.value]]):$t("",!0),dn($e("div",IV,[(Xe=L.value)!=null&&Xe.name?(Oe(),Fe("div",MV,St(L.value.name),1)):$t("",!0)],512),[[$r,R.value]]),dn($e("div",kV,[$e("div",NV,[$e("div",RV,[$e("div",{class:"progress-fill",style:Pn({width:`${(be(n).currentIndex+1)/be(n).mediaList.length*100}%`})},null,4)]),$e("span",$V,St(be(n).currentIndex+1)+" / "+St(be(n).mediaList.length),1)])],512),[[$r,R.value]]),S(Yn,{name:"slide-up"},{default:kt(()=>{var Ie;return[N.value?(Oe(),Fe("div",DV,[$e("div",LV,[$e("h3",null,St(oe.$t("tags")),1),$e("button",{onClick:ve[6]||(ve[6]=Le=>N.value=!1),class:"close-tags"},[S(be(zr))])]),$e("div",FV,[$e("div",{onClick:ve[7]||(ve[7]=(...Le)=>be(Gl)&&be(Gl)(...Le)),style:Pn({background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...ge})},St(oe.$t("addNewCustomTag")),5),(Oe(!0),Fe(Re,null,Na(((Ie=be(i).conf)==null?void 0:Ie.all_custom_tags)||[],Le=>(Oe(),Fe("div",{key:Le.id,onClick:Ye=>le(Le.id),style:Pn({background:Z(Le.id)?be(r).getColor(Le):"var(--zp-primary-background)",color:Z(Le.id)?"white":be(r).getColor(Le),border:`2px solid ${be(r).getColor(Le)}`,...ge})},St(Le.name),13,BV))),128))])])):$t("",!0)]}),_:1})],34)):$t("",!0)])}}});const jV=Ui(zV,[["__scopeId","data-v-c88a67da"]]),WV={class:"container"},HV=["src"],VV=he({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=id(async()=>Ax(await ld(ua(e.img)),"width","height")),r=V(()=>{let a="";const o=e.containerWidth;if(e.side==="left"?a=`calc(50% - ${(e.percent-50)/100*o}px)`:a=`calc(-50% - ${(e.percent-50)/100*o+4}px)`,e.maxEdge==="height")return`height:100%;transform: translate(${a}, -50%)`;{const s=n.value;return s?`height:${o/s.width*s.height}px;transform: translate(${a}, -50%)`:void 0}});return(a,i)=>(Oe(),Fe("div",WV,[$e("img",{class:qt(["img",[a.side]]),style:Pn(r.value),src:be(ua)(a.img),onDragstart:i[0]||(i[0]=An(()=>{},["prevent","stop"]))},null,46,HV)]))}});const c0=Ui(VV,[["__scopeId","data-v-1e5742ec"]]),UV=[["Seed","seed"],["CFG scale","cfgScale"],["Sampler","sampler"],["Steps","steps"],["Clip skip","clipSkip"],["Size","size"]],KV=new Map(UV),GV=/<(lora|hypernet):([a-zA-Z0-9_.]+):([0-9.]+)>/g,qV=/([a-zA-Z0-9_.]+)\(([a-zA-Z0-9]+)\)/,YV=(t,e)=>e.get(t.trim())??t.trim(),JV=["Template: ","Negative Template: "];function XV(t){try{return JSON.parse(encodeURIComponent(t))}catch{return t}}function f0(t,e){return typeof t=="function"?t.call(null,e):t}const ZV=t=>{try{return JSON.parse(t)}catch{return t}},QV=[{reg:/(ControlNet \d+): "([^"]+)"/g},{reg:/(Lora hashes): "([^"]+)"/g},{reg:/(Hashes): ({[^}]+})/g,key:"hashes",value:XV}];function eU(t){const e={};if(!t)return e;const n=t.match(/\nextraJsonMetaInfo:\s*(\{[\s\S]*\})\s*$/);if(n)try{e.extraJsonMetaInfo=JSON.parse(n[1]),t=t.replace(/\nextraJsonMetaInfo:\s*\{[\s\S]*\}\s*$/,"")}catch{e.extraJsonMetaInfo=n[1]}const r=t.split(` + */let Nx;const Gu=t=>Nx=t,Rx=Symbol();function ud(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ao;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ao||(Ao={}));function WW(){const t=bd(!0),e=t.run(()=>z({}));let n=[],r=[];const a=ru({install(i){Gu(a),a._a=i,i.provide(Rx,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!$9?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}const $x=()=>{};function Xb(t,e,n,r=$x){t.push(e);const a=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&tu()&&wd(a),a}function ri(t,...e){t.slice().forEach(n=>{n(...e)})}const HW=t=>t();function cd(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],a=t[n];ud(a)&&ud(r)&&t.hasOwnProperty(n)&&!dt(r)&&!Dr(r)?t[n]=cd(a,r):t[n]=r}return t}const VW=Symbol();function UW(t){return!ud(t)||!t.hasOwnProperty(VW)}const{assign:Jr}=Object;function KW(t){return!!(dt(t)&&t.effect)}function GW(t,e,n,r){const{state:a,actions:i,getters:o}=e,s=n.state.value[t];let l;function u(){s||(n.state.value[t]=a?a():{});const c=Z0(n.state.value[t]);return Jr(c,i,Object.keys(o||{}).reduce((d,v)=>(d[v]=ru(V(()=>{Gu(n);const h=n._s.get(t);return o[v].call(h,h)})),d),{}))}return l=Dx(t,u,e,n,r,!0),l}function Dx(t,e,n={},r,a,i){let o;const s=Jr({actions:{}},n),l={deep:!0};let u,c,d=[],v=[],h;const f=r.state.value[t];!i&&!f&&(r.state.value[t]={}),z({});let p;function m(I){let T;u=c=!1,typeof I=="function"?(I(r.state.value[t]),T={type:Ao.patchFunction,storeId:t,events:h}):(cd(r.state.value[t],I),T={type:Ao.patchObject,payload:I,storeId:t,events:h});const N=p=Symbol();Ke().then(()=>{p===N&&(u=!0)}),c=!0,ri(d,T,r.state.value[t])}const g=i?function(){const{state:T}=n,N=T?T():{};this.$patch(R=>{Jr(R,N)})}:$x;function y(){o.stop(),d=[],v=[],r._s.delete(t)}function b(I,T){return function(){Gu(r);const N=Array.from(arguments),R=[],F=[];function L(P){R.push(P)}function j(P){F.push(P)}ri(v,{args:N,name:I,store:_,after:L,onError:j});let D;try{D=T.apply(this&&this.$id===t?this:_,N)}catch(P){throw ri(F,P),P}return D instanceof Promise?D.then(P=>(ri(R,P),P)).catch(P=>(ri(F,P),Promise.reject(P))):(ri(R,D),D)}}const w={_p:r,$id:t,$onAction:Xb.bind(null,v),$patch:m,$reset:g,$subscribe(I,T={}){const N=Xb(d,I,T.detached,()=>R()),R=o.run(()=>pe(()=>r.state.value[t],F=>{(T.flush==="sync"?c:u)&&I({storeId:t,type:Ao.direct,events:h},F)},Jr({},l,T)));return N},$dispose:y},_=ct(w);r._s.set(t,_);const C=r._a&&r._a.runWithContext||HW,E=r._e.run(()=>(o=bd(),C(()=>o.run(e))));for(const I in E){const T=E[I];if(dt(T)&&!KW(T)||Dr(T))i||(f&&UW(T)&&(dt(T)?T.value=f[I]:cd(T,f[I])),r.state.value[t][I]=T);else if(typeof T=="function"){const N=b(I,T);E[I]=N,s.actions[I]=T}}return Jr(_,E),Jr(De(_),E),Object.defineProperty(_,"$state",{get:()=>r.state.value[t],set:I=>{m(T=>{Jr(T,I)})}}),r._p.forEach(I=>{Jr(_,o.run(()=>I({store:_,app:r._a,pinia:r,options:s})))}),f&&i&&n.hydrate&&n.hydrate(_.$state,f),u=!0,c=!0,_}function ws(t,e,n){let r,a;const i=typeof e=="function";typeof t=="string"?(r=t,a=i?n:e):(a=t,r=t.id);function o(s,l){const u=QE();return s=s||(u?ot(Rx,null):null),s&&Gu(s),s=Nx,s._s.has(r)||(i?Dx(r,e,a,s):GW(r,a,s)),s._s.get(r)}return o.$id=r,o}function qW(t){{t=De(t);const e={};for(const n in t){const r=t[n];(dt(r)||Dr(r))&&(e[n]=sn(t,n))}return e}}function YW(t){return/^(?:\/|[a-z]:)/i.test($i(t))}function $i(t){if(!t)return"";t=t.replace(/\\/g,"/"),t=t.replace(/\/+/g,"/");const e=t.split("/"),n=[];for(let i=0;i{const n=YW(t)?t:$i(Lx(e,t));return $i(n)},Gq=t=>{t=$i(t);const e=t.split("/").filter(n=>n);return e[0].endsWith(":")&&(e[0]=e[0]+"/"),e};function qq(t){const e=t.lastIndexOf("/"),n=t.lastIndexOf("\\"),r=Math.max(e,n);return r===-1?".":t.substring(0,r)}const Fx=t=>Zr({...t,name:typeof t.name=="string"?t.name:t.nameFallbackStr??""}),Bx=t=>({...t,panes:t.panes.map(Fx)}),JW=t=>{var n;if(!t.panes.some(r=>r.type==="workspace-snapshot"))return Bx(t);const e=t.panes.filter(r=>r.type!=="workspace-snapshot").map(Fx);return{...t,panes:e,key:((n=TF(e))==null?void 0:n.key)??""}},zx=["defaultChangeIndchecked","defaultSeedChangeChecked","darkModeControl","dontShowAgainNewImgOpts","defaultSortingMethod","defaultGridCellWidth","dontShowAgain","lang","enableThumbnail","tabListHistoryRecord","recent","gridThumbnailResolution","longPressOpenContextMenu","onlyFoldersAndImages","fileTypeFilter","shortcut","ignoredConfirmActions","previewBgOpacity","defaultInitinalPage","autoRefreshWalkMode","autoRefreshWalkModePosLimit","autoRefreshNormalFixedMode","showCommaInInfoPanel","batchDownloadCompress","batchDownloadPackOnly","magicSwitchTiktokView","showRandomImageInStartup","showTiktokNavigator"];function XW(t){if(t<768)return 176;{const e=160+Math.floor((t-768)/128)*16;return Math.min(e,256)}}const Nn=ws(Op+"useGlobalStore",()=>{const t=z(),e=z([]),n=z(!0),r=z(512),a=z(Pp.CREATED_TIME_DESC),i=z(256);try{typeof parent<"u"&&parent.window&&(i.value=XW(parent.window.innerHeight))}catch(L){console.error(L)}const o=z("auto"),s=()=>({type:"empty",name:Te("emptyStartPage"),key:mr()}),l=z([]);Ve(()=>{const L=s();l.value.push({panes:[L],key:L.key,id:mr()})});const u=z(),c=z(new Array),d=Date.now(),v=z(),h=()=>{var j;const L=De(l.value).map(Bx);((j=v.value)==null?void 0:j[0].time)!==d?v.value=[{tabs:L,time:d},...v.value??[]]:v.value[0].tabs=L,v.value=v.value.slice(0,2)},f=async(L,j,D)=>{let P=l.value.map(k=>k.panes).flat().find(k=>k.type==="tag-search-matched-image-grid"&&k.id===j);if(P){P.selectedTagIds=Zr(D);return}else P={type:"tag-search-matched-image-grid",id:j,selectedTagIds:Zr(D),key:mr(),name:Te("searchResults")};const O=l.value[L+1];O?(O.key=P.key,O.panes.push(P)):l.value.push({panes:[P],key:P.key,id:mr()})},p=z(jS());pe(p,L=>gp.global.locale.value=L);const m=z(!1),g=z({delete:"",download:""}),y=z({}),b=V(()=>{const L=["outdir_extras_samples","outdir_save","outdir_txt2img_samples","outdir_img2img_samples","outdir_img2img_grids","outdir_txt2img_grids"],j=e.value.filter(D=>L.includes(D.key)).map(D=>[D.zh,D.dir]);return{...Object.fromEntries(j),...y.value}}),w=new Map,_=ct({deleteOneOnly:!1}),C=hW(),E=V(()=>{const L=()=>{try{return parent.location.search.includes("theme=dark")}catch{return!1}};return(o.value==="auto"?C.value||L():o.value==="dark")?"dark":"light"}),I=L=>{var j;try{L=L.trim();const D=b.value,P=$i(L),O=[];for(const[k,$]of Object.entries(D))if(k&&$){if(L===$||P===$)return k;O.push(P.replace($,"$"+k))}return((j=O.sort((k,$)=>k.length-$.length))==null?void 0:j[0])??L}catch(D){return console.error(D),L}},T=z(.6),N=z(!1),R=z(!0),F=z(!1);return{computedTheme:E,showTiktokNavigator:F,darkModeControl:o,defaultSortingMethod:a,defaultGridCellWidth:i,defaultChangeIndchecked:z(!0),defaultSeedChangeChecked:z(!1),pathAliasMap:b,createEmptyPane:s,lang:p,tabList:l,conf:t,quickMovePaths:e,enableThumbnail:n,dragingTab:u,saveRecord:h,recent:c,tabListHistoryRecord:v,gridThumbnailResolution:r,longPressOpenContextMenu:m,openTagSearchMatchedImageGridInRight:f,onlyFoldersAndImages:z(!0),fileTypeFilter:z(["image","video","audio"]),keepMultiSelect:z(!1),fullscreenPreviewInitialUrl:z(""),shortcut:g,pageFuncExportMap:w,dontShowAgain:z(!1),dontShowAgainNewImgOpts:z(!1),ignoredConfirmActions:_,getShortPath:I,extraPathAliasMap:y,previewBgOpacity:T,defaultInitinalPage:z("empty"),autoRefreshWalkMode:z(!0),autoRefreshWalkModePosLimit:z(128),autoRefreshNormalFixedMode:z(!0),showCommaInInfoPanel:z(!1),batchDownloadCompress:z(!1),batchDownloadPackOnly:z(!1),magicSwitchTiktokView:N,showRandomImageInStartup:R}},{persist:{paths:zx}}),ZW=ws(Op+"useWorkspeaceSnapshot",()=>{const t=Nn(),e=a=>{const i=De(t.tabList).map(JW);return{id:Date.now()+(Math.random()*1e5).toFixed(0),name:a,tabs:i}},n=z([]);return pe(()=>{var a;return(a=t.conf)==null?void 0:a.app_fe_setting},a=>{if(a&&Ku()){const s=Object.keys(a).filter(l=>l.startsWith("workspace_snapshot_")).map(l=>a[l]);n.value=s}},{immediate:!0}),{createSnapshot:e,snapshots:n,addSnapshot:async a=>{n.value.push(a),await Mx(`workspace_snapshot_${a.id}`,a)}}},{persist:{paths:["snapshots"]}}),Qb=async({global_setting:t,sd_cwd:e,home:n,extra_paths:r,cwd:a})=>{const i=Ax(t,"outdir_grids","outdir_extras_samples","outdir_img2img_grids","outdir_img2img_samples","outdir_grids","outdir_extras_samples","outdir_samples","outdir_txt2img_grids","outdir_txt2img_samples","outdir_save");i.outdir_extras_samples??(i.outdir_extras_samples="outputs/extras-images"),i.outdir_img2img_grids??(i.outdir_img2img_grids="outputs/img2img-grids"),i.outdir_img2img_samples??(i.outdir_img2img_samples="outputs/img2img-images"),i.outdir_save??(i.outdir_save="log/images"),i.outdir_txt2img_grids??(i.outdir_txt2img_grids="outputs/txt2img-grids"),i.outdir_txt2img_samples??(i.outdir_txt2img_samples="outputs/txt2img-images");const o={...i,cwd:e,home:n,desktop:`${n}/Desktop`};Object.keys(o).forEach(d=>{const v=d;if(o[v])try{o[v]=Zb(o[v],e)}catch(h){console.error(h)}});const s=await FW(Object.values(o).filter(d=>d)),l={outdir_txt2img_samples:Te("t2i"),outdir_img2img_samples:Te("i2i"),outdir_save:Te("saveButtonSavesTo"),outdir_extras_samples:Te("extra"),outdir_grids:Te("gridImage"),outdir_img2img_grids:Te("i2i-grid"),outdir_samples:Te("image"),outdir_txt2img_grids:Te("t2i-grid"),cwd:Te("workingFolder"),home:"home",desktop:Te("desktop")},u=Nn();u.extraPathAliasMap={home:n,[Te("desktop")]:o.desktop,[Te("workingFolder")]:a,[Te("t2i")]:o.outdir_txt2img_samples,[Te("i2i")]:o.outdir_img2img_samples,...r.filter(d=>d.alias).reduce((d,v)=>(d[v.alias]=Zb(v.path,e),d),{})},await Fa(0);const c=Object.keys(l).filter(d=>s[o[d]]).map(d=>{const v=d;return{key:v,zh:l[v],dir:o[v],can_delete:!1,types:["preset"]}}).concat(r.map(d=>({key:d.path,zh:d.alias||u.getShortPath(d.path),dir:d.path,can_delete:!0,types:d.types})));return VS(c,d=>d.key+d.types.join())};const jx={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((r,a)=>(r.size=a===e?r.max:r.min,a!==e&&(n+=r.min),r)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:r-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),a=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(t),a),r);let o=[e,e+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,c=l.max<100&&i<=100-(l.max+this.sumNextPanesSize(e+1));if(u||c){u?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),l.size=l.max);return}if(this.pushOtherPanes){const d=this.doPushOtherPanes(n,i);if(!d)return;({sums:n,panesToResize:o}=d),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,r=[n,n+1];return e{i>r[0]&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,i)=>{i>0&&i<=n&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[r[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((a,i)=>{i>n&&i{i=n+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[r[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:r}},sumPrevPanesSize(t){return this.panes.reduce((e,n,r)=>e+(re+(r>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");!e&&!n&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,n=!1){const r=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),n||(a.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=i=>this.onMouseDown(i,r)),a.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(a.ondblclick=i=>this.onSplitterDblClick(i,r+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate({target:t,...e}){const n=this.indexedPanes[t._.uid];Object.entries(e).forEach(([r,a])=>n[r]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const n=parseFloat(t.minSize),r=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,i)=>a.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(r=>r.id===t._.uid),n=this.panes.splice(e,1)[0];this.panes.forEach((r,a)=>r.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:e}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const n=[],r=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&n.push(a.id),a.size<=a.min&&r.push(a.id)}),e>.1&&this.readjustSizes(e,n,r)},initialPanesSizing(){let t=100;const e=[],n=[];let r=0;this.panes.forEach(i=>{t-=i.size,i.size!==null&&r++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)});let a=100;t>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(t/(this.panesCount-r),i.max),i.min)),a-=i.size}),a>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,r=0;const a=[],i=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,a,i))},readjustSizes(t,e,n){let r;t>0?r=t/(this.panesCount-e.length):r=t/(this.panesCount-n.length),this.panes.forEach((a,i)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}else if(!n.includes(a.id)){const o=Math.max(Math.min(a.size+r,a.max),a.min),s=o-a.size;t-=s,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return sa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},QW=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},eH={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function tH(t,e,n,r,a,i){return Oe(),Fe("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>i.onPaneClick(o,t._.uid)),style:Pn(t.style)},[_l(t.$slots,"default")],4)}const fd=QW(eH,[["render",tH]]);const nH={style:{position:"relative"}},rH=he({__name:"edgeTrigger",props:{tabIdx:{}},setup(t){const e=t,n=Nn(),r=z(),a=z(),{isOutside:i}=Hb(a),{isOutside:o}=Hb(r),s=V(()=>!i.value&&!!n.dragingTab),l=V(()=>!o.value&&!!n.dragingTab&&!s.value),u=(c,d)=>{var h,f,p,m;const v=MW(((h=c.dataTransfer)==null?void 0:h.getData("text"))??"{}");if(v&&(console.log("on-drop",d,v),(v==null?void 0:v.from)==="tab-drag")){if(c.stopPropagation(),n.dragingTab=void 0,d==="insert"&&v.tabIdx===e.tabIdx)return;const g=n.tabList,y=g[v.tabIdx].panes[v.paneIdx];g[v.tabIdx].panes.splice(v.paneIdx,1),d==="add-right"?(g[e.tabIdx].key=((f=g[e.tabIdx].panes[v.paneIdx-1])==null?void 0:f.key)??g[e.tabIdx].panes[0].key,g.splice(e.tabIdx+1,0,{panes:[y],key:y.key,id:mr()})):(g[v.tabIdx].key=((p=g[v.tabIdx].panes[v.paneIdx-1])==null?void 0:p.key)??((m=g[v.tabIdx].panes[0])==null?void 0:m.key),g[e.tabIdx].panes.push(y),g[e.tabIdx].key=y.key),g[v.tabIdx].panes.length===0&&g.splice(v.tabIdx,1)}};return(c,d)=>(Oe(),Fe("div",{class:qt(["wrap",{accept:l.value}]),ref_key:"trigger",ref:r,onDragover:d[2]||(d[2]=An(()=>{},["prevent"])),onDrop:d[3]||(d[3]=An(v=>u(v,"insert"),["prevent"]))},[$e("div",{class:qt(["iib-tab-edge-trigger",{accept:s.value}]),ref_key:"edgeTrigger",ref:a,onDragover:d[0]||(d[0]=An(()=>{},["prevent"])),onDrop:d[1]||(d[1]=An(v=>u(v,"add-right"),["prevent"]))},null,34),$e("div",nH,[_l(c.$slots,"default",{},void 0,!0)])],34))}});const Ui=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},aH=Ui(rH,[["__scopeId","data-v-f7ccb75b"]]);const Wx=ws("useImgSliStore",()=>{const t=z(!1),e=z(!1),n=z(!1),r=z(),a=z(),i=Nn(),o=V(()=>{var l;const s=i.tabList;for(const u of s)if(((l=u.panes.find(c=>c.key===u.key))==null?void 0:l.type)==="img-sli")return!0;return!1});return{drawerVisible:e,fileDragging:t,left:r,right:a,imgSliActived:o,opened:n}});var iH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};const oH=iH;function e0(t){for(var e=1;e(kd("data-v-9c9e2710"),t=t(),Md(),t),WH={key:0,class:"dragging-port-wrap"},HH={class:"content"},VH={key:0,class:"img-wrap"},UH={key:1},KH=jH(()=>$e("div",{style:{padding:"16px"}},null,-1)),GH={key:0,class:"img-wrap"},qH={key:1},YH={key:0,class:"tips",style:{"max-width":"30vw"}},JH={class:"actions"},XH=he({__name:"DraggingPort",setup(t){const e=Wx(),n=Nn(),{left:r,right:a}=qW(e),i=async(l,u)=>{const c=OW(l);if(c){const d=c.nodes[0];if(!Tx(d.name))return;e[u]=d}},o=()=>{e.left=void 0,e.right=void 0,e.opened=!1},s=()=>{bp(r.value&&a.value);const l={type:"img-sli",left:r.value,right:a.value,name:`${Te("imgCompare")} ( ${r.value.name} vs ${a.value.name})`,key:mr()};n.tabList[0].panes.push(l),n.tabList[0].key=l.key};return(l,u)=>{const c=Z8,d=Xt;return Oe(),mt(Yn,null,{default:Mt(()=>[(be(e).fileDragging||be(r)||be(a)||be(e).opened)&&!be(e).imgSliActived?(Oe(),Fe("div",WH,[$e("h2",null,St(l.$t("imgCompare")),1),$e("div",HH,[$e("div",{class:"left port",onDragover:u[1]||(u[1]=An(()=>{},["prevent"])),onDrop:u[2]||(u[2]=An(v=>i(v,"left"),["prevent"]))},[be(r)?(Oe(),Fe("div",VH,[S(c,{src:be(Vb)(be(r)),preview:{src:be(ua)(be(r))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[0]||(u[0]=v=>r.value=void 0)})])):(Oe(),Fe("div",UH,St(l.$t("dragImageHere")),1))],32),KH,$e("div",{class:"right port",onDragover:u[4]||(u[4]=An(()=>{},["prevent"])),onDrop:u[5]||(u[5]=An(v=>i(v,"right"),["prevent"]))},[be(a)?(Oe(),Fe("div",GH,[S(c,{src:be(Vb)(be(a)),preview:{src:be(ua)(be(a))}},null,8,["src","preview"]),S(be(Wo),{class:"close",onClick:u[3]||(u[3]=v=>a.value=void 0)})])):(Oe(),Fe("div",qH,St(l.$t("dragImageHere")),1))],32)]),be(e).opened?(Oe(),Fe("p",YH," Tips: "+St(l.$t("imageCompareTips")),1)):$t("",!0),$e("div",JH,[be(r)&&be(a)?(Oe(),mt(d,{key:0,type:"primary",onClick:u[6]||(u[6]=v=>be(e).drawerVisible=!0)},{default:Mt(()=>[_n(St(l.$t("confirm")),1)]),_:1})):$t("",!0),be(r)&&be(a)?(Oe(),mt(d,{key:1,type:"primary",onClick:s},{default:Mt(()=>[_n(St(l.$t("confirm"))+"("+St(l.$t("openInNewTab"))+")",1)]),_:1})):$t("",!0),S(d,{style:{"margin-left":"16px"},onClick:o},{default:Mt(()=>[_n(St(l.$t("close")),1)]),_:1})])])):$t("",!0)]),_:1})}}});const ZH=Ui(XH,[["__scopeId","data-v-9c9e2710"]]),QH=ws("useTiktokStore",()=>{const t=z(!1),e=z(!1),n=z([]),r=z(0),a=V(()=>n.value[r.value]||null),i=V(()=>r.valuer.value>0),s=V(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=768);return{visible:t,isFullscreen:e,mediaList:n,currentIndex:r,currentItem:a,hasNext:i,hasPrev:o,isMobile:s,openTiktokView:(f,p=0)=>{n.value=f,r.value=Math.max(0,Math.min(p,f.length-1)),t.value=!0,s.value&&(e.value=!0)},closeView:()=>{e.value=!1,n.value=[],r.value=0,setTimeout(()=>{t.value=!1},300)},next:()=>{i.value&&r.value++},prev:()=>{o.value&&r.value--},goToIndex:f=>{f>=0&&f{e.value=!e.value}}}),eV=async()=>(await We.value.get("/db/basic_info")).data,Yq=async()=>(await We.value.get("/db/expired_dirs")).data,Jq=async()=>{await We.value.post("/db/update_image_data",{},{timeout:1/0})},Xq=async t=>{await We.value.post("/db/update_tag",t)},Zq=async(t,e)=>(await We.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,tV=async t=>(await We.value.post("/db/add_custom_tag",t)).data,nV=async t=>(await We.value.post("/db/toggle_custom_tag_to_img",t)).data,Qq=async t=>{await We.value.post("/db/remove_custom_tag",t)},eY=async()=>(await We.value.get("/db/random_images")).data,tY=async t=>(await We.value.post("/db/search_by_substr",t)).data,Hx="/db/extra_paths",nY=async t=>{await We.value.post(Hx,t)},rY=async t=>{await We.value.delete(Hx,{data:t})},aY=async t=>{await We.value.post("/db/alias_extra_path",t)},rV=async t=>(await We.value.post("/db/get_image_tags",{paths:t})).data,aV=()=>We.value.post("/db/rebuild_index"),iY=t=>We.value.post("/db/batch_update_image_tag",t),iV=async t=>(await We.value.post("/db/rename",t)).data,oY=async t=>(await We.value.post("/db/cluster_iib_output_job_start",t)).data,sY=async t=>(await We.value.get("/db/cluster_iib_output_job_status",{params:{job_id:t}})).data,lY=async t=>(await We.value.post("/db/cluster_iib_output_cached",t)).data,uY=async t=>(await We.value.post("/db/search_iib_output_by_prompt",t,{timeout:1/0})).data,cY=async t=>(await We.value.post("/db/cluster_tag_graph",t,{timeout:6e4})).data;function oV(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const u0=oV(),qu=ws("useTagStore",()=>{const t=ct(new Map),e=async l=>{if(l=l.filter(u=>!t.has(u)),!!l.length)try{l.forEach(c=>t.set(c,[]));const u=await rV(l);for(const c in u)t.set(c,u[c])}catch{l.forEach(u=>t.delete(u))}},n=z(new Map),r=l=>{l&&n.value.set(l.id.toString(),l.color)},a=l=>{const u=l.id.toString();let c=n.value.get(u);if(c)return c;if(!c&&l.color)return n.value.set(u,l.color),l.color;if(!c){const d=jl.hash.sha256.hash(u),v=parseInt(jl.codec.hex.fromBits(d),16)%u0.length;c=u0[v],n.value.set(u,c)}return c},i=async l=>{l.forEach(u=>t.delete(u)),await e(l)},o=l=>({id:l.name,count:0,display_name:null,type:"temp",color:"",...l});return{set:(l,u)=>{const c=u.map(d=>o(typeof d=="string"?{name:d}:d));t.set(l,c)},colorCache:n,tagMap:t,getColor:a,fetchImageTags:e,refreshTags:i,tagConvert:o,notifyCacheUpdate:r}}),fY=async t=>(await We.value.get("/files",{params:{folder_path:t}})).data,dY=async t=>(await We.value.post("/delete_files",{file_paths:t})).data,vY=async(t,e,n)=>(await We.value.post("/move_files",{file_paths:t,dest:e,create_dest_folder:n})).data,pY=async(t,e,n)=>(await We.value.post("/copy_files",{file_paths:t,dest:e,create_dest_folder:n})).data,sV=async t=>{await We.value.post("/mkdirs",{dest_folder:t})},hY=async t=>(await We.value.post("/batch_get_files_info",{paths:t})).data;let uo,Wc;const lV=async(t,e,n="image/webp")=>{const a=await(await fetch(t)).arrayBuffer();return new File([a],e,{type:n})},uV=(t,e="image/webp")=>{if(!Wc){uo=document.createElement("canvas");const a=uo.getContext("2d");bp(a),Wc=a}const{videoHeight:n,videoWidth:r}=t;return uo.width=r,uo.height=n,Wc.drawImage(t,0,0,r,n),uo.toDataURL(e)},Vx=()=>{const t=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(e=>e.style.display!=="none");t?(console.log("closeImageFullscreenPreview success"),cV(t)):console.log("closeImageFullscreenPreview not found")};function cV(t){if(!(t instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:t});t.dispatchEvent(e)}const gY=(t,e)=>{const n=e.querySelector(`.idx-${t} .ant-image-img`);n?n.click():console.log("openImageFullscreenPreview error: not found",t,e)},mY=t=>{const e=z("");return new Promise(n=>{xt.confirm({title:Te("inputFolderName"),content:()=>S(kt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=Lx(t,e.value);await sV(r),n()}})})},yY=()=>S("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[_n("Tips: "),Te("multiSelectTips")]),bY=(t,e,n)=>{const r=qu(),a=Nn(),i=d=>{var v;return!!((v=r.tagMap.get(t.fullpath))!=null&&v.some(h=>h.id===d))},o=z(null),s=async()=>{if(!o.value)return;const d=o.value;d.pause();const v=uV(d);await BW({path:t.fullpath,base64_img:v,updated_time:t.date}),t.cover_url=URL.createObjectURL(await lV(v,"cover")),Jt.success(Te("success")+"! "+Te("clearCacheIfNotTakeEffect"))},l={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},u=xt.confirm({width:"80vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("video",{ref:o,style:{maxHeight:xW?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:TW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"4px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...l}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(d=>S("div",{key:d.id,onClick:()=>e==null?void 0:e(d.id),style:{background:i(d.id)?r.getColor(d):"var(--zp-primary-background)",color:i(d.id)?"white":r.getColor(d),border:`2px solid ${r.getColor(d)}`,...l}},[d.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:c,type:"primary"},{default:Te("tiktokView")}),S(Xt,{onClick:s},{default:Te("setCurrFrameAsVideoPoster")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function c(){n==null||n(),Vx(),u.destroy()}},wY=(t,e,n)=>{const r=qu(),a=Nn(),i=u=>{var c;return!!((c=r.tagMap.get(t.fullpath))!=null&&c.some(d=>d.id===u))},o={margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease","user-select":"none"},s=xt.confirm({width:"60vw",title:t.name,icon:null,content:()=>S("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[S("div",{style:{fontSize:"80px",marginBottom:"16px"}},[_n("🎵")]),S("audio",{style:{width:"100%",maxWidth:"500px"},src:PW(t),controls:!0,autoplay:!0},null),S("div",{style:{marginTop:"16px"}},[S("div",{onClick:Gl,style:{background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...o}},[Te("addNewCustomTag")]),a.conf.all_custom_tags.map(u=>S("div",{key:u.id,onClick:()=>e==null?void 0:e(u.id),style:{background:i(u.id)?r.getColor(u):"var(--zp-primary-background)",color:i(u.id)?"white":r.getColor(u),border:`2px solid ${r.getColor(u)}`,...o}},[u.name]))]),S("div",{class:"actions",style:{marginTop:"16px"}},[S(Xt,{onClick:()=>Ex([ua(t,!0)])},{icon:S(ZC,null,null),default:Te("download")}),n&&S(Xt,{onClick:l,type:"primary"},{default:Te("tiktokView")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"});function l(){n==null||n(),Vx(),s.destroy()}},_Y=()=>{xt.confirm({title:Te("confirmRebuildImageIndex"),onOk:async()=>{await aV(),Uu.emit("searchIndexExpired"),Jt.success(Te("rebuildComplete"))}})},CY=t=>{const e=z(t.split(/[\\/]/).pop()??"");return new Promise(n=>{xt.confirm({title:Te("rename"),content:()=>S(kt,{value:e.value,"onUpdate:value":r=>e.value=r},null),async onOk(){if(!e.value)return;const r=await iV({path:t,name:e.value});n(r.new_path)}})})},Gl=()=>{const t=z(""),e=Nn();return new Promise(n=>{xt.confirm({title:Te("addNewCustomTag"),content:()=>S(kt,{value:t.value,"onUpdate:value":r=>t.value=r},null),async onOk(){var i;if(!t.value)return;const r=await eV(),a=await tV({tag_name:t.value});if(a.type!=="custom")throw Jt.error(Te("existInOtherType")),new Error(Te("existInOtherType"));if(r.tags.find(o=>o.id===a.id))throw Jt.error(Te("alreadyExists")),new Error(Te("alreadyExists"));(i=e.conf)==null||i.all_custom_tags.push(a),Jt.success(Te("success")),n(t.value)}})})},fV=t=>(kd("data-v-c88a67da"),t=t(),Md(),t),dV={key:0,class:"debug-info"},vV={class:"debug-label"},pV={key:0,class:"media-content"},hV=["src","controls","loop"],gV={key:1,class:"tiktok-media tiktok-audio-container"},mV=fV(()=>$e("div",{class:"audio-icon"},"🎵",-1)),yV={class:"audio-filename"},bV=["src","controls","loop"],wV=["src"],_V={class:"tiktok-controls"},CV=["title"],SV=["title"],xV=["title"],TV=["title"],EV=["title"],OV={class:"autoplay-label"},PV=["title"],AV={key:1,class:"tiktok-navigation"},IV={class:"tiktok-bottom-overlay"},kV={key:0,class:"filename-display"},MV={class:"tiktok-progress"},NV={class:"progress-bar-row"},RV={class:"progress-bar"},$V={class:"progress-text"},DV={key:0,class:"tiktok-tags-panel"},LV={class:"tags-header"},FV={class:"tags-content"},BV=["onClick"],zV=he({__name:"TiktokViewer",setup(t){const n=QH(),r=qu(),a=Nn(),i=Nn(),o=V(()=>({isAnimating:_.value,isDragging:I.value,bufferTransform:w.value,dragOffset:T.value,autoPlayMode:l.value,isMuted:s.value,currentIndex:n.currentIndex})),s=Sx("tiktok-viewer-muted",!0),l=z("off"),u=z(null),c=["off","5s","10s","20s"],d=V(()=>({off:Te("autoPlayOff"),"5s":Te("autoPlay5s"),"10s":Te("autoPlay10s"),"20s":Te("autoPlay20s")})),v=oe=>{switch(oe){case"5s":return 5e3;case"10s":return 1e4;case"20s":return 2e4;default:return 0}},h=V(()=>/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform.toUpperCase().indexOf("MAC")>=0),f=oe=>h.value&&!oe?700:300,p=z(),m=z(),g=z([null,null,null]),y=z([null,null,null]),b=z([null,null,null]),w=z(0),_=z(!1),C=z(0),E=z(0),I=z(!1),T=z(0),N=z(!1),R=z(!0),F=()=>{R.value=!R.value},L=V(()=>b.value[1]),j=V(()=>({"tiktok-viewer":!0,"tiktok-viewer--fullscreen":n.isFullscreen,"tiktok-viewer--floating":!n.isFullscreen,"tiktok-viewer--mobile":n.isMobile})),D=oe=>{const ve=(oe-1)*100,Xe=w.value+T.value;return{transform:`translateY(${ve+Xe}%)`,transition:_.value&&!I.value?"transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none"}},P=()=>{u.value&&(clearTimeout(u.value),u.value=null)},O=()=>{if(P(),l.value==="off")return;const oe=b.value[1];if(!oe||gl(oe.url))return;const ve=v(l.value);ve>0&&(u.value=window.setTimeout(()=>{!_.value&&!I.value&&(n.hasNext?ye():Se())},ve))},k=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},$=oe=>{oe===1&&l.value!=="off"&&!_.value&&setTimeout(()=>{n.hasNext?ye():Se()},500)},G=async()=>{await Fa(30);for(let oe=0;oek(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`视频播放控制失败 (index: ${oe}):`,Xe)}}for(let oe=0;oe$(oe),await ve.play()):(ve.pause(),ve.currentTime=0,ve.onended=null)}catch(Xe){console.warn(`音频播放控制失败 (index: ${oe}):`,Xe)}}},J=()=>{const oe=n.currentIndex,ve=n.mediaList;b.value=[oe>0?ve[oe-1]:null,ve[oe]||null,oe{G(),O()})},Z=oe=>{var Ie,Le,Ye,_t;if(!((Ie=L.value)==null?void 0:Ie.url))return!1;const Xe=((Le=L.value)==null?void 0:Le.fullpath)||((Ye=L.value)==null?void 0:Ye.id);return!!((_t=r.tagMap.get(Xe))!=null&&_t.some(tn=>tn.id===oe))},X=V(()=>{var oe,ve;return(ve=(oe=i.conf)==null?void 0:oe.all_custom_tags)==null?void 0:ve.find(Xe=>Xe.type==="custom"&&Xe.name==="like")}),Y=V(()=>X.value?Z(X.value.id):!1),ne=async()=>{X.value&&await le(X.value.id)},le=async oe=>{var Xe,Ie,Le,Ye,_t;if((Xe=L.value)!=null&&Xe.url)try{const tn=((Ie=L.value)==null?void 0:Ie.fullpath)||((Le=L.value)==null?void 0:Le.id),{is_remove:Ya}=await nV({tag_id:Number(oe),img_path:tn}),nn=((_t=(Ye=i.conf)==null?void 0:Ye.all_custom_tags.find(Ja=>Ja.id===oe))==null?void 0:_t.name)||Te("tag");await r.refreshTags([tn]),Jt.success(Te(Ya?"removedTagFromImage":"addedTagToImage",{tag:nn}))}catch(tn){console.error("Toggle tag error:",tn),Jt.error(Te("tagOperationFailed"))}},ge={margin:"4px",padding:"8px 16px",borderRadius:"20px",display:"inline-block",cursor:"pointer",fontWeight:"bold",transition:"0.3s all ease",userSelect:"none",fontSize:"14px"},_e=()=>{const ve=(c.indexOf(l.value)+1)%c.length;l.value=c[ve],O(),Jt.success(Te("autoPlayStatus",{mode:d.value[l.value]}))},me=(oe=!1)=>{_.value||!n.hasPrev||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.prev(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},ye=(oe=!1)=>{_.value||!n.hasNext||(P(),_.value=!0,T.value=0,w.value=-100,setTimeout(()=>{n.next(),J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},Se=(oe=!1)=>{_.value||(P(),_.value=!0,T.value=0,w.value=100,setTimeout(()=>{n.currentIndex=0,J(),w.value=0,setTimeout(()=>{_.value=!1},f(oe))},200))},B=oe=>{if(_.value){oe.preventDefault();return}P(),C.value=oe.touches[0].clientY,E.value=oe.touches[0].clientY,I.value=!0,T.value=0,w.value!==0&&(w.value=0)},x=oe=>{if(_.value){oe.preventDefault();return}if(!I.value)return;E.value=oe.touches[0].clientY;const ve=E.value-C.value,Xe=window.innerHeight,Ie=ve/Xe*100;T.value=Ie,oe.preventDefault()},A=()=>{if(!I.value)return;const oe=E.value-C.value,ve=window.innerHeight,Xe=oe/ve*100;if(I.value=!1,_.value){T.value=0;return}Math.abs(Xe)>30?Xe>0&&n.hasPrev?me(!0):Xe<0&&n.hasNext?ye(!0):K():K()},W=()=>{I.value&&(I.value=!1,_.value||K())},K=()=>{_.value||(_.value=!0,T.value=0,w.value=0,setTimeout(()=>{_.value=!1,O()},300))},U=dj(oe=>{_.value||(oe.preventDefault(),P(),oe.deltaY>0&&n.hasNext?ye():oe.deltaY<0&&n.hasPrev&&me())},500),se=oe=>{if(!(!n.visible||_.value))switch(oe.key){case"ArrowUp":oe.preventDefault(),n.hasPrev&&me();break;case"ArrowDown":oe.preventDefault(),n.hasNext&&ye();break;case"Escape":oe.preventDefault(),n.closeView();break}},ie=async()=>{n.isFullscreen?await Q():await re()},re=async()=>{if(p.value&&!document.fullscreenElement)try{await p.value.requestFullscreen(),n.isFullscreen=!0}catch(oe){console.warn("无法进入全屏模式:",oe)}},Q=async()=>{if(document.fullscreenElement)try{await document.exitFullscreen(),n.isFullscreen=!1}catch(oe){console.warn("无法退出全屏模式:",oe)}},H=()=>{s.value=!s.value;const oe=g.value[1];oe&&(oe.muted=s.value);const ve=y.value[1];ve&&(ve.muted=s.value)},q=()=>{n.isFullscreen=!!document.fullscreenElement},ue=z([]),ae=z([]),fe=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))},we=oe=>{oe&&(oe.pause(),oe.src="",oe.muted=!0,oe.load(),oe.parentNode&&oe.parentNode.removeChild(oe))};pe(ue,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&fe(ve)}},{deep:!0}),pe(ae,oe=>{for(;oe.length>5;){const ve=oe.shift();ve&&we(ve)}},{deep:!0}),pe(()=>n.visible===!1||n.mediaList.length===0,oe=>{oe||(ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[],l.value="off")},{immediate:!0});const xe=()=>{b.value.forEach(oe=>{if(oe)if(gl(oe.url)){const ve=document.createElement("video");ve.preload="metadata",ve.src=oe.url,ue.value.push(ve)}else if(od(oe.url)){const ve=document.createElement("audio");ve.preload="metadata",ve.src=oe.url,ae.value.push(ve)}else{const ve=new Image;ve.src=oe.url}})},Pe=async()=>{const oe=n.currentItem;if(!oe)return;const ve=(oe==null?void 0:oe.fullpath)||oe.id;ve&&await r.fetchImageTags([ve])};return rW(m,F,{delay:500}),Ve(()=>{document.addEventListener("keydown",se),document.addEventListener("fullscreenchange",q),J()}),vn(()=>{document.removeEventListener("keydown",se),document.removeEventListener("fullscreenchange",q),P(),g.value.forEach(oe=>{fe(oe)}),y.value.forEach(oe=>{we(oe)}),ue.value.forEach(fe),ue.value=[],ae.value.forEach(we),ae.value=[]}),pe(()=>n.currentIndex,()=>{J(),Ke(()=>{xe(),Pe()})},{immediate:!0}),pe(()=>n.mediaList,()=>{J()},{deep:!0}),pe(()=>n.visible,oe=>{oe?(R.value=!0,Ke(()=>{J()})):(g.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),g.value=[null,null,null],y.value.forEach(ve=>{ve&&(ve.pause(),ve.src="",ve.load())}),y.value=[null,null,null],b.value=[null,null,null],P(),document.fullscreenElement&&Q())}),pe(()=>s.value,oe=>{g.value.forEach(ve=>{ve&&(ve.muted=oe)}),y.value.forEach(ve=>{ve&&(ve.muted=oe)})}),pe(()=>l.value,()=>{O()}),(oe,ve)=>{var Xe;return Oe(),mt(uu,{to:"body"},[be(n).visible?(Oe(),Fe("div",{key:0,ref_key:"containerRef",ref:p,class:qt(j.value),onTouchstart:B,onTouchmove:x,onTouchend:A,onTouchcancel:W,onWheel:ve[8]||(ve[8]=(...Ie)=>be(U)&&be(U)(...Ie))},[be(!1)?(Oe(),Fe("div",dV,[(Oe(!0),Fe(Re,null,Na(o.value,(Ie,Le)=>(Oe(),Fe("div",{key:Le,class:"debug-item"},[$e("span",vV,St(Le)+":",1),$e("span",{class:qt(["debug-value",{"is-true":Ie===!0,"is-false":Ie===!1}])},St(Ie),3)]))),128))])):$t("",!0),$e("div",{ref_key:"viewportRef",ref:m,class:"tiktok-viewport"},[(Oe(!0),Fe(Re,null,Na(b.value,(Ie,Le)=>(Oe(),Fe("div",{key:(Ie==null?void 0:Ie.id)||`empty-${Le}`,class:"tiktok-media-item",style:Pn(D(Le))},[Ie?(Oe(),Fe("div",pV,[be(gl)(Ie.url)&&be(n).visible?(Oe(),Fe("video",{class:"tiktok-media tiktok-video",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",playsinline:"",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(g.value[Le]=Ye)}},null,8,hV)):be(od)(Ie.url)&&be(n).visible?(Oe(),Fe("div",gV,[mV,$e("div",yV,St(Ie.name||Ie.url.split("/").pop()),1),(Oe(),Fe("audio",{class:"tiktok-audio",src:Ie.url,controls:Le===1,loop:Le===1&&l.value==="off",preload:"metadata",key:Ie.url,ref_for:!0,ref:Ye=>{Ye&&(y.value[Le]=Ye)}},null,8,bV))])):(Oe(),Fe("img",{key:2,class:"tiktok-media",src:Ie.url},null,8,wV))])):$t("",!0)],4))),128))],512),dn($e("div",_V,[$e("button",{class:"control-btn close-btn",onClick:ve[0]||(ve[0]=(...Ie)=>be(n).closeView&&be(n).closeView(...Ie)),title:oe.$t("close")},[S(be(zr))],8,CV),$e("button",{class:"control-btn fullscreen-btn",onClick:ie,title:be(n).isFullscreen?oe.$t("exitFullscreen"):oe.$t("fullscreen")},[be(n).isFullscreen?(Oe(),mt(be(dH),{key:0})):(Oe(),mt(be(gH),{key:1}))],8,SV),$e("button",{class:"control-btn sound-btn",onClick:H,title:be(s)?oe.$t("soundOn"):oe.$t("soundOff")},[be(s)?(Oe(),mt(be(DH),{key:1})):(Oe(),mt(be(MH),{key:0}))],8,xV),X.value?(Oe(),Fe("button",{key:0,class:qt(["control-btn like-btn",{"like-active":Y.value}]),onClick:ne,title:Y.value?oe.$t("unlike"):oe.$t("like")},[Y.value?(Oe(),mt(be(wH),{key:0})):(Oe(),mt(be(xH),{key:1}))],10,TV)):$t("",!0),$e("button",{class:qt(["control-btn autoplay-btn",{"autoplay-active":l.value!=="off"}]),onClick:_e,title:oe.$t("autoPlayTooltip",{mode:d.value[l.value]})},[S(be(PH)),$e("span",OV,St(d.value[l.value]),1)],10,EV),$e("button",{class:"control-btn tags-btn",onClick:ve[1]||(ve[1]=Ie=>N.value=!N.value),title:oe.$t("tags")},[S(be(zH))],8,PV)],512),[[$r,R.value]]),be(a).showTiktokNavigator?dn((Oe(),Fe("div",AV,[be(n).hasPrev?(Oe(),Fe("div",{key:0,class:"nav-indicator nav-prev",onTouchstart:ve[2]||(ve[2]=An(Ie=>me(!1),["prevent"])),onClick:ve[3]||(ve[3]=Ie=>me(!1))},[S(be(n3))],32)):$t("",!0),be(n).hasNext?(Oe(),Fe("div",{key:1,class:"nav-indicator nav-next",onTouchstart:ve[4]||(ve[4]=An(Ie=>ye(!1),["prevent"])),onClick:ve[5]||(ve[5]=Ie=>ye(!1))},[S(be(L_))],32)):$t("",!0)],512)),[[$r,R.value]]):$t("",!0),dn($e("div",IV,[(Xe=L.value)!=null&&Xe.name?(Oe(),Fe("div",kV,St(L.value.name),1)):$t("",!0)],512),[[$r,R.value]]),dn($e("div",MV,[$e("div",NV,[$e("div",RV,[$e("div",{class:"progress-fill",style:Pn({width:`${(be(n).currentIndex+1)/be(n).mediaList.length*100}%`})},null,4)]),$e("span",$V,St(be(n).currentIndex+1)+" / "+St(be(n).mediaList.length),1)])],512),[[$r,R.value]]),S(Yn,{name:"slide-up"},{default:Mt(()=>{var Ie;return[N.value?(Oe(),Fe("div",DV,[$e("div",LV,[$e("h3",null,St(oe.$t("tags")),1),$e("button",{onClick:ve[6]||(ve[6]=Le=>N.value=!1),class:"close-tags"},[S(be(zr))])]),$e("div",FV,[$e("div",{onClick:ve[7]||(ve[7]=(...Le)=>be(Gl)&&be(Gl)(...Le)),style:Pn({background:"var(--zp-primary-background)",color:"var(--zp-luminous)",border:"2px solid var(--zp-luminous)",...ge})},St(oe.$t("addNewCustomTag")),5),(Oe(!0),Fe(Re,null,Na(((Ie=be(i).conf)==null?void 0:Ie.all_custom_tags)||[],Le=>(Oe(),Fe("div",{key:Le.id,onClick:Ye=>le(Le.id),style:Pn({background:Z(Le.id)?be(r).getColor(Le):"var(--zp-primary-background)",color:Z(Le.id)?"white":be(r).getColor(Le),border:`2px solid ${be(r).getColor(Le)}`,...ge})},St(Le.name),13,BV))),128))])])):$t("",!0)]}),_:1})],34)):$t("",!0)])}}});const jV=Ui(zV,[["__scopeId","data-v-c88a67da"]]),WV={class:"container"},HV=["src"],VV=he({__name:"ImgSliSide",props:{side:{},containerWidth:{},img:{},maxEdge:{},percent:{}},setup(t){const e=t,n=id(async()=>Ax(await ld(ua(e.img)),"width","height")),r=V(()=>{let a="";const o=e.containerWidth;if(e.side==="left"?a=`calc(50% - ${(e.percent-50)/100*o}px)`:a=`calc(-50% - ${(e.percent-50)/100*o+4}px)`,e.maxEdge==="height")return`height:100%;transform: translate(${a}, -50%)`;{const s=n.value;return s?`height:${o/s.width*s.height}px;transform: translate(${a}, -50%)`:void 0}});return(a,i)=>(Oe(),Fe("div",WV,[$e("img",{class:qt(["img",[a.side]]),style:Pn(r.value),src:be(ua)(a.img),onDragstart:i[0]||(i[0]=An(()=>{},["prevent","stop"]))},null,46,HV)]))}});const c0=Ui(VV,[["__scopeId","data-v-1e5742ec"]]),UV=[["Seed","seed"],["CFG scale","cfgScale"],["Sampler","sampler"],["Steps","steps"],["Clip skip","clipSkip"],["Size","size"]],KV=new Map(UV),GV=/<(lora|hypernet):([a-zA-Z0-9_.]+):([0-9.]+)>/g,qV=/([a-zA-Z0-9_.]+)\(([a-zA-Z0-9]+)\)/,YV=(t,e)=>e.get(t.trim())??t.trim(),JV=["Template: ","Negative Template: "];function XV(t){try{return JSON.parse(encodeURIComponent(t))}catch{return t}}function f0(t,e){return typeof t=="function"?t.call(null,e):t}const ZV=t=>{try{return JSON.parse(t)}catch{return t}},QV=[{reg:/(ControlNet \d+): "([^"]+)"/g},{reg:/(Lora hashes): "([^"]+)"/g},{reg:/(Hashes): ({[^}]+})/g,key:"hashes",value:XV}];function eU(t){const e={};if(!t)return e;const n=t.match(/\nextraJsonMetaInfo:\s*(\{[\s\S]*\})\s*$/);if(n)try{e.extraJsonMetaInfo=JSON.parse(n[1]),t=t.replace(/\nextraJsonMetaInfo:\s*\{[\s\S]*\}\s*$/,"")}catch{e.extraJsonMetaInfo=n[1]}const r=t.split(` `).filter(h=>h.trim()!==""&&!JV.some(f=>h.startsWith(f))),a=r.findIndex(h=>h.startsWith("Steps: "));let i=r[a]||"";a>-1&&r.splice(a,1),i=NW(i);const o=[];QV.forEach(({reg:h,key:f,value:p})=>{const m={},g=[];let y;for(;(y=h.exec(i))!==null;){const b=f!==void 0?f0(f,y[1]):y[1],w=p!==void 0?f0(p,y[2]):y[2];m[b]=w,g.push(y[0])}g.forEach(b=>i=i.replace(b,"")),o.push(m)});const s=/\s*([\w ]+):\s*("(?:\\"[^,]|\\"|\\|[^"])+"|[^,]*)(?:,|$)/g;let l;for(;(l=s.exec(i))!==null;){let h=l[1];const f=l[2].replace(/\\(.)/g,"$1");h&&(h=YV(h,KV),e[h.trim()]=ZV((f??"").trim()))}o.forEach(h=>{Object.assign(e,h)});let[u,...c]=r.join(` `).split("Negative prompt:").map(h=>h.trim());u=u.replace(/\nextraJsonMetaInfo:\s*\{[\s\S]*\}\s*$/,"").trim(),e.prompt=u,e.negativePrompt=c.join(" ").trim();const v=[...u.matchAll(GV)].map(([,h,f,p])=>({type:h,name:f,weight:parseFloat(p)}));if(e.Size||e.size){const h=(e.Size||e.size||"0x0").split("x");e.width||(e.width=parseFloat(h[0])||0),e.height||(e.height=parseFloat(h[1])||0)}if(e.Model&&e["Model hash"]){const h=e.Model,f=e["Model hash"];typeof e.hashes!="object"&&(e.hashes={}),e.hashes.model||(e.hashes.model=f),v.push({type:"model",name:h,hash:f})}if(e.Hypernet&&e["Hypernet strength"]&&v.push({type:"hypernet",name:e.Hypernet,weight:parseFloat(e["Hypernet strength"])}),e["AddNet Enabled"]==="True"){let h=1;for(;;){const f=e[`AddNet Model ${h}`];if(!f)break;const[,p,m]=f.match(qV)??[];v.push({type:e[`AddNet Module ${h}`].toLowerCase(),name:p,hash:m,weight:parseFloat(e[`AddNet Weight ${h}`])}),h++}}return e.resources=v,e}const tU=he({__name:"PromptCompare",props:{lImg:{},rImg:{}},setup(t){const e=t,n=Ix(),r=Nn(),a=z(""),i=z("");function o(s){var c;let l="",u=eU(s);l+=`--- PROMPT --- \r `,l+=((c=u.prompt)==null?void 0:c.replace(/\r\n/g,""))+`\r @@ -205,14 +205,14 @@ Note that this is not an issue if running this frontend on a browser instead of \r `,l+=`--- PARAMS ---\r `;for(const[d,v]of Object.entries(u))d=="prompt"||d=="negativePrompt"||(l+=d+": "+v+`\r -`);return l}return pe(()=>{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>Kb(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>Kb(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=us("VueDiff");return Oe(),mt(u,{class:"diff",mode:"split",theme:be(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const nU={key:0,class:"hint"},rU={class:"hint-inline"},aU=he({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=z(50),a=([{size:c}])=>{r.value=c},i=z(),{width:o}=_W(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=id(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([ld(ua(n.left)),ld(ua(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=id(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,h=v/d,f=document.body.clientWidth/document.body.clientHeight;return h>f?"width":"height"});return(c,d)=>(Oe(),Fe(Re,null,[$e("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[S(be(jx),{class:"default-theme",onResize:a},{default:kt(()=>[c.left?(Oe(),mt(be(fd),{key:0},{default:kt(()=>[S(c0,{side:"left","max-edge":be(u),"container-width":be(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):$t("",!0),c.right?(Oe(),mt(be(fd),{key:1},{default:kt(()=>[S(c0,{"max-edge":be(u),percent:r.value,img:c.right,side:"right","container-width":be(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):$t("",!0)]),_:1})],512),c.container!=="drawer"?(Oe(),Fe("div",nU,[$e("div",rU,[S(be(lH)),_n(" "+St(c.$t("scrollDownToComparePrompt")),1)])])):$t("",!0),S(tU,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const iU={class:"actions"},oU=he({__name:"ImgSliDrawer",setup(t){const e=Wx(),n=z();return(r,a)=>{const i=Xt,o=sD,s=U8;return Oe(),Fe(Re,null,[S(s,{width:"100vw",visible:be(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>be(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:kt(()=>[$e("div",iU,[S(i,{onClick:a[0]||(a[0]=l=>be(e).drawerVisible=!1)},{default:kt(()=>[_n(St(r.$t("close")),1)]),_:1}),S(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:kt(()=>[_n(St(r.$t("fullscreenview")),1)]),_:1}),S(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:kt(()=>[be(e).left&&be(e).right?(Oe(),mt(aU,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:be(e).left,right:be(e).right},null,8,["left","right"])):$t("",!0)]),_:1},8,["visible"]),S(ZH),S(jV)],64)}}});const sU=Ui(oU,[["__scopeId","data-v-65e6ee07"]]),lU=he({__name:"SplitViewTab",setup(t){const e=Nn(),n={local:xn(()=>mn(()=>import("./stackView-a05c3f99.js"),["assets/stackView-a05c3f99.js","assets/index-4be8cdd9.js","assets/index-41e4fe63.css","assets/numInput-d89a0bbe.js","assets/index-68461333.js","assets/index-154b94da.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-70bd2074.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/index-9b184148.js","assets/index-80432a0c.css","assets/FileItem-2eb00024.js","assets/_isIterateeCall-bfd79848.js","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-ba3817a4.js","assets/shortcut-0468cdd7.js","assets/Checkbox-59427a1c.js","assets/MultiSelectKeep-fb8adaea.css","assets/useGenInfoDiff-f63a5430.js","assets/stackView-b7949086.css","assets/index-f4bbe4b8.css"])),empty:xn(()=>mn(()=>import("./emptyStartup-76ca2d01.js"),["assets/emptyStartup-76ca2d01.js","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/Checkbox-59427a1c.js","assets/index-9b184148.js","assets/index-80432a0c.css","assets/emptyStartup-2208b721.css","assets/index-9fed83c2.css"])),"global-setting":xn(()=>mn(()=>import("./globalSetting-9a0af625.js"),["assets/globalSetting-9a0af625.js","assets/numInput-d89a0bbe.js","assets/index-68461333.js","assets/index-154b94da.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-70bd2074.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/shortcut-0468cdd7.js","assets/Checkbox-59427a1c.js","assets/globalSetting-8612eccd.css","assets/index-f4bbe4b8.css"])),"tag-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-380ef8e8.js"),["assets/MatchedImageGrid-380ef8e8.js","assets/index-4be8cdd9.js","assets/index-41e4fe63.css","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/MultiSelectKeep-ba3817a4.js","assets/FileItem-2eb00024.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-bfd79848.js","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/index-9b184148.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-0468cdd7.js","assets/Checkbox-59427a1c.js","assets/MultiSelectKeep-fb8adaea.css","assets/hook-a2b05396.js","assets/useGenInfoDiff-f63a5430.js","assets/MatchedImageGrid-19d3b31e.css"])),"topic-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-b5a47599.js"),["assets/MatchedImageGrid-b5a47599.js","assets/index-4be8cdd9.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-ba3817a4.js","assets/FileItem-2eb00024.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-bfd79848.js","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/index-9b184148.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-0468cdd7.js","assets/Checkbox-59427a1c.js","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-a2b05396.js","assets/useGenInfoDiff-f63a5430.js","assets/MatchedImageGrid-53718263.css"])),"tag-search":xn(()=>mn(()=>import("./TagSearch-ff931640.js"),["assets/TagSearch-ff931640.js","assets/index-4be8cdd9.js","assets/index-41e4fe63.css","assets/index-154b94da.js","assets/index-d55a76b1.css","assets/searchHistory-07858f1f.js","assets/index-68461333.js","assets/index-806213af.css","assets/searchHistory-9e10234a.css","assets/isArrayLikeObject-70bd2074.js","assets/_isIterateeCall-bfd79848.js","assets/TagSearch-ccd65d46.css","assets/index-f4bbe4b8.css"])),"fuzzy-search":xn(()=>mn(()=>import("./SubstrSearch-e9faa41c.js"),["assets/SubstrSearch-e9faa41c.js","assets/index-4be8cdd9.js","assets/index-41e4fe63.css","assets/index-154b94da.js","assets/index-d55a76b1.css","assets/index-68461333.js","assets/index-806213af.css","assets/FileItem-2eb00024.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-bfd79848.js","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/index-9b184148.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-ba3817a4.js","assets/shortcut-0468cdd7.js","assets/Checkbox-59427a1c.js","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-a2b05396.js","assets/useGenInfoDiff-f63a5430.js","assets/searchHistory-07858f1f.js","assets/searchHistory-9e10234a.css","assets/SubstrSearch-efdcae1f.css","assets/index-f4bbe4b8.css"])),"topic-search":xn(()=>mn(()=>import("./TopicSearch-5af266be.js"),["assets/TopicSearch-5af266be.js","assets/index-154b94da.js","assets/index-d55a76b1.css","assets/index-4be8cdd9.js","assets/index-41e4fe63.css","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/TopicSearch-1bb1b5f9.css","assets/index-f4bbe4b8.css"])),"img-sli":xn(()=>mn(()=>import("./ImgSliPagePane-fc835be8.js"),["assets/ImgSliPagePane-fc835be8.js","assets/ImgSliPagePane-5f5e28b7.css"])),"batch-download":xn(()=>mn(()=>import("./batchDownload-9b3ac812.js"),["assets/batchDownload-9b3ac812.js","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/FileItem-2eb00024.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-bfd79848.js","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/index-9b184148.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/batchDownload-6b8c6bb5.css"])),"grid-view":xn(()=>mn(()=>import("./gridView-695639fd.js"),["assets/gridView-695639fd.js","assets/FileItem-2eb00024.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-bfd79848.js","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/index-9b184148.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/gridView-7100baf1.css"])),"workspace-snapshot":xn(()=>mn(()=>import("./index-b5ffbf1a.js"),["assets/index-b5ffbf1a.js","assets/index-7e587e4d.css","assets/index-f4bbe4b8.css"])),"random-image":xn(()=>mn(()=>import("./randomImage-fb03ed0b.js"),["assets/randomImage-fb03ed0b.js","assets/FileItem-2eb00024.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js","assets/index-cb6a3d31.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-bfd79848.js","assets/index-30b8f89a.js","assets/index-63826c0f.css","assets/index-9b184148.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-ba3817a4.js","assets/shortcut-0468cdd7.js","assets/Checkbox-59427a1c.js","assets/index-e620c28b.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/randomImage-a1c3d712.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:mr(),name:Te("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const h=e.createEmptyPane();e.tabList.push({panes:[h],key:h.key,id:mr()})}}};sd("closeTabPane",(o,s)=>r(o,s,"del"));const a=z();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Zo(()=>Uu.emit("returnToIIB"),100);return j9(async()=>{const o=window.parent;if(!await IW(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),pe(gW(),o=>o&&i()),(o,s)=>{const l=Bl,u=xo;return Oe(),Fe("div",{ref_key:"container",ref:a},[S(be(jx),{class:"default-theme"},{default:kt(()=>[(Oe(!0),Fe(Re,null,Na(be(e).tabList,(c,d)=>(Oe(),mt(be(fd),{key:c.id},{default:kt(()=>[S(aH,{tabIdx:d},{default:kt(()=>[S(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,h)=>r(d,v,h)},{default:kt(()=>[(Oe(!0),Fe(Re,null,Na(c.panes,(v,h)=>(Oe(),mt(l,{key:v.key,tab:v.name,class:"pane"},{default:kt(()=>[(Oe(),mt(WE(n[v.type]),jd({tabIdx:d,paneKey:v.key,paneIdx:h},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),S(sU)],512)}}});const uU=Ui(lU,[["__scopeId","data-v-4413a897"]]),cU=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],s=n.get("mode"),l={type:"local",path:a,key:mr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,Px(),MW(["action","path","mode"]);break}}};function d0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!br(t)}const Ux="app.conf.json",Io=z(),Kx=()=>ns.writeFile(Ux,JSON.stringify(De(Io.value),null,4)),fU=he({setup(){const t=async()=>{const e=await px({directory:!0});if(typeof e=="string"){if(!await ns.exists(`${e}/config.json`))return Jt.error(Te("tauriLaunchConfMessages.configNotFound"));if(!await ns.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Jt.error(Te("tauriLaunchConfMessages.folderNotFound"));Io.value.sdwebui_dir=e,Jt.info(Te("tauriLaunchConfMessages.configCompletedMessage")),await Kx(),await Hu("shutdown_api_server_command"),await Fa(1500),await fx()}};return()=>{let e,n;return S("div",{style:{padding:"32px 0"}},[S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.readSdWebuiConfigTitle")]),S("p",null,[Te("tauriLaunchConf.readSdWebuiConfigDescription")]),S(Xt,{onClick:t,type:"primary"},d0(e=Te("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.skipThisConfigTitle")]),S("p",null,[Te("tauriLaunchConf.skipThisConfigDescription")]),S(Xt,{type:"primary",onClick:xt.destroyAll},d0(n=Te("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),dU=async()=>{try{Io.value=JSON.parse(await ns.readTextFile(Ux))}catch{}Io.value||(Io.value={sdwebui_dir:""},await Kx(),xt.info({title:Te("tauriLaunchConfMessages.firstTimeUserTitle"),content:S(fU,null,null),width:"80vw",okText:Te("tauriLaunchConf.skipButton"),okButtonProps:{onClick:xt.destroyAll}}))},vU=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=qu();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=mr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:Px,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(h=>h.key===o));return()=>Uu.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},pU=he({__name:"App",setup(t){const e=Nn(),n=ZW(),r=Ix(),a=zx.filter(l=>!["tabListHistoryRecord","recent"].includes(l));let i=null;const o=Mb(async()=>{e.$subscribe(Zo(async()=>{var u;if(((u=e.conf)==null?void 0:u.is_readonly)===!0)return;const l={};a.forEach(c=>{l[c]=Zr(e[c])}),JSON.stringify(l)!==JSON.stringify(i)&&(console.log("save global setting",l),await kx("global",l),i=Zr(l))},500))}),s=Mb(async()=>{var u,c;await Fa(100);const l=e.defaultInitinalPage;if(l!=="empty")if(l==="last-workspace-state"){const d=(u=e.tabListHistoryRecord)==null?void 0:u[1];if(!(d!=null&&d.tabs))return;e.tabList=Zr(d.tabs),Jt.success(Te("restoreLastWorkspaceStateSuccess"))}else{const d=(c=l.split("_"))==null?void 0:c[2],v=n.snapshots.find(h=>h.id===d);if(!(v!=null&&v.tabs))return;e.tabList=Zr(v.tabs),Jt.success(Te("restoreWorkspaceSnapshotSuccess"))}});return sd("updateGlobalSetting",async()=>{var d,v;await R9(),console.log(Ul.value);const l=await LW();e.conf=l;const u=await Qb(l);e.quickMovePaths=u.filter(h=>{var f,p;return(p=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:p.call(f)});const c=(v=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:v.global;c&&(console.log("restoreFeGlobalSetting",c),i=Zr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),vU(e),cU(e)}),sd("returnToIIB",async()=>{const l=e.conf;if(!l)return;const u=l.global_setting;if(!u.outdir_txt2img_samples&&!u.outdir_img2img_samples)return;const c=new Set(e.quickMovePaths.map(v=>v.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Qb(l);e.quickMovePaths=d.filter(v=>{var h,f;return(f=(h=v==null?void 0:v.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),pe(()=>e.computedTheme==="dark",async l=>{await Fa();const u=document.getElementsByTagName("html")[0];if(l){document.body.classList.add("dark");const c=document.createElement("style"),{default:d}=await mn(()=>import("./antd.dark-35e9b327.js"),[]);c.innerHTML=d,c.setAttribute("antd-dark",""),u.appendChild(c)}else document.body.classList.remove("dark"),Array.from(u.querySelectorAll("style[antd-dark]")).forEach(c=>c.remove())},{immediate:!0}),pe(()=>e.previewBgOpacity,l=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${l})`)},{immediate:!0}),Ve(async()=>{xx&&dU(),Uu.emit("updateGlobalSetting")}),(l,u)=>{const c=wn;return Oe(),mt(c,{loading:!be(r).isIdle},{default:kt(()=>[S(uU)]),_:1},8,["loading"])}}});function hU(t){return typeof t=="object"&&t!==null}function v0(t,e){return t=hU(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function gU(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function mU(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function yU(t,e){return e.reduce((n,r)=>{const a=r.split(".");return mU(n,a,gU(t,a))},{})}function p0(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function h0(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?yU(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function bU(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>v0(o,t)):[v0(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{h0(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),p0(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),p0(a,o),l==null||l(e),a.$subscribe((u,c)=>{h0(c,o)},{detached:!0})})}}var wU=bU(),_U=Object.defineProperty,CU=Object.defineProperties,SU=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,xU=Object.prototype.hasOwnProperty,TU=Object.prototype.propertyIsEnumerable,m0=(t,e,n)=>e in t?_U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dd=(t,e)=>{for(var n in e||(e={}))xU.call(e,n)&&m0(t,n,e[n]);if(g0)for(var n of g0(e))TU.call(e,n)&&m0(t,n,e[n]);return t},EU=(t,e)=>CU(t,SU(e));function OU(t){return tu()?(wd(t),!0):!1}const Gx=typeof window<"u";function qx(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const PU=t=>t();function AU(t,e={}){let n,r;return i=>{const o=be(t),s=be(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function IU(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=be(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function mo(t,e=200,n=!0,r=!0){return qx(IU(e,n,r),t)}var y0=Object.getOwnPropertySymbols,MU=Object.prototype.hasOwnProperty,kU=Object.prototype.propertyIsEnumerable,NU=(t,e)=>{var n={};for(var r in t)MU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&y0)for(var r of y0(t))e.indexOf(r)<0&&kU.call(t,r)&&(n[r]=t[r]);return n};function RU(t,e,n={}){const r=n,{eventFilter:a=PU}=r,i=NU(r,["eventFilter"]);return pe(t,qx(a,e),i)}var $U=Object.defineProperty,DU=Object.defineProperties,LU=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,Yx=Object.prototype.hasOwnProperty,Jx=Object.prototype.propertyIsEnumerable,b0=(t,e,n)=>e in t?$U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FU=(t,e)=>{for(var n in e||(e={}))Yx.call(e,n)&&b0(t,n,e[n]);if(ql)for(var n of ql(e))Jx.call(e,n)&&b0(t,n,e[n]);return t},BU=(t,e)=>DU(t,LU(e)),zU=(t,e)=>{var n={};for(var r in t)Yx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ql)for(var r of ql(t))e.indexOf(r)<0&&Jx.call(t,r)&&(n[r]=t[r]);return n};function Xx(t,e,n={}){const r=n,{debounce:a=0}=r,i=zU(r,["debounce"]);return RU(t,e,BU(FU({},i),{eventFilter:AU(a)}))}function jU(t){var e;const n=be(t);return(e=n==null?void 0:n.$el)!=null?e:n}const WU=Gx?window:void 0,w0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_0="__vueuse_ssr_handlers__";w0[_0]=w0[_0]||{};var C0=Object.getOwnPropertySymbols,HU=Object.prototype.hasOwnProperty,VU=Object.prototype.propertyIsEnumerable,UU=(t,e)=>{var n={};for(var r in t)HU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&C0)for(var r of C0(t))e.indexOf(r)<0&&VU.call(t,r)&&(n[r]=t[r]);return n};function KU(t,e,n={}){const r=n,{window:a=WU}=r,i=UU(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=pe(()=>jU(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return OU(c),{isSupported:s,stop:c}}var S0,x0;Gx&&(window!=null&&window.navigator)&&((S0=window==null?void 0:window.navigator)!=null&&S0.platform)&&/iP(ad|hone|od)/.test((x0=window==null?void 0:window.navigator)==null?void 0:x0.platform);var Fp={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var h=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),h&&f.push(new e.Diff(a,h)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var h=this.diff_halfMatch_(i,o);if(h){var f=h[0],p=h[1],m=h[2],g=h[3],y=h[4],b=this.diff_main(f,m,s,l),w=this.diff_main(p,g,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,h=0,f="",p="";d=1&&h>=1){c.splice(d-v-h,v+h),d=d-v-h;for(var m=this.diff_main(f,p,!1,s),g=m.length-1;g>=0;g--)c.splice(d,0,m[g]);d+=m.length}h=0,v=0,f="",p="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,h=new Array(v),f=new Array(v),p=0;ps);C++){for(var E=-C+y;E<=C-b;E+=2){var I=d+E,T;E==-C||E!=C&&h[I-1]l)b+=2;else if(N>u)y+=2;else if(g){var R=d+m-E;if(R>=0&&R=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}for(var L=-C+w;L<=C-_;L+=2){var R=d+L,F;L==-C||L!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!g){var I=d+m-L;if(I>=0&&I=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),p=this.diff_main(v,h,!1,u);return f.concat(p)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",p=0,m=-1,g=s.length;m{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>Kb(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>Kb(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=us("VueDiff");return Oe(),mt(u,{class:"diff",mode:"split",theme:be(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const nU={key:0,class:"hint"},rU={class:"hint-inline"},aU=he({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=z(50),a=([{size:c}])=>{r.value=c},i=z(),{width:o}=_W(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=id(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([ld(ua(n.left)),ld(ua(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=id(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,h=v/d,f=document.body.clientWidth/document.body.clientHeight;return h>f?"width":"height"});return(c,d)=>(Oe(),Fe(Re,null,[$e("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[S(be(jx),{class:"default-theme",onResize:a},{default:Mt(()=>[c.left?(Oe(),mt(be(fd),{key:0},{default:Mt(()=>[S(c0,{side:"left","max-edge":be(u),"container-width":be(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):$t("",!0),c.right?(Oe(),mt(be(fd),{key:1},{default:Mt(()=>[S(c0,{"max-edge":be(u),percent:r.value,img:c.right,side:"right","container-width":be(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):$t("",!0)]),_:1})],512),c.container!=="drawer"?(Oe(),Fe("div",nU,[$e("div",rU,[S(be(lH)),_n(" "+St(c.$t("scrollDownToComparePrompt")),1)])])):$t("",!0),S(tU,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const iU={class:"actions"},oU=he({__name:"ImgSliDrawer",setup(t){const e=Wx(),n=z();return(r,a)=>{const i=Xt,o=sD,s=UF;return Oe(),Fe(Re,null,[S(s,{width:"100vw",visible:be(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>be(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:Mt(()=>[$e("div",iU,[S(i,{onClick:a[0]||(a[0]=l=>be(e).drawerVisible=!1)},{default:Mt(()=>[_n(St(r.$t("close")),1)]),_:1}),S(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Mt(()=>[_n(St(r.$t("fullscreenview")),1)]),_:1}),S(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Mt(()=>[be(e).left&&be(e).right?(Oe(),mt(aU,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:be(e).left,right:be(e).right},null,8,["left","right"])):$t("",!0)]),_:1},8,["visible"]),S(ZH),S(jV)],64)}}});const sU=Ui(oU,[["__scopeId","data-v-65e6ee07"]]),lU=he({__name:"SplitViewTab",setup(t){const e=Nn(),n={local:xn(()=>mn(()=>import("./stackView-2bd6cdf7.js"),["assets/stackView-2bd6cdf7.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/numInput-a524d3bc.js","assets/index-b9ffc995.js","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-55a21cf1.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-cc53e03a.js","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-74181f4c.js","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/MultiSelectKeep-fb8adaea.css","assets/useGenInfoDiff-13d2ea38.js","assets/stackView-b7949086.css","assets/index-f4bbe4b8.css"])),empty:xn(()=>mn(()=>import("./emptyStartup-94fd8d18.js"),["assets/emptyStartup-94fd8d18.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/Checkbox-951f37ba.js","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/emptyStartup-b38a59ac.css","assets/index-9fed83c2.css"])),"global-setting":xn(()=>mn(()=>import("./globalSetting-c284fbc0.js"),["assets/globalSetting-c284fbc0.js","assets/numInput-a524d3bc.js","assets/index-b9ffc995.js","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-806213af.css","assets/isArrayLikeObject-55a21cf1.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/numInput-3c84dd7b.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/globalSetting-8612eccd.css","assets/index-f4bbe4b8.css"])),"tag-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-e6c6fa7f.js"),["assets/MatchedImageGrid-e6c6fa7f.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-74181f4c.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/MultiSelectKeep-fb8adaea.css","assets/hook-4ff6f457.js","assets/useGenInfoDiff-13d2ea38.js","assets/MatchedImageGrid-19d3b31e.css"])),"topic-search-matched-image-grid":xn(()=>mn(()=>import("./MatchedImageGrid-23b35dd9.js"),["assets/MatchedImageGrid-23b35dd9.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-74181f4c.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-4ff6f457.js","assets/useGenInfoDiff-13d2ea38.js","assets/MatchedImageGrid-53718263.css"])),"tag-search":xn(()=>mn(()=>import("./TagSearch-3cb5874b.js"),["assets/TagSearch-3cb5874b.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/searchHistory-c9de01d4.js","assets/index-b9ffc995.js","assets/index-806213af.css","assets/searchHistory-9e10234a.css","assets/isArrayLikeObject-55a21cf1.js","assets/_isIterateeCall-7008db8e.js","assets/TagSearch-ccd65d46.css","assets/index-f4bbe4b8.css"])),"fuzzy-search":xn(()=>mn(()=>import("./SubstrSearch-549f6935.js"),["assets/SubstrSearch-549f6935.js","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-b9ffc995.js","assets/index-806213af.css","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-74181f4c.js","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/hook-4ff6f457.js","assets/useGenInfoDiff-13d2ea38.js","assets/searchHistory-c9de01d4.js","assets/searchHistory-9e10234a.css","assets/SubstrSearch-efdcae1f.css","assets/index-f4bbe4b8.css"])),"topic-search":xn(()=>mn(()=>import("./TopicSearch-4fe24c7f.js"),["assets/TopicSearch-4fe24c7f.js","assets/index-859cb083.js","assets/index-d55a76b1.css","assets/index-af89284c.js","assets/index-41e4fe63.css","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/TopicSearch-e239a03c.css","assets/index-f4bbe4b8.css"])),"img-sli":xn(()=>mn(()=>import("./ImgSliPagePane-5dc424f1.js"),["assets/ImgSliPagePane-5dc424f1.js","assets/ImgSliPagePane-5f5e28b7.css"])),"batch-download":xn(()=>mn(()=>import("./batchDownload-0bd1b629.js"),["assets/batchDownload-0bd1b629.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/batchDownload-6b8c6bb5.css"])),"grid-view":xn(()=>mn(()=>import("./gridView-f8ee15ac.js"),["assets/gridView-f8ee15ac.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/gridView-7100baf1.css"])),"workspace-snapshot":xn(()=>mn(()=>import("./index-17a1bd90.js"),["assets/index-17a1bd90.js","assets/index-7e587e4d.css","assets/index-f4bbe4b8.css"])),"random-image":xn(()=>mn(()=>import("./randomImage-12e0ef07.js"),["assets/randomImage-12e0ef07.js","assets/FileItem-cc53e03a.js","assets/numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js","assets/index-6a8edab1.js","assets/index-017a4092.css","assets/numInput-ca4fe815.css","assets/index-9fed83c2.css","assets/_isIterateeCall-7008db8e.js","assets/index-6d8e3499.js","assets/index-63826c0f.css","assets/index-e9cc5bd5.js","assets/index-80432a0c.css","assets/FileItem-6eff082d.css","assets/MultiSelectKeep-74181f4c.js","assets/shortcut-eca2d427.js","assets/Checkbox-951f37ba.js","assets/index-728b29ca.js","assets/index-1cc34316.css","assets/MultiSelectKeep-fb8adaea.css","assets/randomImage-a1c3d712.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:mr(),name:Te("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(h=>h.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const h=e.createEmptyPane();e.tabList.push({panes:[h],key:h.key,id:mr()})}}};sd("closeTabPane",(o,s)=>r(o,s,"del"));const a=z();pe(()=>e.tabList,async()=>{var o;await Ke(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Zo(()=>Uu.emit("returnToIIB"),100);return j9(async()=>{const o=window.parent;if(!await IW(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),pe(gW(),o=>o&&i()),(o,s)=>{const l=Bl,u=xo;return Oe(),Fe("div",{ref_key:"container",ref:a},[S(be(jx),{class:"default-theme"},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(be(e).tabList,(c,d)=>(Oe(),mt(be(fd),{key:c.id},{default:Mt(()=>[S(aH,{tabIdx:d},{default:Mt(()=>[S(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,h)=>r(d,v,h)},{default:Mt(()=>[(Oe(!0),Fe(Re,null,Na(c.panes,(v,h)=>(Oe(),mt(l,{key:v.key,tab:v.name,class:"pane"},{default:Mt(()=>[(Oe(),mt(WE(n[v.type]),jd({tabIdx:d,paneKey:v.key,paneIdx:h},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),S(sU)],512)}}});const uU=Ui(lU,[["__scopeId","data-v-4413a897"]]),cU=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],s=n.get("mode"),l={type:"local",path:a,key:mr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,Px(),kW(["action","path","mode"]);break}}};function d0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!br(t)}const Ux="app.conf.json",Io=z(),Kx=()=>ns.writeFile(Ux,JSON.stringify(De(Io.value),null,4)),fU=he({setup(){const t=async()=>{const e=await px({directory:!0});if(typeof e=="string"){if(!await ns.exists(`${e}/config.json`))return Jt.error(Te("tauriLaunchConfMessages.configNotFound"));if(!await ns.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Jt.error(Te("tauriLaunchConfMessages.folderNotFound"));Io.value.sdwebui_dir=e,Jt.info(Te("tauriLaunchConfMessages.configCompletedMessage")),await Kx(),await Hu("shutdown_api_server_command"),await Fa(1500),await fx()}};return()=>{let e,n;return S("div",{style:{padding:"32px 0"}},[S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.readSdWebuiConfigTitle")]),S("p",null,[Te("tauriLaunchConf.readSdWebuiConfigDescription")]),S(Xt,{onClick:t,type:"primary"},d0(e=Te("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),S("div",{style:{padding:"16px 0"}},[S("h2",null,[Te("tauriLaunchConf.skipThisConfigTitle")]),S("p",null,[Te("tauriLaunchConf.skipThisConfigDescription")]),S(Xt,{type:"primary",onClick:xt.destroyAll},d0(n=Te("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),dU=async()=>{try{Io.value=JSON.parse(await ns.readTextFile(Ux))}catch{}Io.value||(Io.value={sdwebui_dir:""},await Kx(),xt.info({title:Te("tauriLaunchConfMessages.firstTimeUserTitle"),content:S(fU,null,null),width:"80vw",okText:Te("tauriLaunchConf.skipButton"),okButtonProps:{onClick:xt.destroyAll}}))},vU=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=qu();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=mr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:Px,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(h=>h.key===o));return()=>Uu.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},pU=he({__name:"App",setup(t){const e=Nn(),n=ZW(),r=Ix(),a=zx.filter(l=>!["tabListHistoryRecord","recent"].includes(l));let i=null;const o=kb(async()=>{e.$subscribe(Zo(async()=>{var u;if(((u=e.conf)==null?void 0:u.is_readonly)===!0)return;const l={};a.forEach(c=>{l[c]=Zr(e[c])}),JSON.stringify(l)!==JSON.stringify(i)&&(console.log("save global setting",l),await Mx("global",l),i=Zr(l))},500))}),s=kb(async()=>{var u,c;await Fa(100);const l=e.defaultInitinalPage;if(l!=="empty")if(l==="last-workspace-state"){const d=(u=e.tabListHistoryRecord)==null?void 0:u[1];if(!(d!=null&&d.tabs))return;e.tabList=Zr(d.tabs),Jt.success(Te("restoreLastWorkspaceStateSuccess"))}else{const d=(c=l.split("_"))==null?void 0:c[2],v=n.snapshots.find(h=>h.id===d);if(!(v!=null&&v.tabs))return;e.tabList=Zr(v.tabs),Jt.success(Te("restoreWorkspaceSnapshotSuccess"))}});return sd("updateGlobalSetting",async()=>{var d,v;await R9(),console.log(Ul.value);const l=await LW();e.conf=l;const u=await Qb(l);e.quickMovePaths=u.filter(h=>{var f,p;return(p=(f=h==null?void 0:h.dir)==null?void 0:f.trim)==null?void 0:p.call(f)});const c=(v=(d=e==null?void 0:e.conf)==null?void 0:d.app_fe_setting)==null?void 0:v.global;c&&(console.log("restoreFeGlobalSetting",c),i=Zr(c),a.forEach(h=>{const f=c[h];f!==void 0&&(e[h]=f)})),o(),s(),vU(e),cU(e)}),sd("returnToIIB",async()=>{const l=e.conf;if(!l)return;const u=l.global_setting;if(!u.outdir_txt2img_samples&&!u.outdir_img2img_samples)return;const c=new Set(e.quickMovePaths.map(v=>v.key));if(c.has("outdir_txt2img_samples")&&c.has("outdir_img2img_samples"))return;const d=await Qb(l);e.quickMovePaths=d.filter(v=>{var h,f;return(f=(h=v==null?void 0:v.dir)==null?void 0:h.trim)==null?void 0:f.call(h)})}),pe(()=>e.computedTheme==="dark",async l=>{await Fa();const u=document.getElementsByTagName("html")[0];if(l){document.body.classList.add("dark");const c=document.createElement("style"),{default:d}=await mn(()=>import("./antd.dark-35e9b327.js"),[]);c.innerHTML=d,c.setAttribute("antd-dark",""),u.appendChild(c)}else document.body.classList.remove("dark"),Array.from(u.querySelectorAll("style[antd-dark]")).forEach(c=>c.remove())},{immediate:!0}),pe(()=>e.previewBgOpacity,l=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${l})`)},{immediate:!0}),Ve(async()=>{xx&&dU(),Uu.emit("updateGlobalSetting")}),(l,u)=>{const c=wn;return Oe(),mt(c,{loading:!be(r).isIdle},{default:Mt(()=>[S(uU)]),_:1},8,["loading"])}}});function hU(t){return typeof t=="object"&&t!==null}function v0(t,e){return t=hU(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function gU(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function mU(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function yU(t,e){return e.reduce((n,r)=>{const a=r.split(".");return mU(n,a,gU(t,a))},{})}function p0(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function h0(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?yU(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function bU(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>v0(o,t)):[v0(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var h;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((h=t.key)!=null?h:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{h0(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),p0(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),p0(a,o),l==null||l(e),a.$subscribe((u,c)=>{h0(c,o)},{detached:!0})})}}var wU=bU(),_U=Object.defineProperty,CU=Object.defineProperties,SU=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,xU=Object.prototype.hasOwnProperty,TU=Object.prototype.propertyIsEnumerable,m0=(t,e,n)=>e in t?_U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dd=(t,e)=>{for(var n in e||(e={}))xU.call(e,n)&&m0(t,n,e[n]);if(g0)for(var n of g0(e))TU.call(e,n)&&m0(t,n,e[n]);return t},EU=(t,e)=>CU(t,SU(e));function OU(t){return tu()?(wd(t),!0):!1}const Gx=typeof window<"u";function qx(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const PU=t=>t();function AU(t,e={}){let n,r;return i=>{const o=be(t),s=be(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function IU(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=be(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function mo(t,e=200,n=!0,r=!0){return qx(IU(e,n,r),t)}var y0=Object.getOwnPropertySymbols,kU=Object.prototype.hasOwnProperty,MU=Object.prototype.propertyIsEnumerable,NU=(t,e)=>{var n={};for(var r in t)kU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&y0)for(var r of y0(t))e.indexOf(r)<0&&MU.call(t,r)&&(n[r]=t[r]);return n};function RU(t,e,n={}){const r=n,{eventFilter:a=PU}=r,i=NU(r,["eventFilter"]);return pe(t,qx(a,e),i)}var $U=Object.defineProperty,DU=Object.defineProperties,LU=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,Yx=Object.prototype.hasOwnProperty,Jx=Object.prototype.propertyIsEnumerable,b0=(t,e,n)=>e in t?$U(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FU=(t,e)=>{for(var n in e||(e={}))Yx.call(e,n)&&b0(t,n,e[n]);if(ql)for(var n of ql(e))Jx.call(e,n)&&b0(t,n,e[n]);return t},BU=(t,e)=>DU(t,LU(e)),zU=(t,e)=>{var n={};for(var r in t)Yx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ql)for(var r of ql(t))e.indexOf(r)<0&&Jx.call(t,r)&&(n[r]=t[r]);return n};function Xx(t,e,n={}){const r=n,{debounce:a=0}=r,i=zU(r,["debounce"]);return RU(t,e,BU(FU({},i),{eventFilter:AU(a)}))}function jU(t){var e;const n=be(t);return(e=n==null?void 0:n.$el)!=null?e:n}const WU=Gx?window:void 0,w0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_0="__vueuse_ssr_handlers__";w0[_0]=w0[_0]||{};var C0=Object.getOwnPropertySymbols,HU=Object.prototype.hasOwnProperty,VU=Object.prototype.propertyIsEnumerable,UU=(t,e)=>{var n={};for(var r in t)HU.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&C0)for(var r of C0(t))e.indexOf(r)<0&&VU.call(t,r)&&(n[r]=t[r]);return n};function KU(t,e,n={}){const r=n,{window:a=WU}=r,i=UU(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=pe(()=>jU(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return OU(c),{isSupported:s,stop:c}}var S0,x0;Gx&&(window!=null&&window.navigator)&&((S0=window==null?void 0:window.navigator)!=null&&S0.platform)&&/iP(ad|hone|od)/.test((x0=window==null?void 0:window.navigator)==null?void 0:x0.platform);var Fp={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var h=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),h&&f.push(new e.Diff(a,h)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var h=this.diff_halfMatch_(i,o);if(h){var f=h[0],p=h[1],m=h[2],g=h[3],y=h[4],b=this.diff_main(f,m,s,l),w=this.diff_main(p,g,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,h=0,f="",p="";d=1&&h>=1){c.splice(d-v-h,v+h),d=d-v-h;for(var m=this.diff_main(f,p,!1,s),g=m.length-1;g>=0;g--)c.splice(d,0,m[g]);d+=m.length}h=0,v=0,f="",p="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,h=new Array(v),f=new Array(v),p=0;ps);C++){for(var E=-C+y;E<=C-b;E+=2){var I=d+E,T;E==-C||E!=C&&h[I-1]l)b+=2;else if(N>u)y+=2;else if(g){var R=d+m-E;if(R>=0&&R=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}for(var L=-C+w;L<=C-_;L+=2){var R=d+L,F;L==-C||L!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!g){var I=d+m-L;if(I>=0&&I=F)return this.diff_bisectSplit_(i,o,T,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),h=o.substring(l),f=this.diff_main(c,d,!1,u),p=this.diff_main(v,h,!1,u);return f.concat(p)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(h){for(var f="",p=0,m=-1,g=s.length;ml?i=i.substring(s-l):so.length?i:o,l=i.length>o.length?o:i;if(s.length<4||2*l.length=b.length?[T,N,R,F,I]:null}var d=c(s,l,Math.ceil(s.length/4)),v=c(s,l,Math.ceil(s.length/2)),h;if(!d&&!v)return null;v?d?h=d[4].length>v[4].length?d:v:h=v:h=d;var f,p,m,g;i.length>o.length?(f=h[0],p=h[1],m=h[2],g=h[3]):(m=h[0],g=h[1],f=h[2],p=h[3]);var y=h[4];return[f,p,m,g,y]},e.prototype.diff_cleanupSemantic=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=0,v=0,h=0,f=0;c0?s[l-1]:-1,d=0,v=0,h=0,f=0,u=null,o=!0)),c++;for(o&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),c=1;c=y?(g>=p.length/2||g>=m.length/2)&&(i.splice(c,0,new e.Diff(a,m.substring(0,g))),i[c-1][1]=p.substring(0,p.length-g),i[c+1][1]=m.substring(g),c++):(y>=p.length/2||y>=m.length/2)&&(i.splice(c,0,new e.Diff(a,p.substring(0,y))),i[c-1][0]=r,i[c-1][1]=m.substring(0,m.length-y),i[c+1][0]=n,i[c+1][1]=p.substring(y),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(i){function o(y,b){if(!y||!b)return 6;var w=y.charAt(y.length-1),_=b.charAt(0),C=w.match(e.nonAlphaNumericRegex_),E=_.match(e.nonAlphaNumericRegex_),I=C&&w.match(e.whitespaceRegex_),T=E&&_.match(e.whitespaceRegex_),N=I&&w.match(e.linebreakRegex_),R=T&&_.match(e.linebreakRegex_),F=N&&y.match(e.blanklineEndRegex_),L=R&&b.match(e.blanklineStartRegex_);return F||L?5:N||R?4:C&&!I&&T?3:I||T?2:C||E?1:0}for(var s=1;s=m&&(m=g,h=l,f=u,p=c)}i[s-1][1]!=h&&(h?i[s-1][1]=h:(i.splice(s-1,1),s--),i[s][1]=f,p?i[s+1][1]=p:(i.splice(s+1,1),s--))}s++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=!1,v=!1,h=!1,f=!1;c0?s[l-1]:-1,h=f=!1),o=!0)),c++;o&&this.diff_cleanupMerge(i)},e.prototype.diff_cleanupMerge=function(i){i.push(new e.Diff(a,""));for(var o=0,s=0,l=0,u="",c="",d;o1?(s!==0&&l!==0&&(d=this.diff_commonPrefix(c,u),d!==0&&(o-s-l>0&&i[o-s-l-1][0]==a?i[o-s-l-1][1]+=c.substring(0,d):(i.splice(0,0,new e.Diff(a,c.substring(0,d))),o++),c=c.substring(d),u=u.substring(d)),d=this.diff_commonSuffix(c,u),d!==0&&(i[o][1]=c.substring(c.length-d)+i[o][1],c=c.substring(0,c.length-d),u=u.substring(0,u.length-d))),o-=s+l,i.splice(o,s+l),u.length&&(i.splice(o,0,new e.Diff(n,u)),o++),c.length&&(i.splice(o,0,new e.Diff(r,c)),o++),o++):o!==0&&i[o-1][0]==a?(i[o-1][1]+=i[o][1],i.splice(o,1)):o++,l=0,s=0,u="",c="";break}i[i.length-1][1]===""&&i.pop();var v=!1;for(o=1;oo));d++)u=s,c=l;return i.length!=d&&i[d][0]===n?c:c+(o-u)},e.prototype.diff_prettyHtml=function(i){for(var o=[],s=/&/g,l=//g,c=/\n/g,d=0;d");switch(v){case r:o[d]=''+f+"";break;case n:o[d]=''+f+"";break;case a:o[d]=""+f+"";break}}return o.join("")},e.prototype.diff_text1=function(i){for(var o=[],s=0;sthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var l=this.match_alphabet_(o),u=this;function c(T,N){var R=T/o.length,F=Math.abs(s-N);return u.Match_Distance?R+F/u.Match_Distance:F?1:R}var d=this.Match_Threshold,v=i.indexOf(o,s);v!=-1&&(d=Math.min(c(0,v),d),v=i.lastIndexOf(o,s+o.length),v!=-1&&(d=Math.min(c(0,v),d)));var h=1<=b;C--){var E=l[i.charAt(C-1)];if(y===0?_[C]=(_[C+1]<<1|1)&E:_[C]=(_[C+1]<<1|1)&E|((g[C+1]|g[C])<<1|1)|g[C+1],_[C]&h){var I=c(y,C-1);if(I<=d)if(d=I,v=C-1,v>s)b=Math.max(1,2*s-v);else break}}if(c(y+1,s)>d)break;g=_}return v},e.prototype.match_alphabet_=function(i){for(var o={},s=0;s"u")l=i,u=this.diff_main(l,o,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(i&&typeof i=="object"&&typeof o>"u"&&typeof s>"u")u=i,l=this.diff_text1(u);else if(typeof i=="string"&&o&&typeof o=="object"&&typeof s>"u")l=i,u=o;else if(typeof i=="string"&&typeof o=="string"&&s&&typeof s=="object")l=i,u=s;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new e.patch_obj,v=0,h=0,f=0,p=l,m=l,g=0;g=2*this.Patch_Margin&&v&&(this.patch_addContext_(d,p),c.push(d),d=new e.patch_obj,v=0,p=m,h=f);break}y!==r&&(h+=b.length),y!==n&&(f+=b.length)}return v&&(this.patch_addContext_(d,p),c.push(d)),c},e.prototype.patch_deepCopy=function(i){for(var o=[],s=0;sthis.Match_MaxBits?(h=this.match_main(o,v.substring(0,this.Match_MaxBits),d),h!=-1&&(f=this.match_main(o,v.substring(v.length-this.Match_MaxBits),d+v.length-this.Match_MaxBits),(f==-1||h>=f)&&(h=-1))):h=this.match_main(o,v,d),h==-1)u[c]=!1,l-=i[c].length2-i[c].length1;else{u[c]=!0,l=h-d;var p;if(f==-1?p=o.substring(h,h+v.length):p=o.substring(h,f+this.Match_MaxBits),v==p)o=o.substring(0,h)+this.diff_text2(i[c].diffs)+o.substring(h+v.length);else{var m=this.diff_main(v,p,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(m)/v.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var g=0,y,b=0;bc[0][1].length){var d=o-c[0][1].length;c[0][1]=s.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=i[i.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=a)c.push(new e.Diff(a,s)),u.length1+=o,u.length2+=o;else if(o>c[c.length-1][1].length){var d=o-c[c.length-1][1].length;c[c.length-1][1]+=s.substring(0,d),u.length1+=d,u.length2+=d}return s},e.prototype.patch_splitMax=function(i){for(var o=this.Match_MaxBits,s=0;s2*o?(v.length1+=p.length,u+=p.length,h=!1,v.diffs.push(new e.Diff(f,p)),l.diffs.shift()):(p=p.substring(0,o-v.length1-this.Patch_Margin),v.length1+=p.length,u+=p.length,f===a?(v.length2+=p.length,c+=p.length):h=!1,v.diffs.push(new e.Diff(f,p)),p==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(p.length))}d=this.diff_text2(v.diffs),d=d.substring(d.length-this.Patch_Margin);var m=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);m!==""&&(v.length1+=m.length,v.length2+=m.length,v.diffs.length!==0&&v.diffs[v.diffs.length-1][0]===a?v.diffs[v.diffs.length-1][1]+=m:v.diffs.push(new e.Diff(a,m))),h||i.splice(++s,0,v)}}},e.prototype.patch_toText=function(i){for(var o=[],s=0;s/g,">").replace(/"/g,""").replace(/'/g,"'")}function na(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const a in r)n[a]=r[a]}),n}const qU="",E0=t=>!!t.kind,YU=(t,{prefix:e})=>{if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,a)=>`${r}${"_".repeat(a+1)}`)].join(" ")}return`${e}${t}`};class JU{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Zx(e)}openNode(e){if(!E0(e))return;let n=e.kind;e.sublanguage?n=`language-${n}`:n=YU(n,{prefix:this.classPrefix}),this.span(n)}closeNode(e){E0(e)&&(this.buffer+=qU)}value(){return this.buffer}span(e){this.buffer+=``}}class jp{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{jp._collapse(n)}))}}class XU extends jp{constructor(e){super(),this.options=e}addKeyword(e,n){e!==""&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){e!==""&&this.add(e)}addSublanguage(e,n){const r=e.root;r.kind=n,r.sublanguage=!0,this.add(r)}toHTML(){return new JU(this,this.options).value()}finalize(){return!0}}function rs(t){return t?typeof t=="string"?t:t.source:null}function Qx(t){return qa("(?=",t,")")}function ZU(t){return qa("(?:",t,")*")}function QU(t){return qa("(?:",t,")?")}function qa(...t){return t.map(n=>rs(n)).join("")}function eK(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Wp(...t){return"("+(eK(t).capture?"":"?:")+t.map(r=>rs(r)).join("|")+")"}function eT(t){return new RegExp(t.toString()+"|").exec("").length-1}function tK(t,e){const n=t&&t.exec(e);return n&&n.index===0}const nK=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Hp(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const a=n;let i=rs(r),o="";for(;i.length>0;){const s=nK.exec(i);if(!s){o+=i;break}o+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+a):(o+=s[0],s[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(e)}const rK=/\b\B/,tT="[a-zA-Z]\\w*",Vp="[a-zA-Z_]\\w*",nT="\\b\\d+(\\.\\d+)?",rT="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",aT="\\b(0b[01]+)",aK="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",iK=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=qa(e,/.*\b/,t.binary,/\b.*/)),na({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},as={begin:"\\\\[\\s\\S]",relevance:0},oK={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[as]},sK={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[as]},lK={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Yu=function(t,e,n={}){const r=na({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=Wp("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:qa(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},uK=Yu("//","$"),cK=Yu("/\\*","\\*/"),fK=Yu("#","$"),dK={scope:"number",begin:nT,relevance:0},vK={scope:"number",begin:rT,relevance:0},pK={scope:"number",begin:aT,relevance:0},hK={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[as,{begin:/\[/,end:/\]/,relevance:0,contains:[as]}]}]},gK={scope:"title",begin:tT,relevance:0},mK={scope:"title",begin:Vp,relevance:0},yK={begin:"\\.\\s*"+Vp,relevance:0},bK=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Zs=Object.freeze({__proto__:null,MATCH_NOTHING_RE:rK,IDENT_RE:tT,UNDERSCORE_IDENT_RE:Vp,NUMBER_RE:nT,C_NUMBER_RE:rT,BINARY_NUMBER_RE:aT,RE_STARTERS_RE:aK,SHEBANG:iK,BACKSLASH_ESCAPE:as,APOS_STRING_MODE:oK,QUOTE_STRING_MODE:sK,PHRASAL_WORDS_MODE:lK,COMMENT:Yu,C_LINE_COMMENT_MODE:uK,C_BLOCK_COMMENT_MODE:cK,HASH_COMMENT_MODE:fK,NUMBER_MODE:dK,C_NUMBER_MODE:vK,BINARY_NUMBER_MODE:pK,REGEXP_MODE:hK,TITLE_MODE:gK,UNDERSCORE_TITLE_MODE:mK,METHOD_GUARD:yK,END_SAME_AS_BEGIN:bK});function wK(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function _K(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function CK(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=wK,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function SK(t,e){Array.isArray(t.illegal)&&(t.illegal=Wp(...t.illegal))}function xK(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function TK(t,e){t.relevance===void 0&&(t.relevance=1)}const EK=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=qa(n.beforeMatch,Qx(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},OK=["of","and","for","in","not","or","if","then","parent","list","value"],PK="keyword";function iT(t,e,n=PK){const r=Object.create(null);return typeof t=="string"?a(n,t.split(" ")):Array.isArray(t)?a(n,t):Object.keys(t).forEach(function(i){Object.assign(r,iT(t[i],e,i))}),r;function a(i,o){e&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){const l=s.split("|");r[l[0]]=[i,AK(l[0],l[1])]})}}function AK(t,e){return e?Number(e):IK(t)?0:1}function IK(t){return OK.includes(t.toLowerCase())}const O0={},P0=t=>{},MK=(t,...e)=>{},ai=(t,e)=>{O0[`${t}/${e}`]||(O0[`${t}/${e}`]=!0)},Yl=new Error;function oT(t,e,{key:n}){let r=0;const a=t[n],i={},o={};for(let s=1;s<=e.length;s++)o[s+r]=a[s],i[s+r]=!0,r+=eT(e[s-1]);t[n]=o,t[n]._emit=i,t[n]._multi=!0}function kK(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin||typeof t.beginScope!="object"||t.beginScope===null)throw Yl;oT(t,t.begin,{key:"beginScope"}),t.begin=Hp(t.begin,{joinWith:""})}}function NK(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd||typeof t.endScope!="object"||t.endScope===null)throw Yl;oT(t,t.end,{key:"endScope"}),t.end=Hp(t.end,{joinWith:""})}}function RK(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function $K(t){RK(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),kK(t),NK(t)}function DK(t){function e(o,s){return new RegExp(rs(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=eT(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=e(Hp(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const u=l.findIndex((d,v)=>v>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function a(o){const s=new r;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function i(o,s){const l=o;if(o.isCompiled)return l;[_K,xK,$K,EK].forEach(c=>c(o,s)),t.compilerExtensions.forEach(c=>c(o,s)),o.__beforeBegin=null,[CK,SK,TK].forEach(c=>c(o,s)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=iT(o.keywords,t.case_insensitive)),l.keywordPatternRe=e(u,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=rs(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return LK(c==="self"?o:c)})),o.contains.forEach(function(c){i(c,l)}),o.starts&&i(o.starts,s),l.matcher=a(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=na(t.classNameAliases||{}),i(t)}function sT(t){return t?t.endsWithParent||sT(t.starts):!1}function LK(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return na(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:sT(t)?na(t,{starts:t.starts?na(t.starts):null}):Object.isFrozen(t)?na(t):t}var FK="11.5.1";class BK extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Hc=Zx,A0=na,I0=Symbol("nomatch"),zK=7,jK=function(t){const e=Object.create(null),n=Object.create(null),r=[];let a=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:XU};function l(P){return s.noHighlightRe.test(P)}function u(P){let O=P.className+" ";O+=P.parentNode?P.parentNode.className:"";const M=s.languageDetectRe.exec(O);if(M){const $=T(M[1]);return $||MK(i.replace("{}",M[1])),$?M[1]:"no-highlight"}return O.split(/\s+/).find($=>l($)||T($))}function c(P,O,M){let $="",G="";typeof O=="object"?($=P,M=O.ignoreIllegals,G=O.language):(ai("10.7.0","highlight(lang, code, ...args) has been deprecated."),ai("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),G=P,$=O),M===void 0&&(M=!0);const J={code:$,language:G};j("before:highlight",J);const Z=J.result?J.result:d(J.language,J.code,M);return Z.code=J.code,j("after:highlight",Z),Z}function d(P,O,M,$){const G=Object.create(null);function J(ae,fe){return ae.keywords[fe]}function Z(){if(!U.keywords){ie.addText(re);return}let ae=0;U.keywordPatternRe.lastIndex=0;let fe=U.keywordPatternRe.exec(re),we="";for(;fe;){we+=re.substring(ae,fe.index);const xe=A.case_insensitive?fe[0].toLowerCase():fe[0],Pe=J(U,xe);if(Pe){const[oe,ve]=Pe;if(ie.addText(we),we="",G[xe]=(G[xe]||0)+1,G[xe]<=zK&&(Q+=ve),oe.startsWith("_"))we+=fe[0];else{const Xe=A.classNameAliases[oe]||oe;ie.addKeyword(fe[0],Xe)}}else we+=fe[0];ae=U.keywordPatternRe.lastIndex,fe=U.keywordPatternRe.exec(re)}we+=re.substr(ae),ie.addText(we)}function X(){if(re==="")return;let ae=null;if(typeof U.subLanguage=="string"){if(!e[U.subLanguage]){ie.addText(re);return}ae=d(U.subLanguage,re,!0,se[U.subLanguage]),se[U.subLanguage]=ae._top}else ae=h(re,U.subLanguage.length?U.subLanguage:null);U.relevance>0&&(Q+=ae.relevance),ie.addSublanguage(ae._emitter,ae.language)}function Y(){U.subLanguage!=null?X():Z(),re=""}function ne(ae,fe){let we=1;const xe=fe.length-1;for(;we<=xe;){if(!ae._emit[we]){we++;continue}const Pe=A.classNameAliases[ae[we]]||ae[we],oe=fe[we];Pe?ie.addKeyword(oe,Pe):(re=oe,Z(),re=""),we++}}function le(ae,fe){return ae.scope&&typeof ae.scope=="string"&&ie.openNode(A.classNameAliases[ae.scope]||ae.scope),ae.beginScope&&(ae.beginScope._wrap?(ie.addKeyword(re,A.classNameAliases[ae.beginScope._wrap]||ae.beginScope._wrap),re=""):ae.beginScope._multi&&(ne(ae.beginScope,fe),re="")),U=Object.create(ae,{parent:{value:U}}),U}function ge(ae,fe,we){let xe=tK(ae.endRe,we);if(xe){if(ae["on:end"]){const Pe=new T0(ae);ae["on:end"](fe,Pe),Pe.isMatchIgnored&&(xe=!1)}if(xe){for(;ae.endsParent&&ae.parent;)ae=ae.parent;return ae}}if(ae.endsWithParent)return ge(ae.parent,fe,we)}function _e(ae){return U.matcher.regexIndex===0?(re+=ae[0],1):(ue=!0,0)}function me(ae){const fe=ae[0],we=ae.rule,xe=new T0(we),Pe=[we.__beforeBegin,we["on:begin"]];for(const oe of Pe)if(oe&&(oe(ae,xe),xe.isMatchIgnored))return _e(fe);return we.skip?re+=fe:(we.excludeBegin&&(re+=fe),Y(),!we.returnBegin&&!we.excludeBegin&&(re=fe)),le(we,ae),we.returnBegin?0:fe.length}function ye(ae){const fe=ae[0],we=O.substr(ae.index),xe=ge(U,ae,we);if(!xe)return I0;const Pe=U;U.endScope&&U.endScope._wrap?(Y(),ie.addKeyword(fe,U.endScope._wrap)):U.endScope&&U.endScope._multi?(Y(),ne(U.endScope,ae)):Pe.skip?re+=fe:(Pe.returnEnd||Pe.excludeEnd||(re+=fe),Y(),Pe.excludeEnd&&(re=fe));do U.scope&&ie.closeNode(),!U.skip&&!U.subLanguage&&(Q+=U.relevance),U=U.parent;while(U!==xe.parent);return xe.starts&&le(xe.starts,ae),Pe.returnEnd?0:fe.length}function Se(){const ae=[];for(let fe=U;fe!==A;fe=fe.parent)fe.scope&&ae.unshift(fe.scope);ae.forEach(fe=>ie.openNode(fe))}let B={};function x(ae,fe){const we=fe&&fe[0];if(re+=ae,we==null)return Y(),0;if(B.type==="begin"&&fe.type==="end"&&B.index===fe.index&&we===""){if(re+=O.slice(fe.index,fe.index+1),!a){const xe=new Error(`0 width match regex (${P})`);throw xe.languageName=P,xe.badRule=B.rule,xe}return 1}if(B=fe,fe.type==="begin")return me(fe);if(fe.type==="illegal"&&!M){const xe=new Error('Illegal lexeme "'+we+'" for mode "'+(U.scope||"")+'"');throw xe.mode=U,xe}else if(fe.type==="end"){const xe=ye(fe);if(xe!==I0)return xe}if(fe.type==="illegal"&&we==="")return 1;if(q>1e5&&q>3*fe.index)throw new Error("potential infinite loop, way more iterations than matches");return re+=we,we.length}const A=T(P);if(!A)throw P0(i.replace("{}",P)),new Error('Unknown language: "'+P+'"');const W=DK(A);let K="",U=$||W;const se={},ie=new s.__emitter(s);Se();let re="",Q=0,H=0,q=0,ue=!1;try{for(U.matcher.considerAll();;){q++,ue?ue=!1:U.matcher.considerAll(),U.matcher.lastIndex=H;const ae=U.matcher.exec(O);if(!ae)break;const fe=O.substring(H,ae.index),we=x(fe,ae);H=ae.index+we}return x(O.substr(H)),ie.closeAllNodes(),ie.finalize(),K=ie.toHTML(),{language:P,value:K,relevance:Q,illegal:!1,_emitter:ie,_top:U}}catch(ae){if(ae.message&&ae.message.includes("Illegal"))return{language:P,value:Hc(O),illegal:!0,relevance:0,_illegalBy:{message:ae.message,index:H,context:O.slice(H-100,H+100),mode:ae.mode,resultSoFar:K},_emitter:ie};if(a)return{language:P,value:Hc(O),illegal:!1,relevance:0,errorRaised:ae,_emitter:ie,_top:U};throw ae}}function v(P){const O={value:Hc(P),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return O._emitter.addText(P),O}function h(P,O){O=O||s.languages||Object.keys(e);const M=v(P),$=O.filter(T).filter(R).map(Y=>d(Y,P,!1));$.unshift(M);const G=$.sort((Y,ne)=>{if(Y.relevance!==ne.relevance)return ne.relevance-Y.relevance;if(Y.language&&ne.language){if(T(Y.language).supersetOf===ne.language)return 1;if(T(ne.language).supersetOf===Y.language)return-1}return 0}),[J,Z]=G,X=J;return X.secondBest=Z,X}function f(P,O,M){const $=O&&n[O]||M;P.classList.add("hljs"),P.classList.add(`language-${$}`)}function p(P){let O=null;const M=u(P);if(l(M))return;if(j("before:highlightElement",{el:P,language:M}),P.children.length>0&&(s.ignoreUnescapedHTML,s.throwUnescapedHTML))throw new BK("One of your code blocks includes unescaped HTML.",P.innerHTML);O=P;const $=O.textContent,G=M?c($,{language:M,ignoreIllegals:!0}):h($);P.innerHTML=G.value,f(P,M,G.language),P.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(P.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),j("after:highlightElement",{el:P,result:G,text:$})}function m(P){s=A0(s,P)}const g=()=>{w(),ai("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){w(),ai("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function w(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(s.cssSelector).forEach(p)}function _(){b&&w()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_,!1);function C(P,O){let M=null;try{M=O(t)}catch($){if(P0("Language definition for '{}' could not be registered.".replace("{}",P)),!a)throw $;M=o}M.name||(M.name=P),e[P]=M,M.rawDefinition=O.bind(null,t),M.aliases&&N(M.aliases,{languageName:P})}function E(P){delete e[P];for(const O of Object.keys(n))n[O]===P&&delete n[O]}function I(){return Object.keys(e)}function T(P){return P=(P||"").toLowerCase(),e[P]||e[n[P]]}function N(P,{languageName:O}){typeof P=="string"&&(P=[P]),P.forEach(M=>{n[M.toLowerCase()]=O})}function R(P){const O=T(P);return O&&!O.disableAutodetect}function F(P){P["before:highlightBlock"]&&!P["before:highlightElement"]&&(P["before:highlightElement"]=O=>{P["before:highlightBlock"](Object.assign({block:O.el},O))}),P["after:highlightBlock"]&&!P["after:highlightElement"]&&(P["after:highlightElement"]=O=>{P["after:highlightBlock"](Object.assign({block:O.el},O))})}function L(P){F(P),r.push(P)}function j(P,O){const M=P;r.forEach(function($){$[M]&&$[M](O)})}function D(P){return ai("10.7.0","highlightBlock will be removed entirely in v12.0"),ai("10.7.0","Please use highlightElement now."),p(P)}Object.assign(t,{highlight:c,highlightAuto:h,highlightAll:w,highlightElement:p,highlightBlock:D,configure:m,initHighlighting:g,initHighlightingOnLoad:y,registerLanguage:C,unregisterLanguage:E,listLanguages:I,getLanguage:T,registerAliases:N,autoDetection:R,inherit:A0,addPlugin:L}),t.debugMode=function(){a=!1},t.safeMode=function(){a=!0},t.versionString=FK,t.regex={concat:qa,lookahead:Qx,either:Wp,optional:QU,anyNumberOfTimes:ZU};for(const P in Zs)typeof Zs[P]=="object"&&GU(Zs[P]);return Object.assign(t,Zs),t};var is=jK({}),WK=is;is.HighlightJS=is;is.default=is;var Sr=WK;const HK=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),VK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],UK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],KK=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],GK=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],qK=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function YK(t){const e=t.regex,n=HK(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",i=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+KK.join("|")+")"},{begin:":(:)?("+GK.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+qK.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:UK.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+VK.join("|")+")\\b"}]}}function JK(t){const e=t.regex,n=e.concat(/[A-Z_]/,e.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),r=/[A-Za-z0-9._:-]+/,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(i,{begin:/\(/,end:/\)/}),s=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[i,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[i,o,l,s]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function XK(t){const e=t.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},d=t.inherit(u,{contains:[]}),v=t.inherit(c,{contains:[]});u.contains.push(v),c.contains.push(d);let h=[n,l];return[u,c,d,v].forEach(m=>{m.contains=m.contains.concat(h)}),h=h.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},n,i,u,c,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},a,r,l,o]}}const M0="[A-Za-z$_][0-9A-Za-z$_]*",ZK=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],QK=["true","false","null","undefined","NaN","Infinity"],lT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],uT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],cT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],eG=["arguments","this","super","console","window","document","localStorage","module","global"],tG=[].concat(cT,lT,uT);function nG(t){const e=t.regex,n=(O,{after:M})=>{const $="",end:""},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(O,M)=>{const $=O[0].length+O.index,G=O.input[$];if(G==="<"||G===","){M.ignoreMatch();return}G===">"&&(n(O,{after:$})||M.ignoreMatch());let J;if((J=O.input.substr($).match(/^\s+extends\s+/))&&J.index===0){M.ignoreMatch();return}}},s={$pattern:M0,keyword:ZK,literal:QK,built_in:tG,"variable.language":eG},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},f={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"css"}},p={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,v]},g={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},y=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,d];v.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const b=[].concat(g,v.contains),w=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w},C={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},E={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...lT,...uT]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(O){return e.concat("(?!",O.join("|"),")")}const F={match:e.concat(/\b/,R([...cT,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},L={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,g,d,E,{className:"attr",begin:r+e.lookahead(":"),relevance:0},P,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,t.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},F,N,C,j,{match:/\$[(.]/}]}}function rG(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[e,n,t.QUOTE_STRING_MODE,r,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function aG(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}const Jl="[A-Za-z$_][0-9A-Za-z$_]*",fT=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],dT=["true","false","null","undefined","NaN","Infinity"],vT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],pT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],hT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],gT=["arguments","this","super","console","window","document","localStorage","module","global"],mT=[].concat(hT,vT,pT);function iG(t){const e=t.regex,n=(O,{after:M})=>{const $="",end:""},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(O,M)=>{const $=O[0].length+O.index,G=O.input[$];if(G==="<"||G===","){M.ignoreMatch();return}G===">"&&(n(O,{after:$})||M.ignoreMatch());let J;if((J=O.input.substr($).match(/^\s+extends\s+/))&&J.index===0){M.ignoreMatch();return}}},s={$pattern:Jl,keyword:fT,literal:dT,built_in:mT,"variable.language":gT},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},f={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"css"}},p={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,v]},g={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},y=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,d];v.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const b=[].concat(g,v.contains),w=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w},C={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},E={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...vT,...pT]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(O){return e.concat("(?!",O.join("|"),")")}const F={match:e.concat(/\b/,R([...hT,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},L={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,g,d,E,{className:"attr",begin:r+e.lookahead(":"),relevance:0},P,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,t.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},F,N,C,j,{match:/\$[(.]/}]}}function oG(t){const e=iG(t),n=Jl,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},i={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Jl,keyword:fT.concat(s),literal:dT,built_in:mT.concat(r),"variable.language":gT},u={className:"meta",begin:"@"+n},c=(v,h,f)=>{const p=v.contains.findIndex(m=>m.label===h);if(p===-1)throw new Error("can not find mode to replace");v.contains.splice(p,1,f)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(u),e.contains=e.contains.concat([u,a,i]),c(e,"shebang",t.SHEBANG()),c(e,"use_strict",o);const d=e.contains.find(v=>v.label==="func.def");return d.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx"]}),e}Sr.registerLanguage("css",YK);Sr.registerLanguage("xml",JK);Sr.registerLanguage("markdown",XK);Sr.registerLanguage("javascript",nG);Sr.registerLanguage("json",rG);Sr.registerLanguage("plaintext",aG);Sr.registerLanguage("typescript",oG);const kr="",Nr="";var vd=(t=>(t[t.removed=-1]="removed",t[t.equal=0]="equal",t[t.added=1]="added",t[t.disabled=2]="disabled",t))(vd||{});const un=t=>vd[t]?vd[t]:"disabled",sG=t=>{const e=[],n={prev:0,current:0};return t.map(r=>{const a=r[0][1].replace(/\n$/,"").split(` +`}return s.join("").replace(/%20/g," ")},t.exports=e,t.exports.diff_match_patch=e,t.exports.DIFF_DELETE=n,t.exports.DIFF_INSERT=r,t.exports.DIFF_EQUAL=a})(Fp);var Bp={exports:{}};function zp(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];typeof n=="object"&&!Object.isFrozen(n)&&zp(n)}),t}Bp.exports=zp;Bp.exports.default=zp;var GU=Bp.exports;class T0{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Zx(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function na(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const a in r)n[a]=r[a]}),n}const qU="",E0=t=>!!t.kind,YU=(t,{prefix:e})=>{if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,a)=>`${r}${"_".repeat(a+1)}`)].join(" ")}return`${e}${t}`};class JU{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Zx(e)}openNode(e){if(!E0(e))return;let n=e.kind;e.sublanguage?n=`language-${n}`:n=YU(n,{prefix:this.classPrefix}),this.span(n)}closeNode(e){E0(e)&&(this.buffer+=qU)}value(){return this.buffer}span(e){this.buffer+=``}}class jp{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{jp._collapse(n)}))}}class XU extends jp{constructor(e){super(),this.options=e}addKeyword(e,n){e!==""&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){e!==""&&this.add(e)}addSublanguage(e,n){const r=e.root;r.kind=n,r.sublanguage=!0,this.add(r)}toHTML(){return new JU(this,this.options).value()}finalize(){return!0}}function rs(t){return t?typeof t=="string"?t:t.source:null}function Qx(t){return qa("(?=",t,")")}function ZU(t){return qa("(?:",t,")*")}function QU(t){return qa("(?:",t,")?")}function qa(...t){return t.map(n=>rs(n)).join("")}function eK(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Wp(...t){return"("+(eK(t).capture?"":"?:")+t.map(r=>rs(r)).join("|")+")"}function eT(t){return new RegExp(t.toString()+"|").exec("").length-1}function tK(t,e){const n=t&&t.exec(e);return n&&n.index===0}const nK=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Hp(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const a=n;let i=rs(r),o="";for(;i.length>0;){const s=nK.exec(i);if(!s){o+=i;break}o+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+a):(o+=s[0],s[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(e)}const rK=/\b\B/,tT="[a-zA-Z]\\w*",Vp="[a-zA-Z_]\\w*",nT="\\b\\d+(\\.\\d+)?",rT="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",aT="\\b(0b[01]+)",aK="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",iK=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=qa(e,/.*\b/,t.binary,/\b.*/)),na({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},as={begin:"\\\\[\\s\\S]",relevance:0},oK={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[as]},sK={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[as]},lK={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Yu=function(t,e,n={}){const r=na({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=Wp("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:qa(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},uK=Yu("//","$"),cK=Yu("/\\*","\\*/"),fK=Yu("#","$"),dK={scope:"number",begin:nT,relevance:0},vK={scope:"number",begin:rT,relevance:0},pK={scope:"number",begin:aT,relevance:0},hK={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[as,{begin:/\[/,end:/\]/,relevance:0,contains:[as]}]}]},gK={scope:"title",begin:tT,relevance:0},mK={scope:"title",begin:Vp,relevance:0},yK={begin:"\\.\\s*"+Vp,relevance:0},bK=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Zs=Object.freeze({__proto__:null,MATCH_NOTHING_RE:rK,IDENT_RE:tT,UNDERSCORE_IDENT_RE:Vp,NUMBER_RE:nT,C_NUMBER_RE:rT,BINARY_NUMBER_RE:aT,RE_STARTERS_RE:aK,SHEBANG:iK,BACKSLASH_ESCAPE:as,APOS_STRING_MODE:oK,QUOTE_STRING_MODE:sK,PHRASAL_WORDS_MODE:lK,COMMENT:Yu,C_LINE_COMMENT_MODE:uK,C_BLOCK_COMMENT_MODE:cK,HASH_COMMENT_MODE:fK,NUMBER_MODE:dK,C_NUMBER_MODE:vK,BINARY_NUMBER_MODE:pK,REGEXP_MODE:hK,TITLE_MODE:gK,UNDERSCORE_TITLE_MODE:mK,METHOD_GUARD:yK,END_SAME_AS_BEGIN:bK});function wK(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function _K(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function CK(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=wK,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function SK(t,e){Array.isArray(t.illegal)&&(t.illegal=Wp(...t.illegal))}function xK(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function TK(t,e){t.relevance===void 0&&(t.relevance=1)}const EK=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=qa(n.beforeMatch,Qx(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},OK=["of","and","for","in","not","or","if","then","parent","list","value"],PK="keyword";function iT(t,e,n=PK){const r=Object.create(null);return typeof t=="string"?a(n,t.split(" ")):Array.isArray(t)?a(n,t):Object.keys(t).forEach(function(i){Object.assign(r,iT(t[i],e,i))}),r;function a(i,o){e&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){const l=s.split("|");r[l[0]]=[i,AK(l[0],l[1])]})}}function AK(t,e){return e?Number(e):IK(t)?0:1}function IK(t){return OK.includes(t.toLowerCase())}const O0={},P0=t=>{},kK=(t,...e)=>{},ai=(t,e)=>{O0[`${t}/${e}`]||(O0[`${t}/${e}`]=!0)},Yl=new Error;function oT(t,e,{key:n}){let r=0;const a=t[n],i={},o={};for(let s=1;s<=e.length;s++)o[s+r]=a[s],i[s+r]=!0,r+=eT(e[s-1]);t[n]=o,t[n]._emit=i,t[n]._multi=!0}function MK(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin||typeof t.beginScope!="object"||t.beginScope===null)throw Yl;oT(t,t.begin,{key:"beginScope"}),t.begin=Hp(t.begin,{joinWith:""})}}function NK(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd||typeof t.endScope!="object"||t.endScope===null)throw Yl;oT(t,t.end,{key:"endScope"}),t.end=Hp(t.end,{joinWith:""})}}function RK(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function $K(t){RK(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),MK(t),NK(t)}function DK(t){function e(o,s){return new RegExp(rs(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=eT(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=e(Hp(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const u=l.findIndex((d,v)=>v>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function a(o){const s=new r;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function i(o,s){const l=o;if(o.isCompiled)return l;[_K,xK,$K,EK].forEach(c=>c(o,s)),t.compilerExtensions.forEach(c=>c(o,s)),o.__beforeBegin=null,[CK,SK,TK].forEach(c=>c(o,s)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=iT(o.keywords,t.case_insensitive)),l.keywordPatternRe=e(u,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=rs(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return LK(c==="self"?o:c)})),o.contains.forEach(function(c){i(c,l)}),o.starts&&i(o.starts,s),l.matcher=a(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=na(t.classNameAliases||{}),i(t)}function sT(t){return t?t.endsWithParent||sT(t.starts):!1}function LK(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return na(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:sT(t)?na(t,{starts:t.starts?na(t.starts):null}):Object.isFrozen(t)?na(t):t}var FK="11.5.1";class BK extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Hc=Zx,A0=na,I0=Symbol("nomatch"),zK=7,jK=function(t){const e=Object.create(null),n=Object.create(null),r=[];let a=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:XU};function l(P){return s.noHighlightRe.test(P)}function u(P){let O=P.className+" ";O+=P.parentNode?P.parentNode.className:"";const k=s.languageDetectRe.exec(O);if(k){const $=T(k[1]);return $||kK(i.replace("{}",k[1])),$?k[1]:"no-highlight"}return O.split(/\s+/).find($=>l($)||T($))}function c(P,O,k){let $="",G="";typeof O=="object"?($=P,k=O.ignoreIllegals,G=O.language):(ai("10.7.0","highlight(lang, code, ...args) has been deprecated."),ai("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),G=P,$=O),k===void 0&&(k=!0);const J={code:$,language:G};j("before:highlight",J);const Z=J.result?J.result:d(J.language,J.code,k);return Z.code=J.code,j("after:highlight",Z),Z}function d(P,O,k,$){const G=Object.create(null);function J(ae,fe){return ae.keywords[fe]}function Z(){if(!U.keywords){ie.addText(re);return}let ae=0;U.keywordPatternRe.lastIndex=0;let fe=U.keywordPatternRe.exec(re),we="";for(;fe;){we+=re.substring(ae,fe.index);const xe=A.case_insensitive?fe[0].toLowerCase():fe[0],Pe=J(U,xe);if(Pe){const[oe,ve]=Pe;if(ie.addText(we),we="",G[xe]=(G[xe]||0)+1,G[xe]<=zK&&(Q+=ve),oe.startsWith("_"))we+=fe[0];else{const Xe=A.classNameAliases[oe]||oe;ie.addKeyword(fe[0],Xe)}}else we+=fe[0];ae=U.keywordPatternRe.lastIndex,fe=U.keywordPatternRe.exec(re)}we+=re.substr(ae),ie.addText(we)}function X(){if(re==="")return;let ae=null;if(typeof U.subLanguage=="string"){if(!e[U.subLanguage]){ie.addText(re);return}ae=d(U.subLanguage,re,!0,se[U.subLanguage]),se[U.subLanguage]=ae._top}else ae=h(re,U.subLanguage.length?U.subLanguage:null);U.relevance>0&&(Q+=ae.relevance),ie.addSublanguage(ae._emitter,ae.language)}function Y(){U.subLanguage!=null?X():Z(),re=""}function ne(ae,fe){let we=1;const xe=fe.length-1;for(;we<=xe;){if(!ae._emit[we]){we++;continue}const Pe=A.classNameAliases[ae[we]]||ae[we],oe=fe[we];Pe?ie.addKeyword(oe,Pe):(re=oe,Z(),re=""),we++}}function le(ae,fe){return ae.scope&&typeof ae.scope=="string"&&ie.openNode(A.classNameAliases[ae.scope]||ae.scope),ae.beginScope&&(ae.beginScope._wrap?(ie.addKeyword(re,A.classNameAliases[ae.beginScope._wrap]||ae.beginScope._wrap),re=""):ae.beginScope._multi&&(ne(ae.beginScope,fe),re="")),U=Object.create(ae,{parent:{value:U}}),U}function ge(ae,fe,we){let xe=tK(ae.endRe,we);if(xe){if(ae["on:end"]){const Pe=new T0(ae);ae["on:end"](fe,Pe),Pe.isMatchIgnored&&(xe=!1)}if(xe){for(;ae.endsParent&&ae.parent;)ae=ae.parent;return ae}}if(ae.endsWithParent)return ge(ae.parent,fe,we)}function _e(ae){return U.matcher.regexIndex===0?(re+=ae[0],1):(ue=!0,0)}function me(ae){const fe=ae[0],we=ae.rule,xe=new T0(we),Pe=[we.__beforeBegin,we["on:begin"]];for(const oe of Pe)if(oe&&(oe(ae,xe),xe.isMatchIgnored))return _e(fe);return we.skip?re+=fe:(we.excludeBegin&&(re+=fe),Y(),!we.returnBegin&&!we.excludeBegin&&(re=fe)),le(we,ae),we.returnBegin?0:fe.length}function ye(ae){const fe=ae[0],we=O.substr(ae.index),xe=ge(U,ae,we);if(!xe)return I0;const Pe=U;U.endScope&&U.endScope._wrap?(Y(),ie.addKeyword(fe,U.endScope._wrap)):U.endScope&&U.endScope._multi?(Y(),ne(U.endScope,ae)):Pe.skip?re+=fe:(Pe.returnEnd||Pe.excludeEnd||(re+=fe),Y(),Pe.excludeEnd&&(re=fe));do U.scope&&ie.closeNode(),!U.skip&&!U.subLanguage&&(Q+=U.relevance),U=U.parent;while(U!==xe.parent);return xe.starts&&le(xe.starts,ae),Pe.returnEnd?0:fe.length}function Se(){const ae=[];for(let fe=U;fe!==A;fe=fe.parent)fe.scope&&ae.unshift(fe.scope);ae.forEach(fe=>ie.openNode(fe))}let B={};function x(ae,fe){const we=fe&&fe[0];if(re+=ae,we==null)return Y(),0;if(B.type==="begin"&&fe.type==="end"&&B.index===fe.index&&we===""){if(re+=O.slice(fe.index,fe.index+1),!a){const xe=new Error(`0 width match regex (${P})`);throw xe.languageName=P,xe.badRule=B.rule,xe}return 1}if(B=fe,fe.type==="begin")return me(fe);if(fe.type==="illegal"&&!k){const xe=new Error('Illegal lexeme "'+we+'" for mode "'+(U.scope||"")+'"');throw xe.mode=U,xe}else if(fe.type==="end"){const xe=ye(fe);if(xe!==I0)return xe}if(fe.type==="illegal"&&we==="")return 1;if(q>1e5&&q>3*fe.index)throw new Error("potential infinite loop, way more iterations than matches");return re+=we,we.length}const A=T(P);if(!A)throw P0(i.replace("{}",P)),new Error('Unknown language: "'+P+'"');const W=DK(A);let K="",U=$||W;const se={},ie=new s.__emitter(s);Se();let re="",Q=0,H=0,q=0,ue=!1;try{for(U.matcher.considerAll();;){q++,ue?ue=!1:U.matcher.considerAll(),U.matcher.lastIndex=H;const ae=U.matcher.exec(O);if(!ae)break;const fe=O.substring(H,ae.index),we=x(fe,ae);H=ae.index+we}return x(O.substr(H)),ie.closeAllNodes(),ie.finalize(),K=ie.toHTML(),{language:P,value:K,relevance:Q,illegal:!1,_emitter:ie,_top:U}}catch(ae){if(ae.message&&ae.message.includes("Illegal"))return{language:P,value:Hc(O),illegal:!0,relevance:0,_illegalBy:{message:ae.message,index:H,context:O.slice(H-100,H+100),mode:ae.mode,resultSoFar:K},_emitter:ie};if(a)return{language:P,value:Hc(O),illegal:!1,relevance:0,errorRaised:ae,_emitter:ie,_top:U};throw ae}}function v(P){const O={value:Hc(P),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return O._emitter.addText(P),O}function h(P,O){O=O||s.languages||Object.keys(e);const k=v(P),$=O.filter(T).filter(R).map(Y=>d(Y,P,!1));$.unshift(k);const G=$.sort((Y,ne)=>{if(Y.relevance!==ne.relevance)return ne.relevance-Y.relevance;if(Y.language&&ne.language){if(T(Y.language).supersetOf===ne.language)return 1;if(T(ne.language).supersetOf===Y.language)return-1}return 0}),[J,Z]=G,X=J;return X.secondBest=Z,X}function f(P,O,k){const $=O&&n[O]||k;P.classList.add("hljs"),P.classList.add(`language-${$}`)}function p(P){let O=null;const k=u(P);if(l(k))return;if(j("before:highlightElement",{el:P,language:k}),P.children.length>0&&(s.ignoreUnescapedHTML,s.throwUnescapedHTML))throw new BK("One of your code blocks includes unescaped HTML.",P.innerHTML);O=P;const $=O.textContent,G=k?c($,{language:k,ignoreIllegals:!0}):h($);P.innerHTML=G.value,f(P,k,G.language),P.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(P.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),j("after:highlightElement",{el:P,result:G,text:$})}function m(P){s=A0(s,P)}const g=()=>{w(),ai("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){w(),ai("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function w(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(s.cssSelector).forEach(p)}function _(){b&&w()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_,!1);function C(P,O){let k=null;try{k=O(t)}catch($){if(P0("Language definition for '{}' could not be registered.".replace("{}",P)),!a)throw $;k=o}k.name||(k.name=P),e[P]=k,k.rawDefinition=O.bind(null,t),k.aliases&&N(k.aliases,{languageName:P})}function E(P){delete e[P];for(const O of Object.keys(n))n[O]===P&&delete n[O]}function I(){return Object.keys(e)}function T(P){return P=(P||"").toLowerCase(),e[P]||e[n[P]]}function N(P,{languageName:O}){typeof P=="string"&&(P=[P]),P.forEach(k=>{n[k.toLowerCase()]=O})}function R(P){const O=T(P);return O&&!O.disableAutodetect}function F(P){P["before:highlightBlock"]&&!P["before:highlightElement"]&&(P["before:highlightElement"]=O=>{P["before:highlightBlock"](Object.assign({block:O.el},O))}),P["after:highlightBlock"]&&!P["after:highlightElement"]&&(P["after:highlightElement"]=O=>{P["after:highlightBlock"](Object.assign({block:O.el},O))})}function L(P){F(P),r.push(P)}function j(P,O){const k=P;r.forEach(function($){$[k]&&$[k](O)})}function D(P){return ai("10.7.0","highlightBlock will be removed entirely in v12.0"),ai("10.7.0","Please use highlightElement now."),p(P)}Object.assign(t,{highlight:c,highlightAuto:h,highlightAll:w,highlightElement:p,highlightBlock:D,configure:m,initHighlighting:g,initHighlightingOnLoad:y,registerLanguage:C,unregisterLanguage:E,listLanguages:I,getLanguage:T,registerAliases:N,autoDetection:R,inherit:A0,addPlugin:L}),t.debugMode=function(){a=!1},t.safeMode=function(){a=!0},t.versionString=FK,t.regex={concat:qa,lookahead:Qx,either:Wp,optional:QU,anyNumberOfTimes:ZU};for(const P in Zs)typeof Zs[P]=="object"&&GU(Zs[P]);return Object.assign(t,Zs),t};var is=jK({}),WK=is;is.HighlightJS=is;is.default=is;var Sr=WK;const HK=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),VK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],UK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],KK=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],GK=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],qK=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function YK(t){const e=t.regex,n=HK(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",i=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+KK.join("|")+")"},{begin:":(:)?("+GK.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+qK.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:UK.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+VK.join("|")+")\\b"}]}}function JK(t){const e=t.regex,n=e.concat(/[A-Z_]/,e.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),r=/[A-Za-z0-9._:-]+/,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(i,{begin:/\(/,end:/\)/}),s=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[i,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[i,o,l,s]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function XK(t){const e=t.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},d=t.inherit(u,{contains:[]}),v=t.inherit(c,{contains:[]});u.contains.push(v),c.contains.push(d);let h=[n,l];return[u,c,d,v].forEach(m=>{m.contains=m.contains.concat(h)}),h=h.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},n,i,u,c,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},a,r,l,o]}}const k0="[A-Za-z$_][0-9A-Za-z$_]*",ZK=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],QK=["true","false","null","undefined","NaN","Infinity"],lT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],uT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],cT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],eG=["arguments","this","super","console","window","document","localStorage","module","global"],tG=[].concat(cT,lT,uT);function nG(t){const e=t.regex,n=(O,{after:k})=>{const $="",end:""},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(O,k)=>{const $=O[0].length+O.index,G=O.input[$];if(G==="<"||G===","){k.ignoreMatch();return}G===">"&&(n(O,{after:$})||k.ignoreMatch());let J;if((J=O.input.substr($).match(/^\s+extends\s+/))&&J.index===0){k.ignoreMatch();return}}},s={$pattern:k0,keyword:ZK,literal:QK,built_in:tG,"variable.language":eG},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},f={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"css"}},p={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,v]},g={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},y=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,d];v.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const b=[].concat(g,v.contains),w=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w},C={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},E={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...lT,...uT]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(O){return e.concat("(?!",O.join("|"),")")}const F={match:e.concat(/\b/,R([...cT,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},L={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,g,d,E,{className:"attr",begin:r+e.lookahead(":"),relevance:0},P,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,t.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},F,N,C,j,{match:/\$[(.]/}]}}function rG(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r={beginKeywords:["true","false","null"].join(" ")};return{name:"JSON",contains:[e,n,t.QUOTE_STRING_MODE,r,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function aG(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}const Jl="[A-Za-z$_][0-9A-Za-z$_]*",fT=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],dT=["true","false","null","undefined","NaN","Infinity"],vT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],pT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],hT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],gT=["arguments","this","super","console","window","document","localStorage","module","global"],mT=[].concat(hT,vT,pT);function iG(t){const e=t.regex,n=(O,{after:k})=>{const $="",end:""},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(O,k)=>{const $=O[0].length+O.index,G=O.input[$];if(G==="<"||G===","){k.ignoreMatch();return}G===">"&&(n(O,{after:$})||k.ignoreMatch());let J;if((J=O.input.substr($).match(/^\s+extends\s+/))&&J.index===0){k.ignoreMatch();return}}},s={$pattern:Jl,keyword:fT,literal:dT,built_in:mT,"variable.language":gT},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},f={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,v],subLanguage:"css"}},p={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,v]},g={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},y=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,d];v.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const b=[].concat(g,v.contains),w=b.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(b)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w},C={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},E={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...vT,...pT]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function R(O){return e.concat("(?!",O.join("|"),")")}const F={match:e.concat(/\b/,R([...hT,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},L={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},j={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,f,p,g,d,E,{className:"attr",begin:r+e.lookahead(":"),relevance:0},P,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,t.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},F,N,C,j,{match:/\$[(.]/}]}}function oG(t){const e=iG(t),n=Jl,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},i={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Jl,keyword:fT.concat(s),literal:dT,built_in:mT.concat(r),"variable.language":gT},u={className:"meta",begin:"@"+n},c=(v,h,f)=>{const p=v.contains.findIndex(m=>m.label===h);if(p===-1)throw new Error("can not find mode to replace");v.contains.splice(p,1,f)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(u),e.contains=e.contains.concat([u,a,i]),c(e,"shebang",t.SHEBANG()),c(e,"use_strict",o);const d=e.contains.find(v=>v.label==="func.def");return d.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx"]}),e}Sr.registerLanguage("css",YK);Sr.registerLanguage("xml",JK);Sr.registerLanguage("markdown",XK);Sr.registerLanguage("javascript",nG);Sr.registerLanguage("json",rG);Sr.registerLanguage("plaintext",aG);Sr.registerLanguage("typescript",oG);const Mr="",Nr="";var vd=(t=>(t[t.removed=-1]="removed",t[t.equal=0]="equal",t[t.added=1]="added",t[t.disabled=2]="disabled",t))(vd||{});const un=t=>vd[t]?vd[t]:"disabled",sG=t=>{const e=[],n={prev:0,current:0};return t.map(r=>{const a=r[0][1].replace(/\n$/,"").split(` `),i=r[1][1].replace(/\n$/,"").split(` `),o=Math.max(a.length,i.length);for(let s=0;s{const e=[];let n=0;return t.map(r=>{const a=r[0][1].replace(/\n$/,"").split(` `),i=r[1][1].replace(/\n$/,"").split(` -`);a.map(o=>{un(r[0][0])==="removed"&&e.push([{type:un(r[0][0]),lineNum:void 0,value:o}])}),i.map(o=>{un(r[1][0])!=="disabled"&&(n+=1,e.push([{type:un(r[1][0]),lineNum:n,value:o}]))})}),e},uG=(t,e,n)=>{function r(i,o){const s=new Fp.exports.diff_match_patch,l=s.diff_linesToChars_(i,o),u=l.chars1,c=l.chars2,d=l.lineArray,v=s.diff_main(u,c,!1);return s.diff_charsToLines_(v,d),v}const a=r(e,n).reduce((i,o)=>{const s=un(o[0]);if(s==="equal"&&i.push([o]),s==="removed"&&i.push([o]),s==="added"){const l=i.length&&i[i.length-1][0]?i[i.length-1][0]:null;l&&un(l[0])==="removed"?i[i.length-1].push(o):i.push([o])}return i},[]);return a.map(i=>{if(i.length>1)return;const o=un(i[0][0]);o==="added"?i.unshift([2,""]):o==="removed"?i.push([2,""]):o==="equal"&&i.push([...i[0]])}),t==="split"?sG(a):t==="unified"?lG(a):[]},cG=(t,e)=>{const n=new Fp.exports.diff_match_patch,r=n.diff_main(t,e);return n.diff_cleanupSemantic(r),r.filter(a=>un(a[0])!=="removed").map(a=>un(a[0])==="added"?`${kr}${a[1]}${Nr}`:a[1]).join("")},fG=({highlightCode:t,language:e,code:n})=>{if(!n.match(new RegExp(`(${kr}|${Nr})`,"g"))){t.value=Sr.highlight(n,{language:e}).value;return}let a=n;const i=n.replace(new RegExp(`(${kr}|${Nr})`,"g"),"");let o=document.createElement("div");o.innerHTML=Sr.highlight(i,{language:e}).value;let s=!1;const l=d=>{d.childNodes.forEach(v=>{if(v.nodeType===1&&l(v),v.nodeType===3){if(!v.textContent)return;let h=v.textContent,f="";for(s&&(f+=kr);h.length;){if(a.startsWith(kr)){a=a.slice(kr.length),f+=kr,s=!0;continue}if(a.startsWith(Nr)){a=a.slice(Nr.length),f+=Nr,s=!1;continue}const p=a.match(new RegExp(`(${kr}|${Nr})`)),m=p&&p.index?p.index:a.length,g=Math.min(m,h.length);f+=a.substring(0,g),a=a.slice(g),h=h.slice(g)}s&&(f+=Nr),v.textContent=f}})};l(o);const u=kr.replace("<","<").replace(">",">"),c=Nr.replace("<","<").replace(">",">");t.value=o.innerHTML.replace(new RegExp(u,"g"),'').replace(new RegExp(c,"g"),""),o=null},dG=(t,e,n)=>{const r=z([]),a=z([]),i=V(()=>a.value.filter(s=>t.folding?!s.foldable&&s.visible:s.visible));return Xx([()=>t.mode,()=>t.prev,()=>t.current,()=>t.folding],()=>{const s=uG(t.mode,t.prev,t.current);r.value=s,a.value.splice(r.value.length),r.value.map((l,u)=>{var c;const d=a.value[u],v=t.folding&&l[0].type==="equal"&&((c=r.value[u-1])==null?void 0:c[0].type)==="equal",h={index:u,foldable:v,visible:!0};n.value?a.value[u]=EU(dd({},h),{visible:(d==null?void 0:d.visible)||!1,top:(d==null?void 0:d.top)||void 0,height:(d==null?void 0:d.height)||n.value.lineMinHeight}):a.value[u]=dd({},h)})},{debounce:t.inputDelay,immediate:!0}),{meta:a,render:r,list:i}},vG=(t,e,n,r)=>{const a=V(()=>n.value?r.value.reduce((s,l)=>(l.top=s,l.foldable?s:s+l.height),0)+"px":void 0),i=()=>{if(!e.value||!n.value)return;const o=e.value.scrollTop,s=n.value.height,l=o-1.5*s,u=o+s+1.5*s;r.value.reduce((c,d)=>(c>=l&&c<=u?d.visible=!0:d.visible=!1,d.top=c,d.foldable?c:c+d.height),0)};return Xx([()=>t.mode,()=>t.prev,()=>t.current,()=>t.folding],()=>Ke(i),{debounce:t.inputDelay,immediate:!0}),Ve(()=>{var o;n.value&&((o=e.value)==null||o.addEventListener("scroll",mo(i,n.value.delay)))}),st(()=>{var o;n.value&&((o=e.value)==null||o.removeEventListener("scroll",mo(i,n.value.delay)))}),pe(n,(o,s)=>{var l,u;!s&&o&&((l=e.value)==null||l.addEventListener("scroll",mo(i,o.delay))),s&&!o&&((u=e.value)==null||u.removeEventListener("scroll",mo(i,s.delay)))}),{minHeight:a}};var Up=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const pG=he({props:{language:{type:String,required:!0},code:{type:String,required:!0},scrollOptions:{type:[Boolean,Object],default:!1}},emits:["rendered"],setup(t,{emit:e}){const n=z("");return Ve(()=>{pe([()=>t.language,()=>t.code],()=>{fG({highlightCode:n,language:t.language,code:t.code}),Ke(()=>e("rendered"))},{immediate:!0}),pe([()=>t.scrollOptions],()=>{Ke(()=>e("rendered"))},{deep:!0})}),{highlightCode:n}}}),hG=["innerHTML"];function gG(t,e,n,r,a,i){return Oe(),Fe("pre",null,[$e("code",{class:"hljs",innerHTML:t.highlightCode},null,8,hG)])}var mG=Up(pG,[["render",gG]]);const yG=he({components:{Code:mG},props:{mode:{type:String,required:!0},folding:{type:Boolean,default:!1},language:{type:String,required:!0},meta:{type:Object,required:!0},render:{type:Object,required:!0},scrollOptions:{type:[Boolean,Object],default:!1}},setup(t,{emit:e}){const n=z(null),r=V(()=>{if(t.scrollOptions)return{position:"absolute",left:0,top:0,transform:`translate3d(0, ${t.meta.top}px, 0)`,minHeight:t.scrollOptions.lineMinHeight+"px"}}),a=V(()=>t.folding&&t.render[0].type==="equal"),i=(s,l,u)=>{if(!s.value)return` -`;if(typeof l>"u"||typeof u>"u"||!s.chkWords)return s.value;const c=l[u===0?1:0];return c.value?cG(c.value,s.value):s.value},o=()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)};return t.scrollOptions&&KU(n,mo(()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)},t.scrollOptions.delay)),{line:n,isFoldLine:a,rendered:o,rowStyle:r,setCode:i}}}),bG=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),wG=$e("div",{class:"code vue-diff-cell-fold"},null,-1),_G=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),CG=$e("div",{class:"code vue-diff-cell-fold"},null,-1);function SG(t,e,n,r,a,i){const o=us("Code");return Oe(),Fe("div",{ref:"line",class:qt(["vue-diff-row",`vue-diff-row-${t.mode}`]),style:Pn(t.rowStyle)},[t.mode==="split"?(Oe(!0),Fe(Re,{key:0},Na(t.render,(s,l)=>(Oe(),Fe(Re,{key:l},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[bG,wG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${s.type}`])},St(s.lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${s.type}`])},[S(o,{language:t.language,code:t.setCode(s,t.render,l),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64))),128)):$t("",!0),t.mode==="unified"?(Oe(),Fe(Re,{key:1},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[_G,CG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${t.render[0].type}`])},St(t.render[0].lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${t.render[0].type}`])},[S(o,{language:t.language,code:t.setCode(t.render[0]),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64)):$t("",!0)],6)}var xG=Up(yG,[["render",SG]]);const TG=he({components:{Line:xG},props:{mode:{type:String,default:"split"},theme:{type:String,default:"dark"},language:{type:String,default:"plaintext"},prev:{type:String,default:""},current:{type:String,default:""},folding:{type:Boolean,default:!1},inputDelay:{type:Number,default:0},virtualScroll:{type:[Boolean,Object],default:!1}},setup(t){const e=z(null),n=V(()=>t.virtualScroll?dd({height:500,lineMinHeight:24,delay:100},typeof t.virtualScroll=="object"?De(t.virtualScroll):{}):!1),{meta:r,render:a,list:i}=dG(t,e,n),{minHeight:o}=vG(t,e,n,r);return{list:i,meta:r,minHeight:o,render:a,scrollOptions:n,setLineHeight:(l,u)=>{r.value[l]&&r.value[l].height!==u&&(r.value[l].height=u)},viewer:e}}});function EG(t,e,n,r,a,i){const o=us("Line");return Oe(),Fe("div",{class:qt(["vue-diff-wrapper",`vue-diff-mode-${t.mode} vue-diff-theme-${t.theme}`])},[$e("div",{ref:"viewer",class:"vue-diff-viewer",style:Pn({height:t.scrollOptions?t.scrollOptions.height+"px":void 0})},[$e("div",{class:"vue-diff-viewer-inner",style:Pn({minHeight:t.minHeight})},[(Oe(!0),Fe(Re,null,Na(t.list,(s,l)=>(Oe(),mt(o,{key:l,mode:t.mode,folding:t.folding,language:t.language,meta:t.meta[s.index],render:t.render[s.index],scrollOptions:t.scrollOptions,onSetLineHeight:t.setLineHeight},null,8,["mode","folding","language","meta","render","scrollOptions","onSetLineHeight"]))),128))],4)],4)],2)}var OG=Up(TG,[["render",EG]]),PG={install:(t,e={})=>{const{componentName:n="Diff"}=e;t.component(n,OG)},hljs:Sr};const yT=WW();yT.use(wU);tP(pU).use(yT).use(gp).use(PG,{componentName:"VueDiff"}).mount("#zanllp_dev_gradio_fe");export{$t as $,qe as A,Te as B,Iq as C,L_ as D,sd as E,jG as F,V as G,$i as H,vn as I,Sx as J,Op as K,Aq as L,ia as M,qq as N,bp as O,ee as P,T8 as Q,mr as R,mY as S,xt as T,Oe as U,Fe as V,$e as W,_n as X,St as Y,Re as Z,bt as _,k as a,hg as a$,Ui as a0,Nn as a1,mt as a2,kt as a3,be as a4,An as a5,dt as a6,Pn as a7,Na as a8,xx as a9,FW as aA,nY as aB,Uu as aC,rY as aD,aY as aE,px as aF,_l as aG,tv as aH,Rq as aI,Wx as aJ,ZW as aK,kq as aL,P4 as aM,CD as aN,sD as aO,Md as aP,kd as aQ,kx as aR,dj as aS,_Y as aT,Uq as aU,N9 as aV,ns as aW,Ux as aX,fx as aY,zM as aZ,tM as a_,AG as aa,vO as ab,KS as ac,Vq as ad,Fq as ae,ua as af,qt as ag,Dl as ah,wn as ai,Mt as aj,Xt as ak,Jo as al,ct as am,Ce as an,Fi as ao,Et as ap,pD as aq,cs as ar,Yn as as,dn as at,$r as au,ot as av,Lt as aw,wt as ax,Ha as ay,Ke as az,Qe as b,xq as b$,ar as b0,y_ as b1,x8 as b2,wu as b3,kL as b4,KD as b5,Gd as b6,Me as b7,Bo as b8,vL as b9,Ut as bA,uR as bB,pn as bC,BG as bD,Zq as bE,hY as bF,Nf as bG,LG as bH,X1 as bI,U_ as bJ,Un as bK,ir as bL,gv as bM,fC as bN,Vv as bO,kl as bP,g_ as bQ,q4 as bR,G4 as bS,s6 as bT,wv as bU,qn as bV,l_ as bW,I6 as bX,yr as bY,j9 as bZ,Cq as b_,zA as ba,UO as bb,Pw as bc,Ow as bd,hu as be,Pl as bf,Qn as bg,yt as bh,LA as bi,zG as bj,st as bk,De as bl,yL as bm,Sv as bn,Go as bo,u_ as bp,XD as bq,JD as br,zv as bs,Pu as bt,ps as bu,tA as bv,_4 as bw,Au as bx,Q4 as by,cl as bz,S as c,vY as c$,Pt as c0,_q as c1,$G as c2,MG as c3,Sq as c4,us as c5,WE as c6,jd as c7,uu as c8,qu as c9,ca as cA,HL as cB,cY as cC,Nq as cD,jq as cE,lY as cF,oY as cG,uY as cH,sY as cI,UG as cJ,BM as cK,J1 as cL,br as cM,iA as cN,aU as cO,qW as cP,OW as cQ,We as cR,Eq as cS,Mq as cT,Wq as cU,eY as cV,wq as cW,Vx as cX,VS as cY,yY as cZ,pY as c_,X$ as ca,zr as cb,Ix as cc,eV as cd,Yq as ce,tV as cf,Qq as cg,Xq as ch,oF as ci,q8 as cj,Jq as ck,w4 as cl,f4 as cm,pC as cn,wr as co,DG as cp,WG as cq,tY as cr,Pq as cs,Tx as ct,Lq as cu,eU as cv,Bi as cw,gm as cx,HG as cy,sc as cz,he as d,oi as d$,QH as d0,gl as d1,od as d2,TW as d3,PW as d4,Hb as d5,nV as d6,Gl as d7,iY as d8,Kb as d9,Pp as dA,Kq as dB,Oq as dC,nM as dD,_W as dE,zq as dF,HS as dG,rW as dH,SE as dI,ru as dJ,lE as dK,HE as dL,IG as dM,Vb as dN,Wo as dO,wH as dP,xH as dQ,Tq as dR,bY as dS,wY as dT,ZF as dU,kD as dV,yD as dW,ED as dX,ln as dY,jn as dZ,b_ as d_,Zb as da,CY as db,Ex as dc,Bq as dd,$q as de,Dq as df,dY as dg,gY as dh,Z0 as di,RG as dj,dH as dk,gH as dl,V_ as dm,NW as dn,Hq as dp,Xo as dq,Df as dr,Bl as ds,xo as dt,Vd as du,Rd as dv,ID as dw,Ae as dx,ML as dy,ws as dz,rr as e,FG as e0,wD as e1,RE as e2,Ue as e3,NG as e4,kG as e5,_v as e6,VG as e7,W_ as e8,H_ as e9,O_ as ea,n3 as eb,Mn as f,Wn as g,te as h,nt as i,Nv as j,sj as k,nd as l,pe as m,Zo as n,Ve as o,fY as p,sa as q,z as r,Gq as s,Fa as t,lt as u,YW as v,pu as w,Lx as x,Zr as y,Jt as z}; +`);a.map(o=>{un(r[0][0])==="removed"&&e.push([{type:un(r[0][0]),lineNum:void 0,value:o}])}),i.map(o=>{un(r[1][0])!=="disabled"&&(n+=1,e.push([{type:un(r[1][0]),lineNum:n,value:o}]))})}),e},uG=(t,e,n)=>{function r(i,o){const s=new Fp.exports.diff_match_patch,l=s.diff_linesToChars_(i,o),u=l.chars1,c=l.chars2,d=l.lineArray,v=s.diff_main(u,c,!1);return s.diff_charsToLines_(v,d),v}const a=r(e,n).reduce((i,o)=>{const s=un(o[0]);if(s==="equal"&&i.push([o]),s==="removed"&&i.push([o]),s==="added"){const l=i.length&&i[i.length-1][0]?i[i.length-1][0]:null;l&&un(l[0])==="removed"?i[i.length-1].push(o):i.push([o])}return i},[]);return a.map(i=>{if(i.length>1)return;const o=un(i[0][0]);o==="added"?i.unshift([2,""]):o==="removed"?i.push([2,""]):o==="equal"&&i.push([...i[0]])}),t==="split"?sG(a):t==="unified"?lG(a):[]},cG=(t,e)=>{const n=new Fp.exports.diff_match_patch,r=n.diff_main(t,e);return n.diff_cleanupSemantic(r),r.filter(a=>un(a[0])!=="removed").map(a=>un(a[0])==="added"?`${Mr}${a[1]}${Nr}`:a[1]).join("")},fG=({highlightCode:t,language:e,code:n})=>{if(!n.match(new RegExp(`(${Mr}|${Nr})`,"g"))){t.value=Sr.highlight(n,{language:e}).value;return}let a=n;const i=n.replace(new RegExp(`(${Mr}|${Nr})`,"g"),"");let o=document.createElement("div");o.innerHTML=Sr.highlight(i,{language:e}).value;let s=!1;const l=d=>{d.childNodes.forEach(v=>{if(v.nodeType===1&&l(v),v.nodeType===3){if(!v.textContent)return;let h=v.textContent,f="";for(s&&(f+=Mr);h.length;){if(a.startsWith(Mr)){a=a.slice(Mr.length),f+=Mr,s=!0;continue}if(a.startsWith(Nr)){a=a.slice(Nr.length),f+=Nr,s=!1;continue}const p=a.match(new RegExp(`(${Mr}|${Nr})`)),m=p&&p.index?p.index:a.length,g=Math.min(m,h.length);f+=a.substring(0,g),a=a.slice(g),h=h.slice(g)}s&&(f+=Nr),v.textContent=f}})};l(o);const u=Mr.replace("<","<").replace(">",">"),c=Nr.replace("<","<").replace(">",">");t.value=o.innerHTML.replace(new RegExp(u,"g"),'').replace(new RegExp(c,"g"),""),o=null},dG=(t,e,n)=>{const r=z([]),a=z([]),i=V(()=>a.value.filter(s=>t.folding?!s.foldable&&s.visible:s.visible));return Xx([()=>t.mode,()=>t.prev,()=>t.current,()=>t.folding],()=>{const s=uG(t.mode,t.prev,t.current);r.value=s,a.value.splice(r.value.length),r.value.map((l,u)=>{var c;const d=a.value[u],v=t.folding&&l[0].type==="equal"&&((c=r.value[u-1])==null?void 0:c[0].type)==="equal",h={index:u,foldable:v,visible:!0};n.value?a.value[u]=EU(dd({},h),{visible:(d==null?void 0:d.visible)||!1,top:(d==null?void 0:d.top)||void 0,height:(d==null?void 0:d.height)||n.value.lineMinHeight}):a.value[u]=dd({},h)})},{debounce:t.inputDelay,immediate:!0}),{meta:a,render:r,list:i}},vG=(t,e,n,r)=>{const a=V(()=>n.value?r.value.reduce((s,l)=>(l.top=s,l.foldable?s:s+l.height),0)+"px":void 0),i=()=>{if(!e.value||!n.value)return;const o=e.value.scrollTop,s=n.value.height,l=o-1.5*s,u=o+s+1.5*s;r.value.reduce((c,d)=>(c>=l&&c<=u?d.visible=!0:d.visible=!1,d.top=c,d.foldable?c:c+d.height),0)};return Xx([()=>t.mode,()=>t.prev,()=>t.current,()=>t.folding],()=>Ke(i),{debounce:t.inputDelay,immediate:!0}),Ve(()=>{var o;n.value&&((o=e.value)==null||o.addEventListener("scroll",mo(i,n.value.delay)))}),st(()=>{var o;n.value&&((o=e.value)==null||o.removeEventListener("scroll",mo(i,n.value.delay)))}),pe(n,(o,s)=>{var l,u;!s&&o&&((l=e.value)==null||l.addEventListener("scroll",mo(i,o.delay))),s&&!o&&((u=e.value)==null||u.removeEventListener("scroll",mo(i,s.delay)))}),{minHeight:a}};var Up=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const pG=he({props:{language:{type:String,required:!0},code:{type:String,required:!0},scrollOptions:{type:[Boolean,Object],default:!1}},emits:["rendered"],setup(t,{emit:e}){const n=z("");return Ve(()=>{pe([()=>t.language,()=>t.code],()=>{fG({highlightCode:n,language:t.language,code:t.code}),Ke(()=>e("rendered"))},{immediate:!0}),pe([()=>t.scrollOptions],()=>{Ke(()=>e("rendered"))},{deep:!0})}),{highlightCode:n}}}),hG=["innerHTML"];function gG(t,e,n,r,a,i){return Oe(),Fe("pre",null,[$e("code",{class:"hljs",innerHTML:t.highlightCode},null,8,hG)])}var mG=Up(pG,[["render",gG]]);const yG=he({components:{Code:mG},props:{mode:{type:String,required:!0},folding:{type:Boolean,default:!1},language:{type:String,required:!0},meta:{type:Object,required:!0},render:{type:Object,required:!0},scrollOptions:{type:[Boolean,Object],default:!1}},setup(t,{emit:e}){const n=z(null),r=V(()=>{if(t.scrollOptions)return{position:"absolute",left:0,top:0,transform:`translate3d(0, ${t.meta.top}px, 0)`,minHeight:t.scrollOptions.lineMinHeight+"px"}}),a=V(()=>t.folding&&t.render[0].type==="equal"),i=(s,l,u)=>{if(!s.value)return` +`;if(typeof l>"u"||typeof u>"u"||!s.chkWords)return s.value;const c=l[u===0?1:0];return c.value?cG(c.value,s.value):s.value},o=()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)};return t.scrollOptions&&KU(n,mo(()=>{!n.value||t.meta.height===n.value.offsetHeight||e("setLineHeight",t.meta.index,n.value.offsetHeight)},t.scrollOptions.delay)),{line:n,isFoldLine:a,rendered:o,rowStyle:r,setCode:i}}}),bG=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),wG=$e("div",{class:"code vue-diff-cell-fold"},null,-1),_G=$e("div",{class:"lineNum vue-diff-cell-fold"},null,-1),CG=$e("div",{class:"code vue-diff-cell-fold"},null,-1);function SG(t,e,n,r,a,i){const o=us("Code");return Oe(),Fe("div",{ref:"line",class:qt(["vue-diff-row",`vue-diff-row-${t.mode}`]),style:Pn(t.rowStyle)},[t.mode==="split"?(Oe(!0),Fe(Re,{key:0},Na(t.render,(s,l)=>(Oe(),Fe(Re,{key:l},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[bG,wG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${s.type}`])},St(s.lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${s.type}`])},[S(o,{language:t.language,code:t.setCode(s,t.render,l),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64))),128)):$t("",!0),t.mode==="unified"?(Oe(),Fe(Re,{key:1},[t.isFoldLine?(Oe(),Fe(Re,{key:0},[_G,CG],64)):(Oe(),Fe(Re,{key:1},[$e("div",{class:qt(["lineNum",`vue-diff-cell-${t.render[0].type}`])},St(t.render[0].lineNum),3),$e("div",{class:qt(["code",`vue-diff-cell-${t.render[0].type}`])},[S(o,{language:t.language,code:t.setCode(t.render[0]),scrollOptions:t.scrollOptions,onRendered:t.rendered},null,8,["language","code","scrollOptions","onRendered"])],2)],64))],64)):$t("",!0)],6)}var xG=Up(yG,[["render",SG]]);const TG=he({components:{Line:xG},props:{mode:{type:String,default:"split"},theme:{type:String,default:"dark"},language:{type:String,default:"plaintext"},prev:{type:String,default:""},current:{type:String,default:""},folding:{type:Boolean,default:!1},inputDelay:{type:Number,default:0},virtualScroll:{type:[Boolean,Object],default:!1}},setup(t){const e=z(null),n=V(()=>t.virtualScroll?dd({height:500,lineMinHeight:24,delay:100},typeof t.virtualScroll=="object"?De(t.virtualScroll):{}):!1),{meta:r,render:a,list:i}=dG(t,e,n),{minHeight:o}=vG(t,e,n,r);return{list:i,meta:r,minHeight:o,render:a,scrollOptions:n,setLineHeight:(l,u)=>{r.value[l]&&r.value[l].height!==u&&(r.value[l].height=u)},viewer:e}}});function EG(t,e,n,r,a,i){const o=us("Line");return Oe(),Fe("div",{class:qt(["vue-diff-wrapper",`vue-diff-mode-${t.mode} vue-diff-theme-${t.theme}`])},[$e("div",{ref:"viewer",class:"vue-diff-viewer",style:Pn({height:t.scrollOptions?t.scrollOptions.height+"px":void 0})},[$e("div",{class:"vue-diff-viewer-inner",style:Pn({minHeight:t.minHeight})},[(Oe(!0),Fe(Re,null,Na(t.list,(s,l)=>(Oe(),mt(o,{key:l,mode:t.mode,folding:t.folding,language:t.language,meta:t.meta[s.index],render:t.render[s.index],scrollOptions:t.scrollOptions,onSetLineHeight:t.setLineHeight},null,8,["mode","folding","language","meta","render","scrollOptions","onSetLineHeight"]))),128))],4)],4)],2)}var OG=Up(TG,[["render",EG]]),PG={install:(t,e={})=>{const{componentName:n="Diff"}=e;t.component(n,OG)},hljs:Sr};const yT=WW();yT.use(wU);tP(pU).use(yT).use(gp).use(PG,{componentName:"VueDiff"}).mount("#zanllp_dev_gradio_fe");export{$t as $,qe as A,Te as B,Iq as C,L_ as D,sd as E,jG as F,V as G,$i as H,vn as I,Sx as J,Op as K,Aq as L,ia as M,qq as N,bp as O,ee as P,TF as Q,mr as R,mY as S,xt as T,Oe as U,Fe as V,$e as W,_n as X,St as Y,Re as Z,bt as _,M as a,hg as a$,Ui as a0,Nn as a1,mt as a2,Mt as a3,be as a4,An as a5,dt as a6,Pn as a7,Na as a8,xx as a9,FW as aA,nY as aB,Uu as aC,rY as aD,aY as aE,px as aF,_l as aG,tv as aH,Rq as aI,Wx as aJ,ZW as aK,Mq as aL,P4 as aM,CD as aN,sD as aO,kd as aP,Md as aQ,Mx as aR,dj as aS,_Y as aT,Uq as aU,N9 as aV,ns as aW,Ux as aX,fx as aY,zk as aZ,tk as a_,AG as aa,vO as ab,KS as ac,Vq as ad,Fq as ae,ua as af,qt as ag,Dl as ah,wn as ai,kt as aj,Xt as ak,Jo as al,ct as am,Ce as an,Fi as ao,Et as ap,pD as aq,cs as ar,Yn as as,dn as at,$r as au,ot as av,Lt as aw,wt as ax,Ha as ay,Ke as az,Qe as b,xq as b$,ar as b0,y_ as b1,xF as b2,wu as b3,ML as b4,KD as b5,Gd as b6,ke as b7,Bo as b8,vL as b9,Ut as bA,uR as bB,pn as bC,BG as bD,Zq as bE,hY as bF,Nf as bG,LG as bH,X1 as bI,U_ as bJ,Un as bK,ir as bL,gv as bM,fC as bN,Vv as bO,Ml as bP,g_ as bQ,q4 as bR,G4 as bS,s6 as bT,wv as bU,qn as bV,l_ as bW,I6 as bX,yr as bY,j9 as bZ,Cq as b_,zA as ba,UO as bb,Pw as bc,Ow as bd,hu as be,Pl as bf,Qn as bg,yt as bh,LA as bi,zG as bj,st as bk,De as bl,yL as bm,Sv as bn,Go as bo,u_ as bp,XD as bq,JD as br,zv as bs,Pu as bt,ps as bu,tA as bv,_4 as bw,Au as bx,Q4 as by,cl as bz,S as c,yY as c$,Pt as c0,_q as c1,$G as c2,kG as c3,Sq as c4,us as c5,WE as c6,jd as c7,uu as c8,qu as c9,ca as cA,HL as cB,dH as cC,gH as cD,cY as cE,Nq as cF,jq as cG,lY as cH,oY as cI,uY as cJ,sY as cK,UG as cL,Bk as cM,J1 as cN,br as cO,iA as cP,aU as cQ,qW as cR,OW as cS,We as cT,Eq as cU,kq as cV,Wq as cW,eY as cX,wq as cY,Vx as cZ,VS as c_,X$ as ca,zr as cb,Ix as cc,eV as cd,Yq as ce,tV as cf,Qq as cg,Xq as ch,o8 as ci,qF as cj,Jq as ck,w4 as cl,f4 as cm,pC as cn,wr as co,DG as cp,WG as cq,tY as cr,Pq as cs,Tx as ct,Lq as cu,eU as cv,Bi as cw,gm as cx,HG as cy,sc as cz,he as d,oi as d$,pY as d0,vY as d1,QH as d2,gl as d3,od as d4,TW as d5,PW as d6,Hb as d7,nV as d8,Gl as d9,Pp as dA,Kq as dB,Oq as dC,nk as dD,_W as dE,zq as dF,HS as dG,rW as dH,SE as dI,ru as dJ,lE as dK,HE as dL,IG as dM,Vb as dN,Wo as dO,wH as dP,xH as dQ,Tq as dR,bY as dS,wY as dT,Z8 as dU,MD as dV,yD as dW,ED as dX,ln as dY,jn as dZ,b_ as d_,iY as da,Kb as db,Zb as dc,CY as dd,Ex as de,Bq as df,$q as dg,Dq as dh,dY as di,gY as dj,Z0 as dk,RG as dl,V_ as dm,NW as dn,Hq as dp,Xo as dq,Df as dr,Bl as ds,xo as dt,Vd as du,Rd as dv,ID as dw,Ae as dx,kL as dy,ws as dz,rr as e,FG as e0,wD as e1,RE as e2,Ue as e3,NG as e4,MG as e5,_v as e6,VG as e7,W_ as e8,H_ as e9,O_ as ea,n3 as eb,kn as f,Wn as g,te as h,nt as i,Nv as j,sj as k,nd as l,pe as m,Zo as n,Ve as o,fY as p,sa as q,z as r,Gq as s,Fa as t,lt as u,YW as v,pu as w,Lx as x,Zr as y,Jt as z}; diff --git a/vue/dist/assets/index-17a1bd90.js b/vue/dist/assets/index-17a1bd90.js new file mode 100644 index 0000000..57708e3 --- /dev/null +++ b/vue/dist/assets/index-17a1bd90.js @@ -0,0 +1 @@ +import{d as x,a1 as $,aK as g,cV as b,r as w,U as p,V as i,W as a,c as r,a3 as d,X as u,Y as n,Z as B,a8 as V,a4 as m,y as W,z as _,B as v,aj as I,ak as D,cW as N,a0 as R}from"./index-0205daf8.js";/* empty css */const F={class:"container"},K={class:"actions"},L={class:"uni-desc"},U={class:"snapshot"},j=x({__name:"index",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(q){const h=$(),t=g(),f=e=>{h.tabList=W(e.tabs)},k=b(async e=>{await N(`workspace_snapshot_${e.id}`),t.snapshots=t.snapshots.filter(c=>c.id!==e.id),_.success(v("deleteSuccess"))}),o=w(""),y=async()=>{if(!o.value){_.error(v("nameRequired"));return}const e=t.createSnapshot(o.value);await t.addSnapshot(e),_.success(v("saveCompleted"))};return(e,c)=>{const C=I,l=D;return p(),i("div",F,[a("div",K,[r(C,{value:o.value,"onUpdate:value":c[0]||(c[0]=s=>o.value=s),placeholder:e.$t("name"),style:{"max-width":"300px"}},null,8,["value","placeholder"]),r(l,{type:"primary",onClick:y},{default:d(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",L,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",U,[(p(!0),i(B,null,V(m(t).snapshots,s=>(p(),i("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[r(l,{onClick:S=>f(s)},{default:d(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),r(l,{onClick:S=>m(k)(s)},{default:d(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const E=R(j,[["__scopeId","data-v-e55e3025"]]);export{E as default}; diff --git a/vue/dist/assets/index-cb6a3d31.js b/vue/dist/assets/index-6a8edab1.js similarity index 99% rename from vue/dist/assets/index-cb6a3d31.js rename to vue/dist/assets/index-6a8edab1.js index 35e70e2..9160b94 100644 --- a/vue/dist/assets/index-cb6a3d31.js +++ b/vue/dist/assets/index-6a8edab1.js @@ -1 +1 @@ -import{e8 as we,e9 as De,h as p,d as pe,r as D,bk as Ce,ea as Te,an as R,c as y,a as N,bi as qe,e3 as Ne,b as He,G as ue,b7 as Ue,m as Y,_ as Me,dx as le,bA as ze,j as Oe,u as Ge,eb as je,D as Ke,aw as We,ap as Le,P as ve}from"./index-d6594e8e.js";function me(){return typeof BigInt=="function"}function J(a){var e=a.trim(),t=e.startsWith("-");t&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e="0".concat(e));var l=e||"0",c=l.split("."),s=c[0]||"0",g=c[1]||"0";s==="0"&&g==="0"&&(t=!1);var v=t?"-":"";return{negative:t,negativeStr:v,trimStr:l,integerStr:s,decimalStr:g,fullStr:"".concat(v).concat(l)}}function be(a){var e=String(a);return!Number.isNaN(Number(e))&&e.includes("e")}function Q(a){var e=String(a);if(be(a)){var t=Number(e.slice(e.indexOf("e-")+2)),l=e.match(/\.(\d+)/);return l!=null&&l[1]&&(t+=l[1].length),t}return e.includes(".")&&Se(e)?e.length-e.indexOf(".")-1:0}function he(a){var e=String(a);if(be(a)){if(a>Number.MAX_SAFE_INTEGER)return String(me()?BigInt(a).toString():Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new a(Number.MAX_SAFE_INTEGER);if(c0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":he(this.number):this.origin}}]),a}(),Ye=function(){function a(e){if(De(this,a),p(this,"origin",""),Be(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var t=e;if(be(t)&&(t=Number(t)),t=typeof t=="string"?t:he(t),Se(t)){var l=J(t);this.negative=l.negative;var c=l.trimStr.split(".");this.integer=BigInt(c[0]);var s=c[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return we(a,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var l="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(l)}},{key:"negate",value:function(){var t=new a(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new a(t);var l=new a(t);if(l.isInvalidate())return this;var c=Math.max(this.getDecimalStr().length,l.getDecimalStr().length),s=this.alignDecimal(c),g=l.alignDecimal(c),v=(s+g).toString(),d=J(v),f=d.negativeStr,m=d.trimStr,i="".concat(f).concat(m.padStart(c+1,"0"));return new a("".concat(i.slice(0,-c),".").concat(i.slice(-c)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),a}();function k(a){return me()?new Ye(a):new Xe(a)}function ge(a,e,t){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(a==="")return"";var c=J(a),s=c.negativeStr,g=c.integerStr,v=c.decimalStr,d="".concat(e).concat(v),f="".concat(s).concat(g);if(t>=0){var m=Number(v[t]);if(m>=5&&!l){var i=k(a).add("".concat(s,"0.").concat("0".repeat(t)).concat(10-m));return ge(i.toString(),e,t,l)}return t===0?f:"".concat(f).concat(e).concat(v.padEnd(t,"0").slice(0,t))}return d===".0"?f:"".concat(f).concat(d)}var Je=200,Qe=600;const Ze=pe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var l=t.slots,c=t.emit,s=D(),g=function(f,m){f.preventDefault(),c("step",m);function i(){c("step",m),s.value=setTimeout(i,Je)}s.value=setTimeout(i,Qe)},v=function(){clearTimeout(s.value)};return Ce(function(){v()}),function(){if(Te())return null;var d=e.prefixCls,f=e.upDisabled,m=e.downDisabled,i="".concat(d,"-handler"),V=R(i,"".concat(i,"-up"),p({},"".concat(i,"-up-disabled"),f)),_=R(i,"".concat(i,"-down"),p({},"".concat(i,"-down-disabled"),m)),C={unselectable:"on",role:"button",onMouseup:v,onMouseleave:v},x=l.upNode,A=l.downNode;return y("div",{class:"".concat(i,"-wrap")},[y("span",N(N({},C),{},{onMousedown:function(M){g(M,!0)},"aria-label":"Increase Value","aria-disabled":f,class:V}),[(x==null?void 0:x())||y("span",{unselectable:"on",class:"".concat(d,"-handler-up-inner")},null)]),y("span",N(N({},C),{},{onMousedown:function(M){g(M,!1)},"aria-label":"Decrease Value","aria-disabled":m,class:_}),[(A==null?void 0:A())||y("span",{unselectable:"on",class:"".concat(d,"-handler-down-inner")},null)])])}}});function et(a,e){var t=D(null);function l(){try{var s=a.value,g=s.selectionStart,v=s.selectionEnd,d=s.value,f=d.substring(0,g),m=d.substring(v);t.value={start:g,end:v,value:d,beforeTxt:f,afterTxt:m}}catch{}}function c(){if(a.value&&t.value&&e.value)try{var s=a.value.value,g=t.value,v=g.beforeTxt,d=g.afterTxt,f=g.start,m=s.length;if(s.endsWith(d))m=s.length-t.value.afterTxt.length;else if(s.startsWith(v))m=v.length;else{var i=v[f-1],V=s.indexOf(i,f-1);V!==-1&&(m=V+1)}a.value.setSelectionRange(m,m)}catch(_){qe(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_.message))}}return[l,c]}const tt=function(){var a=D(0),e=function(){Ne.cancel(a.value)};return Ce(function(){e()}),function(t){e(),a.value=Ne(function(){t()})}};var nt=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],Ie=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},xe=function(e){var t=k(e);return t.isInvalidate()?null:t},Ve=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const at=pe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:N(N({},Ve()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var l=t.attrs,c=t.slots,s=t.emit,g=t.expose,v=D(),d=D(!1),f=D(!1),m=D(!1),i=D(k(e.value));function V(u){e.value===void 0&&(i.value=u)}var _=function(n,o){if(!o)return e.precision>=0?e.precision:Math.max(Q(n),Q(e.step))},C=function(n){var o=String(n);if(e.parser)return e.parser(o);var r=o;return e.decimalSeparator&&(r=r.replace(e.decimalSeparator,".")),r.replace(/[^\w.-]+/g,"")},x=D(""),A=function(n,o){if(e.formatter)return e.formatter(n,{userTyping:o,input:String(x.value)});var r=typeof n=="number"?he(n):n;if(!o){var I=_(r,o);if(Se(r)&&(e.decimalSeparator||I>=0)){var S=e.decimalSeparator||".";r=ge(r,S,I)}}return r},G=function(){var u=e.value;return i.value.isInvalidate()&&["string","number"].includes(He(u))?Number.isNaN(u)?"":u:A(i.value.toString(),!1)}();x.value=G;function M(u,n){x.value=A(u.isInvalidate()?u.toString(!1):u.toString(!n),n)}var P=ue(function(){return xe(e.max)}),E=ue(function(){return xe(e.min)}),h=ue(function(){return!P.value||!i.value||i.value.isInvalidate()?!1:P.value.lessEquals(i.value)}),T=ue(function(){return!E.value||!i.value||i.value.isInvalidate()?!1:i.value.lessEquals(E.value)}),F=et(v,d),w=Ue(F,2),q=w[0],Z=w[1],H=function(n){return P.value&&!n.lessEquals(P.value)?P.value:E.value&&!E.value.lessEquals(n)?E.value:null},U=function(n){return!H(n)},z=function(n,o){var r=n,I=U(r)||r.isEmpty();if(!r.isEmpty()&&!o&&(r=H(r)||r,I=!0),!e.readonly&&!e.disabled&&I){var S=r.toString(),B=_(S,o);if(B>=0&&(r=k(ge(S,".",B))),!r.equals(i.value)){var $;V(r),($=e.onChange)===null||$===void 0||$.call(e,r.isEmpty()?null:Ie(e.stringMode,r)),e.value===void 0&&M(r,o)}return r}return i.value},j=tt(),K=function u(n){var o;if(q(),x.value=n,!m.value){var r=C(n),I=k(r);I.isNaN()||z(I,!0)}(o=e.onInput)===null||o===void 0||o.call(e,n),j(function(){var S=n;e.parser||(S=n.replace(/。/g,".")),S!==n&&u(S)})},W=function(){m.value=!0},ee=function(){m.value=!1,K(v.value.value)},L=function(n){K(n.target.value)},X=function(n){var o,r;if(!(n&&h.value||!n&&T.value)){f.value=!1;var I=k(e.step);n||(I=I.negate());var S=(i.value||k(0)).add(I.toString()),B=z(S,!1);(o=e.onStep)===null||o===void 0||o.call(e,Ie(e.stringMode,B),{offset:e.step,type:n?"up":"down"}),(r=v.value)===null||r===void 0||r.focus()}},te=function(n){var o=k(C(x.value)),r=o;o.isNaN()?r=i.value:r=z(o,n),e.value!==void 0?M(i.value,!1):r.isNaN()||M(r,!1)},oe=function(n){var o=n.which;if(f.value=!0,o===le.ENTER){var r;m.value||(f.value=!1),te(!1),(r=e.onPressEnter)===null||r===void 0||r.call(e,n)}e.keyboard!==!1&&!m.value&&[le.UP,le.DOWN].includes(o)&&(X(le.UP===o),n.preventDefault())},b=function(){f.value=!1},O=function(n){te(!1),d.value=!1,f.value=!1,s("blur",n)};return Y(function(){return e.precision},function(){i.value.isInvalidate()||M(i.value,!1)},{flush:"post"}),Y(function(){return e.value},function(){var u=k(e.value);i.value=u;var n=k(C(x.value));(!u.equals(n)||!f.value||e.formatter)&&M(u,f.value)},{flush:"post"}),Y(x,function(){e.formatter&&Z()},{flush:"post"}),Y(function(){return e.disabled},function(u){u&&(d.value=!1)}),g({focus:function(){var n;(n=v.value)===null||n===void 0||n.focus()},blur:function(){var n;(n=v.value)===null||n===void 0||n.blur()}}),function(){var u,n=N(N({},l),e),o=n.prefixCls,r=o===void 0?"rc-input-number":o,I=n.min,S=n.max,B=n.step,$=B===void 0?1:B;n.defaultValue,n.value;var ne=n.disabled,ae=n.readonly;n.keyboard;var re=n.controls,se=re===void 0?!0:re,ie=n.autofocus;n.stringMode,n.parser,n.formatter,n.precision,n.decimalSeparator,n.onChange,n.onInput,n.onPressEnter,n.onStep;var _e=n.lazy,ke=n.class,Fe=n.style,Ae=Me(n,nt),$e=c.upHandler,Pe=c.downHandler,ye="".concat(r,"-input"),ce={};return _e?ce.onChange=L:ce.onInput=L,y("div",{class:R(r,ke,(u={},p(u,"".concat(r,"-focused"),d.value),p(u,"".concat(r,"-disabled"),ne),p(u,"".concat(r,"-readonly"),ae),p(u,"".concat(r,"-not-a-number"),i.value.isNaN()),p(u,"".concat(r,"-out-of-range"),!i.value.isInvalidate()&&!U(i.value)),u)),style:Fe,onKeydown:oe,onKeyup:b},[se&&y(Ze,{prefixCls:r,upDisabled:h.value,downDisabled:T.value,onStep:X},{upNode:$e,downNode:Pe}),y("div",{class:"".concat(ye,"-wrap")},[y("input",N(N(N({autofocus:ie,autocomplete:"off",role:"spinbutton","aria-valuemin":I,"aria-valuemax":S,"aria-valuenow":i.value.isInvalidate()?null:i.value.toString(),step:$},Ae),{},{ref:v,class:ye,value:x.value,disabled:ne,readonly:ae,onFocus:function(Re){d.value=!0,s("focus",Re)}},ce),{},{onBlur:O,onCompositionstart:W,onCompositionend:ee}),null)])])}}});function de(a){return a!=null}var rt=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],Ee=Ve(),it=function(){return N(N({},Ee),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:ve.any,addonAfter:ve.any,prefix:ve.any,"onUpdate:value":Ee.onChange,valueModifiers:Object})},fe=pe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:it(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var l=t.emit,c=t.expose,s=t.attrs,g=t.slots,v=Oe(),d=Ge("input-number",e),f=d.prefixCls,m=d.size,i=d.direction,V=D(e.value===void 0?e.defaultValue:e.value),_=D(!1);Y(function(){return e.value},function(){V.value=e.value});var C=D(null),x=function(){var h;(h=C.value)===null||h===void 0||h.focus()},A=function(){var h;(h=C.value)===null||h===void 0||h.blur()};c({focus:x,blur:A});var G=function(h){e.value===void 0&&(V.value=h),l("update:value",h),l("change",h),v.onFieldChange()},M=function(h){_.value=!1,l("blur",h),v.onFieldBlur()},P=function(h){_.value=!0,l("focus",h)};return function(){var E,h,T,F,w=N(N({},s),e),q=w.class,Z=w.bordered,H=w.readonly,U=w.style,z=w.addonBefore,j=z===void 0?(E=g.addonBefore)===null||E===void 0?void 0:E.call(g):z,K=w.addonAfter,W=K===void 0?(h=g.addonAfter)===null||h===void 0?void 0:h.call(g):K,ee=w.prefix,L=ee===void 0?(T=g.prefix)===null||T===void 0?void 0:T.call(g):ee,X=w.valueModifiers,te=X===void 0?{}:X,oe=Me(w,rt),b=f.value,O=m.value,u=R((F={},p(F,"".concat(b,"-lg"),O==="large"),p(F,"".concat(b,"-sm"),O==="small"),p(F,"".concat(b,"-rtl"),i.value==="rtl"),p(F,"".concat(b,"-readonly"),H),p(F,"".concat(b,"-borderless"),!Z),F),q),n=y(at,N(N({},We(oe,["size","defaultValue"])),{},{ref:C,lazy:!!te.lazy,value:V.value,class:u,prefixCls:b,readonly:H,onChange:G,onBlur:M,onFocus:P}),{upHandler:function(){return y(je,{class:"".concat(b,"-handler-up-inner")},null)},downHandler:function(){return y(Ke,{class:"".concat(b,"-handler-down-inner")},null)}}),o=de(j)||de(W);if(de(L)){var r,I=R("".concat(b,"-affix-wrapper"),(r={},p(r,"".concat(b,"-affix-wrapper-focused"),_.value),p(r,"".concat(b,"-affix-wrapper-disabled"),e.disabled),p(r,"".concat(b,"-affix-wrapper-rtl"),i.value==="rtl"),p(r,"".concat(b,"-affix-wrapper-readonly"),H),p(r,"".concat(b,"-affix-wrapper-borderless"),!Z),p(r,"".concat(q),!o&&q),r));n=y("div",{class:I,style:U,onMouseup:function(){return C.value.focus()}},[y("span",{class:"".concat(b,"-prefix")},[L]),n])}if(o){var S,B="".concat(b,"-group"),$="".concat(B,"-addon"),ne=j?y("div",{class:$},[j]):null,ae=W?y("div",{class:$},[W]):null,re=R("".concat(b,"-wrapper"),B,p({},"".concat(B,"-rtl"),i.value==="rtl")),se=R("".concat(b,"-group-wrapper"),(S={},p(S,"".concat(b,"-group-wrapper-sm"),O==="small"),p(S,"".concat(b,"-group-wrapper-lg"),O==="large"),p(S,"".concat(b,"-group-wrapper-rtl"),i.value==="rtl"),S),q);n=y("div",{class:se,style:U},[y("div",{class:re},[ne,n,ae])])}return Le(n,{style:U})}}});const ot=ze(fe,{install:function(e){return e.component(fe.name,fe),e}});export{ot as _}; +import{e8 as we,e9 as De,h as p,d as pe,r as D,bk as Ce,ea as Te,an as R,c as y,a as N,bi as qe,e3 as Ne,b as He,G as ue,b7 as Ue,m as Y,_ as Me,dx as le,bA as ze,j as Oe,u as Ge,eb as je,D as Ke,aw as We,ap as Le,P as ve}from"./index-0205daf8.js";function me(){return typeof BigInt=="function"}function J(a){var e=a.trim(),t=e.startsWith("-");t&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e="0".concat(e));var l=e||"0",c=l.split("."),s=c[0]||"0",g=c[1]||"0";s==="0"&&g==="0"&&(t=!1);var v=t?"-":"";return{negative:t,negativeStr:v,trimStr:l,integerStr:s,decimalStr:g,fullStr:"".concat(v).concat(l)}}function be(a){var e=String(a);return!Number.isNaN(Number(e))&&e.includes("e")}function Q(a){var e=String(a);if(be(a)){var t=Number(e.slice(e.indexOf("e-")+2)),l=e.match(/\.(\d+)/);return l!=null&&l[1]&&(t+=l[1].length),t}return e.includes(".")&&Se(e)?e.length-e.indexOf(".")-1:0}function he(a){var e=String(a);if(be(a)){if(a>Number.MAX_SAFE_INTEGER)return String(me()?BigInt(a).toString():Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new a(Number.MAX_SAFE_INTEGER);if(c0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":he(this.number):this.origin}}]),a}(),Ye=function(){function a(e){if(De(this,a),p(this,"origin",""),Be(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var t=e;if(be(t)&&(t=Number(t)),t=typeof t=="string"?t:he(t),Se(t)){var l=J(t);this.negative=l.negative;var c=l.trimStr.split(".");this.integer=BigInt(c[0]);var s=c[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return we(a,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var l="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(l)}},{key:"negate",value:function(){var t=new a(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new a(t);var l=new a(t);if(l.isInvalidate())return this;var c=Math.max(this.getDecimalStr().length,l.getDecimalStr().length),s=this.alignDecimal(c),g=l.alignDecimal(c),v=(s+g).toString(),d=J(v),f=d.negativeStr,m=d.trimStr,i="".concat(f).concat(m.padStart(c+1,"0"));return new a("".concat(i.slice(0,-c),".").concat(i.slice(-c)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),a}();function k(a){return me()?new Ye(a):new Xe(a)}function ge(a,e,t){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(a==="")return"";var c=J(a),s=c.negativeStr,g=c.integerStr,v=c.decimalStr,d="".concat(e).concat(v),f="".concat(s).concat(g);if(t>=0){var m=Number(v[t]);if(m>=5&&!l){var i=k(a).add("".concat(s,"0.").concat("0".repeat(t)).concat(10-m));return ge(i.toString(),e,t,l)}return t===0?f:"".concat(f).concat(e).concat(v.padEnd(t,"0").slice(0,t))}return d===".0"?f:"".concat(f).concat(d)}var Je=200,Qe=600;const Ze=pe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var l=t.slots,c=t.emit,s=D(),g=function(f,m){f.preventDefault(),c("step",m);function i(){c("step",m),s.value=setTimeout(i,Je)}s.value=setTimeout(i,Qe)},v=function(){clearTimeout(s.value)};return Ce(function(){v()}),function(){if(Te())return null;var d=e.prefixCls,f=e.upDisabled,m=e.downDisabled,i="".concat(d,"-handler"),V=R(i,"".concat(i,"-up"),p({},"".concat(i,"-up-disabled"),f)),_=R(i,"".concat(i,"-down"),p({},"".concat(i,"-down-disabled"),m)),C={unselectable:"on",role:"button",onMouseup:v,onMouseleave:v},x=l.upNode,A=l.downNode;return y("div",{class:"".concat(i,"-wrap")},[y("span",N(N({},C),{},{onMousedown:function(M){g(M,!0)},"aria-label":"Increase Value","aria-disabled":f,class:V}),[(x==null?void 0:x())||y("span",{unselectable:"on",class:"".concat(d,"-handler-up-inner")},null)]),y("span",N(N({},C),{},{onMousedown:function(M){g(M,!1)},"aria-label":"Decrease Value","aria-disabled":m,class:_}),[(A==null?void 0:A())||y("span",{unselectable:"on",class:"".concat(d,"-handler-down-inner")},null)])])}}});function et(a,e){var t=D(null);function l(){try{var s=a.value,g=s.selectionStart,v=s.selectionEnd,d=s.value,f=d.substring(0,g),m=d.substring(v);t.value={start:g,end:v,value:d,beforeTxt:f,afterTxt:m}}catch{}}function c(){if(a.value&&t.value&&e.value)try{var s=a.value.value,g=t.value,v=g.beforeTxt,d=g.afterTxt,f=g.start,m=s.length;if(s.endsWith(d))m=s.length-t.value.afterTxt.length;else if(s.startsWith(v))m=v.length;else{var i=v[f-1],V=s.indexOf(i,f-1);V!==-1&&(m=V+1)}a.value.setSelectionRange(m,m)}catch(_){qe(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_.message))}}return[l,c]}const tt=function(){var a=D(0),e=function(){Ne.cancel(a.value)};return Ce(function(){e()}),function(t){e(),a.value=Ne(function(){t()})}};var nt=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],Ie=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},xe=function(e){var t=k(e);return t.isInvalidate()?null:t},Ve=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const at=pe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:N(N({},Ve()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var l=t.attrs,c=t.slots,s=t.emit,g=t.expose,v=D(),d=D(!1),f=D(!1),m=D(!1),i=D(k(e.value));function V(u){e.value===void 0&&(i.value=u)}var _=function(n,o){if(!o)return e.precision>=0?e.precision:Math.max(Q(n),Q(e.step))},C=function(n){var o=String(n);if(e.parser)return e.parser(o);var r=o;return e.decimalSeparator&&(r=r.replace(e.decimalSeparator,".")),r.replace(/[^\w.-]+/g,"")},x=D(""),A=function(n,o){if(e.formatter)return e.formatter(n,{userTyping:o,input:String(x.value)});var r=typeof n=="number"?he(n):n;if(!o){var I=_(r,o);if(Se(r)&&(e.decimalSeparator||I>=0)){var S=e.decimalSeparator||".";r=ge(r,S,I)}}return r},G=function(){var u=e.value;return i.value.isInvalidate()&&["string","number"].includes(He(u))?Number.isNaN(u)?"":u:A(i.value.toString(),!1)}();x.value=G;function M(u,n){x.value=A(u.isInvalidate()?u.toString(!1):u.toString(!n),n)}var P=ue(function(){return xe(e.max)}),E=ue(function(){return xe(e.min)}),h=ue(function(){return!P.value||!i.value||i.value.isInvalidate()?!1:P.value.lessEquals(i.value)}),T=ue(function(){return!E.value||!i.value||i.value.isInvalidate()?!1:i.value.lessEquals(E.value)}),F=et(v,d),w=Ue(F,2),q=w[0],Z=w[1],H=function(n){return P.value&&!n.lessEquals(P.value)?P.value:E.value&&!E.value.lessEquals(n)?E.value:null},U=function(n){return!H(n)},z=function(n,o){var r=n,I=U(r)||r.isEmpty();if(!r.isEmpty()&&!o&&(r=H(r)||r,I=!0),!e.readonly&&!e.disabled&&I){var S=r.toString(),B=_(S,o);if(B>=0&&(r=k(ge(S,".",B))),!r.equals(i.value)){var $;V(r),($=e.onChange)===null||$===void 0||$.call(e,r.isEmpty()?null:Ie(e.stringMode,r)),e.value===void 0&&M(r,o)}return r}return i.value},j=tt(),K=function u(n){var o;if(q(),x.value=n,!m.value){var r=C(n),I=k(r);I.isNaN()||z(I,!0)}(o=e.onInput)===null||o===void 0||o.call(e,n),j(function(){var S=n;e.parser||(S=n.replace(/。/g,".")),S!==n&&u(S)})},W=function(){m.value=!0},ee=function(){m.value=!1,K(v.value.value)},L=function(n){K(n.target.value)},X=function(n){var o,r;if(!(n&&h.value||!n&&T.value)){f.value=!1;var I=k(e.step);n||(I=I.negate());var S=(i.value||k(0)).add(I.toString()),B=z(S,!1);(o=e.onStep)===null||o===void 0||o.call(e,Ie(e.stringMode,B),{offset:e.step,type:n?"up":"down"}),(r=v.value)===null||r===void 0||r.focus()}},te=function(n){var o=k(C(x.value)),r=o;o.isNaN()?r=i.value:r=z(o,n),e.value!==void 0?M(i.value,!1):r.isNaN()||M(r,!1)},oe=function(n){var o=n.which;if(f.value=!0,o===le.ENTER){var r;m.value||(f.value=!1),te(!1),(r=e.onPressEnter)===null||r===void 0||r.call(e,n)}e.keyboard!==!1&&!m.value&&[le.UP,le.DOWN].includes(o)&&(X(le.UP===o),n.preventDefault())},b=function(){f.value=!1},O=function(n){te(!1),d.value=!1,f.value=!1,s("blur",n)};return Y(function(){return e.precision},function(){i.value.isInvalidate()||M(i.value,!1)},{flush:"post"}),Y(function(){return e.value},function(){var u=k(e.value);i.value=u;var n=k(C(x.value));(!u.equals(n)||!f.value||e.formatter)&&M(u,f.value)},{flush:"post"}),Y(x,function(){e.formatter&&Z()},{flush:"post"}),Y(function(){return e.disabled},function(u){u&&(d.value=!1)}),g({focus:function(){var n;(n=v.value)===null||n===void 0||n.focus()},blur:function(){var n;(n=v.value)===null||n===void 0||n.blur()}}),function(){var u,n=N(N({},l),e),o=n.prefixCls,r=o===void 0?"rc-input-number":o,I=n.min,S=n.max,B=n.step,$=B===void 0?1:B;n.defaultValue,n.value;var ne=n.disabled,ae=n.readonly;n.keyboard;var re=n.controls,se=re===void 0?!0:re,ie=n.autofocus;n.stringMode,n.parser,n.formatter,n.precision,n.decimalSeparator,n.onChange,n.onInput,n.onPressEnter,n.onStep;var _e=n.lazy,ke=n.class,Fe=n.style,Ae=Me(n,nt),$e=c.upHandler,Pe=c.downHandler,ye="".concat(r,"-input"),ce={};return _e?ce.onChange=L:ce.onInput=L,y("div",{class:R(r,ke,(u={},p(u,"".concat(r,"-focused"),d.value),p(u,"".concat(r,"-disabled"),ne),p(u,"".concat(r,"-readonly"),ae),p(u,"".concat(r,"-not-a-number"),i.value.isNaN()),p(u,"".concat(r,"-out-of-range"),!i.value.isInvalidate()&&!U(i.value)),u)),style:Fe,onKeydown:oe,onKeyup:b},[se&&y(Ze,{prefixCls:r,upDisabled:h.value,downDisabled:T.value,onStep:X},{upNode:$e,downNode:Pe}),y("div",{class:"".concat(ye,"-wrap")},[y("input",N(N(N({autofocus:ie,autocomplete:"off",role:"spinbutton","aria-valuemin":I,"aria-valuemax":S,"aria-valuenow":i.value.isInvalidate()?null:i.value.toString(),step:$},Ae),{},{ref:v,class:ye,value:x.value,disabled:ne,readonly:ae,onFocus:function(Re){d.value=!0,s("focus",Re)}},ce),{},{onBlur:O,onCompositionstart:W,onCompositionend:ee}),null)])])}}});function de(a){return a!=null}var rt=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],Ee=Ve(),it=function(){return N(N({},Ee),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:ve.any,addonAfter:ve.any,prefix:ve.any,"onUpdate:value":Ee.onChange,valueModifiers:Object})},fe=pe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:it(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var l=t.emit,c=t.expose,s=t.attrs,g=t.slots,v=Oe(),d=Ge("input-number",e),f=d.prefixCls,m=d.size,i=d.direction,V=D(e.value===void 0?e.defaultValue:e.value),_=D(!1);Y(function(){return e.value},function(){V.value=e.value});var C=D(null),x=function(){var h;(h=C.value)===null||h===void 0||h.focus()},A=function(){var h;(h=C.value)===null||h===void 0||h.blur()};c({focus:x,blur:A});var G=function(h){e.value===void 0&&(V.value=h),l("update:value",h),l("change",h),v.onFieldChange()},M=function(h){_.value=!1,l("blur",h),v.onFieldBlur()},P=function(h){_.value=!0,l("focus",h)};return function(){var E,h,T,F,w=N(N({},s),e),q=w.class,Z=w.bordered,H=w.readonly,U=w.style,z=w.addonBefore,j=z===void 0?(E=g.addonBefore)===null||E===void 0?void 0:E.call(g):z,K=w.addonAfter,W=K===void 0?(h=g.addonAfter)===null||h===void 0?void 0:h.call(g):K,ee=w.prefix,L=ee===void 0?(T=g.prefix)===null||T===void 0?void 0:T.call(g):ee,X=w.valueModifiers,te=X===void 0?{}:X,oe=Me(w,rt),b=f.value,O=m.value,u=R((F={},p(F,"".concat(b,"-lg"),O==="large"),p(F,"".concat(b,"-sm"),O==="small"),p(F,"".concat(b,"-rtl"),i.value==="rtl"),p(F,"".concat(b,"-readonly"),H),p(F,"".concat(b,"-borderless"),!Z),F),q),n=y(at,N(N({},We(oe,["size","defaultValue"])),{},{ref:C,lazy:!!te.lazy,value:V.value,class:u,prefixCls:b,readonly:H,onChange:G,onBlur:M,onFocus:P}),{upHandler:function(){return y(je,{class:"".concat(b,"-handler-up-inner")},null)},downHandler:function(){return y(Ke,{class:"".concat(b,"-handler-down-inner")},null)}}),o=de(j)||de(W);if(de(L)){var r,I=R("".concat(b,"-affix-wrapper"),(r={},p(r,"".concat(b,"-affix-wrapper-focused"),_.value),p(r,"".concat(b,"-affix-wrapper-disabled"),e.disabled),p(r,"".concat(b,"-affix-wrapper-rtl"),i.value==="rtl"),p(r,"".concat(b,"-affix-wrapper-readonly"),H),p(r,"".concat(b,"-affix-wrapper-borderless"),!Z),p(r,"".concat(q),!o&&q),r));n=y("div",{class:I,style:U,onMouseup:function(){return C.value.focus()}},[y("span",{class:"".concat(b,"-prefix")},[L]),n])}if(o){var S,B="".concat(b,"-group"),$="".concat(B,"-addon"),ne=j?y("div",{class:$},[j]):null,ae=W?y("div",{class:$},[W]):null,re=R("".concat(b,"-wrapper"),B,p({},"".concat(B,"-rtl"),i.value==="rtl")),se=R("".concat(b,"-group-wrapper"),(S={},p(S,"".concat(b,"-group-wrapper-sm"),O==="small"),p(S,"".concat(b,"-group-wrapper-lg"),O==="large"),p(S,"".concat(b,"-group-wrapper-rtl"),i.value==="rtl"),S),q);n=y("div",{class:se,style:U},[y("div",{class:re},[ne,n,ae])])}return Le(n,{style:U})}}});const ot=ze(fe,{install:function(e){return e.component(fe.name,fe),e}});export{ot as _}; diff --git a/vue/dist/assets/index-30b8f89a.js b/vue/dist/assets/index-6d8e3499.js similarity index 94% rename from vue/dist/assets/index-30b8f89a.js rename to vue/dist/assets/index-6d8e3499.js index 15ca1da..cc0ba46 100644 --- a/vue/dist/assets/index-30b8f89a.js +++ b/vue/dist/assets/index-6d8e3499.js @@ -1 +1 @@ -import{d as F,u as S,G as k,an as j,h as d,c as s,aq as U,e7 as W,r as q,bh as G,Z as V,dw as Z,P as N,cb as z}from"./index-d6594e8e.js";var H=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},J=F({compatConfig:{MODE:3},name:"ACheckableTag",props:H(),setup:function(e,i){var l=i.slots,r=i.emit,g=S("tag",e),u=g.prefixCls,o=function(C){var v=e.checked;r("update:checked",!v),r("change",!v),r("click",C)},p=k(function(){var a;return j(u.value,(a={},d(a,"".concat(u.value,"-checkable"),!0),d(a,"".concat(u.value,"-checkable-checked"),e.checked),a))});return function(){var a;return s("span",{class:p.value,onClick:o},[(a=l.default)===null||a===void 0?void 0:a.call(l)])}}});const b=J;var K=new RegExp("^(".concat(U.join("|"),")(-inverse)?$")),L=new RegExp("^(".concat(W.join("|"),")$")),Q=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:N.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:N.any}},f=F({compatConfig:{MODE:3},name:"ATag",props:Q(),slots:["closeIcon","icon"],setup:function(e,i){var l=i.slots,r=i.emit,g=i.attrs,u=S("tag",e),o=u.prefixCls,p=u.direction,a=q(!0);G(function(){e.visible!==void 0&&(a.value=e.visible)});var C=function(t){t.stopPropagation(),r("update:visible",!1),r("close",t),!t.defaultPrevented&&e.visible===void 0&&(a.value=!1)},v=k(function(){var n=e.color;return n?K.test(n)||L.test(n):!1}),E=k(function(){var n;return j(o.value,(n={},d(n,"".concat(o.value,"-").concat(e.color),v.value),d(n,"".concat(o.value,"-has-color"),e.color&&!v.value),d(n,"".concat(o.value,"-hidden"),!a.value),d(n,"".concat(o.value,"-rtl"),p.value==="rtl"),n))});return function(){var n,t,h,m=e.icon,w=m===void 0?(n=l.icon)===null||n===void 0?void 0:n.call(l):m,y=e.color,_=e.closeIcon,P=_===void 0?(t=l.closeIcon)===null||t===void 0?void 0:t.call(l):_,x=e.closable,R=x===void 0?!1:x,B=function(){return R?P?s("span",{class:"".concat(o.value,"-close-icon"),onClick:C},[P]):s(z,{class:"".concat(o.value,"-close-icon"),onClick:C},null):null},O={backgroundColor:y&&!v.value?y:void 0},I=w||null,T=(h=l.default)===null||h===void 0?void 0:h.call(l),A=I?s(V,null,[I,s("span",null,[T])]):T,D="onClick"in g,$=s("span",{class:E.value,style:O},[A,B()]);return D?s(Z,null,{default:function(){return[$]}}):$}}});f.CheckableTag=b;f.install=function(c){return c.component(f.name,f),c.component(b.name,b),c};const Y=f;export{Y as _}; +import{d as F,u as S,G as k,an as j,h as d,c as s,aq as U,e7 as W,r as q,bh as G,Z as V,dw as Z,P as N,cb as z}from"./index-0205daf8.js";var H=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},J=F({compatConfig:{MODE:3},name:"ACheckableTag",props:H(),setup:function(e,i){var l=i.slots,r=i.emit,g=S("tag",e),u=g.prefixCls,o=function(C){var v=e.checked;r("update:checked",!v),r("change",!v),r("click",C)},p=k(function(){var a;return j(u.value,(a={},d(a,"".concat(u.value,"-checkable"),!0),d(a,"".concat(u.value,"-checkable-checked"),e.checked),a))});return function(){var a;return s("span",{class:p.value,onClick:o},[(a=l.default)===null||a===void 0?void 0:a.call(l)])}}});const b=J;var K=new RegExp("^(".concat(U.join("|"),")(-inverse)?$")),L=new RegExp("^(".concat(W.join("|"),")$")),Q=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:N.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:N.any}},f=F({compatConfig:{MODE:3},name:"ATag",props:Q(),slots:["closeIcon","icon"],setup:function(e,i){var l=i.slots,r=i.emit,g=i.attrs,u=S("tag",e),o=u.prefixCls,p=u.direction,a=q(!0);G(function(){e.visible!==void 0&&(a.value=e.visible)});var C=function(t){t.stopPropagation(),r("update:visible",!1),r("close",t),!t.defaultPrevented&&e.visible===void 0&&(a.value=!1)},v=k(function(){var n=e.color;return n?K.test(n)||L.test(n):!1}),E=k(function(){var n;return j(o.value,(n={},d(n,"".concat(o.value,"-").concat(e.color),v.value),d(n,"".concat(o.value,"-has-color"),e.color&&!v.value),d(n,"".concat(o.value,"-hidden"),!a.value),d(n,"".concat(o.value,"-rtl"),p.value==="rtl"),n))});return function(){var n,t,h,m=e.icon,w=m===void 0?(n=l.icon)===null||n===void 0?void 0:n.call(l):m,y=e.color,_=e.closeIcon,P=_===void 0?(t=l.closeIcon)===null||t===void 0?void 0:t.call(l):_,x=e.closable,R=x===void 0?!1:x,B=function(){return R?P?s("span",{class:"".concat(o.value,"-close-icon"),onClick:C},[P]):s(z,{class:"".concat(o.value,"-close-icon"),onClick:C},null):null},O={backgroundColor:y&&!v.value?y:void 0},I=w||null,T=(h=l.default)===null||h===void 0?void 0:h.call(l),A=I?s(V,null,[I,s("span",null,[T])]):T,D="onClick"in g,$=s("span",{class:E.value,style:O},[A,B()]);return D?s(Z,null,{default:function(){return[$]}}):$}}});f.CheckableTag=b;f.install=function(c){return c.component(f.name,f),c.component(b.name,b),c};const Y=f;export{Y as _}; diff --git a/vue/dist/assets/index-e620c28b.js b/vue/dist/assets/index-728b29ca.js similarity index 97% rename from vue/dist/assets/index-e620c28b.js rename to vue/dist/assets/index-728b29ca.js index 39fd75a..4c217de 100644 --- a/vue/dist/assets/index-e620c28b.js +++ b/vue/dist/assets/index-728b29ca.js @@ -1 +1 @@ -import{cw as j,ay as z,d as K,j as U,dv as $,w as g,r as b,G as S,m as A,u as D,o as E,az as G,h as d,c as s,a as C,aw as H,bf as L,g as x,dw as W,P as c,dx as _}from"./index-d6594e8e.js";var R=z("small","default"),q=function(){return{id:String,prefixCls:String,size:c.oneOf(R),disabled:{type:Boolean,default:void 0},checkedChildren:c.any,unCheckedChildren:c.any,tabindex:c.oneOfType([c.string,c.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:c.oneOfType([c.string,c.number,c.looseBool]),checkedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!0),unCheckedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},J=K({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:q(),slots:["checkedChildren","unCheckedChildren"],setup:function(n,r){var o=r.attrs,y=r.slots,B=r.expose,l=r.emit,m=U();$(function(){g(!("defaultChecked"in o),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),g(!("value"in o),"Switch","`value` is not validate prop, do you mean `checked`?")});var h=b(n.checked!==void 0?n.checked:o.defaultChecked),f=S(function(){return h.value===n.checkedValue});A(function(){return n.checked},function(){h.value=n.checked});var v=D("switch",n),u=v.prefixCls,F=v.direction,T=v.size,i=b(),w=function(){var e;(e=i.value)===null||e===void 0||e.focus()},V=function(){var e;(e=i.value)===null||e===void 0||e.blur()};B({focus:w,blur:V}),E(function(){G(function(){n.autofocus&&!n.disabled&&i.value.focus()})});var k=function(e,t){n.disabled||(l("update:checked",e),l("change",e,t),m.onFieldChange())},I=function(e){l("blur",e)},N=function(e){w();var t=f.value?n.unCheckedValue:n.checkedValue;k(t,e),l("click",t,e)},M=function(e){e.keyCode===_.LEFT?k(n.unCheckedValue,e):e.keyCode===_.RIGHT&&k(n.checkedValue,e),l("keydown",e)},O=function(e){var t;(t=i.value)===null||t===void 0||t.blur(),l("mouseup",e)},P=S(function(){var a;return a={},d(a,"".concat(u.value,"-small"),T.value==="small"),d(a,"".concat(u.value,"-loading"),n.loading),d(a,"".concat(u.value,"-checked"),f.value),d(a,"".concat(u.value,"-disabled"),n.disabled),d(a,u.value,!0),d(a,"".concat(u.value,"-rtl"),F.value==="rtl"),a});return function(){var a;return s(W,{insertExtraNode:!0},{default:function(){return[s("button",C(C(C({},H(n,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),o),{},{id:(a=n.id)!==null&&a!==void 0?a:m.id.value,onKeydown:M,onClick:N,onBlur:I,onMouseup:O,type:"button",role:"switch","aria-checked":h.value,disabled:n.disabled||n.loading,class:[o.class,P.value],ref:i}),[s("div",{class:"".concat(u.value,"-handle")},[n.loading?s(L,{class:"".concat(u.value,"-loading-icon")},null):null]),s("span",{class:"".concat(u.value,"-inner")},[f.value?x(y,n,"checkedChildren"):x(y,n,"unCheckedChildren")])])]}})}}});const X=j(J);export{X as _}; +import{cw as j,ay as z,d as K,j as U,dv as $,w as g,r as b,G as S,m as A,u as D,o as E,az as G,h as d,c as s,a as C,aw as H,bf as L,g as x,dw as W,P as c,dx as _}from"./index-0205daf8.js";var R=z("small","default"),q=function(){return{id:String,prefixCls:String,size:c.oneOf(R),disabled:{type:Boolean,default:void 0},checkedChildren:c.any,unCheckedChildren:c.any,tabindex:c.oneOfType([c.string,c.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:c.oneOfType([c.string,c.number,c.looseBool]),checkedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!0),unCheckedValue:c.oneOfType([c.string,c.number,c.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},J=K({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:q(),slots:["checkedChildren","unCheckedChildren"],setup:function(n,r){var o=r.attrs,y=r.slots,B=r.expose,l=r.emit,m=U();$(function(){g(!("defaultChecked"in o),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),g(!("value"in o),"Switch","`value` is not validate prop, do you mean `checked`?")});var h=b(n.checked!==void 0?n.checked:o.defaultChecked),f=S(function(){return h.value===n.checkedValue});A(function(){return n.checked},function(){h.value=n.checked});var v=D("switch",n),u=v.prefixCls,F=v.direction,T=v.size,i=b(),w=function(){var e;(e=i.value)===null||e===void 0||e.focus()},V=function(){var e;(e=i.value)===null||e===void 0||e.blur()};B({focus:w,blur:V}),E(function(){G(function(){n.autofocus&&!n.disabled&&i.value.focus()})});var k=function(e,t){n.disabled||(l("update:checked",e),l("change",e,t),m.onFieldChange())},I=function(e){l("blur",e)},N=function(e){w();var t=f.value?n.unCheckedValue:n.checkedValue;k(t,e),l("click",t,e)},M=function(e){e.keyCode===_.LEFT?k(n.unCheckedValue,e):e.keyCode===_.RIGHT&&k(n.checkedValue,e),l("keydown",e)},O=function(e){var t;(t=i.value)===null||t===void 0||t.blur(),l("mouseup",e)},P=S(function(){var a;return a={},d(a,"".concat(u.value,"-small"),T.value==="small"),d(a,"".concat(u.value,"-loading"),n.loading),d(a,"".concat(u.value,"-checked"),f.value),d(a,"".concat(u.value,"-disabled"),n.disabled),d(a,u.value,!0),d(a,"".concat(u.value,"-rtl"),F.value==="rtl"),a});return function(){var a;return s(W,{insertExtraNode:!0},{default:function(){return[s("button",C(C(C({},H(n,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),o),{},{id:(a=n.id)!==null&&a!==void 0?a:m.id.value,onKeydown:M,onClick:N,onBlur:I,onMouseup:O,type:"button",role:"switch","aria-checked":h.value,disabled:n.disabled||n.loading,class:[o.class,P.value],ref:i}),[s("div",{class:"".concat(u.value,"-handle")},[n.loading?s(L,{class:"".concat(u.value,"-loading-icon")},null):null]),s("span",{class:"".concat(u.value,"-inner")},[f.value?x(y,n,"checkedChildren"):x(y,n,"unCheckedChildren")])])]}})}}});const X=j(J);export{X as _}; diff --git a/vue/dist/assets/index-154b94da.js b/vue/dist/assets/index-859cb083.js similarity index 53% rename from vue/dist/assets/index-154b94da.js rename to vue/dist/assets/index-859cb083.js index daa093e..099f0b3 100644 --- a/vue/dist/assets/index-154b94da.js +++ b/vue/dist/assets/index-859cb083.js @@ -1 +1 @@ -import{r as o,o as t,cJ as n}from"./index-d6594e8e.js";const a=function(){var e=o(!1);return t(function(){e.value=n()}),e};export{a as u}; +import{r as o,o as t,cL as n}from"./index-0205daf8.js";const a=function(){var e=o(!1);return t(function(){e.value=n()}),e};export{a as u}; diff --git a/vue/dist/assets/index-4be8cdd9.js b/vue/dist/assets/index-af89284c.js similarity index 75% rename from vue/dist/assets/index-4be8cdd9.js rename to vue/dist/assets/index-af89284c.js index 37158d4..14461a1 100644 --- a/vue/dist/assets/index-4be8cdd9.js +++ b/vue/dist/assets/index-af89284c.js @@ -1 +1 @@ -import{d as w,bC as D,av as A,cK as j,az as k,n as V,cL as B,cM as y,e as $,c as a,_ as M,h as r,a as P,cN as T,P as b}from"./index-d6594e8e.js";var K=["class","style"],L=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:b.any,delay:Number,indicator:b.any}},p=null;function O(t,n){return!!t&&!!n&&!isNaN(Number(n))}function q(t){var n=t.indicator;p=typeof n=="function"?n:function(){return a(n,null,null)}}const F=w({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:D(L(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:A("configProvider",j)}},data:function(){var n=this.spinning,e=this.delay,i=O(n,e);return{sSpinning:n&&!i}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var n=this;k(function(){n.debouncifyUpdateSpinning(),n.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(n){var e=n||this.$props,i=e.delay;i&&(this.cancelExistingSpin(),this.updateSpinning=V(this.originalUpdateSpinning,i))},updateSpinning:function(){var n=this.spinning,e=this.sSpinning;e!==n&&(this.sSpinning=n)},cancelExistingSpin:function(){var n=this.updateSpinning;n&&n.cancel&&n.cancel()},renderIndicator:function(n){var e="".concat(n,"-dot"),i=B(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),y(i)?$(i,{class:e}):p&&y(p())?$(p(),{class:e}):a("span",{class:"".concat(e," ").concat(n,"-dot-spin")},[a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null)]))}},render:function(){var n,e,i,o=this.$props,f=o.size,N=o.prefixCls,h=o.tip,d=h===void 0?(n=(e=this.$slots).tip)===null||n===void 0?void 0:n.call(e):h,x=o.wrapperClassName,l=this.$attrs,v=l.class,_=l.style,C=M(l,K),S=this.configProvider,U=S.getPrefixCls,z=S.direction,s=U("spin",N),u=this.sSpinning,E=(i={},r(i,s,!0),r(i,"".concat(s,"-sm"),f==="small"),r(i,"".concat(s,"-lg"),f==="large"),r(i,"".concat(s,"-spinning"),u),r(i,"".concat(s,"-show-text"),!!d),r(i,"".concat(s,"-rtl"),z==="rtl"),r(i,v,!!v),i),m=a("div",P(P({},C),{},{style:_,class:E}),[this.renderIndicator(s),d?a("div",{class:"".concat(s,"-text")},[d]):null]),g=T(this);if(g&&g.length){var c,I=(c={},r(c,"".concat(s,"-container"),!0),r(c,"".concat(s,"-blur"),u),c);return a("div",{class:["".concat(s,"-nested-loading"),x]},[u&&a("div",{key:"loading"},[m]),a("div",{class:I,key:"container"},[g])])}return m}});export{F as S,q as s}; +import{d as w,bC as D,av as A,cM as j,az as k,n as V,cN as B,cO as y,e as $,c as a,_ as M,h as r,a as P,cP as O,P as b}from"./index-0205daf8.js";var T=["class","style"],W=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:b.any,delay:Number,indicator:b.any}},p=null;function q(t,n){return!!t&&!!n&&!isNaN(Number(n))}function G(t){var n=t.indicator;p=typeof n=="function"?n:function(){return a(n,null,null)}}const H=w({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:D(W(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:A("configProvider",j)}},data:function(){var n=this.spinning,e=this.delay,i=q(n,e);return{sSpinning:n&&!i}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var n=this;k(function(){n.debouncifyUpdateSpinning(),n.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(n){var e=n||this.$props,i=e.delay;i&&(this.cancelExistingSpin(),this.updateSpinning=V(this.originalUpdateSpinning,i))},updateSpinning:function(){var n=this.spinning,e=this.sSpinning;e!==n&&(this.sSpinning=n)},cancelExistingSpin:function(){var n=this.updateSpinning;n&&n.cancel&&n.cancel()},renderIndicator:function(n){var e="".concat(n,"-dot"),i=B(this,"indicator");return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),y(i)?$(i,{class:e}):p&&y(p())?$(p(),{class:e}):a("span",{class:"".concat(e," ").concat(n,"-dot-spin")},[a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null),a("i",{class:"".concat(n,"-dot-item")},null)]))}},render:function(){var n,e,i,o=this.$props,f=o.size,N=o.prefixCls,h=o.tip,d=h===void 0?(n=(e=this.$slots).tip)===null||n===void 0?void 0:n.call(e):h,x=o.wrapperClassName,l=this.$attrs,v=l.class,_=l.style,C=M(l,T),S=this.configProvider,U=S.getPrefixCls,z=S.direction,s=U("spin",N),u=this.sSpinning,E=(i={},r(i,s,!0),r(i,"".concat(s,"-sm"),f==="small"),r(i,"".concat(s,"-lg"),f==="large"),r(i,"".concat(s,"-spinning"),u),r(i,"".concat(s,"-show-text"),!!d),r(i,"".concat(s,"-rtl"),z==="rtl"),r(i,v,!!v),i),m=a("div",P(P({},C),{},{style:_,class:E}),[this.renderIndicator(s),d?a("div",{class:"".concat(s,"-text")},[d]):null]),g=O(this);if(g&&g.length){var c,I=(c={},r(c,"".concat(s,"-container"),!0),r(c,"".concat(s,"-blur"),u),c);return a("div",{class:["".concat(s,"-nested-loading"),x]},[u&&a("div",{key:"loading"},[m]),a("div",{class:I,key:"container"},[g])])}return m}});export{H as S,G as s}; diff --git a/vue/dist/assets/index-b5ffbf1a.js b/vue/dist/assets/index-b5ffbf1a.js deleted file mode 100644 index a00db10..0000000 --- a/vue/dist/assets/index-b5ffbf1a.js +++ /dev/null @@ -1 +0,0 @@ -import{d as x,a1 as $,aK as g,cT as b,r as w,U as p,V as i,W as a,c as r,a3 as d,X as u,Y as n,Z as B,a8 as I,a4 as m,y as V,z as _,B as v,aj as W,ak as D,cU as N,a0 as R}from"./index-d6594e8e.js";/* empty css */const U={class:"container"},F={class:"actions"},K={class:"uni-desc"},L={class:"snapshot"},T=x({__name:"index",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(j){const h=$(),t=g(),f=e=>{h.tabList=V(e.tabs)},k=b(async e=>{await N(`workspace_snapshot_${e.id}`),t.snapshots=t.snapshots.filter(c=>c.id!==e.id),_.success(v("deleteSuccess"))}),o=w(""),y=async()=>{if(!o.value){_.error(v("nameRequired"));return}const e=t.createSnapshot(o.value);await t.addSnapshot(e),_.success(v("saveCompleted"))};return(e,c)=>{const C=W,l=D;return p(),i("div",U,[a("div",F,[r(C,{value:o.value,"onUpdate:value":c[0]||(c[0]=s=>o.value=s),placeholder:e.$t("name"),style:{"max-width":"300px"}},null,8,["value","placeholder"]),r(l,{type:"primary",onClick:y},{default:d(()=>[u(n(e.$t("saveWorkspaceSnapshot")),1)]),_:1})]),a("p",K,n(e.$t("WorkspaceSnapshotDesc")),1),a("ul",L,[(p(!0),i(B,null,I(m(t).snapshots,s=>(p(),i("li",{key:s.id},[a("div",null,[a("span",null,n(s.name),1)]),a("div",null,[r(l,{onClick:S=>f(s)},{default:d(()=>[u(n(e.$t("restore")),1)]),_:2},1032,["onClick"]),r(l,{onClick:S=>m(k)(s)},{default:d(()=>[u(n(e.$t("remove")),1)]),_:2},1032,["onClick"])])]))),128))])])}}});const A=R(T,[["__scopeId","data-v-e55e3025"]]);export{A as default}; diff --git a/vue/dist/assets/index-68461333.js b/vue/dist/assets/index-b9ffc995.js similarity index 98% rename from vue/dist/assets/index-68461333.js rename to vue/dist/assets/index-b9ffc995.js index e832e83..9820e47 100644 --- a/vue/dist/assets/index-68461333.js +++ b/vue/dist/assets/index-b9ffc995.js @@ -1 +1 @@ -import{av as M,G as l,ax as D,ay as P,d as F,u as I,r as K,o as L,cx as _,b as y,bk as T,cy as A,an as $,h as o,c as B,a as G}from"./index-d6594e8e.js";import{u as V}from"./index-154b94da.js";var E=Symbol("rowContextKey"),W=function(r){D(E,r)},k=function(){return M(E,{gutter:l(function(){}),wrap:l(function(){}),supportFlexGap:l(function(){})})};P("top","middle","bottom","stretch");P("start","end","center","space-around","space-between");var U=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},q=F({compatConfig:{MODE:3},name:"ARow",props:U(),setup:function(r,N){var g=N.slots,v=I("row",r),d=v.prefixCls,h=v.direction,j,x=K({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),w=V();L(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),T(function(){_.unsubscribe(j)});var S=l(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(i,b){if(y(i)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});const Y=q;function H(c){return typeof c=="number"?"".concat(c," ").concat(c," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(c)?"0 0 ".concat(c):c}var J=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const Z=F({compatConfig:{MODE:3},name:"ACol",props:J(),setup:function(r,N){var g=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=I("col",r),w=x.prefixCls,S=x.direction,R=l(function(){var e,t=r.span,n=r.order,s=r.offset,i=r.push,b=r.pull,a=w.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(m){var f,u={},C=r[m];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},o(f,"".concat(a,"-").concat(m,"-").concat(u.span),u.span!==void 0),o(f,"".concat(a,"-").concat(m,"-order-").concat(u.order),u.order||u.order===0),o(f,"".concat(a,"-").concat(m,"-offset-").concat(u.offset),u.offset||u.offset===0),o(f,"".concat(a,"-").concat(m,"-push-").concat(u.push),u.push||u.push===0),o(f,"".concat(a,"-").concat(m,"-pull-").concat(u.pull),u.pull||u.pull===0),o(f,"".concat(a,"-rtl"),S.value==="rtl"),f))}),$(a,(e={},o(e,"".concat(a,"-").concat(t),t!==void 0),o(e,"".concat(a,"-order-").concat(n),n),o(e,"".concat(a,"-offset-").concat(s),s),o(e,"".concat(a,"-push-").concat(i),i),o(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=l(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var i="".concat(t[1]/2,"px");n.paddingTop=i,n.paddingBottom=i}return e&&(n.flex=H(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});export{Z as C,Y as R}; +import{av as M,G as l,ax as D,ay as P,d as F,u as I,r as K,o as L,cx as _,b as y,bk as T,cy as A,an as $,h as o,c as B,a as G}from"./index-0205daf8.js";import{u as V}from"./index-859cb083.js";var E=Symbol("rowContextKey"),W=function(r){D(E,r)},k=function(){return M(E,{gutter:l(function(){}),wrap:l(function(){}),supportFlexGap:l(function(){})})};P("top","middle","bottom","stretch");P("start","end","center","space-around","space-between");var U=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},q=F({compatConfig:{MODE:3},name:"ARow",props:U(),setup:function(r,N){var g=N.slots,v=I("row",r),d=v.prefixCls,h=v.direction,j,x=K({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),w=V();L(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),T(function(){_.unsubscribe(j)});var S=l(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(i,b){if(y(i)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),w.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});const Y=q;function H(c){return typeof c=="number"?"".concat(c," ").concat(c," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(c)?"0 0 ".concat(c):c}var J=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const Z=F({compatConfig:{MODE:3},name:"ACol",props:J(),setup:function(r,N){var g=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=I("col",r),w=x.prefixCls,S=x.direction,R=l(function(){var e,t=r.span,n=r.order,s=r.offset,i=r.push,b=r.pull,a=w.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(m){var f,u={},C=r[m];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},o(f,"".concat(a,"-").concat(m,"-").concat(u.span),u.span!==void 0),o(f,"".concat(a,"-").concat(m,"-order-").concat(u.order),u.order||u.order===0),o(f,"".concat(a,"-").concat(m,"-offset-").concat(u.offset),u.offset||u.offset===0),o(f,"".concat(a,"-").concat(m,"-push-").concat(u.push),u.push||u.push===0),o(f,"".concat(a,"-").concat(m,"-pull-").concat(u.pull),u.pull||u.pull===0),o(f,"".concat(a,"-rtl"),S.value==="rtl"),f))}),$(a,(e={},o(e,"".concat(a,"-").concat(t),t!==void 0),o(e,"".concat(a,"-order-").concat(n),n),o(e,"".concat(a,"-offset-").concat(s),s),o(e,"".concat(a,"-push-").concat(i),i),o(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=l(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var i="".concat(t[1]/2,"px");n.paddingTop=i,n.paddingBottom=i}return e&&(n.flex=H(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return B("div",{class:R.value,style:O.value},[(e=g.default)===null||e===void 0?void 0:e.call(g)])}}});export{Z as C,Y as R}; diff --git a/vue/dist/assets/index-9b184148.js b/vue/dist/assets/index-e9cc5bd5.js similarity index 98% rename from vue/dist/assets/index-9b184148.js rename to vue/dist/assets/index-e9cc5bd5.js index 2fc29d3..79017e1 100644 --- a/vue/dist/assets/index-9b184148.js +++ b/vue/dist/assets/index-e9cc5bd5.js @@ -1 +1 @@ -import{P as U,dV as re,a as u,d as F,bC as W,u as G,c as y,dm as le,_ as ie,ak as A,an as E,G as L,bK as k,ap as H,bA as se,h as M,dW as de,b as ue,aw as pe,dX as ve,b0 as R,bJ as ce}from"./index-d6594e8e.js";var z=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:U.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},T=re(),ye=function(){return u(u({},z()),{},{type:T.type,size:String,htmlType:T.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:U.any,title:String,loading:T.loading,onClick:{type:Function}})},fe=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],me=A.Group;const ge=F({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:W(ye(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=function(p){P("update:visible",p),P("visibleChange",p)},i=G("dropdown-button",n),D=i.prefixCls,w=i.direction,O=i.getPopupContainer;return function(){var b,p,e=u(u({},n),B),N=e.type,t=N===void 0?"default":N,o=e.disabled,r=e.loading,m=e.htmlType,s=e.class,d=s===void 0?"":s,l=e.overlay,C=l===void 0?(b=a.overlay)===null||b===void 0?void 0:b.call(a):l,_=e.trigger,v=e.align,c=e.visible;e.onVisibleChange;var h=e.placement,x=h===void 0?w.value==="rtl"?"bottomLeft":"bottomRight":h,S=e.href,K=e.title,V=e.icon,X=V===void 0?((p=a.icon)===null||p===void 0?void 0:p.call(a))||y(le,null,null):V,Y=e.mouseEnterDelay,q=e.mouseLeaveDelay,Q=e.overlayClassName,Z=e.overlayStyle,ee=e.destroyPopupOnHide,te=e.onClick;e["onUpdate:visible"];var oe=ie(e,fe),ae={align:v,disabled:o,trigger:o?[]:_,placement:x,getPopupContainer:O.value,onVisibleChange:g,mouseEnterDelay:Y,mouseLeaveDelay:q,visible:c,overlayClassName:Q,overlayStyle:Z,destroyPopupOnHide:ee},j=y(A,{type:t,disabled:o,loading:r,onClick:te,htmlType:m,href:S,title:K},{default:a.default}),I=y(A,{type:t,icon:X},null);return y(me,u(u({},oe),{},{class:E(D.value,d)}),{default:function(){return[a.leftButton?a.leftButton({button:j}):j,y(be,ae,{default:function(){return[a.rightButton?a.rightButton({button:I}):I]},overlay:function(){return C}})]}})}}});var J=F({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:W(z(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=G("dropdown",n),i=g.prefixCls,D=g.rootPrefixCls,w=g.direction,O=g.getPopupContainer,b=L(function(){var t=n.placement,o=t===void 0?"":t,r=n.transitionName;return r!==void 0?r:o.indexOf("top")>=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var o,r,m,s=n.overlay||((o=a.overlay)===null||o===void 0?void 0:o.call(a)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};k(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&R(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=R(d)?H(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var o=t.slice(0,t.indexOf("Center"));return k(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(o,"' instead.")),o}return t}),N=function(o){P("update:visible",o),P("visibleChange",o)};return function(){var t,o,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=a.default)===null||t===void 0?void 0:t.call(a)[0],C=H(l,se({class:E(l==null||(o=l.props)===null||o===void 0?void 0:o.class,M({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=E(d,M({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),B),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});J.Button=ge;const be=J;export{be as D,ge as a}; +import{P as U,dV as re,a as u,d as F,bC as W,u as G,c as y,dm as le,_ as ie,ak as A,an as E,G as L,bK as k,ap as H,bA as se,h as M,dW as de,b as ue,aw as pe,dX as ve,b0 as R,bJ as ce}from"./index-0205daf8.js";var z=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:U.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},T=re(),ye=function(){return u(u({},z()),{},{type:T.type,size:String,htmlType:T.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:U.any,title:String,loading:T.loading,onClick:{type:Function}})},fe=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],me=A.Group;const ge=F({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:W(ye(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=function(p){P("update:visible",p),P("visibleChange",p)},i=G("dropdown-button",n),D=i.prefixCls,w=i.direction,O=i.getPopupContainer;return function(){var b,p,e=u(u({},n),B),N=e.type,t=N===void 0?"default":N,o=e.disabled,r=e.loading,m=e.htmlType,s=e.class,d=s===void 0?"":s,l=e.overlay,C=l===void 0?(b=a.overlay)===null||b===void 0?void 0:b.call(a):l,_=e.trigger,v=e.align,c=e.visible;e.onVisibleChange;var h=e.placement,x=h===void 0?w.value==="rtl"?"bottomLeft":"bottomRight":h,S=e.href,K=e.title,V=e.icon,X=V===void 0?((p=a.icon)===null||p===void 0?void 0:p.call(a))||y(le,null,null):V,Y=e.mouseEnterDelay,q=e.mouseLeaveDelay,Q=e.overlayClassName,Z=e.overlayStyle,ee=e.destroyPopupOnHide,te=e.onClick;e["onUpdate:visible"];var oe=ie(e,fe),ae={align:v,disabled:o,trigger:o?[]:_,placement:x,getPopupContainer:O.value,onVisibleChange:g,mouseEnterDelay:Y,mouseLeaveDelay:q,visible:c,overlayClassName:Q,overlayStyle:Z,destroyPopupOnHide:ee},j=y(A,{type:t,disabled:o,loading:r,onClick:te,htmlType:m,href:S,title:K},{default:a.default}),I=y(A,{type:t,icon:X},null);return y(me,u(u({},oe),{},{class:E(D.value,d)}),{default:function(){return[a.leftButton?a.leftButton({button:j}):j,y(be,ae,{default:function(){return[a.rightButton?a.rightButton({button:I}):I]},overlay:function(){return C}})]}})}}});var J=F({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:W(z(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(n,f){var a=f.slots,B=f.attrs,P=f.emit,g=G("dropdown",n),i=g.prefixCls,D=g.rootPrefixCls,w=g.direction,O=g.getPopupContainer,b=L(function(){var t=n.placement,o=t===void 0?"":t,r=n.transitionName;return r!==void 0?r:o.indexOf("top")>=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var o,r,m,s=n.overlay||((o=a.overlay)===null||o===void 0?void 0:o.call(a)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};k(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&R(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=R(d)?H(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var o=t.slice(0,t.indexOf("Center"));return k(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(o,"' instead.")),o}return t}),N=function(o){P("update:visible",o),P("visibleChange",o)};return function(){var t,o,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=a.default)===null||t===void 0?void 0:t.call(a)[0],C=H(l,se({class:E(l==null||(o=l.props)===null||o===void 0?void 0:o.class,M({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=E(d,M({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),B),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});J.Button=ge;const be=J;export{be as D,ge as a}; diff --git a/vue/dist/assets/isArrayLikeObject-55a21cf1.js b/vue/dist/assets/isArrayLikeObject-55a21cf1.js new file mode 100644 index 0000000..c856172 --- /dev/null +++ b/vue/dist/assets/isArrayLikeObject-55a21cf1.js @@ -0,0 +1 @@ +import{cl as e,cm as i,cn as r,co as a,b1 as n}from"./index-0205daf8.js";function c(s,t){return e(i(s,t,r),s+"")}function b(s){return a(s)&&n(s)}export{c as b,b as i}; diff --git a/vue/dist/assets/isArrayLikeObject-70bd2074.js b/vue/dist/assets/isArrayLikeObject-70bd2074.js deleted file mode 100644 index 448edb6..0000000 --- a/vue/dist/assets/isArrayLikeObject-70bd2074.js +++ /dev/null @@ -1 +0,0 @@ -import{cl as e,cm as i,cn as r,co as a,b1 as n}from"./index-d6594e8e.js";function c(s,t){return e(i(s,t,r),s+"")}function b(s){return a(s)&&n(s)}export{c as b,b as i}; diff --git a/vue/dist/assets/numInput-d89a0bbe.js b/vue/dist/assets/numInput-a524d3bc.js similarity index 99% rename from vue/dist/assets/numInput-d89a0bbe.js rename to vue/dist/assets/numInput-a524d3bc.js index b923998..9408f59 100644 --- a/vue/dist/assets/numInput-d89a0bbe.js +++ b/vue/dist/assets/numInput-a524d3bc.js @@ -1,4 +1,4 @@ -import{G as E,av as He,aZ as $r,i as ee,a as I,b as sr,a_ as Ce,a$ as ae,b0 as Er,e as jr,h as Z,b1 as _r,b2 as fr,b3 as Vr,b4 as Ir,b5 as Sr,ax as dr,b6 as Mr,b7 as Rr,an as qe,c as K,Z as Oe,b8 as kr,d as Ae,u as Ke,r as ne,m as fe,b9 as Nr,ba as Lr,bb as Tr,bc as Dr,bd as Wr,be as Br,bf as zr,bg as cr,bh as vr,bi as Hr,y as we,bj as Kr,bk as Gr,ao as Ur,ay as Pe,P as ue,bl as Se,az as mr,bm as Ge,bn as Zr,bo as Yr,bp as Ye,bq as Qr,br as Xr,bs as Jr,bt as gr,bu as en,Q as rn,bv as nn,bw as tn,bx as an,by as ln,bz as un,a4 as le,am as on,bA as ye,n as sn,bB as hr,bC as fn,bD as dn,w as Ee,a0 as cn}from"./index-d6594e8e.js";import{C as pr,R as vn}from"./index-68461333.js";import{i as mn,b as gn}from"./isArrayLikeObject-70bd2074.js";import{_ as hn}from"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";var pn=Symbol("SizeProvider"),yn=function(e){var r=e?E(function(){return e.size}):He(pn,E(function(){return"default"}));return r};function bn(n,e,r){var t=-1,a=n.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xe(n,e,r){return wn()?xe=Reflect.construct.bind():xe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),p=new o;return l&&me(p,l.prototype),p},xe.apply(null,arguments)}function xn(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Re(n){var e=typeof Map=="function"?new Map:void 0;return Re=function(t){if(t===null||!xn(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return xe(t,arguments,Me(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),me(a,t)},Re(n)}var qn=/%[sdj%]/g,On=function(){};typeof process<"u"&&process.env;function ke(n){if(!n||!n.length)return null;var e={};return n.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function X(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return u;switch(u){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function Pn(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function G(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||Pn(e)&&typeof n=="string"&&!n)}function Cn(n,e,r){var t=[],a=0,i=n.length;function l(u){t.push.apply(t,u||[]),a++,a===i&&r(t)}n.forEach(function(u){e(u,l)})}function Qe(n,e,r){var t=0,a=n.length;function i(l){if(l&&l.length){r(l);return}var u=t;t=t+1,ua?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xe(n,e,r){return wn()?xe=Reflect.construct.bind():xe=function(a,i,l){var u=[null];u.push.apply(u,i);var o=Function.bind.apply(a,u),p=new o;return l&&me(p,l.prototype),p},xe.apply(null,arguments)}function xn(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Re(n){var e=typeof Map=="function"?new Map:void 0;return Re=function(t){if(t===null||!xn(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return xe(t,arguments,Me(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),me(a,t)},Re(n)}var qn=/%[sdj%]/g,On=function(){};typeof process<"u"&&process.env;function ke(n){if(!n||!n.length)return null;var e={};return n.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function X(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return u;switch(u){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return u}});return l}return n}function Pn(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function G(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||Pn(e)&&typeof n=="string"&&!n)}function Cn(n,e,r){var t=[],a=0,i=n.length;function l(u){t.push.apply(t,u||[]),a++,a===i&&r(t)}n.forEach(function(u){e(u,l)})}function Qe(n,e,r){var t=0,a=n.length;function i(l){if(l&&l.length){r(l);return}var u=t;t=t+1,u0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var s=Object.keys(a).map(parseFloat).sort(function(d,u){return d-u});if(e&&n)for(var l=r;l<=i;l+=n)s.indexOf(l)===-1&&s.push(l);return s},he=function(t,a){var e=a.attrs,n=e.prefixCls,r=e.vertical,i=e.reverse,s=e.marks,l=e.dots,d=e.step,u=e.included,v=e.lowerBound,m=e.upperBound,y=e.max,C=e.min,M=e.dotStyle,w=e.activeDotStyle,g=y-C,h=Ae(r,s,l,d,C,y).map(function(p){var S,x="".concat(Math.abs(p-C)/g*100,"%"),F=!u&&p===m||u&&p<=m&&p>=v,V=r?f(f({},M),{},b({},i?"top":"bottom",x)):f(f({},M),{},b({},i?"right":"left",x));F&&(V=f(f({},V),w));var c=A((S={},b(S,"".concat(n,"-dot"),!0),b(S,"".concat(n,"-dot-active"),F),b(S,"".concat(n,"-dot-reverse"),i),S));return P("span",{class:c,style:V,key:p},null)});return P("div",{class:"".concat(n,"-step")},[h])};he.inheritAttrs=!1;const je=he;var fe=function(t,a){var e=a.attrs,n=a.slots,r=e.class,i=e.vertical,s=e.reverse,l=e.marks,d=e.included,u=e.upperBound,v=e.lowerBound,m=e.max,y=e.min,C=e.onClickLabel,M=Object.keys(l),w=n.mark,g=m-y,h=M.map(parseFloat).sort(function(p,S){return p-S}).map(function(p){var S,x=typeof l[p]=="function"?l[p]():l[p],F=se(x)==="object"&&!Ve(x),V=F?x.label:x;if(!V&&V!==0)return null;w&&(V=w({point:p,label:V}));var c=!d&&p===u||d&&p<=u&&p>=v,T=A((S={},b(S,"".concat(r,"-text"),!0),b(S,"".concat(r,"-text-active"),c),S)),$=b({marginBottom:"-50%"},s?"top":"bottom","".concat((p-y)/g*100,"%")),B=b({transform:"translateX(".concat(s?"50%":"-50%",")"),msTransform:"translateX(".concat(s?"50%":"-50%",")")},s?"right":"left","".concat((p-y)/g*100,"%")),L=i?$:B,H=F?f(f({},L),x.style):L,_=b({},oe?"onTouchstartPassive":"onTouchstart",function(N){return C(N,p)});return P("span",f({class:T,style:H,key:p,onMousedown:function(O){return C(O,p)}},_),[V])});return P("div",{class:r},[h])};fe.inheritAttrs=!1;const Ue=fe,me=j({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(t,a){var e=a.attrs,n=a.emit,r=a.expose,i=U(!1),s=U(),l=function(){document.activeElement===s.value&&(i.value=!0)},d=function(h){i.value=!1,n("blur",h)},u=function(){i.value=!1},v=function(){var h;(h=s.value)===null||h===void 0||h.focus()},m=function(){var h;(h=s.value)===null||h===void 0||h.blur()},y=function(){i.value=!0,v()},C=function(h){h.preventDefault(),v(),n("mousedown",h)};r({focus:v,blur:m,clickFocus:y,ref:s});var M=null;Me(function(){M=K(document,"mouseup",l)}),le(function(){var g;(g=M)===null||g===void 0||g.remove()});var w=ue(function(){var g,h,p=t.vertical,S=t.offset,x=t.reverse;return p?(g={},b(g,x?"top":"bottom","".concat(S,"%")),b(g,x?"bottom":"top","auto"),b(g,"transform",x?null:"translateY(+50%)"),g):(h={},b(h,x?"right":"left","".concat(S,"%")),b(h,x?"left":"right","auto"),b(h,"transform","translateX(".concat(x?"+":"-","50%)")),h)});return function(){var g=t.prefixCls,h=t.disabled,p=t.min,S=t.max,x=t.value,F=t.tabindex,V=t.ariaLabel,c=t.ariaLabelledBy,T=t.ariaValueTextFormatter,$=t.onMouseenter,B=t.onMouseleave,L=A(e.class,b({},"".concat(g,"-handle-click-focused"),i.value)),H={"aria-valuemin":p,"aria-valuemax":S,"aria-valuenow":x,"aria-disabled":!!h},_=[e.style,w.value],N=F||0;(h||F===null)&&(N=null);var O;T&&(O=T(x));var X=f(f(f({},e),{},{role:"slider",tabindex:N},H),{},{class:L,onBlur:d,onKeydown:u,onMousedown:C,onMouseenter:$,onMouseleave:B,ref:s,style:_});return P("div",f(f({},X),{},{"aria-label":V,"aria-labelledby":c,"aria-valuetext":O}),null)}}});function W(o,t){try{return Object.keys(t).some(function(a){return o.target===t[a].ref})}catch{return!1}}function pe(o,t){var a=t.min,e=t.max;return oe}function ee(o){return o.touches.length>1||o.type.toLowerCase()==="touchend"&&o.touches.length>0}function te(o,t){var a=t.marks,e=t.step,n=t.min,r=t.max,i=Object.keys(a).map(parseFloat);if(e!==null){var s=Math.pow(10,ge(e)),l=Math.floor((r*s-n*s)/(e*s)),d=Math.min((o-n)/e,l),u=Math.round(d)*e+n;i.push(u)}var v=i.map(function(m){return Math.abs(o-m)});return i[v.indexOf(Math.min.apply(Math,D(v)))]}function ge(o){var t=o.toString(),a=0;return t.indexOf(".")>=0&&(a=t.length-t.indexOf(".")-1),a}function ae(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.clientY:t.pageX)/a}function ne(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.touches[0].clientY:t.touches[0].pageX)/a}function re(o,t){var a=t.getBoundingClientRect();return o?a.top+a.height*.5:window.pageXOffset+a.left+a.width*.5}function Z(o,t){var a=t.max,e=t.min;return o<=e?e:o>=a?a:o}function be(o,t){var a=t.step,e=isFinite(te(o,t))?te(o,t):0;return a===null?e:parseFloat(e.toFixed(ge(a)))}function G(o){o.stopPropagation(),o.preventDefault()}function Ge(o,t,a){var e={increase:function(s,l){return s+l},decrease:function(s,l){return s-l}},n=e[o](Object.keys(a.marks).indexOf(JSON.stringify(t)),1),r=Object.keys(a.marks)[n];return a.step?e[o](t,a.step):Object.keys(a.marks).length&&a.marks[r]?a.marks[r]:t}function ye(o,t,a){var e="increase",n="decrease",r=e;switch(o.keyCode){case E.UP:r=t&&a?n:e;break;case E.RIGHT:r=!t&&a?n:e;break;case E.DOWN:r=t&&a?e:n;break;case E.LEFT:r=!t&&a?e:n;break;case E.END:return function(i,s){return s.max};case E.HOME:return function(i,s){return s.min};case E.PAGE_UP:return function(i,s){return i+s.step*2};case E.PAGE_DOWN:return function(i,s){return i-s.step*2};default:return}return function(i,s){return Ge(r,i,s)}}var Ie=["index","directives","className","style"];function R(){}function xe(o){var t={id:String,min:Number,max:Number,step:Number,marks:k.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:k.object,maximumTrackStyle:k.object,handleStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),trackStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),railStyle:k.object,dotStyle:k.object,activeDotStyle:k.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return j({compatConfig:{MODE:3},name:"CreateSlider",mixins:[J,o],inheritAttrs:!1,slots:["mark"],props:de(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data:function(){var e=this.step,n=this.max,r=this.min,i=isFinite(n-r)?(n-r)%e===0:!0;return ie(e&&Math.floor(e)===e?i:!0,"Slider[max] - Slider[min] (".concat(n-r,") should be a multiple of Slider[step] (").concat(e,")")),this.handlesRefs={},{}},mounted:function(){var e=this;this.$nextTick(function(){e.document=e.sliderRef&&e.sliderRef.ownerDocument;var n=e.autofocus,r=e.disabled;n&&!r&&e.focus()})},beforeUnmount:function(){var e=this;this.$nextTick(function(){e.removeDocumentEvents()})},methods:{defaultHandle:function(e){var n=e.index;e.directives;var r=e.className,i=e.style,s=z(e,Ie);if(delete s.dragging,s.value===null)return null;var l=f(f({},s),{},{class:r,style:i,key:n});return P(me,l,null)},onDown:function(e,n){var r=n,i=this.$props,s=i.draggableTrack,l=i.vertical,d=this.$data.bounds,u=s&&this.positionGetValue?this.positionGetValue(r)||[]:[],v=W(e,this.handlesRefs);if(this.dragTrack=s&&d.length>=2&&!v&&!u.map(function(y,C){var M=C?!0:y>=d[C];return C===u.length-1?y<=d[C]:M}).some(function(y){return!y}),this.dragTrack)this.dragOffset=r,this.startBounds=D(d);else{if(!v)this.dragOffset=0;else{var m=re(l,e.target);this.dragOffset=r-m,r=m}this.onStart(r)}},onMouseDown:function(e){if(e.button===0){this.removeDocumentEvents();var n=this.$props.vertical,r=ae(n,e);this.onDown(e,r),this.addDocumentMouseEvents()}},onTouchStart:function(e){if(!ee(e)){var n=this.vertical,r=ne(n,e);this.onDown(e,r),this.addDocumentTouchEvents(),G(e)}},onFocus:function(e){var n=this.vertical;if(W(e,this.handlesRefs)&&!this.dragTrack){var r=re(n,e.target);this.dragOffset=0,this.onStart(r),G(e),this.$emit("focus",e)}},onBlur:function(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(e){if(!this.sliderRef){this.onEnd();return}var n=ae(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove:function(e){if(ee(e)||!this.sliderRef){this.onEnd();return}var n=ne(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown:function(e){this.sliderRef&&W(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel:function(e,n){var r=this;e.stopPropagation(),this.onChange({sValue:n}),this.setState({sValue:n},function(){return r.onEnd(!0)})},getSliderStart:function(){var e=this.sliderRef,n=this.vertical,r=this.reverse,i=e.getBoundingClientRect();return n?r?i.bottom:i.top:window.pageXOffset+(r?i.right:i.left)},getSliderLength:function(){var e=this.sliderRef;if(!e)return 0;var n=e.getBoundingClientRect();return this.vertical?n.height:n.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=K(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=K(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=K(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=K(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var e;this.$props.disabled||(e=this.handlesRefs[0])===null||e===void 0||e.focus()},blur:function(){var e=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach(function(n){var r,i;(r=e.handlesRefs[n])===null||r===void 0||(i=r.blur)===null||i===void 0||i.call(r)})},calcValue:function(e){var n=this.vertical,r=this.min,i=this.max,s=Math.abs(Math.max(e,0)/this.getSliderLength()),l=n?(1-s)*(i-r)+r:s*(i-r)+r;return l},calcValueByPos:function(e){var n=this.reverse?-1:1,r=n*(e-this.getSliderStart()),i=this.trimAlignValue(this.calcValue(r));return i},calcOffset:function(e){var n=this.min,r=this.max,i=(e-n)/(r-n);return Math.max(0,i*100)},saveSlider:function(e){this.sliderRef=e},saveHandle:function(e,n){this.handlesRefs[e]=n}},render:function(){var e,n=this.prefixCls,r=this.marks,i=this.dots,s=this.step,l=this.included,d=this.disabled,u=this.vertical,v=this.reverse,m=this.min,y=this.max,C=this.maximumTrackStyle,M=this.railStyle,w=this.dotStyle,g=this.activeDotStyle,h=this.id,p=this.$attrs,S=p.class,x=p.style,F=this.renderSlider(),V=F.tracks,c=F.handles,T=A(n,S,(e={},b(e,"".concat(n,"-with-marks"),Object.keys(r).length),b(e,"".concat(n,"-disabled"),d),b(e,"".concat(n,"-vertical"),u),e)),$={vertical:u,marks:r,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,reverse:v,class:"".concat(n,"-mark"),onClickLabel:d?R:this.onClickMarkLabel},B=b({},oe?"onTouchstartPassive":"onTouchstart",d?R:this.onTouchStart);return P("div",f(f({id:h,ref:this.saveSlider,tabindex:"-1",class:T},B),{},{onMousedown:d?R:this.onMouseDown,onMouseup:d?R:this.onMouseUp,onKeydown:d?R:this.onKeyDown,onFocus:d?R:this.onFocus,onBlur:d?R:this.onBlur,style:x}),[P("div",{class:"".concat(n,"-rail"),style:f(f({},C),M)},null),V,P(je,{prefixCls:n,vertical:u,reverse:v,marks:r,dots:i,step:s,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,dotStyle:w,activeDotStyle:g},null),c,P(Ue,$,{mark:this.$slots.mark}),Te(this)])}})}var Ke=j({compatConfig:{MODE:3},name:"Slider",mixins:[J],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var t=this.defaultValue!==void 0?this.defaultValue:this.min,a=this.value!==void 0?this.value:t;return{sValue:this.trimAlignValue(a),dragging:!1}},watch:{value:{handler:function(t){this.setChangeValue(t)},deep:!0},min:function(){var t=this.sValue;this.setChangeValue(t)},max:function(){var t=this.sValue;this.setChangeValue(t)}},methods:{setChangeValue:function(t){var a=t!==void 0?t:this.sValue,e=this.trimAlignValue(a,this.$props);e!==this.sValue&&(this.setState({sValue:e}),pe(a,this.$props)&&this.$emit("change",e))},onChange:function(t){var a=!Y(this,"value"),e=t.sValue>this.max?f(f({},t),{},{sValue:this.max}):t;a&&this.setState(e);var n=e.sValue;this.$emit("change",n)},onStart:function(t){this.setState({dragging:!0});var a=this.sValue;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t,e!==a&&(this.prevMovedHandleIndex=0,this.onChange({sValue:e}))},onEnd:function(t){var a=this.dragging;this.removeDocumentEvents(),(a||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(t,a){G(t);var e=this.sValue,n=this.calcValueByPos(a);n!==e&&this.onChange({sValue:n})},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.sValue,s=r(i,this.$props),l=this.trimAlignValue(s);if(l===i)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound:function(){var t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound:function(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(t===null)return null;var e=f(f({},this.$props),a),n=Z(t,e);return be(n,e)},getTrack:function(t){var a=t.prefixCls,e=t.reverse,n=t.vertical,r=t.included,i=t.minimumTrackStyle,s=t.mergedTrackStyle,l=t.length,d=t.offset;return P(ve,{class:"".concat(a,"-track"),vertical:n,included:r,offset:d,reverse:e,length:l,style:f(f({},i),s)},null)},renderSlider:function(){var t=this,a=this.prefixCls,e=this.vertical,n=this.included,r=this.disabled,i=this.minimumTrackStyle,s=this.trackStyle,l=this.handleStyle,d=this.tabindex,u=this.ariaLabelForHandle,v=this.ariaLabelledByForHandle,m=this.ariaValueTextFormatterForHandle,y=this.min,C=this.max,M=this.startPoint,w=this.reverse,g=this.handle,h=this.defaultHandle,p=g||h,S=this.sValue,x=this.dragging,F=this.calcOffset(S),V=p({class:"".concat(a,"-handle"),prefixCls:a,vertical:e,offset:F,value:S,dragging:x,disabled:r,min:y,max:C,reverse:w,index:0,tabindex:d,ariaLabel:u,ariaLabelledBy:v,ariaValueTextFormatter:m,style:l[0]||l,ref:function(B){return t.saveHandle(0,B)},onFocus:this.onFocus,onBlur:this.onBlur}),c=M!==void 0?this.calcOffset(M):0,T=s[0]||s;return{tracks:this.getTrack({prefixCls:a,reverse:w,vertical:e,included:n,offset:c,minimumTrackStyle:i,mergedTrackStyle:T,length:F-c}),handles:V}}}});const Xe=xe(Ke);var I=function(t){var a=t.value,e=t.handle,n=t.bounds,r=t.props,i=r.allowCross,s=r.pushable,l=Number(s),d=Z(a,r),u=d;return!i&&e!=null&&n!==void 0&&(e>0&&d<=n[e-1]+l&&(u=n[e-1]+l),e=n[e+1]-l&&(u=n[e+1]-l)),be(u,r)},We={defaultValue:k.arrayOf(k.number),value:k.arrayOf(k.number),count:Number,pushable:Be(k.oneOfType([k.looseBool,k.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:k.arrayOf(k.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},ze=j({compatConfig:{MODE:3},name:"Range",mixins:[J],inheritAttrs:!1,props:de(We,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var t=this,a=this.count,e=this.min,n=this.max,r=Array.apply(void 0,D(Array(a+1))).map(function(){return e}),i=Y(this,"defaultValue")?this.defaultValue:r,s=this.value;s===void 0&&(s=i);var l=s.map(function(u,v){return I({value:u,handle:v,props:t.$props})}),d=l[0]===n?0:l.length-1;return{sHandle:null,recent:d,bounds:l}},watch:{value:{handler:function(t){var a=this.bounds;this.setChangeValue(t||a)},deep:!0},min:function(){var t=this.value;this.setChangeValue(t||this.bounds)},max:function(){var t=this.value;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue:function(t){var a=this,e=this.bounds,n=t.map(function(i,s){return I({value:i,handle:s,bounds:e,props:a.$props})});if(e.length===n.length){if(n.every(function(i,s){return i===e[s]}))return null}else n=t.map(function(i,s){return I({value:i,handle:s,props:a.$props})});if(this.setState({bounds:n}),t.some(function(i){return pe(i,a.$props)})){var r=t.map(function(i){return Z(i,a.$props)});this.$emit("change",r)}},onChange:function(t){var a=!Y(this,"value");if(a)this.setState(t);else{var e={};["sHandle","recent"].forEach(function(i){t[i]!==void 0&&(e[i]=t[i])}),Object.keys(e).length&&this.setState(e)}var n=f(f({},this.$data),t),r=n.bounds;this.$emit("change",r)},positionGetValue:function(t){var a=this.getValue(),e=this.calcValueByPos(t),n=this.getClosestBound(e),r=this.getBoundNeedMoving(e,n),i=a[r];if(e===i)return null;var s=D(a);return s[r]=e,s},onStart:function(t){var a=this.bounds;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t;var n=this.getClosestBound(e);this.prevMovedHandleIndex=this.getBoundNeedMoving(e,n),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var r=a[this.prevMovedHandleIndex];if(e!==r){var i=D(a);i[this.prevMovedHandleIndex]=e,this.onChange({bounds:i})}},onEnd:function(t){var a=this.sHandle;this.removeDocumentEvents(),a||(this.dragTrack=!1),(a!==null||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(t,a,e,n){G(t);var r=this.$data,i=this.$props,s=i.max||100,l=i.min||0;if(e){var d=i.vertical?-a:a;d=i.reverse?-d:d;var u=s-Math.max.apply(Math,D(n)),v=l-Math.min.apply(Math,D(n)),m=Math.min(Math.max(d/(this.getSliderLength()/100),v),u),y=n.map(function(h){return Math.floor(Math.max(Math.min(h+m,s),l))});r.bounds.map(function(h,p){return h===y[p]}).some(function(h){return!h})&&this.onChange({bounds:y});return}var C=this.bounds,M=this.sHandle,w=this.calcValueByPos(a),g=C[M];w!==g&&this.moveTo(w)},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.bounds,s=this.sHandle,l=i[s===null?this.recent:s],d=r(l,this.$props),u=I({value:d,handle:s,bounds:i,props:this.$props});if(u===l)return;var v=!0;this.moveTo(u,v)}},getClosestBound:function(t){for(var a=this.bounds,e=0,n=1;n=a[n]&&(e=n);return Math.abs(a[e+1]-t)=n.length||i<0)return!1;var s=a+e,l=n[i],d=this.pushable,u=Number(d),v=e*(t[s]-l);return this.pushHandle(t,s,e,u-v)?(t[a]=l,!0):!1},trimAlignValue:function(t){var a=this.sHandle,e=this.bounds;return I({value:t,handle:a,bounds:e,props:this.$props})},ensureValueNotConflict:function(t,a,e){var n=e.allowCross,r=e.pushable,i=this.$data||{},s=i.bounds;if(t=t===void 0?i.sHandle:t,r=Number(r),!n&&t!=null&&s!==void 0){if(t>0&&a<=s[t-1]+r)return s[t-1]+r;if(t=s[t+1]-r)return s[t+1]-r}return a},getTrack:function(t){var a=t.bounds,e=t.prefixCls,n=t.reverse,r=t.vertical,i=t.included,s=t.offsets,l=t.trackStyle;return a.slice(0,-1).map(function(d,u){var v,m=u+1,y=A((v={},b(v,"".concat(e,"-track"),!0),b(v,"".concat(e,"-track-").concat(m),!0),v));return P(ve,{class:y,vertical:r,reverse:n,included:i,offset:s[m-1],length:s[m]-s[m-1],style:l[u],key:m},null)})},renderSlider:function(){var t=this,a=this.sHandle,e=this.bounds,n=this.prefixCls,r=this.vertical,i=this.included,s=this.disabled,l=this.min,d=this.max,u=this.reverse,v=this.handle,m=this.defaultHandle,y=this.trackStyle,C=this.handleStyle,M=this.tabindex,w=this.ariaLabelGroupForHandles,g=this.ariaLabelledByGroupForHandles,h=this.ariaValueTextFormatterGroupForHandles,p=v||m,S=e.map(function(V){return t.calcOffset(V)}),x="".concat(n,"-handle"),F=e.map(function(V,c){var T,$=M[c]||0;(s||M[c]===null)&&($=null);var B=a===c;return p({class:A((T={},b(T,x,!0),b(T,"".concat(x,"-").concat(c+1),!0),b(T,"".concat(x,"-dragging"),B),T)),prefixCls:n,vertical:r,dragging:B,offset:S[c],value:V,index:c,tabindex:$,min:l,max:d,reverse:u,disabled:s,style:C[c],ref:function(H){return t.saveHandle(c,H)},onFocus:t.onFocus,onBlur:t.onBlur,ariaLabel:w[c],ariaLabelledBy:g[c],ariaValueTextFormatter:h[c]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:u,vertical:r,included:i,offsets:S,trackStyle:y}),handles:F}}}});const Ye=xe(ze),Je=j({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Pe(),setup:function(t,a){var e=a.attrs,n=a.slots,r=U(null),i=U(null);function s(){q.cancel(i.value),i.value=null}function l(){i.value=q(function(){var u;(u=r.value)===null||u===void 0||u.forcePopupAlign(),i.value=null})}var d=function(){s(),t.visible&&l()};return we([function(){return t.visible},function(){return t.title}],function(){d()},{flush:"post",immediate:!0}),Fe(function(){d()}),le(function(){s()}),function(){return P($e,f(f({ref:r},t),e),n)}}});var Ze=["value","dragging","index"],qe=["tooltipPrefixCls","range","id"],Qe=function(t){return typeof t=="number"?t.toString():""},et=function(){return{id:String,prefixCls:String,tooltipPrefixCls:String,range:{type:[Boolean,Object],default:void 0},reverse:{type:Boolean,default:void 0},min:Number,max:Number,step:{type:[Number,Object]},marks:{type:Object},dots:{type:Boolean,default:void 0},value:{type:[Number,Array]},defaultValue:{type:[Number,Array]},included:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},tipFormatter:{type:[Function,Object],default:function(){return Qe}},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{type:String},getTooltipPopupContainer:{type:Function},autofocus:{type:Boolean,default:void 0},handleStyle:{type:[Object,Array]},trackStyle:{type:[Object,Array]},onChange:{type:Function},onAfterChange:{type:Function},onFocus:{type:Function},onBlur:{type:Function},"onUpdate:value":{type:Function}}},tt=j({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:et(),slots:["mark"],setup:function(t,a){var e=a.attrs,n=a.slots,r=a.emit,i=a.expose,s=Ne("slider",t),l=s.prefixCls,d=s.rootPrefixCls,u=s.direction,v=s.getPopupContainer,m=s.configProvider,y=Oe(),C=U(),M=U({}),w=function(c,T){M.value[c]=T},g=ue(function(){return t.tooltipPlacement?t.tooltipPlacement:t.vertical?u.value==="rtl"?"left":"right":"top"}),h=function(){var c;(c=C.value)===null||c===void 0||c.focus()},p=function(){var c;(c=C.value)===null||c===void 0||c.blur()},S=function(c){r("update:value",c),r("change",c),y.onFieldChange()},x=function(c){r("blur",c)};i({focus:h,blur:p});var F=function(c){var T=c.tooltipPrefixCls,$=c.info,B=$.value,L=$.dragging,H=$.index,_=z($,Ze),N=t.tipFormatter,O=t.tooltipVisible,X=t.getTooltipPopupContainer,ke=N?M.value[H]||L:!1,Ce=O||O===void 0&&ke;return P(Je,{prefixCls:T,title:N?N(B):"",visible:Ce,placement:g.value,transitionName:"".concat(d.value,"-zoom-down"),key:H,overlayClassName:"".concat(l.value,"-tooltip"),getPopupContainer:X||v.value},{default:function(){return[P(me,f(f({},_),{},{value:B,onMouseenter:function(){return w(H,!0)},onMouseleave:function(){return w(H,!1)}}),null)]}})};return function(){var V=t.tooltipPrefixCls,c=t.range,T=t.id,$=T===void 0?y.id.value:T,B=z(t,qe),L=m.getPrefixCls("tooltip",V),H=A(e.class,b({},"".concat(l.value,"-rtl"),u.value==="rtl"));u.value==="rtl"&&!B.vertical&&(B.reverse=!B.reverse);var _;return se(c)==="object"&&(_=c.draggableTrack),c?P(Ye,f(f({},B),{},{step:B.step,draggableTrack:_,class:H,ref:C,handle:function(O){return F({tooltipPrefixCls:L,prefixCls:l.value,info:O})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark}):P(Xe,f(f({},B),{},{id:$,step:B.step,class:H,ref:C,handle:function(O){return F({tooltipPrefixCls:L,prefixCls:l.value,info:O})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark})}}});const at=He(tt);const nt={class:"num-input"},lt=j({__name:"numInput",props:Le({min:{},max:{},step:{}},{modelValue:{}}),emits:["update:modelValue"],setup(o){const t=o,a=_e(o,"modelValue");return(e,n)=>{const r=Re,i=at;return Ee(),De("div",nt,[P(r,Q({value:a.value,"onUpdate:value":n[0]||(n[0]=s=>a.value=s)},t),null,16,["value"]),P(i,Q({value:a.value,"onUpdate:value":n[1]||(n[1]=s=>a.value=s)},t,{class:"slide"}),null,16,["value"])])}}});export{lt as _}; +import{h as b,a as f,c as P,an as A,w as ie,b as se,b0 as Ve,dY as oe,d as j,P as k,r as U,o as Me,dZ as K,bk as le,G as ue,dx as E,i as D,d_ as J,bC as de,_ as z,cP as Te,d$ as Y,e0 as Be,e1 as Pe,m as we,e2 as Fe,aN as $e,e3 as q,cw as He,u as Oe,j as Ne,e4 as Le,e5 as _e,U as Ee,V as De,c7 as Q}from"./index-0205daf8.js";/* empty css */import{_ as Re}from"./index-6a8edab1.js";var ce=function(t,a){var e,n,r=a.attrs,i=r.included,s=r.vertical,l=r.style,d=r.class,u=r.length,v=r.offset,m=r.reverse;u<0&&(m=!m,u=Math.abs(u),v=100-v);var y=s?(e={},b(e,m?"top":"bottom","".concat(v,"%")),b(e,m?"bottom":"top","auto"),b(e,"height","".concat(u,"%")),e):(n={},b(n,m?"right":"left","".concat(v,"%")),b(n,m?"left":"right","auto"),b(n,"width","".concat(u,"%")),n),C=f(f({},l),y);return i?P("div",{class:d,style:C},null):null};ce.inheritAttrs=!1;const ve=ce;var Ae=function(t,a,e,n,r,i){ie(e?n>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var s=Object.keys(a).map(parseFloat).sort(function(d,u){return d-u});if(e&&n)for(var l=r;l<=i;l+=n)s.indexOf(l)===-1&&s.push(l);return s},he=function(t,a){var e=a.attrs,n=e.prefixCls,r=e.vertical,i=e.reverse,s=e.marks,l=e.dots,d=e.step,u=e.included,v=e.lowerBound,m=e.upperBound,y=e.max,C=e.min,M=e.dotStyle,w=e.activeDotStyle,g=y-C,h=Ae(r,s,l,d,C,y).map(function(p){var S,x="".concat(Math.abs(p-C)/g*100,"%"),F=!u&&p===m||u&&p<=m&&p>=v,V=r?f(f({},M),{},b({},i?"top":"bottom",x)):f(f({},M),{},b({},i?"right":"left",x));F&&(V=f(f({},V),w));var c=A((S={},b(S,"".concat(n,"-dot"),!0),b(S,"".concat(n,"-dot-active"),F),b(S,"".concat(n,"-dot-reverse"),i),S));return P("span",{class:c,style:V,key:p},null)});return P("div",{class:"".concat(n,"-step")},[h])};he.inheritAttrs=!1;const je=he;var fe=function(t,a){var e=a.attrs,n=a.slots,r=e.class,i=e.vertical,s=e.reverse,l=e.marks,d=e.included,u=e.upperBound,v=e.lowerBound,m=e.max,y=e.min,C=e.onClickLabel,M=Object.keys(l),w=n.mark,g=m-y,h=M.map(parseFloat).sort(function(p,S){return p-S}).map(function(p){var S,x=typeof l[p]=="function"?l[p]():l[p],F=se(x)==="object"&&!Ve(x),V=F?x.label:x;if(!V&&V!==0)return null;w&&(V=w({point:p,label:V}));var c=!d&&p===u||d&&p<=u&&p>=v,T=A((S={},b(S,"".concat(r,"-text"),!0),b(S,"".concat(r,"-text-active"),c),S)),$=b({marginBottom:"-50%"},s?"top":"bottom","".concat((p-y)/g*100,"%")),B=b({transform:"translateX(".concat(s?"50%":"-50%",")"),msTransform:"translateX(".concat(s?"50%":"-50%",")")},s?"right":"left","".concat((p-y)/g*100,"%")),L=i?$:B,H=F?f(f({},L),x.style):L,_=b({},oe?"onTouchstartPassive":"onTouchstart",function(O){return C(O,p)});return P("span",f({class:T,style:H,key:p,onMousedown:function(N){return C(N,p)}},_),[V])});return P("div",{class:r},[h])};fe.inheritAttrs=!1;const Ue=fe,me=j({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(t,a){var e=a.attrs,n=a.emit,r=a.expose,i=U(!1),s=U(),l=function(){document.activeElement===s.value&&(i.value=!0)},d=function(h){i.value=!1,n("blur",h)},u=function(){i.value=!1},v=function(){var h;(h=s.value)===null||h===void 0||h.focus()},m=function(){var h;(h=s.value)===null||h===void 0||h.blur()},y=function(){i.value=!0,v()},C=function(h){h.preventDefault(),v(),n("mousedown",h)};r({focus:v,blur:m,clickFocus:y,ref:s});var M=null;Me(function(){M=K(document,"mouseup",l)}),le(function(){var g;(g=M)===null||g===void 0||g.remove()});var w=ue(function(){var g,h,p=t.vertical,S=t.offset,x=t.reverse;return p?(g={},b(g,x?"top":"bottom","".concat(S,"%")),b(g,x?"bottom":"top","auto"),b(g,"transform",x?null:"translateY(+50%)"),g):(h={},b(h,x?"right":"left","".concat(S,"%")),b(h,x?"left":"right","auto"),b(h,"transform","translateX(".concat(x?"+":"-","50%)")),h)});return function(){var g=t.prefixCls,h=t.disabled,p=t.min,S=t.max,x=t.value,F=t.tabindex,V=t.ariaLabel,c=t.ariaLabelledBy,T=t.ariaValueTextFormatter,$=t.onMouseenter,B=t.onMouseleave,L=A(e.class,b({},"".concat(g,"-handle-click-focused"),i.value)),H={"aria-valuemin":p,"aria-valuemax":S,"aria-valuenow":x,"aria-disabled":!!h},_=[e.style,w.value],O=F||0;(h||F===null)&&(O=null);var N;T&&(N=T(x));var X=f(f(f({},e),{},{role:"slider",tabindex:O},H),{},{class:L,onBlur:d,onKeydown:u,onMousedown:C,onMouseenter:$,onMouseleave:B,ref:s,style:_});return P("div",f(f({},X),{},{"aria-label":V,"aria-labelledby":c,"aria-valuetext":N}),null)}}});function W(o,t){try{return Object.keys(t).some(function(a){return o.target===t[a].ref})}catch{return!1}}function pe(o,t){var a=t.min,e=t.max;return oe}function ee(o){return o.touches.length>1||o.type.toLowerCase()==="touchend"&&o.touches.length>0}function te(o,t){var a=t.marks,e=t.step,n=t.min,r=t.max,i=Object.keys(a).map(parseFloat);if(e!==null){var s=Math.pow(10,ge(e)),l=Math.floor((r*s-n*s)/(e*s)),d=Math.min((o-n)/e,l),u=Math.round(d)*e+n;i.push(u)}var v=i.map(function(m){return Math.abs(o-m)});return i[v.indexOf(Math.min.apply(Math,D(v)))]}function ge(o){var t=o.toString(),a=0;return t.indexOf(".")>=0&&(a=t.length-t.indexOf(".")-1),a}function ae(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.clientY:t.pageX)/a}function ne(o,t){var a=1;return window.visualViewport&&(a=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(o?t.touches[0].clientY:t.touches[0].pageX)/a}function re(o,t){var a=t.getBoundingClientRect();return o?a.top+a.height*.5:window.pageXOffset+a.left+a.width*.5}function Z(o,t){var a=t.max,e=t.min;return o<=e?e:o>=a?a:o}function be(o,t){var a=t.step,e=isFinite(te(o,t))?te(o,t):0;return a===null?e:parseFloat(e.toFixed(ge(a)))}function G(o){o.stopPropagation(),o.preventDefault()}function Ge(o,t,a){var e={increase:function(s,l){return s+l},decrease:function(s,l){return s-l}},n=e[o](Object.keys(a.marks).indexOf(JSON.stringify(t)),1),r=Object.keys(a.marks)[n];return a.step?e[o](t,a.step):Object.keys(a.marks).length&&a.marks[r]?a.marks[r]:t}function ye(o,t,a){var e="increase",n="decrease",r=e;switch(o.keyCode){case E.UP:r=t&&a?n:e;break;case E.RIGHT:r=!t&&a?n:e;break;case E.DOWN:r=t&&a?e:n;break;case E.LEFT:r=!t&&a?e:n;break;case E.END:return function(i,s){return s.max};case E.HOME:return function(i,s){return s.min};case E.PAGE_UP:return function(i,s){return i+s.step*2};case E.PAGE_DOWN:return function(i,s){return i-s.step*2};default:return}return function(i,s){return Ge(r,i,s)}}var Ie=["index","directives","className","style"];function R(){}function xe(o){var t={id:String,min:Number,max:Number,step:Number,marks:k.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:k.object,maximumTrackStyle:k.object,handleStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),trackStyle:k.oneOfType([k.object,k.arrayOf(k.object)]),railStyle:k.object,dotStyle:k.object,activeDotStyle:k.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return j({compatConfig:{MODE:3},name:"CreateSlider",mixins:[J,o],inheritAttrs:!1,slots:["mark"],props:de(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data:function(){var e=this.step,n=this.max,r=this.min,i=isFinite(n-r)?(n-r)%e===0:!0;return ie(e&&Math.floor(e)===e?i:!0,"Slider[max] - Slider[min] (".concat(n-r,") should be a multiple of Slider[step] (").concat(e,")")),this.handlesRefs={},{}},mounted:function(){var e=this;this.$nextTick(function(){e.document=e.sliderRef&&e.sliderRef.ownerDocument;var n=e.autofocus,r=e.disabled;n&&!r&&e.focus()})},beforeUnmount:function(){var e=this;this.$nextTick(function(){e.removeDocumentEvents()})},methods:{defaultHandle:function(e){var n=e.index;e.directives;var r=e.className,i=e.style,s=z(e,Ie);if(delete s.dragging,s.value===null)return null;var l=f(f({},s),{},{class:r,style:i,key:n});return P(me,l,null)},onDown:function(e,n){var r=n,i=this.$props,s=i.draggableTrack,l=i.vertical,d=this.$data.bounds,u=s&&this.positionGetValue?this.positionGetValue(r)||[]:[],v=W(e,this.handlesRefs);if(this.dragTrack=s&&d.length>=2&&!v&&!u.map(function(y,C){var M=C?!0:y>=d[C];return C===u.length-1?y<=d[C]:M}).some(function(y){return!y}),this.dragTrack)this.dragOffset=r,this.startBounds=D(d);else{if(!v)this.dragOffset=0;else{var m=re(l,e.target);this.dragOffset=r-m,r=m}this.onStart(r)}},onMouseDown:function(e){if(e.button===0){this.removeDocumentEvents();var n=this.$props.vertical,r=ae(n,e);this.onDown(e,r),this.addDocumentMouseEvents()}},onTouchStart:function(e){if(!ee(e)){var n=this.vertical,r=ne(n,e);this.onDown(e,r),this.addDocumentTouchEvents(),G(e)}},onFocus:function(e){var n=this.vertical;if(W(e,this.handlesRefs)&&!this.dragTrack){var r=re(n,e.target);this.dragOffset=0,this.onStart(r),G(e),this.$emit("focus",e)}},onBlur:function(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(e){if(!this.sliderRef){this.onEnd();return}var n=ae(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove:function(e){if(ee(e)||!this.sliderRef){this.onEnd();return}var n=ne(this.vertical,e);this.onMove(e,n-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown:function(e){this.sliderRef&&W(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel:function(e,n){var r=this;e.stopPropagation(),this.onChange({sValue:n}),this.setState({sValue:n},function(){return r.onEnd(!0)})},getSliderStart:function(){var e=this.sliderRef,n=this.vertical,r=this.reverse,i=e.getBoundingClientRect();return n?r?i.bottom:i.top:window.pageXOffset+(r?i.right:i.left)},getSliderLength:function(){var e=this.sliderRef;if(!e)return 0;var n=e.getBoundingClientRect();return this.vertical?n.height:n.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=K(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=K(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=K(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=K(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var e;this.$props.disabled||(e=this.handlesRefs[0])===null||e===void 0||e.focus()},blur:function(){var e=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach(function(n){var r,i;(r=e.handlesRefs[n])===null||r===void 0||(i=r.blur)===null||i===void 0||i.call(r)})},calcValue:function(e){var n=this.vertical,r=this.min,i=this.max,s=Math.abs(Math.max(e,0)/this.getSliderLength()),l=n?(1-s)*(i-r)+r:s*(i-r)+r;return l},calcValueByPos:function(e){var n=this.reverse?-1:1,r=n*(e-this.getSliderStart()),i=this.trimAlignValue(this.calcValue(r));return i},calcOffset:function(e){var n=this.min,r=this.max,i=(e-n)/(r-n);return Math.max(0,i*100)},saveSlider:function(e){this.sliderRef=e},saveHandle:function(e,n){this.handlesRefs[e]=n}},render:function(){var e,n=this.prefixCls,r=this.marks,i=this.dots,s=this.step,l=this.included,d=this.disabled,u=this.vertical,v=this.reverse,m=this.min,y=this.max,C=this.maximumTrackStyle,M=this.railStyle,w=this.dotStyle,g=this.activeDotStyle,h=this.id,p=this.$attrs,S=p.class,x=p.style,F=this.renderSlider(),V=F.tracks,c=F.handles,T=A(n,S,(e={},b(e,"".concat(n,"-with-marks"),Object.keys(r).length),b(e,"".concat(n,"-disabled"),d),b(e,"".concat(n,"-vertical"),u),e)),$={vertical:u,marks:r,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,reverse:v,class:"".concat(n,"-mark"),onClickLabel:d?R:this.onClickMarkLabel},B=b({},oe?"onTouchstartPassive":"onTouchstart",d?R:this.onTouchStart);return P("div",f(f({id:h,ref:this.saveSlider,tabindex:"-1",class:T},B),{},{onMousedown:d?R:this.onMouseDown,onMouseup:d?R:this.onMouseUp,onKeydown:d?R:this.onKeyDown,onFocus:d?R:this.onFocus,onBlur:d?R:this.onBlur,style:x}),[P("div",{class:"".concat(n,"-rail"),style:f(f({},C),M)},null),V,P(je,{prefixCls:n,vertical:u,reverse:v,marks:r,dots:i,step:s,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:y,min:m,dotStyle:w,activeDotStyle:g},null),c,P(Ue,$,{mark:this.$slots.mark}),Te(this)])}})}var Ke=j({compatConfig:{MODE:3},name:"Slider",mixins:[J],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:k.oneOfType([k.number,k.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var t=this.defaultValue!==void 0?this.defaultValue:this.min,a=this.value!==void 0?this.value:t;return{sValue:this.trimAlignValue(a),dragging:!1}},watch:{value:{handler:function(t){this.setChangeValue(t)},deep:!0},min:function(){var t=this.sValue;this.setChangeValue(t)},max:function(){var t=this.sValue;this.setChangeValue(t)}},methods:{setChangeValue:function(t){var a=t!==void 0?t:this.sValue,e=this.trimAlignValue(a,this.$props);e!==this.sValue&&(this.setState({sValue:e}),pe(a,this.$props)&&this.$emit("change",e))},onChange:function(t){var a=!Y(this,"value"),e=t.sValue>this.max?f(f({},t),{},{sValue:this.max}):t;a&&this.setState(e);var n=e.sValue;this.$emit("change",n)},onStart:function(t){this.setState({dragging:!0});var a=this.sValue;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t,e!==a&&(this.prevMovedHandleIndex=0,this.onChange({sValue:e}))},onEnd:function(t){var a=this.dragging;this.removeDocumentEvents(),(a||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(t,a){G(t);var e=this.sValue,n=this.calcValueByPos(a);n!==e&&this.onChange({sValue:n})},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.sValue,s=r(i,this.$props),l=this.trimAlignValue(s);if(l===i)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound:function(){var t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound:function(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(t===null)return null;var e=f(f({},this.$props),a),n=Z(t,e);return be(n,e)},getTrack:function(t){var a=t.prefixCls,e=t.reverse,n=t.vertical,r=t.included,i=t.minimumTrackStyle,s=t.mergedTrackStyle,l=t.length,d=t.offset;return P(ve,{class:"".concat(a,"-track"),vertical:n,included:r,offset:d,reverse:e,length:l,style:f(f({},i),s)},null)},renderSlider:function(){var t=this,a=this.prefixCls,e=this.vertical,n=this.included,r=this.disabled,i=this.minimumTrackStyle,s=this.trackStyle,l=this.handleStyle,d=this.tabindex,u=this.ariaLabelForHandle,v=this.ariaLabelledByForHandle,m=this.ariaValueTextFormatterForHandle,y=this.min,C=this.max,M=this.startPoint,w=this.reverse,g=this.handle,h=this.defaultHandle,p=g||h,S=this.sValue,x=this.dragging,F=this.calcOffset(S),V=p({class:"".concat(a,"-handle"),prefixCls:a,vertical:e,offset:F,value:S,dragging:x,disabled:r,min:y,max:C,reverse:w,index:0,tabindex:d,ariaLabel:u,ariaLabelledBy:v,ariaValueTextFormatter:m,style:l[0]||l,ref:function(B){return t.saveHandle(0,B)},onFocus:this.onFocus,onBlur:this.onBlur}),c=M!==void 0?this.calcOffset(M):0,T=s[0]||s;return{tracks:this.getTrack({prefixCls:a,reverse:w,vertical:e,included:n,offset:c,minimumTrackStyle:i,mergedTrackStyle:T,length:F-c}),handles:V}}}});const Xe=xe(Ke);var I=function(t){var a=t.value,e=t.handle,n=t.bounds,r=t.props,i=r.allowCross,s=r.pushable,l=Number(s),d=Z(a,r),u=d;return!i&&e!=null&&n!==void 0&&(e>0&&d<=n[e-1]+l&&(u=n[e-1]+l),e=n[e+1]-l&&(u=n[e+1]-l)),be(u,r)},We={defaultValue:k.arrayOf(k.number),value:k.arrayOf(k.number),count:Number,pushable:Be(k.oneOfType([k.looseBool,k.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:k.arrayOf(k.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},ze=j({compatConfig:{MODE:3},name:"Range",mixins:[J],inheritAttrs:!1,props:de(We,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var t=this,a=this.count,e=this.min,n=this.max,r=Array.apply(void 0,D(Array(a+1))).map(function(){return e}),i=Y(this,"defaultValue")?this.defaultValue:r,s=this.value;s===void 0&&(s=i);var l=s.map(function(u,v){return I({value:u,handle:v,props:t.$props})}),d=l[0]===n?0:l.length-1;return{sHandle:null,recent:d,bounds:l}},watch:{value:{handler:function(t){var a=this.bounds;this.setChangeValue(t||a)},deep:!0},min:function(){var t=this.value;this.setChangeValue(t||this.bounds)},max:function(){var t=this.value;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue:function(t){var a=this,e=this.bounds,n=t.map(function(i,s){return I({value:i,handle:s,bounds:e,props:a.$props})});if(e.length===n.length){if(n.every(function(i,s){return i===e[s]}))return null}else n=t.map(function(i,s){return I({value:i,handle:s,props:a.$props})});if(this.setState({bounds:n}),t.some(function(i){return pe(i,a.$props)})){var r=t.map(function(i){return Z(i,a.$props)});this.$emit("change",r)}},onChange:function(t){var a=!Y(this,"value");if(a)this.setState(t);else{var e={};["sHandle","recent"].forEach(function(i){t[i]!==void 0&&(e[i]=t[i])}),Object.keys(e).length&&this.setState(e)}var n=f(f({},this.$data),t),r=n.bounds;this.$emit("change",r)},positionGetValue:function(t){var a=this.getValue(),e=this.calcValueByPos(t),n=this.getClosestBound(e),r=this.getBoundNeedMoving(e,n),i=a[r];if(e===i)return null;var s=D(a);return s[r]=e,s},onStart:function(t){var a=this.bounds;this.$emit("beforeChange",a);var e=this.calcValueByPos(t);this.startValue=e,this.startPosition=t;var n=this.getClosestBound(e);this.prevMovedHandleIndex=this.getBoundNeedMoving(e,n),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var r=a[this.prevMovedHandleIndex];if(e!==r){var i=D(a);i[this.prevMovedHandleIndex]=e,this.onChange({bounds:i})}},onEnd:function(t){var a=this.sHandle;this.removeDocumentEvents(),a||(this.dragTrack=!1),(a!==null||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(t,a,e,n){G(t);var r=this.$data,i=this.$props,s=i.max||100,l=i.min||0;if(e){var d=i.vertical?-a:a;d=i.reverse?-d:d;var u=s-Math.max.apply(Math,D(n)),v=l-Math.min.apply(Math,D(n)),m=Math.min(Math.max(d/(this.getSliderLength()/100),v),u),y=n.map(function(h){return Math.floor(Math.max(Math.min(h+m,s),l))});r.bounds.map(function(h,p){return h===y[p]}).some(function(h){return!h})&&this.onChange({bounds:y});return}var C=this.bounds,M=this.sHandle,w=this.calcValueByPos(a),g=C[M];w!==g&&this.moveTo(w)},onKeyboard:function(t){var a=this.$props,e=a.reverse,n=a.vertical,r=ye(t,n,e);if(r){G(t);var i=this.bounds,s=this.sHandle,l=i[s===null?this.recent:s],d=r(l,this.$props),u=I({value:d,handle:s,bounds:i,props:this.$props});if(u===l)return;var v=!0;this.moveTo(u,v)}},getClosestBound:function(t){for(var a=this.bounds,e=0,n=1;n=a[n]&&(e=n);return Math.abs(a[e+1]-t)=n.length||i<0)return!1;var s=a+e,l=n[i],d=this.pushable,u=Number(d),v=e*(t[s]-l);return this.pushHandle(t,s,e,u-v)?(t[a]=l,!0):!1},trimAlignValue:function(t){var a=this.sHandle,e=this.bounds;return I({value:t,handle:a,bounds:e,props:this.$props})},ensureValueNotConflict:function(t,a,e){var n=e.allowCross,r=e.pushable,i=this.$data||{},s=i.bounds;if(t=t===void 0?i.sHandle:t,r=Number(r),!n&&t!=null&&s!==void 0){if(t>0&&a<=s[t-1]+r)return s[t-1]+r;if(t=s[t+1]-r)return s[t+1]-r}return a},getTrack:function(t){var a=t.bounds,e=t.prefixCls,n=t.reverse,r=t.vertical,i=t.included,s=t.offsets,l=t.trackStyle;return a.slice(0,-1).map(function(d,u){var v,m=u+1,y=A((v={},b(v,"".concat(e,"-track"),!0),b(v,"".concat(e,"-track-").concat(m),!0),v));return P(ve,{class:y,vertical:r,reverse:n,included:i,offset:s[m-1],length:s[m]-s[m-1],style:l[u],key:m},null)})},renderSlider:function(){var t=this,a=this.sHandle,e=this.bounds,n=this.prefixCls,r=this.vertical,i=this.included,s=this.disabled,l=this.min,d=this.max,u=this.reverse,v=this.handle,m=this.defaultHandle,y=this.trackStyle,C=this.handleStyle,M=this.tabindex,w=this.ariaLabelGroupForHandles,g=this.ariaLabelledByGroupForHandles,h=this.ariaValueTextFormatterGroupForHandles,p=v||m,S=e.map(function(V){return t.calcOffset(V)}),x="".concat(n,"-handle"),F=e.map(function(V,c){var T,$=M[c]||0;(s||M[c]===null)&&($=null);var B=a===c;return p({class:A((T={},b(T,x,!0),b(T,"".concat(x,"-").concat(c+1),!0),b(T,"".concat(x,"-dragging"),B),T)),prefixCls:n,vertical:r,dragging:B,offset:S[c],value:V,index:c,tabindex:$,min:l,max:d,reverse:u,disabled:s,style:C[c],ref:function(H){return t.saveHandle(c,H)},onFocus:t.onFocus,onBlur:t.onBlur,ariaLabel:w[c],ariaLabelledBy:g[c],ariaValueTextFormatter:h[c]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:u,vertical:r,included:i,offsets:S,trackStyle:y}),handles:F}}}});const Ye=xe(ze),Je=j({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Pe(),setup:function(t,a){var e=a.attrs,n=a.slots,r=U(null),i=U(null);function s(){q.cancel(i.value),i.value=null}function l(){i.value=q(function(){var u;(u=r.value)===null||u===void 0||u.forcePopupAlign(),i.value=null})}var d=function(){s(),t.visible&&l()};return we([function(){return t.visible},function(){return t.title}],function(){d()},{flush:"post",immediate:!0}),Fe(function(){d()}),le(function(){s()}),function(){return P($e,f(f({ref:r},t),e),n)}}});var Ze=["value","dragging","index"],qe=["tooltipPrefixCls","range","id"],Qe=function(t){return typeof t=="number"?t.toString():""},et=function(){return{id:String,prefixCls:String,tooltipPrefixCls:String,range:{type:[Boolean,Object],default:void 0},reverse:{type:Boolean,default:void 0},min:Number,max:Number,step:{type:[Number,Object]},marks:{type:Object},dots:{type:Boolean,default:void 0},value:{type:[Number,Array]},defaultValue:{type:[Number,Array]},included:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},tipFormatter:{type:[Function,Object],default:function(){return Qe}},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{type:String},getTooltipPopupContainer:{type:Function},autofocus:{type:Boolean,default:void 0},handleStyle:{type:[Object,Array]},trackStyle:{type:[Object,Array]},onChange:{type:Function},onAfterChange:{type:Function},onFocus:{type:Function},onBlur:{type:Function},"onUpdate:value":{type:Function}}},tt=j({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:et(),slots:["mark"],setup:function(t,a){var e=a.attrs,n=a.slots,r=a.emit,i=a.expose,s=Oe("slider",t),l=s.prefixCls,d=s.rootPrefixCls,u=s.direction,v=s.getPopupContainer,m=s.configProvider,y=Ne(),C=U(),M=U({}),w=function(c,T){M.value[c]=T},g=ue(function(){return t.tooltipPlacement?t.tooltipPlacement:t.vertical?u.value==="rtl"?"left":"right":"top"}),h=function(){var c;(c=C.value)===null||c===void 0||c.focus()},p=function(){var c;(c=C.value)===null||c===void 0||c.blur()},S=function(c){r("update:value",c),r("change",c),y.onFieldChange()},x=function(c){r("blur",c)};i({focus:h,blur:p});var F=function(c){var T=c.tooltipPrefixCls,$=c.info,B=$.value,L=$.dragging,H=$.index,_=z($,Ze),O=t.tipFormatter,N=t.tooltipVisible,X=t.getTooltipPopupContainer,ke=O?M.value[H]||L:!1,Ce=N||N===void 0&&ke;return P(Je,{prefixCls:T,title:O?O(B):"",visible:Ce,placement:g.value,transitionName:"".concat(d.value,"-zoom-down"),key:H,overlayClassName:"".concat(l.value,"-tooltip"),getPopupContainer:X||v.value},{default:function(){return[P(me,f(f({},_),{},{value:B,onMouseenter:function(){return w(H,!0)},onMouseleave:function(){return w(H,!1)}}),null)]}})};return function(){var V=t.tooltipPrefixCls,c=t.range,T=t.id,$=T===void 0?y.id.value:T,B=z(t,qe),L=m.getPrefixCls("tooltip",V),H=A(e.class,b({},"".concat(l.value,"-rtl"),u.value==="rtl"));u.value==="rtl"&&!B.vertical&&(B.reverse=!B.reverse);var _;return se(c)==="object"&&(_=c.draggableTrack),c?P(Ye,f(f({},B),{},{step:B.step,draggableTrack:_,class:H,ref:C,handle:function(N){return F({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark}):P(Xe,f(f({},B),{},{id:$,step:B.step,class:H,ref:C,handle:function(N){return F({tooltipPrefixCls:L,prefixCls:l.value,info:N})},prefixCls:l.value,onChange:S,onBlur:x}),{mark:n.mark})}}});const at=He(tt);const nt={class:"num-input"},lt=j({__name:"numInput",props:Le({min:{},max:{},step:{}},{modelValue:{}}),emits:["update:modelValue"],setup(o){const t=o,a=_e(o,"modelValue");return(e,n)=>{const r=Re,i=at;return Ee(),De("div",nt,[P(r,Q({value:a.value,"onUpdate:value":n[0]||(n[0]=s=>a.value=s)},t),null,16,["value"]),P(i,Q({value:a.value,"onUpdate:value":n[1]||(n[1]=s=>a.value=s)},t,{class:"slide"}),null,16,["value"])])}}});export{lt as _}; diff --git a/vue/dist/assets/randomImage-12e0ef07.js b/vue/dist/assets/randomImage-12e0ef07.js new file mode 100644 index 0000000..00c3db6 --- /dev/null +++ b/vue/dist/assets/randomImage-12e0ef07.js @@ -0,0 +1 @@ +import{d as Z,a1 as ee,r as F,J as te,K as le,o as ie,U as v,V as N,c as i,a4 as e,W as g,a3 as n,X as k,Y as u,a5 as R,L as se,a6 as ae,af as oe,ag as $,$ as A,a2 as ne,z as w,B as re,cX as ce,cY as de,ak as ue,ai as me,T as fe,a0 as pe}from"./index-0205daf8.js";import{u as ve,c as ge,a as ke,F as we,d as he}from"./FileItem-cc53e03a.js";import{a as Ce,b as Se,c as _e,M as Ie,o as z,L as ye,R as xe,f as be}from"./MultiSelectKeep-74181f4c.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";/* empty css */import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./index-e9cc5bd5.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";import"./index-728b29ca.js";const Ve={class:"refresh-button"},Me={class:"hint"},Te={key:0,class:"preview-switch"},Fe=Z({__name:"randomImage",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(Ne){const B=ee(),m=F(!1),l=F([]),r=l,h=te(`${le}randomImageSettingNotificationShown`,!1),P=()=>{h.value||(w.info({content:re("randomImageSettingNotification"),duration:6,key:"randomImageSetting"}),h.value=!0)},f=async()=>{try{m.value=!0;const s=await ce();s.length===0&&w.warn("No data, please generate index in image search page first"),l.value=s}finally{m.value=!1,_()}},C=()=>{if(l.value.length===0){w.warn("没有图片可以浏览");return}z(l.value,o.value||0)};ie(()=>{f(),setTimeout(()=>{P()},2e3)});const{stackViewEl:K,multiSelectedIdxs:p,stack:L,scroller:U}=ve({images:l}).toRefs(),{onClearAllSelected:D,onSelectAll:E,onReverseSelect:G}=ge();Ce();const{itemSize:S,gridItems:O,cellWidth:W,onScroll:_}=ke(),{showGenInfo:c,imageGenInfo:I,q:X,onContextMenuClick:Y,onFileItemClick:q}=Se({openNext:de}),{previewIdx:o,previewing:y,onPreviewVisibleChange:H,previewImgMove:x,canPreview:b}=_e(),V=async(s,t,d)=>{L.value=[{curr:"",files:l.value}],await Y(s,t,d)};return(s,t)=>{var M;const d=ue,J=me,Q=fe;return v(),N("div",{class:"container",ref_key:"stackViewEl",ref:K},[i(Ie,{show:!!e(p).length||e(B).keepMultiSelect,onClearAllSelected:e(D),onSelectAll:e(E),onReverseSelect:e(G)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),g("div",Ve,[i(d,{onClick:f,onTouchstart:R(f,["prevent"]),type:"primary",loading:m.value,shape:"round"},{default:n(()=>[k(u(s.$t("shuffle")),1)]),_:1},8,["onTouchstart","loading"]),i(d,{onClick:C,onTouchstart:R(C,["prevent"]),type:"default",disabled:!((M=l.value)!=null&&M.length),shape:"round"},{default:n(()=>[k(u(s.$t("tiktokView")),1)]),_:1},8,["onTouchstart","disabled"])]),i(Q,{visible:e(c),"onUpdate:visible":t[1]||(t[1]=a=>ae(c)?c.value=a:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=a=>c.value=!1)},{cancelText:n(()=>[]),default:n(()=>[i(J,{active:"",loading:!e(X).isIdle},{default:n(()=>[g("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=a=>e(se)(e(I)))},[g("div",Me,u(s.$t("doubleClickToCopy")),1),k(" "+u(e(I)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),i(e(he),{ref_key:"scroller",ref:U,class:"file-list",items:l.value.slice(),"item-size":e(S).first,"key-field":"fullpath","item-secondary-size":e(S).second,gridItems:e(O),onScroll:e(_)},{default:n(({item:a,index:T})=>[i(we,{idx:T,file:a,"cell-width":e(W),"full-screen-preview-image-url":e(r)[e(o)]?e(oe)(e(r)[e(o)]):"",onContextMenuClick:V,onPreviewVisibleChange:e(H),"is-selected-mutil-files":e(p).length>1,selected:e(p).includes(T),onFileItemClick:e(q),onTiktokView:(Re,j)=>e(z)(l.value,j)},null,8,["idx","file","cell-width","full-screen-preview-image-url","onPreviewVisibleChange","is-selected-mutil-files","selected","onFileItemClick","onTiktokView"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"]),e(y)?(v(),N("div",Te,[i(e(ye),{onClick:t[3]||(t[3]=a=>e(x)("prev")),class:$({disable:!e(b)("prev")})},null,8,["class"]),i(e(xe),{onClick:t[4]||(t[4]=a=>e(x)("next")),class:$({disable:!e(b)("next")})},null,8,["class"])])):A("",!0),e(y)&&e(r)&&e(r)[e(o)]?(v(),ne(be,{key:1,file:e(r)[e(o)],idx:e(o),onContextMenuClick:V},null,8,["file","idx"])):A("",!0)],512)}}});const We=pe(Fe,[["__scopeId","data-v-e1531e89"]]);export{We as default}; diff --git a/vue/dist/assets/randomImage-fb03ed0b.js b/vue/dist/assets/randomImage-fb03ed0b.js deleted file mode 100644 index 966bfb7..0000000 --- a/vue/dist/assets/randomImage-fb03ed0b.js +++ /dev/null @@ -1 +0,0 @@ -import{d as Z,a1 as ee,r as F,J as te,K as le,o as ie,U as v,V as N,c as i,a4 as e,W as g,a3 as n,X as k,Y as u,a5 as R,L as se,a6 as ae,af as oe,ag as $,$ as A,a2 as ne,z as w,B as re,cV as ce,cW as de,ak as ue,ai as me,T as fe,a0 as pe}from"./index-d6594e8e.js";import{u as ve,c as ge,a as ke,F as we,d as he}from"./FileItem-2eb00024.js";import{a as Ce,b as Se,c as _e,M as Ie,o as z,L as ye,R as xe,f as be}from"./MultiSelectKeep-ba3817a4.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";/* empty css */import"./index-cb6a3d31.js";import"./_isIterateeCall-bfd79848.js";import"./index-30b8f89a.js";import"./index-9b184148.js";import"./shortcut-0468cdd7.js";import"./Checkbox-59427a1c.js";import"./index-e620c28b.js";const Ve={class:"refresh-button"},Me={class:"hint"},Te={key:0,class:"preview-switch"},Fe=Z({__name:"randomImage",props:{tabIdx:{},paneIdx:{},id:{},paneKey:{}},setup(Ne){const B=ee(),m=F(!1),l=F([]),r=l,h=te(`${le}randomImageSettingNotificationShown`,!1),P=()=>{h.value||(w.info({content:re("randomImageSettingNotification"),duration:6,key:"randomImageSetting"}),h.value=!0)},f=async()=>{try{m.value=!0;const s=await ce();s.length===0&&w.warn("No data, please generate index in image search page first"),l.value=s}finally{m.value=!1,_()}},C=()=>{if(l.value.length===0){w.warn("没有图片可以浏览");return}z(l.value,o.value||0)};ie(()=>{f(),setTimeout(()=>{P()},2e3)});const{stackViewEl:K,multiSelectedIdxs:p,stack:L,scroller:U}=ve({images:l}).toRefs(),{onClearAllSelected:W,onSelectAll:D,onReverseSelect:E}=ge();Ce();const{itemSize:S,gridItems:G,cellWidth:O,onScroll:_}=ke(),{showGenInfo:c,imageGenInfo:I,q,onContextMenuClick:H,onFileItemClick:J}=Se({openNext:de}),{previewIdx:o,previewing:y,onPreviewVisibleChange:Q,previewImgMove:x,canPreview:b}=_e(),V=async(s,t,d)=>{L.value=[{curr:"",files:l.value}],await H(s,t,d)};return(s,t)=>{var M;const d=ue,X=me,Y=fe;return v(),N("div",{class:"container",ref_key:"stackViewEl",ref:K},[i(Ie,{show:!!e(p).length||e(B).keepMultiSelect,onClearAllSelected:e(W),onSelectAll:e(D),onReverseSelect:e(E)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),g("div",Ve,[i(d,{onClick:f,onTouchstart:R(f,["prevent"]),type:"primary",loading:m.value,shape:"round"},{default:n(()=>[k(u(s.$t("shuffle")),1)]),_:1},8,["onTouchstart","loading"]),i(d,{onClick:C,onTouchstart:R(C,["prevent"]),type:"default",disabled:!((M=l.value)!=null&&M.length),shape:"round"},{default:n(()=>[k(u(s.$t("tiktokView")),1)]),_:1},8,["onTouchstart","disabled"])]),i(Y,{visible:e(c),"onUpdate:visible":t[1]||(t[1]=a=>ae(c)?c.value=a:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=a=>c.value=!1)},{cancelText:n(()=>[]),default:n(()=>[i(X,{active:"",loading:!e(q).isIdle},{default:n(()=>[g("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=a=>e(se)(e(I)))},[g("div",Me,u(s.$t("doubleClickToCopy")),1),k(" "+u(e(I)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),i(e(he),{ref_key:"scroller",ref:U,class:"file-list",items:l.value.slice(),"item-size":e(S).first,"key-field":"fullpath","item-secondary-size":e(S).second,gridItems:e(G),onScroll:e(_)},{default:n(({item:a,index:T})=>[i(we,{idx:T,file:a,"cell-width":e(O),"full-screen-preview-image-url":e(r)[e(o)]?e(oe)(e(r)[e(o)]):"",onContextMenuClick:V,onPreviewVisibleChange:e(Q),"is-selected-mutil-files":e(p).length>1,selected:e(p).includes(T),onFileItemClick:e(J),onTiktokView:(Re,j)=>e(z)(l.value,j)},null,8,["idx","file","cell-width","full-screen-preview-image-url","onPreviewVisibleChange","is-selected-mutil-files","selected","onFileItemClick","onTiktokView"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"]),e(y)?(v(),N("div",Te,[i(e(ye),{onClick:t[3]||(t[3]=a=>e(x)("prev")),class:$({disable:!e(b)("prev")})},null,8,["class"]),i(e(xe),{onClick:t[4]||(t[4]=a=>e(x)("next")),class:$({disable:!e(b)("next")})},null,8,["class"])])):A("",!0),e(y)&&e(r)&&e(r)[e(o)]?(v(),ne(be,{key:1,file:e(r)[e(o)],idx:e(o),onContextMenuClick:V},null,8,["file","idx"])):A("",!0)],512)}}});const Oe=pe(Fe,[["__scopeId","data-v-e1531e89"]]);export{Oe as default}; diff --git a/vue/dist/assets/searchHistory-07858f1f.js b/vue/dist/assets/searchHistory-c9de01d4.js similarity index 95% rename from vue/dist/assets/searchHistory-07858f1f.js rename to vue/dist/assets/searchHistory-c9de01d4.js index 8ba787e..0f38356 100644 --- a/vue/dist/assets/searchHistory-07858f1f.js +++ b/vue/dist/assets/searchHistory-c9de01d4.js @@ -1 +1 @@ -import{R as y,C as v}from"./index-68461333.js";import{cw as f,c as d,A as w,d as P,U as a,V as c,W as r,Z as S,a8 as V,aG as O,a3 as R,X as u,Y as p,a4 as b,ak as $,a0 as x,R as H,J as _,K as m}from"./index-d6594e8e.js";const A=f(y),E=f(v);var L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"};const C=L;function h(t){for(var e=1;e{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,V(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",k,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",I,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(b(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const q=x(J,[["__scopeId","data-v-fff181dd"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:H()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}getPinnedValues(){return this.pinnedValues}}const G=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{q as H,E as _,A as a,G as f,M as t}; +import{R as y,C as v}from"./index-b9ffc995.js";import{cw as f,c as d,A as w,d as P,U as a,V as c,W as r,Z as S,a8 as V,aG as O,a3 as R,X as u,Y as p,a4 as b,ak as $,a0 as x,R as H,J as _,K as m}from"./index-0205daf8.js";const A=f(y),E=f(v);var L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"};const C=L;function h(t){for(var e=1;e{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,V(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",k,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",I,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(b(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const q=x(J,[["__scopeId","data-v-fff181dd"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:H()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}getPinnedValues(){return this.pinnedValues}}const G=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{q as H,E as _,A as a,G as f,M as t}; diff --git a/vue/dist/assets/shortcut-0468cdd7.js b/vue/dist/assets/shortcut-eca2d427.js similarity index 97% rename from vue/dist/assets/shortcut-0468cdd7.js rename to vue/dist/assets/shortcut-eca2d427.js index e4d0101..ea2fa52 100644 --- a/vue/dist/assets/shortcut-0468cdd7.js +++ b/vue/dist/assets/shortcut-eca2d427.js @@ -1,2 +1,2 @@ -import{du as L,a as b,P as Q,d as D,j as R,u as W,av as Y,bh as Z,bk as ee,o as ae,w as ne,r as G,f as te,_ as N,an as U,h as S,c as M,m as T,G as E,ax as re,i as ue}from"./index-d6594e8e.js";import{V as le}from"./Checkbox-59427a1c.js";function oe(n,e){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=L(n))||e&&n&&typeof n.length=="number"){r&&(n=r);var d=0,i=function(){};return{s:i,n:function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}},e:function(o){throw o},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{du as L,a as b,P as Q,d as D,j as R,u as W,av as Y,bh as Z,bk as ee,o as ae,w as ne,r as G,f as te,_ as N,an as U,h as S,c as M,m as T,G as E,ax as re,i as ue}from"./index-0205daf8.js";import{V as le}from"./Checkbox-951f37ba.js";function oe(n,e){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=L(n))||e&&n&&typeof n.length=="number"){r&&(n=r);var d=0,i=function(){};return{s:i,n:function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}},e:function(o){throw o},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,y=!1,x;return{s:function(){r=r.call(n)},n:function(){var o=r.next();return g=o.done,o},e:function(o){y=!0,x=o},f:function(){try{!g&&r.return!=null&&r.return()}finally{if(y)throw x}}}}var ie=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},ce=function(){return b(b({},ie()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},se=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Q.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},de=function(){return b(b({},se()),{},{indeterminate:{type:Boolean,default:!1}})},H=Symbol("CheckboxGroupContext"),fe=["indeterminate","skipGroup","id"],ve=["onMouseenter","onMouseleave","onInput","class","style"];const w=D({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:de(),setup:function(e,r){var d=r.emit,i=r.attrs,g=r.slots,y=r.expose,x=R(),c=W("checkbox",e),o=c.prefixCls,h=c.direction,u=Y(H,void 0),k=Symbol("checkboxUniId");Z(function(){!e.skipGroup&&u&&u.registerValue(k,e.value)}),ee(function(){u&&u.cancelValue(k)}),ae(function(){ne(e.checked!==void 0||u||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var _=function(a){var t=a.target.checked;d("update:checked",t),d("change",a)},V=G(),O=function(){var a;(a=V.value)===null||a===void 0||a.focus()},P=function(){var a;(a=V.value)===null||a===void 0||a.blur()};return y({focus:O,blur:P}),function(){var m,a,t=te((m=g.default)===null||m===void 0?void 0:m.call(g)),s=e.indeterminate,f=e.skipGroup,v=e.id,l=v===void 0?x.id.value:v,C=N(e,fe),A=i.onMouseenter,j=i.onMouseleave;i.onInput;var I=i.class,X=i.style,q=N(i,ve),p=b(b({},C),{},{id:l,prefixCls:o.value},q);u&&!f?(p.onChange=function(){for(var $=arguments.length,K=new Array($),B=0;B<$;B++)K[B]=arguments[B];d.apply(void 0,["change"].concat(K)),u.toggleOption({label:t,value:e.value})},p.name=u.name.value,p.checked=u.mergedValue.value.indexOf(e.value)!==-1,p.disabled=e.disabled||u.disabled.value,p.indeterminate=s):p.onChange=_;var z=U((a={},S(a,"".concat(o.value,"-wrapper"),!0),S(a,"".concat(o.value,"-rtl"),h.value==="rtl"),S(a,"".concat(o.value,"-wrapper-checked"),p.checked),S(a,"".concat(o.value,"-wrapper-disabled"),p.disabled),a),I),J=U(S({},"".concat(o.value,"-indeterminate"),s));return M("label",{class:z,style:X,onMouseenter:A,onMouseleave:j},[M(le,b(b({},p),{},{class:J,ref:V}),null),t.length?M("span",null,[t]):null])}}}),F=D({compatConfig:{MODE:3},name:"ACheckboxGroup",props:ce(),setup:function(e,r){var d=r.slots,i=r.emit,g=r.expose,y=R(),x=W("checkbox",e),c=x.prefixCls,o=x.direction,h=G((e.value===void 0?e.defaultValue:e.value)||[]);T(function(){return e.value},function(){h.value=e.value||[]});var u=E(function(){return e.options.map(function(a){return typeof a=="string"||typeof a=="number"?{label:a,value:a}:a})}),k=G(Symbol()),_=G(new Map),V=function(t){_.value.delete(t),k.value=Symbol()},O=function(t,s){_.value.set(t,s),k.value=Symbol()},P=G(new Map);T(k,function(){var a=new Map,t=oe(_.value.values()),s;try{for(t.s();!(s=t.n()).done;){var f=s.value;a.set(f,!0)}}catch(v){t.e(v)}finally{t.f()}P.value=a});var m=function(t){var s=h.value.indexOf(t.value),f=ue(h.value);s===-1?f.push(t.value):f.splice(s,1),e.value===void 0&&(h.value=f);var v=f.filter(function(l){return P.value.has(l)}).sort(function(l,C){var A=u.value.findIndex(function(I){return I.value===l}),j=u.value.findIndex(function(I){return I.value===C});return A-j});i("update:value",v),i("change",v),y.onFieldChange()};return re(H,{cancelValue:V,registerValue:O,toggleOption:m,mergedValue:h,name:E(function(){return e.name}),disabled:E(function(){return e.disabled})}),g({mergedValue:h}),function(){var a,t=e.id,s=t===void 0?y.id.value:t,f=null,v="".concat(c.value,"-group");return u.value&&u.value.length>0&&(f=u.value.map(function(l){var C;return M(w,{prefixCls:c.value,key:l.value.toString(),disabled:"disabled"in l?l.disabled:e.disabled,indeterminate:l.indeterminate,value:l.value,checked:h.value.indexOf(l.value)!==-1,onChange:l.onChange,class:"".concat(v,"-item")},{default:function(){return[l.label===void 0?(C=d.label)===null||C===void 0?void 0:C.call(d,l):l.label]}})})),M("div",{class:[v,S({},"".concat(v,"-rtl"),o.value==="rtl")],id:s},[f||((a=d.default)===null||a===void 0?void 0:a.call(d))])}}});w.Group=F;w.install=function(n){return n.component(w.name,w),n.component(F.name,F),n};const me=n=>{const e=[];return n.shiftKey&&e.push("Shift"),n.ctrlKey&&e.push("Ctrl"),n.metaKey&&e.push("Cmd"),(n.code.startsWith("Key")||n.code.startsWith("Digit"))&&e.push(n.code),n.key==="Escape"&&e.push("Esc"),e.join(" + ")};export{w as C,F as _,me as g}; diff --git a/vue/dist/assets/stackView-a05c3f99.js b/vue/dist/assets/stackView-2bd6cdf7.js similarity index 96% rename from vue/dist/assets/stackView-a05c3f99.js rename to vue/dist/assets/stackView-2bd6cdf7.js index af6a050..fc06aef 100644 --- a/vue/dist/assets/stackView-a05c3f99.js +++ b/vue/dist/assets/stackView-2bd6cdf7.js @@ -1 +1 @@ -import{d as he,u as qe,g as fe,_ as dt,c as i,a as Be,P as Se,D as Ee,f as pt,w as Et,b as zt,e as Vt,h as tt,M as ze,i as jt,j as Ut,F as Ve,A as ft,k as Oe,l as Wt,r as pe,m as je,n as at,o as Ht,p as we,s as Te,q as U,t as nt,v as qt,x as Gt,y as Kt,z as de,B as N,C as Qt,E as Jt,G as _e,H as ot,I as Xt,J as Yt,K as Zt,L as Ue,N as ea,O as ta,Q as Le,R as Ne,S as aa,T as vt,U as R,V as j,W as h,X as ee,Y as b,Z as We,$ as J,a0 as mt,a1 as na,a2 as K,a3 as g,a4 as e,a5 as k,a6 as Q,a7 as oa,a8 as st,a9 as sa,aa as la,ab as ra,ac as ia,ad as ua,ae as ca,af as da,ag as lt,ah as pa,ai as fa,aj as va,ak as ma,al as ha}from"./index-d6594e8e.js";import{S as ve,s as ga}from"./index-4be8cdd9.js";import{F as X,_ as ht,a as ka}from"./numInput-d89a0bbe.js";import"./index-68461333.js";/* empty css */import{_ as ba}from"./index-e620c28b.js";import{D as gt}from"./index-9b184148.js";/* empty css */import"./index-154b94da.js";import{u as kt,N as ya,g as S,s as bt,a as Ca,b as wa,c as _a,d as Sa,F as Ia}from"./FileItem-2eb00024.js";import{u as Pa,a as xa,b as Aa,c as $a,M as Ra,o as rt,L as Ma,R as Da,f as Fa}from"./MultiSelectKeep-ba3817a4.js";import{u as Oa}from"./useGenInfoDiff-f63a5430.js";import"./isArrayLikeObject-70bd2074.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-c8c8013d.js";import"./index-cb6a3d31.js";import"./_isIterateeCall-bfd79848.js";import"./index-30b8f89a.js";import"./shortcut-0468cdd7.js";import"./Checkbox-59427a1c.js";var Ta=["class","style"],La=function(){return{prefixCls:String,href:String,separator:Se.any,overlay:Se.any,onClick:Function}};const me=he({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:La(),slots:["separator","overlay"],setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls,x=function(f,C){var v=fe(s,t,"overlay");return v?i(gt,{overlay:v,placement:"bottom"},{default:function(){return[i("span",{class:"".concat(C,"-overlay-link")},[f,i(Ee,null,null)])]}}):f};return function(){var D,f=(D=fe(s,t,"separator"))!==null&&D!==void 0?D:"/",C=fe(s,t),v=p.class,A=p.style,I=dt(p,Ta),P;return t.href!==void 0?P=i("a",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]):P=i("span",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]),P=x(P,y.value),C?i("span",{class:v,style:A},[P,f&&i("span",{class:"".concat(y.value,"-separator")},[f])]):null}}});var Na=function(){return{prefixCls:String,routes:{type:Array},params:Se.any,separator:Se.any,itemRender:{type:Function}}};function Ba(o,t){if(!o.breadcrumbName)return null;var l=Object.keys(t).join("|"),s=o.breadcrumbName.replace(new RegExp(":(".concat(l,")"),"g"),function(p,c){return t[c]||p});return s}function it(o){var t=o.route,l=o.params,s=o.routes,p=o.paths,c=s.indexOf(t)===s.length-1,y=Ba(t,l);return c?i("span",null,[y]):i("a",{href:"#/".concat(p.join("/"))},[y])}const oe=he({compatConfig:{MODE:3},name:"ABreadcrumb",props:Na(),slots:["separator","itemRender"],setup:function(t,l){var s=l.slots,p=qe("breadcrumb",t),c=p.prefixCls,y=p.direction,x=function(v,A){return v=(v||"").replace(/^\//,""),Object.keys(A).forEach(function(I){v=v.replace(":".concat(I),A[I])}),v},D=function(v,A,I){var P=jt(v),O=x(A||"",I);return O&&P.push(O),P},f=function(v){var A=v.routes,I=A===void 0?[]:A,P=v.params,O=P===void 0?{}:P,W=v.separator,B=v.itemRender,E=B===void 0?it:B,T=[];return I.map(function(F){var L=x(F.path,O);L&&T.push(L);var H=[].concat(T),Y=null;return F.children&&F.children.length&&(Y=i(ze,null,{default:function(){return[F.children.map(function(q){return i(ze.Item,{key:q.path||q.breadcrumbName},{default:function(){return[E({route:q,params:O,routes:I,paths:D(H,q.path,O)})]}})})]}})),i(me,{overlay:Y,separator:W,key:L||F.breadcrumbName},{default:function(){return[E({route:F,params:O,routes:I,paths:H})]}})})};return function(){var C,v,A,I=t.routes,P=t.params,O=P===void 0?{}:P,W=pt(fe(s,t)),B=(C=fe(s,t,"separator"))!==null&&C!==void 0?C:"/",E=t.itemRender||s.itemRender||it;I&&I.length>0?A=f({routes:I,params:O,separator:B,itemRender:E}):W.length&&(A=W.map(function(F,L){return Et(zt(F.type)==="object"&&(F.type.__ANT_BREADCRUMB_ITEM||F.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Vt(F,{separator:B,key:L})}));var T=(v={},tt(v,c.value,!0),tt(v,"".concat(c.value,"-rtl"),y.value==="rtl"),v);return i("div",{class:T},[A])}}});var Ea=["separator","class"],za=function(){return{prefixCls:String}};const He=he({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:za(),setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls;return function(){var x;p.separator;var D=p.class,f=dt(p,Ea),C=pt((x=s.default)===null||x===void 0?void 0:x.call(s));return i("span",Be({class:["".concat(y.value,"-separator"),D]},f),[C.length>0?C:"/"])}}});oe.Item=me;oe.Separator=He;oe.install=function(o){return o.component(oe.name,oe),o.component(me.name,me),o.component(He.name,He),o};X.useInjectFormItemContext=Ut;X.ItemRest=Ve;X.install=function(o){return o.component(X.name,X),o.component(X.Item.name,X.Item),o.component(Ve.name,Ve),o};ve.setDefaultIndicator=ga;ve.install=function(o){return o.component(ve.name,ve),o};var Va={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ja=Va;function ut(o){for(var t=1;t{p=f,s=C}),y=()=>{l.isFinished=!0,clearTimeout(l.id)},x=()=>Oe(this,void 0,void 0,function*(){try{l.res=yield l.action(),l.validator&&l.validator(l.res)&&(p(l.res),y())}catch(f){Ie.silent||console.error(f),l.errorHandleMethod==="stop"&&(y(),s(f))}}),D=()=>{l.isFinished||(l.id=setTimeout(()=>Oe(this,void 0,void 0,function*(){yield x(),D()}),l.pollInterval))};return setTimeout(()=>Oe(this,void 0,void 0,function*(){l.immediately&&(yield x()),D()}),0),Wt({task:l,clearTask:y,completedTask:c})}}Ie.silent=!1;var Ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const qa=Ha;function ct(o){for(var t=1;ts.value.length,at((n,u)=>{var d;n!==u&&((d=t.value)==null||d.scrollToItem(0))},300)),Ht(async()=>{var n;if(!s.value.length)if(f.value.mode==="scanned-fixed"||f.value.mode==="walk")s.value=[{files:[],curr:f.value.path??""}];else{const u=await we("/");s.value.push({files:u.files,curr:"/"})}o.value=new ya,o.value.configure({parent:l.value}),f.value.path&&f.value.path!=="/"?await T(f.value.path):(n=S.conf)!=null&&n.home&&T(S.conf.home)}),je(c,at(n=>{const u=D.value();if(!u)return;u.path=n;const d=Te(n).pop()??"",_=(()=>{const M={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[f.value.mode??"scanned"],$=G=>M?`${M}: ${G}`:G,V=S.getShortPath(n);return $(V.length>24&&d?d:V)})();u.name=U("div",{style:"display:flex;align-items:center"},[U(Ka),U("span",{class:"line-clamp-1",style:"max-width: 256px"},_)]),u.nameFallbackStr=_,S.recent=S.recent.filter(M=>M.key!==u.key),S.recent.unshift({path:n,key:u.key,mode:f.value.mode}),S.recent.length>20&&(S.recent=S.recent.slice(0,20))},300));const P=()=>Ue(c.value),O=async n=>{var u,d;if(n.type==="dir")try{(u=o.value)==null||u.start();const{files:w}=await we(n.fullpath);f.value.mode=="scanned-fixed"?s.value=[{files:w,curr:n.fullpath}]:s.value.push({files:w,curr:n.name})}finally{(d=o.value)==null||d.done()}},W=n=>{if(f.value.mode!="walk")for(;n{T(ea(c.value))},E=(n,u)=>(ta(S.conf,"global.conf load failed"),S.conf.is_win?n.toLowerCase()==u.toLowerCase():n==u),T=async n=>{f.value.mode==="walk"?D.value().path=n:f.value.mode==="scanned-fixed"?await O({fullpath:n,name:n,type:"dir"}):await F(n),nt(500).then(()=>x.value.emit("viewableAreaFilesChange"))},F=async n=>{var d,w;const u=s.value.slice();try{qt(n)||(n=Gt(((d=S.conf)==null?void 0:d.sd_cwd)??"/",n));const _=Te(n),M=s.value.map($=>$.curr);for(M.shift();M[0]&&_[0]&&E(M[0],_[0]);)M.shift(),_.shift();for(let $=0;$E(G.name,$));if(!V)throw console.error({frags:_,frag:$,stack:Kt(s.value)}),new Error(`${$} not found`);await O(V)}}catch(_){throw de.error(N("moveFailedCheckPath")+(_ instanceof Error?_.message:"")),console.error(n,Te(n),p.value),s.value=u,_}},L=Qt(async()=>{var n,u,d;try{if((n=o.value)==null||n.start(),v.value)await v.value.reset(),x.value.emit("loadNextDir");else{const{files:w}=await we(c.value);Le(s.value).files=w}C.value.clear(),(u=t.value)==null||u.scrollToItem(0),de.success(N("refreshCompleted"))}finally{(d=o.value)==null||d.done()}}),H=async(n=!1)=>{var u,d,w;if(!(n===!0&&I.value)){if(f.value.mode==="walk"&&v.value){const _=((u=t.value)==null?void 0:u.$_endIndex)??64;if(S.autoRefreshWalkMode&&_{M.value=!0,S.autoRefreshWalkMode=!1,V(),de.success(N("walkModeAutoRefreshDisabled"))},V=de.loading(U("span",{},[N("autoUpdate"),U("span",{onClick:$,style:{paddingLeft:"16px",cursor:"pointer",color:"var(--primary-color)"}},N("disable"))]),0);try{const G=new Promise(be=>{v.value.seamlessRefresh(_,M).then(ae=>{M.value||(v.value=ae,x.value.emit("loadNextDir"),be())})});await Promise.all([G,nt(1500)])}finally{V()}}return}try{if(!S.autoRefreshNormalFixedMode)return;(d=o.value)==null||d.start();const{files:_}=await we(c.value);Le(s.value).files.map($=>$.date).join()!==_.map($=>$.date).join()&&(Le(s.value).files=_,de.success(N("autoUpdate")))}finally{(w=o.value)==null||w.done()}}};Jt("returnToIIB",H),y.value("refresh",L);const Y=n=>{T(n)},te=_e(()=>S.quickMovePaths.map(n=>({...n,path:ot(n.dir)}))),q=_e(()=>{const n=ot(c.value);return te.value.find(d=>d.path===n)}),se=async()=>{const n=S.tabList[f.value.tabIdx],u={type:"empty",name:N("emptyStartPage"),key:Date.now()+Ne(),popAddPathModal:{path:c.value,type:"scanned-fixed"}};n.panes.push(u),n.key=u.key},Z=pe(!1),le=pe(c.value),ge=()=>{Z.value=!0,le.value=c.value},Pe=async()=>{await T(le.value),Z.value=!1};Pa("click",n=>{var u,d,w;(w=(d=(u=n.target)==null?void 0:u.className)==null?void 0:d.includes)!=null&&w.call(d,"ant-input")||(Z.value=!1)});const xe=()=>{const n=parent.location,u=n.href.substring(0,n.href.length-n.search.length),d=new URLSearchParams(n.search);d.set("action","open"),d.set("path",c.value),d.set("mode",f.value.mode??"scanned");const w=`${u}?${d.toString()}`;Ue(w,N("copyLocationUrlSuccessMsg"))},re=(n="tag-search")=>{const u=S.tabList[f.value.tabIdx],d={type:n,key:Ne(),searchScope:c.value,name:N(n==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(d),u.key=d.key},z=()=>x.value.emit("selectAll"),ie=async()=>{await aa(c.value),await L()},ke=()=>{const n=c.value;bt.set(n,s.value);const u=S.tabList[f.value.tabIdx],d={type:"local",key:Ne(),path:n,name:N("local"),stackKey:n,mode:"walk"};u.panes.push(d),u.key=d.key},Ae=_e(()=>!v.value&&A.value.some(n=>n.type==="dir"));return{locInputValue:le,isLocationEditing:Z,onLocEditEnter:Pe,onEditBtnClick:ge,addToSearchScanPathAndQuickMove:se,searchPathInfo:q,refresh:L,copyLocation:P,back:W,openNext:O,currPage:p,currLocation:c,stack:s,scroller:t,share:xe,selectAll:z,quickMoveTo:Y,onCreateFloderBtnClick:ie,onWalkBtnClick:ke,showWalkButton:Ae,searchInCurrentDir:re,backToLastUseTo:B,...Ja(()=>H(!0))}}const Ja=o=>{const t=pe([]),l=_e(()=>t.value.length>0);Xt(()=>{t.value.forEach(c=>c())});const s=Yt(Zt+"poll-interval",3);return{onPollRefreshClick:()=>{if(t.value.length){t.value.forEach(c=>c()),t.value=[];return}vt.confirm({title:N("pollRefresh"),width:640,content:()=>U("div",{},[U("p",{class:"uni-desc primary-bg"},N("pollRefreshTip")),U("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},[U("span",{},N("pollInterval")+"(s): "),U(ht,{min:1,max:60*10,modelValue:s.value,"onUpdate:modelValue":c=>{s.value=c}})])]),onOk:()=>{const{clearTask:c}=Ie.run({pollInterval:s.value*1e3,action:o});t.value.push(c)}})},polling:l}};const Xa={class:"base-info"},Ya=he({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(o){return(t,l)=>(R(),j("div",Xa,[h("span",null,[ee(b(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(R(),j(We,{key:0},[ee(", "+b(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):J("",!0)])]))}});const Za=mt(Ya,[["__scopeId","data-v-7f9c0b15"]]),en={class:"hint"},tn={class:"location-bar"},an=["onClick"],nn={key:3,class:"location-act"},on={class:"actions"},sn=["onClick"],ln=["onClick"],rn={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},un={style:{padding:"4px"}},cn={style:{padding:"4px"}},dn={style:{padding:"4px"}},pn={key:0,class:"view"},fn={style:{padding:"16px 0 512px"}},vn={key:0,class:"preview-switch"},mn=he({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(o){const t=o,l=na(),{scroller:s,stackViewEl:p,props:c,multiSelectedIdxs:y,spinning:x}=kt().toRefs(),{currLocation:D,currPage:f,refresh:C,copyLocation:v,back:A,openNext:I,stack:P,quickMoveTo:O,addToSearchScanPathAndQuickMove:W,locInputValue:B,isLocationEditing:E,onLocEditEnter:T,onEditBtnClick:F,share:L,selectAll:H,onCreateFloderBtnClick:Y,onWalkBtnClick:te,showWalkButton:q,searchInCurrentDir:se,backToLastUseTo:Z,polling:le,onPollRefreshClick:ge}=Qa(),{gridItems:Pe,sortMethodConv:xe,moreActionsDropdownShow:re,sortedFiles:z,sortMethod:ie,itemSize:ke,loadNextDir:Ae,loadNextDirLoading:n,canLoadNext:u,onScroll:d,cellWidth:w,dirCoverCache:_}=Ca(),{onDrop:M,onFileDragStart:$,onFileDragEnd:V}=xa(),{onFileItemClick:G,onContextMenuClick:be,showGenInfo:ae,imageGenInfo:Qe,q:yt}=Aa({openNext:I}),{previewIdx:ue,onPreviewVisibleChange:Ct,previewing:$e,previewImgMove:Je,canPreview:Xe}=$a(),{showMenuIdx:Re}=wa(),{onClearAllSelected:wt,onReverseSelect:_t,onSelectAll:St}=_a(),{getGenDiff:It,changeIndchecked:ce,seedChangeChecked:ye,getRawGenParams:Pt,getGenDiffWatchDep:xt}=Oa(),At=()=>{z.value.length!==0&&rt(z.value,ue.value||0)};return je(()=>t,()=>{c.value=t;const m=bt.get(t.stackKey??"");m&&(P.value=m.slice())},{immediate:!0}),(m,a)=>{const $t=pa,Rt=fa,Mt=vt,Dt=va,Ft=me,Ot=oe,Ye=ma,Me=ha,Ze=ze,De=gt,Tt=ht,Ce=ka,et=ba,Lt=X,Nt=ve;return R(),K(Nt,{spinning:e(x),size:"large"},{default:g(()=>[i(Ra,{show:e(l).keepMultiSelect||!!e(y).length,onClearAllSelected:e(wt),onSelectAll:e(St),onReverseSelect:e(_t)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),i($t,{style:{display:"none"}}),h("div",{ref_key:"stackViewEl",ref:p,onDragover:a[31]||(a[31]=k(()=>{},["prevent"])),onDrop:a[32]||(a[32]=k(r=>e(M)(r),["prevent"])),class:"container"},[i(Mt,{visible:e(ae),"onUpdate:visible":a[1]||(a[1]=r=>Q(ae)?ae.value=r:null),width:"70vw","mask-closable":"",onOk:a[2]||(a[2]=r=>ae.value=!1)},{cancelText:g(()=>[]),default:g(()=>[i(Rt,{active:"",loading:!e(yt).isIdle},{default:g(()=>[h("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:a[0]||(a[0]=r=>e(Ue)(e(Qe)))},[h("div",en,b(m.$t("doubleClickToCopy")),1),ee(" "+b(e(Qe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),h("div",tn,[h("div",{class:"breadcrumb",style:oa({flex:e(E)?1:""})},[e(E)?(R(),K(Dt,{key:0,style:{flex:"1"},value:e(B),"onUpdate:value":a[3]||(a[3]=r=>Q(B)?B.value=r:null),onClick:a[4]||(a[4]=k(()=>{},["stop"])),onKeydown:a[5]||(a[5]=k(()=>{},["stop"])),onPressEnter:e(T),"allow-clear":""},null,8,["value","onPressEnter"])):(R(),K(Ot,{key:1,style:{flex:"1"}},{default:g(()=>[(R(!0),j(We,null,st(e(P),(r,ne)=>(R(),K(Ft,{key:ne},{default:g(()=>[h("a",{onClick:k(Fe=>e(A)(ne),["prevent"])},b(r.curr==="/"?m.$t("root"):r.curr.replace(/:\/$/,m.$t("drive"))),9,an)]),_:2},1024))),128))]),_:1})),e(E)?(R(),K(Ye,{key:2,size:"small",onClick:e(T),type:"primary"},{default:g(()=>[ee(b(m.$t("go")),1)]),_:1},8,["onClick"])):(R(),j("div",nn,[m.mode==="scanned-fixed"?(R(),j("a",{key:0,onClick:a[6]||(a[6]=k((...r)=>e(Z)&&e(Z)(...r),["prevent"])),style:{margin:"0 8px 16px 0"}},[i(e(Wa))])):J("",!0),h("a",{onClick:a[7]||(a[7]=k((...r)=>e(v)&&e(v)(...r),["prevent"])),class:"copy"},b(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=k((...r)=>e(F)&&e(F)(...r),["prevent","stop"]))},b(m.$t("edit")),1)]))],4),h("div",on,[h("a",{class:"opt",onClick:a[9]||(a[9]=k((...r)=>e(C)&&e(C)(...r),["prevent"]))},b(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=k((...r)=>e(ge)&&e(ge)(...r),["prevent"]))},b(e(le)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),h("a",{class:"opt",onClick:k(At,["prevent"])},b(m.$t("TikTok View")),9,sn),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[12]||(a[12]=k(r=>e(se)("tag-search"),["prevent"]))},b(m.$t("imgSearch")),1)]),_:1}),i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[13]||(a[13]=k(r=>e(se)("fuzzy-search"),["prevent"]))},b(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=k(()=>{},["prevent"]))},[ee(b(m.$t("search"))+" ",1),i(e(Ee))])]),_:1}),e(q)?(R(),j("a",{key:0,class:"opt",onClick:a[14]||(a[14]=k((...r)=>e(te)&&e(te)(...r),["prevent"]))}," Walk ")):J("",!0),h("a",{class:"opt",onClick:a[15]||(a[15]=k((...r)=>e(H)&&e(H)(...r),["prevent","stop"]))},b(m.$t("selectAll")),1),e(sa)?J("",!0):(R(),j("a",{key:1,class:"opt",onClick:a[16]||(a[16]=k((...r)=>e(L)&&e(L)(...r),["prevent"]))},b(m.$t("share")),1)),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[(R(!0),j(We,null,st(e(l).quickMovePaths,r=>(R(),K(Me,{key:r.dir},{default:g(()=>[h("a",{onClick:k(ne=>e(O)(r.dir),["prevent"])},b(r.zh),9,ln)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=k(()=>{},["prevent"]))},[ee(b(m.$t("quickMove"))+" ",1),i(e(Ee))])]),_:1}),i(De,{trigger:["click"],visible:e(re),"onUpdate:visible":a[27]||(a[27]=r=>Q(re)?re.value=r:null),placement:"bottomLeft",getPopupContainer:r=>r.parentNode},{overlay:g(()=>[h("div",rn,[i(Lt,la(ra({labelCol:{span:10},wrapperCol:{span:14}})),{default:g(()=>[i(Ce,{label:m.$t("gridCellWidth")},{default:g(()=>[i(Tt,{modelValue:e(w),"onUpdate:modelValue":a[19]||(a[19]=r=>Q(w)?w.value=r:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),i(Ce,{label:m.$t("sortingMethod")},{default:g(()=>[i(e(ia),{value:e(ie),"onUpdate:value":a[20]||(a[20]=r=>Q(ie)?ie.value=r:null),onClick:a[21]||(a[21]=k(()=>{},["stop"])),conv:e(xe),options:e(ua)},null,8,["value","conv","options"])]),_:1},8,["label"]),i(Ce,{label:m.$t("showChangeIndicators")},{default:g(()=>[i(et,{checked:e(ce),"onUpdate:checked":a[22]||(a[22]=r=>Q(ce)?ce.value=r:null),onClick:e(Pt)},null,8,["checked","onClick"])]),_:1},8,["label"]),i(Ce,{label:m.$t("seedAsChange")},{default:g(()=>[i(et,{checked:e(ye),"onUpdate:checked":a[23]||(a[23]=r=>Q(ye)?ye.value=r:null),disabled:!e(ce)},null,8,["checked","disabled"])]),_:1},8,["label"]),h("div",un,[h("a",{onClick:a[24]||(a[24]=k((...r)=>e(W)&&e(W)(...r),["prevent"]))},b(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",cn,[h("a",{onClick:a[25]||(a[25]=k(r=>e(ca)(e(D)+"/"),["prevent"]))},b(m.$t("openWithLocalFileBrowser")),1)]),h("div",dn,[h("a",{onClick:a[26]||(a[26]=k((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},b(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=k(()=>{},["prevent"]))},b(m.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(f)?(R(),j("div",pn,[i(e(Sa),{class:"file-list",items:e(z),ref_key:"scroller",ref:s,onScroll:e(d),"item-size":e(ke).first,"key-field":"fullpath","item-secondary-size":e(ke).second,gridItems:e(Pe)},{default:g(({item:r,index:ne})=>[i(Ia,{idx:parseInt(ne),file:r,"full-screen-preview-image-url":e(z)[e(ue)]?e(da)(e(z)[e(ue)]):"","show-menu-idx":e(Re),"onUpdate:showMenuIdx":a[28]||(a[28]=Fe=>Q(Re)?Re.value=Fe:null),selected:e(y).includes(ne),"cell-width":e(w),onFileItemClick:e(G),onDragstart:e($),onDragend:e(V),onPreviewVisibleChange:e(Ct),onContextMenuClick:e(be),onTiktokView:(Fe,Bt)=>e(rt)(e(z),Bt),"is-selected-mutil-files":e(y).length>1,"enable-change-indicator":e(ce),"seed-change-checked":e(ye),"get-gen-diff":e(It),"get-gen-diff-watch-dep":e(xt),previewing:e($e),"cover-files":e(_).get(r.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","onTiktokView","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:g(()=>[h("div",fn,[t.mode==="walk"?(R(),K(Ye,{key:0,onClick:e(Ae),loading:e(n),block:"",type:"primary",disabled:!e(u),ghost:""},{default:g(()=>[ee(b(m.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):J("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e($e)?(R(),j("div",vn,[i(e(Ma),{onClick:a[29]||(a[29]=r=>e(Je)("prev")),class:lt({disable:!e(Xe)("prev")})},null,8,["class"]),i(e(Da),{onClick:a[30]||(a[30]=r=>e(Je)("next")),class:lt({disable:!e(Xe)("next")})},null,8,["class"])])):J("",!0)])):J("",!0)],544),e($e)?(R(),K(Fa,{key:0,file:e(z)[e(ue)],idx:e(ue),onContextMenuClick:e(be)},null,8,["file","idx","onContextMenuClick"])):J("",!0),i(Za,{"file-num":e(z).length,"selected-file-num":e(y).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const Tn=mt(mn,[["__scopeId","data-v-8d4bd42a"]]);export{Tn as default}; +import{d as he,u as qe,g as fe,_ as dt,c as i,a as Be,P as Se,D as Ee,f as pt,w as Et,b as zt,e as Vt,h as tt,M as ze,i as jt,j as Ut,F as Ve,A as ft,k as Oe,l as Wt,r as pe,m as je,n as at,o as Ht,p as we,s as Te,q as U,t as nt,v as qt,x as Gt,y as Kt,z as de,B as N,C as Qt,E as Jt,G as _e,H as ot,I as Xt,J as Yt,K as Zt,L as Ue,N as ea,O as ta,Q as Le,R as Ne,S as aa,T as vt,U as R,V as j,W as h,X as ee,Y as b,Z as We,$ as J,a0 as mt,a1 as na,a2 as K,a3 as g,a4 as e,a5 as k,a6 as Q,a7 as oa,a8 as st,a9 as sa,aa as la,ab as ra,ac as ia,ad as ua,ae as ca,af as da,ag as lt,ah as pa,ai as fa,aj as va,ak as ma,al as ha}from"./index-0205daf8.js";import{S as ve,s as ga}from"./index-af89284c.js";import{F as X,_ as ht,a as ka}from"./numInput-a524d3bc.js";import"./index-b9ffc995.js";/* empty css */import{_ as ba}from"./index-728b29ca.js";import{D as gt}from"./index-e9cc5bd5.js";/* empty css */import"./index-859cb083.js";import{u as kt,N as ya,g as S,s as bt,a as Ca,b as wa,c as _a,d as Sa,F as Ia}from"./FileItem-cc53e03a.js";import{u as Pa,a as xa,b as Aa,c as $a,M as Ra,o as rt,L as Ma,R as Da,f as Fa}from"./MultiSelectKeep-74181f4c.js";import{u as Oa}from"./useGenInfoDiff-13d2ea38.js";import"./isArrayLikeObject-55a21cf1.js";import"./numInput.vue_vue_type_style_index_0_scoped_bd954eda_lang-e54a5eff.js";import"./index-6a8edab1.js";import"./_isIterateeCall-7008db8e.js";import"./index-6d8e3499.js";import"./shortcut-eca2d427.js";import"./Checkbox-951f37ba.js";var Ta=["class","style"],La=function(){return{prefixCls:String,href:String,separator:Se.any,overlay:Se.any,onClick:Function}};const me=he({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:La(),slots:["separator","overlay"],setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls,x=function(f,C){var v=fe(s,t,"overlay");return v?i(gt,{overlay:v,placement:"bottom"},{default:function(){return[i("span",{class:"".concat(C,"-overlay-link")},[f,i(Ee,null,null)])]}}):f};return function(){var D,f=(D=fe(s,t,"separator"))!==null&&D!==void 0?D:"/",C=fe(s,t),v=p.class,A=p.style,I=dt(p,Ta),P;return t.href!==void 0?P=i("a",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]):P=i("span",Be({class:"".concat(y.value,"-link"),onClick:t.onClick},I),[C]),P=x(P,y.value),C?i("span",{class:v,style:A},[P,f&&i("span",{class:"".concat(y.value,"-separator")},[f])]):null}}});var Na=function(){return{prefixCls:String,routes:{type:Array},params:Se.any,separator:Se.any,itemRender:{type:Function}}};function Ba(o,t){if(!o.breadcrumbName)return null;var l=Object.keys(t).join("|"),s=o.breadcrumbName.replace(new RegExp(":(".concat(l,")"),"g"),function(p,c){return t[c]||p});return s}function it(o){var t=o.route,l=o.params,s=o.routes,p=o.paths,c=s.indexOf(t)===s.length-1,y=Ba(t,l);return c?i("span",null,[y]):i("a",{href:"#/".concat(p.join("/"))},[y])}const oe=he({compatConfig:{MODE:3},name:"ABreadcrumb",props:Na(),slots:["separator","itemRender"],setup:function(t,l){var s=l.slots,p=qe("breadcrumb",t),c=p.prefixCls,y=p.direction,x=function(v,A){return v=(v||"").replace(/^\//,""),Object.keys(A).forEach(function(I){v=v.replace(":".concat(I),A[I])}),v},D=function(v,A,I){var P=jt(v),O=x(A||"",I);return O&&P.push(O),P},f=function(v){var A=v.routes,I=A===void 0?[]:A,P=v.params,O=P===void 0?{}:P,W=v.separator,B=v.itemRender,E=B===void 0?it:B,T=[];return I.map(function(F){var L=x(F.path,O);L&&T.push(L);var H=[].concat(T),Y=null;return F.children&&F.children.length&&(Y=i(ze,null,{default:function(){return[F.children.map(function(q){return i(ze.Item,{key:q.path||q.breadcrumbName},{default:function(){return[E({route:q,params:O,routes:I,paths:D(H,q.path,O)})]}})})]}})),i(me,{overlay:Y,separator:W,key:L||F.breadcrumbName},{default:function(){return[E({route:F,params:O,routes:I,paths:H})]}})})};return function(){var C,v,A,I=t.routes,P=t.params,O=P===void 0?{}:P,W=pt(fe(s,t)),B=(C=fe(s,t,"separator"))!==null&&C!==void 0?C:"/",E=t.itemRender||s.itemRender||it;I&&I.length>0?A=f({routes:I,params:O,separator:B,itemRender:E}):W.length&&(A=W.map(function(F,L){return Et(zt(F.type)==="object"&&(F.type.__ANT_BREADCRUMB_ITEM||F.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Vt(F,{separator:B,key:L})}));var T=(v={},tt(v,c.value,!0),tt(v,"".concat(c.value,"-rtl"),y.value==="rtl"),v);return i("div",{class:T},[A])}}});var Ea=["separator","class"],za=function(){return{prefixCls:String}};const He=he({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:za(),setup:function(t,l){var s=l.slots,p=l.attrs,c=qe("breadcrumb",t),y=c.prefixCls;return function(){var x;p.separator;var D=p.class,f=dt(p,Ea),C=pt((x=s.default)===null||x===void 0?void 0:x.call(s));return i("span",Be({class:["".concat(y.value,"-separator"),D]},f),[C.length>0?C:"/"])}}});oe.Item=me;oe.Separator=He;oe.install=function(o){return o.component(oe.name,oe),o.component(me.name,me),o.component(He.name,He),o};X.useInjectFormItemContext=Ut;X.ItemRest=Ve;X.install=function(o){return o.component(X.name,X),o.component(X.Item.name,X.Item),o.component(Ve.name,Ve),o};ve.setDefaultIndicator=ga;ve.install=function(o){return o.component(ve.name,ve),o};var Va={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ja=Va;function ut(o){for(var t=1;t{p=f,s=C}),y=()=>{l.isFinished=!0,clearTimeout(l.id)},x=()=>Oe(this,void 0,void 0,function*(){try{l.res=yield l.action(),l.validator&&l.validator(l.res)&&(p(l.res),y())}catch(f){Ie.silent||console.error(f),l.errorHandleMethod==="stop"&&(y(),s(f))}}),D=()=>{l.isFinished||(l.id=setTimeout(()=>Oe(this,void 0,void 0,function*(){yield x(),D()}),l.pollInterval))};return setTimeout(()=>Oe(this,void 0,void 0,function*(){l.immediately&&(yield x()),D()}),0),Wt({task:l,clearTask:y,completedTask:c})}}Ie.silent=!1;var Ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const qa=Ha;function ct(o){for(var t=1;ts.value.length,at((n,u)=>{var d;n!==u&&((d=t.value)==null||d.scrollToItem(0))},300)),Ht(async()=>{var n;if(!s.value.length)if(f.value.mode==="scanned-fixed"||f.value.mode==="walk")s.value=[{files:[],curr:f.value.path??""}];else{const u=await we("/");s.value.push({files:u.files,curr:"/"})}o.value=new ya,o.value.configure({parent:l.value}),f.value.path&&f.value.path!=="/"?await T(f.value.path):(n=S.conf)!=null&&n.home&&T(S.conf.home)}),je(c,at(n=>{const u=D.value();if(!u)return;u.path=n;const d=Te(n).pop()??"",_=(()=>{const M={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[f.value.mode??"scanned"],$=G=>M?`${M}: ${G}`:G,V=S.getShortPath(n);return $(V.length>24&&d?d:V)})();u.name=U("div",{style:"display:flex;align-items:center"},[U(Ka),U("span",{class:"line-clamp-1",style:"max-width: 256px"},_)]),u.nameFallbackStr=_,S.recent=S.recent.filter(M=>M.key!==u.key),S.recent.unshift({path:n,key:u.key,mode:f.value.mode}),S.recent.length>20&&(S.recent=S.recent.slice(0,20))},300));const P=()=>Ue(c.value),O=async n=>{var u,d;if(n.type==="dir")try{(u=o.value)==null||u.start();const{files:w}=await we(n.fullpath);f.value.mode=="scanned-fixed"?s.value=[{files:w,curr:n.fullpath}]:s.value.push({files:w,curr:n.name})}finally{(d=o.value)==null||d.done()}},W=n=>{if(f.value.mode!="walk")for(;n{T(ea(c.value))},E=(n,u)=>(ta(S.conf,"global.conf load failed"),S.conf.is_win?n.toLowerCase()==u.toLowerCase():n==u),T=async n=>{f.value.mode==="walk"?D.value().path=n:f.value.mode==="scanned-fixed"?await O({fullpath:n,name:n,type:"dir"}):await F(n),nt(500).then(()=>x.value.emit("viewableAreaFilesChange"))},F=async n=>{var d,w;const u=s.value.slice();try{qt(n)||(n=Gt(((d=S.conf)==null?void 0:d.sd_cwd)??"/",n));const _=Te(n),M=s.value.map($=>$.curr);for(M.shift();M[0]&&_[0]&&E(M[0],_[0]);)M.shift(),_.shift();for(let $=0;$E(G.name,$));if(!V)throw console.error({frags:_,frag:$,stack:Kt(s.value)}),new Error(`${$} not found`);await O(V)}}catch(_){throw de.error(N("moveFailedCheckPath")+(_ instanceof Error?_.message:"")),console.error(n,Te(n),p.value),s.value=u,_}},L=Qt(async()=>{var n,u,d;try{if((n=o.value)==null||n.start(),v.value)await v.value.reset(),x.value.emit("loadNextDir");else{const{files:w}=await we(c.value);Le(s.value).files=w}C.value.clear(),(u=t.value)==null||u.scrollToItem(0),de.success(N("refreshCompleted"))}finally{(d=o.value)==null||d.done()}}),H=async(n=!1)=>{var u,d,w;if(!(n===!0&&I.value)){if(f.value.mode==="walk"&&v.value){const _=((u=t.value)==null?void 0:u.$_endIndex)??64;if(S.autoRefreshWalkMode&&_{M.value=!0,S.autoRefreshWalkMode=!1,V(),de.success(N("walkModeAutoRefreshDisabled"))},V=de.loading(U("span",{},[N("autoUpdate"),U("span",{onClick:$,style:{paddingLeft:"16px",cursor:"pointer",color:"var(--primary-color)"}},N("disable"))]),0);try{const G=new Promise(be=>{v.value.seamlessRefresh(_,M).then(ae=>{M.value||(v.value=ae,x.value.emit("loadNextDir"),be())})});await Promise.all([G,nt(1500)])}finally{V()}}return}try{if(!S.autoRefreshNormalFixedMode)return;(d=o.value)==null||d.start();const{files:_}=await we(c.value);Le(s.value).files.map($=>$.date).join()!==_.map($=>$.date).join()&&(Le(s.value).files=_,de.success(N("autoUpdate")))}finally{(w=o.value)==null||w.done()}}};Jt("returnToIIB",H),y.value("refresh",L);const Y=n=>{T(n)},te=_e(()=>S.quickMovePaths.map(n=>({...n,path:ot(n.dir)}))),q=_e(()=>{const n=ot(c.value);return te.value.find(d=>d.path===n)}),se=async()=>{const n=S.tabList[f.value.tabIdx],u={type:"empty",name:N("emptyStartPage"),key:Date.now()+Ne(),popAddPathModal:{path:c.value,type:"scanned-fixed"}};n.panes.push(u),n.key=u.key},Z=pe(!1),le=pe(c.value),ge=()=>{Z.value=!0,le.value=c.value},Pe=async()=>{await T(le.value),Z.value=!1};Pa("click",n=>{var u,d,w;(w=(d=(u=n.target)==null?void 0:u.className)==null?void 0:d.includes)!=null&&w.call(d,"ant-input")||(Z.value=!1)});const xe=()=>{const n=parent.location,u=n.href.substring(0,n.href.length-n.search.length),d=new URLSearchParams(n.search);d.set("action","open"),d.set("path",c.value),d.set("mode",f.value.mode??"scanned");const w=`${u}?${d.toString()}`;Ue(w,N("copyLocationUrlSuccessMsg"))},re=(n="tag-search")=>{const u=S.tabList[f.value.tabIdx],d={type:n,key:Ne(),searchScope:c.value,name:N(n==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(d),u.key=d.key},z=()=>x.value.emit("selectAll"),ie=async()=>{await aa(c.value),await L()},ke=()=>{const n=c.value;bt.set(n,s.value);const u=S.tabList[f.value.tabIdx],d={type:"local",key:Ne(),path:n,name:N("local"),stackKey:n,mode:"walk"};u.panes.push(d),u.key=d.key},Ae=_e(()=>!v.value&&A.value.some(n=>n.type==="dir"));return{locInputValue:le,isLocationEditing:Z,onLocEditEnter:Pe,onEditBtnClick:ge,addToSearchScanPathAndQuickMove:se,searchPathInfo:q,refresh:L,copyLocation:P,back:W,openNext:O,currPage:p,currLocation:c,stack:s,scroller:t,share:xe,selectAll:z,quickMoveTo:Y,onCreateFloderBtnClick:ie,onWalkBtnClick:ke,showWalkButton:Ae,searchInCurrentDir:re,backToLastUseTo:B,...Ja(()=>H(!0))}}const Ja=o=>{const t=pe([]),l=_e(()=>t.value.length>0);Xt(()=>{t.value.forEach(c=>c())});const s=Yt(Zt+"poll-interval",3);return{onPollRefreshClick:()=>{if(t.value.length){t.value.forEach(c=>c()),t.value=[];return}vt.confirm({title:N("pollRefresh"),width:640,content:()=>U("div",{},[U("p",{class:"uni-desc primary-bg"},N("pollRefreshTip")),U("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},[U("span",{},N("pollInterval")+"(s): "),U(ht,{min:1,max:60*10,modelValue:s.value,"onUpdate:modelValue":c=>{s.value=c}})])]),onOk:()=>{const{clearTask:c}=Ie.run({pollInterval:s.value*1e3,action:o});t.value.push(c)}})},polling:l}};const Xa={class:"base-info"},Ya=he({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(o){return(t,l)=>(R(),j("div",Xa,[h("span",null,[ee(b(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(R(),j(We,{key:0},[ee(", "+b(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):J("",!0)])]))}});const Za=mt(Ya,[["__scopeId","data-v-7f9c0b15"]]),en={class:"hint"},tn={class:"location-bar"},an=["onClick"],nn={key:3,class:"location-act"},on={class:"actions"},sn=["onClick"],ln=["onClick"],rn={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},un={style:{padding:"4px"}},cn={style:{padding:"4px"}},dn={style:{padding:"4px"}},pn={key:0,class:"view"},fn={style:{padding:"16px 0 512px"}},vn={key:0,class:"preview-switch"},mn=he({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(o){const t=o,l=na(),{scroller:s,stackViewEl:p,props:c,multiSelectedIdxs:y,spinning:x}=kt().toRefs(),{currLocation:D,currPage:f,refresh:C,copyLocation:v,back:A,openNext:I,stack:P,quickMoveTo:O,addToSearchScanPathAndQuickMove:W,locInputValue:B,isLocationEditing:E,onLocEditEnter:T,onEditBtnClick:F,share:L,selectAll:H,onCreateFloderBtnClick:Y,onWalkBtnClick:te,showWalkButton:q,searchInCurrentDir:se,backToLastUseTo:Z,polling:le,onPollRefreshClick:ge}=Qa(),{gridItems:Pe,sortMethodConv:xe,moreActionsDropdownShow:re,sortedFiles:z,sortMethod:ie,itemSize:ke,loadNextDir:Ae,loadNextDirLoading:n,canLoadNext:u,onScroll:d,cellWidth:w,dirCoverCache:_}=Ca(),{onDrop:M,onFileDragStart:$,onFileDragEnd:V}=xa(),{onFileItemClick:G,onContextMenuClick:be,showGenInfo:ae,imageGenInfo:Qe,q:yt}=Aa({openNext:I}),{previewIdx:ue,onPreviewVisibleChange:Ct,previewing:$e,previewImgMove:Je,canPreview:Xe}=$a(),{showMenuIdx:Re}=wa(),{onClearAllSelected:wt,onReverseSelect:_t,onSelectAll:St}=_a(),{getGenDiff:It,changeIndchecked:ce,seedChangeChecked:ye,getRawGenParams:Pt,getGenDiffWatchDep:xt}=Oa(),At=()=>{z.value.length!==0&&rt(z.value,ue.value||0)};return je(()=>t,()=>{c.value=t;const m=bt.get(t.stackKey??"");m&&(P.value=m.slice())},{immediate:!0}),(m,a)=>{const $t=pa,Rt=fa,Mt=vt,Dt=va,Ft=me,Ot=oe,Ye=ma,Me=ha,Ze=ze,De=gt,Tt=ht,Ce=ka,et=ba,Lt=X,Nt=ve;return R(),K(Nt,{spinning:e(x),size:"large"},{default:g(()=>[i(Ra,{show:e(l).keepMultiSelect||!!e(y).length,onClearAllSelected:e(wt),onSelectAll:e(St),onReverseSelect:e(_t)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),i($t,{style:{display:"none"}}),h("div",{ref_key:"stackViewEl",ref:p,onDragover:a[31]||(a[31]=k(()=>{},["prevent"])),onDrop:a[32]||(a[32]=k(r=>e(M)(r),["prevent"])),class:"container"},[i(Mt,{visible:e(ae),"onUpdate:visible":a[1]||(a[1]=r=>Q(ae)?ae.value=r:null),width:"70vw","mask-closable":"",onOk:a[2]||(a[2]=r=>ae.value=!1)},{cancelText:g(()=>[]),default:g(()=>[i(Rt,{active:"",loading:!e(yt).isIdle},{default:g(()=>[h("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:a[0]||(a[0]=r=>e(Ue)(e(Qe)))},[h("div",en,b(m.$t("doubleClickToCopy")),1),ee(" "+b(e(Qe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),h("div",tn,[h("div",{class:"breadcrumb",style:oa({flex:e(E)?1:""})},[e(E)?(R(),K(Dt,{key:0,style:{flex:"1"},value:e(B),"onUpdate:value":a[3]||(a[3]=r=>Q(B)?B.value=r:null),onClick:a[4]||(a[4]=k(()=>{},["stop"])),onKeydown:a[5]||(a[5]=k(()=>{},["stop"])),onPressEnter:e(T),"allow-clear":""},null,8,["value","onPressEnter"])):(R(),K(Ot,{key:1,style:{flex:"1"}},{default:g(()=>[(R(!0),j(We,null,st(e(P),(r,ne)=>(R(),K(Ft,{key:ne},{default:g(()=>[h("a",{onClick:k(Fe=>e(A)(ne),["prevent"])},b(r.curr==="/"?m.$t("root"):r.curr.replace(/:\/$/,m.$t("drive"))),9,an)]),_:2},1024))),128))]),_:1})),e(E)?(R(),K(Ye,{key:2,size:"small",onClick:e(T),type:"primary"},{default:g(()=>[ee(b(m.$t("go")),1)]),_:1},8,["onClick"])):(R(),j("div",nn,[m.mode==="scanned-fixed"?(R(),j("a",{key:0,onClick:a[6]||(a[6]=k((...r)=>e(Z)&&e(Z)(...r),["prevent"])),style:{margin:"0 8px 16px 0"}},[i(e(Wa))])):J("",!0),h("a",{onClick:a[7]||(a[7]=k((...r)=>e(v)&&e(v)(...r),["prevent"])),class:"copy"},b(m.$t("copy")),1),h("a",{onClick:a[8]||(a[8]=k((...r)=>e(F)&&e(F)(...r),["prevent","stop"]))},b(m.$t("edit")),1)]))],4),h("div",on,[h("a",{class:"opt",onClick:a[9]||(a[9]=k((...r)=>e(C)&&e(C)(...r),["prevent"]))},b(m.$t("refresh")),1),h("a",{class:"opt",onClick:a[10]||(a[10]=k((...r)=>e(ge)&&e(ge)(...r),["prevent"]))},b(e(le)?m.$t("stopPollRefresh"):m.$t("pollRefresh")),1),h("a",{class:"opt",onClick:k(At,["prevent"])},b(m.$t("TikTok View")),9,sn),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[12]||(a[12]=k(r=>e(se)("tag-search"),["prevent"]))},b(m.$t("imgSearch")),1)]),_:1}),i(Me,{key:"tag-search"},{default:g(()=>[h("a",{onClick:a[13]||(a[13]=k(r=>e(se)("fuzzy-search"),["prevent"]))},b(m.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[11]||(a[11]=k(()=>{},["prevent"]))},[ee(b(m.$t("search"))+" ",1),i(e(Ee))])]),_:1}),e(q)?(R(),j("a",{key:0,class:"opt",onClick:a[14]||(a[14]=k((...r)=>e(te)&&e(te)(...r),["prevent"]))}," Walk ")):J("",!0),h("a",{class:"opt",onClick:a[15]||(a[15]=k((...r)=>e(H)&&e(H)(...r),["prevent","stop"]))},b(m.$t("selectAll")),1),e(sa)?J("",!0):(R(),j("a",{key:1,class:"opt",onClick:a[16]||(a[16]=k((...r)=>e(L)&&e(L)(...r),["prevent"]))},b(m.$t("share")),1)),i(De,null,{overlay:g(()=>[i(Ze,null,{default:g(()=>[(R(!0),j(We,null,st(e(l).quickMovePaths,r=>(R(),K(Me,{key:r.dir},{default:g(()=>[h("a",{onClick:k(ne=>e(O)(r.dir),["prevent"])},b(r.zh),9,ln)]),_:2},1024))),128))]),_:1})]),default:g(()=>[h("a",{class:"opt",onClick:a[17]||(a[17]=k(()=>{},["prevent"]))},[ee(b(m.$t("quickMove"))+" ",1),i(e(Ee))])]),_:1}),i(De,{trigger:["click"],visible:e(re),"onUpdate:visible":a[27]||(a[27]=r=>Q(re)?re.value=r:null),placement:"bottomLeft",getPopupContainer:r=>r.parentNode},{overlay:g(()=>[h("div",rn,[i(Lt,la(ra({labelCol:{span:10},wrapperCol:{span:14}})),{default:g(()=>[i(Ce,{label:m.$t("gridCellWidth")},{default:g(()=>[i(Tt,{modelValue:e(w),"onUpdate:modelValue":a[19]||(a[19]=r=>Q(w)?w.value=r:null),max:1024,min:64,step:16},null,8,["modelValue"])]),_:1},8,["label"]),i(Ce,{label:m.$t("sortingMethod")},{default:g(()=>[i(e(ia),{value:e(ie),"onUpdate:value":a[20]||(a[20]=r=>Q(ie)?ie.value=r:null),onClick:a[21]||(a[21]=k(()=>{},["stop"])),conv:e(xe),options:e(ua)},null,8,["value","conv","options"])]),_:1},8,["label"]),i(Ce,{label:m.$t("showChangeIndicators")},{default:g(()=>[i(et,{checked:e(ce),"onUpdate:checked":a[22]||(a[22]=r=>Q(ce)?ce.value=r:null),onClick:e(Pt)},null,8,["checked","onClick"])]),_:1},8,["label"]),i(Ce,{label:m.$t("seedAsChange")},{default:g(()=>[i(et,{checked:e(ye),"onUpdate:checked":a[23]||(a[23]=r=>Q(ye)?ye.value=r:null),disabled:!e(ce)},null,8,["checked","disabled"])]),_:1},8,["label"]),h("div",un,[h("a",{onClick:a[24]||(a[24]=k((...r)=>e(W)&&e(W)(...r),["prevent"]))},b(m.$t("addToSearchScanPathAndQuickMove")),1)]),h("div",cn,[h("a",{onClick:a[25]||(a[25]=k(r=>e(ca)(e(D)+"/"),["prevent"]))},b(m.$t("openWithLocalFileBrowser")),1)]),h("div",dn,[h("a",{onClick:a[26]||(a[26]=k((...r)=>e(Y)&&e(Y)(...r),["prevent"]))},b(m.$t("createFolder")),1)])]),_:1},16)])]),default:g(()=>[h("a",{class:"opt",onClick:a[18]||(a[18]=k(()=>{},["prevent"]))},b(m.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(f)?(R(),j("div",pn,[i(e(Sa),{class:"file-list",items:e(z),ref_key:"scroller",ref:s,onScroll:e(d),"item-size":e(ke).first,"key-field":"fullpath","item-secondary-size":e(ke).second,gridItems:e(Pe)},{default:g(({item:r,index:ne})=>[i(Ia,{idx:parseInt(ne),file:r,"full-screen-preview-image-url":e(z)[e(ue)]?e(da)(e(z)[e(ue)]):"","show-menu-idx":e(Re),"onUpdate:showMenuIdx":a[28]||(a[28]=Fe=>Q(Re)?Re.value=Fe:null),selected:e(y).includes(ne),"cell-width":e(w),onFileItemClick:e(G),onDragstart:e($),onDragend:e(V),onPreviewVisibleChange:e(Ct),onContextMenuClick:e(be),onTiktokView:(Fe,Bt)=>e(rt)(e(z),Bt),"is-selected-mutil-files":e(y).length>1,"enable-change-indicator":e(ce),"seed-change-checked":e(ye),"get-gen-diff":e(It),"get-gen-diff-watch-dep":e(xt),previewing:e($e),"cover-files":e(_).get(r.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","onTiktokView","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:g(()=>[h("div",fn,[t.mode==="walk"?(R(),K(Ye,{key:0,onClick:e(Ae),loading:e(n),block:"",type:"primary",disabled:!e(u),ghost:""},{default:g(()=>[ee(b(m.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):J("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e($e)?(R(),j("div",vn,[i(e(Ma),{onClick:a[29]||(a[29]=r=>e(Je)("prev")),class:lt({disable:!e(Xe)("prev")})},null,8,["class"]),i(e(Da),{onClick:a[30]||(a[30]=r=>e(Je)("next")),class:lt({disable:!e(Xe)("next")})},null,8,["class"])])):J("",!0)])):J("",!0)],544),e($e)?(R(),K(Fa,{key:0,file:e(z)[e(ue)],idx:e(ue),onContextMenuClick:e(be)},null,8,["file","idx","onContextMenuClick"])):J("",!0),i(Za,{"file-num":e(z).length,"selected-file-num":e(y).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const Tn=mt(mn,[["__scopeId","data-v-8d4bd42a"]]);export{Tn as default}; diff --git a/vue/dist/assets/useGenInfoDiff-f63a5430.js b/vue/dist/assets/useGenInfoDiff-13d2ea38.js similarity index 91% rename from vue/dist/assets/useGenInfoDiff-f63a5430.js rename to vue/dist/assets/useGenInfoDiff-13d2ea38.js index 8e6a1b3..07b0775 100644 --- a/vue/dist/assets/useGenInfoDiff-f63a5430.js +++ b/vue/dist/assets/useGenInfoDiff-13d2ea38.js @@ -1 +1 @@ -import{u as G,g as d}from"./FileItem-2eb00024.js";import{r as b,t as j,ct as m,cu as y,cv as D}from"./index-d6594e8e.js";const r=new Map,A=()=>{const{useEventListen:k,sortedFiles:f,getViewableAreaFiles:w}=G().toRefs(),c=b(d.defaultChangeIndchecked),u=b(d.defaultSeedChangeChecked),g=async()=>{if(await j(100),!c.value)return;const o=w.value().filter(e=>m(e.fullpath)&&!e.gen_info_obj);if(!o.length)return;const t=await y(o.map(e=>e.fullpath).filter(e=>!r.has(e)));o.forEach(e=>{const i=t[e.fullpath]||r.get(e.fullpath)||"";r.set(e.fullpath,i),e.gen_info_obj=D(i),e.gen_info_raw=i})};k.value("viewableAreaFilesChange",g);const F=o=>{const t=f.value;return[o,u.value,t[o-1],t[o],t[o+1]]};function I(o,t,e,i){const a={diff:{},empty:!0,ownFile:"",otherFile:""};if(t+e<0||t+e>=f.value.length||f.value[t]==null||!("gen_info_obj"in f.value[t])||!("gen_info_obj"in f.value[t+e]))return a;const l=o,s=f.value[t+e].gen_info_obj;if(s==null)return a;const h=["hashes","resources"];a.diff={},a.ownFile=i.name,a.otherFile=f.value[t+e].name,a.empty=!1,u.value||h.push("seed");for(const n in l)if(!h.includes(n)){if(!(n in s)){a.diff[n]="+";continue}if(l[n]!=s[n])if(n.includes("rompt")&&l[n]!=""&&s[n]!=""){const p=l[n].split(","),C=s[n].split(",");let _=0;for(const v in p)p[v]!=C[v]&&_++;a.diff[n]=_}else a.diff[n]=[l[n],s[n]]}return a}return{getGenDiff:I,changeIndchecked:c,seedChangeChecked:u,getRawGenParams:()=>g(),getGenDiffWatchDep:F}};export{A as u}; +import{u as G,g as d}from"./FileItem-cc53e03a.js";import{r as b,t as j,ct as m,cu as y,cv as D}from"./index-0205daf8.js";const r=new Map,A=()=>{const{useEventListen:k,sortedFiles:f,getViewableAreaFiles:w}=G().toRefs(),c=b(d.defaultChangeIndchecked),u=b(d.defaultSeedChangeChecked),g=async()=>{if(await j(100),!c.value)return;const o=w.value().filter(e=>m(e.fullpath)&&!e.gen_info_obj);if(!o.length)return;const t=await y(o.map(e=>e.fullpath).filter(e=>!r.has(e)));o.forEach(e=>{const i=t[e.fullpath]||r.get(e.fullpath)||"";r.set(e.fullpath,i),e.gen_info_obj=D(i),e.gen_info_raw=i})};k.value("viewableAreaFilesChange",g);const F=o=>{const t=f.value;return[o,u.value,t[o-1],t[o],t[o+1]]};function I(o,t,e,i){const a={diff:{},empty:!0,ownFile:"",otherFile:""};if(t+e<0||t+e>=f.value.length||f.value[t]==null||!("gen_info_obj"in f.value[t])||!("gen_info_obj"in f.value[t+e]))return a;const l=o,s=f.value[t+e].gen_info_obj;if(s==null)return a;const h=["hashes","resources"];a.diff={},a.ownFile=i.name,a.otherFile=f.value[t+e].name,a.empty=!1,u.value||h.push("seed");for(const n in l)if(!h.includes(n)){if(!(n in s)){a.diff[n]="+";continue}if(l[n]!=s[n])if(n.includes("rompt")&&l[n]!=""&&s[n]!=""){const p=l[n].split(","),C=s[n].split(",");let _=0;for(const v in p)p[v]!=C[v]&&_++;a.diff[n]=_}else a.diff[n]=[l[n],s[n]]}return a}return{getGenDiff:I,changeIndchecked:c,seedChangeChecked:u,getRawGenParams:()=>g(),getGenDiffWatchDep:F}};export{A as u}; diff --git a/vue/dist/index.html b/vue/dist/index.html index 6cd5dd1..d7435e1 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/api/db.ts b/vue/src/api/db.ts index 12e26ab..28a9ae2 100644 --- a/vue/src/api/db.ts +++ b/vue/src/api/db.ts @@ -313,8 +313,6 @@ export const searchIibOutputByPrompt = async (req: PromptSearchReq) => { // ===== Hierarchical Tag Graph ===== export interface TagGraphReq { folder_paths: string[] - top_n_tags?: number - top_n_clusters?: number lang?: string } diff --git a/vue/src/i18n/de.ts b/vue/src/i18n/de.ts index 143e1e0..988e588 100644 --- a/vue/src/i18n/de.ts +++ b/vue/src/i18n/de.ts @@ -12,6 +12,27 @@ export const de: Partial = { 'fuzzy-search': 'Schnellsuche', autoUpdate: 'Erkannte Änderungen, automatische Aktualisierung wird ausgeführt', faq: 'FAQ', + helpFeedback: 'Hilfe / Feedback', + helpFeedbackWay1: 'FAQ ansehen / ähnliche Issues suchen', + helpFeedbackSearchIssues: 'Issues durchsuchen', + helpFeedbackWay2: 'Neues Issue erstellen', + helpFeedbackNewIssue: 'Auf GitHub erstellen', + helpFeedbackWay3: 'Dem Maintainer eine E-Mail senden', + + // ===== Tag Graph (Topic Search) ===== + tagGraphGenerating: 'Diagramm wird erzeugt…', + tagGraphStatLayers: 'Ebenen', + tagGraphStatNodes: 'Knoten', + tagGraphStatLinks: 'Verbindungen', + tagGraphAllLayers: 'Alle Ebenen', + tagGraphFilterPlaceholder: 'Stichwort-Filter (Treffer + Nachbarn)', + tagGraphFilterHopsTitle: 'Erweitern (N Hops)', + tagGraphFilterApply: 'Filtern', + tagGraphFilterReset: 'Zurücksetzen', + tagGraphTooltipFilter: 'Filtern', + tagGraphTooltipOpenCluster: 'Cluster öffnen', + tagGraphFullscreenUnsupported: 'Vollbild wird in dieser Umgebung nicht unterstützt', + tagGraphFullscreenFailed: 'Vollbild konnte nicht gestartet werden', selectExactMatchTag: 'Wähle Tags für exakte Übereinstimmung aus', selectAnyMatchTag: '(Optional) Wähle Tags für beliebige Übereinstimmung aus', selectExcludeTag: '(Optional) Wähle Tags zum Ausschliessen aus', diff --git a/vue/src/i18n/en.ts b/vue/src/i18n/en.ts index b350c42..2ed6a05 100644 --- a/vue/src/i18n/en.ts +++ b/vue/src/i18n/en.ts @@ -249,6 +249,27 @@ You can specify which snapshot to restore to when starting IIB in the global set 'fuzzy-search': 'Fuzzy search', autoUpdate: 'Detected changes, automatically updating', faq: 'FAQ', + helpFeedback: 'Help / Feedback', + helpFeedbackWay1: 'Check FAQ / search related issues', + helpFeedbackSearchIssues: 'Search issues', + helpFeedbackWay2: 'Open a new issue', + helpFeedbackNewIssue: 'Create on GitHub', + helpFeedbackWay3: 'Email the maintainer', + + // ===== Tag Graph (Topic Search) ===== + tagGraphGenerating: 'Generating graph...', + tagGraphStatLayers: 'Layers', + tagGraphStatNodes: 'Nodes', + tagGraphStatLinks: 'Links', + tagGraphAllLayers: 'All layers', + tagGraphFilterPlaceholder: 'Keyword filter (match + neighbors)', + tagGraphFilterHopsTitle: 'Expand hops (N)', + tagGraphFilterApply: 'Filter', + tagGraphFilterReset: 'Reset', + tagGraphTooltipFilter: 'Filter', + tagGraphTooltipOpenCluster: 'Open cluster', + tagGraphFullscreenUnsupported: 'Fullscreen is not supported in this environment', + tagGraphFullscreenFailed: 'Failed to enter fullscreen', selectExactMatchTag: 'Select Exact Match Tags. You can search by entering partial characters', selectAnyMatchTag: 'Optional, Select Any Match Tags. You can search by entering partial characters', selectExcludeTag: 'Optional, Select Exclude Tags. You can search by entering partial characters', diff --git a/vue/src/i18n/zh-hans.ts b/vue/src/i18n/zh-hans.ts index b016de2..c1b1204 100644 --- a/vue/src/i18n/zh-hans.ts +++ b/vue/src/i18n/zh-hans.ts @@ -266,6 +266,27 @@ export const zhHans = { selectAnyMatchTag: '可选,选择匹配其中一个或多个的 Tag。 您可以输入部分字符进行搜索', selectExcludeTag: '可选,选择需要排除掉的 Tag。 您可以输入部分字符进行搜索', faq: '常见问题', + helpFeedback: '寻求帮助/反馈', + helpFeedbackWay1: '先看看常见问题 / 找找相关 issue', + helpFeedbackSearchIssues: '搜索 issues', + helpFeedbackWay2: '提一个新的 issue', + helpFeedbackNewIssue: '去 GitHub 创建', + helpFeedbackWay3: '直接发邮件给维护者', + + // ===== Tag Graph (Topic Search) ===== + tagGraphGenerating: '正在生成关系图...', + tagGraphStatLayers: '层级', + tagGraphStatNodes: '节点', + tagGraphStatLinks: '连线', + tagGraphAllLayers: '全部层级', + tagGraphFilterPlaceholder: '关键字过滤(命中 + 上下游)', + tagGraphFilterHopsTitle: '扩展层数(N 跳)', + tagGraphFilterApply: '筛选', + tagGraphFilterReset: '重置', + tagGraphTooltipFilter: '过滤', + tagGraphTooltipOpenCluster: '打开聚类', + tagGraphFullscreenUnsupported: '当前环境不支持全屏', + tagGraphFullscreenFailed: '全屏失败', autoUpdate: '检测到发生改变自动更新', 'fuzzy-search': '模糊搜索', 'fuzzy-search-placeholder': '输入图像信息或者文件名的一部分来进行搜索', diff --git a/vue/src/i18n/zh-hant.ts b/vue/src/i18n/zh-hant.ts index aa14e3c..04b2a2d 100644 --- a/vue/src/i18n/zh-hant.ts +++ b/vue/src/i18n/zh-hant.ts @@ -273,6 +273,27 @@ export const zhHant: Partial = { selectAnyMatchTag: '可選,選擇匹配其中一個或多個的 Tag。 您可以輸入部分字符進行搜索', selectExcludeTag: '可選,選擇需要排除掉的 Tag。 您可以輸入部分字符進行搜索', faq: '常見問題', + helpFeedback: '尋求幫助/回饋', + helpFeedbackWay1: '先看看常見問題 / 找找相關 issue', + helpFeedbackSearchIssues: '搜尋 issues', + helpFeedbackWay2: '提一個新的 issue', + helpFeedbackNewIssue: '去 GitHub 建立', + helpFeedbackWay3: '直接發郵件給維護者', + + // ===== Tag Graph (Topic Search) ===== + tagGraphGenerating: '正在生成關係圖...', + tagGraphStatLayers: '層級', + tagGraphStatNodes: '節點', + tagGraphStatLinks: '連線', + tagGraphAllLayers: '全部層級', + tagGraphFilterPlaceholder: '關鍵字過濾(命中 + 上下游)', + tagGraphFilterHopsTitle: '擴展層數(N 跳)', + tagGraphFilterApply: '篩選', + tagGraphFilterReset: '重置', + tagGraphTooltipFilter: '過濾', + tagGraphTooltipOpenCluster: '打開聚類', + tagGraphFullscreenUnsupported: '目前環境不支援全螢幕', + tagGraphFullscreenFailed: '全螢幕失敗', autoUpdate: '檢測到發生改變自動更新', 'fuzzy-search': '模糊搜尋', 'fuzzy-search-placeholder': '輸入圖片信息或者文件名的一部分來進行搜尋', diff --git a/vue/src/page/SplitViewTab/emptyStartup.vue b/vue/src/page/SplitViewTab/emptyStartup.vue index cdcb385..3962de8 100644 --- a/vue/src/page/SplitViewTab/emptyStartup.vue +++ b/vue/src/page/SplitViewTab/emptyStartup.vue @@ -2,9 +2,9 @@ import { useGlobalStore, type TabPane } from '@/store/useGlobalStore' import { Snapshot, useWorkspeaceSnapshot } from '@/store/useWorkspeaceSnapshot' import { uniqueId } from 'lodash-es' -import { computed } from 'vue' +import { computed, ref } from 'vue' import { ok } from 'vue3-ts-util' -import { FileDoneOutlined, LockOutlined, PlusOutlined, QuestionCircleOutlined } from '@/icon' +import { FileDoneOutlined, GithubOutlined, LockOutlined, MailOutlined, PlusOutlined, QuestionCircleOutlined } from '@/icon' import { t } from '@/i18n' import { cloneDeep } from 'lodash-es' import { useImgSliStore } from '@/store/useImgSli' @@ -35,6 +35,12 @@ onMounted(() => { const sync = useSettingSync() +const helpModalOpen = ref(false) +const FAQ_URL = 'https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90' +const ISSUES_SEARCH_URL = 'https://github.com/zanllp/sd-webui-infinite-image-browsing/issues?q=' +const NEW_ISSUE_URL = 'https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/new' +const FEEDBACK_MAIL = 'mailto:qc@zanllp.cn' + const compCnMap: Partial> = { local: t('local'), @@ -198,8 +204,7 @@ const modes = computed(() => {
{{ $t('changlog') }} - {{ $t('faq') }} + {{ $t('helpFeedback') }}
{{ $t('sync') }} @@ -211,6 +216,48 @@ const modes = computed(() => { Dark
+ + +
+
+ +
+
{{ $t('helpFeedbackWay1') }}
+ +
+
+ +
+ +
+
{{ $t('helpFeedbackWay2') }}
+ +
+
+ +
+ +
+
{{ $t('helpFeedbackWay3') }}
+ +
+
+
+
+