import{cE as dw,cF as hw,aG as vw,cG as pw,cH as gw,cI as mw,cJ as yw,ah as Xt,cK as Sw,cL as bw,cM as xw,cN as Cw,aM as ww,aF as Tw,cO as Iw,aB as c1,bg as _w,cP as Aw,cQ as Ew,cR as Pw,cS as Mw,cT as Rw,cU as Dw,cV as Lw,aE as kw,cW as Ow,s as _e,bl as Bw,al as Ke,ag as Ue,af as ve,ak as Q,cX as Nw,cY as Fw,cZ as $w,c_ as zw,bk as Uw,cu as ul,aS as Cv,aq as Xe,c$ as Hw,d0 as Vw,a5 as ze,d1 as Gw,d2 as Ww,d3 as jw,d4 as Kw,d5 as Xw,d6 as Yw,d7 as Zw,d8 as Qw,d9 as Jw,da as qw,db as eT,v as tT,dc as rT,dd as nT,de as iT,aW as aT,df as oT,dg as sT,dh as lT,di as uT,dj as cT,ay as sr,dk as fT,dl as dT,dm as hT,dn as vT,A as pT,dp as gT,dq as mT,bq as yT,dr as ST,ds as bT,dt as xT,ap as CT,ac as f1,ai as ft,du as wT,au as be,dv as TT,X as d1,y as IT,dw as _T,aP as AT,dx as ET,w as _r,dy as PT,dz as MT,H as RT,dA as DT,bA as hn,aD as LT,ae as ie,bJ as ea,$ as wc,dB as kT,bI as ta,dC as OT,aC as BT,aO as NT,R as de,dD as FT,br as rh,b3 as Lr,aj as Hs,b1 as st,b2 as Ua,an as wv,dE as $T,dF as zT,dG as UT,dH as HT,dI as VT,dJ as GT,dK as WT,Q as jT,dL as KT,dM as XT,dN as YT,at as Pt,dO as ZT,aR as QT,aY as JT,ad as cl,aZ as qT,dP as eI,dQ as tI,dR as rI,P as le,a6 as nI,dS as iI,dT as aI,dU as oI,dV as sI,a7 as lI,dW as uI,dX as cI,dY as fI,dZ as dI,d_ as hI,b4 as vI,aA as Tv,d$ as pI,e0 as gI,E as gr,x as mI,e1 as yI,e2 as SI,e3 as bI,am as _n,e4 as xI,az as hr,aU as nh,e5 as CI,as as jr,e6 as wI,e7 as Iv,cD as mr,by as ih,co as ah,cp as TI,bH as Ge,bu as oh,bv as _v,bx as Gt,bB as Tc,cq as di,e8 as wu,bE as hi,e9 as II,ct as ra,bC as _I,bw as kt,ea as AI,eb as ui,cr as EI,ec as PI,ed as MI,ee as RI,ef as DI,eg as Zp,eh as LI,bF as Qp,cA as Ic,cy as kI,ei as Hu,ej as Il}from"./index-BQ33qidw.js";/** * vue v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const OI=()=>{},BI=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:dw,BaseTransitionPropsValidators:hw,Comment:vw,DeprecationTypes:pw,EffectScope:gw,ErrorCodes:mw,ErrorTypeStrings:yw,Fragment:Xt,KeepAlive:Sw,ReactiveEffect:bw,Static:xw,Suspense:Cw,Teleport:ww,Text:Tw,TrackOpTypes:Iw,Transition:c1,TransitionGroup:_w,TriggerOpTypes:Aw,VueElement:Ew,assertNumber:Pw,callWithAsyncErrorHandling:Mw,callWithErrorHandling:Rw,camelize:Dw,capitalize:Lw,cloneVNode:kw,compatUtils:Ow,compile:OI,computed:_e,createApp:Bw,createBlock:Ke,createCommentVNode:Ue,createElementBlock:ve,createElementVNode:Q,createHydrationRenderer:Nw,createPropsRestProxy:Fw,createRenderer:$w,createSSRApp:zw,createSlots:Uw,createStaticVNode:ul,createTextVNode:Cv,createVNode:Xe,customRef:Hw,defineAsyncComponent:Vw,defineComponent:ze,defineCustomElement:Gw,defineEmits:Ww,defineExpose:jw,defineModel:Kw,defineOptions:Xw,defineProps:Yw,defineSSRCustomElement:Zw,defineSlots:Qw,devtools:Jw,effect:qw,effectScope:eT,getCurrentInstance:tT,getCurrentScope:rT,getTransitionRawChildren:nT,guardReactiveProps:iT,h:aT,handleError:oT,hasInjectionContext:sT,hydrate:lT,initCustomFormatter:uT,initDirectivesForSSR:cT,inject:sr,isMemoSame:fT,isProxy:dT,isReactive:hT,isReadonly:vT,isRef:pT,isRuntimeOnly:gT,isShallow:mT,isVNode:yT,markRaw:ST,mergeDefaults:bT,mergeModels:xT,mergeProps:CT,nextTick:f1,normalizeClass:ft,normalizeProps:wT,normalizeStyle:be,onActivated:TT,onBeforeMount:d1,onBeforeUnmount:IT,onBeforeUpdate:_T,onDeactivated:AT,onErrorCaptured:ET,onMounted:_r,onRenderTracked:PT,onRenderTriggered:MT,onScopeDispose:RT,onServerPrefetch:DT,onUnmounted:hn,onUpdated:LT,openBlock:ie,popScopeId:ea,provide:wc,proxyRefs:kT,pushScopeId:ta,queuePostFlushCb:OT,reactive:BT,readonly:NT,ref:de,registerRuntimeCompiler:FT,render:rh,renderList:Lr,renderSlot:Hs,resolveComponent:st,resolveDirective:Ua,resolveDynamicComponent:wv,resolveFilter:$T,resolveTransitionHooks:zT,setBlockTracking:UT,setDevtoolsHook:HT,setTransitionHooks:VT,shallowReactive:GT,shallowReadonly:WT,shallowRef:jT,ssrContextKey:KT,ssrUtils:XT,stop:YT,toDisplayString:Pt,toHandlerKey:ZT,toHandlers:QT,toRaw:JT,toRef:cl,toRefs:qT,toValue:eI,transformVNodeArgs:tI,triggerRef:rI,unref:le,useAttrs:nI,useCssModule:iI,useCssVars:aI,useModel:oI,useSSRContext:sI,useSlots:lI,useTransitionState:uI,vModelCheckbox:cI,vModelDynamic:fI,vModelRadio:dI,vModelSelect:hI,vModelText:vI,vShow:Tv,version:pI,warn:gI,watch:gr,watchEffect:mI,watchPostEffect:yI,watchSyncEffect:SI,withAsyncContext:bI,withCtx:_n,withDefaults:xI,withDirectives:hr,withKeys:nh,withMemo:CI,withModifiers:jr,withScopeId:wI},Symbol.toStringTag,{value:"Module"}));var Un=(t=>(t.C="C",t.X="X",t.Z="Z",t.Y="Y",t.A="A",t.G="G",t.L="L",t.F="F",t.D="D",t.B="B",t.P="P",t.O="O",t.R="R",t.T="T",t.MINUS="-",t.EQUAL="=",t.DIGIT_0="0",t.DELETE="DELETE",t.UP="ARROWUP",t.DOWN="ARROWDOWN",t.LEFT="ARROWLEFT",t.RIGHT="ARROWRIGHT",t.ENTER="ENTER",t.SPACE=" ",t.TAB="TAB",t.BACKSPACE="BACKSPACE",t.ESC="ESCAPE",t.PAGEUP="PAGEUP",t.PAGEDOWN="PAGEDOWN",t.F5="F5",t))(Un||{});const O6=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"粘贴为纯文本",value:"Ctrl + Shift + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打开搜索替换",value:"Ctrl + F"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑"},{label:"下一页(未选中元素)",value:"↓"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"},{label:"快速创建文本",value:"双击空白处 / T"},{label:"快速创建矩形",value:"R"},{label:"快速创建圆形",value:"O"},{label:"快速创建线条",value:"L"},{label:"退出绘制状态",value:"鼠标右键"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"},{label:"完成自定义形状绘制",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"移动焦点单元格",value:"↑ / ← / ↓ / →"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"行内代码",value:"Ctrl + E"},{label:"上角标",value:"Ctrl + ;"},{label:"下角标",value:"Ctrl + '"},{label:"选中段落",value:"ESC"}]}];function NI(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gf={exports:{}};const FI={},$I=Object.freeze(Object.defineProperty({__proto__:null,default:FI},Symbol.toStringTag,{value:"Module"})),zI=Iv($I);var Jp;function qn(){return Jp||(Jp=1,function(t,e){(function(r,n){t.exports=n()})(mr,function(){var r=r||function(n,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof mr<"u"&&mr.crypto&&(a=mr.crypto),!a&&typeof NI=="function")try{a=zI}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function y(){}return function(S){var T;return y.prototype=S,T=new y,y.prototype=null,T}}(),l={},u=l.lib={},f=u.Base=function(){return{extend:function(y){var S=s(this);return y&&S.mixIn(y),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var S in y)y.hasOwnProperty(S)&&(this[S]=y[S]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=u.WordArray=f.extend({init:function(y,S){y=this.words=y||[],S!=i?this.sigBytes=S:this.sigBytes=y.length*4},toString:function(y){return(y||h).stringify(this)},concat:function(y){var S=this.words,T=y.words,P=this.sigBytes,x=y.sigBytes;if(this.clamp(),P%4)for(var _=0;_>>2]>>>24-_%4*8&255;S[P+_>>>2]|=M<<24-(P+_)%4*8}else for(var C=0;C>>2]=T[C>>>2];return this.sigBytes+=x,this},clamp:function(){var y=this.words,S=this.sigBytes;y[S>>>2]&=4294967295<<32-S%4*8,y.length=n.ceil(S/4)},clone:function(){var y=f.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var S=[],T=0;T>>2]>>>24-x%4*8&255;P.push((_>>>4).toString(16)),P.push((_&15).toString(16))}return P.join("")},parse:function(y){for(var S=y.length,T=[],P=0;P>>3]|=parseInt(y.substr(P,2),16)<<24-P%8*4;return new c.init(T,S/2)}},v=d.Latin1={stringify:function(y){for(var S=y.words,T=y.sigBytes,P=[],x=0;x>>2]>>>24-x%4*8&255;P.push(String.fromCharCode(_))}return P.join("")},parse:function(y){for(var S=y.length,T=[],P=0;P>>2]|=(y.charCodeAt(P)&255)<<24-P%4*8;return new c.init(T,S)}},p=d.Utf8={stringify:function(y){try{return decodeURIComponent(escape(v.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return v.parse(unescape(encodeURIComponent(y)))}},g=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=p.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var S,T=this._data,P=T.words,x=T.sigBytes,_=this.blockSize,M=_*4,C=x/M;y?C=n.ceil(C):C=n.max((C|0)-this._minBufferSize,0);var w=C*_,b=n.min(w*4,x);if(w){for(var E=0;E>>2]>>>24-h%4*8&255,p=u[h+1>>>2]>>>24-(h+1)%4*8&255,g=u[h+2>>>2]>>>24-(h+2)%4*8&255,m=v<<16|p<<8|g,y=0;y<4&&h+y*.75>>6*(3-y)&63));var S=c.charAt(64);if(S)for(;d.length%4;)d.push(S);return d.join("")},parse:function(l){var u=l.length,f=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var d=0;d>>6-h%4*2,g=v|p;c[d>>>2]|=g<<24-d%4*8,d++}return a.create(c,d)}}(),r.enc.Base64})}(mf)),mf.exports}var yf={exports:{}},eg;function HI(){return eg||(eg=1,function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){return function(n){var i=r,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,u=[];(function(){for(var p=0;p<64;p++)u[p]=n.abs(n.sin(p+1))*4294967296|0})();var f=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,g){for(var m=0;m<16;m++){var y=g+m,S=p[y];p[y]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var T=this._hash.words,P=p[g+0],x=p[g+1],_=p[g+2],M=p[g+3],C=p[g+4],w=p[g+5],b=p[g+6],E=p[g+7],A=p[g+8],R=p[g+9],k=p[g+10],D=p[g+11],O=p[g+12],$=p[g+13],U=p[g+14],q=p[g+15],H=T[0],N=T[1],G=T[2],j=T[3];H=c(H,N,G,j,P,7,u[0]),j=c(j,H,N,G,x,12,u[1]),G=c(G,j,H,N,_,17,u[2]),N=c(N,G,j,H,M,22,u[3]),H=c(H,N,G,j,C,7,u[4]),j=c(j,H,N,G,w,12,u[5]),G=c(G,j,H,N,b,17,u[6]),N=c(N,G,j,H,E,22,u[7]),H=c(H,N,G,j,A,7,u[8]),j=c(j,H,N,G,R,12,u[9]),G=c(G,j,H,N,k,17,u[10]),N=c(N,G,j,H,D,22,u[11]),H=c(H,N,G,j,O,7,u[12]),j=c(j,H,N,G,$,12,u[13]),G=c(G,j,H,N,U,17,u[14]),N=c(N,G,j,H,q,22,u[15]),H=d(H,N,G,j,x,5,u[16]),j=d(j,H,N,G,b,9,u[17]),G=d(G,j,H,N,D,14,u[18]),N=d(N,G,j,H,P,20,u[19]),H=d(H,N,G,j,w,5,u[20]),j=d(j,H,N,G,k,9,u[21]),G=d(G,j,H,N,q,14,u[22]),N=d(N,G,j,H,C,20,u[23]),H=d(H,N,G,j,R,5,u[24]),j=d(j,H,N,G,U,9,u[25]),G=d(G,j,H,N,M,14,u[26]),N=d(N,G,j,H,A,20,u[27]),H=d(H,N,G,j,$,5,u[28]),j=d(j,H,N,G,_,9,u[29]),G=d(G,j,H,N,E,14,u[30]),N=d(N,G,j,H,O,20,u[31]),H=h(H,N,G,j,w,4,u[32]),j=h(j,H,N,G,A,11,u[33]),G=h(G,j,H,N,D,16,u[34]),N=h(N,G,j,H,U,23,u[35]),H=h(H,N,G,j,x,4,u[36]),j=h(j,H,N,G,C,11,u[37]),G=h(G,j,H,N,E,16,u[38]),N=h(N,G,j,H,k,23,u[39]),H=h(H,N,G,j,$,4,u[40]),j=h(j,H,N,G,P,11,u[41]),G=h(G,j,H,N,M,16,u[42]),N=h(N,G,j,H,b,23,u[43]),H=h(H,N,G,j,R,4,u[44]),j=h(j,H,N,G,O,11,u[45]),G=h(G,j,H,N,q,16,u[46]),N=h(N,G,j,H,_,23,u[47]),H=v(H,N,G,j,P,6,u[48]),j=v(j,H,N,G,E,10,u[49]),G=v(G,j,H,N,U,15,u[50]),N=v(N,G,j,H,w,21,u[51]),H=v(H,N,G,j,O,6,u[52]),j=v(j,H,N,G,M,10,u[53]),G=v(G,j,H,N,k,15,u[54]),N=v(N,G,j,H,x,21,u[55]),H=v(H,N,G,j,A,6,u[56]),j=v(j,H,N,G,q,10,u[57]),G=v(G,j,H,N,b,15,u[58]),N=v(N,G,j,H,$,21,u[59]),H=v(H,N,G,j,C,6,u[60]),j=v(j,H,N,G,D,10,u[61]),G=v(G,j,H,N,_,15,u[62]),N=v(N,G,j,H,R,21,u[63]),T[0]=T[0]+H|0,T[1]=T[1]+N|0,T[2]=T[2]+G|0,T[3]=T[3]+j|0},_doFinalize:function(){var p=this._data,g=p.words,m=this._nDataBytes*8,y=p.sigBytes*8;g[y>>>5]|=128<<24-y%32;var S=n.floor(m/4294967296),T=m;g[(y+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,g[(y+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,p.sigBytes=(g.length+1)*4,this._process();for(var P=this._hash,x=P.words,_=0;_<4;_++){var M=x[_];x[_]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return P},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});function c(p,g,m,y,S,T,P){var x=p+(g&m|~g&y)+S+P;return(x<>>32-T)+g}function d(p,g,m,y,S,T,P){var x=p+(g&y|m&~y)+S+P;return(x<>>32-T)+g}function h(p,g,m,y,S,T,P){var x=p+(g^m^y)+S+P;return(x<>>32-T)+g}function v(p,g,m,y,S,T,P){var x=p+(m^(g|~y))+S+P;return(x<>>32-T)+g}i.MD5=s._createHelper(f),i.HmacMD5=s._createHmacHelper(f)}(Math),r.MD5})}(yf)),yf.exports}var Sf={exports:{}},tg;function VI(){return tg||(tg=1,function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){return function(){var n=r,i=n.lib,a=i.WordArray,o=i.Hasher,s=n.algo,l=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,c){for(var d=this._hash.words,h=d[0],v=d[1],p=d[2],g=d[3],m=d[4],y=0;y<80;y++){if(y<16)l[y]=f[c+y]|0;else{var S=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=S<<1|S>>>31}var T=(h<<5|h>>>27)+m+l[y];y<20?T+=(v&p|~v&g)+1518500249:y<40?T+=(v^p^g)+1859775393:y<60?T+=(v&p|v&g|p&g)-1894007588:T+=(v^p^g)-899497514,m=g,g=p,p=v<<30|v>>>2,v=h,h=T}d[0]=d[0]+h|0,d[1]=d[1]+v|0,d[2]=d[2]+p|0,d[3]=d[3]+g|0,d[4]=d[4]+m|0},_doFinalize:function(){var f=this._data,c=f.words,d=this._nDataBytes*8,h=f.sigBytes*8;return c[h>>>5]|=128<<24-h%32,c[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),c[(h+64>>>9<<4)+15]=d,f.sigBytes=c.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=o._createHelper(u),n.HmacSHA1=o._createHmacHelper(u)}(),r.SHA1})}(Sf)),Sf.exports}var bf={exports:{}},rg;function GI(){return rg||(rg=1,function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){(function(){var n=r,i=n.lib,a=i.Base,o=n.enc,s=o.Utf8,l=n.algo;l.HMAC=a.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=s.parse(f));var c=u.blockSize,d=c*4;f.sigBytes>d&&(f=u.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),v=this._iKey=f.clone(),p=h.words,g=v.words,m=0;m>>2]&255;w.sigBytes-=b}};a.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:y}),reset:function(){var w;h.reset.call(this);var b=this.cfg,E=b.iv,A=b.mode;this._xformMode==this._ENC_XFORM_MODE?w=A.createEncryptor:(w=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,E&&E.words):(this._mode=w.call(A,this,E&&E.words),this._mode.__creator=w)},_doProcessBlock:function(w,b){this._mode.processBlock(w,b)},_doFinalize:function(){var w,b=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(b.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),b.unpad(w)),w},blockSize:128/32});var S=a.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),T=i.format={},P=T.OpenSSL={stringify:function(w){var b,E=w.ciphertext,A=w.salt;return A?b=s.create([1398893684,1701076831]).concat(A).concat(E):b=E,b.toString(f)},parse:function(w){var b,E=f.parse(w),A=E.words;return A[0]==1398893684&&A[1]==1701076831&&(b=s.create(A.slice(2,4)),A.splice(0,4),E.sigBytes-=16),S.create({ciphertext:E,salt:b})}},x=a.SerializableCipher=o.extend({cfg:o.extend({format:P}),encrypt:function(w,b,E,A){A=this.cfg.extend(A);var R=w.createEncryptor(E,A),k=R.finalize(b),D=R.cfg;return S.create({ciphertext:k,key:E,iv:D.iv,algorithm:w,mode:D.mode,padding:D.padding,blockSize:w.blockSize,formatter:A.format})},decrypt:function(w,b,E,A){A=this.cfg.extend(A),b=this._parse(b,A.format);var R=w.createDecryptor(E,A).finalize(b.ciphertext);return R},_parse:function(w,b){return typeof w=="string"?b.parse(w,this):w}}),_=i.kdf={},M=_.OpenSSL={execute:function(w,b,E,A,R){if(A||(A=s.random(64/8)),R)var k=d.create({keySize:b+E,hasher:R}).compute(w,A);else var k=d.create({keySize:b+E}).compute(w,A);var D=s.create(k.words.slice(b),E*4);return k.sigBytes=b*4,S.create({key:k,iv:D,salt:A})}},C=a.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:M}),encrypt:function(w,b,E,A){A=this.cfg.extend(A);var R=A.kdf.execute(E,w.keySize,w.ivSize,A.salt,A.hasher);A.iv=R.iv;var k=x.encrypt.call(this,w,b,R.key,A);return k.mixIn(R),k},decrypt:function(w,b,E,A){A=this.cfg.extend(A),b=this._parse(b,A.format);var R=A.kdf.execute(E,w.keySize,w.ivSize,b.salt,A.hasher);A.iv=R.iv;var k=x.decrypt.call(this,w,b,R.key,A);return k}})}()})}(Cf)),Cf.exports}var wf={exports:{}},ag;function WI(){return ag||(ag=1,function(t,e){(function(r,n,i){t.exports=n(qn(),Av())})(mr,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(i,a){this._cipher.encryptBlock(i,a)}}),n.Decryptor=n.extend({processBlock:function(i,a){this._cipher.decryptBlock(i,a)}}),n}(),r.mode.ECB})}(wf)),wf.exports}var Tf={exports:{}},og;function jI(){return og||(og=1,function(t,e){(function(r,n,i){t.exports=n(qn(),UI(),HI(),h1(),Av())})(mr,function(r){return function(){var n=r,i=n.lib,a=i.BlockCipher,o=n.algo,s=[],l=[],u=[],f=[],c=[],d=[],h=[],v=[],p=[],g=[];(function(){for(var S=[],T=0;T<256;T++)T<128?S[T]=T<<1:S[T]=T<<1^283;for(var P=0,x=0,T=0;T<256;T++){var _=x^x<<1^x<<2^x<<3^x<<4;_=_>>>8^_&255^99,s[P]=_,l[_]=P;var M=S[P],C=S[M],w=S[C],b=S[_]*257^_*16843008;u[P]=b<<24|b>>>8,f[P]=b<<16|b>>>16,c[P]=b<<8|b>>>24,d[P]=b;var b=w*16843009^C*65537^M*257^P*16843008;h[_]=b<<24|b>>>8,v[_]=b<<16|b>>>16,p[_]=b<<8|b>>>24,g[_]=b,P?(P=M^S[S[S[w^M]]],x^=S[S[x]]):P=x=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=a.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var T=this._keyPriorReset=this._key,P=T.words,x=T.sigBytes/4,_=this._nRounds=x+6,M=(_+1)*4,C=this._keySchedule=[],w=0;w6&&w%x==4&&(S=s[S>>>24]<<24|s[S>>>16&255]<<16|s[S>>>8&255]<<8|s[S&255]):(S=S<<8|S>>>24,S=s[S>>>24]<<24|s[S>>>16&255]<<16|s[S>>>8&255]<<8|s[S&255],S^=m[w/x|0]<<24),C[w]=C[w-x]^S);for(var b=this._invKeySchedule=[],E=0;E>>24]]^v[s[S>>>16&255]]^p[s[S>>>8&255]]^g[s[S&255]]}}},encryptBlock:function(S,T){this._doCryptBlock(S,T,this._keySchedule,u,f,c,d,s)},decryptBlock:function(S,T){var P=S[T+1];S[T+1]=S[T+3],S[T+3]=P,this._doCryptBlock(S,T,this._invKeySchedule,h,v,p,g,l);var P=S[T+1];S[T+1]=S[T+3],S[T+3]=P},_doCryptBlock:function(S,T,P,x,_,M,C,w){for(var b=this._nRounds,E=S[T]^P[0],A=S[T+1]^P[1],R=S[T+2]^P[2],k=S[T+3]^P[3],D=4,O=1;O>>24]^_[A>>>16&255]^M[R>>>8&255]^C[k&255]^P[D++],U=x[A>>>24]^_[R>>>16&255]^M[k>>>8&255]^C[E&255]^P[D++],q=x[R>>>24]^_[k>>>16&255]^M[E>>>8&255]^C[A&255]^P[D++],H=x[k>>>24]^_[E>>>16&255]^M[A>>>8&255]^C[R&255]^P[D++];E=$,A=U,R=q,k=H}var $=(w[E>>>24]<<24|w[A>>>16&255]<<16|w[R>>>8&255]<<8|w[k&255])^P[D++],U=(w[A>>>24]<<24|w[R>>>16&255]<<16|w[k>>>8&255]<<8|w[E&255])^P[D++],q=(w[R>>>24]<<24|w[k>>>16&255]<<16|w[E>>>8&255]<<8|w[A&255])^P[D++],H=(w[k>>>24]<<24|w[E>>>16&255]<<16|w[A>>>8&255]<<8|w[R&255])^P[D++];S[T]=$,S[T+1]=U,S[T+2]=q,S[T+3]=H},keySize:256/32});n.AES=a._createHelper(y)}(),r.AES})}(Tf)),Tf.exports}const sh=t=>{const{left:e,top:r,width:n,height:i,rotate:a=0}=t,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2,s=Math.atan(i/n)*180/Math.PI,l=(180-a-s)*Math.PI/180,u=(s-a)*Math.PI/180,f=e+n/2,c=r+i/2,d=[f+o*Math.cos(l),f+o*Math.cos(u),f-o*Math.cos(l),f-o*Math.cos(u)],h=[c-o*Math.sin(l),c-o*Math.sin(u),c+o*Math.sin(l),c+o*Math.sin(u)];return{xRange:[Math.min(...d),Math.max(...d)],yRange:[Math.min(...h),Math.max(...h)]}},B6=t=>{const{xRange:e,yRange:r}=sh({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:n,yRange:i}=sh({left:t.left,top:t.top,width:t.width,height:t.height,rotate:t.rotate});return{offsetX:n[0]-e[0],offsetY:i[0]-r[0]}},v1=t=>{let e,r,n,i;if(t.type==="line")e=t.left,r=t.left+Math.max(t.start[0],t.end[0]),n=t.top,i=t.top+Math.max(t.start[1],t.end[1]);else if("rotate"in t&&t.rotate){const{left:a,top:o,width:s,height:l,rotate:u}=t,{xRange:f,yRange:c}=sh({left:a,top:o,width:s,height:l,rotate:u});e=f[0],r=f[1],n=c[0],i=c[1]}else e=t.left,r=t.left+t.width,n=t.top,i=t.top+t.height;return{minX:e,maxX:r,minY:n,maxY:i}},N6=t=>{const e=[],r=[],n=[],i=[];t.forEach(u=>{const{minX:f,maxX:c,minY:d,maxY:h}=v1(u);e.push(f),r.push(d),n.push(c),i.push(h)});const a=Math.min(...e),o=Math.max(...n),s=Math.min(...r),l=Math.max(...i);return{minX:a,maxX:o,minY:s,maxY:l}},F6=t=>{const e=[];return t.forEach(r=>{const n=e.findIndex(i=>i.value===r.value);if(n===-1)e.push(r);else{const i=e[n],a=Math.min(i.range[0],r.range[0]),o=Math.max(i.range[1],r.range[1]),s=[a,o],l={value:r.value,range:s};e[n]=l}}),e},$6=t=>{const e={};for(const r of t)e[r.id]=ih(10);return e},z6=t=>{const e={},r={};for(const n of t){const i=n.groupId;i&&!e[i]&&(e[i]=ih(10)),r[n.id]=ih(10)}return{groupIdMap:e,elIdMap:r}},KI=t=>{const e=ah(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},XI=t=>{const e=t.start.join(","),r=t.end.join(",");if(t.broken){const n=t.broken.join(",");return`M${e} L${n} L${r}`}else if(t.broken2){const{minX:n,maxX:i,minY:a,maxY:o}=v1(t);return i-n>=o-a?`M${e} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${r}`:`M${e} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${r}`}else if(t.curve){const n=t.curve.join(",");return`M${e} Q${n} ${r}`}else if(t.cubic){const[n,i]=t.cubic,a=n.join(","),o=i.join(",");return`M${e} C${a} ${o} ${r}`}return`M${e} L${r}`},U6=(t,e)=>{const r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom},YI=["id"],ZI={class:"icons"},QI={class:"content"},JI={key:0,class:"title"},qI={class:"description"},e_={key:0,class:"control"},t_=ze({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(t,{expose:e,emit:r}){const{IconAttention:n,IconCheckOne:i,IconCloseOne:a,IconInfo:o,IconCloseSmall:s}=TI,l=t,u=r,f=de(!0),c=de(null),d=()=>{l.duration<=0||(c.value=setTimeout(v,l.duration))},h=()=>{c.value&&clearTimeout(c.value)},v=()=>f.value=!1;return d1(()=>{h()}),_r(()=>{d()}),e({close:v}),(p,g)=>(ie(),Ke(c1,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:g[3]||(g[3]=m=>u("close")),onAfterLeave:g[4]||(g[4]=m=>u("destroy"))},{default:_n(()=>[f.value?(ie(),ve("div",{key:0,class:"message",id:p.id},[Q("div",{class:"message-container",onMouseenter:g[1]||(g[1]=m=>h()),onMouseleave:g[2]||(g[2]=m=>d())},[Q("div",ZI,[p.type==="warning"?(ie(),Ke(le(n),{key:0,theme:"filled",size:"18",fill:"#faad14"})):Ue("",!0),p.type==="success"?(ie(),Ke(le(i),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):Ue("",!0),p.type==="error"?(ie(),Ke(le(a),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):Ue("",!0),p.type==="info"?(ie(),Ke(le(o),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):Ue("",!0)]),Q("div",QI,[p.title?(ie(),ve("div",JI,Pt(p.title),1)):Ue("",!0),Q("div",qI,Pt(p.message),1)]),p.closable?(ie(),ve("div",e_,[Q("span",{class:"close-btn",onClick:g[0]||(g[0]=m=>v())},[Xe(le(s))])])):Ue("",!0)],32)],8,YI)):Ue("",!0)]),_:1}))}}),r_=Ge(t_,[["__scopeId","data-v-bfa2994d"]]),lh=[];let Bn=null,n_=0;const i_={duration:3e3},Nr=t=>{const e="message-"+n_++,r={...i_,...t,id:e};Bn||(Bn=document.createElement("div"),Bn.className="message-wrap",Bn.style.cssText=` width: 100%; position: fixed; top: 0; left: 0; z-index: 6000; pointer-events: none; display: flex; flex-direction: column; box-sizing: border-box; padding: 15px; background-color: rgba(255, 255, 255, 0); transition: all 1s ease-in-out; align-items: center; `,document.body.appendChild(Bn));const n=Xe(r_,r,null),i=document.createElement("div");n.appContext=t.ctx||Nr._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{Bn&&Bn.childNodes.length<=1&&(Bn.remove(),Bn=null),rh(null,i)},rh(n,i),Bn.appendChild(i.firstElementChild);const a={id:e,close:()=>{var o,s;return(s=(o=n==null?void 0:n.component)==null?void 0:o.exposed)==null?void 0:s.close()}};return lh.push(a),a};Nr.success=(t,e)=>Nr({...e,type:"success",message:t});Nr.info=(t,e)=>Nr({...e,type:"info",message:t});Nr.warning=(t,e)=>Nr({...e,type:"warning",message:t});Nr.error=(t,e)=>Nr({...e,type:"error",message:t});Nr.closeAll=function(){for(let t=lh.length-1;t>=0;t--)lh[t].close()};const a_=t=>{const r=t.replace(/[\n\r]+/g,"
").split("
");let n="";for(const i of r)i&&(n+=`
${i}
`);return n},_l=(t,e)=>oh.padStart(""+t,e,"0"),H6=t=>/^(https?:\/\/)([\w-]+\.)+[\w-]{2,}(\/[\w-./?%&=]*)?$/i.test(t),o_={key:0,class:"loading-overlay"},s_=ul('
',1),l_=[s_],u_=["src"],c_=ze({__name:"musicResourcesPlayer",props:{width:{},height:{},scale:{default:1},type:{},sid:{}},setup(t){const e=t,r=_e(()=>b_(e.type,"preview",e.sid)),n=de(!0);function i(){n.value=!1}return(a,o)=>(ie(),ve("div",{class:"musicResourcesPlayer",style:be({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(ie(),ve("div",o_,l_)):Ue("",!0),Q("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,u_)],4))}}),p1=Ge(c_,[["__scopeId","data-v-927721f2"]]),f_=ze({__name:"musicResourcesElement",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,r=_v(),{canvasScale:n}=Gt(r),i=_e(()=>r.handleElementId!==e.elementInfo.id||e.elementInfo.isMove),a=(o,s=!0)=>{e.elementInfo.lock||(o.stopPropagation(),e.selectElement(o,e.elementInfo,s))};return(o,s)=>{const l=Ua("contextmenu");return ie(),ve("div",{class:ft(["musicResourcesElement",{lock:o.elementInfo.lock}]),style:be({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${o.elementInfo.rotate}deg)`})},[hr((ie(),ve("div",{class:"element-content",onMousedown:s[4]||(s[4]=u=>a(u)),onTouchstart:s[5]||(s[5]=u=>a(u))},[i.value?(ie(),ve("div",{key:0,onMousedown:s[0]||(s[0]=jr(u=>a(u,!1),["stop"])),onTouchstart:s[1]||(s[1]=jr(u=>a(u,!1),["stop"])),class:"mask"},null,32)):Ue("",!0),Xe(le(p1),{width:o.elementInfo.width,height:o.elementInfo.height,scale:le(n),sid:o.elementInfo.sid,type:o.elementInfo.sType},null,8,["width","height","scale","sid","type"]),(ie(),ve(Xt,null,Lr(["t","b","l","r"],u=>Q("div",{class:ft(["handler-border",u]),key:u,onMousedown:s[2]||(s[2]=f=>a(f)),onTouchstart:s[3]||(s[3]=f=>a(f))},null,34)),64))],32)),[[l,o.contextmenus]])],4)],6)}}}),V6=Ge(f_,[["__scopeId","data-v-7865ae60"]]);var d_=jI(),g1={exports:{}};(function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){return r.enc.Utf8})})(g1);var sg=g1.exports,m1={exports:{}};(function(t,e){(function(r,n,i){t.exports=n(qn(),Av())})(mr,function(r){return r.pad.Pkcs7})})(m1);var h_=m1.exports;const v_=Tc(h_);var p_=WI();const g_=Tc(p_),m_="1111111111000000",y_="0000001111111111";function S_(t){return`?${d_.encrypt(t,sg.parse(m_),{mode:g_,padding:v_,iv:sg.parse(y_)}).toString()}`}const lg={MUSIC:"MUSIC_WIKI",INSTRUMENT:"INSTRUMENT",MUSICIAN:"MUSICIAN",THEORY:"THEORY"};function b_(t,e,r){return di.fromType=="CLASS"?`${wu}/#/pptResources?${`Authorization=${hi()}&pptContentType=${lg[t]}&pptType=${e}&pptId=${r}`}`:`${II}/#/pptResources?${S_(`Authorization=${hi()}&source=admin&pptContentType=${lg[t]}&pptType=${e}&pptId=${r}`)}`}var x_=(t=>(t.ROUND_RECT="roundRect",t.ROUND_RECT_DIAGONAL="roundRectDiagonal",t.ROUND_RECT_SINGLE="roundRectSingle",t.ROUND_RECT_SAMESIDE="roundRectSameSide",t.CUT_RECT_DIAGONAL="cutRectDiagonal",t.CUT_RECT_SINGLE="cutRectSingle",t.CUT_RECT_SAMESIDE="cutRectSameSide",t.CUT_ROUND_RECT="cutRoundRect",t.MESSAGE="message",t.ROUND_MESSAGE="roundMessage",t.L="L",t.RING_RECT="ringRect",t.PLUS="plus",t.TRIANGLE="triangle",t.PARALLELOGRAM_LEFT="parallelogramLeft",t.PARALLELOGRAM_RIGHT="parallelogramRight",t.TRAPEZOID="trapezoid",t.BULLET="bullet",t.INDICATOR="indicator",t))(x_||{}),ar=(t=>(t.TEXT="text",t.IMAGE="image",t.SHAPE="shape",t.LINE="line",t.CHART="chart",t.TABLE="table",t.LATEX="latex",t.ELF="elf",t))(ar||{}),Tr=(t=>(t.VIDEO="elf-video",t.AUDIO="elf-audio",t.SING_PLAY="elf-sing-play",t.ENJOY="elf-enjoy",t.LISTENING_PRACTICE="elf-listening-practice",t.RHYTHM_PRACTICE="elf-rhythm-practice",t.MUSIC_RESOURCES="elf-music-resources",t))(Tr||{});const C_=(t,e)=>ra.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/detail",data:{id:t,fromType:e}}),w_=t=>ra.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/savePptJson",data:t}),T_=t=>ra.axioseRquest({method:"post",url:"/edu-app/chapterKnowledgeMaterial/update",data:t}),G6=(t,e)=>ra.axioseRquest({signal:e.signal,method:"post",url:"/edu-app/material/queryPage",data:t}),W6=()=>ra.axioseRquest({method:"post",url:"/edu-app/subject/list",data:{delFlag:0,page:1,rows:999}}),j6=()=>ra.axioseRquest({method:"get",url:"/edu-app/musicTag/tree"}),K6=()=>ra.axioseRquest({method:"post",url:"/edu-app/materialTag/page",data:{page:1,rows:9999}}),X6=t=>ra.axioseRquest({method:"post",url:"/edu-app/material/favorite",data:t});function I_(t){return new Promise((e,r)=>{_I.get(t).then(n=>{n.status===200&&typeof n.data=="object"?e({code:200,data:n.data}):e({code:500,data:{}})}).catch(()=>{e({code:500,data:{}})})})}function __(t){const e=kt(),{width:r,theme:n,slides:i}=t;e.updateSlideIndex(0),e.setViewportSize(r||1920),e.setViewportRatio(n.viewportRatio||.5625);const a=E_(i);e.setTheme(n),e.setSlides(a.length?a:AI)}function A_(){const t=kt(),{slides:e,theme:r,viewportRatio:n,viewportSize:i,title:a}=t,o={width:i,height:i*n,slides:e,theme:Object.assign(r,{viewportRatio:n})};return{blob:new Blob([JSON.stringify(o)]),title:a}}function E_(t){return(t||[]).map(e=>{var r,n;return((r=e.background)==null?void 0:r.type)==="gradient"&&e.background.gradientType==="linear"&&!((n=e.background)!=null&&n.gradient)&&(e.background.gradient={colors:[{pos:0,color:e.background.gradientColor&&e.background.gradientColor[0]||"rgba(255,255,255,1)"},{pos:100,color:e.background.gradientColor&&e.background.gradientColor[1]||"rgba(255,255,255,1)"}],rotate:e.background.gradientRotate||0,type:e.background.gradientType}),(e.elements||[]).map(i=>{var a,o;i.type==="shape"&&((a=i.gradient)==null?void 0:a.type)=="linear"&&!((o=i.gradient)!=null&&o.colors)&&(i.gradient.colors=[{pos:0,color:i.gradient.color&&i.gradient.color[0]||"rgba(255,255,255,1)"},{pos:100,color:i.gradient.color&&i.gradient.color[1]||"rgba(255,255,255,1)"}])}),e.animations&&(e.animations=(e.animations||[]).filter(i=>i.effect)),e})}var y1={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(mr,function(){return function(r){var n={};function i(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=r,i.c=n,i.d=function(a,o,s){i.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:s})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,o){if(o&1&&(a=i(a)),o&8||o&4&&typeof a=="object"&&a&&a.__esModule)return a;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:a}),o&2&&typeof a!="string")for(var l in a)i.d(s,l,(function(u){return a[u]}).bind(null,l));return s},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="/dist/",i(i.s="./index.js")}({"./index.js":function(r,n,i){var a=i("./src/cos.js");r.exports=a},"./lib/base64.js":function(r,n){var i=function(a){a=a||{};var o=a.Base64,s="2.1.9",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(E){for(var A={},R=0,k=E.length;R>>6)+f(128|R&63):f(224|R>>>12&15)+f(128|R>>>6&63)+f(128|R&63)}else{var R=65536+(A.charCodeAt(0)-55296)*1024+(A.charCodeAt(1)-56320);return f(240|R>>>18&7)+f(128|R>>>12&63)+f(128|R>>>6&63)+f(128|R&63)}},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,h=function(A){return A.replace(d,c)},v=function(A){var R=[0,2,1][A.length%3],k=A.charCodeAt(0)<<16|(A.length>1?A.charCodeAt(1):0)<<8|(A.length>2?A.charCodeAt(2):0),D=[l.charAt(k>>>18),l.charAt(k>>>12&63),R>=2?"=":l.charAt(k>>>6&63),R>=1?"=":l.charAt(k&63)];return D.join("")},p=a.btoa?function(E){return a.btoa(E)}:function(E){return E.replace(/[\s\S]{1,3}/g,v)},g=function(E){return p(h(E))},m=function(A,R){return R?g(String(A)).replace(/[+\/]/g,function(k){return k=="+"?"-":"_"}).replace(/=/g,""):g(String(A))},y=function(A){return m(A,!0)},S=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),T=function(A){switch(A.length){case 4:var R=(7&A.charCodeAt(0))<<18|(63&A.charCodeAt(1))<<12|(63&A.charCodeAt(2))<<6|63&A.charCodeAt(3),k=R-65536;return f((k>>>10)+55296)+f((k&1023)+56320);case 3:return f((15&A.charCodeAt(0))<<12|(63&A.charCodeAt(1))<<6|63&A.charCodeAt(2));default:return f((31&A.charCodeAt(0))<<6|63&A.charCodeAt(1))}},P=function(A){return A.replace(S,T)},x=function(A){var R=A.length,k=R%4,D=(R>0?u[A.charAt(0)]<<18:0)|(R>1?u[A.charAt(1)]<<12:0)|(R>2?u[A.charAt(2)]<<6:0)|(R>3?u[A.charAt(3)]:0),O=[f(D>>>16),f(D>>>8&255),f(D&255)];return O.length-=[0,0,2,1][k],O.join("")},_=a.atob?function(E){return a.atob(E)}:function(E){return E.replace(/[\s\S]{1,4}/g,x)},M=function(E){return P(_(E))},C=function(A){return M(String(A).replace(/[-_]/g,function(R){return R=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(){var A=a.Base64;return a.Base64=o,A},b={VERSION:s,atob:_,btoa:p,fromBase64:C,toBase64:m,utob:h,encode:m,encodeURI:y,btou:P,decode:C,noConflict:w};return b}();r.exports=i},"./lib/crypto.js":function(r,n,i){(function(a){var o=i("./node_modules/@babel/runtime/helpers/typeof.js"),s=s||function(l,u){var f={},c=f.lib={},d=function(){},h=c.Base={extend:function(x){d.prototype=this;var _=new d;return x&&_.mixIn(x),_.hasOwnProperty("init")||(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var _ in x)x.hasOwnProperty(_)&&(this[_]=x[_]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}},v=c.WordArray=h.extend({init:function(x,_){x=this.words=x||[],this.sigBytes=_!=u?_:4*x.length},toString:function(x){return(x||g).stringify(this)},concat:function(x){var _=this.words,M=x.words,C=this.sigBytes;if(x=x.sigBytes,this.clamp(),C%4)for(var w=0;w>>2]|=(M[w>>>2]>>>24-8*(w%4)&255)<<24-8*((C+w)%4);else if(65535>>2]=M[w>>>2];else _.push.apply(_,M);return this.sigBytes+=x,this},clamp:function(){var x=this.words,_=this.sigBytes;x[_>>>2]&=4294967295<<32-8*(_%4),x.length=l.ceil(_/4)},clone:function(){var x=h.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var _=[],M=0;M>>2]>>>24-8*(C%4)&255;M.push((w>>>4).toString(16)),M.push((w&15).toString(16))}return M.join("")},parse:function(x){for(var _=x.length,M=[],C=0;C<_;C+=2)M[C>>>3]|=parseInt(x.substr(C,2),16)<<24-4*(C%8);return new v.init(M,_/2)}},m=p.Latin1={stringify:function(x){var _=x.words;x=x.sigBytes;for(var M=[],C=0;C>>2]>>>24-8*(C%4)&255));return M.join("")},parse:function(x){for(var _=x.length,M=[],C=0;C<_;C++)M[C>>>2]|=(x.charCodeAt(C)&255)<<24-8*(C%4);return new v.init(M,_)}},y=p.Utf8={stringify:function(x){try{return decodeURIComponent(escape(m.stringify(x)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(x){return m.parse(unescape(encodeURIComponent(x)))}},S=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=y.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var _=this._data,M=_.words,C=_.sigBytes,w=this.blockSize,b=C/(4*w),b=x?l.ceil(b):l.max((b|0)-this._minBufferSize,0);if(x=b*w,C=l.min(4*x,C),x){for(var E=0;Ex;x++){if(16>x)c[x]=v[p+x]|0;else{var _=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=_<<1|_>>>31}_=(m<<5|m>>>27)+P+c[x],_=20>x?_+((y&S|~y&T)+1518500249):40>x?_+((y^S^T)+1859775393):60>x?_+((y&S|y&T|S&T)-1894007588):_+((y^S^T)-899497514),P=T,T=S,S=y<<30|y>>>2,y=m,m=_}g[0]=g[0]+m|0,g[1]=g[1]+y|0,g[2]=g[2]+S|0,g[3]=g[3]+T|0,g[4]=g[4]+P|0},_doFinalize:function(){var v=this._data,p=v.words,g=8*this._nDataBytes,m=8*v.sigBytes;return p[m>>>5]|=128<<24-m%32,p[(m+64>>>9<<4)+14]=Math.floor(g/4294967296),p[(m+64>>>9<<4)+15]=g,v.sigBytes=4*p.length,this._process(),this._hash},clone:function(){var v=f.clone.call(this);return v._hash=this._hash.clone(),v}});l.SHA1=f._createHelper(d),l.HmacSHA1=f._createHmacHelper(d)})(),function(){var l=s,u=l.enc.Utf8;l.algo.HMAC=l.lib.Base.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=u.parse(d));var h=c.blockSize,v=4*h;d.sigBytes>v&&(d=c.finalize(d)),d.clamp();for(var p=this._oKey=d.clone(),g=this._iKey=d.clone(),m=p.words,y=g.words,S=0;S>>2]>>>24-y%4*8&255,T=v[y+1>>>2]>>>24-(y+1)%4*8&255,P=v[y+2>>>2]>>>24-(y+2)%4*8&255,x=S<<16|T<<8|P,_=0;_<4&&y+_*.75>>6*(3-_)&63));var M=g.charAt(64);if(M)for(;m.length%4;)m.push(M);return m.join("")},parse:function(h){var v=h.length,p=this._map,g=p.charAt(64);if(g){var m=h.indexOf(g);m!=-1&&(v=m)}for(var y=[],S=0,T=0;T>>6-T%4*2;y[S>>>2]|=(P|x)<<24-S%4*8,S++}return f.create(y,S)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),o(a)==="object"?a.exports=s:window.CryptoJS=s}).call(this,i("./node_modules/webpack/buildin/module.js")(r))},"./lib/md5.js":function(r,n,i){(function(a){var o,s=i("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var l=(typeof window>"u"?"undefined":s(window))==="object",u=l?window:{};u.JS_MD5_NO_WINDOW&&(l=!1);var f=!l&&(typeof self>"u"?"undefined":s(self))==="object";f&&(u=self);var c=!u.JS_MD5_NO_COMMON_JS&&s(a)==="object"&&a.exports,d=i("./node_modules/webpack/buildin/amd-options.js"),h=!u.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",v="0123456789abcdef".split(""),p=[128,32768,8388608,-2147483648],g=[0,8,16,24],m=["hex","array","digest","buffer","arrayBuffer","base64"],y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),S=[],T;if(h){var P=new ArrayBuffer(68);T=new Uint8Array(P),S=new Uint32Array(P)}(u.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(w){return Object.prototype.toString.call(w)==="[object Array]"}),h&&(u.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(w){return s(w)==="object"&&w.buffer&&w.buffer.constructor===ArrayBuffer});var x=function(b){return function(E,A){return new M(!0).update(E,A)[b]()}},_=function(){var b=x("hex");b.getCtx=b.create=function(){return new M},b.update=function(R){return b.create().update(R)};for(var E=0;E>6,O[R++]=128|E&63):E<55296||E>=57344?(O[R++]=224|E>>12,O[R++]=128|E>>6&63,O[R++]=128|E&63):(E=65536+((E&1023)<<10|w.charCodeAt(++A)&1023),O[R++]=240|E>>18,O[R++]=128|E>>12&63,O[R++]=128|E>>6&63,O[R++]=128|E&63);else for(R=this.start;A>2]|=E<>2]|=(192|E>>6)<>2]|=(128|E&63)<=57344?(D[R>>2]|=(224|E>>12)<>2]|=(128|E>>6&63)<>2]|=(128|E&63)<>2]|=(240|E>>18)<>2]|=(128|E>>12&63)<>2]|=(128|E>>6&63)<>2]|=(128|E&63)<=64?(this.start=R-64,this.hash(),this.hashed=!0):this.start=R}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},M.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var w=this.blocks,b=this.lastByteIndex;w[b>>2]|=p[b&3],b>=56&&(this.hashed||this.hash(),w[0]=w[16],w[16]=w[1]=w[2]=w[3]=w[4]=w[5]=w[6]=w[7]=w[8]=w[9]=w[10]=w[11]=w[12]=w[13]=w[14]=w[15]=0),w[14]=this.bytes<<3,w[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},M.prototype.hash=function(){var w,b,E,A,R,k,D=this.blocks;this.first?(w=D[0]-680876937,w=(w<<7|w>>>25)-271733879<<0,A=(-1732584194^w&2004318071)+D[1]-117830708,A=(A<<12|A>>>20)+w<<0,E=(-271733879^A&(w^-271733879))+D[2]-1126478375,E=(E<<17|E>>>15)+A<<0,b=(w^E&(A^w))+D[3]-1316259209,b=(b<<22|b>>>10)+E<<0):(w=this.h0,b=this.h1,E=this.h2,A=this.h3,w+=(A^b&(E^A))+D[0]-680876936,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[1]-389564586,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[2]+606105819,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[3]-1044525330,b=(b<<22|b>>>10)+E<<0),w+=(A^b&(E^A))+D[4]-176418897,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[5]+1200080426,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[6]-1473231341,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[7]-45705983,b=(b<<22|b>>>10)+E<<0,w+=(A^b&(E^A))+D[8]+1770035416,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[9]-1958414417,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[10]-42063,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[11]-1990404162,b=(b<<22|b>>>10)+E<<0,w+=(A^b&(E^A))+D[12]+1804603682,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[13]-40341101,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[14]-1502002290,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[15]+1236535329,b=(b<<22|b>>>10)+E<<0,w+=(E^A&(b^E))+D[1]-165796510,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[6]-1069501632,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[11]+643717713,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[0]-373897302,b=(b<<20|b>>>12)+E<<0,w+=(E^A&(b^E))+D[5]-701558691,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[10]+38016083,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[15]-660478335,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[4]-405537848,b=(b<<20|b>>>12)+E<<0,w+=(E^A&(b^E))+D[9]+568446438,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[14]-1019803690,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[3]-187363961,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[8]+1163531501,b=(b<<20|b>>>12)+E<<0,w+=(E^A&(b^E))+D[13]-1444681467,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[2]-51403784,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[7]+1735328473,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[12]-1926607734,b=(b<<20|b>>>12)+E<<0,R=b^E,w+=(R^A)+D[5]-378558,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[8]-2022574463,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[11]+1839030562,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[14]-35309556,b=(b<<23|b>>>9)+E<<0,R=b^E,w+=(R^A)+D[1]-1530992060,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[4]+1272893353,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[7]-155497632,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[10]-1094730640,b=(b<<23|b>>>9)+E<<0,R=b^E,w+=(R^A)+D[13]+681279174,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[0]-358537222,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[3]-722521979,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[6]+76029189,b=(b<<23|b>>>9)+E<<0,R=b^E,w+=(R^A)+D[9]-640364487,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[12]-421815835,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[15]+530742520,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[2]-995338651,b=(b<<23|b>>>9)+E<<0,w+=(E^(b|~A))+D[0]-198630844,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[7]+1126891415,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[14]-1416354905,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[5]-57434055,b=(b<<21|b>>>11)+E<<0,w+=(E^(b|~A))+D[12]+1700485571,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[3]-1894986606,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[10]-1051523,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[1]-2054922799,b=(b<<21|b>>>11)+E<<0,w+=(E^(b|~A))+D[8]+1873313359,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[15]-30611744,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[6]-1560198380,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[13]+1309151649,b=(b<<21|b>>>11)+E<<0,w+=(E^(b|~A))+D[4]-145523070,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[11]-1120210379,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[2]+718787259,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[9]-343485551,b=(b<<21|b>>>11)+E<<0,this.first?(this.h0=w+1732584193<<0,this.h1=b-271733879<<0,this.h2=E-1732584194<<0,this.h3=A+271733878<<0,this.first=!1):(this.h0=this.h0+w<<0,this.h1=this.h1+b<<0,this.h2=this.h2+E<<0,this.h3=this.h3+A<<0)},M.prototype.hex=function(){this.finalize();var w=this.h0,b=this.h1,E=this.h2,A=this.h3;return v[w>>4&15]+v[w&15]+v[w>>12&15]+v[w>>8&15]+v[w>>20&15]+v[w>>16&15]+v[w>>28&15]+v[w>>24&15]+v[b>>4&15]+v[b&15]+v[b>>12&15]+v[b>>8&15]+v[b>>20&15]+v[b>>16&15]+v[b>>28&15]+v[b>>24&15]+v[E>>4&15]+v[E&15]+v[E>>12&15]+v[E>>8&15]+v[E>>20&15]+v[E>>16&15]+v[E>>28&15]+v[E>>24&15]+v[A>>4&15]+v[A&15]+v[A>>12&15]+v[A>>8&15]+v[A>>20&15]+v[A>>16&15]+v[A>>28&15]+v[A>>24&15]},M.prototype.toString=M.prototype.hex,M.prototype.digest=function(w){if(w==="hex")return this.hex();this.finalize();var b=this.h0,E=this.h1,A=this.h2,R=this.h3,k=[b&255,b>>8&255,b>>16&255,b>>24&255,E&255,E>>8&255,E>>16&255,E>>24&255,A&255,A>>8&255,A>>16&255,A>>24&255,R&255,R>>8&255,R>>16&255,R>>24&255];return k},M.prototype.array=M.prototype.digest,M.prototype.arrayBuffer=function(){this.finalize();var w=new ArrayBuffer(16),b=new Uint32Array(w);return b[0]=this.h0,b[1]=this.h1,b[2]=this.h2,b[3]=this.h3,w},M.prototype.buffer=M.prototype.arrayBuffer,M.prototype.base64=function(){for(var w,b,E,A="",R=this.array(),k=0;k<15;)w=R[k++],b=R[k++],E=R[k++],A+=y[w>>>2]+y[(w<<4|b>>>4)&63]+y[(b<<2|E>>>6)&63]+y[E&63];return w=R[k],A+=y[w>>>2]+y[w<<4&63]+"==",A};var C=_();c?a.exports=C:(u.md5=C,d&&(o=(function(){return C}).call(C,i,C,a),o!==void 0&&(a.exports=o)))})()}).call(this,i("./node_modules/webpack/buildin/module.js")(r))},"./lib/request.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/typeof.js"),o=function(d){switch(a(d)){case"string":return d;case"boolean":return d?"true":"false";case"number":return isFinite(d)?d:"";default:return""}},s=function(d,h,v,p){return h=h||"&",v=v||"=",d===null&&(d=void 0),a(d)==="object"?Object.keys(d).map(function(g){var m=encodeURIComponent(o(g))+v;return Array.isArray(d[g])?d[g].map(function(y){return m+encodeURIComponent(o(y))}).join(h):m+encodeURIComponent(o(d[g]))}).filter(Boolean).join(h):""},l=function(d,h,v){var p={},g=h.getAllResponseHeaders();return g&&g.length>0&&g.trim().split(` `).forEach(function(m){if(m){var y=m.indexOf(":"),S=m.substr(0,y).trim().toLowerCase(),T=m.substr(y+1).trim();p[S]=T}}),{error:d,statusCode:h.status,statusMessage:h.statusText,headers:p,body:v}},u=function(d,h){return!h&&h==="text"?d.responseText:d.response},f=function(d,h){var v=(d.method||"GET").toUpperCase(),p=d.url;if(d.qs){var g=s(d.qs);g&&(p+=(p.indexOf("?")===-1?"?":"&")+g)}var m=new XMLHttpRequest;if(m.open(v,p,!0),m.responseType=d.dataType||"text",d.xhrFields)for(var y in d.xhrFields)m[y]=d.xhrFields[y];var S=d.headers;if(S)for(var T in S)S.hasOwnProperty(T)&&T.toLowerCase()!=="content-length"&&T.toLowerCase()!=="user-agent"&&T.toLowerCase()!=="origin"&&T.toLowerCase()!=="host"&&m.setRequestHeader(T,S[T]);return d.onProgress&&m.upload&&(m.upload.onprogress=d.onProgress),d.onDownloadProgress&&(m.onprogress=d.onDownloadProgress),d.timeout&&(m.timeout=d.timeout),m.ontimeout=function(P){var x=new Error("timeout");h(l(x,m))},m.onload=function(){h(l(null,m,u(m,d.dataType)))},m.onerror=function(P){var x=u(m,d.dataType);if(x)h(l(null,m,x));else{var _=m.statusText;!_&&m.status===0&&(_=new Error("CORS blocked or network error")),h(l(_,m,x))}},m.send(d.body||""),m};r.exports=f},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(r,n){function i(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function o(l,u){for(var f=0;f"u")};n.isExist=function(c){return typeof c<"u"},n.isEmptyObject=function(c){return Object.keys(c).length===0},n.merge=function(c,d,h){if(d){const v=Object.keys(d),p=v.length;for(let g=0;g"&&x[b]!==" "&&x[b]!==" "&&x[b]!==` `&&x[b]!=="\r";b++)R+=x[b];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),b--),!S(R)){let O;return R.trim().length===0?O="Invalid space after '<'.":O="Tag '"+R+"' is an invalid name.",m("InvalidTag",O,T(x,b))}const k=d(x,b);if(k===!1)return m("InvalidAttr","Attributes for '"+R+"' have open quote.",T(x,b));let D=k.value;if(b=k.index,D[D.length-1]==="/"){const O=b-D.length;D=D.substring(0,D.length-1);const $=v(D,_);if($===!0)C=!0;else return m($.err.code,$.err.msg,T(x,O+$.err.line))}else if(A)if(k.tagClosed){if(D.trim().length>0)return m("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",T(x,E));if(M.length===0)return m("InvalidTag","Closing tag '"+R+"' has not been opened.",T(x,E));{const O=M.pop();if(R!==O.tagName){let $=T(x,O.tagStartPos);return m("InvalidTag","Expected closing tag '"+O.tagName+"' (opened in line "+$.line+", col "+$.col+") instead of closing tag '"+R+"'.",T(x,E))}M.length==0&&(w=!0)}}else return m("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",T(x,b));else{const O=v(D,_);if(O!==!0)return m(O.err.code,O.err.msg,T(x,b-D.length+O.err.line));if(w===!0)return m("InvalidXml","Multiple possible root nodes found.",T(x,b));_.unpairedTags.indexOf(R)!==-1||M.push({tagName:R,tagStartPos:E}),C=!0}for(b++;b0)return m("InvalidXml","Invalid '"+JSON.stringify(M.map(b=>b.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return m("InvalidXml","Start tag expected.",1);return!0};function s(x){return x===" "||x===" "||x===` `||x==="\r"}function l(x,_){const M=_;for(;_5&&C==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",T(x,_));if(x[_]=="?"&&x[_+1]==">"){_++;break}else continue}return _}function u(x,_){if(x.length>_+5&&x[_+1]==="-"&&x[_+2]==="-"){for(_+=3;_"){_+=2;break}}else if(x.length>_+8&&x[_+1]==="D"&&x[_+2]==="O"&&x[_+3]==="C"&&x[_+4]==="T"&&x[_+5]==="Y"&&x[_+6]==="P"&&x[_+7]==="E"){let M=1;for(_+=8;_"&&(M--,M===0))break}else if(x.length>_+9&&x[_+1]==="["&&x[_+2]==="C"&&x[_+3]==="D"&&x[_+4]==="A"&&x[_+5]==="T"&&x[_+6]==="A"&&x[_+7]==="["){for(_+=8;_"){_+=2;break}}return _}const f='"',c="'";function d(x,_){let M="",C="",w=!1;for(;_"&&C===""){w=!0;break}M+=x[_]}return C!==""?!1:{value:M,index:_,tagClosed:w}}const h=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function v(x,_){const M=a.getAllMatches(x,h),C={};for(let w=0;w","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(c){this.options=Object.assign({},o,c),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f),this.processTextOrObjNode=l,this.options.format?(this.indentate=u,this.tagEndChar=`> `,this.newLine=` `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}s.prototype.build=function(c){return this.options.preserveOrder?a(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c={[this.options.arrayNodeName]:c}),this.j2x(c,0).val)},s.prototype.j2x=function(c,d){let h="",v="";for(let p in c)if(Object.prototype.hasOwnProperty.call(c,p))if(typeof c[p]>"u")this.isAttribute(p)&&(v+="");else if(c[p]===null)this.isAttribute(p)?v+="":p[0]==="?"?v+=this.indentate(d)+"<"+p+"?"+this.tagEndChar:v+=this.indentate(d)+"<"+p+"/"+this.tagEndChar;else if(c[p]instanceof Date)v+=this.buildTextValNode(c[p],p,"",d);else if(typeof c[p]!="object"){const g=this.isAttribute(p);if(g)h+=this.buildAttrPairStr(g,""+c[p]);else if(p===this.options.textNodeName){let m=this.options.tagValueProcessor(p,""+c[p]);v+=this.replaceEntitiesValue(m)}else v+=this.buildTextValNode(c[p],p,"",d)}else if(Array.isArray(c[p])){const g=c[p].length;let m="";for(let y=0;y"u"||(S===null?p[0]==="?"?v+=this.indentate(d)+"<"+p+"?"+this.tagEndChar:v+=this.indentate(d)+"<"+p+"/"+this.tagEndChar:typeof S=="object"?this.options.oneListGroup?m+=this.j2x(S,d+1).val:m+=this.processTextOrObjNode(S,p,d):m+=this.buildTextValNode(S,p,"",d))}this.options.oneListGroup&&(m=this.buildObjectNode(m,p,"",d)),v+=m}else if(this.options.attributesGroupName&&p===this.options.attributesGroupName){const g=Object.keys(c[p]),m=g.length;for(let y=0;y"+c+p:this.options.commentPropName!==!1&&d===this.options.commentPropName&&g.length===0?this.indentate(v)+``+this.newLine:this.indentate(v)+"<"+d+h+g+this.tagEndChar+c+this.indentate(v)+p}},s.prototype.closeTag=function(c){let d="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(d="/"):this.options.suppressEmptyNode?d="/":d=`>`+this.newLine;if(this.options.commentPropName!==!1&&d===this.options.commentPropName)return this.indentate(v)+``+this.newLine;if(d[0]==="?")return this.indentate(v)+"<"+d+h+"?"+this.tagEndChar;{let p=this.options.tagValueProcessor(d,c);return p=this.replaceEntitiesValue(p),p===""?this.indentate(v)+"<"+d+h+this.closeTag(d)+this.tagEndChar:this.indentate(v)+"<"+d+h+">"+p+"0&&this.options.processEntities)for(let d=0;d0&&(h=i),o(c,d,"",h)}function o(c,d,h,v){let p="",g=!1;for(let m=0;m`,g=!1;continue}else if(S===d.commentPropName){p+=v+``,g=!0;continue}else if(S[0]==="?"){const C=l(y[":@"],d),w=S==="?xml"?"":v;let b=y[S][0][d.textNodeName];b=b.length!==0?" "+b:"",p+=w+`<${S}${b}${C}?>`,g=!0;continue}let P=v;P!==""&&(P+=d.indentBy);const x=l(y[":@"],d),_=v+`<${S}${x}`,M=o(y[S],d,T,P);d.unpairedTags.indexOf(S)!==-1?d.suppressUnpairedNode?p+=_+">":p+=_+"/>":(!M||M.length===0)&&d.suppressEmptyNode?p+=_+"/>":M&&M.endsWith(">")?p+=_+`>${M}${v}`:(p+=_+">",M&&v!==""&&(M.includes("/>")||M.includes("`),g=!0}return p}function s(c){const d=Object.keys(c);for(let h=0;h0&&d.processEntities)for(let h=0;h"){if(S?v[p-1]==="-"&&v[p-2]==="-"&&(S=!1,m--):m--,m===0)break}else v[p]==="["?y=!0:T+=v[p];if(m!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:g,i:p}}function s(v,p){let g="";for(;p!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(o,s,l){return o}},a=function(o){return Object.assign({},i,o)};n.buildOptions=a,n.defaultOptions=i},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(r,n,i){const a=i("./node_modules/fast-xml-parser/src/util.js"),o=i("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),s=i("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),l=i("./node_modules/strnum/strnum.js");class u{constructor(w){this.options=w,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(b,E)=>String.fromCharCode(Number.parseInt(E,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(b,E)=>String.fromCharCode(Number.parseInt(E,16))}},this.addExternalEntities=f,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=d,this.buildAttributesMap=v,this.isItStopNode=S,this.replaceEntitiesValue=m,this.readStopNodeData=_,this.saveTextToParentTag=y,this.addChild=g}}function f(C){const w=Object.keys(C);for(let b=0;b0)){k||(C=this.replaceEntitiesValue(C));const D=this.options.tagValueProcessor(w,C,b,A,R);return D==null?C:typeof D!=typeof C||D!==C?D:this.options.trimValues?M(C,this.options.parseTagValue,this.options.numberParseOptions):C.trim()===C?M(C,this.options.parseTagValue,this.options.numberParseOptions):C}}function d(C){if(this.options.removeNSPrefix){const w=C.split(":"),b=C.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";w.length===2&&(C=b+w[1])}return C}const h=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function v(C,w,b){if(!this.options.ignoreAttributes&&typeof C=="string"){const E=a.getAllMatches(C,h),A=E.length,R={};for(let k=0;k",R,"Closing Tag is not closed.");let O=C.substring(R+2,D).trim();if(this.options.removeNSPrefix){const q=O.indexOf(":");q!==-1&&(O=O.substr(q+1))}this.options.transformTagName&&(O=this.options.transformTagName(O)),b&&(E=this.saveTextToParentTag(E,b,A));const $=A.substring(A.lastIndexOf(".")+1);if(O&&this.options.unpairedTags.indexOf(O)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let U=0;$&&this.options.unpairedTags.indexOf($)!==-1?(U=A.lastIndexOf(".",A.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=A.lastIndexOf("."),A=A.substring(0,U),b=this.tagsNodeStack.pop(),E="",R=D}else if(C[R+1]==="?"){let D=x(C,R,!1,"?>");if(!D)throw new Error("Pi Tag is not closed.");if(E=this.saveTextToParentTag(E,b,A),!(this.options.ignoreDeclaration&&D.tagName==="?xml"||this.options.ignorePiTags)){const O=new o(D.tagName);O.add(this.options.textNodeName,""),D.tagName!==D.tagExp&&D.attrExpPresent&&(O[":@"]=this.buildAttributesMap(D.tagExp,A,D.tagName)),this.addChild(b,O,A)}R=D.closeIndex+1}else if(C.substr(R+1,3)==="!--"){const D=P(C,"-->",R+4,"Comment is not closed.");if(this.options.commentPropName){const O=C.substring(R+4,D-2);E=this.saveTextToParentTag(E,b,A),b.add(this.options.commentPropName,[{[this.options.textNodeName]:O}])}R=D}else if(C.substr(R+1,2)==="!D"){const D=s(C,R);this.docTypeEntities=D.entities,R=D.i}else if(C.substr(R+1,2)==="!["){const D=P(C,"]]>",R,"CDATA is not closed.")-2,O=C.substring(R+9,D);E=this.saveTextToParentTag(E,b,A);let $=this.parseTextData(O,b.tagname,A,!0,!1,!0,!0);$==null&&($=""),this.options.cdataPropName?b.add(this.options.cdataPropName,[{[this.options.textNodeName]:O}]):b.add(this.options.textNodeName,$),R=D+2}else{let D=x(C,R,this.options.removeNSPrefix),O=D.tagName;const $=D.rawTagName;let U=D.tagExp,q=D.attrExpPresent,H=D.closeIndex;this.options.transformTagName&&(O=this.options.transformTagName(O)),b&&E&&b.tagname!=="!xml"&&(E=this.saveTextToParentTag(E,b,A,!1));const N=b;if(N&&this.options.unpairedTags.indexOf(N.tagname)!==-1&&(b=this.tagsNodeStack.pop(),A=A.substring(0,A.lastIndexOf("."))),O!==w.tagname&&(A+=A?"."+O:O),this.isItStopNode(this.options.stopNodes,A,O)){let G="";if(U.length>0&&U.lastIndexOf("/")===U.length-1)O[O.length-1]==="/"?(O=O.substr(0,O.length-1),A=A.substr(0,A.length-1),U=O):U=U.substr(0,U.length-1),R=D.closeIndex;else if(this.options.unpairedTags.indexOf(O)!==-1)R=D.closeIndex;else{const oe=this.readStopNodeData(C,$,H+1);if(!oe)throw new Error(`Unexpected end of ${$}`);R=oe.i,G=oe.tagContent}const j=new o(O);O!==U&&q&&(j[":@"]=this.buildAttributesMap(U,A,O)),G&&(G=this.parseTextData(G,O,A,!0,q,!0,!0)),A=A.substr(0,A.lastIndexOf(".")),j.add(this.options.textNodeName,G),this.addChild(b,j,A)}else{if(U.length>0&&U.lastIndexOf("/")===U.length-1){O[O.length-1]==="/"?(O=O.substr(0,O.length-1),A=A.substr(0,A.length-1),U=O):U=U.substr(0,U.length-1),this.options.transformTagName&&(O=this.options.transformTagName(O));const G=new o(O);O!==U&&q&&(G[":@"]=this.buildAttributesMap(U,A,O)),this.addChild(b,G,A),A=A.substr(0,A.lastIndexOf("."))}else{const G=new o(O);this.tagsNodeStack.push(b),O!==U&&q&&(G[":@"]=this.buildAttributesMap(U,A,O)),this.addChild(b,G,A),b=G}E="",R=H}}else E+=C[R];return w.child};function g(C,w,b){const E=this.options.updateTag(w.tagname,b,w[":@"]);E===!1||(typeof E=="string"&&(w.tagname=E),C.addChild(w))}const m=function(C){if(this.options.processEntities){for(let w in this.docTypeEntities){const b=this.docTypeEntities[w];C=C.replace(b.regx,b.val)}for(let w in this.lastEntities){const b=this.lastEntities[w];C=C.replace(b.regex,b.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const b=this.htmlEntities[w];C=C.replace(b.regex,b.val)}C=C.replace(this.ampEntity.regex,this.ampEntity.val)}return C};function y(C,w,b,E){return C&&(E===void 0&&(E=Object.keys(w.child).length===0),C=this.parseTextData(C,w.tagname,b,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,E),C!==void 0&&C!==""&&w.add(this.options.textNodeName,C),C=""),C}function S(C,w,b){const E="*."+b;for(const A in C){const R=C[A];if(E===R||w===R)return!0}return!1}function T(C,w,b=">"){let E,A="";for(let R=w;R",b,`${w} is not closed`);if(C.substring(b+2,R).trim()===w&&(A--,A===0))return{tagContent:C.substring(E,b),i:R};b=R}else if(C[b+1]==="?")b=P(C,"?>",b+1,"StopNode is not closed.");else if(C.substr(b+1,3)==="!--")b=P(C,"-->",b+3,"StopNode is not closed.");else if(C.substr(b+1,2)==="![")b=P(C,"]]>",b,"StopNode is not closed.")-2;else{const R=x(C,b,">");R&&((R&&R.tagName)===w&&R.tagExp[R.tagExp.length-1]!=="/"&&A++,b=R.closeIndex)}}function M(C,w,b){if(w&&typeof C=="string"){const E=C.trim();return E==="true"?!0:E==="false"?!1:l(C,b)}else return a.isExist(C)?C:""}r.exports=u},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(r,n,i){const{buildOptions:a}=i("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),o=i("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:s}=i("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),l=i("./node_modules/fast-xml-parser/src/validator.js");class u{constructor(c){this.externalEntities={},this.options=a(c)}parse(c,d){if(typeof c!="string")if(c.toString)c=c.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(d){d===!0&&(d={});const p=l.validate(c,d);if(p!==!0)throw Error(`${p.err.msg}:${p.err.line}:${p.err.col}`)}const h=new o(this.options);h.addExternalEntities(this.externalEntities);const v=h.parseXml(c);return this.options.preserveOrder||v===void 0?v:s(v,this.options)}addEntity(c,d){if(d.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(c.indexOf("&")!==-1||c.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(d==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[c]=d}}r.exports=u},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(r,n,i){function a(f,c){return o(f,c)}function o(f,c,d){let h;const v={};for(let p=0;p0&&(v[c.textNodeName]=h):h!==void 0&&(v[c.textNodeName]=h),v}function s(f){const c=Object.keys(f);for(let d=0;d0?this.child.push({[s.tagname]:s.child,":@":s[":@"]}):this.child.push({[s.tagname]:s.child})}}r.exports=a},"./node_modules/process/browser.js":function(r,n){var i=r.exports={},a,o;function s(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a=setTimeout:a=s}catch{a=s}try{typeof clearTimeout=="function"?o=clearTimeout:o=l}catch{o=l}})();function u(S){if(a===setTimeout)return setTimeout(S,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(S,0);try{return a(S,0)}catch{try{return a.call(null,S,0)}catch{return a.call(this,S,0)}}}function f(S){if(o===clearTimeout)return clearTimeout(S);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(S);try{return o(S)}catch{try{return o.call(null,S)}catch{return o.call(this,S)}}}var c=[],d=!1,h,v=-1;function p(){!d||!h||(d=!1,h.length?c=h.concat(c):v=-1,c.length&&g())}function g(){if(!d){var S=u(p);d=!0;for(var T=c.length;T;){for(h=c,c=[];++v1)for(var P=1;P0&&h&&c[2]!==".")return u;if(!f.leadingZeros&&v.length>0&&!h&&c[1]!==".")return u;{const m=Number(c),y=""+m;return y.search(/[eE]/)!==-1||g?f.eNotation?m:u:c.indexOf(".")!==-1?y==="0"&&p===""||y===p||h&&y==="-"+p?m:u:v?p===y||h+p===y?m:u:c===y||c===h+y?m:u}}else return u}}function l(u){return u&&u.indexOf(".")!==-1&&(u=u.replace(/0+$/,""),u==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u}r.exports=s},"./node_modules/webpack/buildin/amd-options.js":function(r,n){(function(i){r.exports=i}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(r,n){r.exports=function(i){return i.webpackPolyfill||(i.deprecate=function(){},i.paths=[],i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),i.webpackPolyfill=1),i}},"./package.json":function(r){r.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.6","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"^4.4.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/typeof.js"),o=i("./src/session.js"),s=i("./src/async.js"),l=i("./src/event.js").EventProxy,u=i("./src/util.js"),f=i("./src/tracker.js");function c(C,w){var b=this,E=new l,A=C.TaskId,R=C.Bucket,k=C.Region,D=C.Key,O=C.Body,$=C.ChunkSize||C.SliceSize||b.options.ChunkSize,U=C.AsyncLimit,q=C.StorageClass,H=C.ServerSideEncryption,N,G,j=C.onHashProgress,oe=C.tracker;oe&&oe.setParams({chunkSize:$}),E.on("error",function(Y){if(b._isRunningTask(A))return C.UploadData.UploadId&&o.removeUsing(C.UploadData.UploadId),Y.UploadId=C.UploadData.UploadId||"",w(Y)}),E.on("upload_complete",function(Y){var te=u.extend({UploadId:C.UploadData.UploadId||""},Y);w(null,te)}),E.on("upload_slice_complete",function(Y){var te={};u.each(C.Headers,function(fe,ye){var xe=ye.toLowerCase();(xe.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(xe))&&(te[ye]=fe)}),m.call(b,{Bucket:R,Region:k,Key:D,UploadId:Y.UploadId,SliceList:Y.SliceList,Headers:te,tracker:oe},function(fe,ye){if(b._isRunningTask(A)){if(o.removeUsing(Y.UploadId),fe)return G(null,!0),E.emit("error",fe);o.removeUploadId.call(b,Y.UploadId),G({loaded:N,total:N},!0),E.emit("upload_complete",ye)}})}),E.on("get_upload_data_finish",function(Y){var te=o.getFileId(O,C.ChunkSize,R,D);te&&o.saveUploadId.call(b,te,Y.UploadId,b.options.UploadIdCacheLimit),o.setUsing(Y.UploadId),G(null,!0),p.call(b,{TaskId:A,Bucket:R,Region:k,Key:D,Body:O,FileSize:N,SliceSize:$,AsyncLimit:U,ServerSideEncryption:H,UploadData:Y,Headers:C.Headers,onProgress:G,tracker:oe},function(fe,ye){if(b._isRunningTask(A)){if(fe)return G(null,!0),E.emit("error",fe);E.emit("upload_slice_complete",ye)}})}),E.on("get_file_size_finish",function(){if(G=u.throttleOnProgress.call(b,N,C.onProgress),C.UploadData.UploadId)E.emit("get_upload_data_finish",C.UploadData);else{var Y=u.extend({TaskId:A,Bucket:R,Region:k,Key:D,Headers:C.Headers,StorageClass:q,Body:O,FileSize:N,SliceSize:$,onHashProgress:j,tracker:oe},C);d.call(b,Y,function(te,fe){if(b._isRunningTask(A)){if(te)return E.emit("error",te);C.UploadData.UploadId=fe.UploadId,C.UploadData.PartList=fe.PartList,E.emit("get_upload_data_finish",C.UploadData)}})}}),N=C.ContentLength,delete C.ContentLength,!C.Headers&&(C.Headers={}),u.each(C.Headers,function(Y,te){te.toLowerCase()==="content-length"&&delete C.Headers[te]}),function(){for(var Y=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],te=1024*1024,fe=0;feq)return fe(null,!1);if(ye>1){var xe=Math.max(te[0].Size,te[1].Size);if(xe!==U)return fe(null,!1)}var ce=function ge(Ce){if(Ce=fe.length){oe.emit("has_and_check_upload_id",Y);return}var ge=fe[ce];if(!u.isInArray(Y,ge)){o.removeUploadId.call(D,ge),xe(ce+1);return}if(o.using[ge]){xe(ce+1);return}v.call(D,{Bucket:E,Region:A,Key:R,UploadId:ge,tracker:C.tracker},function(Ce,se){D._isRunningTask(b)&&(Ce?(o.removeUploadId.call(D,ge),xe(ce+1)):oe.emit("upload_id_available",{UploadId:ge,PartList:se.PartList}))})};ye(0)}),oe.on("get_remote_upload_id_list",function(){h.call(D,{Bucket:E,Region:A,Key:R,tracker:C.tracker},function(Y,te){if(D._isRunningTask(b)){if(Y)return oe.emit("error",Y);var fe=u.filter(te.UploadList,function(ce){return ce.Key===R&&(!k||ce.StorageClass.toUpperCase()===k.toUpperCase())}).reverse().map(function(ce){return ce.UploadId||ce.UploadID});if(fe.length)oe.emit("seek_local_avail_upload_id",fe);else{var ye=o.getFileId(C.Body,C.ChunkSize,E,R),xe;ye&&(xe=o.getUploadIdList.call(D,ye))&&u.each(xe,function(ce){o.removeUploadId.call(D,ce)}),oe.emit("no_available_upload_id")}}})}),oe.emit("get_remote_upload_id_list")}function h(C,w){var b=this,E=[],A={Bucket:C.Bucket,Region:C.Region,Prefix:C.Key,calledBySdk:C.calledBySdk||"sliceUploadFile",tracker:C.tracker},R=function k(){b.multipartList(A,function(D,O){if(D)return w(D);E.push.apply(E,O.Upload||[]),O.IsTruncated==="true"?(A.KeyMarker=O.NextKeyMarker,A.UploadIdMarker=O.NextUploadIdMarker,k()):w(null,{UploadList:E})})};R()}function v(C,w){var b=this,E=[],A={Bucket:C.Bucket,Region:C.Region,Key:C.Key,UploadId:C.UploadId,calledBySdk:"sliceUploadFile",tracker:C.tracker},R=function k(){b.multipartListPart(A,function(D,O){if(D)return w(D);E.push.apply(E,O.Part||[]),O.IsTruncated==="true"?(A.PartNumberMarker=O.NextPartNumberMarker,k()):w(null,{PartList:E})})};R()}function p(C,w){var b=this,E=C.TaskId,A=C.Bucket,R=C.Region,k=C.Key,D=C.UploadData,O=C.FileSize,$=C.SliceSize,U=Math.min(C.AsyncLimit||b.options.ChunkParallelLimit||1,256),q=C.Body,H=Math.ceil(O/$),N=0,G=C.ServerSideEncryption,j=C.Headers,oe=u.filter(D.PartList,function(te){return te.Uploaded&&(N+=te.PartNumber>=H&&O%$||$),!te.Uploaded}),Y=C.onProgress;s.eachLimit(oe,U,function(te,fe){if(b._isRunningTask(E)){var ye=te.PartNumber,xe=Math.min(O,te.PartNumber*$)-(te.PartNumber-1)*$,ce=0;g.call(b,{TaskId:E,Bucket:A,Region:R,Key:k,SliceSize:$,FileSize:O,PartNumber:ye,ServerSideEncryption:G,Body:q,UploadData:D,Headers:j,onProgress:function(Ce){N+=Ce.loaded-ce,ce=Ce.loaded,Y({loaded:N,total:O})},tracker:C.tracker},function(ge,Ce){b._isRunningTask(E)&&(!ge&&!Ce.ETag&&(ge='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),ge?N-=ce:(N+=xe-ce,te.ETag=Ce.ETag),Y({loaded:N,total:O}),fe(ge||null,Ce))})}},function(te){if(b._isRunningTask(E)){if(te)return w(te);w(null,{UploadId:D.UploadId,SliceList:D.PartList})}})}function g(C,w){var b=this,E=C.TaskId,A=C.Bucket,R=C.Region,k=C.Key,D=C.FileSize,O=C.Body,$=C.PartNumber*1,U=C.SliceSize,q=C.ServerSideEncryption,H=C.UploadData,N=C.Headers||{},G=b.options.ChunkRetryTimes+1,j=U*($-1),oe=U,Y=j+U;Y>D&&(Y=D,oe=Y-j);var te=["x-cos-traffic-limit","x-cos-mime-limit"],fe={};u.each(N,function(xe,ce){te.indexOf(ce)>-1&&(fe[ce]=xe)});var ye=H.PartList[$-1];s.retry(G,function(xe){b._isRunningTask(E)&&u.fileSlice(O,j,Y,!0,function(ce){b.multipartUpload({TaskId:E,Bucket:A,Region:R,Key:k,ContentLength:oe,PartNumber:$,UploadId:H.UploadId,ServerSideEncryption:q,Body:ce,Headers:fe,onProgress:C.onProgress,calledBySdk:"sliceUploadFile",tracker:C.tracker},function(ge,Ce){if(b._isRunningTask(E))return ge?xe(ge):(ye.Uploaded=!0,xe(null,Ce))})})},function(xe,ce){if(b._isRunningTask(E))return w(xe,ce)})}function m(C,w){var b=C.Bucket,E=C.Region,A=C.Key,R=C.UploadId,k=C.SliceList,D=this,O=this.options.ChunkRetryTimes+1,$=C.Headers,U=k.map(function(q){return{PartNumber:q.PartNumber,ETag:q.ETag}});s.retry(O,function(q){D.multipartComplete({Bucket:b,Region:E,Key:A,UploadId:R,Parts:U,Headers:$,calledBySdk:"sliceUploadFile",tracker:C.tracker},q)},function(q,H){w(q,H)})}function y(C,w){var b=C.Bucket,E=C.Region,A=C.Key,R=C.UploadId,k=C.Level||"task",D=C.AsyncLimit,O=this,$=new l;if($.on("error",function(U){return w(U)}),$.on("get_abort_array",function(U){S.call(O,{Bucket:b,Region:E,Key:A,Headers:C.Headers,AsyncLimit:D,AbortArray:U},w)}),k==="bucket")h.call(O,{Bucket:b,Region:E,calledBySdk:"abortUploadTask"},function(U,q){if(U)return w(U);$.emit("get_abort_array",q.UploadList||[])});else if(k==="file"){if(!A)return w(u.error(new Error("abort_upload_task_no_key")));h.call(O,{Bucket:b,Region:E,Key:A,calledBySdk:"abortUploadTask"},function(U,q){if(U)return w(U);$.emit("get_abort_array",q.UploadList||[])})}else if(k==="task"){if(!R)return w(u.error(new Error("abort_upload_task_no_id")));if(!A)return w(u.error(new Error("abort_upload_task_no_key")));$.emit("get_abort_array",[{Key:A,UploadId:R}])}else return w(u.error(new Error("abort_unknown_level")))}function S(C,w){var b=C.Bucket,E=C.Region,A=C.Key,R=C.AbortArray,k=C.AsyncLimit||1,D=this,O=0,$=new Array(R.length);s.eachLimit(R,k,function(U,q){var H=O;if(A&&A!==U.Key){$[H]={error:{KeyNotMatch:!0}},q(null);return}var N=U.UploadId||U.UploadID;D.multipartAbort({Bucket:b,Region:E,Key:U.Key,Headers:C.Headers,UploadId:N},function(G){var j={Bucket:b,Region:E,Key:U.Key,UploadId:N};$[H]={error:G,task:j},q(null)}),O++},function(U){if(U)return w(U);for(var q=[],H=[],N=0,G=$.length;NE?"sliceUploadFile":"putObject";C.tracker=new f({Beacon:b.options.BeaconReporter,clsReporter:b.options.ClsReporter,bucket:C.Bucket,region:C.Region,apiName:"uploadFile",realApi:$,fileKey:C.Key,fileSize:k,accelerate:O,deepTracker:b.options.DeepTracker,customId:b.options.CustomId,delay:b.options.TrackerDelay})}u.each(C,function(j,oe){a(j)!=="object"&&typeof j!="function"&&(D[oe]=j)});var U=C.onTaskReady,q=function(oe){D.TaskId=oe,U&&U(oe)};C.onTaskReady=q;var H=k>E?"sliceUploadFile":"putObject",N=C.onFileFinish,G=function(oe,Y){C.tracker&&C.tracker.report(oe,Y),N&&N(oe,Y,D),w&&w(oe,Y)};A.push({api:H,params:C,callback:G}),b._addTasks(A)}function P(C,w){var b=this,E=C.SliceSize===void 0?b.options.SliceSize:C.SliceSize,A=0,R=0,k=u.throttleOnProgress.call(b,R,C.onProgress),D=C.files.length,O=C.onFileFinish,$=Array(D),U=function(N,G,j){k(null,!0),O&&O(N,G,j),$[j.Index]={options:j,error:N,data:G},--D<=0&&w&&w(null,{files:$})},q=[];u.each(C.files,function(H,N){(function(){var G=H.Body,j=G.size||G.length||0,oe={Index:N,TaskId:""};if(!b.options.UseRawKey&&H.Key&&H.Key.substr(0,1)==="/"&&(H.Key=H.Key.substr(1)),A+=j,b.options.EnableReporter){var Y=b.options.UseAccelerate||typeof b.options.Domain=="string"&&b.options.Domain.includes("accelerate."),te=j>E?"sliceUploadFile":"putObject";H.tracker=new f({Beacon:b.options.BeaconReporter,clsReporter:b.options.ClsReporter,bucket:H.Bucket,region:H.Region,apiName:"uploadFiles",realApi:te,fileKey:H.Key,fileSize:j,accelerate:Y,deepTracker:b.options.DeepTracker,customId:b.options.CustomId,delay:b.options.TrackerDelay})}u.each(H,function(Ae,Re){a(Ae)!=="object"&&typeof Ae!="function"&&(oe[Re]=Ae)});var fe=H.onTaskReady,ye=function(Re){oe.TaskId=Re,fe&&fe(Re)};H.onTaskReady=ye;var xe=0,ce=H.onProgress,ge=function(Re){R=R-xe+Re.loaded,xe=Re.loaded,ce&&ce(Re),k({loaded:R,total:A})};H.onProgress=ge;var Ce=j>E?"sliceUploadFile":"putObject",se=H.onFileFinish,he=function(Re,lt){H.tracker&&H.tracker.report(Re,lt),se&&se(Re,lt),U&&U(Re,lt,oe)};q.push({api:Ce,params:H,callback:he})})()}),b._addTasks(q)}function x(C,w){var b=new l,E=this,A=C.Bucket,R=C.Region,k=C.Key,D=C.CopySource,O=u.getSourceParams.call(this,D);if(!O){w(u.error(new Error("CopySource format error")));return}var $=O.Bucket,U=O.Region,q=decodeURIComponent(O.Key),H=C.CopySliceSize===void 0?E.options.CopySliceSize:C.CopySliceSize;H=Math.max(0,H);var N=C.CopyChunkSize||this.options.CopyChunkSize,G=this.options.CopyChunkParallelLimit,j=this.options.ChunkRetryTimes+1,oe=0,Y=0,te,fe,ye={},xe={},ce={};b.on("copy_slice_complete",function(ge){u.each(C.Headers,function(se,he){he.toLowerCase().indexOf("x-cos-meta-")});var Ce=u.map(ge.PartList,function(se){return{PartNumber:se.PartNumber,ETag:se.ETag}});s.retry(j,function(se){E.multipartComplete({Bucket:A,Region:R,Key:k,UploadId:ge.UploadId,Parts:Ce,tracker:C.tracker,calledBySdk:"sliceCopyFile"},se)},function(se,he){if(o.removeUsing(ge.UploadId),se)return fe(null,!0),w(se);o.removeUploadId(ge.UploadId),fe({loaded:te,total:te},!0),w(null,he)})}),b.on("get_copy_data_finish",function(ge){var Ce=o.getCopyFileId(D,ye,N,A,k);Ce&&o.saveUploadId(Ce,ge.UploadId,E.options.UploadIdCacheLimit),o.setUsing(ge.UploadId);var se=u.filter(ge.PartList,function(he){return he.Uploaded&&(Y+=he.PartNumber>=oe&&te%N||N),!he.Uploaded});s.eachLimit(se,G,function(he,Ae){var Re=he.PartNumber,lt=he.CopySourceRange,vt=he.end-he.start;s.retry(j,function(mt){_.call(E,{Bucket:A,Region:R,Key:k,CopySource:D,UploadId:ge.UploadId,PartNumber:Re,CopySourceRange:lt,tracker:C.tracker,calledBySdk:"sliceCopyFile"},mt)},function(mt,Fe){if(mt)return Ae(mt);Y+=vt,fe({loaded:Y,total:te}),he.ETag=Fe.ETag,Ae(mt||null,Fe)})},function(he){if(he)return o.removeUsing(ge.UploadId),fe(null,!0),w(he);b.emit("copy_slice_complete",ge)})}),b.on("get_chunk_size_finish",function(){var ge=function(){E.multipartInit({Bucket:A,Region:R,Key:k,Headers:ce,tracker:C.tracker,calledBySdk:"sliceCopyFile"},function(Re,lt){if(Re)return w(Re);C.UploadId=lt.UploadId,b.emit("get_copy_data_finish",{UploadId:C.UploadId,PartList:C.PartList})})},Ce=o.getCopyFileId(D,ye,N,A,k),se=o.getUploadIdList(Ce);if(!Ce||!se)return ge();var he=function Ae(Re){if(Re>=se.length)return ge();var lt=se[Re];if(o.using[lt])return Ae(Re+1);v.call(E,{Bucket:A,Region:R,Key:k,UploadId:lt,tracker:C.tracker,calledBySdk:"sliceCopyFile"},function(vt,mt){if(vt)o.removeUploadId(lt),Ae(Re+1);else{if(o.using[lt])return Ae(Re+1);var Fe={},Zt=0;u.each(mt.PartList,function(Ot){var Sr=parseInt(Ot.Size),mn=Zt+Sr-1;Fe[Ot.PartNumber+"|"+Zt+"|"+mn]=Ot.ETag,Zt+=Sr}),u.each(C.PartList,function(Ot){var Sr=Fe[Ot.PartNumber+"|"+Ot.start+"|"+Ot.end];Sr&&(Ot.ETag=Sr,Ot.Uploaded=!0)}),b.emit("get_copy_data_finish",{UploadId:lt,PartList:C.PartList})}})};he(0)}),b.on("get_file_size_finish",function(){if(function(){for(var Ce=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],se=1024*1024,he=0;heRe.length&&(xe[Ae]=he)}),b.emit("get_file_size_finish")}})}function _(C,w){var b=C.TaskId,E=C.Bucket,A=C.Region,R=C.Key,k=C.CopySource,D=C.UploadId,O=C.PartNumber*1,$=C.CopySourceRange,U=this.options.ChunkRetryTimes+1,q=this;s.retry(U,function(H){q.uploadPartCopy({TaskId:b,Bucket:E,Region:A,Key:R,CopySource:k,UploadId:D,PartNumber:O,CopySourceRange:$,tracker:C.tracker,calledBySdk:C.calledBySdk},function(N,G){H(N||null,G)})},function(H,N){return w(H,N)})}var M={sliceUploadFile:c,abortUploadTask:y,uploadFile:T,uploadFiles:P,sliceCopyFile:x};r.exports.init=function(C,w){w.transferToTaskMethod(M,"sliceUploadFile"),u.each(M,function(b,E){C.prototype[E]=u.apiWrapper(E,b)})}},"./src/async.js":function(r,n){var i=function(l,u,f,c){if(c=c||function(){},!l.length||u<=0)return c();var d=0,h=0,v=0;(function p(){if(d>=l.length)return c();for(;v=l.length?c():p())})})()},a=function(l,u,f){var c=function d(h){u(function(v,p){v&&h"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:"),B=this.options.ServiceDomain,W=I.AppId||this.options.appId,V=I.Region;B?(B=B.replace(/\{\{AppId\}\}/gi,W||"").replace(/\{\{Region\}\}/gi,V||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(B)||(B=L+"//"+B),B.slice(-1)==="/"&&(B=B.slice(0,-1))):V?B=L+"//cos."+V+".myqcloud.com":B=L+"//service.cos.myqcloud.com";var Z="",re=V?"cos."+V+".myqcloud.com":"service.cos.myqcloud.com",me=B.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");re===me&&(Z=re),Le.call(this,{Action:"name/cos:GetService",url:B,method:"GET",headers:I.Headers,SignHost:Z,tracker:I.tracker},function(Ve,Ne){if(Ve)return F(Ve);var at=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Buckets&&Ne.ListAllMyBucketsResult.Buckets.Bucket||[];at=s.isArray(at)?at:[at];var Te=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Owner||{};F(null,{Buckets:at,Owner:Te,statusCode:Ne.statusCode,headers:Ne.headers})})}function u(I,F){var L=this,B="";if(I.BucketAZConfig){var W={BucketAZConfig:I.BucketAZConfig};B=s.json2xml({CreateBucketConfiguration:W})}Le.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,body:B,tracker:I.tracker},function(V,Z){if(V)return F(V);var re=qr({protocol:L.options.Protocol,domain:L.options.Domain,bucket:I.Bucket,region:I.Region,isLocation:!0});F(null,{Location:re,statusCode:Z.statusCode,headers:Z.headers})})}function f(I,F){Le.call(this,{Action:"name/cos:HeadBucket",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,method:"HEAD",tracker:I.tracker},F)}function c(I,F){var L={};L.prefix=I.Prefix||"",L.delimiter=I.Delimiter,L.marker=I.Marker,L["max-keys"]=I.MaxKeys,L["encoding-type"]=I.EncodingType,Le.call(this,{Action:"name/cos:GetBucket",ResourceKey:L.prefix,method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,qs:L,tracker:I.tracker},function(B,W){if(B)return F(B);var V=W.ListBucketResult||{},Z=V.Contents||[],re=V.CommonPrefixes||[];Z=s.isArray(Z)?Z:[Z],re=s.isArray(re)?re:[re];var me=s.clone(V);s.extend(me,{Contents:Z,CommonPrefixes:re,statusCode:W.statusCode,headers:W.headers}),F(null,me)})}function d(I,F){Le.call(this,{Action:"name/cos:DeleteBucket",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,method:"DELETE",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function h(I,F){var L=I.Headers,B="";if(I.AccessControlPolicy){var W=s.clone(I.AccessControlPolicy||{}),V=W.Grants||W.Grant;V=s.isArray(V)?V:[V],delete W.Grant,delete W.Grants,W.AccessControlList={Grant:V},B=s.json2xml({AccessControlPolicy:W}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(B))}s.each(L,function(Z,re){re.indexOf("x-cos-grant-")===0&&(L[re]=kn(L[re]))}),Le.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:I.Bucket,Region:I.Region,headers:L,action:"acl",body:B,tracker:I.tracker},function(Z,re){if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function v(I,F){Le.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"acl",tracker:I.tracker},function(L,B){if(L)return F(L);var W=B.AccessControlPolicy||{},V=W.Owner||{},Z=W.AccessControlList.Grant||[];Z=s.isArray(Z)?Z:[Z];var re=ht(W);B.headers&&B.headers["x-cos-acl"]&&(re.ACL=B.headers["x-cos-acl"]),re=s.extend(re,{Owner:V,Grants:Z,statusCode:B.statusCode,headers:B.headers}),F(null,re)})}function p(I,F){var L=I.CORSConfiguration||{},B=L.CORSRules||I.CORSRules||[];B=s.clone(s.isArray(B)?B:[B]),s.each(B,function(re){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(me){var Ve=me+"s",Ne=re[Ve]||re[me]||[];delete re[Ve],re[me]=s.isArray(Ne)?Ne:[Ne]})});var W={CORSRule:B};I.ResponseVary&&(W.ResponseVary=I.ResponseVary);var V=s.json2xml({CORSConfiguration:W}),Z=I.Headers;Z["Content-Type"]="application/xml",Z["Content-MD5"]=s.b64(s.md5(V)),Le.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:V,action:"cors",headers:Z,tracker:I.tracker},function(re,me){if(re)return F(re);F(null,{statusCode:me.statusCode,headers:me.headers})})}function g(I,F){Le.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"cors",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchCORSConfiguration"){var W={CORSRules:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=B.CORSConfiguration||{},Z=V.CORSRules||V.CORSRule||[];Z=s.clone(s.isArray(Z)?Z:[Z]);var re=V.ResponseVary;s.each(Z,function(me){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Ve){var Ne=Ve+"s",at=me[Ne]||me[Ve]||[];delete me[Ve],me[Ne]=s.isArray(at)?at:[at]})}),F(null,{CORSRules:Z,ResponseVary:re,statusCode:B.statusCode,headers:B.headers})})}function m(I,F){Le.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"cors",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode||L.statusCode,headers:B.headers})})}function y(I,F){Le.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"location",tracker:I.tracker},F)}function S(I,F){var L=I.Policy;try{typeof L=="string"&&(L=JSON.parse(L))}catch{}if(!L||typeof L=="string")return F(s.error(new Error("Policy format error")));var B=JSON.stringify(L);L.version||(L.version="2.0");var W=I.Headers;W["Content-Type"]="application/json",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:I.Bucket,Region:I.Region,action:"policy",body:B,headers:W,tracker:I.tracker},function(V,Z){if(V&&V.statusCode===204)return F(null,{statusCode:V.statusCode});if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function T(I,F){Le.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"policy",rawBody:!0,tracker:I.tracker},function(L,B){if(L)return L.statusCode&&L.statusCode===403?F(s.error(L,{ErrorStatus:"Access Denied"})):L.statusCode&&L.statusCode===405?F(s.error(L,{ErrorStatus:"Method Not Allowed"})):L.statusCode&&L.statusCode===404?F(s.error(L,{ErrorStatus:"Policy Not Found"})):F(L);var W={};try{W=JSON.parse(B.body)}catch{}F(null,{Policy:W,statusCode:B.statusCode,headers:B.headers})})}function P(I,F){Le.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"policy",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode||L.statusCode,headers:B.headers})})}function x(I,F){var L=I.Tagging||{},B=L.TagSet||L.Tags||I.Tags||[];B=s.clone(s.isArray(B)?B:[B]);var W=s.json2xml({Tagging:{TagSet:{Tag:B}}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"tagging",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function _(I,F){Le.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"tagging",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var W={Tags:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=[];try{V=B.Tagging.TagSet.Tag||[]}catch{}V=s.clone(s.isArray(V)?V:[V]),F(null,{Tags:V,statusCode:B.statusCode,headers:B.headers})})}function M(I,F){Le.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"tagging",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function C(I,F){var L=I.LifecycleConfiguration||{},B=L.Rules||I.Rules||[];B=s.clone(B);var W=s.json2xml({LifecycleConfiguration:{Rule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"lifecycle",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function w(I,F){Le.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"lifecycle",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchLifecycleConfiguration"){var W={Rules:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=[];try{V=B.LifecycleConfiguration.Rule||[]}catch{}V=s.clone(s.isArray(V)?V:[V]),F(null,{Rules:V,statusCode:B.statusCode,headers:B.headers})})}function b(I,F){Le.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"lifecycle",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function E(I,F){if(!I.VersioningConfiguration){F(s.error(new Error("missing param VersioningConfiguration")));return}var L=I.VersioningConfiguration||{},B=s.json2xml({VersioningConfiguration:L}),W=I.Headers;W["Content-Type"]="application/xml",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:B,action:"versioning",headers:W,tracker:I.tracker},function(V,Z){if(V&&V.statusCode===204)return F(null,{statusCode:V.statusCode});if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function A(I,F){Le.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"versioning",tracker:I.tracker},function(L,B){L||!B.VersioningConfiguration&&(B.VersioningConfiguration={}),F(L,B)})}function R(I,F){var L=s.clone(I.ReplicationConfiguration),B=s.json2xml({ReplicationConfiguration:L});B=B.replace(/<(\/?)Rules>/gi,"<$1Rule>"),B=B.replace(/<(\/?)Tags>/gi,"<$1Tag>");var W=I.Headers;W["Content-Type"]="application/xml",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:B,action:"replication",headers:W,tracker:I.tracker},function(V,Z){if(V&&V.statusCode===204)return F(null,{statusCode:V.statusCode});if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function k(I,F){Le.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"replication",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="ReplicationConfigurationnotFoundError")){var W={ReplicationConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}!B.ReplicationConfiguration&&(B.ReplicationConfiguration={}),B.ReplicationConfiguration.Rule&&(B.ReplicationConfiguration.Rules=s.makeArray(B.ReplicationConfiguration.Rule),delete B.ReplicationConfiguration.Rule),F(L,B)})}function D(I,F){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"replication",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function O(I,F){if(!I.WebsiteConfiguration){F(s.error(new Error("missing param WebsiteConfiguration")));return}var L=s.clone(I.WebsiteConfiguration||{}),B=L.RoutingRules||L.RoutingRule||[];B=s.isArray(B)?B:[B],delete L.RoutingRule,delete L.RoutingRules,B.length&&(L.RoutingRules={RoutingRule:B});var W=s.json2xml({WebsiteConfiguration:L}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"website",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function $(I,F){Le.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"website",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchWebsiteConfiguration"){var W={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=B.WebsiteConfiguration||{};if(V.RoutingRules){var Z=s.clone(V.RoutingRules.RoutingRule||[]);Z=s.makeArray(Z),V.RoutingRules=Z}F(null,{WebsiteConfiguration:V,statusCode:B.statusCode,headers:B.headers})})}function U(I,F){Le.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"website",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function q(I,F){if(!I.RefererConfiguration){F(s.error(new Error("missing param RefererConfiguration")));return}var L=s.clone(I.RefererConfiguration||{}),B=L.DomainList||{},W=B.Domains||B.Domain||[];W=s.isArray(W)?W:[W],W.length&&(L.DomainList={Domain:W});var V=s.json2xml({RefererConfiguration:L}),Z=I.Headers;Z["Content-Type"]="application/xml",Z["Content-MD5"]=s.b64(s.md5(V)),Le.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:V,action:"referer",headers:Z,tracker:I.tracker},function(re,me){if(re&&re.statusCode===204)return F(null,{statusCode:re.statusCode});if(re)return F(re);F(null,{statusCode:me.statusCode,headers:me.headers})})}function H(I,F){Le.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"referer",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchRefererConfiguration"){var W={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=B.RefererConfiguration||{};if(V.DomainList){var Z=s.makeArray(V.DomainList.Domain||[]);V.DomainList={Domains:Z}}F(null,{RefererConfiguration:V,statusCode:B.statusCode,headers:B.headers})})}function N(I,F){var L=I.DomainConfiguration||{},B=L.DomainRule||I.DomainRule||[];B=s.clone(B);var W=s.json2xml({DomainConfiguration:{DomainRule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"domain",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function G(I,F){Le.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"domain",tracker:I.tracker},function(L,B){if(L)return F(L);var W=[];try{W=B.DomainConfiguration.DomainRule||[]}catch{}W=s.clone(s.isArray(W)?W:[W]),F(null,{DomainRule:W,statusCode:B.statusCode,headers:B.headers})})}function j(I,F){Le.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"domain",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function oe(I,F){var L=I.OriginConfiguration||{},B=L.OriginRule||I.OriginRule||[];B=s.clone(B);var W=s.json2xml({OriginConfiguration:{OriginRule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"origin",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function Y(I,F){Le.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"origin",tracker:I.tracker},function(L,B){if(L)return F(L);var W=[];try{W=B.OriginConfiguration.OriginRule||[]}catch{}W=s.clone(s.isArray(W)?W:[W]),F(null,{OriginRule:W,statusCode:B.statusCode,headers:B.headers})})}function te(I,F){Le.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"origin",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function fe(I,F){var L=s.json2xml({BucketLoggingStatus:I.BucketLoggingStatus||""}),B=I.Headers;B["Content-Type"]="application/xml",B["Content-MD5"]=s.b64(s.md5(L)),Le.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:L,action:"logging",headers:B,tracker:I.tracker},function(W,V){if(W&&W.statusCode===204)return F(null,{statusCode:W.statusCode});if(W)return F(W);F(null,{statusCode:V.statusCode,headers:V.headers})})}function ye(I,F){Le.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"logging",tracker:I.tracker},function(L,B){if(L)return F(L);F(null,{BucketLoggingStatus:B.BucketLoggingStatus,statusCode:B.statusCode,headers:B.headers})})}function xe(I,F,L){var B=s.clone(F.InventoryConfiguration);if(B.OptionalFields){var W=B.OptionalFields||[];B.OptionalFields={Field:W}}if(B.Destination&&B.Destination.COSBucketDestination&&B.Destination.COSBucketDestination.Encryption){var V=B.Destination.COSBucketDestination.Encryption;Object.keys(V).indexOf("SSECOS")>-1&&(V["SSE-COS"]=V.SSECOS,delete V.SSECOS)}var Z=s.json2xml({InventoryConfiguration:B}),re=F.Headers;re["Content-Type"]="application/xml",re["Content-MD5"]=s.b64(s.md5(Z));var me=I==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Le.call(this,{Action:me,method:I,Bucket:F.Bucket,Region:F.Region,body:Z,action:"inventory",qs:{id:F.Id},headers:re,tracker:F.tracker},function(Ve,Ne){if(Ve&&Ve.statusCode===204)return L(null,{statusCode:Ve.statusCode});if(Ve)return L(Ve);L(null,{statusCode:Ne.statusCode,headers:Ne.headers})})}function ce(I,F){return xe.call(this,"PUT",I,F)}function ge(I,F){return xe.call(this,"POST",I,F)}function Ce(I,F){Le.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"inventory",qs:{id:I.Id},tracker:I.tracker},function(L,B){if(L)return F(L);var W=B.InventoryConfiguration;if(W&&W.OptionalFields&&W.OptionalFields.Field){var V=W.OptionalFields.Field;s.isArray(V)||(V=[V]),W.OptionalFields=V}if(W.Destination&&W.Destination.COSBucketDestination&&W.Destination.COSBucketDestination.Encryption){var Z=W.Destination.COSBucketDestination.Encryption;Object.keys(Z).indexOf("SSE-COS")>-1&&(Z.SSECOS=Z["SSE-COS"],delete Z["SSE-COS"])}F(null,{InventoryConfiguration:W,statusCode:B.statusCode,headers:B.headers})})}function se(I,F){Le.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"inventory",qs:{"continuation-token":I.ContinuationToken},tracker:I.tracker},function(L,B){if(L)return F(L);var W=B.ListInventoryConfigurationResult,V=W.InventoryConfiguration||[];V=s.isArray(V)?V:[V],delete W.InventoryConfiguration,s.each(V,function(Z){if(Z&&Z.OptionalFields&&Z.OptionalFields.Field){var re=Z.OptionalFields.Field;s.isArray(re)||(re=[re]),Z.OptionalFields=re}if(Z.Destination&&Z.Destination.COSBucketDestination&&Z.Destination.COSBucketDestination.Encryption){var me=Z.Destination.COSBucketDestination.Encryption;Object.keys(me).indexOf("SSE-COS")>-1&&(me.SSECOS=me["SSE-COS"],delete me["SSE-COS"])}}),W.InventoryConfigurations=V,s.extend(W,{statusCode:B.statusCode,headers:B.headers}),F(null,W)})}function he(I,F){Le.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"inventory",qs:{id:I.Id},tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function Ae(I,F){if(!I.AccelerateConfiguration){F(s.error(new Error("missing param AccelerateConfiguration")));return}var L={AccelerateConfiguration:I.AccelerateConfiguration||{}},B=s.json2xml(L),W={};W["Content-Type"]="application/xml",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:B,action:"accelerate",headers:W,tracker:I.tracker},function(V,Z){if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function Re(I,F){Le.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:I.Bucket,Region:I.Region,action:"accelerate",tracker:I.tracker},function(L,B){L||!B.AccelerateConfiguration&&(B.AccelerateConfiguration={}),F(L,B)})}function lt(I,F){var L=I.ServerSideEncryptionConfiguration||{},B=L.Rule||L.Rules||[],W=s.json2xml({ServerSideEncryptionConfiguration:{Rule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"encryption",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function vt(I,F){Le.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"encryption",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.code==="NoSuchEncryptionConfiguration"){var W={EncryptionConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=s.makeArray(B.EncryptionConfiguration&&B.EncryptionConfiguration.Rule||[]);B.EncryptionConfiguration={Rules:V},F(L,B)})}function mt(I,F){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"encryption",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function Fe(I,F){Le.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,headers:I.Headers,tracker:I.tracker},function(L,B){if(L){var W=L.statusCode;return I.Headers["If-Modified-Since"]&&W&&W===304?F(null,{NotModified:!0,statusCode:W}):F(L)}B.ETag=s.attr(B.headers,"etag",""),F(null,B)})}function Zt(I,F){var L={};L.prefix=I.Prefix||"",L.delimiter=I.Delimiter,L["key-marker"]=I.KeyMarker,L["version-id-marker"]=I.VersionIdMarker,L["max-keys"]=I.MaxKeys,L["encoding-type"]=I.EncodingType,Le.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:L.prefix,method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,qs:L,action:"versions",tracker:I.tracker},function(B,W){if(B)return F(B);var V=W.ListVersionsResult||{},Z=V.DeleteMarker||[];Z=s.isArray(Z)?Z:[Z];var re=V.Version||[];re=s.isArray(re)?re:[re];var me=s.clone(V);delete me.DeleteMarker,delete me.Version,s.extend(me,{DeleteMarkers:Z,Versions:re,statusCode:W.statusCode,headers:W.headers}),F(null,me)})}function Ot(I,F){if(this.options.ObjectKeySimplifyCheck){var L=s.simplifyPath(I.Key);if(L==="/"){F(s.error(new Error("The Getobject Key is illegal")));return}}var B=I.Query||{},W=I.QueryString||"",V=s.throttleOnProgress.call(this,0,I.onProgress),Z=I.tracker;Z&&Z.setParams({signStartTime:new Date().getTime()}),B["response-content-type"]=I.ResponseContentType,B["response-content-language"]=I.ResponseContentLanguage,B["response-expires"]=I.ResponseExpires,B["response-cache-control"]=I.ResponseCacheControl,B["response-content-disposition"]=I.ResponseContentDisposition,B["response-content-encoding"]=I.ResponseContentEncoding,Le.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,DataType:I.DataType,headers:I.Headers,qs:B,qsStr:W,rawBody:!0,onDownloadProgress:V,tracker:Z},function(re,me){if(V(null,!0),re){var Ve=re.statusCode;return I.Headers["If-Modified-Since"]&&Ve&&Ve===304?F(null,{NotModified:!0}):F(re)}F(null,{Body:me.body,ETag:s.attr(me.headers,"etag",""),statusCode:me.statusCode,headers:me.headers})})}function Sr(I,F){var L=this,B=I.ContentLength,W=s.throttleOnProgress.call(L,B,I.onProgress),V=I.Headers;!V["Cache-Control"]&&!V["cache-control"]&&(V["Cache-Control"]=""),!V["Content-Type"]&&!V["content-type"]&&(V["Content-Type"]=I.Body&&I.Body.type||"");var Z=I.UploadAddMetaMd5||L.options.UploadAddMetaMd5||L.options.UploadCheckContentMd5,re=I.tracker;Z&&re&&re.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(Z,I.Body,function(me){me&&(re&&re.setParams({md5EndTime:new Date().getTime()}),L.options.UploadCheckContentMd5&&(V["Content-MD5"]=s.b64(me)),(I.UploadAddMetaMd5||L.options.UploadAddMetaMd5)&&(V["x-cos-meta-md5"]=me)),I.ContentLength!==void 0&&(V["Content-Length"]=I.ContentLength),W(null,!0),Le.call(L,{Action:"name/cos:PutObject",TaskId:I.TaskId,method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,qs:I.Query,body:I.Body,onProgress:W,tracker:re},function(Ve,Ne){if(Ve)return W(null,!0),F(Ve);W({loaded:B,total:B},!0);var at=qr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:I.Bucket,region:L.options.UseAccelerate?"accelerate":I.Region,object:I.Key});at=at.substr(at.indexOf("://")+3),Ne.Location=at,Ne.ETag=s.attr(Ne.headers,"etag",""),F(null,Ne)})},I.onHashProgress)}function mn(I,F){Le.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,VersionId:I.VersionId,action:I.Recursive?"recursive":"",tracker:I.tracker},function(L,B){if(L){var W=L.statusCode;return W&&W===404?F(null,{BucketNotFound:!0,statusCode:W}):F(L)}F(null,{statusCode:B.statusCode,headers:B.headers})})}function ri(I,F){var L={};I.VersionId&&(L.versionId=I.VersionId),Le.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,qs:L,action:"acl",tracker:I.tracker},function(B,W){if(B)return F(B);var V=W.AccessControlPolicy||{},Z=V.Owner||{},re=V.AccessControlList&&V.AccessControlList.Grant||[];re=s.isArray(re)?re:[re];var me=ht(V);delete me.GrantWrite,W.headers&&W.headers["x-cos-acl"]&&(me.ACL=W.headers["x-cos-acl"]),me=s.extend(me,{Owner:Z,Grants:re,statusCode:W.statusCode,headers:W.headers}),F(null,me)})}function ni(I,F){var L=I.Headers,B="";if(I.AccessControlPolicy){var W=s.clone(I.AccessControlPolicy||{}),V=W.Grants||W.Grant;V=s.isArray(V)?V:[V],delete W.Grant,delete W.Grants,W.AccessControlList={Grant:V},B=s.json2xml({AccessControlPolicy:W}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(B))}s.each(L,function(Z,re){re.indexOf("x-cos-grant-")===0&&(L[re]=kn(L[re]))}),Le.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,action:"acl",headers:L,body:B,tracker:I.tracker},function(Z,re){if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function ii(I,F){var L=I.Headers;L.Origin=I.Origin,L["Access-Control-Request-Method"]=I.AccessControlRequestMethod,L["Access-Control-Request-Headers"]=I.AccessControlRequestHeaders,Le.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:L,tracker:I.tracker},function(B,W){if(B)return B.statusCode&&B.statusCode===403?F(null,{OptionsForbidden:!0,statusCode:B.statusCode}):F(B);var V=W.headers||{};F(null,{AccessControlAllowOrigin:V["access-control-allow-origin"],AccessControlAllowMethods:V["access-control-allow-methods"],AccessControlAllowHeaders:V["access-control-allow-headers"],AccessControlExposeHeaders:V["access-control-expose-headers"],AccessControlMaxAge:V["access-control-max-age"],statusCode:W.statusCode,headers:W.headers})})}function ae(I,F){var L=this,B=I.Headers;!B["Cache-Control"]&&!B["cache-control"]&&(B["Cache-Control"]="");var W=I.CopySource||"",V=s.getSourceParams.call(this,W);if(!V){F(s.error(new Error("CopySource format error")));return}var Z=V.Bucket,re=V.Region,me=decodeURIComponent(V.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Z,region:re,prefix:me},{action:"name/cos:PutObject",bucket:I.Bucket,region:I.Region,prefix:I.Key}],method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,headers:I.Headers,tracker:I.tracker},function(Ve,Ne){if(Ve)return F(Ve);var at=s.clone(Ne.CopyObjectResult||{}),Te=qr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:I.Bucket,region:I.Region,object:I.Key,isLocation:!0});s.extend(at,{Location:Te,statusCode:Ne.statusCode,headers:Ne.headers}),F(null,at)})}function ne(I,F){var L=I.CopySource||"",B=s.getSourceParams.call(this,L);if(!B){F(s.error(new Error("CopySource format error")));return}var W=B.Bucket,V=B.Region,Z=decodeURIComponent(B.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:W,region:V,prefix:Z},{action:"name/cos:PutObject",bucket:I.Bucket,region:I.Region,prefix:I.Key}],method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,qs:{partNumber:I.PartNumber,uploadId:I.UploadId},headers:I.Headers,tracker:I.tracker},function(re,me){if(re)return F(re);var Ve=s.clone(me.CopyPartResult||{});s.extend(Ve,{statusCode:me.statusCode,headers:me.headers}),F(null,Ve)})}function K(I,F){var L=I.Objects||[],B=I.Quiet;L=s.isArray(L)?L:[L];var W=s.json2xml({Delete:{Object:L,Quiet:B||!1}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W));var Z=s.map(L,function(re){return{action:"name/cos:DeleteObject",bucket:I.Bucket,region:I.Region,prefix:re.Key}});Le.call(this,{Scope:Z,method:"POST",Bucket:I.Bucket,Region:I.Region,body:W,action:"delete",headers:V,tracker:I.tracker},function(re,me){if(re)return F(re);var Ve=me.DeleteResult||{},Ne=Ve.Deleted||[],at=Ve.Error||[];Ne=s.isArray(Ne)?Ne:[Ne],at=s.isArray(at)?at:[at];var Te=s.clone(Ve);s.extend(Te,{Error:at,Deleted:Ne,statusCode:me.statusCode,headers:me.headers}),F(null,Te)})}function z(I,F){var L=I.Headers;if(!I.RestoreRequest){F(s.error(new Error("missing param RestoreRequest")));return}var B=I.RestoreRequest||{},W=s.json2xml({RestoreRequest:B});L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,body:W,action:"restore",headers:L,tracker:I.tracker},F)}function X(I,F){var L=I.Tagging||{},B=L.TagSet||L.Tags||I.Tags||[];B=s.clone(s.isArray(B)?B:[B]);var W=s.json2xml({Tagging:{TagSet:{Tag:B}}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:I.Bucket,Key:I.Key,Region:I.Region,body:W,action:"tagging",headers:V,VersionId:I.VersionId,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function J(I,F){Le.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:I.Key,Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"tagging",VersionId:I.VersionId,tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var W={Tags:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=[];try{V=B.Tagging.TagSet.Tag||[]}catch{}V=s.clone(s.isArray(V)?V:[V]),F(null,{Tags:V,statusCode:B.statusCode,headers:B.headers})})}function ue(I,F){Le.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"tagging",VersionId:I.VersionId,tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function pe(I,F){var L=I.SelectType;if(!L)return F(s.error(new Error("missing param SelectType")));var B=I.SelectRequest||{},W=s.json2xml({SelectRequest:B}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"select",qs:{"select-type":I.SelectType},VersionId:I.VersionId,body:W,DataType:"arraybuffer",rawBody:!0,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);var me=s.parseSelectPayload(re.body);F(null,{statusCode:re.statusCode,headers:re.headers,Body:me.body,Payload:me.payload})})}function Ee(I,F){var L=this,B=I.Headers,W=I.tracker;!B["Cache-Control"]&&!B["cache-control"]&&(B["Cache-Control"]=""),!B["Content-Type"]&&!B["content-type"]&&(B["Content-Type"]=I.Body&&I.Body.type||"");var V=I.Body&&(I.UploadAddMetaMd5||L.options.UploadAddMetaMd5);V&&W&&W.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(V,I.Body,function(Z){Z&&(I.Headers["x-cos-meta-md5"]=Z),V&&W&&W.setParams({md5EndTime:new Date().getTime()}),Le.call(L,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:I.Bucket,Region:I.Region,Key:I.Key,action:"uploads",headers:I.Headers,qs:I.Query,tracker:W},function(re,me){if(re)return W&&W.parent&&W.parent.setParams({errorNode:"multipartInit"}),F(re);if(me=s.clone(me||{}),me&&me.InitiateMultipartUploadResult)return F(null,s.extend(me.InitiateMultipartUploadResult,{statusCode:me.statusCode,headers:me.headers}));F(null,me)})},I.onHashProgress)}function we(I,F){var L=this;s.getFileSize("multipartUpload",I,function(){var B=I.tracker,W=L.options.UploadCheckContentMd5;W&&B&&B.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(W,I.Body,function(V){V&&(I.Headers["Content-MD5"]=s.b64(V)),W&&B&&B.setParams({md5EndTime:new Date().getTime()}),B&&B.setParams({partNumber:I.PartNumber}),Le.call(L,{Action:"name/cos:UploadPart",TaskId:I.TaskId,method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,qs:{partNumber:I.PartNumber,uploadId:I.UploadId},headers:I.Headers,onProgress:I.onProgress,body:I.Body||null,tracker:B},function(Z,re){if(Z)return B&&B.parent&&B.parent.setParams({errorNode:"multipartUpload"}),F(Z);F(null,{ETag:s.attr(re.headers,"etag",""),statusCode:re.statusCode,headers:re.headers})})})})}function Se(I,F){for(var L=this,B=I.UploadId,W=I.Parts,V=I.tracker,Z=0,re=W.length;Z-1?at(Ne.Authorization):"sign="+encodeURIComponent(Ne.Authorization)),Ne.SecurityToken&&(Te+="&x-cos-security-token="+Ne.SecurityToken),Ne.ClientIP&&(Te+="&clientIP="+Ne.ClientIP),Ne.ClientUA&&(Te+="&clientUA="+Ne.ClientUA),Ne.Token&&(Te+="&token="+Ne.Token),V&&(Te+="&"+V),setTimeout(function(){F(null,{Url:Te})})}});return me?(Z+="?"+me.Authorization+(me.SecurityToken?"&x-cos-security-token="+me.SecurityToken:""),V&&(Z+="&"+V)):V&&(Z+="?"+V),Z}function ht(I){var F={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},L={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},B=I&&I.AccessControlList||{},W=B.Grant;W&&(W=s.isArray(W)?W:[W]);var V={READ:0,WRITE:0,FULL_CONTROL:0};return W&&W.length&&s.each(W,function(Z){var re=Z.Grantee.URI&&Z.Grantee.URI.endsWith("/groups/global/AllUsers");Z.Grantee.ID==="qcs::cam::anyone:anyone"||re?V[Z.Permission]=1:Z.Grantee.ID!==I.Owner.ID&&F[L[Z.Permission]].push('id="'+Z.Grantee.ID+'"')}),V.FULL_CONTROL||V.WRITE&&V.READ?F.ACL="public-read-write":V.READ?F.ACL="public-read":F.ACL="private",s.each(L,function(Z){F[Z]=kn(F[Z].join(","))}),F}function kn(I){var F=I.split(","),L={},B,W;for(B=0;B"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:");V||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(F)>-1?V="{Region}.myqcloud.com":V="cos.{Region}.myqcloud.com",I.ForcePathStyle||(V="{Bucket}."+V)),V=V.replace(/\{\{AppId\}\}/gi,W).replace(/\{\{Bucket\}\}/gi,B).replace(/\{\{Region\}\}/gi,F).replace(/\{\{.*?\}\}/gi,""),V=V.replace(/\{AppId\}/gi,W).replace(/\{BucketName\}/gi,B).replace(/\{Bucket\}/gi,L).replace(/\{Region\}/gi,F).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(V)||(V=re+"//"+V),V.slice(-1)==="/"&&(V=V.slice(0,-1));var me=V;return I.ForcePathStyle&&(me+="/"+L),me+="/",Z&&(me+=s.camSafeUrlEncode(Z).replace(/%2F/g,"/")),I.isLocation&&(me=me.replace(/^https?:\/\//,"")),me}var Wa=function(F){if(!F.Bucket||!F.Region)return"";var L=F.UseAccelerate===void 0?this.options.UseAccelerate:F.UseAccelerate,B=F.Url||qr({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:F.Bucket,region:L?"accelerate":F.Region}),W=B.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return W};function xl(I,F){var L=s.clone(I.Headers),B="";s.each(L,function(St,tt){(St===""||["content-type","cache-control","expires"].indexOf(tt.toLowerCase())>-1)&&delete L[tt],tt.toLowerCase()==="host"&&(B=St)});var W=I.ForceSignHost!==!1;!B&&I.SignHost&&W&&(L.Host=I.SignHost);var V=!1,Z=function(tt,qe){V||(V=!0,qe&&qe.XCosSecurityToken&&!qe.SecurityToken&&(qe=s.clone(qe),qe.SecurityToken=qe.XCosSecurityToken,delete qe.XCosSecurityToken),F&&F(tt,qe))},re=this,me=I.Bucket||"",Ve=I.Region||"",Ne=I.Key||"";re.options.ForcePathStyle&&me&&(Ne=me+"/"+Ne);var at="/"+Ne,Te={},rt=I.Scope;if(!rt){var Ur=I.Action||"",tr=I.ResourceKey||I.Key||"";rt=I.Scope||[{action:Ur,bucket:me,region:Ve,prefix:tr}]}var Hr=s.md5(JSON.stringify(rt));re._StsCache=re._StsCache||[],function(){var St,tt;for(St=re._StsCache.length-1;St>=0;St--){tt=re._StsCache[St];var qe=Math.round(s.getSkewTime(re.options.SystemClockOffset)/1e3)+30;if(tt.StartTime&&qe=tt.ExpiredTime){re._StsCache.splice(St,1);continue}if(!tt.ScopeLimit||tt.ScopeLimit&&tt.ScopeKey===Hr){Te=tt;break}}}();var en=function(){var tt="";Te.StartTime&&I.Expires?tt=Te.StartTime+";"+(Te.StartTime+I.Expires*1):Te.StartTime&&Te.ExpiredTime&&(tt=Te.StartTime+";"+Te.ExpiredTime);var qe=s.getAuth({SecretId:Te.TmpSecretId,SecretKey:Te.TmpSecretKey,Method:I.Method,Pathname:at,Query:I.Query,Headers:L,Expires:I.Expires,UseRawKey:re.options.UseRawKey,SystemClockOffset:re.options.SystemClockOffset,KeyTime:tt,ForceSignHost:W}),wt={Authorization:qe,SecurityToken:Te.SecurityToken||Te.XCosSecurityToken||"",Token:Te.Token||"",ClientIP:Te.ClientIP||"",ClientUA:Te.ClientUA||"",SignFrom:"client"};Z(null,wt)},On=function(tt){if(tt.Authorization){var qe=!1,wt=tt.Authorization;if(wt)if(wt.indexOf(" ")>-1)qe=!1;else if(wt.indexOf("q-sign-algorithm=")>-1&&wt.indexOf("q-ak=")>-1&&wt.indexOf("q-sign-time=")>-1&&wt.indexOf("q-key-time=")>-1&&wt.indexOf("q-url-param-list=")>-1)qe=!0;else try{wt=atob(wt),wt.indexOf("a=")>-1&&wt.indexOf("k=")>-1&&wt.indexOf("t=")>-1&&wt.indexOf("r=")>-1&&wt.indexOf("b=")>-1&&(qe=!0)}catch{}if(!qe)return s.error(new Error("getAuthorization callback params format error"))}else{if(!tt.TmpSecretId)return s.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!tt.TmpSecretKey)return s.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!tt.SecurityToken&&!tt.XCosSecurityToken)return s.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!tt.ExpiredTime)return s.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(tt.ExpiredTime&&tt.ExpiredTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(tt.StartTime&&tt.StartTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Te.ExpiredTime&&Te.ExpiredTime-s.getSkewTime(re.options.SystemClockOffset)/1e3>60)en();else if(re.options.getAuthorization)re.options.getAuthorization.call(re,{Bucket:me,Region:Ve,Method:I.Method,Key:Ne,Pathname:at,Query:I.Query,Headers:L,Scope:rt,SystemClockOffset:re.options.SystemClockOffset,ForceSignHost:W},function(St){typeof St=="string"&&(St={Authorization:St});var tt=On(St);if(tt)return Z(tt);St.Authorization?Z(null,St):(Te=St||{},Te.Scope=rt,Te.ScopeKey=Hr,re._StsCache.push(Te),en())});else if(re.options.getSTS)re.options.getSTS.call(re,{Bucket:me,Region:Ve},function(St){Te=St||{},Te.Scope=rt,Te.ScopeKey=Hr,Te.TmpSecretId||(Te.TmpSecretId=Te.SecretId),Te.TmpSecretKey||(Te.TmpSecretKey=Te.SecretKey);var tt=On(Te);if(tt)return Z(tt);re._StsCache.push(Te),en()});else return function(){var St="";if(re.options.StartTime&&I.Expires){if(re.options.StartTime.toString().length!==10)return Z(s.error(new Error('params "StartTime" should be 10 digits')));St=re.options.StartTime+";"+(re.options.StartTime+I.Expires*1)}else if(re.options.StartTime&&re.options.ExpiredTime){if(re.options.StartTime.toString().length!==10)return Z(s.error(new Error('params "StartTime" should be 10 digits')));if(re.options.ExpiredTime.toString().length!==10)return Z(s.error(new Error('params "ExpiredTime" should be 10 digits')));St=re.options.StartTime+";"+re.options.ExpiredTime*1}var tt=s.getAuth({SecretId:I.SecretId||re.options.SecretId,SecretKey:I.SecretKey||re.options.SecretKey,Method:I.Method,Pathname:at,Query:I.Query,Headers:L,Expires:I.Expires,KeyTime:St,UseRawKey:re.options.UseRawKey,SystemClockOffset:re.options.SystemClockOffset,ForceSignHost:W}),qe={Authorization:tt,SecurityToken:re.options.SecurityToken||re.options.XCosSecurityToken,SignFrom:"client"};return Z(null,qe),qe}();return""}function cf(I){var F=this,L=!1,B=!1,W=!1,V=I.headers&&(I.headers.date||I.headers.Date)||I.error&&I.error.ServerTime;try{var Z=I.error.Code,re=I.error.Message;(Z==="RequestTimeTooSkewed"||Z==="AccessDenied"&&re==="Request has expired")&&(B=!0)}catch{}if(I)if(B&&V){var me=Date.parse(V);this.options.CorrectClockSkew&&Math.abs(s.getSkewTime(this.options.SystemClockOffset)-me)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=me-Date.now(),L=!0)}else Math.floor(I.statusCode/100)===5?L=!0:I.message==="CORS blocked or network error"&&(W=!0,L=F.options.AutoSwitchHost);return{canRetry:L,networkError:W}}function ff(I){var F=I.requestUrl,L=I.clientCalcSign,B=I.networkError;if(!this.options.AutoSwitchHost||!F||!L||!B)return!1;var W=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,V=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,Z=W.test(F)&&!V.test(F);return Z}function Le(I,F){var L=this;!I.headers&&(I.headers={}),!I.qs&&(I.qs={}),I.VersionId&&(I.qs.versionId=I.VersionId),I.qs=s.clearKey(I.qs),I.headers&&(I.headers=s.clearKey(I.headers)),I.qs&&(I.qs=s.clearKey(I.qs));var B=s.clone(I.qs);I.action&&(B[I.action]="");var W=I.url||I.Url,V=I.SignHost||Wa.call(this,{Bucket:I.Bucket,Region:I.Region,Url:W}),Z=I.tracker,re=function me(Ve){var Ne=L.options.SystemClockOffset;Z&&Z.setParams({signStartTime:new Date().getTime(),httpRetryTimes:Ve-1}),I.SwitchHost&&(V=V.replace(/myqcloud.com/,"tencentcos.cn")),xl.call(L,{Bucket:I.Bucket||"",Region:I.Region||"",Method:I.method,Key:I.Key,Query:B,Headers:I.headers,SignHost:V,Action:I.Action,ResourceKey:I.ResourceKey,Scope:I.Scope,ForceSignHost:L.options.ForceSignHost,SwitchHost:I.SwitchHost},function(at,Te){if(at){F(at);return}Z&&Z.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),I.AuthData=Te,df.call(L,I,function(rt,Ur){Z&&Z.setParams({httpEndTime:new Date().getTime()});var tr=!1,Hr=!1;if(rt){var en=cf.call(L,rt);tr=en.canRetry||Ne!==L.options.SystemClockOffset,Hr=en.networkError}if(rt&&Ve<2&&tr){I.headers&&(delete I.headers.Authorization,delete I.headers.token,delete I.headers.clientIP,delete I.headers.clientUA,I.headers["x-cos-security-token"]&&delete I.headers["x-cos-security-token"],I.headers["x-ci-security-token"]&&delete I.headers["x-ci-security-token"]);var On=ff.call(L,{requestUrl:(rt==null?void 0:rt.url)||"",clientCalcSign:Te.SignFrom==="client",networkError:Hr});I.SwitchHost=On,I.retry=!0,me(Ve+1)}else F(rt,Ur)})})};re(1)}function df(I,F){var L=this,B=I.TaskId;if(!(B&&!L._isRunningTask(B))){var W=I.Bucket,V=I.Region,Z=I.Key,re=I.method||"GET",me=I.Url||I.url,Ve=I.body,Ne=I.rawBody;L.options.UseAccelerate&&(V="accelerate"),me=me||qr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:W,region:V,object:Z}),I.SwitchHost&&(me=me.replace(/myqcloud.com/,"tencentcos.cn"));var at=Z?me:"";I.action&&(me=me+"?"+(s.isIOS_QQ?"".concat(I.action,"="):I.action)),I.qsStr&&(me.indexOf("?")>-1?me=me+"&"+I.qsStr:me=me+"?"+I.qsStr);var Te={method:re,url:me,headers:I.headers,qs:I.qs,body:Ve},rt="x-cos-security-token";if(s.isCIHost(me)&&(rt="x-ci-security-token"),Te.headers.Authorization=I.AuthData.Authorization,I.AuthData.Token&&(Te.headers.token=I.AuthData.Token),I.AuthData.ClientIP&&(Te.headers.clientIP=I.AuthData.ClientIP),I.AuthData.ClientUA&&(Te.headers.clientUA=I.AuthData.ClientUA),I.AuthData.SecurityToken&&(Te.headers[rt]=I.AuthData.SecurityToken),Te.headers&&(Te.headers=s.clearKey(Te.headers)),I.retry&&(Te.headers["x-cos-sdk-retry"]=!0),Te=s.clearKey(Te),I.onProgress&&typeof I.onProgress=="function"){var Ur=Ve&&(Ve.size||Ve.length)||0;Te.onProgress=function(qe){if(!(B&&!L._isRunningTask(B))){var wt=qe?qe.loaded:0;I.onProgress({loaded:wt,total:Ur})}}}I.onDownloadProgress&&(Te.onDownloadProgress=I.onDownloadProgress),I.DataType&&(Te.dataType=I.DataType),this.options.Timeout&&(Te.timeout=this.options.Timeout),L.options.ForcePathStyle&&(Te.pathStyle=L.options.ForcePathStyle),L.emit("before-send",Te);var tr=Te.url.includes("accelerate."),Hr=Te.qs?Object.keys(Te.qs).map(function(qe){return"".concat(qe,"=").concat(Te.qs[qe])}).join("&"):"",en=Hr?Te.url+"?"+Hr:Te.url;if(I.tracker){var On;I.tracker.setParams({url:en,httpMethod:Te.method,accelerate:tr,httpSize:((On=Te.body)===null||On===void 0?void 0:On.size)||0}),I.tracker.parent&&!I.tracker.parent.params.url&&I.tracker.parent.setParams({url:at,accelerate:tr})}var St=(L.options.Request||o)(Te,function(qe){if(!(qe&&qe.error==="abort")){var wt={options:Te,error:qe&&qe.error,statusCode:qe&&qe.statusCode||0,statusMessage:qe&&qe.statusMessage||"",headers:qe&&qe.headers||{},body:qe&&qe.body};L.emit("after-receive",wt);var hf=wt.error,Cl=wt.body,xi={statusCode:wt.statusCode,statusMessage:wt.statusMessage,headers:wt.headers},jp,aa=function(oa,Wt){if(B&&L.off("inner-kill-task",tt),!jp){jp=!0;var ja={};if(xi&&xi.statusCode&&(ja.statusCode=xi.statusCode),xi&&xi.headers&&(ja.headers=xi.headers),oa)Te.url&&(ja.url=Te.url),Te.method&&(ja.method=Te.method),oa=s.extend(oa||{},ja),F(oa,null);else{if(I.Action==="name/cos:PutObject"){var pf={};for(var Yp in I.headers){var fw=Yp.toLowerCase();pf[fw]=I.headers[Yp]}pf["x-cos-callback"]?Wt.Error?(Wt.CallbackError=s.clone(Wt.Error),delete Wt.Error):Wt.CallbackBody=s.clone(Wt):pf["x-cos-return-body"]&&(Wt.Error?(Wt.ReturnError=s.clone(Wt.Error),delete Wt.Error):Wt.ReturnBody=s.clone(Wt))}Wt=s.extend(Wt||{},ja),F(null,Wt)}St=null}};if(hf)return aa(s.error(hf));var wl=xi.statusCode,Kp=Math.floor(wl/100)===2;if(Ne){if(Kp)return aa(null,{body:Cl});if(Cl instanceof Blob){s.readAsBinaryString(Cl,function(Xp){var oa=s.parseResBody(Xp),Wt=oa.Error||oa;return aa(s.error(new Error(Wt.Message||"response body error"),{code:Wt.Code,error:Wt}))});return}}var vf=s.parseResBody(Cl),Tl=vf.Error||vf;Kp?aa(null,vf):Tl?aa(s.error(new Error(Tl.Message),{code:Tl.Code,error:Tl})):wl?aa(s.error(new Error(xi.statusMessage),{code:""+wl})):wl&&aa(s.error(new Error("statusCode error")))}}),tt=function qe(wt){wt.TaskId===B&&(St&&St.abort&&St.abort(),L.off("inner-kill-task",qe))};B&&L.on("inner-kill-task",tt)}}var Wp={getService:l,putBucket:u,headBucket:f,getBucket:c,deleteBucket:d,putBucketAcl:h,getBucketAcl:v,putBucketCors:p,getBucketCors:g,deleteBucketCors:m,getBucketLocation:y,getBucketPolicy:T,putBucketPolicy:S,deleteBucketPolicy:P,putBucketTagging:x,getBucketTagging:_,deleteBucketTagging:M,putBucketLifecycle:C,getBucketLifecycle:w,deleteBucketLifecycle:b,putBucketVersioning:E,getBucketVersioning:A,putBucketReplication:R,getBucketReplication:k,deleteBucketReplication:D,putBucketWebsite:O,getBucketWebsite:$,deleteBucketWebsite:U,putBucketReferer:q,getBucketReferer:H,putBucketDomain:N,getBucketDomain:G,deleteBucketDomain:j,putBucketOrigin:oe,getBucketOrigin:Y,deleteBucketOrigin:te,putBucketLogging:fe,getBucketLogging:ye,putBucketInventory:ce,postBucketInventory:ge,getBucketInventory:Ce,listBucketInventory:se,deleteBucketInventory:he,putBucketAccelerate:Ae,getBucketAccelerate:Re,putBucketEncryption:lt,getBucketEncryption:vt,deleteBucketEncryption:mt,getObject:Ot,headObject:Fe,listObjectVersions:Zt,putObject:Sr,deleteObject:mn,getObjectAcl:ri,putObjectAcl:ni,optionsObject:ii,putObjectCopy:ae,deleteMultipleObject:K,restoreObject:z,putObjectTagging:X,getObjectTagging:J,deleteObjectTagging:ue,selectObjectContent:pe,appendObject:er,uploadPartCopy:ne,multipartInit:Ee,multipartUpload:we,multipartComplete:Se,multipartList:Pe,multipartListPart:Oe,multipartAbort:He,request:ut,getObjectUrl:lr,getAuth:ai};function cw(I,F,L){s.each(["Cors","Acl"],function(B){if(I.slice(-B.length)===B){var W=I.slice(0,-B.length)+B.toUpperCase(),V=s.apiWrapper(I,F),Z=!1;L[W]=function(){!Z&&console.warn("warning: cos."+W+" has been deprecated. Please Use cos."+I+" instead."),Z=!0,V.apply(this,arguments)}}})}r.exports.init=function(I,F){F.transferToTaskMethod(Wp,"putObject"),s.each(Wp,function(L,B){I.prototype[B]=s.apiWrapper(B,L),cw(B,L,I.prototype)})}},"./src/cos.js":function(r,n,i){var a=i("./src/util.js"),o=i("./src/event.js"),s=i("./src/task.js"),l=i("./src/base.js"),u=i("./src/advance.js"),f=i("./package.json"),c={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},d=function(v){if(this.options=a.extend(a.clone(c),v||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),a.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");o.init(this),s.init(this)};l.init(d,s),u.init(d,s),d.util={md5:a.md5,xml2json:a.xml2json,json2xml:a.json2xml,encodeBase64:a.encodeBase64},d.getAuthorization=a.getAuth,d.version=f.version,r.exports=d},"./src/event.js":function(r,n){var i=function(s){var l={},u=function(c){return!l[c]&&(l[c]=[]),l[c]};s.on=function(f,c){f==="task-list-update"&&console.warn('warning: Event "'+f+'" has been deprecated. Please use "list-update" instead.'),u(f).push(c)},s.off=function(f,c){for(var d=u(f),h=d.length-1;h>=0;h--)c===d[h]&&d.splice(h,1)},s.emit=function(f,c){for(var d=u(f).map(function(v){return v}),h=0;h=0;y--){var S=l[y][2];(!S||S+s=0;S--){var T=l[S];T[0]===g&&T[1]===m&&l.splice(S,1)}l.unshift([g,m,Math.round(Date.now()/1e3)]),l.length>y&&l.splice(y),h()}},removeUploadId:function(g){d.call(this),delete v.using[g];for(var m=l.length-1;m>=0;m--)l[m][1]===g&&l.splice(m,1);h()}};r.exports=v},"./src/task.js":function(r,n,i){var a=i("./src/session.js"),o=i("./src/util.js"),s={},l=function(c,d){s[d]=c[d],c[d]=function(h,v){h.SkipTask?s[d].call(this,h,v):this._addTask(d,h,v)}},u=function(c){var d=[],h={},v=0,p=0,g=function(_){var M={id:_.id,Bucket:_.Bucket,Region:_.Region,Key:_.Key,FilePath:_.FilePath,state:_.state,loaded:_.loaded,size:_.size,speed:_.speed,percent:_.percent,hashPercent:_.hashPercent,error:_.error};return _.FilePath&&(M.FilePath=_.FilePath),_._custom&&(M._custom=_._custom),M},m=function(){var x,_=function(){x=0,c.emit("task-list-update",{list:o.map(d,g)}),c.emit("list-update",{list:o.map(d,g)})};return function(){x||(x=setTimeout(_))}}(),y=function(){if(!(d.length<=c.options.UploadQueueSize)){for(var _=0;_c.options.UploadQueueSize;){var M=d[_].state==="waiting"||d[_].state==="checking"||d[_].state==="uploading";!d[_]||!M?(h[d[_].id]&&delete h[d[_].id],d.splice(_,1),p--):_++}m()}},S=function x(){if(!(v>=c.options.FileParallelLimit)){for(;d[p]&&d[p].state!=="waiting";)p++;if(!(p>=d.length)){var _=d[p];p++,v++,_.state="checking",_.params.onTaskStart&&_.params.onTaskStart(g(_)),!_.params.UploadData&&(_.params.UploadData={});var M=o.formatParams(_.api,_.params);s[_.api].call(c,M,function(C,w){c._isRunningTask(_.id)&&((_.state==="checking"||_.state==="uploading")&&(_.state=C?"error":"success",C&&(_.error=C),v--,m(),x(),_.callback&&_.callback(C,w),_.state==="success"&&(_.params&&(delete _.params.UploadData,delete _.params.Body,delete _.params),delete _.callback)),y())}),m(),setTimeout(x)}}},T=function(_,M){var C=h[_];if(C){var w=C&&C.state==="waiting",b=C&&(C.state==="checking"||C.state==="uploading");if(M==="canceled"&&C.state!=="canceled"||M==="paused"&&w||M==="paused"&&b){C.state=M,c.emit("inner-kill-task",{TaskId:_,toState:M});try{var E=C&&C.params&&C.params.UploadData.UploadId}catch{}M==="canceled"&&E&&a.removeUsing(E),m(),b&&(v--,S()),M==="canceled"&&(C.params&&(delete C.params.UploadData,delete C.params.Body,delete C.params),delete C.callback)}y()}};c._addTasks=function(x){o.each(x,function(_){c._addTask(_.api,_.params,_.callback,!0)}),m()};var P=!0;c._addTask=function(x,_,M,C){_=o.formatParams(x,_);var w=o.uuid();_.TaskId=w,_.onTaskReady&&_.onTaskReady(w),_.TaskReady&&(_.TaskReady(w),P&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),P=!1);var b={params:_,callback:M,api:x,index:d.length,id:w,Bucket:_.Bucket,Region:_.Region,Key:_.Key,FilePath:_.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:_._custom},E=_.onHashProgress;_.onHashProgress=function(R){c._isRunningTask(b.id)&&(b.hashPercent=R.percent,E&&E(R),m())};var A=_.onProgress;return _.onProgress=function(R){c._isRunningTask(b.id)&&(b.state==="checking"&&(b.state="uploading"),b.loaded=R.loaded,b.speed=R.speed,b.percent=R.percent,A&&A(R),m())},o.getFileSize(x,_,function(R,k){if(R)return M(o.error(R));h[w]=b,d.push(b),b.size=k,!C&&m(),S(),y()}),w},c._isRunningTask=function(x){var _=h[x];return!!(_&&(_.state==="checking"||_.state==="uploading"))},c.getTaskList=function(){return o.map(d,g)},c.cancelTask=function(x){T(x,"canceled")},c.pauseTask=function(x){T(x,"paused")},c.restartTask=function(x){var _=h[x];_&&(_.state==="paused"||_.state==="error")&&(_.state="waiting",m(),p=Math.min(p,_.index),S())},c.isUploadRunning=function(){return v||p"u"?"undefined":s(navigator))==="object"){var M=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(M==null?void 0:M.type)||(M==null?void 0:M.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":s(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown os";var M=navigator.userAgent.toLowerCase(),C=/macintosh|mac os x/i.test(navigator.userAgent);return M.indexOf("win32")>=0||M.indexOf("wow32")>=0?"win32":M.indexOf("win64")>=0||M.indexOf("wow64")>=0?"win64":C?"mac":"unknown os"},isMobile:function(){var M=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isAndroid:function(){var M=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isIOS:function(){var M=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isOtherMobile:function(){return h&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown device";var M=navigator.userAgent;return M}},h=d.isMobile(),v=d.isAndroid()?"android":d.isIOS?"ios":"other_mobile",p=d.getOsType(),g=h?v:p,m=d.getUA(),y=d.getProtocol(),S=function(M){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(M)?"UploadTask":M==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(M)?"CopyTask":M};function T(_){return _.replace(/([A-Z])/g,"_$1").toLowerCase()}function P(_){var M={},C=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],w=[].concat(C,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),b=_.requestResult==="Success"?C:w;for(var E in _)if(b.includes(E)){var A=T(E);M[A]=_[E]}return M.request_name=_.realApi?S(_.realApi):_.requestName,M}var x=function(){function _(M){a(this,_);var C=M.parent,w=M.traceId,b=M.bucket,E=M.region,A=M.apiName,R=M.realApi,k=M.httpMethod,D=M.fileKey,O=M.fileSize,$=M.accelerate,U=M.customId,q=M.delay,H=M.deepTracker,N=M.Beacon,G=M.clsReporter,j=b&&b.substr(b.lastIndexOf("-")+1)||"";this.parent=C,this.deepTracker=H,this.delay=q,G&&!this.clsReporter&&(this.clsReporter=G),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:l.version,osName:g,networkType:"",requestName:A||"",requestResult:"",realApi:R,bucket:b,region:E,accelerate:$,httpMethod:k,url:"",host:"",httpDomain:"",requestPath:D||"",userAgent:m,networkProtocol:y,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:O||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:w||d.getUid(),appid:j,partNumber:0,httpRetryTimes:0,customId:U||"",partTime:0},N&&(this.beacon=f(N,q))}return o(_,[{key:"formatResult",value:function(C,w){var b,E,A,R,k,D,O=new Date().getTime(),$=d.getNetType(),U=C?(C==null?void 0:C.code)||(C==null||(b=C.error)===null||b===void 0?void 0:b.code)||(C==null||(E=C.error)===null||E===void 0?void 0:E.Code):"",q=C?(C==null?void 0:C.message)||(C==null||(A=C.error)===null||A===void 0?void 0:A.message)||(C==null||(R=C.error)===null||R===void 0?void 0:R.Message):"",H=q,N=C?(C==null?void 0:C.resource)||(C==null||(k=C.error)===null||k===void 0?void 0:k.resource)||(C==null||(D=C.error)===null||D===void 0?void 0:D.Resource):"",G=C?C==null?void 0:C.statusCode:w.statusCode,j=C?(C==null?void 0:C.headers)&&(C==null?void 0:C.headers["x-cos-request-id"]):(w==null?void 0:w.headers)&&(w==null?void 0:w.headers["x-cos-request-id"]),oe=C?j?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=w?w.headers&&w.headers["content-length"]:0);var Y=this.params.realApi==="sliceUploadFile",te=this.params.realApi==="sliceCopyFile";if(Y||te){var fe=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:fe<0?0:fe.toFixed(3)})}else{var ye=O-this.params.startTime,xe=this.params.httpEndTime-this.params.httpStartTime,ce=this.params.httpSize/1024/(xe/1e3),ge=this.params.md5EndTime-this.params.md5StartTime,Ce=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",c(xe)),this.parent.addParamValue("httpFullTime",c(ye)),this.parent.addParamValue("httpMd5",c(ge)),this.parent.addParamValue("httpSign",c(Ce)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",c(xe))),Object.assign(this.params,{httpFullTime:c(ye),httpMd5:c(ge),httpSign:c(Ce),httpTookTime:c(xe),httpSpeed:ce<0?0:ce.toFixed(3)})}if(Object.assign(this.params,{networkType:$,requestResult:C?"Failure":"Success",errorType:oe,errorCode:U,errorHttpCode:G,errorName:H,errorMessage:q,errorServiceName:N,errorRequestId:j}),C&&(!U||!q)&&(this.params.fullError=C?JSON.stringify(C):""),this.params.url){try{var se=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=se[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(C,w){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(C,w);var b=P(this.params);this.beacon&&this.sendEventsToBeacon(b),this.clsReporter&&this.sendEventsToCLS(b)}}},{key:"setParams",value:function(C){Object.assign(this.params,C)}},{key:"addParamValue",value:function(C,w){this.params[C]=(+this.params[C]+ +w).toFixed(3)}},{key:"sendEventsToBeacon",value:function(C){var w=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(w&&!this.deepTracker)){var b="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(b,C):this.beacon&&this.beacon.onUserAction(b,C)}}},{key:"sendEventsToCLS",value:function(C){var w=this.delay===0;this.clsReporter.log(C,w)}},{key:"generateSubTracker",value:function(C){return Object.assign(C,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new _(C)}}]),_}();r.exports=x},"./src/util.js":function(r,n,i){(function(a){var o=i("./node_modules/@babel/runtime/helpers/typeof.js");function s(K,z){var X=typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(!X){if(Array.isArray(K)||(X=l(K))||z){X&&(K=X);var J=0,ue=function(){};return{s:ue,n:function(){return J>=K.length?{done:!0}:{done:!1,value:K[J++]}},e:function(Pe){throw Pe},f:ue}}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 pe=!0,Ee=!1,we;return{s:function(){X=X.call(K)},n:function(){var Pe=X.next();return pe=Pe.done,Pe},e:function(Pe){Ee=!0,we=Pe},f:function(){try{!pe&&X.return!=null&&X.return()}finally{if(Ee)throw we}}}}function l(K,z){if(K){if(typeof K=="string")return u(K,z);var X=Object.prototype.toString.call(K).slice(8,-1);if(X==="Object"&&K.constructor&&(X=K.constructor.name),X==="Map"||X==="Set")return Array.from(K);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return u(K,z)}}function u(K,z){(z==null||z>K.length)&&(z=K.length);for(var X=0,J=new Array(z);Xpe?1:-1})}var _=function(z,X){var J,ue,pe,Ee=[],we=x(z);for(J=0;J-1||M.indexOf(ue)>-1)&&(X[J]=z[J])}return X},w=function(z){z=z||{};var X=z.SecretId,J=z.SecretKey,ue=z.KeyTime,pe=(z.method||z.Method||"get").toLowerCase(),Ee=G(z.Query||z.params||{}),we=C(G(z.Headers||z.headers||{})),Se=z.Key||"",Pe;z.UseRawKey?Pe=z.Pathname||z.pathname||"/"+Se:(Pe=z.Pathname||z.pathname||Se,Pe.indexOf("/")!==0&&(Pe="/"+Pe));var Oe=z.ForceSignHost!==!1;if(!we.Host&&!we.host&&z.Bucket&&z.Region&&Oe&&(we.Host=z.Bucket+".cos."+z.Region+".myqcloud.com"),!X)throw new Error("missing param SecretId");if(!J)throw new Error("missing param SecretKey");var He=Math.round(vt(z.SystemClockOffset)/1e3)-1,ut=He,er=z.Expires||z.expires;er===void 0?ut+=900:ut+=er*1||0;var ai="sha1",lr=X,ht=ue||He+";"+ut,kn=ue||He+";"+ut,qr=x(we,!0).join(";").toLowerCase(),Wa=x(Ee,!0).join(";").toLowerCase(),xl=c.HmacSHA1(kn,J).toString(),cf=[pe,Pe,ne.obj2str(Ee,!0),ne.obj2str(we,!0),""].join(` `),ff=["sha1",ht,c.SHA1(cf).toString(),""].join(` `),Le=c.HmacSHA1(ff,xl).toString(),df=["q-sign-algorithm="+ai,"q-ak="+lr,"q-sign-time="+ht,"q-key-time="+kn,"q-header-list="+qr,"q-url-param-list="+Wa,"q-signature="+Le].join("&");return df},b=function(z,X,J){var ue=X/8,pe=z.slice(J,J+ue);return new Uint8Array(pe).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[X](pe)[0]},E=function(z,X,J,ue){var pe=z.slice(X,J),Ee="";return new Uint8Array(pe).forEach(function(we){Ee+=String.fromCharCode(we)}),ue&&(Ee=decodeURIComponent(escape(Ee))),Ee},A=function(z){for(var X={},J=E(z),ue={records:[]};z.byteLength;){var pe=b(z,32,0),Ee=b(z,32,4),we=pe-Ee-16,Se=0,Pe;for(z=z.slice(12);SeparseInt(ue[pe])?1:-1;return 0},z=function(J){if(!J)return!1;var ue=(J.match(/Chrome\/([.\d]+)/)||[])[1],pe=(J.match(/QBCore\/([.\d]+)/)||[])[1],Ee=(J.match(/QQBrowser\/([.\d]+)/)||[])[1],we=ue&&K(ue,"53.0.2785.116")<0&&pe&&K(pe,"3.53.991.400")<0&&Ee&&K(Ee,"9.0.2524.400")<=0||!1;return we};return z(typeof navigator<"u"&&navigator.userAgent)}(),U=function(z,X,J,ue,pe){var Ee;if(z.slice?Ee=z.slice(X,J):z.mozSlice?Ee=z.mozSlice(X,J):z.webkitSlice&&(Ee=z.webkitSlice(X,J)),ue&&$){var we=new FileReader;we.onload=function(Se){Ee=null,pe(new Blob([we.result]))},we.readAsArrayBuffer(Ee)}else pe(Ee)},q=function(z,X,J,ue){J=J||k,z?typeof X=="string"?J(ne.md5(X,!0)):Blob&&X instanceof Blob?ne.getFileMd5(X,function(pe,Ee){J(Ee)},ue):J():J()},H=1024*1024,N=function(z,X,J){var ue=z.size,pe=0,Ee=f.getCtx(),we=function Se(Pe){if(Pe>=ue){var Oe=Ee.digest("hex");X(null,Oe);return}var He=Math.min(ue,Pe+H);ne.fileSlice(z,Pe,He,!1,function(ut){O(ut,function(er){ut=null,Ee=Ee.update(er,!0),pe+=er.length,er=null,J&&J({loaded:pe,total:ue,percent:Math.round(pe/ue*1e4)/1e4}),Se(Pe+H)})})};we(0)};function G(K){return xe(K,function(z){return o(z)==="object"&&z!==null?G(z):z})}function j(K,z,X){return K&&z in K?K[z]:X}function oe(K,z){return ye(z,function(X,J){K[J]=z[J]}),K}function Y(K){return K instanceof Array}function te(K,z){for(var X=!1,J=0;J-1,Se=!Ee||typeof Ee=="string"&&Ee.indexOf("{Region}")>-1;if(z.indexOf("Bucket")>-1||z==="deleteMultipleObject"||z==="multipartList"||z==="listObjectVersions"){if(we&&!J)return"Bucket";if(Se&&!ue)return"Region"}else if(z.indexOf("Object")>-1||z.indexOf("multipart")>-1||z==="sliceUploadFile"||z==="abortUploadTask"||z==="uploadFile"){if(we&&!J)return"Bucket";if(Se&&!ue)return"Region";if(!pe)return"Key"}return!1},he=function(z,X){if(X=oe({},X),z!=="getAuth"&&z!=="getV4Auth"&&z!=="getObjectUrl"){var J=X.Headers||{};if(X&&o(X)==="object"){(function(){for(var pe in X)X.hasOwnProperty(pe)&&pe.indexOf("x-cos-")>-1&&(J[pe]=X[pe])})();var ue={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};ne.each(ue,function(pe,Ee){X[pe]!==void 0&&(J[Ee]=X[pe])}),X.Headers=D(J)}}return X},Ae=function(z,X){return function(J,ue){var pe=this;typeof J=="function"&&(ue=J,J={}),J=he(z,J);var Ee;if(pe.options.EnableReporter)if(J.calledBySdk==="sliceUploadFile"||J.calledBySdk==="sliceCopyFile")Ee=J.tracker&&J.tracker.generateSubTracker({apiName:z});else if(["uploadFile","uploadFiles"].includes(z))Ee=null;else{var we=0;J.Body&&(we=typeof J.Body=="string"?J.Body.length:J.Body.size||J.Body.byteLength||0);var Se=pe.options.UseAccelerate||typeof pe.options.Domain=="string"&&pe.options.Domain.includes("accelerate.");Ee=new y({Beacon:pe.options.BeaconReporter,clsReporter:pe.options.ClsReporter,bucket:J.Bucket,region:J.Region,apiName:z,realApi:z,accelerate:Se,fileKey:J.Key,fileSize:we,deepTracker:pe.options.DeepTracker,customId:pe.options.CustomId,delay:pe.options.TrackerDelay})}J.tracker=Ee;var Pe=function(ht){return ht&&ht.headers&&(ht.headers["x-cos-request-id"]&&(ht.RequestId=ht.headers["x-cos-request-id"]),ht.headers["x-ci-request-id"]&&(ht.RequestId=ht.headers["x-ci-request-id"]),ht.headers["x-cos-version-id"]&&(ht.VersionId=ht.headers["x-cos-version-id"]),ht.headers["x-cos-delete-marker"]&&(ht.DeleteMarker=ht.headers["x-cos-delete-marker"])),ht},Oe=function(ht,kn){Ee&&Ee.report(ht,kn),ue&&ue(Pe(ht),Pe(kn))},He=function(){if(z!=="getService"&&z!=="abortUploadTask"){var ht=se.call(pe,z,J);if(ht)return"missing param "+ht;if(J.Region){if(pe.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(J.Region))return"Region format error."}else{if(J.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(J.Region))return"Region format error."}!pe.options.CompatibilityMode&&J.Region.indexOf("-")===-1&&J.Region!=="yfb"&&J.Region!=="default"&&J.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(J.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(J.Bucket))if(J.AppId)J.Bucket=J.Bucket+"-"+J.AppId;else if(pe.options.AppId)J.Bucket=J.Bucket+"-"+pe.options.AppId;else return'Bucket should format as "test-1250000000".';J.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete J.AppId)}!pe.options.UseRawKey&&J.Key&&J.Key.substr(0,1)==="/"&&(J.Key=J.Key.substr(1))}},ut=He(),er=["getAuth","getObjectUrl"].includes(z);if(typeof Promise=="function"&&!er&&!ue)return new Promise(function(lr,ht){if(ue=function(qr,Wa){qr?ht(qr):lr(Wa)},ut)return Oe(ne.error(new Error(ut)));X.call(pe,J,Oe)});if(ut)return Oe(ne.error(new Error(ut)));var ai=X.call(pe,J,Oe);if(er)return ai}},Re=function(z,X){var J=this,ue=0,pe=0,Ee=Date.now(),we,Se;function Pe(){if(Se=0,X&&typeof X=="function"){we=Date.now();var Oe=Math.max(0,Math.round((pe-ue)/((we-Ee)/1e3)*100)/100)||0,He;pe===0&&z===0?He=1:He=Math.floor(pe/z*100)/100||0,Ee=we,ue=pe;try{X({loaded:pe,total:z,speed:Oe,percent:He})}catch{}}}return function(Oe,He){if(Oe&&(pe=Oe.loaded,z=Oe.total),He)clearTimeout(Se),Pe();else{if(Se)return;Se=setTimeout(Pe,J.options.ProgressInterval)}}},lt=function(z,X,J){var ue;if(typeof X.Body=="string"?X.Body=new Blob([X.Body],{type:"text/plain"}):X.Body instanceof ArrayBuffer&&(X.Body=new Blob([X.Body])),X.Body&&(X.Body instanceof Blob||X.Body.toString()==="[object File]"||X.Body.toString()==="[object Blob]"))ue=X.Body.size;else{J(ne.error(new Error("params body format error, Only allow File|Blob|String.")));return}X.ContentLength=ue,J(null,ue)},vt=function(z){return Date.now()+(z||0)},mt=function(z,X){var J=z;return z.message=z.message||null,typeof X=="string"?(z.error=X,z.message=X):o(X)==="object"&&X!==null&&(oe(z,X),(X.code||X.name)&&(z.code=X.code||X.name),X.message&&(z.message=X.message),X.stack&&(z.stack=X.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(z,"name",{writable:!0,enumerable:!1}),Object.defineProperty(z,"message",{enumerable:!0})),z.name=X&&X.name||z.name||z.code||"Error",z.code||(z.code=z.name),z.error||(z.error=G(J)),z},Fe=function(){return(typeof globalThis>"u"?"undefined":o(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Zt=function(){return(typeof window>"u"?"undefined":o(window))!=="object"&&(typeof a>"u"?"undefined":o(a))==="object"&&!0&&!Fe()},Ot=function(z){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(z)},Sr=function(){if((typeof navigator>"u"?"undefined":o(navigator))!=="object")return!1;var K=navigator.userAgent,z=!!K.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return z}(),mn=function(){return(typeof navigator>"u"?"undefined":o(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),ri=function(z,X){var J=m.encode(z);return X&&(J=J.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),J},ni=function(z){return z?m.decode(z):""},ii=function(z){var X=z.split("/"),J=[],ue=s(X),pe;try{for(ue.s();!(pe=ue.n()).done;){var Ee=pe.value;Ee===".."?J.length&&J.pop():Ee.length&&Ee!=="."&&J.push(Ee)}}catch(we){ue.e(we)}finally{ue.f()}return"/"+J.join("/")},ae=function(z){var X;if(z&&typeof z=="string"){var J=z.trim(),ue=J.indexOf("<")===0,pe=J.indexOf("{")===0;if(ue)X=ne.xml2json(z)||{};else if(pe)try{var Ee=z.replace(/\n/g," "),we=JSON.parse(Ee);Object.prototype.toString.call(we)==="[object Object]"?X=we:X=z}catch{X=z}else X=z}else X=z||{};return X},ne={noop:k,formatParams:he,apiWrapper:Ae,xml2json:S,json2xml:T,md5:f,clearKey:D,fileSlice:U,getBodyMd5:q,getFileMd5:N,b64:ge,extend:oe,isArray:Y,isInArray:te,makeArray:fe,each:ye,map:xe,filter:ce,clone:G,attr:j,uuid:Ce,camSafeUrlEncode:P,throttleOnProgress:Re,getFileSize:lt,getSkewTime:vt,error:mt,obj2str:_,getAuth:w,parseSelectPayload:A,getSourceParams:R,isBrowser:!0,isNode:Zt,isCIHost:Ot,isIOS_QQ:Sr&&mn,encodeBase64:ri,decodeBase64:ni,simplifyPath:ii,readAsBinaryString:O,parseResBody:ae};r.exports=ne}).call(this,i("./node_modules/process/browser.js"))}})})})(y1);var P_=y1.exports;const M_=Tc(P_),S1="daya-online-1303457149",ug="tencent";async function cg(t,e,r,n=!0,i){i||(i={isLoading:!0}),i.isLoading&&ui.loading(!0,i.text||"资源上传中"),n&&(t=L_(t));const a=await R_(t,r);if(a.code===200)try{const o=await D_(a.data.signature,{fileName:t,file:e,filePath:r});return i.isLoading&&ui.loading(!1),o.statusCode===200?o.Location.includes("http")?o.Location:`https://${o.Location}`:Promise.reject("")}catch{return i.isLoading&&ui.loading(!1),Promise.reject("")}else return i.isLoading&&ui.loading(!1),Promise.reject("")}const R_=async(t,e)=>{const r=`pptList/${e||"errPath/"}`+t;return EI(PI,{postData:{key:r},pluginName:ug,bucketName:S1,filename:r},{pluginName:ug})},D_=(t,e)=>new M_({Domain:"https://oss.dayaedu.com",Protocol:"https",getAuthorization:async(n,i)=>{i({Authorization:t})}}).uploadFile({Bucket:S1,Region:"ap-nanjing",Key:`pptList/${e.filePath||"errPath/"}${e.fileName}`,Body:e.file,SliceSize:1024*1024*500,onProgress:function(n){}});function L_(t){const e=t.lastIndexOf("."),r=t.substring(0,e),n=t.substring(e);return`${r}_${Date.now()}${n}`}function k_(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),e&&(n.href=e),i.href=t,i.href}const O_=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function vi(t){const e=[];for(let r=0,n=t.length;rVr||t.height>Vr)&&(t.width>Vr&&t.height>Vr?t.width>t.height?(t.height*=Vr/t.width,t.width=Vr):(t.width*=Vr/t.height,t.height=Vr):t.width>Vr?(t.height*=Vr/t.width,t.width=Vr):(t.width*=Vr/t.height,t.height=Vr))}function z_(t,e={}){return t.toBlob?new Promise(r=>{t.toBlob(r,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(r=>{const n=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=n.length,a=new Uint8Array(i);for(let o=0;o{const n=new Image;n.decode=()=>e(n),n.onload=()=>e(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=t})}async function U_(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function H_(t,e,r){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),a=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${e} ${r}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(t),U_(i)}const kr=(t,e)=>{if(t instanceof e)return!0;const r=Object.getPrototypeOf(t);return r===null?!1:r.constructor.name===e.name||kr(r,e)};function V_(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function G_(t){return vi(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function W_(t,e,r){const n=`.${t}:${e}`,i=r.cssText?V_(r):G_(r);return document.createTextNode(`${n}{${i}}`)}function fg(t,e,r){const n=window.getComputedStyle(t,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const a=O_();try{e.className=`${e.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(W_(a,r,n)),e.appendChild(o)}function j_(t,e){fg(t,e,":before"),fg(t,e,":after")}const dg="application/font-woff",hg="image/jpeg",K_={woff:dg,woff2:dg,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:hg,jpeg:hg,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function X_(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function Ev(t){const e=X_(t).toLowerCase();return K_[e]||""}function Y_(t){return t.split(/,/)[1]}function uh(t){return t.search(/^(data:)/)!==-1}function Z_(t,e){return`data:${e};base64,${t}`}async function x1(t,e,r){const n=await fetch(t,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const i=await n.blob();return new Promise((a,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{a(r({res:n,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(i)})}const If={};function Q_(t,e,r){let n=t.replace(/\?.*/,"");return r&&(n=t),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function Pv(t,e,r){const n=Q_(t,e,r.includeQueryParams);if(If[n]!=null)return If[n];r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{const a=await x1(t,r.fetchRequestInit,({res:o,result:s})=>(e||(e=o.headers.get("Content-Type")||""),Y_(s)));i=Z_(a,e)}catch(a){i=r.imagePlaceholder||"";let o=`Failed to fetch resource: ${t}`;a&&(o=typeof a=="string"?a:a.message),o&&console.warn(o)}return If[n]=i,i}async function J_(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):Gu(e)}async function q_(t,e){if(t.currentSrc){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=t.clientWidth,a.height=t.clientHeight,o==null||o.drawImage(t,0,0,a.width,a.height);const s=a.toDataURL();return Gu(s)}const r=t.poster,n=Ev(r),i=await Pv(r,n,e);return Gu(i)}async function eA(t){var e;try{if(!((e=t==null?void 0:t.contentDocument)===null||e===void 0)&&e.body)return await _c(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)}async function tA(t,e){return kr(t,HTMLCanvasElement)?J_(t):kr(t,HTMLVideoElement)?q_(t,e):kr(t,HTMLIFrameElement)?eA(t):t.cloneNode(!1)}const rA=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function nA(t,e,r){var n,i;let a=[];return rA(t)&&t.assignedNodes?a=vi(t.assignedNodes()):kr(t,HTMLIFrameElement)&&(!((n=t.contentDocument)===null||n===void 0)&&n.body)?a=vi(t.contentDocument.body.childNodes):a=vi(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),a.length===0||kr(t,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>_c(s,r)).then(l=>{l&&e.appendChild(l)}),Promise.resolve()),e}function iA(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):vi(n).forEach(i=>{let a=n.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),kr(t,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&e.getAttribute("d")&&(a=`path(${e.getAttribute("d")})`),r.setProperty(i,a,n.getPropertyPriority(i))})}function aA(t,e){kr(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),kr(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function oA(t,e){if(kr(t,HTMLSelectElement)){const r=e,n=Array.from(r.children).find(i=>t.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function sA(t,e){return kr(e,Element)&&(iA(t,e),j_(t,e),aA(t,e),oA(t,e)),e}async function lA(t,e){const r=t.querySelectorAll?t.querySelectorAll("use"):[];if(r.length===0)return t;const n={};for(let a=0;atA(n,e)).then(n=>nA(t,n,e)).then(n=>sA(t,n)).then(n=>lA(n,e))}const C1=/url\((['"]?)([^'"]+?)\1\)/g,uA=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,cA=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function fA(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function dA(t){const e=[];return t.replace(C1,(r,n,i)=>(e.push(i),r)),e.filter(r=>!uh(r))}async function hA(t,e,r,n,i){try{const a=r?k_(e,r):e,o=Ev(e);let s;return i||(s=await Pv(a,o,n)),t.replace(fA(e),`$1${s}$3`)}catch{}return t}function vA(t,{preferredFontFormat:e}){return e?t.replace(cA,r=>{for(;;){const[n,,i]=uA.exec(r)||[];if(!i)return"";if(i===e)return`src: ${n};`}}):t}function w1(t){return t.search(C1)!==-1}async function T1(t,e,r){if(!w1(t))return t;const n=vA(t,r);return dA(n).reduce((a,o)=>a.then(s=>hA(s,o,e,r)),Promise.resolve(n))}async function Al(t,e,r){var n;const i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(t);if(i){const a=await T1(i,null,r);return e.style.setProperty(t,a,e.style.getPropertyPriority(t)),!0}return!1}async function pA(t,e){await Al("background",t,e)||await Al("background-image",t,e),await Al("mask",t,e)||await Al("mask-image",t,e)}async function gA(t,e){const r=kr(t,HTMLImageElement);if(!(r&&!uh(t.src))&&!(kr(t,SVGImageElement)&&!uh(t.href.baseVal)))return;const n=r?t.src:t.href.baseVal,i=await Pv(n,Ev(n),e);await new Promise((a,o)=>{t.onload=a,t.onerror=o;const s=t;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),r?(t.srcset="",t.src=i):t.href.baseVal=i})}async function mA(t,e){const n=vi(t.childNodes).map(i=>I1(i,e));await Promise.all(n).then(()=>t)}async function I1(t,e){kr(t,Element)&&(await pA(t,e),await gA(t,e),await mA(t,e))}function yA(t,e){const{style:r}=t;e.backgroundColor&&(r.backgroundColor=e.backgroundColor),e.width&&(r.width=`${e.width}px`),e.height&&(r.height=`${e.height}px`);const n=e.style;return n!=null&&Object.keys(n).forEach(i=>{r[i]=n[i]}),t}const vg={};async function pg(t){let e=vg[t];if(e!=null)return e;const n=await(await fetch(t)).text();return e={url:t,cssText:n},vg[t]=e,e}async function gg(t,e){let r=t.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,a=(r.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(n,"$1");return s.startsWith("https://")||(s=new URL(s,t.url).href),x1(s,e.fetchRequestInit,({result:l})=>(r=r.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>r)}function mg(t){if(t==null)return[];const e=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=t.replace(r,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(n);if(l===null)break;e.push(l[0])}n=n.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=a.exec(n);if(l===null){if(l=s.exec(n),l===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;e.push(l[0])}return e}async function SA(t,e){const r=[],n=[];return t.forEach(i=>{if("cssRules"in i)try{vi(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,u=pg(l).then(f=>gg(f,e)).then(f=>mg(f).forEach(c=>{try{i.insertRule(c,c.startsWith("@import")?s+=1:i.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:c,error:d})}})).catch(f=>{console.error("Error loading remote css",f.toString())});n.push(u)}})}catch(a){const o=t.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&n.push(pg(i.href).then(s=>gg(s,e)).then(s=>mg(s).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(n).then(()=>(t.forEach(i=>{if("cssRules"in i)try{vi(i.cssRules||[]).forEach(a=>{r.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),r))}function bA(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>w1(e.style.getPropertyValue("src")))}async function xA(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=vi(t.ownerDocument.styleSheets),n=await SA(r,e);return bA(n)}async function CA(t,e){const r=await xA(t,e);return(await Promise.all(r.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return T1(i.cssText,a,e)}))).join(` `)}async function wA(t,e){const r=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await CA(t,e);if(r){const n=document.createElement("style"),i=document.createTextNode(r);n.appendChild(i),t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}}async function TA(t,e={}){const{width:r,height:n}=b1(t,e),i=await _c(t,e,!0);return await wA(i,e),await I1(i,e),yA(i,e),await H_(i,r,n)}async function IA(t,e={}){const{width:r,height:n}=b1(t,e),i=await TA(t,e),a=await Gu(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=e.pixelRatio||F_(),u=e.canvasWidth||r,f=e.canvasHeight||n;return o.width=u*l,o.height=f*l,e.skipAutoScale||$_(o),o.style.width=`${u}`,o.style.height=`${f}`,e.backgroundColor&&(s.fillStyle=e.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function _A(t,e={}){const r=await IA(t,e);return await z_(r)}const AA=MI("pptWork",{state:()=>({id:DI().query.id,coverImg:"",jsonUrl:"",isSave:!1}),actions:{async initPPTData(){if(this.id){ui.loading(!0,"资源加载中,请稍等...");const t=await Zp(C_,this.id,di.pptResourcesType);if(t.code===200){const{dataJson:e,chapterLessonCoursewareName:r}=t.data||{},{coverImg:n,jsonUrl:i}=JSON.parse(e);if(this.coverImg=n||"",kt().setTitle(r),i){const o=await I_(i);o.code===200&&__(o.data)}}else LI.replace("/err");ui.loading(!1)}},async updatePPT(){ui.loading(!0,"课件保存中,请稍等..."),await this.updateCoverImg();const{blob:t}=A_();cg(`${this.id}ppt`,t,`${this.id}/`,!1,{isLoading:!1}).then(e=>{const r=Date.now();Zp(di.fromType==="PLATFORM"?T_:w_,{id:this.id,dataJson:JSON.stringify({coverImg:this.coverImg+`?v=_${r}`,jsonUrl:e+`?v=_${r}`})}).then(n=>{n.code===200&&(this.isSave=!0,Qp({showClose:!0,message:"保存成功!",type:"success"})),ui.loading(!1)})}).catch(()=>{ui.loading(!1),Qp({showClose:!0,message:"保存失败!",type:"error"})})},async updateCoverImg(){try{const t=document.querySelector("#thumbnailSlide_0");if(t){const e=await _A(t,{pixelRatio:3});if(e){const r=await cg(`${this.id}coverImg`,e,`${this.id}/`,!1,{isLoading:!1});r&&(this.coverImg=r)}}}catch(t){console.log(t,"上传coverImg错误")}}}}),Y6=()=>AA(RI),Mv=()=>{const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},_1=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},ch=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),Ac=()=>{const t=Ic(),e=kt(),r=()=>{Mv(),t.setScreening(!0)};return{enterScreening:r,enterScreeningFromStart:()=>{e.updateSlideIndex(0),r()},exitScreening:()=>{t.setScreening(!1),ch()&&_1()}}},EA=ze({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1},offsetOne:{default:0},offset:{default:8}},emits:["update:value"],setup(t,{emit:e}){const r=t,n=e,i=de(),a=de(),o=de(),s=de(!1),l=_e(()=>r.contentStyle||{});return gr(()=>r.value,()=>{i.value&&(r.value?i.value.show():i.value.hide())}),hn(()=>{i.value&&i.value.destroy()}),_r(()=>{i.value=kI(a.value,{content:o.value,allowHTML:!0,trigger:r.trigger,placement:r.placement,interactive:!0,appendTo:r.appendTo||document.body,maxWidth:"none",offset:[r.offsetOne,r.offset],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){r.value||n("update:value",!0)},onHidden(){r.value&&n("update:value",!1),s.value=!1}})}),(u,f)=>(ie(),ve("div",{class:ft(["popover",{center:u.center}]),ref_key:"triggerRef",ref:a},[Q("div",{class:"popover-content",style:be(l.value),ref_key:"contentRef",ref:o},[s.value?Hs(u.$slots,"content",{key:0},void 0,!0):Ue("",!0)],4),Hs(u.$slots,"default",{},void 0,!0)],2))}}),_f=Ge(EA,[["__scopeId","data-v-4ba92b31"]]),Pn=Symbol(),na=Symbol(),Z6=Symbol(),Ec=t=>({shadowStyle:_e(()=>{if(t.value){const{h:r,v:n,blur:i,color:a}=t.value;return`${r}px ${n}px ${i}px ${a}`}return""})}),A1=(t,e)=>({flipStyle:_e(()=>{let n="";return t.value&&e.value?n="rotateX(180deg) rotateY(180deg)":e.value?n="rotateX(180deg)":t.value&&(n="rotateY(180deg)"),n})});var E1=(t=>(t.RECT="rect",t.ELLIPSE="ellipse",t.POLYGON="polygon",t))(E1||{});const yg={rect:{name:"矩形",type:"rect",radius:"0",style:""},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L 0 ${e} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L ${t*.2} ${e} L 0 ${e*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M ${t*.5} 0 L 0 ${e} L ${t} ${e} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(t,e)=>`M ${t*.5} ${e} L 0 0 L ${t} 0 Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M 0 0 L 0 ${e} L ${t} ${e} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${e*.5} L ${t*.5} ${e} L 0 ${e*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${.38*e} L ${.82*t} ${e} L ${.18*t} ${e} L 0 ${.38*e} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.2} 0 L ${t*.8} 0 L ${t} ${e*.5} L ${t*.8} ${e} L ${t*.2} ${e} L 0 ${e*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t*.9} ${e*.2} L ${t} ${e*.6} L ${t*.75} ${e} L ${t*.25} ${e} L 0 ${e*.6} L ${t*.1} ${e*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t*.7} 0 L ${t} ${e*.3} L ${t} ${e*.7} L ${t*.7} ${e} L ${t*.3} ${e} L 0 ${e*.7} L 0 ${e*.3} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(t,e)=>`M ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} L ${t*.25} ${e*.5} L 0 0 Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(t,e)=>`M 0 0 L ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(t,e)=>`M 0 ${e*.2} L ${t*.6} ${e*.2} L ${t*.6} 0 L ${t} ${e*.5} L ${t*.6} ${e} L ${t*.6} ${e*.8} L 0 ${e*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t} 0 L ${t*.7} ${e} L 0 ${e} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(t,e)=>`M ${t*.3} ${e} L ${t} ${e} L ${t*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.25} 0 L ${t*.75} 0 L ${t} ${e} L 0 ${e} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(t,e)=>`M 0 0 L ${t} 0 L ${t*.75} ${e} L ${t*.25} ${e} Z`}},P1=t=>{const e=_e(()=>{let n=yg.rect;if(t.value.clip){const i=t.value.clip.shape||E1.RECT;n=yg[i]}return n.radius!==void 0&&t.value.radius&&(n={...n,radius:`${t.value.radius}px`,style:`inset(0 round ${t.value.radius}px)`}),n}),r=_e(()=>{if(!t.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[n,i]=t.value.clip.range,a=(i[0]-n[0])/100,o=(i[1]-n[1])/100,s=n[0]/a,l=n[1]/o;return{left:-s+"%",top:-l+"%",width:100/a+"%",height:100/o+"%"}});return{clipShape:e,imgPosition:r}},PA=t=>({filter:_e(()=>{if(!t.value)return"";let r="";const n=Object.keys(t.value);for(const i of n)r+=`${i}(${t.value[i]}) `;return r})}),fl=t=>{const e=_e(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=_e(()=>{var a;return((a=t.value)==null?void 0:a.style)||"solid"}),n=_e(()=>{var a;return((a=t.value)==null?void 0:a.color)||"#5b9bd5"}),i=_e(()=>{const a=e.value;return r.value==="dashed"?a<=6?`${a*4.5} ${a*2}`:`${a*4} ${a*1.5}`:r.value==="dotted"?a<=6?`${a*1.8} ${a*1.6}`:`${a*1.5} ${a*1.2}`:"0 0"});return{outlineWidth:e,outlineStyle:r,outlineColor:n,strokeDashArray:i}},MA=["width","height"],RA=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],DA=ze({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:a.width,height:a.height},[Q("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:a.radius,ry:a.radius,width:a.width,height:a.height,stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,RA)],8,MA)):Ue("",!0)}}),LA=Ge(DA,[["__scopeId","data-v-801a8465"]]),kA=["width","height"],OA=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],BA=ze({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:a.width,height:a.height},[Q("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:a.width/2,cy:a.height/2,rx:a.width/2,ry:a.height/2,stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,OA)],8,kA)):Ue("",!0)}}),NA=Ge(BA,[["__scopeId","data-v-2528d7e2"]]),FA=["width","height"],$A=["d","stroke","stroke-width","stroke-dasharray"],zA=ze({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:a.width,height:a.height},[Q("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:a.createPath(a.width,a.height),stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,$A)],8,FA)):Ue("",!0)}}),UA=Ge(zA,[["__scopeId","data-v-04ee0d7b"]]),HA={class:"image-outline"},VA=ze({__name:"index",props:{elementInfo:{}},setup(t){const e=t,r=_e(()=>e.elementInfo),{clipShape:n}=P1(r);return(i,a)=>(ie(),ve("div",HA,[le(n).type==="rect"?(ie(),Ke(LA,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:le(n).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):le(n).type==="ellipse"?(ie(),Ke(NA,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):le(n).type==="polygon"?(ie(),Ke(UA,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:le(n).createPath},null,8,["width","height","outline","createPath"])):Ue("",!0)]))}}),GA=["width","height"],WA=["d","stroke","stroke-width","stroke-dasharray"],jA=ze({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"element-outline",overflow:"visible",width:a.width,height:a.height},[Q("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${a.width},0 L${a.width},${a.height} L0,${a.height} Z`,stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,WA)],8,GA)):Ue("",!0)}}),M1=Ge(jA,[["__scopeId","data-v-813f8c74"]]),KA=["id","gradientTransform"],XA=["offset","stop-color"],YA=["id"],ZA=["offset","stop-color"],QA=ze({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(t){return(e,r)=>e.type==="linear"?(ie(),ve("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${e.rotate},0.5,0.5)`},[(ie(!0),ve(Xt,null,Lr(e.colors,(n,i)=>(ie(),ve("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,XA))),128))],8,KA)):(ie(),ve("radialGradient",{key:1,id:e.id},[(ie(!0),ve(Xt,null,Lr(e.colors,(n,i)=>(ie(),ve("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,ZA))),128))],8,YA))}}),JA=["id","markerWidth","markerHeight","refX","refY"],qA=["d","fill","transform"],Sg=ze({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(t){const e=t,r={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},n={"arrow-start":180,"arrow-end":0},i=_e(()=>r[e.type]),a=_e(()=>n[`${e.type}-${e.position}`]||0),o=_e(()=>e.baseSize<2?2:e.baseSize);return(s,l)=>(ie(),ve("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:o.value*3,markerHeight:o.value*3,refX:o.value*1.5,refY:o.value*1.5},[Q("path",{d:i.value,fill:s.color,transform:`scale(${o.value*.3}, ${o.value*.3}) rotate(${a.value}, 5, 5)`},null,8,qA)],8,JA))}}),e2=({type:t,data:e,themeColors:r,textColor:n,lineSmooth:i,stack:a})=>{if(t==="bar")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,xAxis:{type:"category",data:e.labels},yAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"bar",label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="column")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,yAxis:{type:"category",data:e.labels},xAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"bar",label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="line")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,xAxis:{type:"category",data:e.labels},yAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"line",smooth:i,label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="pie")return{color:r,textStyle:n?{color:n}:{},legend:{top:"bottom",textStyle:n?{color:n}:{}},series:[{data:e.series[0].map((o,s)=>({value:o,name:e.labels[s]})),label:n?{color:n}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="ring")return{color:r,textStyle:n?{color:n}:{},legend:{top:"bottom",textStyle:n?{color:n}:{}},series:[{data:e.series[0].map((o,s)=>({value:o,name:e.labels[s]})),label:n?{color:n}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="area")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,xAxis:{type:"category",boundaryGap:!1,data:e.labels},yAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"line",areaStyle:{},label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="radar")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,radar:{indicator:e.labels.map(o=>({name:o}))},series:[{data:e.series.map((o,s)=>({value:o,name:e.legends[s]})),type:"radar"}]};if(t==="scatter"){const o=[];for(let s=0;s"u"&&typeof self<"u"?xt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(xt.node=!0,xt.svgSupported=!0):n2(navigator.userAgent,xt);function n2(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var Rv=12,R1="sans-serif",Wi=Rv+"px "+R1,i2=20,a2=100,o2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function s2(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r=0)s=o*r.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",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function D2(t,e,r){for(var n="trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,d=f.left,h=f.top;o.push(d,h),l=l&&a&&d===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=P2(o,s))}function $1(t){return t.nodeName.toUpperCase()==="CANVAS"}var L2=/([&<>"'])/g,k2={"&":"&","<":"<",">":">",'"':""","'":"'"};function O2(t){return t==null?"":(t+"").replace(L2,function(e,r){return k2[r]})}var B2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pf=[],N2=xt.browser.firefox&&+xt.browser.version.split(".")[0]<39;function mh(t,e,r,n){return r=r||{},n?Tg(t,e,r):N2&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Tg(t,e,r),r}function Tg(t,e,r){if(xt.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if($1(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(M2(Pf,t,n,i)){r.zrX=Pf[0],r.zrY=Pf[1];return}}r.zrX=r.zrY=0}function Bv(t){return t||window.event}function wn(t,e,r){if(e=Bv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&mh(t,o,e,r)}else{mh(t,e,e,r);var a=F2(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&B2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function F2(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function $2(t,e,r,n){t.addEventListener(e,r,n)}function z2(t,e,r,n){t.removeEventListener(e,r,n)}var U2=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},H2=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o1&&n&&n.length>1){var a=Ig(n)/Ig(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=V2(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function ws(){return[1,0,0,1,0,0]}function Nv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function G2(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function xo(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function _g(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function z1(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function W2(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Fv(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var Je=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),Pl=Math.min,Ml=Math.max,sa=new Je,la=new Je,ua=new Je,ca=new Je,zo=new Je,Uo=new Je,It=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=Pl(e.x,this.x),n=Pl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ml(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ml(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=ws();return _g(a,a,[-r.x,-r.y]),W2(a,a,[n,i]),_g(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,d=!(av&&(v=S,pv&&(v=T,m=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}sa.x=ua.x=r.x,sa.y=ca.y=r.y,la.x=ca.x=r.x+r.width,la.y=ua.y=r.y+r.height,sa.transform(n),ca.transform(n),la.transform(n),ua.transform(n),e.x=Pl(sa.x,la.x,ua.x,ca.x),e.y=Pl(sa.y,la.y,ua.y,ca.y);var l=Ml(sa.x,la.x,ua.x,ca.x),u=Ml(sa.y,la.y,ua.y,ca.y);e.width=l-e.x,e.height=u-e.y},t}(),U1="silent";function j2(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:K2}}function K2(){U2(this.event)}var X2=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(yi),Ho=function(){function t(e,r){this.x=e,this.y=r}return t}(),Y2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rf=new It(0,0,0,0),H1=function(t){De(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Ho(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new X2,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new A2(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ee(Y2,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=V1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ho(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ho(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=j2(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Ho(r,n);if(Ag(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new It(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var d=a[c];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Rf.copy(d.getBoundingRect()),d.transform&&Rf.applyTransform(d.transform),Rf.intersect(f)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function Z2(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?U1:!0}return!1}function Ag(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=Z2(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==U1)){e.target=o;break}}}function V1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var G1=32,Vo=7;function Q2(t){for(var e=0;t>=G1;)e|=t&1,t>>=1;return t+e}function Eg(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function J2(t,e,r){for(r--;e>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Df(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function Lf(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function q2(t,e){var r=Vo,n,i,a=0,o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=Vo||_>=Vo);if(M)break;P<0&&(P=0),P+=2}if(r=P,r<1&&(r=1),v===1){for(m=0;m=0;m--)t[x+m]=t[P+m];t[T]=o[S];return}for(var _=r;;){var M=0,C=0,w=!1;do if(e(o[S],t[y])<0){if(t[T--]=t[y--],M++,C=0,--v===0){w=!0;break}}else if(t[T--]=o[S--],C++,M=0,--g===1){w=!0;break}while((M|C)<_);if(w)break;do{if(M=v-Lf(o[S],t,h,v,v-1,e),M!==0){for(T-=M,y-=M,v-=M,x=T+1,P=y+1,m=M-1;m>=0;m--)t[x+m]=t[P+m];if(v===0){w=!0;break}}if(t[T--]=o[S--],--g===1){w=!0;break}if(C=g-Df(t[y],o,0,g,g-1,e),C!==0){for(T-=C,S-=C,g-=C,x=T+1,P=S+1,m=0;m=Vo||C>=Vo);if(w)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),g===1){for(T-=v,y-=v,x=T+1,P=y+1,m=v-1;m>=0;m--)t[x+m]=t[P+m];t[T]=o[S]}else{if(g===0)throw new Error;for(P=T-(g-1),m=0;ms&&(l=s),Pg(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Vn=1,us=2,co=4,Mg=!1;function kf(){Mg||(Mg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Rg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var eE=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Rg}return t.prototype.traverse=function(e,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(kf(),f.z=0),isNaN(f.z2)&&(kf(),f.z2=0),isNaN(f.zlevel)&&(kf(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),yh;yh=xt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ts={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ts.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ts.bounceIn(t*2)*.5:Ts.bounceOut(t*2-1)*.5+.5}},Rl=Math.pow,Ui=Math.sqrt,ju=1e-8,W1=1e-4,Dg=Ui(3),Dl=1/3,Gn=Lo(),ln=Lo(),Co=Lo();function Oi(t){return t>-ju&&tju||t<-ju}function or(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Lg(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Ku(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Oi(f)&&Oi(c))if(Oi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=c*c-4*f*d;if(Oi(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Ui(p),S=f*s+1.5*o*(-c+y),T=f*s+1.5*o*(-c-y);S<0?S=-Rl(-S,Dl):S=Rl(S,Dl),T<0?T=-Rl(-T,Dl):T=Rl(T,Dl);var v=(-s-(S+T))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var P=(2*f*s-3*o*c)/(2*Ui(f*f*f)),x=Math.acos(P)/3,_=Ui(f),M=Math.cos(x),v=(-s-2*_*M)/(3*o),m=(-s+_*(M+Dg*Math.sin(x)))/(3*o),C=(-s+_*(M-Dg*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),C>=0&&C<=1&&(a[h++]=C)}}return h}function K1(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Oi(o)){if(j1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Oi(f))i[0]=-a/(2*o);else if(f>0){var c=Ui(f),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Xu(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function tE(t,e,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,p,g,m;Gn[0]=l,Gn[1]=u;for(var y=0;y<1;y+=.05)ln[0]=or(t,r,i,o,y),ln[1]=or(e,n,a,s,y),g=bo(Gn,ln),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Oi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Ui(f),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function X1(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Yu(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function iE(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Gn[0]=o,Gn[1]=s;for(var d=0;d<1;d+=.05){ln[0]=Rr(t,r,i,d),ln[1]=Rr(e,n,a,d);var h=bo(Gn,ln);h=0&&h=1?1:Ku(0,n,a,1,l,s)&&or(0,i,o,1,s[0])}}}var sE=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yr,this.ondestroy=e.ondestroy||Yr,this.onrestart=e.onrestart||Yr,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=nt(e)?e:Ts[e]||$v(e)},t}(),Y1=function(){function t(e){this.value=e}return t}(),lE=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Y1(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),vl=function(){function t(e){this._list=new lE,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Y1(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Og={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 Hi(t){return t=Math.round(t),t<0?0:t>255?255:t}function Sh(t){return t<0?0:t>1?1:t}function Of(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Hi(parseFloat(e)/100*255):Hi(parseInt(e,10))}function Is(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Sh(parseFloat(e)/100):Sh(parseFloat(e))}function Bf(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ll(t,e,r){return t+(e-t)*r}function an(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function bh(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Z1=new vl(20),kl=null;function Xa(t,e){kl&&bh(kl,e),kl=Z1.put(t,kl||e.slice())}function Kn(t,e){if(t){e=e||[];var r=Z1.get(t);if(r)return bh(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Og)return bh(e,Og[n]),Xa(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){an(e,0,0,0,1);return}return an(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Xa(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){an(e,0,0,0,1);return}return an(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xa(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?an(e,+u[0],+u[1],+u[2],1):an(e,0,0,0,1);f=Is(u.pop());case"rgb":if(u.length>=3)return an(e,Of(u[0]),Of(u[1]),Of(u[2]),u.length===3?f:Is(u[3])),Xa(t,e),e;an(e,0,0,0,1);return;case"hsla":if(u.length!==4){an(e,0,0,0,1);return}return u[3]=Is(u[3]),Bg(u,e),Xa(t,e),e;case"hsl":if(u.length!==3){an(e,0,0,0,1);return}return Bg(u,e),Xa(t,e),e;default:return}}an(e,0,0,0,1)}}function Bg(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Is(t[1]),i=Is(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],an(e,Hi(Bf(o,a,r+1/3)*255),Hi(Bf(o,a,r)*255),Hi(Bf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Ng(t,e){var r=Kn(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Rc(r,r.length===4?"rgba":"rgb")}}function uE(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Kn(e[i]),s=Kn(e[a]),l=n-i,u=Rc([Hi(Ll(o[0],s[0],l)),Hi(Ll(o[1],s[1],l)),Hi(Ll(o[2],s[2],l)),Sh(Ll(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Rc(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Zu(t,e){var r=Kn(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Fg=new vl(100);function xh(t){if(We(t)){var e=Fg.get(t);return e||(e=Ng(t,-.1),Fg.put(t,e)),e}else if(kv(t)){var r=Ie({},t);return r.colorStops=ke(t.colorStops,function(n){return{offset:n.offset,color:Ng(n.color,-.1)}}),r}return t}var Qu=Math.round;function Ws(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Kn(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var $g=1e-4;function Bi(t){return t<$g&&t>-$g}function Ol(t){return Qu(t*1e3)/1e3}function Ch(t){return Qu(t*1e4)/1e4}function cE(t){return"matrix("+Ol(t[0])+","+Ol(t[1])+","+Ol(t[2])+","+Ol(t[3])+","+Ch(t[4])+","+Ch(t[5])+")"}var fE={left:"start",right:"end",center:"middle",middle:"middle"};function dE(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function hE(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function vE(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Q1(t){return t&&!!t.image}function pE(t){return t&&!!t.svgElement}function zv(t){return Q1(t)||pE(t)}function J1(t){return t.type==="linear"}function q1(t){return t.type==="radial"}function eS(t){return t&&(t.type==="linear"||t.type==="radial")}function Dc(t){return"url(#"+t+")"}function tS(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function rS(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Tu,i=Ze(t.scaleX,1),a=Ze(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Qu(o*Tu)+"deg, "+Qu(s*Tu)+"deg)"),l.join(" ")}var gE=function(){return xt.hasGlobalWindow&&nt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),wh=Array.prototype.slice;function li(t,e,r){return(e-t)*r+t}function Nf(t,e,r,n){for(var i=e.length,a=0;an?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ug,l=r;if(Fr(r)){var u=bE(r);s=u,(u===1&&!Et(r[0])||u===2&&!Et(r[0][0]))&&(o=!0)}else if(Et(r)&&!Wu(r))s=Nl;else if(We(r))if(!isNaN(+r))s=Nl;else{var f=Kn(r);f&&(l=f,s=cs)}else if(kv(r)){var c=Ie({},l);c.colorStops=ke(r.colorStops,function(h){return{offset:h.offset,color:Kn(h.color)}}),J1(r)?s=Th:q1(r)&&(s=Ih),l=c}a===0?this.valType=s:(s!==this.valType||s===Ug)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=nt(n)?n:Ts[n]||$v(n)),i.push(d),d},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fl(i),u=Hg(i),f=0;f=0&&!(o[f].percent<=r);f--);f=d(f,s-2)}else{for(f=c;fr);f++);f=d(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Go:e[l];if((Fl(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:v.rawValue;else if(Fl(a))a===Eu?Nf(y,h[i],v[i],m):mE(y,h[i],v[i],m);else if(Hg(a)){var S=h[i],T=v[i],P=a===Th;e[l]={type:P?"linear":"radial",x:li(S.x,T.x,m),y:li(S.y,T.y,m),colorStops:ke(S.colorStops,function(_,M){var C=T.colorStops[M];return{offset:li(_.offset,C.offset,m),color:Au(Nf([],_.color,C.color,m))}}),global:T.global},P?(e[l].x2=li(S.x2,T.x2,m),e[l].y2=li(S.y2,T.y2,m)):e[l].r=li(S.r,T.r,m)}else if(u)Nf(y,h[i],v[i],m),n||(e[l]=Au(y));else{var x=li(h[i],v[i],m);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Nl?e[n]=e[n]+i:r===cs?(Kn(e[n],Go),Bl(Go,Go,i,1),e[n]=Au(Go)):r===Eu?Bl(e[n],e[n],i,1):r===nS&&zg(e[n],e[n],i,1)},t}(),Uv=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){O1("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,gt(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,_u(u),i),this._trackKeys.push(s)}l.addKeyframe(e,_u(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();function mo(){return new Date().getTime()}var CE=function(t){De(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=mo()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(yh(n),!r._paused&&r.update())}yh(n)},e.prototype.start=function(){this._running||(this._time=mo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=mo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=mo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Uv(r,n.loop);return this.addAnimator(i),i},e}(yi),wE=300,Ff=xt.domSupported,$f=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ke(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),Vg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Gg=!1;function _h(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TE(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zf(t){t&&(t.zrByTouch=!0)}function IE(t,e){return wn(t.dom,new _E(t,e),!0)}function iS(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var _E=function(){function t(e,r){this.stopPropagation=Yr,this.stopImmediatePropagation=Yr,this.preventDefault=Yr,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Tn={mousedown:function(t){t=wn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=wn(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=wn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=wn(this.dom,t);var e=t.toElement||t.relatedTarget;iS(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Gg=!0,t=wn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Gg||(t=wn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=wn(this.dom,t),zf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Tn.mousemove.call(this,t),Tn.mousedown.call(this,t)},touchmove:function(t){t=wn(this.dom,t),zf(t),this.handler.processGesture(t,"change"),Tn.mousemove.call(this,t)},touchend:function(t){t=wn(this.dom,t),zf(t),this.handler.processGesture(t,"end"),Tn.mouseup.call(this,t),+new Date-+this.__lastTouchMomentXg||t<-Xg}var da=[],Ya=[],Hf=ws(),Vf=Math.abs,Hv=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return fa(this.rotation)||fa(this.x)||fa(this.y)||fa(this.scaleX-1)||fa(this.scaleY-1)||fa(this.skewX)||fa(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Kg(n),this.invTransform=null);return}n=n||ws(),r?this.getLocalTransform(n):Kg(n),e&&(r?xo(n,e,n):G2(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(da);var n=da[0]<0?-1:1,i=da[1]<0?-1:1,a=((da[0]-n)*r+n)/da[0]||0,o=((da[1]-i)*r+i)/da[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ws(),Fv(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ws(),xo(Ya,e.invTransform,r),r=Ya);var n=this.originX,i=this.originY;(n||i)&&(Hf[4]=n,Hf[5]=i,xo(Ya,r,Hf),Ya[4]-=n,Ya[5]-=i,r=Ya),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&dn(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&dn(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Vf(e[0]-1)>1e-10&&Vf(e[3]-1)>1e-10?Math.sqrt(Vf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){oS(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&z1(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),js=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oS(t,e){for(var r=0;r=0?parseFloat(t)/100*e:parseFloat(t):t}function Ju(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Ki(n[0],r.width),u+=Ki(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Gf="__zr_normal__",Wf=js.concat(["ignore"]),RE=ji(js,function(t,e){return t[e]=!0,t},{ignore:!1}),Za={},DE=new It(0,0,0,0),kc=function(){function t(e){this.id=k1(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=DE;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Za,n,f):Ju(Za,n,f),a.x=Za.x,a.y=Za.y,o=Za.align,s=Za.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,h=void 0;c==="center"?(d=f.width*.5,h=f.height*.5):(d=Ki(c[0],f.width),h=Ki(c[1],f.height)),u=!0,a.originX=-a.x+d+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,S=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),S=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),S=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=S,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Vn,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mh:Ph},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Kn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Rc(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},Ie(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(Ye(e))for(var n=e,i=gt(n),a=0;a0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Gf,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Gf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Mt(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){O1("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,r,n,f),d&&d.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vn),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,r,d),g&&g.useStates(e,r,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vn)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=Mt(i,e),o=Mt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d0||i.force&&!o.length){var M=void 0,C=void 0,w=void 0;if(s){C={},d&&(M={});for(var T=0;T=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Mt(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Mt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function At(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return We(t)?VE(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Vt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),cS),t=(+t).toFixed(e),r?t:+t}function ci(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return GE(t)}function GE(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function WE(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function jE(t,e){var r=ji(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=ke(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=ke(i,function(h){return Math.floor(h)}),s=ji(o,function(h,v){return h+v},0),l=ke(i,function(h,v){return h-o[v]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return ke(o,function(h){return h/n})}function KE(t,e){var r=Math.max(ci(t),ci(e)),n=t+e;return r>cS?n:Vt(n,r)}function fS(t){var e=Math.PI*2;return(t%e+e)%e}function qu(t){return t>-Jg&&t=10&&e++,e}function dS(t,e){var r=Vv(t),n=Math.pow(10,r),i=t/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function ZE(t){var e=parseFloat(t);return e==t&&(e!==0||!We(t)||t.indexOf("x")<=0)?e:NaN}function QE(t){return!isNaN(ZE(t))}function JE(){return Math.round(Math.random()*9)}function hS(t,e){return e===0?t:hS(e,t%e)}function qg(t,e){return t==null?e:e==null?t:t*e/hS(t,e)}function Kr(t){throw new Error(t)}function em(t,e,r){return(e-t)*r+t}var vS="series\0",qE="\0_ec_\0";function Ir(t){return t instanceof Array?t:t==null?[]:[t]}function Lh(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n=0||a&&Mt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var xP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CP=Xs(xP),wP=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return CP(this,e,r)},t}(),kh=new vl(50);function TP(t){if(typeof t=="string"){var e=kh.get(t);return e&&e.image}else return t}function jv(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=kh.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Nc(e)&&a.pending.push(o)):(e=dl.loadImage(t,rm,rm),e.__zrImageSrc=t,kh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function rm(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Zr(r,e);return u>s&&(r="",u=0),s=t-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function xS(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=Zr(t,n);if(a<=r)return t;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?_P(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=Zr(t,n)}return t===""&&(t=e.placeholder),t}function _P(t,e,r,n){for(var i=0,a=0,o=t.length;ah&&u){var v=Math.floor(h/s);c=c.slice(0,v)}if(t&&a&&f!=null)for(var p=bS(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&Zf(r,t.substring(s,u),e,o),Zf(r,l[2],e,o,l[1]),s=Yf.lastIndex}si){P>0?(y.tokens=y.tokens.slice(0,P),g(y,T,S),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var E=_.width,A=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")x.percentWidth=E,f.push(x),x.contentWidth=Zr(x.text,w);else{if(A){var R=_.backgroundColor,k=R&&R.image;k&&(k=TP(k),Nc(k)&&(x.width=Math.max(x.width,k.width*b/k.height)))}var D=v&&n!=null?n-T:null;D!=null&&D0&&v+n.accumWidth>n.width&&(f=e.split(` `),u=!0),n.accumWidth=v}else{var p=CS(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=e.split(` `);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DP=ji(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function LP(t){return RP(t)?!!DP[t]:!0}function CS(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;cr:i+f+h>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=d,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=d,f=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}f+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Oh="__zr_style_"+Math.round(Math.random()*10),Na={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Fc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Na[Oh]=!0;var im=["z","z2","invisible"],kP=["invisible"],OP=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=gt(r),i=0;i1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if($l[0]=ed(i)*r+t,$l[1]=qf(i)*n+e,zl[0]=ed(a)*r+t,zl[1]=qf(a)*n+e,u(s,$l,zl),f(l,$l,zl),i=i%va,i<0&&(i=i+va),a=a%va,a<0&&(a=a+va),i>a&&!o?a+=va:ii&&(Ul[0]=ed(h)*r+t,Ul[1]=qf(h)*n+e,u(s,Ul,s),f(l,Ul,l))}var bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pa=[],ga=[],Nn=[],Ci=[],Fn=[],$n=[],td=Math.min,rd=Math.max,ma=Math.cos,ya=Math.sin,oi=Math.abs,Bh=Math.PI,Ri=Bh*2,nd=typeof Float32Array<"u",Wo=[];function id(t){var e=Math.round(t/Bh*1e8)/1e8;return e%2*Bh}function wS(t,e){var r=id(t[0]);r<0&&(r+=Ri);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Ri?i=r+Ri:e&&r-i>=Ri?i=r-Ri:!e&&r>i?i=r+(Ri-id(r-i)):e&&r0&&(this._ux=oi(n/jg/e)||0,this._uy=oi(n/jg/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(bt.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=oi(e-this._xi),i=oi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(bt.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(bt.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(bt.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Wo[0]=i,Wo[1]=a,wS(Wo,o),i=Wo[0],a=Wo[1];var s=a-i;return this.addData(bt.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=ma(a)*n+e,this._yi=ya(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(bt.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(bt.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&nd&&(this.data=new Float32Array(r));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Nn[0]=Nn[1]=Fn[0]=Fn[1]=Number.MAX_VALUE,Ci[0]=Ci[1]=$n[0]=$n[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||oi(S)>i||d===r-1)&&(p=Math.sqrt(y*y+S*S),a=g,o=m);break}case bt.C:{var T=e[d++],P=e[d++],g=e[d++],m=e[d++],x=e[d++],_=e[d++];p=rE(a,o,T,P,g,m,x,_,10),a=x,o=_;break}case bt.Q:{var T=e[d++],P=e[d++],g=e[d++],m=e[d++];p=aE(a,o,T,P,g,m,10),a=g,o=m;break}case bt.A:var M=e[d++],C=e[d++],w=e[d++],b=e[d++],E=e[d++],A=e[d++],R=A+E;d+=1,v&&(s=ma(E)*w+M,l=ya(E)*b+C),p=rd(w,b)*td(Ri,Math.abs(A)),a=ma(R)*w+M,o=ya(R)*b+C;break;case bt.R:{s=a=e[d++],l=o=e[d++];var k=e[d++],D=e[d++];p=k*2+D*2;break}case bt.Z:{var y=s-a,S=l-o;p=Math.sqrt(y*y+S*S),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,d,h=r<1,v,p,g=0,m=0,y,S=0,T,P;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var x=0;x0&&(e.lineTo(T,P),S=0),_){case bt.M:s=u=n[x++],l=f=n[x++],e.moveTo(u,f);break;case bt.L:{c=n[x++],d=n[x++];var C=oi(c-u),w=oi(d-f);if(C>i||w>a){if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;e.lineTo(u*(1-E)+c*E,f*(1-E)+d*E);break e}g+=b}e.lineTo(c,d),u=c,f=d,S=0}else{var A=C*C+w*w;A>S&&(T=c,P=d,S=A)}break}case bt.C:{var R=n[x++],k=n[x++],D=n[x++],O=n[x++],$=n[x++],U=n[x++];if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;Xu(u,R,D,$,E,pa),Xu(f,k,O,U,E,ga),e.bezierCurveTo(pa[1],ga[1],pa[2],ga[2],pa[3],ga[3]);break e}g+=b}e.bezierCurveTo(R,k,D,O,$,U),u=$,f=U;break}case bt.Q:{var R=n[x++],k=n[x++],D=n[x++],O=n[x++];if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;Yu(u,R,D,E,pa),Yu(f,k,O,E,ga),e.quadraticCurveTo(pa[1],ga[1],pa[2],ga[2]);break e}g+=b}e.quadraticCurveTo(R,k,D,O),u=D,f=O;break}case bt.A:var q=n[x++],H=n[x++],N=n[x++],G=n[x++],j=n[x++],oe=n[x++],Y=n[x++],te=!n[x++],fe=N>G?N:G,ye=oi(N-G)>.001,xe=j+oe,ce=!1;if(h){var b=v[m++];g+b>y&&(xe=j+oe*(y-g)/b,ce=!0),g+=b}if(ye&&e.ellipse?e.ellipse(q,H,N,G,Y,j,xe,te):e.arc(q,H,fe,j,xe,te),ce)break e;M&&(s=ma(j)*N+q,l=ya(j)*G+H),u=ma(xe)*N+q,f=ya(xe)*G+H;break;case bt.R:s=u=n[x],l=f=n[x+1],c=n[x++],d=n[x++];var ge=n[x++],Ce=n[x++];if(h){var b=v[m++];if(g+b>y){var se=y-g;e.moveTo(c,d),e.lineTo(c+td(se,ge),d),se-=ge,se>0&&e.lineTo(c+ge,d+td(se,Ce)),se-=Ce,se>0&&e.lineTo(c+rd(ge-se,0),d+Ce),se-=ge,se>0&&e.lineTo(c,d+rd(Ce-se,0));break e}g+=b}e.rect(c,d,ge,Ce);break;case bt.Z:if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;e.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break e}g+=b}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=bt,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Qa(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||ot+s&&a>r+s||ae+c&&f>n+c&&f>a+c&&f>s+c||ft+c&&u>r+c&&u>i+c&&u>o+c||ue+u&&l>n+u&&l>a+u||lt+u&&s>r+u&&s>i+u||sr||f+ui&&(i+=jo);var d=Math.atan2(l,s);return d<0&&(d+=jo),d>=n&&d<=i||d+jo>=n&&d+jo<=i}function Sa(t,e,r,n,i,a){if(a>e&&a>n||ai?s:0}var wi=Yi.CMD,ba=Math.PI*2,VP=1e-4;function GP(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||u1&&WP(),h=or(e,n,a,s,sn[0]),d>1&&(v=or(e,n,a,s,sn[1]))),d===2?ge&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=Rr(e,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Cr[0]=-l,Cr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ba-1e-4){n=0,i=ba;var f=a?1:-1;return o>=Cr[0]+t&&o<=Cr[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=ba,i+=ba);for(var d=0,h=0;h<2;h++){var v=Cr[h];if(v+t>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=ba+p),(p>=n&&p<=i||p+ba>=n&&p+ba<=i)&&(p>Math.PI/2&&p1&&(r||(s+=Sa(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case wi.M:f=a[v++],c=a[v++],l=f,u=c;break;case wi.L:if(r){if(Qa(l,u,a[v],a[v+1],e,n,i))return!0}else s+=Sa(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case wi.C:if(r){if(zP(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=jP(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case wi.Q:if(r){if(UP(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=KP(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case wi.A:var m=a[v++],y=a[v++],S=a[v++],T=a[v++],P=a[v++],x=a[v++];v+=1;var _=!!(1-a[v++]);d=Math.cos(P)*S+m,h=Math.sin(P)*T+y,g?(f=d,c=h):s+=Sa(l,u,d,h,n,i);var M=(n-m)*T/S+m;if(r){if(HP(m,y,T,P,P+x,_,e,M,i))return!0}else s+=XP(m,y,T,P,P+x,_,M,i);l=Math.cos(P+x)*S+m,u=Math.sin(P+x)*T+y;break;case wi.R:f=l=a[v++],c=u=a[v++];var C=a[v++],w=a[v++];if(d=f+C,h=c+w,r){if(Qa(f,c,d,c,e,n,i)||Qa(d,c,d,h,e,n,i)||Qa(d,h,f,h,e,n,i)||Qa(f,h,f,c,e,n,i))return!0}else s+=Sa(d,c,d,h,n,i),s+=Sa(f,h,f,c,n,i);break;case wi.Z:if(r){if(Qa(l,u,f,c,e,n,i))return!0}else s+=Sa(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!GP(u,c)&&(s+=Sa(l,u,f,c,n,i)||0),s!==0}function YP(t,e,r){return TS(t,0,!1,e,r)}function ZP(t,e,r,n){return TS(t,e,!0,r,n)}var ec=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Na),QP={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fc.style)},ad=js.concat(["invisible","culling","z","z2","zlevel","parent"]),yt=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ph:n>.2?ME:Mh}else if(r)return Mh}return Ph},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(We(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Zu(r,0)0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&co)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.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 r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){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)),ZP(s,l/u,r,n)))return!0}if(this.hasFill())return YP(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=co,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:Ie(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&co)},e.prototype.createStyle=function(r){return Mc(ec,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Ie({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=Ie({},i.shape),Ie(u,n.shape)):(u=Ie({},a?this.shape:i.shape),Ie(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Ie({},this.shape);for(var f={},c=gt(u),d=0;d0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Mc(JP,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=sS(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(gl);Ys.prototype.type="tspan";var qP=dt({x:0,y:0},Na),eM={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fc.style)};function tM(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Rn=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Mc(qP,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=tM(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return eM},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new It(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(gl);Rn.prototype.type="image";function rM(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var yo=Math.round;function IS(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(yo(n*2)===yo(i*2)&&(t.x1=t.x2=Oa(n,s,!0)),yo(a*2)===yo(o*2)&&(t.y1=t.y2=Oa(a,s,!0))),t}}function _S(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Oa(n,s,!0),t.y=Oa(i,s,!0),t.width=Math.max(Oa(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Oa(i+o,s,!1)-t.y,o===0?0:1)),t}}function Oa(t,e,r){if(!e)return t;var n=yo(t*2);return(n+yo(e))%2===0?n/2:(n+(r?1:-1))/2}var nM=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),iM={},Qt=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new nM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=_S(iM,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?rM(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);Qt.prototype.type="rect";var um={fill:"#000"},cm=2,aM={style:dt({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},Fc.style)},Qr=function(t){De(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=um,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,R=0;R=0&&(R=x[A],R.align==="right");)this._placeToken(R,r,M,m,E,"right",S),C-=R.width,E-=R.width,A--;for(b+=(a-(b-g)-(y-E)-C)/2;w<=A;)R=x[w],this._placeToken(R,r,M,m,b+R.width/2,"center",S),b+=R.width,w++;m+=M}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var d=!r.isLineHolder&&od(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=gm(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Ys),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,S=0,T=pm("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),P=vm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(S=cm,m.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Wi,g.opacity=xs(u.opacity,n.opacity,1),dm(g,u),P&&(g.lineWidth=xs(u.lineWidth,n.lineWidth,S),g.lineDash=Ze(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=P),T&&(g.fill=T);var _=r.contentWidth,M=r.contentHeight;p.setBoundingRect(new It(fs(g.x,_,g.textAlign),fo(g.y,M,g.textBaseline),_,M))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,d=l&&!c,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&f){p=this._getOrCreateChild(Qt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=Ze(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Rn),g.onload=function(){v.dirtyStyle()};var S=g.style;S.image=l.image,S.x=i,S.y=a,S.width=o,S.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Ze(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(p||g).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=xs(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return ES(r)&&(n=[r.fontStyle,r.fontWeight,AS(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ki(n)||r.textFont||r.font},e}(gl),oM={left:!0,right:1,center:1},sM={top:1,bottom:1,middle:1},fm=["fontStyle","fontWeight","fontSize","fontFamily"];function AS(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Rv+"px":t+"px"}function dm(t,e){for(var r=0;r=0,a=!1;if(t instanceof yt){var o=PS(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ja(s)||Ja(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Ie({},n),u=Ie({},u),u.fill=s):!Ja(u.fill)&&Ja(s)?(a=!0,n=Ie({},n),u=Ie({},u),u.fill=xh(s)):!Ja(u.stroke)&&Ja(l)&&(a||(n=Ie({},n),u=Ie({},u)),u.stroke=xh(l)),n.style=u}}if(n&&n.z2==null){a||(n=Ie({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??cM)}return n}function gM(t,e,r){if(r&&r.z2==null){r=Ie({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??fM)}return r}function mM(t,e,r){var n=Mt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:vM(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Ie({},r),o=Ie({opacity:n?i:a.opacity*.1},o),r.style=o),r}function sd(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return pM(this,t,e,r);if(t==="blur")return mM(this,t,r);if(t==="select")return gM(this,t,r)}return r}function yM(t){t.stateProxy=sd;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=sd),r&&(r.stateProxy=sd)}function Cm(t,e){!BS(t,e)&&!t.__highByOuter&&Si(t,MS)}function wm(t,e){!BS(t,e)&&!t.__highByOuter&&Si(t,RS)}function rc(t,e){t.__highByOuter|=1<<(e||0),Si(t,MS)}function nc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Si(t,RS)}function SM(t){Si(t,Yv)}function LS(t){Si(t,DS)}function kS(t){Si(t,dM)}function OS(t){Si(t,hM)}function BS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function NS(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Kv(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){DS(u)}),s&&r.push(a)),o.isBlured=!1}),ee(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Nh(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function $h(t,e,r){FS(t,!0),Si(t,yM),_M(t,e,r)}function IM(t){FS(t,!1)}function Ao(t,e,r,n){n?IM(t):$h(t,e,r)}function _M(t,e,r){var n=Rt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Im=["emphasis","blur","select"],AM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Eo(t,e,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=ld(v),s*=ld(v));var p=(i===a?-1:1)*ld((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(t+r)/2+Gl(c)*g-Vl(c)*m,S=(e+n)/2+Vl(c)*g+Gl(c)*m,T=Pm([1,0],[(d-g)/o,(h-m)/s]),P=[(d-g)/o,(h-m)/s],x=[(-1*d-g)/o,(-1*h-m)/s],_=Pm(P,x);if(Hh(P,x)<=-1&&(_=Ko),Hh(P,x)>=1&&(_=0),_<0){var M=Math.round(_/Ko*1e6)/1e6;_=Ko*2+M%2*Ko}f.addData(u,y,S,o,s,T,_,c,a)}var LM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function OM(t){var e=new Yi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Yi.CMD,l=t.match(LM);if(!l)return e;for(var u=0;uR*R+k*k&&(M=w,C=b),{cx:M,cy:C,x0:-f,y0:-c,x1:M*(i/P-1),y1:C*(i/P-1)}}function VM(t){var e;if($e(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function GM(t,e){var r,n=ds(e.r,0),i=ds(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,d=!!e.clockwise,h=Rm(u-l),v=h>ud&&h%ud;if(v>Cn&&(h=v),!(n>Cn))t.moveTo(f,c);else if(h>ud-Cn)t.moveTo(f+n*eo(l),c+n*xa(l)),t.arc(f,c,n,l,u,!d),i>Cn&&(t.moveTo(f+i*eo(u),c+i*xa(u)),t.arc(f,c,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,S=void 0,T=void 0,P=void 0,x=void 0,_=void 0,M=void 0,C=void 0,w=void 0,b=void 0,E=void 0,A=void 0,R=void 0,k=n*eo(l),D=n*xa(l),O=i*eo(u),$=i*xa(u),U=h>Cn;if(U){var q=e.cornerRadius;q&&(r=VM(q),p=r[0],g=r[1],m=r[2],y=r[3]);var H=Rm(n-i)/2;if(S=zn(H,m),T=zn(H,y),P=zn(H,p),x=zn(H,g),C=_=ds(S,T),w=M=ds(P,x),(_>Cn||M>Cn)&&(b=n*eo(u),E=n*xa(u),A=i*eo(l),R=i*xa(l),hCn){var ye=zn(m,C),xe=zn(y,C),ce=Wl(A,R,k,D,n,ye,d),ge=Wl(b,E,O,$,n,xe,d);t.moveTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),C<_&&ye===xe?t.arc(f+ce.cx,c+ce.cy,C,ur(ce.y0,ce.x0),ur(ge.y0,ge.x0),!d):(ye>0&&t.arc(f+ce.cx,c+ce.cy,ye,ur(ce.y0,ce.x0),ur(ce.y1,ce.x1),!d),t.arc(f,c,n,ur(ce.cy+ce.y1,ce.cx+ce.x1),ur(ge.cy+ge.y1,ge.cx+ge.x1),!d),xe>0&&t.arc(f+ge.cx,c+ge.cy,xe,ur(ge.y1,ge.x1),ur(ge.y0,ge.x0),!d))}else t.moveTo(f+k,c+D),t.arc(f,c,n,l,u,!d);if(!(i>Cn)||!U)t.lineTo(f+O,c+$);else if(w>Cn){var ye=zn(p,w),xe=zn(g,w),ce=Wl(O,$,b,E,i,-xe,d),ge=Wl(k,D,A,R,i,-ye,d);t.lineTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),w0&&t.arc(f+ce.cx,c+ce.cy,xe,ur(ce.y0,ce.x0),ur(ce.y1,ce.x1),!d),t.arc(f,c,i,ur(ce.cy+ce.y1,ce.cx+ce.x1),ur(ge.cy+ge.y1,ge.cx+ge.x1),d),ye>0&&t.arc(f+ge.cx,c+ge.cy,ye,ur(ge.y1,ge.x1),ur(ge.y0,ge.x0),!d))}else t.lineTo(f+O,c+$),t.arc(f,c,i,u,l,d)}t.closePath()}}}var WM=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),ia=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WM},e.prototype.buildPath=function(r,n){GM(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);ia.prototype.type="sector";var jM=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Hc=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(yt);Hc.prototype.type="ring";function KM(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,h=t.length;d=2){if(n){var a=KM(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;swa[1]){if(s=!1,a)return s;var f=Math.abs(wa[0]-Ca[1]),c=Math.abs(Ca[0]-wa[1]);Math.min(f,c)>i.len()&&(f0){var c=f.duration,d=f.delay,h=f.easing,v={duration:c,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function yr(t,e,r,n,i,a){qv("update",t,e,r,n,i,a)}function Or(t,e,r,n,i,a){qv("enter",t,e,r,n,i,a)}function Ms(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function km(t){return!t.isGroup}function mR(t){return t.shape!=null}function QS(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){km(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return mR(o)&&(s.shape=Ie({},o.shape)),s}var a=n(t);e.traverse(function(o){if(km(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),yr(o,l,r,Rt(o).dataIndex)}}})}function yR(t,e){return ke(t,function(r){var n=r[0];n=sc(n,e.x),n=lc(n,e.x+e.width);var i=r[1];return i=sc(i,e.y),i=lc(i,e.y+e.height),[n,i]})}function SR(t,e){var r=sc(t.x,e.x),n=lc(t.x+t.width,e.x+e.width),i=sc(t.y,e.y),a=lc(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function JS(t,e,r){var n=Ie({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),dt(i,r),new Rn(n)):ep(t.replace("path://",""),n,r,"center")}function bR(t,e,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=cd(h,v,f,c)/d;return!(g<0||g>1)}function cd(t,e,r,n){return t*n-r*e}function xR(t){return t<=1e-6&&t>=-1e-6}function tp(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=We(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&ee(gt(l),function(f){Gs(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Rt(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Om(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Gc(t,e){if(t)if($e(t))for(var r=0;r=0&&s.push(l)}),s}}function rb(t,e){return Ct(Ct({},t,!0),e,!0)}const NR={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:". "}}}},FR={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 uc="ZH",rp="EN",wo=rp,Lu={},np={},nb=xt.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||wo).toUpperCase();return t.indexOf(uc)>-1?uc:wo}():wo;function ib(t,e){t=t.toUpperCase(),np[t]=new Jt(e),Lu[t]=e}function $R(t){if(We(t)){var e=Lu[t.toUpperCase()]||{};return t===uc||t===rp?pt(e):Ct(pt(e),pt(Lu[wo]),!1)}else return Ct(pt(t),pt(Lu[wo]),!1)}function zR(t){return np[t]}function UR(){return np[wo]}ib(rp,NR);ib(uc,FR);var ip=1e3,ap=ip*60,Rs=ap*60,fn=Rs*24,Hm=fn*365,hs={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xl="{yyyy}-{MM}-{dd}",Vm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xl,hour:Xl+" "+hs.hour,minute:Xl+" "+hs.minute,second:Xl+" "+hs.second,millisecond:hs.none},hd=["year","month","day","hour","minute","second","millisecond"],ab=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ti(t,e){return t+="","0000".substr(0,e-t.length)+t}function To(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function HR(t){return t===To(t)}function VR(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ob(t,e,r,n){var i=Xi(t),a=i[op(r)](),o=i[Io(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Xc(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[qs(r)](),c=(f-1)%12+1,d=i[Yc(r)](),h=i[Zc(r)](),v=i[Qc(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Jt?n:zR(n||nb)||UR(),y=m.getModel("time"),S=y.get("month"),T=y.get("monthAbbr"),P=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ti(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[o-1]).replace(/{MMM}/g,T[o-1]).replace(/{MM}/g,Ti(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ti(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,P[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ti(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ti(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ti(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ti(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ti(v,3)).replace(/{S}/g,v+"")}function GR(t,e,r,n,i){var a=null;if(We(r))a=r;else if(nt(r))a=r(t.value,e,{level:t.level});else{var o=Ie({},hs);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if($e(a)){var c=t.level==null?0:t.level>=0?t.level:a.length+t.level;c=Math.min(c,a.length-1),a=a[c]}}return ob(new Date(t.value),a,i,n)}function sb(t,e){var r=Xi(t),n=r[Io(e)]()+1,i=r[Xc(e)](),a=r[qs(e)](),o=r[Yc(e)](),s=r[Zc(e)](),l=r[Qc(e)](),u=l===0,f=u&&s===0,c=f&&o===0,d=c&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Gm(t,e,r){var n=Et(t)?Xi(t):t;switch(e=e||sb(t,r),e){case"year":return n[op(r)]();case"half-year":return n[Io(r)]()>=6?1:0;case"quarter":return Math.floor((n[Io(r)]()+1)/4);case"month":return n[Io(r)]();case"day":return n[Xc(r)]();case"half-day":return n[qs(r)]()/24;case"hour":return n[qs(r)]();case"minute":return n[Yc(r)]();case"second":return n[Zc(r)]();case"millisecond":return n[Qc(r)]()}}function op(t){return t?"getUTCFullYear":"getFullYear"}function Io(t){return t?"getUTCMonth":"getMonth"}function Xc(t){return t?"getUTCDate":"getDate"}function qs(t){return t?"getUTCHours":"getHours"}function Yc(t){return t?"getUTCMinutes":"getMinutes"}function Zc(t){return t?"getUTCSeconds":"getSeconds"}function Qc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function WR(t){return t?"setUTCFullYear":"setFullYear"}function lb(t){return t?"setUTCMonth":"setMonth"}function ub(t){return t?"setUTCDate":"setDate"}function cb(t){return t?"setUTCHours":"setHours"}function fb(t){return t?"setUTCMinutes":"setMinutes"}function db(t){return t?"setUTCSeconds":"setSeconds"}function hb(t){return t?"setUTCMilliseconds":"setMilliseconds"}function jR(t){if(!QE(t))return We(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var vb=B1,Wm=["a","b","c","d","e","f","g"],vd=function(t,e){return"{"+t+(e??"")+"}"};function KR(t,e,r){$e(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;an||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(d?-d.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var Ds=sp;Xr(sp,"vertical");Xr(sp,"horizontal");function cc(t,e,r){r=vb(r||0);var n=e.width,i=e.height,a=At(t.left,n),o=At(t.top,i),s=At(t.right,n),l=At(t.bottom,i),u=At(t.width,n),f=At(t.height,i),c=r[2]+r[0],d=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new It(a+r[3],o+r[0],u,f);return v.margin=r,v}function el(t){var e=t.layoutMode||t.constructor.layoutMode;return Ye(e)?e:e?{type:e}:null}function Po(t,e,r){var n=r&&r.ignoreSize;!$e(n)&&(n=[n,n]);var i=o(Yl[0],0),a=o(Yl[1],1);u(Yl[0],t,i),u(Yl[1],t,a);function o(f,c){var d={},h=0,v={},p=0,g=2;if(ku(f,function(S){v[S]=t[S]}),ku(f,function(S){s(e,S)&&(d[S]=v[S]=e[S]),l(d,S)&&h++,l(v,S)&&p++}),n[c])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m=0;l--)s=Ct(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Oc(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Jt);SS(Tt,Jt);Bc(Tt);OR(Tt);BR(Tt,QR);function QR(t){var e=[];return ee(Tt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ke(e,function(r){return jn(r).main}),t!=="dataset"&&Mt(e,"dataset")<=0&&e.unshift("dataset"),e}var pb="";typeof navigator<"u"&&(pb=navigator.platform||"");var to="rgba(0, 0, 0, 0.2)";const JR={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:to,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:to,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:to,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:to,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:to,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:to,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pb.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 gb=it(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),gn="original",zr="arrayRows",Ln="objectRows",ei="keyedColumns",Vi="typedArray",mb="unknown",pi="column",Bo="row",nr={Must:1,Might:2,Not:3},yb=qt();function qR(t){yb(t).datasetMap=it()}function eD(t,e,r){var n={},i=lp(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=yb(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),ee(t,function(p,g){var m=Ye(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});ee(t,function(p,g){var m=p.name,y=v(p);if(f==null){var S=d.valueWayDim;h(n[m],S,y),h(o,S,y),d.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var S=d.categoryWayDim;h(n[m],S,y),h(o,S,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;ye)return t[n];return t[r-1]}function oD(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:aD(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function sD(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Zl,Xo,Km,Xm="\0_ec_inner",lD=1,cp=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Jt(a),this._locale=new Jt(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Qm(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Qm(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Km(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&ee(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=it(),u=n&&n.replaceMergeMainTypeMap;qR(this),ee(r,function(c,d){c!=null&&(Tt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?pt(c):Ct(i[d],c,!0))}),u&&u.each(function(c,d){Tt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Tt.topologicalTravel(s,Tt.getAllClassMainTypes(),f,this);function f(c){var d=iD(this,c,Ir(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=tP(h,d,v);lP(p,c,Tt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,S;ee(p,function(T,P){var x=T.existing,_=T.newOption;if(!_)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var M=c==="series",C=Tt.getClass(c,T.keyInfo.subType,!M);if(!C)return;if(c==="tooltip"){if(S)return;S=!0}if(x&&x.constructor===C)x.name=T.keyInfo.name,x.mergeOption(_,this),x.optionUpdated(_,!1);else{var w=Ie({componentIndex:P},T.keyInfo);x=new C(_,this,this,w),Ie(x,w),T.brandNew&&(x.__requireNewView=!0),x.init(_,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Zl(this)}this._seriesIndices||Zl(this)},e.prototype.getOption=function(){var r=pt(this.option);return ee(r,function(n,i){if(Tt.hasClass(i)){for(var a=Ir(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ks(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Xm],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=e:r==="max"?t<=e:t===e}function mD(t,e){return t.join(",")===e.join(",")}var yn=ee,tl=Ye,Jm=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gd(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Jm.length;r=0;g--){var m=t[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=KE(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var qc=function(){function t(e){this.data=e.data||(e.sourceFormat===ei?{}:[]),this.sourceFormat=e.sourceFormat||mb,this.seriesLayoutBy=e.seriesLayoutBy||pi,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;np&&(p=S)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};ay=(e={},e[zr+"_"+pi]={pure:!0,appendData:a},e[zr+"_"+Bo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ln]={pure:!0,appendData:a},e[ei]={pure:!0,appendData:function(o){var s=this._data;ee(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[gn]={appendData:a},e[Vi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Mo(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Ls(t){return new OD(t)}var OD=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(c||h1&&n>0?s:o}};return a;function o(){return e=t?null:l65535?WD:jD}function ro(){return[1/0,-1/0]}function KD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function fy(t,e,r,n,i){var a=Lb[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ke(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r=0&&r=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&ne)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a=c&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=h[i[0]],S=h[i[1]],T=e[i[1]][0],P=e[i[1]][1],m=0;m=c&&y<=d||isNaN(y))&&(x>=T&&x<=P||isNaN(x))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m=c&&y<=d||isNaN(y))&&(l[u++]=_)}else for(var m=0;me[w][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,d,h=new(Zo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vf&&(f=c,d=T)}b>0&&b<_-x&&(h[s++]=Math.min(w,d),d=Math.max(w,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=ro(),d=new(Zo(this._rawCount))(Math.ceil(f/l)),h=0,v=0;vf-v&&(l=f-v,s.length=l);for(var p=0;pc[1]&&(c[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();al&&(l=c)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return Ou(r[a],this._dimensions[a])}Sd={arrayRows:e,objectRows:function(r,n,i,a){return Ou(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ou(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),XD=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Ql(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=$r(s)?Vi:gn,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ze(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=Ze(c.sourceHeader,d.sourceHeader),p=Ze(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[jh(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var S=m.get("source",!0);i=[jh(S,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&dy(a)}var o,s=[],l=[];return ee(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&dy(c),s.push(f),l.push(u._getVersionSign())}),n?o=VD(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[AD(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r1||l&&!o){var v=ZD(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Mo(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Gv(e),m=g&&e.name||"",y=i.getName(r),S=n?m:y;return rl("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[rl("nameValue",{markerType:"item",markerColor:u,name:S,noName:!ki(S),value:f,valueType:c,dataIndex:r})].concat(d||[])})}function ZD(t,e,r,n,i){var a=e.getData(),o=ji(t,function(c,d,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?ee(n,function(c){f(Mo(a,r,c),c)}):ee(t,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(rl("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ii=qt();function Jl(t,e){return t.getName(e)||t.getId(e)}var QD="__universalTransitionEnabled",Jr=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ls({count:qD,reset:eL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ii(this).sourceManager=new XD(this);a.prepareSource();var o=this.getInitialData(r,i);vy(o,this),this.dataTask.context.data=o,Ii(this).dataBeforeProcessed=o,hy(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=el(this),a=i?Jc(r):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),Ct(r,n.getTheme().get(this.subType)),Ct(r,this.getDefaultOption()),Lh(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Po(r,a,i)},e.prototype.mergeOption=function(r,n){r=Ct(this.option,r,!0),this.fillDataTextStyle(r.data);var i=el(this);i&&Po(this.option,r,i);var a=Ii(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);vy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ii(this).dataBeforeProcessed=o,hy(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!$r(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=up.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Jl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[QD])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ye(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Tt.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(Tt);Mn(Jr,kD);Mn(Jr,up);SS(Jr,Tt);function hy(t){var e=t.name;Gv(t)||(t.name=JD(t)||e)}function JD(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return ee(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function qD(t){return t.model.getRawData().count()}function eL(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),tL}function tL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function vy(t,e){ee(b2(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Xr(rL,e))})}function rL(t,e){var r=Xh(t);return r&&r.setOutputEnd((e||this).count()),e}function Xh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var mi=function(){function t(){this.group=new Yt,this.uid=Kc("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Wv(mi);Bc(mi);function pp(){var t=qt();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Ob=qt(),nL=pp(),Br=function(){function t(){this.group=new Yt,this.uid=Kc("viewChart"),this.renderTask=Ls({plan:iL,reset:aL}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&gy(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&gy(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Gc(this.group,e)},t.markUpdateMethod=function(e,r){Ob(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function py(t,e,r){t&&zh(t)&&(e==="emphasis"?rc:nc)(t,r)}function gy(t,e,r){var n=_o(t,e),i=e&&e.highlightKey!=null?EM(e.highlightKey):null;n!=null?ee(Ir(n),function(a){py(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){py(a,r,i)})}Wv(Br);Bc(Br);function iL(t){return nL(t.model)}function aL(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Ob(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),oL[l]}var oL={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function Bb(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var d=function(){for(var h=[],v=0;v=0?c():o=setTimeout(c,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){f=h},d}var my=qt(),yy={itemStyle:Xs(tb,!0),lineStyle:Xs(eb,!0)},sL={lineStyle:"stroke",itemStyle:"fill"};function Nb(t,e){var r=t.visualStyleMapper||yy[e];return r||(console.warn("Unknown style type '"+e+"'."),yy.itemStyle)}function Fb(t,e){var r=t.visualDrawType||sL[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var lL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=Nb(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Fb(t,n),u=o[l],f=nt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||nt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||nt(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=t.getDataParams(v),g=Ie({},o);g[l]=f(p),h.setItemVisual(v,"style",g)}}}},Qo=new Jt,uL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Nb(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Qo.option=l[n];var u=i(Qo),f=o.ensureUniqueItemVisual(s,"style");Ie(f,u),Qo.option.decal&&(o.setItemVisual(s,"decal",Qo.option.decal),Qo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cL={performRawSeries:!0,overallReset:function(t){var e=it();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),my(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=my(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Fb(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var d=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},ql=Math.PI;function fL(t,e){e=e||{},dt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Yt,n=new Qt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Qr({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Qt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Vc({shape:{startAngle:-ql/2,endAngle:-ql/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ql*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ql*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var $b=function(){function t(e,r,n,i){this._stageTaskMap=it(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=it();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;ee(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Zn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;ee(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,d=f.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,i.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=it(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var d=c.uid,h=s.set(d,o&&o.get(d)||Ls({plan:gL,reset:mL,count:SL}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ls({reset:dL});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=it(),u=e.seriesType,f=e.getTargetSeries,c=!0,d=!1,h="";Zn(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,ee(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Ls({reset:hL,onDirty:pL})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}d&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return nt(e)&&(e={overallReset:e,seriesType:bL(e)}),e.uid=Kc("stageHandler"),r&&(e.visualType=r),e},t}();function dL(t){t.overallReset(t.ecModel,t.api,t.payload)}function hL(t){return t.overallProgress&&vL}function vL(){this.agent.dirty(),this.getDownstream().dirty()}function pL(){this.agent&&this.agent.dirty()}function gL(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function mL(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ir(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ke(e,function(r,n){return zb(n)}):yL}var yL=zb(0);function zb(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,d,h,v){return c[h]==null||d[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Yh=["symbol","symbolSize","symbolRotate","symbolOffset"],Cy=Yh.concat(["symbolKeepAspect"]),wL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Ba(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function wy(t,e,r){for(var n=e.type==="radial"?UL(t,e,r):zL(t,e,r),i=e.colorStops,a=0;a0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Et(t)?[t]:$e(t)?t:null}function gp(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&VL(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=ke(r,function(a){return a/i}),n/=i)}return[r,n]}var GL=new Yi(!0);function dc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Iy(t){return typeof t=="string"&&t!=="none"}function hc(t){var e=t.fill;return e!=null&&e!=="none"}function _y(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Ay(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Ey(t,e,r){var n=jv(e.image,e.__image,r);if(Nc(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Tu),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function WL(t,e,r,n){var i,a=dc(r),o=hc(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||GL,c=e.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,S=void 0,T=void 0,P=void 0,x=void 0;(v||p)&&(x=e.getBoundingRect()),v&&(y=c?wy(t,d,x):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(S=c?wy(t,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(T=c||!e.__canvasFillPattern?Ey(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=T),m&&(P=c||!e.__canvasStrokePattern?Ey(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),v?t.fillStyle=y:g&&(T?t.fillStyle=T:o=!1),p?t.strokeStyle=S:m&&(P?t.strokeStyle=P:a=!1)}var _=e.getGlobalScale();f.setScale(_[0],_[1],e.segmentIgnoreThreshold);var M,C;t.setLineDash&&r.lineDash&&(i=gp(e),M=i[0],C=i[1]);var w=!0;(u||c&co)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),w=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),w&&f.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=C),n||(r.strokeFirst?(a&&Ay(t,r),o&&_y(t,r)):(o&&_y(t,r),a&&Ay(t,r))),M&&t.setLineDash([])}function jL(t,e,r){var n=e.__image=jv(r.image,e.__image,e,e.onload);if(!(!n||!Nc(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,d=s-f;t.drawImage(n,u,f,c,d,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function KL(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Wi,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=gp(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(dc(r)&&t.strokeText(i,r.x,r.y),hc(r)&&t.fillText(i,r.x,r.y)):(hc(r)&&t.fillText(i,r.x,r.y),dc(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var Py=["shadowBlur","shadowOffsetX","shadowOffsetY"],My=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function jb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Dr(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Na.opacity:o}(n||e.blend!==r.blend)&&(a||(Dr(t,i),a=!0),t.globalCompositeOperation=e.blend||Na.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[cr]){if(this._disposed){this.id;return}var a,o,s;if(Ye(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[cr]=!0,!this._model||n){var l=new hD(this._api),u=this._theme,f=this._model=new cp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ev);var c={seriesTransition:s,optionChanged:!0};if(i)this[Er]={silent:a,updateParams:c},this[cr]=!1,this.getZr().wakeUp();else{try{io(this),_i.update.call(this,null,c)}catch(d){throw this[Er]=null,this[cr]=!1,d}this._ssr||this._zr.flush(),this[Er]=null,this[cr]=!1,Jo.call(this,a),qo.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(xt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return ee(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;ee(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return ee(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Wy[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();ee(Os,function(S,T){if(S.group===i){var P=n?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(pt(r)),x=S.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),c=o(x.bottom,c),d.push({dom:P,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,p=c-u,g=dl.createCanvas(),m=Qg(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return ee(d,function(S){var T=S.left-l,P=S.top-u;y+=''+S.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Qt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),ee(d,function(S){var T=new Rn({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});m.add(T)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return Td(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return Td(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Xf(i,r);return ee(o,function(s,l){l.indexOf("Models")>=0&&ee(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Xf(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?IL(s,l,n):_L(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;ee(Sk,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&tu(s,function(v){var p=Rt(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Ie({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var d=f&&c!=null&&o.getComponent(f,c),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),ee(ks,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),ee(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),EL(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&mS(this.getDom(),Sp,"");var n=this,i=n._api,a=n._model;ee(n._componentsViews,function(o){o.dispose(a,i)}),ee(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Os[n.id]},e.prototype.resize=function(r){if(!this[cr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Er]&&(a==null&&(a=this[Er].silent),i=!0,this[Er]=null),this[cr]=!0;try{i&&io(this),_i.update.call(this,{type:"resize",animation:Ie({duration:0},r&&r.animation)})}catch(o){throw this[cr]=!1,o}this[cr]=!1,Jo.call(this,a),qo.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ye(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!tv[r]){var i=tv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=Ie({},r);return n.type=ks[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ye(n)||(n={silent:!!n}),!!vc[r.type]&&this._model){if(this[cr]){this._pendingActions.push(r);return}var i=n.silent;_d.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&xt.browser.weChat&&this._throttledZrFlush(),Jo.call(this,i),qo.call(this,i)}},e.prototype.updateLabelLayout=function(){In.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){io=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),wd(c,!0),wd(c,!1),d.plan()},wd=function(c,d){for(var h=c._model,v=c._scheduler,p=d?c._componentsViews:c._chartsViews,g=d?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,S=0;Sd.get("hoverLayerThreshold")&&!xt.node&&!xt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,d){var h=c.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(c,d){if(!c.preventAutoZ){var h=c.get("z")||0,v=c.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(c,d,h,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),S=0;S0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ms(m))return;if(m instanceof yt&&PM(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var S=m.getTextContent(),T=m.getTextGuideLine();S&&(S.stateTransition=g),T&&(T.stateTransition=g)}m.__dirty&&i(m)}})}Vy=function(c){return new(function(d){De(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){rc(v,p),tn(c)},h.prototype.leaveEmphasis=function(v,p){nc(v,p),tn(c)},h.prototype.enterBlur=function(v){SM(v),tn(c)},h.prototype.leaveBlur=function(v){LS(v),tn(c)},h.prototype.enterSelect=function(v){kS(v),tn(c)},h.prototype.leaveSelect=function(v){OS(v),tn(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h}(xb))(c)},ox=function(c){function d(h,v){for(var p=0;p=0)){jy.push(r);var a=$b.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function dx(t,e){tv[t]=e}function Ak(t,e,r){var n=ik("registerMap");n&&n(t,e,r)}var Ek=HD;Ga(mp,lL);Ga(tf,uL);Ga(tf,cL);Ga(mp,wL);Ga(tf,TL);Ga(ex,rk);cx(wb);fx(sk,ID);dx("default",fL);No({type:Fa,event:Fa,update:Fa},Yr);No({type:Ru,event:Ru,update:Ru},Yr);No({type:As,event:As,update:As},Yr);No({type:Du,event:Du,update:Du},Yr);No({type:Es,event:Es,update:Es},Yr);ux("light",xL);ux("dark",Vb);function es(t){return t==null?0:t.length||1}function Ky(t){return t}var Pk=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Ky,this._newKeyGetter=i||Ky,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&d===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h1)for(var s=0;s30}var ts=Ye,Ai=ke,Bk=typeof Int32Array>"u"?Array:Int32Array,Nk="e\0\0",Xy=-1,Fk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$k=["_approximateExtent"],Yy,au,rs,ns,Pd,ou,Md,yx=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;vx(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===gn;if(l&&!i.pure)for(var u=[],f=e;f0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),$e(a)?a=a.slice():ts(a)&&(a=Ie({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ts(r)?Ie(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ts(e)?Ie(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?Ie(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;uM(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){ee(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ai(this.dimensions,this._getDimInfo,this),this.hostModel)),Pd(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];nt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ov(arguments)))})},t.internalField=function(){Yy=function(e){var r=e._invertedIndicesMap;ee(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new Bk(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}}(),t}();function Sx(t,e){dp(t)||(t=Tb(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=it(),a=[],o=Uk(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&mx(o),l=n===t.dimensionsDefine,u=l?gx(t):px(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=it(f),d=new Db(o),h=0;h0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function Uk(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return ee(e,function(a){var o;Ye(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Hk(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Vk=function(){function t(e){this.coordSysDims=[],this.axisMap=it(),this.categoryAxisMap=it(),this.coordSysName=e}return t}();function Gk(t){var e=t.get("coordinateSystem"),r=new Vk(e),n=Wk[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var Wk={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",En).models[0],a=t.getReferringComponents("yAxis",En).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ao(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),ao(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",En).models[0];e.coordSysDims=["single"],r.set("single",i),ao(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",En).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ao(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),ao(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();ee(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),ao(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function ao(t){return t.get("type")==="category"}function jk(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Kk(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,d;if(ee(a,function(y,S){We(y)&&(a[S]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,p=0;ee(a,function(y){y.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:c}}function Kk(t){return!vx(t.schema)}function Ro(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Xk(t,e){return Ro(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Yk(t,e){var r=t.get("coordinateSystem"),n=fp.get(r),i;return e&&e.coordSysDims&&(i=ke(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=Dk(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Zk(t,e,r){var n,i;return r&&ee(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function rf(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===gn;var o=Gk(e),s=Yk(e,o),l=r.useEncodeDefaulter,u=nt(l)?l:l?Xr(eD,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Sx(i,f),d=Zk(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=jk(e,{schema:c,store:h}),p=new yx(c,e);p.setCalculationInfo(v);var g=d!=null&&Qk(i)?function(m,y,S,T){return T===d?S:this.defaultDimValueGetter(m,y,S,T)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function Qk(t){if(t.sourceFormat===gn){var e=Jk(t.data||[]);return!$e(pl(e))}}function Jk(t){for(var e=0;er[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Bc(ti);var qk=0,rv=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++qk}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&ke(n,eO);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!We(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=it(this.categories))},t}();function eO(t){return Ye(t)&&t.value!=null?t.value:t+""}function nv(t){return t.type==="interval"||t.type==="log"}function tO(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=dS(a/e);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=bx(o),l=i.niceTickExtent=[Vt(Math.ceil(t[0]/o)*o,s),Vt(Math.floor(t[1]/o)*o,s)];return rO(l,t),i}function Rd(t){var e=Math.pow(10,Vv(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Vt(r*e)}function bx(t){return ci(t)+2}function Zy(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function rO(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Zy(t,0,e),Zy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function nf(t,e){return t>=e[0]&&t<=e[1]}function af(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function of(t,e){return t*(e[1]-e[0])+e[0]}var Cp=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new rv({})),$e(i)&&(i=new rv({categories:ke(i,function(a){return Ye(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:We(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),nf(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),af(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(of(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(ti);ti.registerClass(Cp);var Aa=Vt,Ji=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return nf(r,this._extent)},e.prototype.normalize=function(r){return af(r,this._extent)},e.prototype.scale=function(r){return of(r,this._extent)},e.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=bx(r)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Aa(f+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function Tx(t){var e=aO(t),r=[];return ee(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?f/d*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=At(n.get("barWidth"),s),p=At(n.get("barMaxWidth"),s),g=At(n.get("barMinWidth")||(_x(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Tp(a),stackId:wp(n)})}),oO(r)}function oO(t){var e={};ee(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return ee(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=gt(a).length;s=Math.max(35-l*4,15)+"%"}var u=At(s,o),f=At(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),ee(a,function(m){var y=m.maxWidth,S=m.minWidth;if(m.width){var T=m.width;y&&(T=Math.min(T,y)),S&&(T=Math.max(T,S)),m.width=T,c-=T+f*T,d--}else{var T=h;y&&yT&&(T=S),T!==h&&(m.width=T,c-=T+f*T,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,p;ee(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+f)}),p&&(v-=p.width*f);var g=-v/2;ee(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function sO(t,e,r){if(t&&e){var n=t[Tp(e)];return n!=null&&r!=null?n[wp(r)]:n}}function lO(t,e){var r=Cx(t,e),n=Tx(r);ee(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=wp(i),u=n[Tp(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function uO(t){return{seriesType:t,plan:pp(),reset:function(e){if(Ix(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ro(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=cO(i,a),v=_x(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(S,T){for(var P=S.count,x=v&&fi(P*3),_=v&&l&&fi(P*3),M=v&&fi(P),C=n.master.getRect(),w=d?C.width:C.height,b,E=T.getStore(),A=0;(b=S.next())!=null;){var R=E.get(c?g:o,b),k=E.get(s,b),D=h,O=void 0;c&&(O=+R-E.get(o,b));var $=void 0,U=void 0,q=void 0,H=void 0;if(d){var N=n.dataToPoint([R,k]);if(c){var G=n.dataToPoint([O,k]);D=G[0]}$=D,U=N[1]+y,q=N[0]-D,H=m,Math.abs(q)0?r:1:r))}var fO=function(t,e,r,n){for(;r>>1;t[i][1]i&&(this._approxInterval=i);var s=su.length,l=Math.min(fO(su,this._approxInterval,0,s),s-1);this._interval=su[l][1],this._minLevelUnit=su[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Et(r)?r:+Xi(r)},e.prototype.contain=function(r){return nf(this.parse(r),this._extent)},e.prototype.normalize=function(r){return af(this.parse(r),this._extent)},e.prototype.scale=function(r){return of(r,this._extent)},e.type="time",e}(Ji),su=[["second",ip],["minute",ap],["hour",Rs],["quarter-day",Rs*6],["half-day",Rs*12],["day",fn*1.2],["half-week",fn*3.5],["week",fn*7],["month",fn*31],["quarter",fn*95],["half-year",Hm/2],["year",Hm]];function dO(t,e,r,n){var i=Xi(e),a=Xi(r),o=function(v){return Gm(i,v,n)===Gm(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},d=function(){return c()&&o("second")},h=function(){return d()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return d();case"millisecond":return h()}}function hO(t,e){return t/=fn,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function vO(t){var e=30*fn;return t/=e,t>6?6:t>3?3:t>2?2:1}function pO(t){return t/=Rs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Qy(t,e){return t/=e?ap:ip,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function gO(t){return dS(t)}function mO(t,e,r){var n=new Date(t);switch(To(e)){case"year":case"month":n[lb(r)](0);case"day":n[ub(r)](1);case"hour":n[cb(r)](0);case"minute":n[fb(r)](0);case"second":n[db(r)](0),n[hb(r)](0)}return n.getTime()}function yO(t,e,r,n){var i=1e4,a=ab,o=0;function s(w,b,E,A,R,k,D){for(var O=new Date(b),$=b,U=O[A]();$1&&k===0&&E.unshift({value:E[0].value-$})}}for(var k=0;k=n[0]&&y<=n[1]&&c++)}var S=(n[1]-n[0])/e;if(c>S*1.5&&d>S/1.5||(u.push(g),c>S||t===a[h]))break}f=[]}}}for(var T=vr(ke(u,function(w){return vr(w,function(b){return b.value>=n[0]&&b.value<=n[1]&&!b.notAdd})}),function(w){return w.length>0}),P=[],x=T.length-1,h=0;h0;)a*=10;var s=[Vt(xO(n[0]/a)*a),Vt(bO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Bs.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Sn(r)/Sn(this.base),nf(r,this._extent)},e.prototype.normalize=function(r){return r=Sn(r)/Sn(this.base),af(r,this._extent)},e.prototype.scale=function(r){return r=of(r,this._extent),lu(this.base,r)},e.type="log",e}(ti),Ex=Ip.prototype;Ex.getMinorTicks=Bs.getMinorTicks;Ex.getLabel=Bs.getLabel;function uu(t,e){return SO(t,ci(e))}ti.registerClass(Ip);var CO=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[TO[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=wO[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),wO={min:"_determinedMin",max:"_determinedMax"},TO={min:"_dataMin",max:"_dataMax"};function IO(t,e,r){var n=t.rawExtentInfo;return n||(n=new CO(t,e,r),t.rawExtentInfo=n,n)}function cu(t,e){return e==null?null:Wu(e)?NaN:t.parse(e)}function Px(t,e){var r=t.type,n=IO(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=Cx("bar",o),l=!1;if(ee(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=Tx(s),f=_O(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function _O(t,e,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=sO(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;ee(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;ee(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,c=1-(s+l)/a,d=f/c-f;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function qy(t,e){var r=e,n=Px(t,r),i=n.extent,a=r.get("splitNumber");t instanceof Ip&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function AO(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Cp({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Ax({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ti.getClass(e)||Ji)}}function EO(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Fo(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(i,a){return t.scale.getFormattedLabel(i,a,n)}}(e):We(e)?function(n){return function(i){var a=t.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(e):nt(e)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(PO(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function PO(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function MO(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Cp?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=Fo(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(e0.push(t),nt(t)&&(t={install:t}),t.install(LO))}var al=qt();function Dx(t,e){var r=ke(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function kO(t){var e=t.getLabelModel().get("customValues");if(e){var r=Fo(t);return{labels:Dx(t,e).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:t.scale.getLabel(i),tickValue:n}})}}return t.type==="category"?BO(t):FO(t)}function OO(t,e){var r=t.getTickModel().get("customValues");return r?{ticks:Dx(t,r)}:t.type==="category"?NO(t,e):{ticks:ke(t.scale.getTicks(),function(n){return n.value})}}function BO(t){var e=t.getLabelModel(),r=Lx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Lx(t,e){var r=kx(t,"labels"),n=_p(e),i=Ox(r,n);if(i)return i;var a,o;return nt(n)?a=Fx(t,n):(o=n==="auto"?$O(t):n,a=Nx(t,o)),Bx(r,n,{labels:a,labelCategoryInterval:o})}function NO(t,e){var r=kx(t,"ticks"),n=_p(e),i=Ox(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),nt(n))a=Fx(t,n,!0);else if(n==="auto"){var s=Lx(t,t.getLabelModel());o=s.labelCategoryInterval,a=ke(s.labels,function(l){return l.tickValue})}else o=n,a=Nx(t,o,!0);return Bx(r,n,{ticks:a,tickCategoryInterval:o})}function FO(t){var e=t.scale.getTicks(),r=Fo(t);return{labels:ke(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function kx(t,e){return al(t)[e]||(al(t)[e]=[])}function Ox(t,e){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=sS(r({value:l}),e.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/f,y=h/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var S=Math.max(0,Math.floor(Math.min(m,y))),T=al(t.model),P=t.getExtent(),x=T.lastAutoInterval,_=T.lastTickCount;return x!=null&&_!=null&&Math.abs(x-S)<=1&&Math.abs(_-o)<=1&&x>S&&T.axisExtent0===P[0]&&T.axisExtent1===P[1]?S=x:(T.lastTickCount=o,T.lastAutoInterval=S,T.axisExtent0=P[0],T.axisExtent1=P[1]),S}function UO(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Nx(t,e,r){var n=Fo(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Mx(t),d=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;d&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);h&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function Fx(t,e,r){var n=t.scale,i=Fo(t),a=[];return ee(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var t0=[0,1],$x=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return WE(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),r0(n,i.count())),Dh(e,t0,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),r0(n,i.count()));var a=Dh(e,n,t0,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=OO(this,r),i=n.ticks,a=ke(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return HO(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ke(n,function(a){return ke(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(){return kO(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return zO(this)},t}();function r0(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function HO(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;ee(e,function(h){h.coord-=u/2});var f=t.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var c=a[0]>a[1];d(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&d(a[0],e[0].coord)&&e.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&d(o.coord,a[1])&&e.push({coord:a[1]});function d(h,v){return h=Vt(h),v=Vt(v),c?h>v:h0){e=e/180*Math.PI,Ni.fromArray(t[0]),$t.fromArray(t[1]),ir.fromArray(t[2]),Je.sub(Fi,Ni,$t),Je.sub(Wn,ir,$t);var r=Fi.len(),n=Wn.len();if(!(r<.001||n<.001)){Fi.scale(1/r),Wn.scale(1/n);var i=Fi.dot(Wn),a=Math.cos(e);if(a1&&Je.copy(wr,ir),wr.toArray(t[1])}}}}function GO(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Ni.fromArray(t[0]),$t.fromArray(t[1]),ir.fromArray(t[2]),Je.sub(Fi,$t,Ni),Je.sub(Wn,ir,$t);var n=Fi.len(),i=Wn.len();if(!(n<.001||i<.001)){Fi.scale(1/n),Wn.scale(1/i);var a=Fi.dot(e),o=Math.cos(r);if(a=l)Je.copy(wr,ir);else{wr.scaleAndAdd(Wn,s/Math.tan(Math.PI/2-f));var c=ir.x!==$t.x?(wr.x-$t.x)/(ir.x-$t.x):(wr.y-$t.y)/(ir.y-$t.y);if(isNaN(c))return;c<0?Je.copy(wr,$t):c>1&&Je.copy(wr,ir)}wr.toArray(t[1])}}}}function Dd(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function WO(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=ph(n[0],n[1]),a=ph(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Ef([],n[1],n[0],o/i),l=Ef([],n[1],n[2],o/a),u=Ef([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&P(-f/o,0,o);var p=t[0],g=t[o-1],m,y;S(),m<0&&x(-m,.8),y<0&&x(y,.8),S(),T(m,y,1),T(y,m,-1),S(),m<0&&_(-m),y<0&&_(y);function S(){m=p.rect[e]-n,y=i-g.rect[e]-g.rect[r]}function T(M,C,w){if(M<0){var b=Math.min(C,-M);if(b>0){P(b*w,0,o);var E=b+M;E<0&&x(-E*w,1)}else x(-M*w,1)}}function P(M,C,w){M!==0&&(u=!0);for(var b=C;b0)for(var E=0;E0;E--){var D=w[E-1]*k;P(-D,E,o)}}}function _(M){var C=M<0?-1:1;M=Math.abs(M);for(var w=Math.ceil(M/(o-1)),b=0;b0?P(w,0,b+1):P(-w,o-b-1,o),M-=w,M<=0)return}return u}function ZO(t,e,r,n){return YO(t,"y","height",e,r,n)}function QO(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new It(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Jr);function Ap(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Mo(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(e[a])}return n.join(" ")}var Ep=function(t){De(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Qi(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=qO,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){rc(this.childAt(0))},e.prototype.downplay=function(){nc(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?d.attr(h):yr(d,h,s,n),Zs(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Or(d,h,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,d,h,v,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,d=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),S=y.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),d=S.get("focus"),h=S.get("blurScope"),v=S.get("disabled"),p=Oo(y),g=S.getShallow("scale"),m=y.getShallow("cursor")}var T=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(T||0)*Math.PI/180||0);var P=Wb(r.getItemVisual(n,"symbolOffset"),i);P&&(s.x=P[0],s.y=P[1]),m&&s.attr("cursor",m);var x=r.getItemVisual(n,"style"),_=x.fill;if(s instanceof Rn){var M=s.style;s.useStyle(Ie({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},x))}else s.__isEmptyBrush?s.useStyle(Ie({},x)):s.useStyle(x),s.style.decal=null,s.setColor(_,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),w=this._z2;C!=null?w==null&&(this._z2=s.z2,s.z2+=C):w!=null&&(s.z2=w,this._z2=null);var b=o&&o.useNameLabel;ko(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:_,defaultOpacity:x.opacity});function E(k){return b?r.getName(k):Ap(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var A=s.ensureState("emphasis");A.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;A.scaleX=this._sizeX*R,A.scaleY=this._sizeY*R,this.setSymbolScale(1),Ao(this,d,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Rt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ac(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ac(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Gb(r.getItemVisual(n,"symbolSize"))},e}(Yt);function qO(t,e){this.parent.drift(t,e)}function Ld(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function n0(t){return t!=null&&!Ye(t)&&(t={isIgnore:t}),t||{}}function i0(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Oo(e),cursorStyle:e.get("cursor")}}var Hx=function(){function t(e){this.group=new Yt,this._SymbolCtor=e||Ep}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=n0(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=i0(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var d=f(c);if(Ld(e,d,c,r)){var h=new o(e,c,l,u);h.setPosition(d),e.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,d){var h=a.getItemGraphicEl(d),v=f(c);if(!Ld(e,v,c,r)){n.remove(h);return}var p=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):yr(h,m,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=i0(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=n0(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function Gx(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function tB(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function rB(t,e,r,n,i,a,o,s){for(var l=tB(t,e),u=[],f=[],c=[],d=[],h=[],v=[],p=[],g=Vx(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],S=0;S=i||p<0)break;if($a(m,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,d=y;else{var S=m-u,T=y-f;if(S*S+T*T<.5){p+=a;continue}if(o>0){for(var P=p+a,x=e[P*2],_=e[P*2+1];x===m&&_===y&&g=n||$a(x,_))h=m,v=y;else{w=x-u,b=_-f;var R=m-u,k=x-m,D=y-f,O=_-y,$=void 0,U=void 0;if(s==="x"){$=Math.abs(R),U=Math.abs(k);var q=w>0?1:-1;h=m-q*$*o,v=y,E=m+q*U*o,A=y}else if(s==="y"){$=Math.abs(D),U=Math.abs(O);var H=b>0?1:-1;h=m,v=y-H*$*o,E=m,A=y+H*U*o}else $=Math.sqrt(R*R+D*D),U=Math.sqrt(k*k+O*O),C=U/(U+$),h=m-w*o*(1-C),v=y-b*o*(1-C),E=m+w*o*C,A=y+b*o*C,E=Ei(E,Pi(x,m)),A=Ei(A,Pi(_,y)),E=Pi(E,Ei(x,m)),A=Pi(A,Ei(_,y)),w=E-m,b=A-y,h=m-w*$/U,v=y-b*$/U,h=Ei(h,Pi(u,m)),v=Ei(v,Pi(f,y)),h=Pi(h,Ei(u,m)),v=Pi(v,Ei(f,y)),w=m-h,b=y-v,E=m+w*U/$,A=y+b*U/$}t.bezierCurveTo(c,d,h,v,m,y),c=E,d=A}else t.lineTo(m,y)}u=m,f=y,p+=a}return g}var Wx=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),nB=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Wx},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&$a(i[o*2-2],i[o*2-1]);o--);for(;a=0){var T=u?(v-l)*S+l:(h-s)*S+s;return u?[r,T]:[T,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var P=u?Ku(s,h,p,m,r,f):Ku(l,v,g,y,r,f);if(P>0)for(var x=0;x=0){var T=u?or(l,v,g,y,_):or(s,h,p,m,_);return u?[r,T]:[T,r]}}s=m,l=y;break}}},e}(yt),iB=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Wx),aB=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new iB},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&$a(i[s*2-2],i[s*2-1]);s--);for(;oe){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function uB(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=ke(a.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var d=lB(u,i==="x"?r.getWidth():r.getHeight()),h=d.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 v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";ee(d,function(S){S.offset=(S.coord-p)/m}),d.push({offset:h?d[h-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:c[0]||"transparent"});var y=new jS(0,0,0,0,d,!0);return y[i]=p,y[i+"2"]=g,y}}}function cB(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&fB(a,e))){var o=e.mapDimension(a.dim),s={};return ee(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function fB(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function dB(t,e){return isNaN(t)||isNaN(e)}function hB(t){for(var e=t.length/2;e>0&&dB(t[e*2-2],t[e*2-1]);e--);return e-1}function u0(t,e){return[t[e*2],t[e*2+1]]}function vB(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Xx(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var q=p.getState("emphasis").style;q.lineWidth=+p.style.lineWidth+1}Rt(p).seriesIndex=r.seriesIndex,Ao(p,O,$,U);var H=l0(r.get("smooth")),N=r.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:N,connectNulls:M}),g){var G=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(dt(f.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),G&&(j=l0(G.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:j,smoothMonotone:N,connectNulls:M}),Eo(g,r,"areaStyle"),Rt(g).seriesIndex=r.seriesIndex,Ao(g,O,$,U)}var oe=function(Y){a._changePolyState(Y)};l.eachItemGraphicEl(function(Y){Y&&(Y.onHoverStateChange=oe)}),this._polyline.onHoverStateChange=oe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=b,this._valueOrigin=T,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Rt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=_o(o,a);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 d=r.get("zlevel")||0,h=r.get("z")||0;u=new Ep(o,s),u.x=f,u.y=c,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Br.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=_o(o,a);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 Br.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;xm(this._polyline,r),n&&xm(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new nB({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new aB({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");nt(f)&&(f=f(null));var c=u.get("animationDelay")||0,d=nt(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,S=void 0;if(i)if(o){var T=i,P=n.pointToCoord(g);a?(m=T.startAngle,y=T.endAngle,S=-P[1]/180*Math.PI):(m=T.r0,y=T.r,S=P[0])}else{var x=i;a?(m=x.x,y=x.x+x.width,S=h.x):(m=x.y+x.height,y=x.y,S=h.y)}var _=y===m?0:(S-m)/(y-m);l&&(_=1-_);var M=nt(c)?c(v):f*_+d,C=p.getSymbolPath(),w=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:M}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Xx(r)){var o=r.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 Qr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hB(l);f>=0&&(ko(s,Oo(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,d,h){return h!=null?Ux(o,h):Ap(o,c)},enableTextSetter:!0},pB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,S=n.shape,T=y?m?S.x:S.y+S.height:m?S.x+S.width:S.y,P=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),_=m?"x":"y",M=vB(c,T,_),C=M.range,w=C[1]-C[0],b=void 0;if(w>=1){if(w>1&&!h){var E=u0(c,C[0]);u.attr({x:E[0]+P,y:E[1]+x}),o&&(b=d.getRawValue(C[0]))}else{var E=f.getPointOn(T,_);E&&u.attr({x:E[0]+P,y:E[1]+x});var A=d.getRawValue(C[0]),R=d.getRawValue(C[1]);o&&(b=dP(i,v,A,R,M.t))}a.lastFrameIndex=C[0]}else{var k=r===1||a.lastFrameIndex>0?C[0]:0,E=u0(c,k);o&&(b=d.getRawValue(k)),u.attr({x:E[0]+P,y:E[1]+x})}if(o){var D=jc(u);typeof D.setLabelText=="function"&&D.setLabelText(b)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,d=rB(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=Mi(d.current,i,o,l),v=Mi(d.stackedOnCurrent,i,o,l),p=Mi(d.next,i,o,l),g=Mi(d.stackedOnNext,i,o,l)),s0(h,p)>3e3||f&&s0(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),yr(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),yr(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],S=d.status,T=0;Te&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;re&&(e=a,r=i)}return isFinite(r)?r:NaN},nearest:function(t){return t[0]}},yB=function(t){return Math.round(t.length/2)};function Yx(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;We(a)?v=mB[a]:nt(a)&&(v=a),v&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,v,yB))}}}}}function SB(t){t.registerChartView(gB),t.registerSeriesModel(JO),t.registerLayout(Mp("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Yx("line"))}var av=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return rf(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)ee(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),p=d.getTickModel().get("alignWithLabel"),g=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!p&&(g+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,S=void 0,T=1,P=0;Pg){S=(x+y)/2;break}P===1&&(T=_-v[0].tickValue)}S==null&&(y?y&&(S=v[v.length-1].coord):S=v[0].coord),s[h]=d.toGlobalCoord(S)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Jr);Jr.registerClass(av);var bB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return rf(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=rb(av.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(av),xB=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),c0=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new xB},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?c-fMath.PI/2&&fs)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){oc(a,r,Rt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Br),f0={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Od(e.x,t.x),s=Bd(e.x+e.width,i),l=Od(e.y,t.y),u=Bd(e.y+e.height,a),f=si?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Bd(e.r,t.r),a=Od(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},d0={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Qt({shape:Ie({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?c0:ia,f=new u({shape:n,z2:1});f.name="item";var c=Zx(i);if(f.calculateTextPosition=CB(c,{isRoundCap:u===c0}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?n.r0:n.startAngle,v[h]=n[h],(s?yr:Or)(f,{shape:v},a)}return f}};function _B(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function h0(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?yr:Or)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?yr:Or)(r,{shape:u},f,i)}function v0(t,e){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function PB(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Zx(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function g0(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=ps(n.getModel("itemStyle"),f,!0);Ie(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=n.getShallow("cursor");d&&t.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=Oo(n);ko(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:Ap(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,wB(t,g==="outside"?h:g,Zx(o),n.get(["label","rotate"]))}AR(p,v,a.getRawValue(r),function(y){return Ux(e,y)});var m=n.getModel(["emphasis"]);Ao(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),Eo(t,n),PB(i)&&(t.style.fill="none",t.style.stroke="none",ee(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function MB(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var RB=function(){function t(){}return t}(),m0=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new RB},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?r:null},30,!1);function DB(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Qx(t,e,r){if(Pp(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function LB(t,e,r){var n=t.type==="polar"?ia:Qt;return new n({shape:Qx(e,r,t),silent:!0,z2:0})}function kB(t){t.registerChartView(IB),t.registerSeriesModel(bB),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Xr(lO,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uO("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Yx("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var b0=Math.PI*2,vu=Math.PI/180;function Jx(t,e){return cc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qx(t,e){var r=Jx(t,e),n=t.get("center"),i=t.get("radius");$e(i)||(i=[0,i]);var a=At(r.width,e.getWidth()),o=At(r.height,e.getHeight()),s=Math.min(a,o),l=At(i[0],s/2),u=At(i[1],s/2),f,c,d=t.coordinateSystem;if(d){var h=d.dataToPoint(n);f=h[0]||0,c=h[1]||0}else $e(n)||(n=[n,n]),f=At(n[0],a)+r.x,c=At(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function OB(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Jx(n,r),s=qx(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,d=-n.get("startAngle")*vu,h=n.get("endAngle"),v=n.get("padAngle")*vu;h=h==="auto"?d-b0:-h*vu;var p=n.get("minAngle")*vu,g=p+v,m=0;i.each(a,function(O){!isNaN(O)&&m++});var y=i.getSum(a),S=Math.PI/(y||m)*2,T=n.get("clockwise"),P=n.get("roseType"),x=n.get("stillShowZeroSum"),_=i.getDataExtent(a);_[0]=0;var M=T?1:-1,C=[d,h],w=M*v/2;wS(C,!T),d=C[0],h=C[1];var b=eC(n);b.startAngle=d,b.endAngle=h,b.clockwise=T;var E=Math.abs(h-d),A=E,R=0,k=d;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(O,$){var U;if(isNaN(O)){i.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:l,cy:u,r0:c,r:P?NaN:f});return}P!=="area"?U=y===0&&x?S:O*S:U=E/m,UU?(H=k+M*U/2,N=H):(H=k+w,N=q-w),i.setItemLayout($,{angle:U,startAngle:H,endAngle:N,clockwise:T,cx:l,cy:u,r0:c,r:P?Dh(O,_,[c,f]):f}),k=q}),Ar?m:g,P=Math.abs(S.label.y-r);if(P>=T.maxY){var x=S.label.x-e-S.len2*i,_=n+S.len,M=Math.abs(x)<_?Math.sqrt(P*P/(1-x*x/_/_)):_;T.rB=M,T.maxY=P}T.list.push(S)}f(g),f(m)}for(var d=t.length,h=0;ht.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function Nd(t){return t.position==="center"}function FB(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*BB,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(x){x.ignore=!0}function v(x){if(!x.ignore)return!0;for(var _ in x.states)if(x.states[_].ignore===!1)return!0;return!1}e.each(function(x){var _=e.getItemGraphicEl(x),M=_.shape,C=_.getTextContent(),w=_.getTextGuideLine(),b=e.getItemModel(x),E=b.getModel("label"),A=E.get("position")||b.get(["emphasis","label","position"]),R=E.get("distanceToLabelLine"),k=E.get("alignTo"),D=At(E.get("edgeDistance"),u),O=E.get("bleedMargin"),$=b.getModel("labelLine"),U=$.get("length");U=At(U,u);var q=$.get("length2");if(q=At(q,u),Math.abs(M.endAngle-M.startAngle)0?"right":"left":N>0?"left":"right"}var he=Math.PI,Ae=0,Re=E.get("rotate");if(Et(Re))Ae=Re*(he/180);else if(A==="center")Ae=0;else if(Re==="radial"||Re===!0){var lt=N<0?-H+he:-H;Ae=lt}else if(Re==="tangential"&&A!=="outside"&&A!=="outer"){var vt=Math.atan2(N,G);vt<0&&(vt=he*2+vt);var mt=G>0;mt&&(vt=he+vt),Ae=vt-he}if(a=!!Ae,C.x=j,C.y=oe,C.rotation=Ae,C.setStyle({verticalAlign:"middle"}),fe){C.setStyle({align:te});var Ot=C.states.select;Ot&&(Ot.x+=C.x,Ot.y+=C.y)}else{var Fe=C.getBoundingRect().clone();Fe.applyTransform(C.getComputedTransform());var Zt=(C.style.margin||0)+2.1;Fe.y-=Zt/2,Fe.height+=Zt,r.push({label:C,labelLine:w,position:A,len:U,len2:q,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new Je(N,G),linePoints:Y,textAlign:te,labelDistance:R,labelAlignTo:k,edgeDistance:D,bleedMargin:O,rect:Fe,unconstrainedWidth:Fe.width,labelStyleWidth:C.style.width})}_.setTextConfig({inside:fe})}}),!a&&t.get("avoidLabelOverlap")&&NB(r,n,i,l,u,d,f,c);for(var p=0;p0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c=a.r0}},e.type="pie",e}(Br);function nC(t,e,r){e=$e(e)&&{coordDimensions:e}||Ie({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Sx(n,e).dimensions,a=new yx(i,t);return a.initData(n,r),a}var iC=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),UB=qt(),HB=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new iC(jt(this.getData,this),jt(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return nC(this,{coordDimensions:["value"],encodeDefaulter:Xr(tD,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=UB(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=jE(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Lh(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Jr);function VB(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Et(o)&&!isNaN(o)&&o<0)})}}}function GB(t){t.registerChartView(zB),t.registerSeriesModel(HB),AL("pie",t.registerAction),t.registerLayout(Xr(OB,"pie")),t.registerProcessor(tC("pie")),t.registerProcessor(VB("pie"))}var WB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return rf(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Jr),aC=4,jB=function(){function t(){}return t}(),KB=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new jB},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var f=u*2,c=a[f]-s/2,d=a[f+1]-l/2;if(r>=c&&n>=d&&r<=c+s&&n<=d+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,d=0;d=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),YB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Mp("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new XB:new Hx,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Br),ZB=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Tt),ov=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",En).models[0]},e.type="cartesian2dAxis",e}(Tt);Mn(ov,Rx);var oC={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},QB=Ct({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},oC),Rp=Ct({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},oC),JB=Ct({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Rp),qB=dt({logBase:10},Rp);const sC={category:QB,value:Rp,time:JB,log:qB};var e5={value:1,category:1,time:1,log:1};function C0(t,e,r,n){ee(e5,function(i,a){var o=Ct(Ct({},sC[a],!0),n,!0),s=function(l){De(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var d=el(this),h=d?Jc(f):{},v=c.getTheme();Ct(f,v.get(a+"Axis")),Ct(f,this.getDefaultOption()),f.type=w0(f),d&&Po(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=rv.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.type=e+"Axis."+a,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",w0)}function w0(t){return t.type||(t.data?"category":"value")}var t5=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ke(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),vr(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),sv=["x","y"];function T0(t){return t.type==="interval"||t.type==="time"}var r5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=sv,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!T0(r)||!T0(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,d=o[0]-i[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,d,h];this._invTransform=Fv([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new It(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return dn(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return dn(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new It(a,o,s,l)},e}(t5),n5=function(t){De(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}($x);function i5(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:c[0],u==="x"?v[d[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Vs(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function I0(t){return t.get("coordinateSystem")==="cartesian2d"}function _0(t){var e={xAxisModel:null,yAxisModel:null};return ee(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,En).models[0];e[n]=a}),e}var Fd=Math.log;function lC(t,e,r){var n=Ji.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=Px(t,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(t.type==="log"){var d=Fd(t.base);u=[Fd(u[0])/d,Fd(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(t);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(t),p=u[0],g=u[1];if(f&&c)v=(g-p)/o;else if(f)for(g=u[0]+v*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)v=Rd(v),p=u[1]-v*o;else{var m=t.getTicks().length-1;m>o&&(v=Rd(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=Vt(g-y),p<0&&u[0]>=0?(p=0,g=Vt(y)):g>0&&u[1]<=0&&(g=0,p=-Vt(y))}var S=(i[0].value-a[0].value)/s,T=(i[o].value-a[o].value)/s;n.setExtent.call(t,p+v*S,g+v*T),n.setInterval.call(t,v),(S||T)&&n.setNiceExtent.call(t,p+v,g-v)}var a5=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sv,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=gt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var d=+l[c],h=o[d],v=h.model,p=h.scale;nv(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(qy(p,v),nv(p)&&(s=h))}f.length&&(s||(s=f.pop(),qy(s.scale,s.model)),ee(f,function(g){lC(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};ee(n.x,function(o){A0(n,"y",o,a)}),ee(n.y,function(o){A0(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=cc(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(ee(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=MO(u);if(f){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+d,u.position==="top"?o.y+=f.height+d:u.position==="left"&&(o.x+=f.width+d)}}}),l()),ee(this._coordsList,function(u){u.calcAffineTransform()});function l(){ee(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),o5(u,f?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}Ye(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):qu(i-$i)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<$i?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),P0={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(dn(s,s,o),dn(l,l,o));var f=Ie({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Zi({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Qs(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var d=e.get(["axisLine","symbol"]);if(d!=null){var h=e.get(["axisLine","symbolSize"]);We(d)&&(d=[d,d]),(We(h)||Et(h))&&(h=[h,h]);var v=Wb(e.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];ee([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var S=Qi(d[y],-p/2,-g/2,p,g,f.stroke,!0),T=m.r+m.offset,P=u?l:s;S.attr({rotation:m.rotate,x:P[0]+T*Math.cos(t.rotation),y:P[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),r.add(S)}})}}},axisTickLabel:function(t,e,r,n){var i=u5(r,n,e,t),a=f5(r,n,e,t);if(l5(e,a,i),c5(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=XO(ke(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));QO(o)}},axisName:function(t,e,r,n){var i=Vs(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,R0(a)?t.labelOffset+o*l:0],d,h=e.get("nameRotate");h!=null&&(h=h*$i/180);var v;R0(a)?d=Gi.innerTextLayout(t.rotation,h??t.rotation,o):(d=s5(t.rotation,a,h||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,y=Vs(t.nameTruncateMaxWidth,g.maxWidth,v),S=new Qr({x:c[0],y:c[1],rotation:d.rotation,silent:Gi.isLabelSilent(e),style:Js(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(tp({el:S,componentModel:e,itemName:i}),S.__fullText=i,S.anid="name",e.get("triggerEvent")){var T=Gi.makeAxisEventDataBase(e);T.targetType="axisName",T.name=i,Rt(S).eventData=T}n.add(S),S.updateTransform(),r.add(S),S.decomposeTransform()}}};function s5(t,e,r,n){var i=fS(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return qu(i-$i/2)?(o=l?"bottom":"top",a="center"):qu(i-$i*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<$i*1.5&&i>$i/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function l5(t,e,r){if(!Mx(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],f=r[1],c=r[r.length-1],d=r[r.length-2];n===!1?(rn(a),rn(u)):M0(a,o)&&(n?(rn(o),rn(f)):(rn(a),rn(u))),i===!1?(rn(s),rn(c)):M0(l,s)&&(i?(rn(l),rn(d)):(rn(s),rn(c)))}}function rn(t){t&&(t.ignore=!0)}function M0(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=Nv([]);return z1(i,i,-t.rotation),r.applyTransform(xo([],i,t.getLocalTransform())),n.applyTransform(xo([],i,e.getLocalTransform())),r.intersect(n)}}function R0(t){return t==="middle"||t==="center"}function uC(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;ll[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=dt({color:v.color},l));var g=Ct(pt(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:d},!1);if(We(f)){var m=g.name;g.name=f.replace("{value}",m??"")}else nt(f)&&(g.name=f(g.name,g));var y=new Jt(g,null,this.ecModel);return Mn(y,Rx.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ct({lineStyle:{color:"#bbb"}},is.axisLine),axisLabel:pu(is.axisLabel,!1),axisTick:pu(is.axisTick,!1),splitLine:pu(is.splitLine,!0),splitArea:pu(is.splitArea,!0),indicator:[]},e}(Tt),R5=["axisLine","axisTickLabel","axisName"],D5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=ke(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Gi(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});ee(a,function(o){ee(R5,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),d=l.get("color"),h=u.get("color"),v=$e(d)?d:[d],p=$e(h)?h:[h],g=[],m=[];function y(k,D,O){var $=O%D.length;return k[$]=k[$]||[],$}if(a==="circle")for(var S=i[0].getTicksCoords(),T=n.cx,P=n.cy,x=0;x=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Tt),oo=Xr,cv=ee,gu=Yt,hC=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new gu),this.group.add(this._selectorGroup=new gu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=cc(f,c,d),v=this.layoutInner(r,o,h,a,l,u),p=cc(dt({width:v.width,height:v.height},f),c,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=N5(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=it(),c=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),cv(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new gu;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),S=y.getVisual("legendLineStyle")||{},T=y.getVisual("legendIcon"),P=y.getVisual("style"),x=this._createItem(m,p,v,h,n,r,S,P,T,c,a);x.on("click",oo(B0,p,null,a,d)).on("mouseover",oo(fv,m.name,null,a,d)).on("mouseout",oo(dv,m.name,null,a,d)),i.ssr&&x.eachChild(function(_){var M=Rt(_);M.seriesIndex=m.seriesIndex,M.dataIndex=v,M.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(_){if(!f.get(p)&&_.legendVisualProvider){var M=_.legendVisualProvider;if(!M.containName(p))return;var C=M.indexOfName(p),w=M.getItemVisual(C,"style"),b=M.getItemVisual(C,"legendIcon"),E=Kn(w.fill);E&&E[3]===0&&(E[3]=.2,w=Ie(Ie({},w),{fill:Rc(E,"rgba")}));var A=this._createItem(_,p,v,h,n,r,{},w,b,c,a);A.on("click",oo(B0,null,p,a,d)).on("mouseover",oo(fv,null,p,a,d)).on("mouseout",oo(dv,null,p,a,d)),i.ssr&&A.eachChild(function(R){var k=Rt(R);k.seriesIndex=_.seriesIndex,k.dataIndex=v,k.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();cv(r,function(u){var f=u.type,c=new Qr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);ko(c,{normal:d,emphasis:h},{defaultText:u.title}),$h(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),S=a.get("icon");f=S||f||"roundRect";var T=$5(f,a,l,u,h,g,d),P=new gu,x=a.getModel("textStyle");if(nt(r.getLegendIcon)&&(!S||S==="inherit"))P.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:y}));else{var _=S==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;P.add(z5({itemWidth:v,itemHeight:p,icon:f,iconRotate:_,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:y}))}var M=s==="left"?v+5:-5,C=s,w=o.get("formatter"),b=n;We(w)&&w?b=w.replace("{name}",n??""):nt(w)&&(b=w(n));var E=g?x.getTextColor():a.get("inactiveColor");P.add(new Qr({style:Js(x,{text:b,x:M,y:p/2,fill:E,align:C,verticalAlign:"middle"},{inheritColor:E})}));var A=new Qt({shape:P.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&tp({el:A,componentModel:o,itemName:n,itemTooltipOption:R.option}),P.add(A),P.eachChild(function(k){k.silent=!0}),A.silent=!c,this.getContentGroup().add(P),$h(P),P.__legendDataIndex=i,P},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ds(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ds("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+v:c[p]+=d[g]+v,h[1-p]+=f[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var S={x:0,y:0};return S[g]=f[g]+v+d[g],S[m]=Math.max(f[m],d[m]),S[y]=Math.min(0,d[y]+h[1-p]),S}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(mi);function $5(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),cv(g,function(y,S){g[S]==="inherit"&&(g[S]=m[S])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Jh(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function z5(t){var e=t.icon||"roundRect",r=Qi(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function B0(t,e,r,n){dv(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),fv(t,e,r,n)}function vC(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;ni[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],S=Ze(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var T=r.get("pageButtonPosition",!0);T==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+S}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var P={x:0,y:0};if(P[o]=p?i[o]:h[o],P[s]=Math.max(h[s],v[s]),P[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-v[o]-S,0),x[s]=P[s],c.setClipPath(new Qt({shape:x})),c.__rectSize=x[o]}else d.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(r);return _.pageIndex!=null&&yr(f,{x:_.contentPosition[0],y:_.contentPosition[1]},p?r:null),this._updatePageInfoView(r,_),P},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;ee(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",d=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",We(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=zd[o],l=Ud[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],d=f.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=T(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,S=null;g<=d;++g)S=T(f[g]),(!S&&y.e>m.s+a||S&&!P(S,m.s))&&(y.i>m.i?m=y:m=S,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=S;for(var g=u-1,m=p,y=p,S=null;g>=-1;--g)S=T(f[g]),(!S||!P(y,S.s))&&m.i=_&&x.s<=_+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e}(hC);function W5(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function j5(t){Ha(pC),t.registerComponentModel(V5),t.registerComponentView(G5),W5(t)}function K5(t){Ha(pC),Ha(j5)}var Hd=Math.sin,Vd=Math.cos,gC=Math.PI,Ea=Math.PI*2,X5=180/gC,mC=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),d=Bi(c-Ea)||(f?u>=Ea:-u>=Ea),h=u>0?u%Ea:u%Ea+Ea,v=!1;d?v=!0:Bi(c)?v=!1:v=h>=gC==!!f;var p=e+n*Vd(o),g=r+i*Hd(o);this._start&&this._add("M",p,g);var m=Math.round(a*X5);if(d){var y=1/this._p,S=(f?1:-1)*(Ea-y);this._add("A",n,i,m,1,+f,e+n*Vd(o+S),r+i*Hd(o+S)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var T=e+n*Vd(s),P=r+i*Hd(s);this._add("A",n,i,m,+v,+f,T,P)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,d=1;d"}function nN(t){return""}function Lp(t,e){e=e||{};var r=e.newline?` `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return rN(o,s)+(o!=="style"?O2(l):l||"")+(a?""+r+ke(a,function(u){return n(u)}).join(r)+r:"")+nN(o)}return n(t)}function iN(t,e,r){r=r||{};var n=r.newline?` `:"",i=" {"+n,a=n+"}",o=ke(gt(t),function(l){return l+i+ke(gt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=ke(gt(e),function(l){return"@keyframes "+l+i+ke(gt(e[l]),function(u){return u+i+ke(gt(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function vv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function z0(t,e,r,n){return Kt("svg","root",{width:t,height:e,xmlns:yC,"xmlns:xlink":SC,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var aN=0;function xC(){return aN++}var U0={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"},Da="transform-origin";function oN(t,e,r){var n=Ie({},t.shape);Ie(n,e),t.buildPath(r,n);var i=new mC;return i.reset(tS(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function sN(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Da]=r+"px "+n+"px")}var lN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function CC(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function uN(t,e,r){var n=t.shape.paths,i={},a,o;if(ee(n,function(l){var u=vv(r.zrId);u.animation=!0,sf(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,d=gt(f),h=d.length;if(h){o=d[h-1];var v=f[o];for(var p in v){var g=v[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=CC(i,r);return a.replace(o,s)}}function H0(t){return We(t)?U0[t]?"cubic-bezier("+U0[t]+")":$v(t)?t:"":""}function sf(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof GS){var s=uN(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var te=CC(_,r);return te+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+xC();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function cN(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};V0(n,e,r)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=xh(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),V0(n,e,r)}}function V0(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+xC(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var ol=Math.round;function wC(t){return t&&We(t.src)}function TC(t){return t&&nt(t.toDataURL)}function kp(t,e,r,n){q5(function(i,a){var o=i==="fill"||i==="stroke";o&&eS(a)?_C(e,t,i,n):o&&zv(a)?AC(r,t,i,n):o&&a==="none"?t[i]="transparent":t[i]=a},e,r,!1),mN(r,t,n)}function Op(t,e){var r=UE(e);r&&(r.each(function(n,i){n!=null&&(t[($0+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[$0+"silent"]="true"))}function G0(t){return Bi(t[0]-1)&&Bi(t[1])&&Bi(t[2])&&Bi(t[3]-1)}function fN(t){return Bi(t[4])&&Bi(t[5])}function Bp(t,e,r){if(e&&!(fN(e)&&G0(e))){var n=1e4;t.transform=G0(e)?"translate("+ol(e[4]*n)/n+" "+ol(e[5]*n)/n+")":cE(e)}}function W0(t,e,r){for(var n=t.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Zn(d,g),Zn(h,g)}else if(d==null||h==null){var m=function(w,b){if(w){var E=w.elm,A=d||b.width,R=h||b.height;w.tag==="pattern"&&(u?(R=1,A/=a.width):f&&(A=1,R/=a.height)),w.attrs.width=A,w.attrs.height=R,E&&(E.setAttribute("width",A),E.setAttribute("height",R))}},y=jv(v,null,t,function(w){l||m(x,w),m(c,w)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}c=Kt("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(c=pt(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var S,T;l?S=T=1:u?(T=1,S=o.width/a.width):f?(S=1,T=o.height/a.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),T!=null&&!isNaN(T)&&(o.height=T);var P=rS(i);P&&(o.patternTransform=P);var x=Kt("pattern","",o,[c]),_=Lp(x),M=n.patternCache,C=M[_];C||(C=n.zrId+"-p"+n.patternIdx++,M[_]=C,o.id=C,x=n.defs[C]=Kt("pattern",C,o,[c])),e[r]=Dc(C)}}function yN(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Kt("clipPath",a,o,[IC(t,r)])}e["clip-path"]=Dc(a)}function X0(t){return document.createTextNode(t)}function ka(t,e,r){t.insertBefore(e,r)}function Y0(t,e){t.removeChild(e)}function Z0(t,e){t.appendChild(e)}function EC(t){return t.parentNode}function PC(t){return t.nextSibling}function Gd(t,e){t.textContent=e}var Q0=58,SN=120,bN=Kt("","");function pv(t){return t===void 0}function Hn(t){return t!==void 0}function xN(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function gs(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function sl(t){var e,r=t.children,n=t.tag;if(Hn(n)){var i=t.elm=bC(n);if(Np(bN,t),$e(r))for(e=0;ea?(v=r[l+1]==null?null:r[l+1].elm,MC(t,v,r,i,l)):mc(t,e,n,a))}function ho(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(Np(t,e),pv(e.text)?Hn(n)&&Hn(i)?n!==i&&CN(r,n,i):Hn(i)?(Hn(t.text)&&Gd(r,""),MC(r,null,i,0,i.length-1)):Hn(n)?mc(r,n,0,n.length-1):Hn(t.text)&&Gd(r,""):t.text!==e.text&&(Hn(n)&&mc(r,n,0,n.length-1),Gd(r,e.text)))}function wN(t,e){if(gs(t,e))ho(t,e);else{var r=t.elm,n=EC(r);sl(e),n!==null&&(ka(n,e.elm,PC(r)),mc(n,[t],0,0))}return e}var TN=0,IN=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=J0(),this.configLayer=J0(),this.storage=r,this._opts=n=Ie({},n),this.root=e,this._id="zr"+TN++,this._oldVNode=z0(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=bC("svg");Np(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",wN(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return K0(e,vv(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=vv(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis;var o=[],s=this._bgVNode=_N(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Kt("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=ke(gt(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(Kt("defs","defs",{},u)),e.animation){var f=iN(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Kt("style","stl",{},[],f);o.push(c)}}return z0(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Lp(this.renderToVNode({animation:Ze(e.cssAnimation,!0),emphasis:Ze(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ze(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m{let o=[];if(e.themeColors.length>=10)o=e.themeColors;else if(e.themeColors.length===1)o=ah(e.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=e.themeColors.length,l=ah(e.themeColors[s-1]).analogous(11-s).map(u=>u.toRgbString());o=[...e.themeColors.slice(0,s-1),...l]}return o}),a=()=>{var s,l;const o=e2({type:e.type,data:e.data,themeColors:i.value,textColor:e.textColor,lineSmooth:((s=e.options)==null?void 0:s.lineSmooth)||!1,stack:((l=e.options)==null?void 0:l.stack)||!1});o&&r.setOption(o,!0)};return _r(()=>{r=xk(n.value,null,{renderer:"svg"}),a();const o=()=>r.resize();new ResizeObserver(o).observe(n.value)}),gr(()=>e.type,a),gr(()=>e.data,a),gr(()=>e.themeColors,a),gr(()=>e.textColor,a),(o,s)=>(ie(),ve("div",{class:"chart",ref_key:"chartRef",ref:n},null,512))}}),PN=Ge(EN,[["__scopeId","data-v-a77f2c9e"]]),MN=t=>{if(!t)return{};const{bold:e,em:r,underline:n,strikethrough:i,color:a,backcolor:o,fontsize:s,fontname:l,align:u}=t;let f=`${n?"underline":""} ${i?"line-through":""}`;return f===" "&&(f="none"),{fontWeight:e?"bold":"normal",fontStyle:r?"italic":"normal",textDecoration:f,color:a||"#000",backgroundColor:o||"",fontSize:s||"24px",fontFamily:l||"微软雅黑",textAlign:u||"left"}},RN=t=>t.replace(/\n/g,"
").replace(/ /g," "),DN=t=>({hideCells:_e(()=>{const r=[];for(let n=0;n1||o.rowspan>1)for(let s=n;s{const e=de(["",""]);return gr(()=>t.value,()=>{t.value&&(e.value=KI(t.value.color))},{immediate:!0}),{subThemeColor:e}},kN=(t,e)=>{_r(()=>{if(!e.value)return;let r="normal";if(/m3u8(#|\?|$)/i.exec(t)?r="hls":/.flv(#|\?|$)/i.exec(t)&&(r="flv"),e.value&&r==="hls"&&(e.value.canPlayType("application/x-mpegURL")||e.value.canPlayType("application/vnd.apple.mpegURL"))&&(r="normal"),r==="hls"){const n=window.Hls;if(n&&n.isSupported()){const i=new n;i.loadSource(t),i.attachMedia(e.value)}}else if(r==="flv"){const n=window.flvjs;if(n&&n.isSupported()){const i=n.createPlayer({type:"flv",url:t});i.attachMediaElement(e.value),i.load()}}})},Fp=t=>(ta("data-v-b2516295"),t=t(),ea(),t),ON={key:0,class:"load-error"},BN=["src","poster"],NN={class:"bezel"},FN=Fp(()=>Q("div",{class:"controller-mask"},null,-1)),$N={class:"controller"},zN={class:"icons icons-left"},UN={class:"icon-content"},HN={class:"volume"},VN={class:"icon-content"},GN=Fp(()=>Q("span",{class:"thumb"},null,-1)),WN=[GN],jN={class:"time"},KN={class:"ptime"},XN={class:"dtime"},YN={class:"icons icons-right"},ZN={class:"speed"},QN={class:"icon speed-icon"},JN=["onClick"],qN={class:"icon-content"},e4={class:"bar"},t4=Fp(()=>Q("span",{class:"thumb"},null,-1)),r4=[t4],n4=ze({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1},needWaitAnimation:{type:Boolean}},setup(t){const e=t;gr(()=>e.needWaitAnimation,()=>{e.autoplay&&!e.needWaitAnimation?w():e.needWaitAnimation&&b()});const r=(se=0)=>{if(se===0||isNaN(se))return"00:00";const he=vt=>vt<10?"0"+vt:""+vt,Ae=Math.floor(se/3600),Re=Math.floor((se-Ae*3600)/60),lt=Math.floor(se-Ae*3600-Re*60);return(Ae>0?[Ae,Re,lt]:[Re,lt]).map(he).join(":")},n=se=>se.getBoundingClientRect().left,i=de(),a=de(),o=de(),s=de(.5),l=de(!0),u=de(0),f=de(0),c=de(0),d=de(!1),h=de(!1),v=de(1),p=de(!1),g=de("00:00"),m=de("0"),y=_e(()=>r(u.value)),S=_e(()=>r(f.value)),T=_e(()=>u.value/f.value*100+"%"),P=_e(()=>c.value/f.value*100+"%"),x=_e(()=>s.value*100+"%"),_=de(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],C=se=>{i.value&&(se=Math.max(se,0),se=Math.min(se,f.value),i.value.currentTime=se,u.value=se)},w=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},b=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},E=()=>{l.value?w():b()},A=se=>{i.value&&(se=Math.max(se,0),se=Math.min(se,1),i.value.volume=se,s.value=se,i.value.muted&&se!==0&&(i.value.muted=!1))},R=se=>{i.value&&(i.value.playbackRate=se),v.value=se},k=()=>{var se;f.value=((se=i.value)==null?void 0:se.duration)||0},D=()=>{var se;u.value=((se=i.value)==null?void 0:se.currentTime)||0},O=()=>{d.value?(C(0),w()):b()},$=()=>{var se;c.value=(se=i.value)!=null&&se.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},U=de(!1),q=()=>U.value=!0,H=se=>{if(!i.value||!a.value)return;let Ae=(("clientX"in se?se.clientX:se.changedTouches[0].clientX)-n(a.value))/a.value.clientWidth;Ae=Math.max(Ae,0),Ae=Math.min(Ae,1);const Re=Ae*f.value;i.value.currentTime=Re,u.value=Re},N=se=>{if(!i.value||!a.value)return;let Ae=(("clientX"in se?se.clientX:se.changedTouches[0].clientX)-n(a.value))/a.value.clientWidth;Ae=Math.max(Ae,0),Ae=Math.min(Ae,1);const Re=Ae*f.value;i.value.currentTime=Re,u.value=Re,document.removeEventListener("mousemove",H),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",N),document.removeEventListener("touchend",N)},G=()=>{document.addEventListener("mousemove",H),document.addEventListener("touchmove",H),document.addEventListener("mouseup",N),document.addEventListener("touchend",N)},j=se=>{if(!o.value)return;const Ae=(("clientX"in se?se.clientX:se.changedTouches[0].clientX)-n(o.value))/45;A(Ae)},oe=()=>{document.removeEventListener("mousemove",j),document.removeEventListener("touchmove",j),document.removeEventListener("mouseup",oe),document.removeEventListener("touchend",oe)},Y=()=>{document.addEventListener("mousemove",j),document.addEventListener("touchmove",j),document.addEventListener("mouseup",oe),document.addEventListener("touchend",oe)},te=se=>{if(!o.value)return;const he=(se.clientX-n(o.value))/45;A(he)},fe=se=>{if(f.value&&a.value){const he=a.value.getBoundingClientRect().left,Ae=se.clientX-he;if(Ae<0||Ae>a.value.offsetWidth)return;const Re=f.value*(Ae/a.value.offsetWidth);m.value=`${Ae-(Re>=3600?25:20)}px`,g.value=r(Re),p.value=!0}},ye=()=>{i.value&&(i.value.muted?(i.value.muted=!1,A(.5)):(i.value.muted=!0,A(0)))},xe=()=>{d.value=!d.value},ce=de(-1),ge=de(!1),Ce=()=>{ge.value=!1,clearTimeout(ce.value),ce.value=setTimeout(()=>{var se;(se=i.value)!=null&&se.played.length&&(ge.value=!0)},3e3)};return kN(e.src,i),(se,he)=>{const Ae=st("IconPlayOne"),Re=st("IconPause"),lt=st("IconVolumeMute"),vt=st("IconVolumeNotice"),mt=st("IconVolumeSmall");return ie(),ve("div",{class:ft(["video-player",{"hide-controller":ge.value}]),style:be({width:se.width*se.scale+"px",height:se.height*se.scale+"px",transform:`scale(${1/se.scale})`}),onMousemove:he[22]||(he[22]=Fe=>Ce()),onClick:he[23]||(he[23]=Fe=>Ce())},[Q("div",{class:"video-wrap",onClick:he[8]||(he[8]=Fe=>E())},[U.value?(ie(),ve("div",ON,"视频加载失败")):Ue("",!0),Q("video",{class:"video",ref_key:"videoRef",ref:i,src:se.src,poster:se.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:he[0]||(he[0]=Fe=>k()),onTimeupdate:he[1]||(he[1]=Fe=>D()),onEnded:he[2]||(he[2]=Fe=>O()),onProgress:he[3]||(he[3]=Fe=>$()),onPlay:he[4]||(he[4]=()=>{Ce(),l.value=!1}),onPause:he[5]||(he[5]=Fe=>Ce()),onError:he[6]||(he[6]=Fe=>q())},null,40,BN),Q("div",NN,[Q("span",{class:ft(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:he[7]||(he[7]=Fe=>h.value=!1)},[l.value?(ie(),Ke(Ae,{key:0})):(ie(),Ke(Re,{key:1}))],34)])]),FN,Q("div",$N,[Q("div",zN,[Q("div",{class:"icon play-icon",onClick:he[9]||(he[9]=Fe=>E())},[Q("span",UN,[l.value?(ie(),Ke(Ae,{key:0})):(ie(),Ke(Re,{key:1}))])]),Q("div",HN,[Q("div",{class:"icon volume-icon",onClick:he[10]||(he[10]=Fe=>ye())},[Q("span",VN,[s.value===0?(ie(),Ke(lt,{key:0})):s.value===1?(ie(),Ke(vt,{key:1})):(ie(),Ke(mt,{key:2}))])]),Q("div",{class:"volume-bar-wrap",onMousedown:he[11]||(he[11]=Fe=>Y()),onTouchstart:he[12]||(he[12]=Fe=>Y()),onClick:he[13]||(he[13]=Fe=>te(Fe))},[Q("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:o},[Q("div",{class:"volume-bar-inner",style:be({width:x.value})},WN,4)],512)],32)]),Q("span",jN,[Q("span",KN,Pt(y.value),1),Cv(" / "),Q("span",XN,Pt(S.value),1)])]),Q("div",YN,[Q("div",ZN,[Q("div",QN,[Q("span",{class:"icon-content",onClick:he[14]||(he[14]=Fe=>_.value=!_.value)},Pt(v.value===1?"倍速":v.value+"x"),1),_.value?(ie(),ve("div",{key:0,class:"speed-menu",onMouseleave:he[15]||(he[15]=Fe=>_.value=!1)},[(ie(),ve(Xt,null,Lr(M,Fe=>Q("div",{class:ft(["speed-menu-item",{active:Fe.value===v.value}]),key:Fe.label,onClick:Zt=>R(Fe.value)},Pt(Fe.label),11,JN)),64))],32)):Ue("",!0)])]),Q("div",{class:"loop",onClick:he[16]||(he[16]=Fe=>xe())},[Q("div",{class:ft(["icon loop-icon",{active:d.value}])},[Q("span",qN,"循环"+Pt(d.value?"开":"关"),1)],2)])]),Q("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:he[17]||(he[17]=Fe=>G()),onTouchstart:he[18]||(he[18]=Fe=>G()),onMousemove:he[19]||(he[19]=Fe=>fe(Fe)),onMouseenter:he[20]||(he[20]=Fe=>p.value=!0),onMouseleave:he[21]||(he[21]=Fe=>p.value=!1)},[Q("div",{class:ft(["bar-time",{hidden:!p.value}]),style:be({left:m.value})},Pt(g.value),7),Q("div",e4,[Q("div",{class:"loaded",style:be({width:P.value})},null,4),Q("div",{class:"played",style:be({width:T.value})},r4,4)])],544)])],38)}}}),i4=Ge(n4,[["__scopeId","data-v-b2516295"]]),RC=t=>(ta("data-v-589afd06"),t=t(),ea(),t),a4=["src"],o4={class:"controller"},s4={class:"icons"},l4={class:"icon-content"},u4={class:"volume"},c4={class:"icon-content"},f4=RC(()=>Q("span",{class:"thumb"},null,-1)),d4=[f4],h4={class:"time"},v4={class:"ptime"},p4={class:"dtime"},g4={class:"bar"},m4=RC(()=>Q("span",{class:"thumb"},null,-1)),y4=[m4],S4=ze({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1},needWaitAnimation:{type:Boolean}},setup(t,{expose:e}){const r=t;gr(()=>r.needWaitAnimation,()=>{r.autoplay&&!r.needWaitAnimation?_():r.needWaitAnimation&&M()});const n=(Y=0)=>{if(Y===0||isNaN(Y))return"00:00";const te=ce=>ce<10?"0"+ce:""+ce,fe=Math.floor(Y/3600),ye=Math.floor((Y-fe*3600)/60),xe=Math.floor(Y-fe*3600-ye*60);return(fe>0?[fe,ye,xe]:[ye,xe]).map(te).join(":")},i=Y=>Y.getBoundingClientRect().left,a=de(),o=de(),s=de(),l=de(.5),u=de(!0),f=de(0),c=de(0),d=de(0),h=de(!1),v=de(!1),p=de("00:00"),g=de("0"),m=_e(()=>n(f.value)),y=_e(()=>n(c.value)),S=_e(()=>f.value/c.value*100+"%"),T=_e(()=>d.value/c.value*100+"%"),P=_e(()=>l.value*100+"%"),x=Y=>{a.value&&(Y=Math.max(Y,0),Y=Math.min(Y,c.value),a.value.currentTime=Y,f.value=Y)},_=()=>{a.value&&(u.value=!1,a.value.play())},M=()=>{a.value&&(u.value=!0,a.value.pause())},C=()=>{u.value?_():M()},w=Y=>{a.value&&(Y=Math.max(Y,0),Y=Math.min(Y,1),a.value.volume=Y,l.value=Y,a.value.muted&&Y!==0&&(a.value.muted=!1))},b=()=>{var Y;c.value=((Y=a.value)==null?void 0:Y.duration)||0},E=()=>{var Y;f.value=((Y=a.value)==null?void 0:Y.currentTime)||0},A=()=>{u.value=!1},R=()=>{h.value||(r.loop?(x(0),_()):M())},k=()=>{var Y;d.value=(Y=a.value)!=null&&Y.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},D=()=>Nr.error("音频加载失败"),O=Y=>{if(!a.value||!o.value)return;let fe=(("clientX"in Y?Y.clientX:Y.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;fe=Math.max(fe,0),fe=Math.min(fe,1);const ye=fe*c.value;a.value.currentTime=ye,f.value=ye},$=Y=>{if(!a.value||!o.value)return;let fe=(("clientX"in Y?Y.clientX:Y.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;fe=Math.max(fe,0),fe=Math.min(fe,1);const ye=fe*c.value;a.value.currentTime=ye,f.value=ye;const xe=setTimeout(()=>{clearTimeout(xe),h.value=!1},500);document.removeEventListener("mousemove",O),document.removeEventListener("touchmove",O),document.removeEventListener("mouseup",$),document.removeEventListener("touchend",$)},U=()=>{h.value=!0,document.addEventListener("mousemove",O),document.addEventListener("touchmove",O),document.addEventListener("mouseup",$),document.addEventListener("touchend",$)},q=Y=>{if(!s.value)return;const fe=(("clientX"in Y?Y.clientX:Y.changedTouches[0].clientX)-i(s.value))/45;w(fe)},H=()=>{document.removeEventListener("mousemove",q),document.removeEventListener("touchmove",q),document.removeEventListener("mouseup",H),document.removeEventListener("touchend",H)},N=()=>{document.addEventListener("mousemove",q),document.addEventListener("touchmove",q),document.addEventListener("mouseup",H),document.addEventListener("touchend",H)},G=Y=>{if(!s.value)return;const te=(Y.clientX-i(s.value))/45;w(te)},j=Y=>{if(c.value&&o.value){const te=o.value.getBoundingClientRect().left,fe=Y.clientX-te;if(fe<0||fe>o.value.offsetWidth)return;const ye=c.value*(fe/o.value.offsetWidth);g.value=`${fe-(ye>=3600?25:20)}px`,p.value=n(ye),v.value=!0}},oe=()=>{a.value&&(a.value.muted?(a.value.muted=!1,w(.5)):(a.value.muted=!0,w(0)))};return e({toggle:C}),(Y,te)=>{const fe=st("IconPlayOne"),ye=st("IconPause"),xe=st("IconVolumeMute"),ce=st("IconVolumeNotice"),ge=st("IconVolumeSmall");return ie(),ve("div",{class:"audio-player",style:be({transform:`scale(${1/Y.scale})`})},[Q("audio",{class:"audio",ref_key:"audioRef",ref:a,src:Y.src,onDurationchange:te[0]||(te[0]=Ce=>b()),onTimeupdate:te[1]||(te[1]=Ce=>E()),onPlay:te[2]||(te[2]=Ce=>A()),onEnded:te[3]||(te[3]=Ce=>R()),onProgress:te[4]||(te[4]=Ce=>k()),onError:te[5]||(te[5]=Ce=>D())},null,40,a4),Q("div",o4,[Q("div",s4,[Q("div",{class:"icon play-icon",onClick:te[6]||(te[6]=Ce=>C())},[Q("span",l4,[u.value?(ie(),Ke(fe,{key:0})):(ie(),Ke(ye,{key:1}))])]),Q("div",u4,[Q("div",{class:"icon volume-icon",onClick:te[7]||(te[7]=Ce=>oe())},[Q("span",c4,[l.value===0?(ie(),Ke(xe,{key:0})):l.value===1?(ie(),Ke(ce,{key:1})):(ie(),Ke(ge,{key:2}))])]),Q("div",{class:"volume-bar-wrap",onMousedown:te[8]||(te[8]=Ce=>N()),onTouchstart:te[9]||(te[9]=Ce=>N()),onClick:te[10]||(te[10]=Ce=>G(Ce))},[Q("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[Q("div",{class:"volume-bar-inner",style:be({width:P.value})},d4,4)],512)],32)])]),Q("span",h4,[Q("span",v4,Pt(m.value),1),Cv(" / "),Q("span",p4,Pt(y.value),1)]),Q("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:te[11]||(te[11]=Ce=>U()),onTouchstart:te[12]||(te[12]=Ce=>U()),onMousemove:te[13]||(te[13]=Ce=>j(Ce)),onMouseenter:te[14]||(te[14]=Ce=>v.value=!0),onMouseleave:te[15]||(te[15]=Ce=>v.value=!1)},[Q("div",{class:ft(["bar-time",{hidden:!v.value}]),style:be({left:g.value})},Pt(p.value),7),Q("div",g4,[Q("div",{class:"loaded",style:be({width:T.value})},null,4),Q("div",{class:"played",style:be({width:S.value})},y4,4)])],544)])],4)}}}),b4=Ge(S4,[["__scopeId","data-v-589afd06"]]),x4={key:0,class:"loading-overlay"},C4=ul('
',1),w4=[C4],T4=["src"],I4=ze({__name:"cloudCoachPlayer",props:{width:{},height:{},id:{},scale:{default:1}},setup(t){const e=t,r=_e(()=>di.fromType==="CLASS"?`${Hu}?v=${Date.now()}&Authorization=${hi()}&id=${e.id}&iscurseplay=play&modelType=practise&showCourseMember=true&showGuide=true&showWebGuide=false&instrumentId=${di.instrumentId}&zoom=0.8`:`${Hu}?v=${Date.now()}&showGuide=true&showWebGuide=false&platform=pc&imagePos=right&zoom=0.8&modelType=practise&instrumentId=${di.instrumentId}&iscurseplay=play&id=${e.id}&Authorization=${hi()}`),n=de(!0);function i(){n.value=!1}return(a,o)=>(ie(),ve("div",{class:"cloudCoachPlayer",style:be({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(ie(),ve("div",x4,w4)):Ue("",!0),Q("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,T4)],4))}}),_4=Ge(I4,[["__scopeId","data-v-7ab31ac7"]]);var DC={exports:{}};const A4=Iv(BI);/**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */function q0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Qn(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function M4(t,e){if(t==null)return{};var r=P4(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function R4(t){return D4(t)||L4(t)||k4(t)||O4()}function D4(t){if(Array.isArray(t))return gv(t)}function L4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function k4(t,e){if(t){if(typeof t=="string")return gv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gv(t,e)}}function gv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function F4(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function An(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&yc(t,e):yc(t,e))||n&&t===r)return t;if(t===r)break}while(t=F4(t))}return null}var t1=/\s+/g;function Bt(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(t1," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(t1," ")}}function Be(t,e,r){var n=t&&t.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),e===void 0?r:r[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=r+(typeof r=="string"?"":"px")}}function za(t,e){var r="";if(typeof t=="string")r=t;else do{var n=Be(t,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function OC(t,e,r){if(t){var n=t.getElementsByTagName(e),i=0,a=n.length;if(r)for(;i=a,!o)return n;if(n===Yn())break;n=zi(n,!1)}return!1}function Do(t,e,r,n){for(var i=0,a=0,o=t.children;a2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,a=M4(n,W4);bl.pluginEvent.bind(je)(e,r,Qn({dragEl:Me,parentEl:Nt,ghostEl:et,rootEl:Dt,nextEl:La,lastDownEl:Fu,cloneEl:Ft,cloneHidden:Li,dragStarted:ys,putSortable:rr,activeSortable:je.active,originalEvent:i,oldIndex:So,oldDraggableIndex:$s,newIndex:Wr,newDraggableIndex:Di,hideGhostForTarget:UC,unhideGhostForTarget:HC,cloneNowHidden:function(){Li=!0},cloneNowShown:function(){Li=!1},dispatchSortableEvent:function(s){xr({sortable:r,name:s,originalEvent:i})}},a))};function xr(t){ms(Qn({putSortable:rr,cloneEl:Ft,targetEl:Me,rootEl:Dt,oldIndex:So,oldDraggableIndex:$s,newIndex:Wr,newDraggableIndex:Di},t))}var Me,Nt,et,Dt,La,Fu,Ft,Li,So,Wr,$s,Di,mu,rr,vo=!1,Sc=!1,bc=[],Pa,bn,Xd,Yd,a1,o1,ys,lo,zs,Us=!1,yu=!1,$u,fr,Zd=[],mv=!1,xc=[],lf=typeof document<"u",Su=LC,s1=Sl||bi?"cssFloat":"float",j4=lf&&!N4&&!LC&&"draggable"in document.createElement("div"),FC=function(){if(lf){if(bi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),$C=function(e,r){var n=Be(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Do(e,0,r),o=Do(e,1,r),s=a&&Be(a),l=o&&Be(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Lt(a).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Lt(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&s.float&&s.float!=="none"){var c=s.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&n[s1]==="none"||o&&n[s1]==="none"&&u+f>i)?"vertical":"horizontal"},K4=function(e,r,n){var i=n?e.left:e.top,a=n?e.right:e.bottom,o=n?e.width:e.height,s=n?r.left:r.top,l=n?r.right:r.bottom,u=n?r.width:r.height;return i===s||a===l||i+o/2===s+u/2},X4=function(e,r){var n;return bc.some(function(i){var a=i[pr].options.emptyInsertThreshold;if(!(!a||$p(i))){var o=Lt(i),s=e>=o.left-a&&e<=o.right+a,l=r>=o.top-a&&r<=o.bottom+a;if(s&&l)return n=i}}),n},zC=function(e){function r(a,o){return function(s,l,u,f){var c=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(a==null&&(o||c))return!0;if(a==null||a===!1)return!1;if(o&&a==="clone")return a;if(typeof a=="function")return r(a(s,l,u,f),o)(s,l,u,f);var d=(o?s:l).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var n={},i=e.group;(!i||Nu(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=r(i.pull,!0),n.checkPut=r(i.put),n.revertClone=i.revertClone,e.group=n},UC=function(){!FC&&et&&Be(et,"display","none")},HC=function(){!FC&&et&&Be(et,"display","")};lf&&document.addEventListener("click",function(t){if(Sc)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Sc=!1,!1},!0);var Ma=function(e){if(Me){e=e.touches?e.touches[0]:e;var r=X4(e.clientX,e.clientY);if(r){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[pr]._onDragOver(n)}}},Y4=function(e){Me&&Me.parentNode[pr]._isOutsideThisEl(e.target)};function je(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=pn({},e),t[pr]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $C(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:je.supportPointer!==!1&&"PointerEvent"in window&&!Ns,emptyInsertThreshold:5};bl.initializePlugins(this,t,r);for(var n in r)!(n in e)&&(e[n]=r[n]);zC(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:j4,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ct(t,"pointerdown",this._onTapStart):(ct(t,"mousedown",this._onTapStart),ct(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(ct(t,"dragover",this),ct(t,"dragenter",this)),bc.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),pn(this,H4())}je.prototype={constructor:je,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(lo=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,Me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var r=this,n=this.el,i=this.options,a=i.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(s||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,f=i.filter;if(n3(n),!Me&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ns&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=An(l,i.draggable,n,!1),!(l&&l.animated)&&Fu!==l)){if(So=zt(l),$s=zt(l,i.draggable),typeof f=="function"){if(f.call(this,e,l,this)){xr({sortable:r,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),Pr("filter",r,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=An(u,c.trim(),n,!1),c)return xr({sortable:r,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),Pr("filter",r,{evt:e}),!0}),f)){a&&e.cancelable&&e.preventDefault();return}i.handle&&!An(u,i.handle,n,!1)||this._prepareDragStart(e,s,l)}}},_prepareDragStart:function(e,r,n){var i=this,a=i.el,o=i.options,s=a.ownerDocument,l;if(n&&!Me&&n.parentNode===a){var u=Lt(n);if(Dt=a,Me=n,Nt=Me.parentNode,La=Me.nextSibling,Fu=n,mu=o.group,je.dragged=Me,Pa={target:Me,clientX:(r||e).clientX,clientY:(r||e).clientY},a1=Pa.clientX-u.left,o1=Pa.clientY-u.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,Me.style["will-change"]="all",l=function(){if(Pr("delayEnded",i,{evt:e}),je.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!e1&&i.nativeDraggable&&(Me.draggable=!0),i._triggerDragStart(e,r),xr({sortable:i,name:"choose",originalEvent:e}),Bt(Me,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){OC(Me,f.trim(),Qd)}),ct(s,"dragover",Ma),ct(s,"mousemove",Ma),ct(s,"touchmove",Ma),ct(s,"mouseup",i._onDrop),ct(s,"touchend",i._onDrop),ct(s,"touchcancel",i._onDrop),e1&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Me.draggable=!0),Pr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Sl||bi))){if(je.eventCanceled){this._onDrop();return}ct(s,"mouseup",i._disableDelayedDrag),ct(s,"touchend",i._disableDelayedDrag),ct(s,"touchcancel",i._disableDelayedDrag),ct(s,"mousemove",i._delayedDragTouchMoveHandler),ct(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&ct(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Me&&Qd(Me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ot(e,"mouseup",this._disableDelayedDrag),ot(e,"touchend",this._disableDelayedDrag),ot(e,"touchcancel",this._disableDelayedDrag),ot(e,"mousemove",this._delayedDragTouchMoveHandler),ot(e,"touchmove",this._delayedDragTouchMoveHandler),ot(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,r){r=r||e.pointerType=="touch"&&e,!this.nativeDraggable||r?this.options.supportPointer?ct(document,"pointermove",this._onTouchMove):r?ct(document,"touchmove",this._onTouchMove):ct(document,"mousemove",this._onTouchMove):(ct(Me,"dragend",this),ct(Dt,"dragstart",this._onDragStart));try{document.selection?zu(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(vo=!1,Dt&&Me){Pr("dragStarted",this,{evt:r}),this.nativeDraggable&&ct(document,"dragover",Y4);var n=this.options;!e&&Bt(Me,n.dragClass,!1),Bt(Me,n.ghostClass,!0),je.active=this,e&&this._appendGhost(),xr({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(bn){this._lastX=bn.clientX,this._lastY=bn.clientY,UC();for(var e=document.elementFromPoint(bn.clientX,bn.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(bn.clientX,bn.clientY),e!==r);)r=e;if(Me.parentNode[pr]._isOutsideThisEl(e),r)do{if(r[pr]){var n=void 0;if(n=r[pr]._onDragOver({clientX:bn.clientX,clientY:bn.clientY,target:e,rootEl:r}),n&&!this.options.dragoverBubble)break}e=r}while(r=r.parentNode);HC()}},_onTouchMove:function(e){if(Pa){var r=this.options,n=r.fallbackTolerance,i=r.fallbackOffset,a=e.touches?e.touches[0]:e,o=et&&za(et,!0),s=et&&o&&o.a,l=et&&o&&o.d,u=Su&&fr&&n1(fr),f=(a.clientX-Pa.clientX+i.x)/(s||1)+(u?u[0]-Zd[0]:0)/(s||1),c=(a.clientY-Pa.clientY+i.y)/(l||1)+(u?u[1]-Zd[1]:0)/(l||1);if(!je.active&&!vo){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(xr({rootEl:Nt,name:"add",toEl:Nt,fromEl:Dt,originalEvent:e}),xr({sortable:this,name:"remove",toEl:Nt,originalEvent:e}),xr({rootEl:Nt,name:"sort",toEl:Nt,fromEl:Dt,originalEvent:e}),xr({sortable:this,name:"sort",toEl:Nt,originalEvent:e})),rr&&rr.save()):Wr!==So&&Wr>=0&&(xr({sortable:this,name:"update",toEl:Nt,originalEvent:e}),xr({sortable:this,name:"sort",toEl:Nt,originalEvent:e})),je.active&&((Wr==null||Wr===-1)&&(Wr=So,Di=$s),xr({sortable:this,name:"end",toEl:Nt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Pr("nulling",this),Dt=Me=Nt=et=La=Ft=Fu=Li=Pa=bn=ys=Wr=Di=So=$s=lo=zs=rr=mu=je.dragged=je.ghost=je.clone=je.active=null,xc.forEach(function(e){e.checked=!0}),xc.length=Xd=Yd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Me&&(this._onDragOver(e),Z4(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],r,n=this.el.children,i=0,a=n.length,o=this.options;in.right+i||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+i}function e3(t,e,r,n,i,a,o,s){var l=n?t.clientY:t.clientX,u=n?r.height:r.width,f=n?r.top:r.left,c=n?r.bottom:r.right,d=!1;if(!o){if(s&&$uf+u*a/2:lc-$u)return-zs}else if(l>f+u*(1-i)/2&&lc-u*a/2)?l>f+u/2?1:-1:0}function t3(t){return zt(Me)1&&(Qe.forEach(function(s){a.addAnimationState({target:s,rect:Mr?Lt(s):o}),jd(s),s.fromRect=o,n.removeAnimationState(s)}),Mr=!1,l3(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(r){var n=r.sortable,i=r.isOwner,a=r.insertion,o=r.activeSortable,s=r.parentEl,l=r.putSortable,u=this.options;if(a){if(i&&o._hideClone(),ss=!1,u.animation&&Qe.length>1&&(Mr||!i&&!o.options.sort&&!l)){var f=Lt(_t,!1,!0,!0);Qe.forEach(function(d){d!==_t&&(i1(d,f),s.appendChild(d))}),Mr=!0}if(!i)if(Mr||Cu(),Qe.length>1){var c=xu;o._showClone(n),o.options.animation&&!xu&&c&&Gr.forEach(function(d){o.addAnimationState({target:d,rect:ls}),d.fromRect=ls,d.thisAnimationDuration=null})}else o._showClone(n)}},dragOverAnimationCapture:function(r){var n=r.dragRect,i=r.isOwner,a=r.activeSortable;if(Qe.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){ls=pn({},n);var o=za(_t,!0);ls.top-=o.f,ls.left-=o.e}},dragOverAnimationComplete:function(){Mr&&(Mr=!1,Cu())},drop:function(r){var n=r.originalEvent,i=r.rootEl,a=r.parentEl,o=r.sortable,s=r.dispatchSortableEvent,l=r.oldIndex,u=r.putSortable,f=u||this.sortable;if(n){var c=this.options,d=a.children;if(!uo)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Bt(_t,c.selectedClass,!~Qe.indexOf(_t)),~Qe.indexOf(_t))Qe.splice(Qe.indexOf(_t),1),os=null,ms({sortable:o,rootEl:i,name:"deselect",targetEl:_t,originalEvt:n});else{if(Qe.push(_t),ms({sortable:o,rootEl:i,name:"select",targetEl:_t,originalEvt:n}),n.shiftKey&&os&&o.el.contains(os)){var h=zt(os),v=zt(_t);if(~h&&~v&&h!==v){var p,g;for(v>h?(g=h,p=v):(g=v,p=h+1);g1){var m=Lt(_t),y=zt(_t,":not(."+this.options.selectedClass+")");if(!ss&&c.animation&&(_t.thisAnimationDuration=null),f.captureAnimationState(),!ss&&(c.animation&&(_t.fromRect=m,Qe.forEach(function(T){if(T.thisAnimationDuration=null,T!==_t){var P=Mr?Lt(T):m;T.fromRect=P,f.addAnimationState({target:T,rect:P})}})),Cu(),Qe.forEach(function(T){d[y]?a.insertBefore(T,d[y]):a.appendChild(T),y++}),l===zt(_t))){var S=!1;Qe.forEach(function(T){if(T.sortableIndex!==zt(T)){S=!0;return}}),S&&s("update")}Qe.forEach(function(T){jd(T)}),f.animateAll()}xn=f}(i===a||u&&u.lastPutMode!=="clone")&&Gr.forEach(function(T){T.parentNode&&T.parentNode.removeChild(T)})}},nullingGlobal:function(){this.isMultiDrag=uo=!1,Gr.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ot(document,"pointerup",this._deselectMultiDrag),ot(document,"mouseup",this._deselectMultiDrag),ot(document,"touchend",this._deselectMultiDrag),ot(document,"keydown",this._checkKeyDown),ot(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(r){if(!(typeof uo<"u"&&uo)&&xn===this.sortable&&!(r&&An(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;Qe.length;){var n=Qe[0];Bt(n,this.options.selectedClass,!1),Qe.shift(),ms({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:r})}},_checkKeyDown:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},pn(t,{pluginName:"multiDrag",utils:{select:function(r){var n=r.parentNode[pr];!n||!n.options.multiDrag||~Qe.indexOf(r)||(xn&&xn!==n&&(xn.multiDrag._deselectMultiDrag(),xn=n),Bt(r,n.options.selectedClass,!0),Qe.push(r))},deselect:function(r){var n=r.parentNode[pr],i=Qe.indexOf(r);!n||!n.options.multiDrag||!~i||(Bt(r,n.options.selectedClass,!1),Qe.splice(i,1))}},eventProperties:function(){var r=this,n=[],i=[];return Qe.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var o;Mr&&a!==_t?o=-1:Mr?o=zt(a,":not(."+r.options.selectedClass+")"):o=zt(a),i.push({multiDragElement:a,index:o})}),{items:R4(Qe),clones:[].concat(Gr),oldIndicies:n,newIndicies:i}},optionListeners:{multiDragKey:function(r){return r=r.toLowerCase(),r==="ctrl"?r="Control":r.length>1&&(r=r.charAt(0).toUpperCase()+r.substr(1)),r}}})}function l3(t,e){Qe.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function u1(t,e){Gr.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function Cu(){Qe.forEach(function(t){t!==_t&&t.parentNode&&t.parentNode.removeChild(t)})}je.mount(new i3);je.mount(Hp,Up);const u3=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:s3,Sortable:je,Swap:a3,default:je},Symbol.toStringTag,{value:"Module"})),c3=Iv(u3);(function(t,e){(function(n,i){t.exports=i(A4,c3)})(typeof self<"u"?self:mr,function(r,n){return function(i){var a={};function o(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=i,o.c=a,o.d=function(s,l,u){o.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,l){if(l&1&&(s=o(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var f in s)o.d(u,f,(function(c){return s[c]}).bind(null,f));return u},o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,"a",l),l},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.p="",o(o.s="fb15")}({"00ee":function(i,a,o){var s=o("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,a,o){var s=o("1c0b");i.exports=function(l,u,f){if(s(l),u===void 0)return l;switch(f){case 0:return function(){return l.call(u)};case 1:return function(c){return l.call(u,c)};case 2:return function(c,d){return l.call(u,c,d)};case 3:return function(c,d,h){return l.call(u,c,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,a,o){var s=o("fc6a"),l=o("241c").f,u={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(d){try{return l(d)}catch{return f.slice()}};i.exports.f=function(h){return f&&u.call(h)=="[object Window]"?c(h):l(s(h))}},"06cf":function(i,a,o){var s=o("83ab"),l=o("d1e7"),u=o("5c6c"),f=o("fc6a"),c=o("c04e"),d=o("5135"),h=o("0cfb"),v=Object.getOwnPropertyDescriptor;a.f=s?v:function(g,m){if(g=f(g),m=c(m,!0),h)try{return v(g,m)}catch{}if(d(g,m))return u(!l.f.call(g,m),g[m])}},"0cfb":function(i,a,o){var s=o("83ab"),l=o("d039"),u=o("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,a,o){var s=o("23e7"),l=o("d58f").left,u=o("a640"),f=o("ae40"),c=u("reduce"),d=f("reduce",{1:0});s({target:"Array",proto:!0,forced:!c||!d},{reduce:function(v){return l(this,v,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,a,o){var s=o("c6b6"),l=o("9263");i.exports=function(u,f){var c=u.exec;if(typeof c=="function"){var d=c.call(u,f);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,f)}},"159b":function(i,a,o){var s=o("da84"),l=o("fdbc"),u=o("17c2"),f=o("9112");for(var c in l){var d=s[c],h=d&&d.prototype;if(h&&h.forEach!==u)try{f(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,a,o){var s=o("b727").forEach,l=o("a640"),u=o("ae40"),f=l("forEach"),c=u("forEach");i.exports=!f||!c?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,a,o){var s=o("d066");i.exports=s("document","documentElement")},"1c0b":function(i,a){i.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(i,a,o){var s=o("b622"),l=s("iterator"),u=!1;try{var f=0,c={next:function(){return{done:!!f++}},return:function(){u=!0}};c[l]=function(){return this},Array.from(c,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var v=!1;try{var p={};p[l]=function(){return{next:function(){return{done:v=!0}}}},d(p)}catch{}return v}},"1d80":function(i,a){i.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(i,a,o){var s=o("d039"),l=o("b622"),u=o("2d00"),f=l("species");i.exports=function(c){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[f]=function(){return{foo:1}},d[c](Boolean).foo!==1})}},"23cb":function(i,a,o){var s=o("a691"),l=Math.max,u=Math.min;i.exports=function(f,c){var d=s(f);return d<0?l(d+c,0):u(d,c)}},"23e7":function(i,a,o){var s=o("da84"),l=o("06cf").f,u=o("9112"),f=o("6eeb"),c=o("ce4e"),d=o("e893"),h=o("94ca");i.exports=function(v,p){var g=v.target,m=v.global,y=v.stat,S,T,P,x,_,M;if(m?T=s:y?T=s[g]||c(g,{}):T=(s[g]||{}).prototype,T)for(P in p){if(_=p[P],v.noTargetGet?(M=l(T,P),x=M&&M.value):x=T[P],S=h(m?P:g+(y?".":"#")+P,v.forced),!S&&x!==void 0){if(typeof _==typeof x)continue;d(_,x)}(v.sham||x&&x.sham)&&u(_,"sham",!0),f(T,P,_,v)}}},"241c":function(i,a,o){var s=o("ca84"),l=o("7839"),u=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(c){return s(c,u)}},"25f0":function(i,a,o){var s=o("6eeb"),l=o("825a"),u=o("d039"),f=o("ad6d"),c="toString",d=RegExp.prototype,h=d[c],v=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),p=h.name!=c;(v||p)&&s(RegExp.prototype,c,function(){var m=l(this),y=String(m.source),S=m.flags,T=String(S===void 0&&m instanceof RegExp&&!("flags"in d)?f.call(m):S);return"/"+y+"/"+T},{unsafe:!0})},"2ca0":function(i,a,o){var s=o("23e7"),l=o("06cf").f,u=o("50c4"),f=o("5a34"),c=o("1d80"),d=o("ab13"),h=o("c430"),v="".startsWith,p=Math.min,g=d("startsWith"),m=!h&&!g&&!!function(){var y=l(String.prototype,"startsWith");return y&&!y.writable}();s({target:"String",proto:!0,forced:!m&&!g},{startsWith:function(S){var T=String(c(this));f(S);var P=u(p(arguments.length>1?arguments[1]:void 0,T.length)),x=String(S);return v?v.call(T,x,P):T.slice(P,P+x.length)===x}})},"2d00":function(i,a,o){var s=o("da84"),l=o("342f"),u=s.process,f=u&&u.versions,c=f&&f.v8,d,h;c?(d=c.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,a,o){var s=o("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,a,o){var s=o("f5df"),l=o("3f8c"),u=o("b622"),f=u("iterator");i.exports=function(c){if(c!=null)return c[f]||c["@@iterator"]||l[s(c)]}},"37e8":function(i,a,o){var s=o("83ab"),l=o("9bf2"),u=o("825a"),f=o("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var v=f(h),p=v.length,g=0,m;p>g;)l.f(d,m=v[g++],h[m]);return d}},"3bbe":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,a,o){var s=o("6547").charAt,l=o("69f3"),u=o("7dd0"),f="String Iterator",c=l.set,d=l.getterFor(f);u(String,"String",function(h){c(this,{type:f,string:String(h),index:0})},function(){var v=d(this),p=v.string,g=v.index,m;return g>=p.length?{value:void 0,done:!0}:(m=s(p,g),v.index+=m.length,{value:m,done:!1})})},"3f8c":function(i,a){i.exports={}},4160:function(i,a,o){var s=o("23e7"),l=o("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,a,o){var s=o("da84");i.exports=s},"44ad":function(i,a,o){var s=o("d039"),l=o("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?u.call(f,""):Object(f)}:Object},"44d2":function(i,a,o){var s=o("b622"),l=o("7c73"),u=o("9bf2"),f=s("unscopables"),c=Array.prototype;c[f]==null&&u.f(c,f,{configurable:!0,value:l(null)}),i.exports=function(d){c[f][d]=!0}},"44e7":function(i,a,o){var s=o("861d"),l=o("c6b6"),u=o("b622"),f=u("match");i.exports=function(c){var d;return s(c)&&((d=c[f])!==void 0?!!d:l(c)=="RegExp")}},4930:function(i,a,o){var s=o("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,a,o){var s=o("fc6a"),l=o("50c4"),u=o("23cb"),f=function(c){return function(d,h,v){var p=s(d),g=l(p.length),m=u(v,g),y;if(c&&h!=h){for(;g>m;)if(y=p[m++],y!=y)return!0}else for(;g>m;m++)if((c||m in p)&&p[m]===h)return c||m||0;return!c&&-1}};i.exports={includes:f(!0),indexOf:f(!1)}},"4de4":function(i,a,o){var s=o("23e7"),l=o("b727").filter,u=o("1dde"),f=o("ae40"),c=u("filter"),d=f("filter");s({target:"Array",proto:!0,forced:!c||!d},{filter:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,a,o){var s=o("0366"),l=o("7b0b"),u=o("9bdd"),f=o("e95a"),c=o("50c4"),d=o("8418"),h=o("35a1");i.exports=function(p){var g=l(p),m=typeof this=="function"?this:Array,y=arguments.length,S=y>1?arguments[1]:void 0,T=S!==void 0,P=h(g),x=0,_,M,C,w,b,E;if(T&&(S=s(S,y>2?arguments[2]:void 0,2)),P!=null&&!(m==Array&&f(P)))for(w=P.call(g),b=w.next,M=new m;!(C=b.call(w)).done;x++)E=T?u(w,S,[C.value,x],!0):C.value,d(M,x,E);else for(_=c(g.length),M=new m(_);_>x;x++)E=T?S(g[x],x):g[x],d(M,x,E);return M.length=x,M}},"4fad":function(i,a,o){var s=o("23e7"),l=o("6f53").entries;s({target:"Object",stat:!0},{entries:function(f){return l(f)}})},"50c4":function(i,a,o){var s=o("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,a){var o={}.hasOwnProperty;i.exports=function(s,l){return o.call(s,l)}},5319:function(i,a,o){var s=o("d784"),l=o("825a"),u=o("7b0b"),f=o("50c4"),c=o("a691"),d=o("1d80"),h=o("8aa5"),v=o("14c3"),p=Math.max,g=Math.min,m=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,T=function(P){return P===void 0?P:String(P)};s("replace",2,function(P,x,_,M){var C=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,w=M.REPLACE_KEEPS_$0,b=C?"$":"$0";return[function(R,k){var D=d(this),O=R==null?void 0:R[P];return O!==void 0?O.call(R,D,k):x.call(String(D),R,k)},function(A,R){if(!C&&w||typeof R=="string"&&R.indexOf(b)===-1){var k=_(x,A,this,R);if(k.done)return k.value}var D=l(A),O=String(this),$=typeof R=="function";$||(R=String(R));var U=D.global;if(U){var q=D.unicode;D.lastIndex=0}for(var H=[];;){var N=v(D,O);if(N===null||(H.push(N),!U))break;var G=String(N[0]);G===""&&(D.lastIndex=h(O,f(D.lastIndex),q))}for(var j="",oe=0,Y=0;Y=oe&&(j+=O.slice(oe,fe)+Ce,oe=fe+te.length)}return j+O.slice(oe)}];function E(A,R,k,D,O,$){var U=k+A.length,q=D.length,H=S;return O!==void 0&&(O=u(O),H=y),x.call($,H,function(N,G){var j;switch(G.charAt(0)){case"$":return"$";case"&":return A;case"`":return R.slice(0,k);case"'":return R.slice(U);case"<":j=O[G.slice(1,-1)];break;default:var oe=+G;if(oe===0)return N;if(oe>q){var Y=m(oe/10);return Y===0?N:Y<=q?D[Y-1]===void 0?G.charAt(1):D[Y-1]+G.charAt(1):N}j=D[oe-1]}return j===void 0?"":j})}})},5692:function(i,a,o){var s=o("c430"),l=o("c6cd");(i.exports=function(u,f){return l[u]||(l[u]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,a,o){var s=o("d066"),l=o("241c"),u=o("7418"),f=o("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(f(d)),v=u.f;return v?h.concat(v(d)):h}},"5a34":function(i,a,o){var s=o("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,a){i.exports=function(o,s){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:s}}},"5db7":function(i,a,o){var s=o("23e7"),l=o("a2bf"),u=o("7b0b"),f=o("50c4"),c=o("1c0b"),d=o("65f0");s({target:"Array",proto:!0},{flatMap:function(v){var p=u(this),g=f(p.length),m;return c(v),m=d(p,0),m.length=l(m,p,p,g,0,1,v,arguments.length>1?arguments[1]:void 0),m}})},6547:function(i,a,o){var s=o("a691"),l=o("1d80"),u=function(f){return function(c,d){var h=String(l(c)),v=s(d),p=h.length,g,m;return v<0||v>=p?f?"":void 0:(g=h.charCodeAt(v),g<55296||g>56319||v+1===p||(m=h.charCodeAt(v+1))<56320||m>57343?f?h.charAt(v):g:f?h.slice(v,v+2):(g-55296<<10)+(m-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,a,o){var s=o("861d"),l=o("e8b5"),u=o("b622"),f=u("species");i.exports=function(c,d){var h;return l(c)&&(h=c.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[f],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,a,o){var s=o("7f9a"),l=o("da84"),u=o("861d"),f=o("9112"),c=o("5135"),d=o("f772"),h=o("d012"),v=l.WeakMap,p,g,m,y=function(C){return m(C)?g(C):p(C,{})},S=function(C){return function(w){var b;if(!u(w)||(b=g(w)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return b}};if(s){var T=new v,P=T.get,x=T.has,_=T.set;p=function(C,w){return _.call(T,C,w),w},g=function(C){return P.call(T,C)||{}},m=function(C){return x.call(T,C)}}else{var M=d("state");h[M]=!0,p=function(C,w){return f(C,M,w),w},g=function(C){return c(C,M)?C[M]:{}},m=function(C){return c(C,M)}}i.exports={set:p,get:g,has:m,enforce:y,getterFor:S}},"6eeb":function(i,a,o){var s=o("da84"),l=o("9112"),u=o("5135"),f=o("ce4e"),c=o("8925"),d=o("69f3"),h=d.get,v=d.enforce,p=String(String).split("String");(i.exports=function(g,m,y,S){var T=S?!!S.unsafe:!1,P=S?!!S.enumerable:!1,x=S?!!S.noTargetGet:!1;if(typeof y=="function"&&(typeof m=="string"&&!u(y,"name")&&l(y,"name",m),v(y).source=p.join(typeof m=="string"?m:"")),g===s){P?g[m]=y:f(m,y);return}else T?!x&&g[m]&&(P=!0):delete g[m];P?g[m]=y:l(g,m,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||c(this)})},"6f53":function(i,a,o){var s=o("83ab"),l=o("df75"),u=o("fc6a"),f=o("d1e7").f,c=function(d){return function(h){for(var v=u(h),p=l(v),g=p.length,m=0,y=[],S;g>m;)S=p[m++],(!s||f.call(v,S))&&y.push(d?[S,v[S]]:v[S]);return y}};i.exports={entries:c(!0),values:c(!1)}},"73d9":function(i,a,o){var s=o("44d2");s("flatMap")},7418:function(i,a){a.f=Object.getOwnPropertySymbols},"746f":function(i,a,o){var s=o("428f"),l=o("5135"),u=o("e538"),f=o("9bf2").f;i.exports=function(c){var d=s.Symbol||(s.Symbol={});l(d,c)||f(d,c,{value:u.f(c)})}},7839:function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,a,o){var s=o("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,a,o){var s=o("825a"),l=o("37e8"),u=o("7839"),f=o("d012"),c=o("1be4"),d=o("cc12"),h=o("f772"),v=">",p="<",g="prototype",m="script",y=h("IE_PROTO"),S=function(){},T=function(C){return p+m+v+C+p+"/"+m+v},P=function(C){C.write(T("")),C.close();var w=C.parentWindow.Object;return C=null,w},x=function(){var C=d("iframe"),w="java"+m+":",b;return C.style.display="none",c.appendChild(C),C.src=String(w),b=C.contentWindow.document,b.open(),b.write(T("document.F=Object")),b.close(),b.F},_,M=function(){try{_=document.domain&&new ActiveXObject("htmlfile")}catch{}M=_?P(_):x();for(var C=u.length;C--;)delete M[g][u[C]];return M()};f[y]=!0,i.exports=Object.create||function(w,b){var E;return w!==null?(S[g]=s(w),E=new S,S[g]=null,E[y]=w):E=M(),b===void 0?E:l(E,b)}},"7dd0":function(i,a,o){var s=o("23e7"),l=o("9ed3"),u=o("e163"),f=o("d2bb"),c=o("d44e"),d=o("9112"),h=o("6eeb"),v=o("b622"),p=o("c430"),g=o("3f8c"),m=o("ae93"),y=m.IteratorPrototype,S=m.BUGGY_SAFARI_ITERATORS,T=v("iterator"),P="keys",x="values",_="entries",M=function(){return this};i.exports=function(C,w,b,E,A,R,k){l(b,w,E);var D=function(Y){if(Y===A&&H)return H;if(!S&&Y in U)return U[Y];switch(Y){case P:return function(){return new b(this,Y)};case x:return function(){return new b(this,Y)};case _:return function(){return new b(this,Y)}}return function(){return new b(this)}},O=w+" Iterator",$=!1,U=C.prototype,q=U[T]||U["@@iterator"]||A&&U[A],H=!S&&q||D(A),N=w=="Array"&&U.entries||q,G,j,oe;if(N&&(G=u(N.call(new C)),y!==Object.prototype&&G.next&&(!p&&u(G)!==y&&(f?f(G,y):typeof G[T]!="function"&&d(G,T,M)),c(G,O,!0,!0),p&&(g[O]=M))),A==x&&q&&q.name!==x&&($=!0,H=function(){return q.call(this)}),(!p||k)&&U[T]!==H&&d(U,T,H),g[w]=H,A)if(j={values:D(x),keys:R?H:D(P),entries:D(_)},k)for(oe in j)(S||$||!(oe in U))&&h(U,oe,j[oe]);else s({target:w,proto:!0,forced:S||$},j);return j}},"7f9a":function(i,a,o){var s=o("da84"),l=o("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,a,o){var s=o("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,a,o){var s=o("c04e"),l=o("9bf2"),u=o("5c6c");i.exports=function(f,c,d){var h=s(c);h in f?l.f(f,h,u(0,d)):f[h]=d}},"861d":function(i,a){i.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(i,a,o){var s,l,u;(function(f,c){l=[],s=c,u=typeof s=="function"?s.apply(a,l):s,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function f(){var c=Object.getOwnPropertyDescriptor(document,"currentScript");if(!c&&"currentScript"in document&&document.currentScript||c&&c.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(_){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,v=d.exec(_.stack)||h.exec(_.stack),p=v&&v[1]||!1,g=v&&v[2]||!1,m=document.location.href.replace(document.location.hash,""),y,S,T,P=document.getElementsByTagName("script");p===m&&(y=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*