import{cC as $x,cD as Ux,aG as zx,cE as Hx,cF as Vx,cG as Gx,cH as jx,ah as Yt,cI as Wx,cJ as Xx,cK as Kx,cL as Yx,aM as Zx,aF as Qx,cM as Jx,aB as k0,be as qx,cN as ew,cO as tw,cP as rw,cQ as nw,cR as iw,cS as aw,cT as ow,aE as sw,cU as lw,s as Me,bj as uw,al as Je,ag as je,af as Se,ak as Y,cV as cw,cW as fw,cX as dw,cY as hw,bi as vw,cZ as B0,bo as ov,aq as Ge,c_ as pw,c$ as gw,a5 as Xe,d0 as mw,d1 as yw,d2 as Sw,d3 as bw,d4 as Cw,d5 as xw,d6 as ww,d7 as Tw,d8 as Iw,d9 as Aw,da as _w,v as Ew,db as Pw,dc as Mw,dd as Rw,aR as Dw,de as Lw,df as Ow,dg as kw,dh as Bw,di as Nw,ay as Wn,dj as Fw,dk as $w,dl as Uw,dm as zw,A as Hw,dn as Vw,dp as Gw,bp as jw,dq as Ww,dr as Xw,ds as Kw,ap as Yw,ac as N0,ai as ht,dt as Zw,au as Ie,du as Qw,X as F0,y as Jw,dv as qw,aP as eT,dw as tT,w as xr,dx as rT,dy as nT,H as iT,dz as aT,bz as un,aD as oT,ae as oe,bI as Oa,$ as mc,dA as sT,bH as ka,dB as lT,aC as uT,aO as cT,R as ge,dC as fT,bq as Ud,a_ as Vr,aj as Ns,aY as ct,aZ as il,an as sv,dD as dT,dE as hT,dF as vT,dG as pT,dH as gT,dI as mT,dJ as yT,Q as ST,dK as bT,dL as CT,dM as xT,at as $t,dN as wT,dO as TT,aT as IT,ad as al,aU as AT,dP as _T,dQ as ET,dR as PT,P as he,a6 as MT,dS as RT,dT as DT,dU as LT,dV as OT,a7 as kT,dW as BT,dX as NT,dY as FT,dZ as $T,d_ as UT,b0 as zT,aA as lv,d$ as HT,e0 as VT,E as hr,x as GT,e1 as jT,e2 as WT,e3 as XT,am as xn,e4 as KT,az as rn,a$ as zd,e5 as YT,as as Tn,e6 as ZT,bx as Hd,cn as Vd,co as QT,bG as tt,bt as Gd,e7 as Yi,bB as JT,bv as zt,e8 as qT,cA as $0,bA as U0,e9 as ai,cq as eI,ea as tI,eb as rI,ec as nI,ed as iI,ee as Mp,cp as vo,ef as aI,bE as Rp,cx as yc,cv as oI,eg as Dp,bD as Lp,cB as z0,bu as H0,bw as vr,eh as Cl}from"./index-BSgMIx3Z.js";/** * vue v3.4.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const sI=()=>{},lI=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:$x,BaseTransitionPropsValidators:Ux,Comment:zx,DeprecationTypes:Hx,EffectScope:Vx,ErrorCodes:Gx,ErrorTypeStrings:jx,Fragment:Yt,KeepAlive:Wx,ReactiveEffect:Xx,Static:Kx,Suspense:Yx,Teleport:Zx,Text:Qx,TrackOpTypes:Jx,Transition:k0,TransitionGroup:qx,TriggerOpTypes:ew,VueElement:tw,assertNumber:rw,callWithAsyncErrorHandling:nw,callWithErrorHandling:iw,camelize:aw,capitalize:ow,cloneVNode:sw,compatUtils:lw,compile:sI,computed:Me,createApp:uw,createBlock:Je,createCommentVNode:je,createElementBlock:Se,createElementVNode:Y,createHydrationRenderer:cw,createPropsRestProxy:fw,createRenderer:dw,createSSRApp:hw,createSlots:vw,createStaticVNode:B0,createTextVNode:ov,createVNode:Ge,customRef:pw,defineAsyncComponent:gw,defineComponent:Xe,defineCustomElement:mw,defineEmits:yw,defineExpose:Sw,defineModel:bw,defineOptions:Cw,defineProps:xw,defineSSRCustomElement:ww,defineSlots:Tw,devtools:Iw,effect:Aw,effectScope:_w,getCurrentInstance:Ew,getCurrentScope:Pw,getTransitionRawChildren:Mw,guardReactiveProps:Rw,h:Dw,handleError:Lw,hasInjectionContext:Ow,hydrate:kw,initCustomFormatter:Bw,initDirectivesForSSR:Nw,inject:Wn,isMemoSame:Fw,isProxy:$w,isReactive:Uw,isReadonly:zw,isRef:Hw,isRuntimeOnly:Vw,isShallow:Gw,isVNode:jw,markRaw:Ww,mergeDefaults:Xw,mergeModels:Kw,mergeProps:Yw,nextTick:N0,normalizeClass:ht,normalizeProps:Zw,normalizeStyle:Ie,onActivated:Qw,onBeforeMount:F0,onBeforeUnmount:Jw,onBeforeUpdate:qw,onDeactivated:eT,onErrorCaptured:tT,onMounted:xr,onRenderTracked:rT,onRenderTriggered:nT,onScopeDispose:iT,onServerPrefetch:aT,onUnmounted:un,onUpdated:oT,openBlock:oe,popScopeId:Oa,provide:mc,proxyRefs:sT,pushScopeId:ka,queuePostFlushCb:lT,reactive:uT,readonly:cT,ref:ge,registerRuntimeCompiler:fT,render:Ud,renderList:Vr,renderSlot:Ns,resolveComponent:ct,resolveDirective:il,resolveDynamicComponent:sv,resolveFilter:dT,resolveTransitionHooks:hT,setBlockTracking:vT,setDevtoolsHook:pT,setTransitionHooks:gT,shallowReactive:mT,shallowReadonly:yT,shallowRef:ST,ssrContextKey:bT,ssrUtils:CT,stop:xT,toDisplayString:$t,toHandlerKey:wT,toHandlers:TT,toRaw:IT,toRef:al,toRefs:AT,toValue:_T,transformVNodeArgs:ET,triggerRef:PT,unref:he,useAttrs:MT,useCssModule:RT,useCssVars:DT,useModel:LT,useSSRContext:OT,useSlots:kT,useTransitionState:BT,vModelCheckbox:NT,vModelDynamic:FT,vModelRadio:$T,vModelSelect:UT,vModelText:zT,vShow:lv,version:HT,warn:VT,watch:hr,watchEffect:GT,watchPostEffect:jT,watchSyncEffect:WT,withAsyncContext:XT,withCtx:xn,withDefaults:KT,withDirectives:rn,withKeys:zd,withMemo:YT,withModifiers:Tn,withScopeId:ZT},Symbol.toStringTag,{value:"Module"}));var Nn=(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))(Nn||{});const t$=[{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"}]}],jd=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)]}},r$=t=>{const{xRange:e,yRange:r}=jd({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:n,yRange:i}=jd({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]}},V0=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}=jd({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}},n$=t=>{const e=[],r=[],n=[],i=[];t.forEach(u=>{const{minX:f,maxX:c,minY:d,maxY:h}=V0(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}},i$=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},a$=t=>{const e={};for(const r of t)e[r.id]=Hd(10);return e},o$=t=>{const e={},r={};for(const n of t){const i=n.groupId;i&&!e[i]&&(e[i]=Hd(10)),r[n.id]=Hd(10)}return{groupIdMap:e,elIdMap:r}},uI=t=>{const e=Vd(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},cI=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}=V0(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}`},s$=(t,e)=>{const r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom},fI=["id"],dI={class:"icons"},hI={class:"content"},vI={key:0,class:"title"},pI={class:"description"},gI={key:0,class:"control"},mI=Xe({__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}=QT,l=t,u=r,f=ge(!0),c=ge(null),d=()=>{l.duration<=0||(c.value=setTimeout(v,l.duration))},h=()=>{c.value&&clearTimeout(c.value)},v=()=>f.value=!1;return F0(()=>{h()}),xr(()=>{d()}),e({close:v}),(p,g)=>(oe(),Je(k0,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:g[3]||(g[3]=m=>u("close")),onAfterLeave:g[4]||(g[4]=m=>u("destroy"))},{default:xn(()=>[f.value?(oe(),Se("div",{key:0,class:"message",id:p.id},[Y("div",{class:"message-container",onMouseenter:g[1]||(g[1]=m=>h()),onMouseleave:g[2]||(g[2]=m=>d())},[Y("div",dI,[p.type==="warning"?(oe(),Je(he(n),{key:0,theme:"filled",size:"18",fill:"#faad14"})):je("",!0),p.type==="success"?(oe(),Je(he(i),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):je("",!0),p.type==="error"?(oe(),Je(he(a),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):je("",!0),p.type==="info"?(oe(),Je(he(o),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):je("",!0)]),Y("div",hI,[p.title?(oe(),Se("div",vI,$t(p.title),1)):je("",!0),Y("div",pI,$t(p.message),1)]),p.closable?(oe(),Se("div",gI,[Y("span",{class:"close-btn",onClick:g[0]||(g[0]=m=>v())},[Ge(he(s))])])):je("",!0)],32)],8,fI)):je("",!0)]),_:1}))}}),yI=tt(mI,[["__scopeId","data-v-bfa2994d"]]),Wd=[];let Dn=null,SI=0;const bI={duration:3e3},Dr=t=>{const e="message-"+SI++,r={...bI,...t,id:e};Dn||(Dn=document.createElement("div"),Dn.className="message-wrap",Dn.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(Dn));const n=Ge(yI,r,null),i=document.createElement("div");n.appContext=t.ctx||Dr._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{Dn&&Dn.childNodes.length<=1&&(Dn.remove(),Dn=null),Ud(null,i)},Ud(n,i),Dn.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 Wd.push(a),a};Dr.success=(t,e)=>Dr({...e,type:"success",message:t});Dr.info=(t,e)=>Dr({...e,type:"info",message:t});Dr.warning=(t,e)=>Dr({...e,type:"warning",message:t});Dr.error=(t,e)=>Dr({...e,type:"error",message:t});Dr.closeAll=function(){for(let t=Wd.length-1;t>=0;t--)Wd[t].close()};const CI=t=>{const r=t.replace(/[\n\r]+/g,"
").split("
");let n="";for(const i of r)i&&(n+=`
${i}
`);return n},xl=(t,e)=>Gd.padStart(""+t,e,"0"),l$=t=>/^(https?:\/\/)([\w-]+\.)+[\w-]{2,}(\/[\w-./?%&=]*)?$/i.test(t);var xI=(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))(xI||{}),ir=(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))(ir||{}),oi=(t=>(t.VIDEO="elf-video",t.AUDIO="elf-audio",t.SING_PLAY="elf-sing-play",t.ENJOY="elf-enjoy",t))(oi||{});const wI=(t,e)=>Yi.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/detail",data:{id:t,fromType:e}}),TI=t=>Yi.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/savePptJson",data:t}),II=t=>Yi.axioseRquest({method:"post",url:"/edu-app/chapterKnowledgeMaterial/update",data:t}),u$=(t,e)=>Yi.axioseRquest({signal:e.signal,method:"post",url:"/edu-app/material/queryPage",data:t}),c$=()=>Yi.axioseRquest({method:"post",url:"/edu-app/subject/list",data:{delFlag:0,page:1,rows:999}}),f$=()=>Yi.axioseRquest({method:"get",url:"/edu-app/musicTag/tree"}),d$=()=>Yi.axioseRquest({method:"post",url:"/edu-app/materialTag/page",data:{page:1,rows:9999}}),h$=t=>Yi.axioseRquest({method:"post",url:"/edu-app/material/favorite",data:t});function AI(t){return new Promise((e,r)=>{JT.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 _I(t){const e=zt(),{width:r,theme:n,slides:i}=t;e.updateSlideIndex(0),e.setViewportSize(r||1920),e.setViewportRatio(n.viewportRatio||.5625);const a=PI(i);e.setTheme(n),e.setSlides(a.length?a:qT)}function EI(){const t=zt(),{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 PI(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})}var G0={exports:{}};(function(t,e){(function(n,i){t.exports=i()})($0,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(_){for(var E={},R=0,O=_.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+(E.charCodeAt(0)-55296)*1024+(E.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(E){return E.replace(d,c)},v=function(E){var R=[0,2,1][E.length%3],O=E.charCodeAt(0)<<16|(E.length>1?E.charCodeAt(1):0)<<8|(E.length>2?E.charCodeAt(2):0),D=[l.charAt(O>>>18),l.charAt(O>>>12&63),R>=2?"=":l.charAt(O>>>6&63),R>=1?"=":l.charAt(O&63)];return D.join("")},p=a.btoa?function(_){return a.btoa(_)}:function(_){return _.replace(/[\s\S]{1,3}/g,v)},g=function(_){return p(h(_))},m=function(E,R){return R?g(String(E)).replace(/[+\/]/g,function(O){return O=="+"?"-":"_"}).replace(/=/g,""):g(String(E))},y=function(E){return m(E,!0)},b=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),A=function(E){switch(E.length){case 4:var R=(7&E.charCodeAt(0))<<18|(63&E.charCodeAt(1))<<12|(63&E.charCodeAt(2))<<6|63&E.charCodeAt(3),O=R-65536;return f((O>>>10)+55296)+f((O&1023)+56320);case 3:return f((15&E.charCodeAt(0))<<12|(63&E.charCodeAt(1))<<6|63&E.charCodeAt(2));default:return f((31&E.charCodeAt(0))<<6|63&E.charCodeAt(1))}},M=function(E){return E.replace(b,A)},C=function(E){var R=E.length,O=R%4,D=(R>0?u[E.charAt(0)]<<18:0)|(R>1?u[E.charAt(1)]<<12:0)|(R>2?u[E.charAt(2)]<<6:0)|(R>3?u[E.charAt(3)]:0),B=[f(D>>>16),f(D>>>8&255),f(D&255)];return B.length-=[0,0,2,1][O],B.join("")},I=a.atob?function(_){return a.atob(_)}:function(_){return _.replace(/[\s\S]{1,4}/g,C)},P=function(_){return M(I(_))},S=function(E){return P(String(E).replace(/[-_]/g,function(R){return R=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(){var E=a.Base64;return a.Base64=o,E},x={VERSION:s,atob:I,btoa:p,fromBase64:S,toBase64:m,utob:h,encode:m,encodeURI:y,btou:M,decode:S,noConflict:T};return x}();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(C){d.prototype=this;var I=new d;return C&&I.mixIn(C),I.hasOwnProperty("init")||(I.init=function(){I.$super.init.apply(this,arguments)}),I.init.prototype=I,I.$super=this,I},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var I in C)C.hasOwnProperty(I)&&(this[I]=C[I]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},v=c.WordArray=h.extend({init:function(C,I){C=this.words=C||[],this.sigBytes=I!=u?I:4*C.length},toString:function(C){return(C||g).stringify(this)},concat:function(C){var I=this.words,P=C.words,S=this.sigBytes;if(C=C.sigBytes,this.clamp(),S%4)for(var T=0;T>>2]|=(P[T>>>2]>>>24-8*(T%4)&255)<<24-8*((S+T)%4);else if(65535>>2]=P[T>>>2];else I.push.apply(I,P);return this.sigBytes+=C,this},clamp:function(){var C=this.words,I=this.sigBytes;C[I>>>2]&=4294967295<<32-8*(I%4),C.length=l.ceil(I/4)},clone:function(){var C=h.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var I=[],P=0;P>>2]>>>24-8*(S%4)&255;P.push((T>>>4).toString(16)),P.push((T&15).toString(16))}return P.join("")},parse:function(C){for(var I=C.length,P=[],S=0;S>>3]|=parseInt(C.substr(S,2),16)<<24-4*(S%8);return new v.init(P,I/2)}},m=p.Latin1={stringify:function(C){var I=C.words;C=C.sigBytes;for(var P=[],S=0;S>>2]>>>24-8*(S%4)&255));return P.join("")},parse:function(C){for(var I=C.length,P=[],S=0;S>>2]|=(C.charCodeAt(S)&255)<<24-8*(S%4);return new v.init(P,I)}},y=p.Utf8={stringify:function(C){try{return decodeURIComponent(escape(m.stringify(C)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(C){return m.parse(unescape(encodeURIComponent(C)))}},b=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=y.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var I=this._data,P=I.words,S=I.sigBytes,T=this.blockSize,x=S/(4*T),x=C?l.ceil(x):l.max((x|0)-this._minBufferSize,0);if(C=x*T,S=l.min(4*C,S),C){for(var _=0;_C;C++){if(16>C)c[C]=v[p+C]|0;else{var I=c[C-3]^c[C-8]^c[C-14]^c[C-16];c[C]=I<<1|I>>>31}I=(m<<5|m>>>27)+M+c[C],I=20>C?I+((y&b|~y&A)+1518500249):40>C?I+((y^b^A)+1859775393):60>C?I+((y&b|y&A|b&A)-1894007588):I+((y^b^A)-899497514),M=A,A=b,b=y<<30|y>>>2,y=m,m=I}g[0]=g[0]+m|0,g[1]=g[1]+y|0,g[2]=g[2]+b|0,g[3]=g[3]+A|0,g[4]=g[4]+M|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,b=0;b>>2]>>>24-y%4*8&255,A=v[y+1>>>2]>>>24-(y+1)%4*8&255,M=v[y+2>>>2]>>>24-(y+2)%4*8&255,C=b<<16|A<<8|M,I=0;I<4&&y+I*.75>>6*(3-I)&63));var P=g.charAt(64);if(P)for(;m.length%4;)m.push(P);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=[],b=0,A=0;A>>6-A%4*2;y[b>>>2]|=(M|C)<<24-b%4*8,b++}return f.create(y,b)},_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(""),b=[],A;if(h){var M=new ArrayBuffer(68);A=new Uint8Array(M),b=new Uint32Array(M)}(u.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),h&&(u.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return s(T)==="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});var C=function(x){return function(_,E){return new P(!0).update(_,E)[x]()}},I=function(){var x=C("hex");x.getCtx=x.create=function(){return new P},x.update=function(R){return x.create().update(R)};for(var _=0;_>6,B[R++]=128|_&63):_<55296||_>=57344?(B[R++]=224|_>>12,B[R++]=128|_>>6&63,B[R++]=128|_&63):(_=65536+((_&1023)<<10|T.charCodeAt(++E)&1023),B[R++]=240|_>>18,B[R++]=128|_>>12&63,B[R++]=128|_>>6&63,B[R++]=128|_&63);else for(R=this.start;E>2]|=_<>2]|=(192|_>>6)<>2]|=(128|_&63)<=57344?(D[R>>2]|=(224|_>>12)<>2]|=(128|_>>6&63)<>2]|=(128|_&63)<>2]|=(240|_>>18)<>2]|=(128|_>>12&63)<>2]|=(128|_>>6&63)<>2]|=(128|_&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}},P.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,x=this.lastByteIndex;T[x>>2]|=p[x&3],x>=56&&(this.hashed||this.hash(),T[0]=T[16],T[16]=T[1]=T[2]=T[3]=T[4]=T[5]=T[6]=T[7]=T[8]=T[9]=T[10]=T[11]=T[12]=T[13]=T[14]=T[15]=0),T[14]=this.bytes<<3,T[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},P.prototype.hash=function(){var T,x,_,E,R,O,D=this.blocks;this.first?(T=D[0]-680876937,T=(T<<7|T>>>25)-271733879<<0,E=(-1732584194^T&2004318071)+D[1]-117830708,E=(E<<12|E>>>20)+T<<0,_=(-271733879^E&(T^-271733879))+D[2]-1126478375,_=(_<<17|_>>>15)+E<<0,x=(T^_&(E^T))+D[3]-1316259209,x=(x<<22|x>>>10)+_<<0):(T=this.h0,x=this.h1,_=this.h2,E=this.h3,T+=(E^x&(_^E))+D[0]-680876936,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[1]-389564586,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[2]+606105819,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[3]-1044525330,x=(x<<22|x>>>10)+_<<0),T+=(E^x&(_^E))+D[4]-176418897,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[5]+1200080426,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[6]-1473231341,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[7]-45705983,x=(x<<22|x>>>10)+_<<0,T+=(E^x&(_^E))+D[8]+1770035416,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[9]-1958414417,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[10]-42063,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[11]-1990404162,x=(x<<22|x>>>10)+_<<0,T+=(E^x&(_^E))+D[12]+1804603682,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[13]-40341101,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[14]-1502002290,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[15]+1236535329,x=(x<<22|x>>>10)+_<<0,T+=(_^E&(x^_))+D[1]-165796510,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[6]-1069501632,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[11]+643717713,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[0]-373897302,x=(x<<20|x>>>12)+_<<0,T+=(_^E&(x^_))+D[5]-701558691,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[10]+38016083,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[15]-660478335,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[4]-405537848,x=(x<<20|x>>>12)+_<<0,T+=(_^E&(x^_))+D[9]+568446438,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[14]-1019803690,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[3]-187363961,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[8]+1163531501,x=(x<<20|x>>>12)+_<<0,T+=(_^E&(x^_))+D[13]-1444681467,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[2]-51403784,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[7]+1735328473,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[12]-1926607734,x=(x<<20|x>>>12)+_<<0,R=x^_,T+=(R^E)+D[5]-378558,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[8]-2022574463,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[11]+1839030562,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[14]-35309556,x=(x<<23|x>>>9)+_<<0,R=x^_,T+=(R^E)+D[1]-1530992060,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[4]+1272893353,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[7]-155497632,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[10]-1094730640,x=(x<<23|x>>>9)+_<<0,R=x^_,T+=(R^E)+D[13]+681279174,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[0]-358537222,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[3]-722521979,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[6]+76029189,x=(x<<23|x>>>9)+_<<0,R=x^_,T+=(R^E)+D[9]-640364487,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[12]-421815835,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[15]+530742520,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[2]-995338651,x=(x<<23|x>>>9)+_<<0,T+=(_^(x|~E))+D[0]-198630844,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[7]+1126891415,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[14]-1416354905,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[5]-57434055,x=(x<<21|x>>>11)+_<<0,T+=(_^(x|~E))+D[12]+1700485571,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[3]-1894986606,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[10]-1051523,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[1]-2054922799,x=(x<<21|x>>>11)+_<<0,T+=(_^(x|~E))+D[8]+1873313359,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[15]-30611744,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[6]-1560198380,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[13]+1309151649,x=(x<<21|x>>>11)+_<<0,T+=(_^(x|~E))+D[4]-145523070,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[11]-1120210379,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[2]+718787259,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[9]-343485551,x=(x<<21|x>>>11)+_<<0,this.first?(this.h0=T+1732584193<<0,this.h1=x-271733879<<0,this.h2=_-1732584194<<0,this.h3=E+271733878<<0,this.first=!1):(this.h0=this.h0+T<<0,this.h1=this.h1+x<<0,this.h2=this.h2+_<<0,this.h3=this.h3+E<<0)},P.prototype.hex=function(){this.finalize();var T=this.h0,x=this.h1,_=this.h2,E=this.h3;return v[T>>4&15]+v[T&15]+v[T>>12&15]+v[T>>8&15]+v[T>>20&15]+v[T>>16&15]+v[T>>28&15]+v[T>>24&15]+v[x>>4&15]+v[x&15]+v[x>>12&15]+v[x>>8&15]+v[x>>20&15]+v[x>>16&15]+v[x>>28&15]+v[x>>24&15]+v[_>>4&15]+v[_&15]+v[_>>12&15]+v[_>>8&15]+v[_>>20&15]+v[_>>16&15]+v[_>>28&15]+v[_>>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]},P.prototype.toString=P.prototype.hex,P.prototype.digest=function(T){if(T==="hex")return this.hex();this.finalize();var x=this.h0,_=this.h1,E=this.h2,R=this.h3,O=[x&255,x>>8&255,x>>16&255,x>>24&255,_&255,_>>8&255,_>>16&255,_>>24&255,E&255,E>>8&255,E>>16&255,E>>24&255,R&255,R>>8&255,R>>16&255,R>>24&255];return O},P.prototype.array=P.prototype.digest,P.prototype.arrayBuffer=function(){this.finalize();var T=new ArrayBuffer(16),x=new Uint32Array(T);return x[0]=this.h0,x[1]=this.h1,x[2]=this.h2,x[3]=this.h3,T},P.prototype.buffer=P.prototype.arrayBuffer,P.prototype.base64=function(){for(var T,x,_,E="",R=this.array(),O=0;O<15;)T=R[O++],x=R[O++],_=R[O++],E+=y[T>>>2]+y[(T<<4|x>>>4)&63]+y[(x<<2|_>>>6)&63]+y[_&63];return T=R[O],E+=y[T>>>2]+y[T<<4&63]+"==",E};var S=I();c?a.exports=S:(u.md5=S,d&&(o=(function(){return S}).call(S,i,S,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(":"),b=m.substr(0,y).trim().toLowerCase(),A=m.substr(y+1).trim();p[b]=A}}),{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 b=d.headers;if(b)for(var A in b)b.hasOwnProperty(A)&&A.toLowerCase()!=="content-length"&&A.toLowerCase()!=="user-agent"&&A.toLowerCase()!=="origin"&&A.toLowerCase()!=="host"&&m.setRequestHeader(A,b[A]);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(M){var C=new Error("timeout");h(l(C,m))},m.onload=function(){h(l(null,m,u(m,d.dataType)))},m.onerror=function(M){var C=u(m,d.dataType);if(C)h(l(null,m,C));else{var I=m.statusText;!I&&m.status===0&&(I=new Error("CORS blocked or network error")),h(l(I,m,C))}},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"&&C[x]!==" "&&C[x]!==" "&&C[x]!==` `&&C[x]!=="\r";x++)R+=C[x];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),x--),!b(R)){let B;return R.trim().length===0?B="Invalid space after '<'.":B="Tag '"+R+"' is an invalid name.",m("InvalidTag",B,A(C,x))}const O=d(C,x);if(O===!1)return m("InvalidAttr","Attributes for '"+R+"' have open quote.",A(C,x));let D=O.value;if(x=O.index,D[D.length-1]==="/"){const B=x-D.length;D=D.substring(0,D.length-1);const $=v(D,I);if($===!0)S=!0;else return m($.err.code,$.err.msg,A(C,B+$.err.line))}else if(E)if(O.tagClosed){if(D.trim().length>0)return m("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",A(C,_));if(P.length===0)return m("InvalidTag","Closing tag '"+R+"' has not been opened.",A(C,_));{const B=P.pop();if(R!==B.tagName){let $=A(C,B.tagStartPos);return m("InvalidTag","Expected closing tag '"+B.tagName+"' (opened in line "+$.line+", col "+$.col+") instead of closing tag '"+R+"'.",A(C,_))}P.length==0&&(T=!0)}}else return m("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",A(C,x));else{const B=v(D,I);if(B!==!0)return m(B.err.code,B.err.msg,A(C,x-D.length+B.err.line));if(T===!0)return m("InvalidXml","Multiple possible root nodes found.",A(C,x));I.unpairedTags.indexOf(R)!==-1||P.push({tagName:R,tagStartPos:_}),S=!0}for(x++;x0)return m("InvalidXml","Invalid '"+JSON.stringify(P.map(x=>x.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return m("InvalidXml","Start tag expected.",1);return!0};function s(C){return C===" "||C===" "||C===` `||C==="\r"}function l(C,I){const P=I;for(;I5&&S==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",A(C,I));if(C[I]=="?"&&C[I+1]==">"){I++;break}else continue}return I}function u(C,I){if(C.length>I+5&&C[I+1]==="-"&&C[I+2]==="-"){for(I+=3;I"){I+=2;break}}else if(C.length>I+8&&C[I+1]==="D"&&C[I+2]==="O"&&C[I+3]==="C"&&C[I+4]==="T"&&C[I+5]==="Y"&&C[I+6]==="P"&&C[I+7]==="E"){let P=1;for(I+=8;I"&&(P--,P===0))break}else if(C.length>I+9&&C[I+1]==="["&&C[I+2]==="C"&&C[I+3]==="D"&&C[I+4]==="A"&&C[I+5]==="T"&&C[I+6]==="A"&&C[I+7]==="["){for(I+=8;I"){I+=2;break}}return I}const f='"',c="'";function d(C,I){let P="",S="",T=!1;for(;I"&&S===""){T=!0;break}P+=C[I]}return S!==""?!1:{value:P,index:I,tagClosed:T}}const h=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function v(C,I){const P=a.getAllMatches(C,h),S={};for(let T=0;T","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"||(b===null?p[0]==="?"?v+=this.indentate(d)+"<"+p+"?"+this.tagEndChar:v+=this.indentate(d)+"<"+p+"/"+this.tagEndChar:typeof b=="object"?this.options.oneListGroup?m+=this.j2x(b,d+1).val:m+=this.processTextOrObjNode(b,p,d):m+=this.buildTextValNode(b,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(b===d.commentPropName){p+=v+``,g=!0;continue}else if(b[0]==="?"){const S=l(y[":@"],d),T=b==="?xml"?"":v;let x=y[b][0][d.textNodeName];x=x.length!==0?" "+x:"",p+=T+`<${b}${x}${S}?>`,g=!0;continue}let M=v;M!==""&&(M+=d.indentBy);const C=l(y[":@"],d),I=v+`<${b}${C}`,P=o(y[b],d,A,M);d.unpairedTags.indexOf(b)!==-1?d.suppressUnpairedNode?p+=I+">":p+=I+"/>":(!P||P.length===0)&&d.suppressEmptyNode?p+=I+"/>":P&&P.endsWith(">")?p+=I+`>${P}${v}`:(p+=I+">",P&&v!==""&&(P.includes("/>")||P.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(b?v[p-1]==="-"&&v[p-2]==="-"&&(b=!1,m--):m--,m===0)break}else v[p]==="["?y=!0:A+=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(T){this.options=T,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:(x,_)=>String.fromCharCode(Number.parseInt(_,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(x,_)=>String.fromCharCode(Number.parseInt(_,16))}},this.addExternalEntities=f,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=d,this.buildAttributesMap=v,this.isItStopNode=b,this.replaceEntitiesValue=m,this.readStopNodeData=I,this.saveTextToParentTag=y,this.addChild=g}}function f(S){const T=Object.keys(S);for(let x=0;x0)){O||(S=this.replaceEntitiesValue(S));const D=this.options.tagValueProcessor(T,S,x,E,R);return D==null?S:typeof D!=typeof S||D!==S?D:this.options.trimValues?P(S,this.options.parseTagValue,this.options.numberParseOptions):S.trim()===S?P(S,this.options.parseTagValue,this.options.numberParseOptions):S}}function d(S){if(this.options.removeNSPrefix){const T=S.split(":"),x=S.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(S=x+T[1])}return S}const h=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function v(S,T,x){if(!this.options.ignoreAttributes&&typeof S=="string"){const _=a.getAllMatches(S,h),E=_.length,R={};for(let O=0;O",R,"Closing Tag is not closed.");let B=S.substring(R+2,D).trim();if(this.options.removeNSPrefix){const Q=B.indexOf(":");Q!==-1&&(B=B.substr(Q+1))}this.options.transformTagName&&(B=this.options.transformTagName(B)),x&&(_=this.saveTextToParentTag(_,x,E));const $=E.substring(E.lastIndexOf(".")+1);if(B&&this.options.unpairedTags.indexOf(B)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let U=0;$&&this.options.unpairedTags.indexOf($)!==-1?(U=E.lastIndexOf(".",E.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=E.lastIndexOf("."),E=E.substring(0,U),x=this.tagsNodeStack.pop(),_="",R=D}else if(S[R+1]==="?"){let D=C(S,R,!1,"?>");if(!D)throw new Error("Pi Tag is not closed.");if(_=this.saveTextToParentTag(_,x,E),!(this.options.ignoreDeclaration&&D.tagName==="?xml"||this.options.ignorePiTags)){const B=new o(D.tagName);B.add(this.options.textNodeName,""),D.tagName!==D.tagExp&&D.attrExpPresent&&(B[":@"]=this.buildAttributesMap(D.tagExp,E,D.tagName)),this.addChild(x,B,E)}R=D.closeIndex+1}else if(S.substr(R+1,3)==="!--"){const D=M(S,"-->",R+4,"Comment is not closed.");if(this.options.commentPropName){const B=S.substring(R+4,D-2);_=this.saveTextToParentTag(_,x,E),x.add(this.options.commentPropName,[{[this.options.textNodeName]:B}])}R=D}else if(S.substr(R+1,2)==="!D"){const D=s(S,R);this.docTypeEntities=D.entities,R=D.i}else if(S.substr(R+1,2)==="!["){const D=M(S,"]]>",R,"CDATA is not closed.")-2,B=S.substring(R+9,D);_=this.saveTextToParentTag(_,x,E);let $=this.parseTextData(B,x.tagname,E,!0,!1,!0,!0);$==null&&($=""),this.options.cdataPropName?x.add(this.options.cdataPropName,[{[this.options.textNodeName]:B}]):x.add(this.options.textNodeName,$),R=D+2}else{let D=C(S,R,this.options.removeNSPrefix),B=D.tagName;const $=D.rawTagName;let U=D.tagExp,Q=D.attrExpPresent,Z=D.closeIndex;this.options.transformTagName&&(B=this.options.transformTagName(B)),x&&_&&x.tagname!=="!xml"&&(_=this.saveTextToParentTag(_,x,E,!1));const V=x;if(V&&this.options.unpairedTags.indexOf(V.tagname)!==-1&&(x=this.tagsNodeStack.pop(),E=E.substring(0,E.lastIndexOf("."))),B!==T.tagname&&(E+=E?"."+B:B),this.isItStopNode(this.options.stopNodes,E,B)){let te="";if(U.length>0&&U.lastIndexOf("/")===U.length-1)B[B.length-1]==="/"?(B=B.substr(0,B.length-1),E=E.substr(0,E.length-1),U=B):U=U.substr(0,U.length-1),R=D.closeIndex;else if(this.options.unpairedTags.indexOf(B)!==-1)R=D.closeIndex;else{const se=this.readStopNodeData(S,$,Z+1);if(!se)throw new Error(`Unexpected end of ${$}`);R=se.i,te=se.tagContent}const ie=new o(B);B!==U&&Q&&(ie[":@"]=this.buildAttributesMap(U,E,B)),te&&(te=this.parseTextData(te,B,E,!0,Q,!0,!0)),E=E.substr(0,E.lastIndexOf(".")),ie.add(this.options.textNodeName,te),this.addChild(x,ie,E)}else{if(U.length>0&&U.lastIndexOf("/")===U.length-1){B[B.length-1]==="/"?(B=B.substr(0,B.length-1),E=E.substr(0,E.length-1),U=B):U=U.substr(0,U.length-1),this.options.transformTagName&&(B=this.options.transformTagName(B));const te=new o(B);B!==U&&Q&&(te[":@"]=this.buildAttributesMap(U,E,B)),this.addChild(x,te,E),E=E.substr(0,E.lastIndexOf("."))}else{const te=new o(B);this.tagsNodeStack.push(x),B!==U&&Q&&(te[":@"]=this.buildAttributesMap(U,E,B)),this.addChild(x,te,E),x=te}_="",R=Z}}else _+=S[R];return T.child};function g(S,T,x){const _=this.options.updateTag(T.tagname,x,T[":@"]);_===!1||(typeof _=="string"&&(T.tagname=_),S.addChild(T))}const m=function(S){if(this.options.processEntities){for(let T in this.docTypeEntities){const x=this.docTypeEntities[T];S=S.replace(x.regx,x.val)}for(let T in this.lastEntities){const x=this.lastEntities[T];S=S.replace(x.regex,x.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){const x=this.htmlEntities[T];S=S.replace(x.regex,x.val)}S=S.replace(this.ampEntity.regex,this.ampEntity.val)}return S};function y(S,T,x,_){return S&&(_===void 0&&(_=Object.keys(T.child).length===0),S=this.parseTextData(S,T.tagname,x,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,_),S!==void 0&&S!==""&&T.add(this.options.textNodeName,S),S=""),S}function b(S,T,x){const _="*."+x;for(const E in S){const R=S[E];if(_===R||T===R)return!0}return!1}function A(S,T,x=">"){let _,E="";for(let R=T;R",x,`${T} is not closed`);if(S.substring(x+2,R).trim()===T&&(E--,E===0))return{tagContent:S.substring(_,x),i:R};x=R}else if(S[x+1]==="?")x=M(S,"?>",x+1,"StopNode is not closed.");else if(S.substr(x+1,3)==="!--")x=M(S,"-->",x+3,"StopNode is not closed.");else if(S.substr(x+1,2)==="![")x=M(S,"]]>",x,"StopNode is not closed.")-2;else{const R=C(S,x,">");R&&((R&&R.tagName)===T&&R.tagExp[R.tagExp.length-1]!=="/"&&E++,x=R.closeIndex)}}function P(S,T,x){if(T&&typeof S=="string"){const _=S.trim();return _==="true"?!0:_==="false"?!1:l(S,x)}else return a.isExist(S)?S:""}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(b){if(a===setTimeout)return setTimeout(b,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(b,0);try{return a(b,0)}catch{try{return a.call(null,b,0)}catch{return a.call(this,b,0)}}}function f(b){if(o===clearTimeout)return clearTimeout(b);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(b);try{return o(b)}catch{try{return o.call(null,b)}catch{return o.call(this,b)}}}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 b=u(p);d=!0;for(var A=c.length;A;){for(h=c,c=[];++v1)for(var M=1;M0&&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(S,T){var x=this,_=new l,E=S.TaskId,R=S.Bucket,O=S.Region,D=S.Key,B=S.Body,$=S.ChunkSize||S.SliceSize||x.options.ChunkSize,U=S.AsyncLimit,Q=S.StorageClass,Z=S.ServerSideEncryption,V,te,ie=S.onHashProgress,se=S.tracker;se&&se.setParams({chunkSize:$}),_.on("error",function(W){if(x._isRunningTask(E))return S.UploadData.UploadId&&o.removeUsing(S.UploadData.UploadId),W.UploadId=S.UploadData.UploadId||"",T(W)}),_.on("upload_complete",function(W){var q=u.extend({UploadId:S.UploadData.UploadId||""},W);T(null,q)}),_.on("upload_slice_complete",function(W){var q={};u.each(S.Headers,function(ce,me){var be=me.toLowerCase();(be.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(be))&&(q[me]=ce)}),m.call(x,{Bucket:R,Region:O,Key:D,UploadId:W.UploadId,SliceList:W.SliceList,Headers:q,tracker:se},function(ce,me){if(x._isRunningTask(E)){if(o.removeUsing(W.UploadId),ce)return te(null,!0),_.emit("error",ce);o.removeUploadId.call(x,W.UploadId),te({loaded:V,total:V},!0),_.emit("upload_complete",me)}})}),_.on("get_upload_data_finish",function(W){var q=o.getFileId(B,S.ChunkSize,R,D);q&&o.saveUploadId.call(x,q,W.UploadId,x.options.UploadIdCacheLimit),o.setUsing(W.UploadId),te(null,!0),p.call(x,{TaskId:E,Bucket:R,Region:O,Key:D,Body:B,FileSize:V,SliceSize:$,AsyncLimit:U,ServerSideEncryption:Z,UploadData:W,Headers:S.Headers,onProgress:te,tracker:se},function(ce,me){if(x._isRunningTask(E)){if(ce)return te(null,!0),_.emit("error",ce);_.emit("upload_slice_complete",me)}})}),_.on("get_file_size_finish",function(){if(te=u.throttleOnProgress.call(x,V,S.onProgress),S.UploadData.UploadId)_.emit("get_upload_data_finish",S.UploadData);else{var W=u.extend({TaskId:E,Bucket:R,Region:O,Key:D,Headers:S.Headers,StorageClass:Q,Body:B,FileSize:V,SliceSize:$,onHashProgress:ie,tracker:se},S);d.call(x,W,function(q,ce){if(x._isRunningTask(E)){if(q)return _.emit("error",q);S.UploadData.UploadId=ce.UploadId,S.UploadData.PartList=ce.PartList,_.emit("get_upload_data_finish",S.UploadData)}})}}),V=S.ContentLength,delete S.ContentLength,!S.Headers&&(S.Headers={}),u.each(S.Headers,function(W,q){q.toLowerCase()==="content-length"&&delete S.Headers[q]}),function(){for(var W=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],q=1024*1024,ce=0;ceQ)return ce(null,!1);if(me>1){var be=Math.max(q[0].Size,q[1].Size);if(be!==U)return ce(null,!1)}var ue=function ve(Ce){if(Ce=ce.length){se.emit("has_and_check_upload_id",W);return}var ve=ce[ue];if(!u.isInArray(W,ve)){o.removeUploadId.call(D,ve),be(ue+1);return}if(o.using[ve]){be(ue+1);return}v.call(D,{Bucket:_,Region:E,Key:R,UploadId:ve,tracker:S.tracker},function(Ce,ae){D._isRunningTask(x)&&(Ce?(o.removeUploadId.call(D,ve),be(ue+1)):se.emit("upload_id_available",{UploadId:ve,PartList:ae.PartList}))})};me(0)}),se.on("get_remote_upload_id_list",function(){h.call(D,{Bucket:_,Region:E,Key:R,tracker:S.tracker},function(W,q){if(D._isRunningTask(x)){if(W)return se.emit("error",W);var ce=u.filter(q.UploadList,function(ue){return ue.Key===R&&(!O||ue.StorageClass.toUpperCase()===O.toUpperCase())}).reverse().map(function(ue){return ue.UploadId||ue.UploadID});if(ce.length)se.emit("seek_local_avail_upload_id",ce);else{var me=o.getFileId(S.Body,S.ChunkSize,_,R),be;me&&(be=o.getUploadIdList.call(D,me))&&u.each(be,function(ue){o.removeUploadId.call(D,ue)}),se.emit("no_available_upload_id")}}})}),se.emit("get_remote_upload_id_list")}function h(S,T){var x=this,_=[],E={Bucket:S.Bucket,Region:S.Region,Prefix:S.Key,calledBySdk:S.calledBySdk||"sliceUploadFile",tracker:S.tracker},R=function O(){x.multipartList(E,function(D,B){if(D)return T(D);_.push.apply(_,B.Upload||[]),B.IsTruncated==="true"?(E.KeyMarker=B.NextKeyMarker,E.UploadIdMarker=B.NextUploadIdMarker,O()):T(null,{UploadList:_})})};R()}function v(S,T){var x=this,_=[],E={Bucket:S.Bucket,Region:S.Region,Key:S.Key,UploadId:S.UploadId,calledBySdk:"sliceUploadFile",tracker:S.tracker},R=function O(){x.multipartListPart(E,function(D,B){if(D)return T(D);_.push.apply(_,B.Part||[]),B.IsTruncated==="true"?(E.PartNumberMarker=B.NextPartNumberMarker,O()):T(null,{PartList:_})})};R()}function p(S,T){var x=this,_=S.TaskId,E=S.Bucket,R=S.Region,O=S.Key,D=S.UploadData,B=S.FileSize,$=S.SliceSize,U=Math.min(S.AsyncLimit||x.options.ChunkParallelLimit||1,256),Q=S.Body,Z=Math.ceil(B/$),V=0,te=S.ServerSideEncryption,ie=S.Headers,se=u.filter(D.PartList,function(q){return q.Uploaded&&(V+=q.PartNumber>=Z&&B%$||$),!q.Uploaded}),W=S.onProgress;s.eachLimit(se,U,function(q,ce){if(x._isRunningTask(_)){var me=q.PartNumber,be=Math.min(B,q.PartNumber*$)-(q.PartNumber-1)*$,ue=0;g.call(x,{TaskId:_,Bucket:E,Region:R,Key:O,SliceSize:$,FileSize:B,PartNumber:me,ServerSideEncryption:te,Body:Q,UploadData:D,Headers:ie,onProgress:function(Ce){V+=Ce.loaded-ue,ue=Ce.loaded,W({loaded:V,total:B})},tracker:S.tracker},function(ve,Ce){x._isRunningTask(_)&&(!ve&&!Ce.ETag&&(ve='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),ve?V-=ue:(V+=be-ue,q.ETag=Ce.ETag),W({loaded:V,total:B}),ce(ve||null,Ce))})}},function(q){if(x._isRunningTask(_)){if(q)return T(q);T(null,{UploadId:D.UploadId,SliceList:D.PartList})}})}function g(S,T){var x=this,_=S.TaskId,E=S.Bucket,R=S.Region,O=S.Key,D=S.FileSize,B=S.Body,$=S.PartNumber*1,U=S.SliceSize,Q=S.ServerSideEncryption,Z=S.UploadData,V=S.Headers||{},te=x.options.ChunkRetryTimes+1,ie=U*($-1),se=U,W=ie+U;W>D&&(W=D,se=W-ie);var q=["x-cos-traffic-limit","x-cos-mime-limit"],ce={};u.each(V,function(be,ue){q.indexOf(ue)>-1&&(ce[ue]=be)});var me=Z.PartList[$-1];s.retry(te,function(be){x._isRunningTask(_)&&u.fileSlice(B,ie,W,!0,function(ue){x.multipartUpload({TaskId:_,Bucket:E,Region:R,Key:O,ContentLength:se,PartNumber:$,UploadId:Z.UploadId,ServerSideEncryption:Q,Body:ue,Headers:ce,onProgress:S.onProgress,calledBySdk:"sliceUploadFile",tracker:S.tracker},function(ve,Ce){if(x._isRunningTask(_))return ve?be(ve):(me.Uploaded=!0,be(null,Ce))})})},function(be,ue){if(x._isRunningTask(_))return T(be,ue)})}function m(S,T){var x=S.Bucket,_=S.Region,E=S.Key,R=S.UploadId,O=S.SliceList,D=this,B=this.options.ChunkRetryTimes+1,$=S.Headers,U=O.map(function(Q){return{PartNumber:Q.PartNumber,ETag:Q.ETag}});s.retry(B,function(Q){D.multipartComplete({Bucket:x,Region:_,Key:E,UploadId:R,Parts:U,Headers:$,calledBySdk:"sliceUploadFile",tracker:S.tracker},Q)},function(Q,Z){T(Q,Z)})}function y(S,T){var x=S.Bucket,_=S.Region,E=S.Key,R=S.UploadId,O=S.Level||"task",D=S.AsyncLimit,B=this,$=new l;if($.on("error",function(U){return T(U)}),$.on("get_abort_array",function(U){b.call(B,{Bucket:x,Region:_,Key:E,Headers:S.Headers,AsyncLimit:D,AbortArray:U},T)}),O==="bucket")h.call(B,{Bucket:x,Region:_,calledBySdk:"abortUploadTask"},function(U,Q){if(U)return T(U);$.emit("get_abort_array",Q.UploadList||[])});else if(O==="file"){if(!E)return T(u.error(new Error("abort_upload_task_no_key")));h.call(B,{Bucket:x,Region:_,Key:E,calledBySdk:"abortUploadTask"},function(U,Q){if(U)return T(U);$.emit("get_abort_array",Q.UploadList||[])})}else if(O==="task"){if(!R)return T(u.error(new Error("abort_upload_task_no_id")));if(!E)return T(u.error(new Error("abort_upload_task_no_key")));$.emit("get_abort_array",[{Key:E,UploadId:R}])}else return T(u.error(new Error("abort_unknown_level")))}function b(S,T){var x=S.Bucket,_=S.Region,E=S.Key,R=S.AbortArray,O=S.AsyncLimit||1,D=this,B=0,$=new Array(R.length);s.eachLimit(R,O,function(U,Q){var Z=B;if(E&&E!==U.Key){$[Z]={error:{KeyNotMatch:!0}},Q(null);return}var V=U.UploadId||U.UploadID;D.multipartAbort({Bucket:x,Region:_,Key:U.Key,Headers:S.Headers,UploadId:V},function(te){var ie={Bucket:x,Region:_,Key:U.Key,UploadId:V};$[Z]={error:te,task:ie},Q(null)}),B++},function(U){if(U)return T(U);for(var Q=[],Z=[],V=0,te=$.length;V_?"sliceUploadFile":"putObject";S.tracker=new f({Beacon:x.options.BeaconReporter,clsReporter:x.options.ClsReporter,bucket:S.Bucket,region:S.Region,apiName:"uploadFile",realApi:$,fileKey:S.Key,fileSize:O,accelerate:B,deepTracker:x.options.DeepTracker,customId:x.options.CustomId,delay:x.options.TrackerDelay})}u.each(S,function(ie,se){a(ie)!=="object"&&typeof ie!="function"&&(D[se]=ie)});var U=S.onTaskReady,Q=function(se){D.TaskId=se,U&&U(se)};S.onTaskReady=Q;var Z=O>_?"sliceUploadFile":"putObject",V=S.onFileFinish,te=function(se,W){S.tracker&&S.tracker.report(se,W),V&&V(se,W,D),T&&T(se,W)};E.push({api:Z,params:S,callback:te}),x._addTasks(E)}function M(S,T){var x=this,_=S.SliceSize===void 0?x.options.SliceSize:S.SliceSize,E=0,R=0,O=u.throttleOnProgress.call(x,R,S.onProgress),D=S.files.length,B=S.onFileFinish,$=Array(D),U=function(V,te,ie){O(null,!0),B&&B(V,te,ie),$[ie.Index]={options:ie,error:V,data:te},--D<=0&&T&&T(null,{files:$})},Q=[];u.each(S.files,function(Z,V){(function(){var te=Z.Body,ie=te.size||te.length||0,se={Index:V,TaskId:""};if(!x.options.UseRawKey&&Z.Key&&Z.Key.substr(0,1)==="/"&&(Z.Key=Z.Key.substr(1)),E+=ie,x.options.EnableReporter){var W=x.options.UseAccelerate||typeof x.options.Domain=="string"&&x.options.Domain.includes("accelerate."),q=ie>_?"sliceUploadFile":"putObject";Z.tracker=new f({Beacon:x.options.BeaconReporter,clsReporter:x.options.ClsReporter,bucket:Z.Bucket,region:Z.Region,apiName:"uploadFiles",realApi:q,fileKey:Z.Key,fileSize:ie,accelerate:W,deepTracker:x.options.DeepTracker,customId:x.options.CustomId,delay:x.options.TrackerDelay})}u.each(Z,function(Ae,Re){a(Ae)!=="object"&&typeof Ae!="function"&&(se[Re]=Ae)});var ce=Z.onTaskReady,me=function(Re){se.TaskId=Re,ce&&ce(Re)};Z.onTaskReady=me;var be=0,ue=Z.onProgress,ve=function(Re){R=R-be+Re.loaded,be=Re.loaded,ue&&ue(Re),O({loaded:R,total:E})};Z.onProgress=ve;var Ce=ie>_?"sliceUploadFile":"putObject",ae=Z.onFileFinish,fe=function(Re,st){Z.tracker&&Z.tracker.report(Re,st),ae&&ae(Re,st),U&&U(Re,st,se)};Q.push({api:Ce,params:Z,callback:fe})})()}),x._addTasks(Q)}function C(S,T){var x=new l,_=this,E=S.Bucket,R=S.Region,O=S.Key,D=S.CopySource,B=u.getSourceParams.call(this,D);if(!B){T(u.error(new Error("CopySource format error")));return}var $=B.Bucket,U=B.Region,Q=decodeURIComponent(B.Key),Z=S.CopySliceSize===void 0?_.options.CopySliceSize:S.CopySliceSize;Z=Math.max(0,Z);var V=S.CopyChunkSize||this.options.CopyChunkSize,te=this.options.CopyChunkParallelLimit,ie=this.options.ChunkRetryTimes+1,se=0,W=0,q,ce,me={},be={},ue={};x.on("copy_slice_complete",function(ve){u.each(S.Headers,function(ae,fe){fe.toLowerCase().indexOf("x-cos-meta-")});var Ce=u.map(ve.PartList,function(ae){return{PartNumber:ae.PartNumber,ETag:ae.ETag}});s.retry(ie,function(ae){_.multipartComplete({Bucket:E,Region:R,Key:O,UploadId:ve.UploadId,Parts:Ce,tracker:S.tracker,calledBySdk:"sliceCopyFile"},ae)},function(ae,fe){if(o.removeUsing(ve.UploadId),ae)return ce(null,!0),T(ae);o.removeUploadId(ve.UploadId),ce({loaded:q,total:q},!0),T(null,fe)})}),x.on("get_copy_data_finish",function(ve){var Ce=o.getCopyFileId(D,me,V,E,O);Ce&&o.saveUploadId(Ce,ve.UploadId,_.options.UploadIdCacheLimit),o.setUsing(ve.UploadId);var ae=u.filter(ve.PartList,function(fe){return fe.Uploaded&&(W+=fe.PartNumber>=se&&q%V||V),!fe.Uploaded});s.eachLimit(ae,te,function(fe,Ae){var Re=fe.PartNumber,st=fe.CopySourceRange,vt=fe.end-fe.start;s.retry(ie,function(mt){I.call(_,{Bucket:E,Region:R,Key:O,CopySource:D,UploadId:ve.UploadId,PartNumber:Re,CopySourceRange:st,tracker:S.tracker,calledBySdk:"sliceCopyFile"},mt)},function(mt,Fe){if(mt)return Ae(mt);W+=vt,ce({loaded:W,total:q}),fe.ETag=Fe.ETag,Ae(mt||null,Fe)})},function(fe){if(fe)return o.removeUsing(ve.UploadId),ce(null,!0),T(fe);x.emit("copy_slice_complete",ve)})}),x.on("get_chunk_size_finish",function(){var ve=function(){_.multipartInit({Bucket:E,Region:R,Key:O,Headers:ue,tracker:S.tracker,calledBySdk:"sliceCopyFile"},function(Re,st){if(Re)return T(Re);S.UploadId=st.UploadId,x.emit("get_copy_data_finish",{UploadId:S.UploadId,PartList:S.PartList})})},Ce=o.getCopyFileId(D,me,V,E,O),ae=o.getUploadIdList(Ce);if(!Ce||!ae)return ve();var fe=function Ae(Re){if(Re>=ae.length)return ve();var st=ae[Re];if(o.using[st])return Ae(Re+1);v.call(_,{Bucket:E,Region:R,Key:O,UploadId:st,tracker:S.tracker,calledBySdk:"sliceCopyFile"},function(vt,mt){if(vt)o.removeUploadId(st),Ae(Re+1);else{if(o.using[st])return Ae(Re+1);var Fe={},Kt=0;u.each(mt.PartList,function(Lt){var gr=parseInt(Lt.Size),hn=Kt+gr-1;Fe[Lt.PartNumber+"|"+Kt+"|"+hn]=Lt.ETag,Kt+=gr}),u.each(S.PartList,function(Lt){var gr=Fe[Lt.PartNumber+"|"+Lt.start+"|"+Lt.end];gr&&(Lt.ETag=gr,Lt.Uploaded=!0)}),x.emit("get_copy_data_finish",{UploadId:st,PartList:S.PartList})}})};fe(0)}),x.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],ae=1024*1024,fe=0;feRe.length&&(be[Ae]=fe)}),x.emit("get_file_size_finish")}})}function I(S,T){var x=S.TaskId,_=S.Bucket,E=S.Region,R=S.Key,O=S.CopySource,D=S.UploadId,B=S.PartNumber*1,$=S.CopySourceRange,U=this.options.ChunkRetryTimes+1,Q=this;s.retry(U,function(Z){Q.uploadPartCopy({TaskId:x,Bucket:_,Region:E,Key:R,CopySource:O,UploadId:D,PartNumber:B,CopySourceRange:$,tracker:S.tracker,calledBySdk:S.calledBySdk},function(V,te){Z(V||null,te)})},function(Z,V){return T(Z,V)})}var P={sliceUploadFile:c,abortUploadTask:y,uploadFile:A,uploadFiles:M,sliceCopyFile:C};r.exports.init=function(S,T){T.transferToTaskMethod(P,"sliceUploadFile"),u.each(P,function(x,_){S.prototype[_]=u.apiWrapper(_,x)})}},"./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:"),k=this.options.ServiceDomain,H=w.AppId||this.options.appId,z=w.Region;k?(k=k.replace(/\{\{AppId\}\}/gi,H||"").replace(/\{\{Region\}\}/gi,z||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(k)||(k=L+"//"+k),k.slice(-1)==="/"&&(k=k.slice(0,-1))):z?k=L+"//cos."+z+".myqcloud.com":k=L+"//service.cos.myqcloud.com";var X="",ee=z?"cos."+z+".myqcloud.com":"service.cos.myqcloud.com",pe=k.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");ee===pe&&(X=ee),Le.call(this,{Action:"name/cos:GetService",url:k,method:"GET",headers:w.Headers,SignHost:X,tracker:w.tracker},function(ze,Ne){if(ze)return N(ze);var at=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Buckets&&Ne.ListAllMyBucketsResult.Buckets.Bucket||[];at=s.isArray(at)?at:[at];var we=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Owner||{};N(null,{Buckets:at,Owner:we,statusCode:Ne.statusCode,headers:Ne.headers})})}function u(w,N){var L=this,k="";if(w.BucketAZConfig){var H={BucketAZConfig:w.BucketAZConfig};k=s.json2xml({CreateBucketConfiguration:H})}Le.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,body:k,tracker:w.tracker},function(z,X){if(z)return N(z);var ee=Kr({protocol:L.options.Protocol,domain:L.options.Domain,bucket:w.Bucket,region:w.Region,isLocation:!0});N(null,{Location:ee,statusCode:X.statusCode,headers:X.headers})})}function f(w,N){Le.call(this,{Action:"name/cos:HeadBucket",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,method:"HEAD",tracker:w.tracker},N)}function c(w,N){var L={};L.prefix=w.Prefix||"",L.delimiter=w.Delimiter,L.marker=w.Marker,L["max-keys"]=w.MaxKeys,L["encoding-type"]=w.EncodingType,Le.call(this,{Action:"name/cos:GetBucket",ResourceKey:L.prefix,method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,qs:L,tracker:w.tracker},function(k,H){if(k)return N(k);var z=H.ListBucketResult||{},X=z.Contents||[],ee=z.CommonPrefixes||[];X=s.isArray(X)?X:[X],ee=s.isArray(ee)?ee:[ee];var pe=s.clone(z);s.extend(pe,{Contents:X,CommonPrefixes:ee,statusCode:H.statusCode,headers:H.headers}),N(null,pe)})}function d(w,N){Le.call(this,{Action:"name/cos:DeleteBucket",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,method:"DELETE",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function h(w,N){var L=w.Headers,k="";if(w.AccessControlPolicy){var H=s.clone(w.AccessControlPolicy||{}),z=H.Grants||H.Grant;z=s.isArray(z)?z:[z],delete H.Grant,delete H.Grants,H.AccessControlList={Grant:z},k=s.json2xml({AccessControlPolicy:H}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(k))}s.each(L,function(X,ee){ee.indexOf("x-cos-grant-")===0&&(L[ee]=Mn(L[ee]))}),Le.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:w.Bucket,Region:w.Region,headers:L,action:"acl",body:k,tracker:w.tracker},function(X,ee){if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function v(w,N){Le.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"acl",tracker:w.tracker},function(L,k){if(L)return N(L);var H=k.AccessControlPolicy||{},z=H.Owner||{},X=H.AccessControlList.Grant||[];X=s.isArray(X)?X:[X];var ee=dt(H);k.headers&&k.headers["x-cos-acl"]&&(ee.ACL=k.headers["x-cos-acl"]),ee=s.extend(ee,{Owner:z,Grants:X,statusCode:k.statusCode,headers:k.headers}),N(null,ee)})}function p(w,N){var L=w.CORSConfiguration||{},k=L.CORSRules||w.CORSRules||[];k=s.clone(s.isArray(k)?k:[k]),s.each(k,function(ee){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(pe){var ze=pe+"s",Ne=ee[ze]||ee[pe]||[];delete ee[ze],ee[pe]=s.isArray(Ne)?Ne:[Ne]})});var H={CORSRule:k};w.ResponseVary&&(H.ResponseVary=w.ResponseVary);var z=s.json2xml({CORSConfiguration:H}),X=w.Headers;X["Content-Type"]="application/xml",X["Content-MD5"]=s.b64(s.md5(z)),Le.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:z,action:"cors",headers:X,tracker:w.tracker},function(ee,pe){if(ee)return N(ee);N(null,{statusCode:pe.statusCode,headers:pe.headers})})}function g(w,N){Le.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"cors",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchCORSConfiguration"){var H={CORSRules:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=k.CORSConfiguration||{},X=z.CORSRules||z.CORSRule||[];X=s.clone(s.isArray(X)?X:[X]);var ee=z.ResponseVary;s.each(X,function(pe){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(ze){var Ne=ze+"s",at=pe[Ne]||pe[ze]||[];delete pe[ze],pe[Ne]=s.isArray(at)?at:[at]})}),N(null,{CORSRules:X,ResponseVary:ee,statusCode:k.statusCode,headers:k.headers})})}function m(w,N){Le.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"cors",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode||L.statusCode,headers:k.headers})})}function y(w,N){Le.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"location",tracker:w.tracker},N)}function b(w,N){var L=w.Policy;try{typeof L=="string"&&(L=JSON.parse(L))}catch{}if(!L||typeof L=="string")return N(s.error(new Error("Policy format error")));var k=JSON.stringify(L);L.version||(L.version="2.0");var H=w.Headers;H["Content-Type"]="application/json",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:w.Bucket,Region:w.Region,action:"policy",body:k,headers:H,tracker:w.tracker},function(z,X){if(z&&z.statusCode===204)return N(null,{statusCode:z.statusCode});if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function A(w,N){Le.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"policy",rawBody:!0,tracker:w.tracker},function(L,k){if(L)return L.statusCode&&L.statusCode===403?N(s.error(L,{ErrorStatus:"Access Denied"})):L.statusCode&&L.statusCode===405?N(s.error(L,{ErrorStatus:"Method Not Allowed"})):L.statusCode&&L.statusCode===404?N(s.error(L,{ErrorStatus:"Policy Not Found"})):N(L);var H={};try{H=JSON.parse(k.body)}catch{}N(null,{Policy:H,statusCode:k.statusCode,headers:k.headers})})}function M(w,N){Le.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"policy",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode||L.statusCode,headers:k.headers})})}function C(w,N){var L=w.Tagging||{},k=L.TagSet||L.Tags||w.Tags||[];k=s.clone(s.isArray(k)?k:[k]);var H=s.json2xml({Tagging:{TagSet:{Tag:k}}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"tagging",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function I(w,N){Le.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"tagging",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var H={Tags:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=[];try{z=k.Tagging.TagSet.Tag||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),N(null,{Tags:z,statusCode:k.statusCode,headers:k.headers})})}function P(w,N){Le.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"tagging",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function S(w,N){var L=w.LifecycleConfiguration||{},k=L.Rules||w.Rules||[];k=s.clone(k);var H=s.json2xml({LifecycleConfiguration:{Rule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"lifecycle",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function T(w,N){Le.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"lifecycle",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchLifecycleConfiguration"){var H={Rules:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=[];try{z=k.LifecycleConfiguration.Rule||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),N(null,{Rules:z,statusCode:k.statusCode,headers:k.headers})})}function x(w,N){Le.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"lifecycle",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function _(w,N){if(!w.VersioningConfiguration){N(s.error(new Error("missing param VersioningConfiguration")));return}var L=w.VersioningConfiguration||{},k=s.json2xml({VersioningConfiguration:L}),H=w.Headers;H["Content-Type"]="application/xml",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:k,action:"versioning",headers:H,tracker:w.tracker},function(z,X){if(z&&z.statusCode===204)return N(null,{statusCode:z.statusCode});if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function E(w,N){Le.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"versioning",tracker:w.tracker},function(L,k){L||!k.VersioningConfiguration&&(k.VersioningConfiguration={}),N(L,k)})}function R(w,N){var L=s.clone(w.ReplicationConfiguration),k=s.json2xml({ReplicationConfiguration:L});k=k.replace(/<(\/?)Rules>/gi,"<$1Rule>"),k=k.replace(/<(\/?)Tags>/gi,"<$1Tag>");var H=w.Headers;H["Content-Type"]="application/xml",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:k,action:"replication",headers:H,tracker:w.tracker},function(z,X){if(z&&z.statusCode===204)return N(null,{statusCode:z.statusCode});if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function O(w,N){Le.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"replication",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="ReplicationConfigurationnotFoundError")){var H={ReplicationConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}!k.ReplicationConfiguration&&(k.ReplicationConfiguration={}),k.ReplicationConfiguration.Rule&&(k.ReplicationConfiguration.Rules=s.makeArray(k.ReplicationConfiguration.Rule),delete k.ReplicationConfiguration.Rule),N(L,k)})}function D(w,N){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"replication",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function B(w,N){if(!w.WebsiteConfiguration){N(s.error(new Error("missing param WebsiteConfiguration")));return}var L=s.clone(w.WebsiteConfiguration||{}),k=L.RoutingRules||L.RoutingRule||[];k=s.isArray(k)?k:[k],delete L.RoutingRule,delete L.RoutingRules,k.length&&(L.RoutingRules={RoutingRule:k});var H=s.json2xml({WebsiteConfiguration:L}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"website",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function $(w,N){Le.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"website",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchWebsiteConfiguration"){var H={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=k.WebsiteConfiguration||{};if(z.RoutingRules){var X=s.clone(z.RoutingRules.RoutingRule||[]);X=s.makeArray(X),z.RoutingRules=X}N(null,{WebsiteConfiguration:z,statusCode:k.statusCode,headers:k.headers})})}function U(w,N){Le.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"website",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function Q(w,N){if(!w.RefererConfiguration){N(s.error(new Error("missing param RefererConfiguration")));return}var L=s.clone(w.RefererConfiguration||{}),k=L.DomainList||{},H=k.Domains||k.Domain||[];H=s.isArray(H)?H:[H],H.length&&(L.DomainList={Domain:H});var z=s.json2xml({RefererConfiguration:L}),X=w.Headers;X["Content-Type"]="application/xml",X["Content-MD5"]=s.b64(s.md5(z)),Le.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:z,action:"referer",headers:X,tracker:w.tracker},function(ee,pe){if(ee&&ee.statusCode===204)return N(null,{statusCode:ee.statusCode});if(ee)return N(ee);N(null,{statusCode:pe.statusCode,headers:pe.headers})})}function Z(w,N){Le.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"referer",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchRefererConfiguration"){var H={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=k.RefererConfiguration||{};if(z.DomainList){var X=s.makeArray(z.DomainList.Domain||[]);z.DomainList={Domains:X}}N(null,{RefererConfiguration:z,statusCode:k.statusCode,headers:k.headers})})}function V(w,N){var L=w.DomainConfiguration||{},k=L.DomainRule||w.DomainRule||[];k=s.clone(k);var H=s.json2xml({DomainConfiguration:{DomainRule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"domain",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function te(w,N){Le.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"domain",tracker:w.tracker},function(L,k){if(L)return N(L);var H=[];try{H=k.DomainConfiguration.DomainRule||[]}catch{}H=s.clone(s.isArray(H)?H:[H]),N(null,{DomainRule:H,statusCode:k.statusCode,headers:k.headers})})}function ie(w,N){Le.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"domain",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function se(w,N){var L=w.OriginConfiguration||{},k=L.OriginRule||w.OriginRule||[];k=s.clone(k);var H=s.json2xml({OriginConfiguration:{OriginRule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"origin",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function W(w,N){Le.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"origin",tracker:w.tracker},function(L,k){if(L)return N(L);var H=[];try{H=k.OriginConfiguration.OriginRule||[]}catch{}H=s.clone(s.isArray(H)?H:[H]),N(null,{OriginRule:H,statusCode:k.statusCode,headers:k.headers})})}function q(w,N){Le.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"origin",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function ce(w,N){var L=s.json2xml({BucketLoggingStatus:w.BucketLoggingStatus||""}),k=w.Headers;k["Content-Type"]="application/xml",k["Content-MD5"]=s.b64(s.md5(L)),Le.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:L,action:"logging",headers:k,tracker:w.tracker},function(H,z){if(H&&H.statusCode===204)return N(null,{statusCode:H.statusCode});if(H)return N(H);N(null,{statusCode:z.statusCode,headers:z.headers})})}function me(w,N){Le.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"logging",tracker:w.tracker},function(L,k){if(L)return N(L);N(null,{BucketLoggingStatus:k.BucketLoggingStatus,statusCode:k.statusCode,headers:k.headers})})}function be(w,N,L){var k=s.clone(N.InventoryConfiguration);if(k.OptionalFields){var H=k.OptionalFields||[];k.OptionalFields={Field:H}}if(k.Destination&&k.Destination.COSBucketDestination&&k.Destination.COSBucketDestination.Encryption){var z=k.Destination.COSBucketDestination.Encryption;Object.keys(z).indexOf("SSECOS")>-1&&(z["SSE-COS"]=z.SSECOS,delete z.SSECOS)}var X=s.json2xml({InventoryConfiguration:k}),ee=N.Headers;ee["Content-Type"]="application/xml",ee["Content-MD5"]=s.b64(s.md5(X));var pe=w==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Le.call(this,{Action:pe,method:w,Bucket:N.Bucket,Region:N.Region,body:X,action:"inventory",qs:{id:N.Id},headers:ee,tracker:N.tracker},function(ze,Ne){if(ze&&ze.statusCode===204)return L(null,{statusCode:ze.statusCode});if(ze)return L(ze);L(null,{statusCode:Ne.statusCode,headers:Ne.headers})})}function ue(w,N){return be.call(this,"PUT",w,N)}function ve(w,N){return be.call(this,"POST",w,N)}function Ce(w,N){Le.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"inventory",qs:{id:w.Id},tracker:w.tracker},function(L,k){if(L)return N(L);var H=k.InventoryConfiguration;if(H&&H.OptionalFields&&H.OptionalFields.Field){var z=H.OptionalFields.Field;s.isArray(z)||(z=[z]),H.OptionalFields=z}if(H.Destination&&H.Destination.COSBucketDestination&&H.Destination.COSBucketDestination.Encryption){var X=H.Destination.COSBucketDestination.Encryption;Object.keys(X).indexOf("SSE-COS")>-1&&(X.SSECOS=X["SSE-COS"],delete X["SSE-COS"])}N(null,{InventoryConfiguration:H,statusCode:k.statusCode,headers:k.headers})})}function ae(w,N){Le.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"inventory",qs:{"continuation-token":w.ContinuationToken},tracker:w.tracker},function(L,k){if(L)return N(L);var H=k.ListInventoryConfigurationResult,z=H.InventoryConfiguration||[];z=s.isArray(z)?z:[z],delete H.InventoryConfiguration,s.each(z,function(X){if(X&&X.OptionalFields&&X.OptionalFields.Field){var ee=X.OptionalFields.Field;s.isArray(ee)||(ee=[ee]),X.OptionalFields=ee}if(X.Destination&&X.Destination.COSBucketDestination&&X.Destination.COSBucketDestination.Encryption){var pe=X.Destination.COSBucketDestination.Encryption;Object.keys(pe).indexOf("SSE-COS")>-1&&(pe.SSECOS=pe["SSE-COS"],delete pe["SSE-COS"])}}),H.InventoryConfigurations=z,s.extend(H,{statusCode:k.statusCode,headers:k.headers}),N(null,H)})}function fe(w,N){Le.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"inventory",qs:{id:w.Id},tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function Ae(w,N){if(!w.AccelerateConfiguration){N(s.error(new Error("missing param AccelerateConfiguration")));return}var L={AccelerateConfiguration:w.AccelerateConfiguration||{}},k=s.json2xml(L),H={};H["Content-Type"]="application/xml",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:k,action:"accelerate",headers:H,tracker:w.tracker},function(z,X){if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function Re(w,N){Le.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:w.Bucket,Region:w.Region,action:"accelerate",tracker:w.tracker},function(L,k){L||!k.AccelerateConfiguration&&(k.AccelerateConfiguration={}),N(L,k)})}function st(w,N){var L=w.ServerSideEncryptionConfiguration||{},k=L.Rule||L.Rules||[],H=s.json2xml({ServerSideEncryptionConfiguration:{Rule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"encryption",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function vt(w,N){Le.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"encryption",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.code==="NoSuchEncryptionConfiguration"){var H={EncryptionConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=s.makeArray(k.EncryptionConfiguration&&k.EncryptionConfiguration.Rule||[]);k.EncryptionConfiguration={Rules:z},N(L,k)})}function mt(w,N){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"encryption",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function Fe(w,N){Le.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,headers:w.Headers,tracker:w.tracker},function(L,k){if(L){var H=L.statusCode;return w.Headers["If-Modified-Since"]&&H&&H===304?N(null,{NotModified:!0,statusCode:H}):N(L)}k.ETag=s.attr(k.headers,"etag",""),N(null,k)})}function Kt(w,N){var L={};L.prefix=w.Prefix||"",L.delimiter=w.Delimiter,L["key-marker"]=w.KeyMarker,L["version-id-marker"]=w.VersionIdMarker,L["max-keys"]=w.MaxKeys,L["encoding-type"]=w.EncodingType,Le.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:L.prefix,method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,qs:L,action:"versions",tracker:w.tracker},function(k,H){if(k)return N(k);var z=H.ListVersionsResult||{},X=z.DeleteMarker||[];X=s.isArray(X)?X:[X];var ee=z.Version||[];ee=s.isArray(ee)?ee:[ee];var pe=s.clone(z);delete pe.DeleteMarker,delete pe.Version,s.extend(pe,{DeleteMarkers:X,Versions:ee,statusCode:H.statusCode,headers:H.headers}),N(null,pe)})}function Lt(w,N){if(this.options.ObjectKeySimplifyCheck){var L=s.simplifyPath(w.Key);if(L==="/"){N(s.error(new Error("The Getobject Key is illegal")));return}}var k=w.Query||{},H=w.QueryString||"",z=s.throttleOnProgress.call(this,0,w.onProgress),X=w.tracker;X&&X.setParams({signStartTime:new Date().getTime()}),k["response-content-type"]=w.ResponseContentType,k["response-content-language"]=w.ResponseContentLanguage,k["response-expires"]=w.ResponseExpires,k["response-cache-control"]=w.ResponseCacheControl,k["response-content-disposition"]=w.ResponseContentDisposition,k["response-content-encoding"]=w.ResponseContentEncoding,Le.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,DataType:w.DataType,headers:w.Headers,qs:k,qsStr:H,rawBody:!0,onDownloadProgress:z,tracker:X},function(ee,pe){if(z(null,!0),ee){var ze=ee.statusCode;return w.Headers["If-Modified-Since"]&&ze&&ze===304?N(null,{NotModified:!0}):N(ee)}N(null,{Body:pe.body,ETag:s.attr(pe.headers,"etag",""),statusCode:pe.statusCode,headers:pe.headers})})}function gr(w,N){var L=this,k=w.ContentLength,H=s.throttleOnProgress.call(L,k,w.onProgress),z=w.Headers;!z["Cache-Control"]&&!z["cache-control"]&&(z["Cache-Control"]=""),!z["Content-Type"]&&!z["content-type"]&&(z["Content-Type"]=w.Body&&w.Body.type||"");var X=w.UploadAddMetaMd5||L.options.UploadAddMetaMd5||L.options.UploadCheckContentMd5,ee=w.tracker;X&&ee&&ee.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(X,w.Body,function(pe){pe&&(ee&&ee.setParams({md5EndTime:new Date().getTime()}),L.options.UploadCheckContentMd5&&(z["Content-MD5"]=s.b64(pe)),(w.UploadAddMetaMd5||L.options.UploadAddMetaMd5)&&(z["x-cos-meta-md5"]=pe)),w.ContentLength!==void 0&&(z["Content-Length"]=w.ContentLength),H(null,!0),Le.call(L,{Action:"name/cos:PutObject",TaskId:w.TaskId,method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,qs:w.Query,body:w.Body,onProgress:H,tracker:ee},function(ze,Ne){if(ze)return H(null,!0),N(ze);H({loaded:k,total:k},!0);var at=Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:w.Bucket,region:L.options.UseAccelerate?"accelerate":w.Region,object:w.Key});at=at.substr(at.indexOf("://")+3),Ne.Location=at,Ne.ETag=s.attr(Ne.headers,"etag",""),N(null,Ne)})},w.onHashProgress)}function hn(w,N){Le.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,VersionId:w.VersionId,action:w.Recursive?"recursive":"",tracker:w.tracker},function(L,k){if(L){var H=L.statusCode;return H&&H===404?N(null,{BucketNotFound:!0,statusCode:H}):N(L)}N(null,{statusCode:k.statusCode,headers:k.headers})})}function Jn(w,N){var L={};w.VersionId&&(L.versionId=w.VersionId),Le.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,qs:L,action:"acl",tracker:w.tracker},function(k,H){if(k)return N(k);var z=H.AccessControlPolicy||{},X=z.Owner||{},ee=z.AccessControlList&&z.AccessControlList.Grant||[];ee=s.isArray(ee)?ee:[ee];var pe=dt(z);delete pe.GrantWrite,H.headers&&H.headers["x-cos-acl"]&&(pe.ACL=H.headers["x-cos-acl"]),pe=s.extend(pe,{Owner:X,Grants:ee,statusCode:H.statusCode,headers:H.headers}),N(null,pe)})}function qn(w,N){var L=w.Headers,k="";if(w.AccessControlPolicy){var H=s.clone(w.AccessControlPolicy||{}),z=H.Grants||H.Grant;z=s.isArray(z)?z:[z],delete H.Grant,delete H.Grants,H.AccessControlList={Grant:z},k=s.json2xml({AccessControlPolicy:H}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(k))}s.each(L,function(X,ee){ee.indexOf("x-cos-grant-")===0&&(L[ee]=Mn(L[ee]))}),Le.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,action:"acl",headers:L,body:k,tracker:w.tracker},function(X,ee){if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function ei(w,N){var L=w.Headers;L.Origin=w.Origin,L["Access-Control-Request-Method"]=w.AccessControlRequestMethod,L["Access-Control-Request-Headers"]=w.AccessControlRequestHeaders,Le.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:L,tracker:w.tracker},function(k,H){if(k)return k.statusCode&&k.statusCode===403?N(null,{OptionsForbidden:!0,statusCode:k.statusCode}):N(k);var z=H.headers||{};N(null,{AccessControlAllowOrigin:z["access-control-allow-origin"],AccessControlAllowMethods:z["access-control-allow-methods"],AccessControlAllowHeaders:z["access-control-allow-headers"],AccessControlExposeHeaders:z["access-control-expose-headers"],AccessControlMaxAge:z["access-control-max-age"],statusCode:H.statusCode,headers:H.headers})})}function ne(w,N){var L=this,k=w.Headers;!k["Cache-Control"]&&!k["cache-control"]&&(k["Cache-Control"]="");var H=w.CopySource||"",z=s.getSourceParams.call(this,H);if(!z){N(s.error(new Error("CopySource format error")));return}var X=z.Bucket,ee=z.Region,pe=decodeURIComponent(z.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:X,region:ee,prefix:pe},{action:"name/cos:PutObject",bucket:w.Bucket,region:w.Region,prefix:w.Key}],method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,headers:w.Headers,tracker:w.tracker},function(ze,Ne){if(ze)return N(ze);var at=s.clone(Ne.CopyObjectResult||{}),we=Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:w.Bucket,region:w.Region,object:w.Key,isLocation:!0});s.extend(at,{Location:we,statusCode:Ne.statusCode,headers:Ne.headers}),N(null,at)})}function re(w,N){var L=w.CopySource||"",k=s.getSourceParams.call(this,L);if(!k){N(s.error(new Error("CopySource format error")));return}var H=k.Bucket,z=k.Region,X=decodeURIComponent(k.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:H,region:z,prefix:X},{action:"name/cos:PutObject",bucket:w.Bucket,region:w.Region,prefix:w.Key}],method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,qs:{partNumber:w.PartNumber,uploadId:w.UploadId},headers:w.Headers,tracker:w.tracker},function(ee,pe){if(ee)return N(ee);var ze=s.clone(pe.CopyPartResult||{});s.extend(ze,{statusCode:pe.statusCode,headers:pe.headers}),N(null,ze)})}function G(w,N){var L=w.Objects||[],k=w.Quiet;L=s.isArray(L)?L:[L];var H=s.json2xml({Delete:{Object:L,Quiet:k||!1}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H));var X=s.map(L,function(ee){return{action:"name/cos:DeleteObject",bucket:w.Bucket,region:w.Region,prefix:ee.Key}});Le.call(this,{Scope:X,method:"POST",Bucket:w.Bucket,Region:w.Region,body:H,action:"delete",headers:z,tracker:w.tracker},function(ee,pe){if(ee)return N(ee);var ze=pe.DeleteResult||{},Ne=ze.Deleted||[],at=ze.Error||[];Ne=s.isArray(Ne)?Ne:[Ne],at=s.isArray(at)?at:[at];var we=s.clone(ze);s.extend(we,{Error:at,Deleted:Ne,statusCode:pe.statusCode,headers:pe.headers}),N(null,we)})}function F(w,N){var L=w.Headers;if(!w.RestoreRequest){N(s.error(new Error("missing param RestoreRequest")));return}var k=w.RestoreRequest||{},H=s.json2xml({RestoreRequest:k});L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,body:H,action:"restore",headers:L,tracker:w.tracker},N)}function j(w,N){var L=w.Tagging||{},k=L.TagSet||L.Tags||w.Tags||[];k=s.clone(s.isArray(k)?k:[k]);var H=s.json2xml({Tagging:{TagSet:{Tag:k}}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:w.Bucket,Key:w.Key,Region:w.Region,body:H,action:"tagging",headers:z,VersionId:w.VersionId,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function K(w,N){Le.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:w.Key,Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"tagging",VersionId:w.VersionId,tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var H={Tags:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=[];try{z=k.Tagging.TagSet.Tag||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),N(null,{Tags:z,statusCode:k.statusCode,headers:k.headers})})}function le(w,N){Le.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"tagging",VersionId:w.VersionId,tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function de(w,N){var L=w.SelectType;if(!L)return N(s.error(new Error("missing param SelectType")));var k=w.SelectRequest||{},H=s.json2xml({SelectRequest:k}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"select",qs:{"select-type":w.SelectType},VersionId:w.VersionId,body:H,DataType:"arraybuffer",rawBody:!0,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);var pe=s.parseSelectPayload(ee.body);N(null,{statusCode:ee.statusCode,headers:ee.headers,Body:pe.body,Payload:pe.payload})})}function _e(w,N){var L=this,k=w.Headers,H=w.tracker;!k["Cache-Control"]&&!k["cache-control"]&&(k["Cache-Control"]=""),!k["Content-Type"]&&!k["content-type"]&&(k["Content-Type"]=w.Body&&w.Body.type||"");var z=w.Body&&(w.UploadAddMetaMd5||L.options.UploadAddMetaMd5);z&&H&&H.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(z,w.Body,function(X){X&&(w.Headers["x-cos-meta-md5"]=X),z&&H&&H.setParams({md5EndTime:new Date().getTime()}),Le.call(L,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:w.Bucket,Region:w.Region,Key:w.Key,action:"uploads",headers:w.Headers,qs:w.Query,tracker:H},function(ee,pe){if(ee)return H&&H.parent&&H.parent.setParams({errorNode:"multipartInit"}),N(ee);if(pe=s.clone(pe||{}),pe&&pe.InitiateMultipartUploadResult)return N(null,s.extend(pe.InitiateMultipartUploadResult,{statusCode:pe.statusCode,headers:pe.headers}));N(null,pe)})},w.onHashProgress)}function xe(w,N){var L=this;s.getFileSize("multipartUpload",w,function(){var k=w.tracker,H=L.options.UploadCheckContentMd5;H&&k&&k.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(H,w.Body,function(z){z&&(w.Headers["Content-MD5"]=s.b64(z)),H&&k&&k.setParams({md5EndTime:new Date().getTime()}),k&&k.setParams({partNumber:w.PartNumber}),Le.call(L,{Action:"name/cos:UploadPart",TaskId:w.TaskId,method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,qs:{partNumber:w.PartNumber,uploadId:w.UploadId},headers:w.Headers,onProgress:w.onProgress,body:w.Body||null,tracker:k},function(X,ee){if(X)return k&&k.parent&&k.parent.setParams({errorNode:"multipartUpload"}),N(X);N(null,{ETag:s.attr(ee.headers,"etag",""),statusCode:ee.statusCode,headers:ee.headers})})})})}function ye(w,N){for(var L=this,k=w.UploadId,H=w.Parts,z=w.tracker,X=0,ee=H.length;X-1?at(Ne.Authorization):"sign="+encodeURIComponent(Ne.Authorization)),Ne.SecurityToken&&(we+="&x-cos-security-token="+Ne.SecurityToken),Ne.ClientIP&&(we+="&clientIP="+Ne.ClientIP),Ne.ClientUA&&(we+="&clientUA="+Ne.ClientUA),Ne.Token&&(we+="&token="+Ne.Token),z&&(we+="&"+z),setTimeout(function(){N(null,{Url:we})})}});return pe?(X+="?"+pe.Authorization+(pe.SecurityToken?"&x-cos-security-token="+pe.SecurityToken:""),z&&(X+="&"+z)):z&&(X+="?"+z),X}function dt(w){var N={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},L={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},k=w&&w.AccessControlList||{},H=k.Grant;H&&(H=s.isArray(H)?H:[H]);var z={READ:0,WRITE:0,FULL_CONTROL:0};return H&&H.length&&s.each(H,function(X){var ee=X.Grantee.URI&&X.Grantee.URI.endsWith("/groups/global/AllUsers");X.Grantee.ID==="qcs::cam::anyone:anyone"||ee?z[X.Permission]=1:X.Grantee.ID!==w.Owner.ID&&N[L[X.Permission]].push('id="'+X.Grantee.ID+'"')}),z.FULL_CONTROL||z.WRITE&&z.READ?N.ACL="public-read-write":z.READ?N.ACL="public-read":N.ACL="private",s.each(L,function(X){N[X]=Mn(N[X].join(","))}),N}function Mn(w){var N=w.split(","),L={},k,H;for(k=0;k"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:");z||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(N)>-1?z="{Region}.myqcloud.com":z="cos.{Region}.myqcloud.com",w.ForcePathStyle||(z="{Bucket}."+z)),z=z.replace(/\{\{AppId\}\}/gi,H).replace(/\{\{Bucket\}\}/gi,k).replace(/\{\{Region\}\}/gi,N).replace(/\{\{.*?\}\}/gi,""),z=z.replace(/\{AppId\}/gi,H).replace(/\{BucketName\}/gi,k).replace(/\{Bucket\}/gi,L).replace(/\{Region\}/gi,N).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(z)||(z=ee+"//"+z),z.slice(-1)==="/"&&(z=z.slice(0,-1));var pe=z;return w.ForcePathStyle&&(pe+="/"+L),pe+="/",X&&(pe+=s.camSafeUrlEncode(X).replace(/%2F/g,"/")),w.isLocation&&(pe=pe.replace(/^https?:\/\//,"")),pe}var $a=function(N){if(!N.Bucket||!N.Region)return"";var L=N.UseAccelerate===void 0?this.options.UseAccelerate:N.UseAccelerate,k=N.Url||Kr({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:N.Bucket,region:L?"accelerate":N.Region}),H=k.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return H};function ml(w,N){var L=s.clone(w.Headers),k="";s.each(L,function(St,et){(St===""||["content-type","cache-control","expires"].indexOf(et.toLowerCase())>-1)&&delete L[et],et.toLowerCase()==="host"&&(k=St)});var H=w.ForceSignHost!==!1;!k&&w.SignHost&&H&&(L.Host=w.SignHost);var z=!1,X=function(et,Qe){z||(z=!0,Qe&&Qe.XCosSecurityToken&&!Qe.SecurityToken&&(Qe=s.clone(Qe),Qe.SecurityToken=Qe.XCosSecurityToken,delete Qe.XCosSecurityToken),N&&N(et,Qe))},ee=this,pe=w.Bucket||"",ze=w.Region||"",Ne=w.Key||"";ee.options.ForcePathStyle&&pe&&(Ne=pe+"/"+Ne);var at="/"+Ne,we={},rt=w.Scope;if(!rt){var Br=w.Action||"",er=w.ResourceKey||w.Key||"";rt=w.Scope||[{action:Br,bucket:pe,region:ze,prefix:er}]}var Nr=s.md5(JSON.stringify(rt));ee._StsCache=ee._StsCache||[],function(){var St,et;for(St=ee._StsCache.length-1;St>=0;St--){et=ee._StsCache[St];var Qe=Math.round(s.getSkewTime(ee.options.SystemClockOffset)/1e3)+30;if(et.StartTime&&Qe=et.ExpiredTime){ee._StsCache.splice(St,1);continue}if(!et.ScopeLimit||et.ScopeLimit&&et.ScopeKey===Nr){we=et;break}}}();var Yr=function(){var et="";we.StartTime&&w.Expires?et=we.StartTime+";"+(we.StartTime+w.Expires*1):we.StartTime&&we.ExpiredTime&&(et=we.StartTime+";"+we.ExpiredTime);var Qe=s.getAuth({SecretId:we.TmpSecretId,SecretKey:we.TmpSecretKey,Method:w.Method,Pathname:at,Query:w.Query,Headers:L,Expires:w.Expires,UseRawKey:ee.options.UseRawKey,SystemClockOffset:ee.options.SystemClockOffset,KeyTime:et,ForceSignHost:H}),wt={Authorization:Qe,SecurityToken:we.SecurityToken||we.XCosSecurityToken||"",Token:we.Token||"",ClientIP:we.ClientIP||"",ClientUA:we.ClientUA||"",SignFrom:"client"};X(null,wt)},Rn=function(et){if(et.Authorization){var Qe=!1,wt=et.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(!et.TmpSecretId)return s.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!et.TmpSecretKey)return s.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!et.SecurityToken&&!et.XCosSecurityToken)return s.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!et.ExpiredTime)return s.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(et.ExpiredTime&&et.ExpiredTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(et.StartTime&&et.StartTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(we.ExpiredTime&&we.ExpiredTime-s.getSkewTime(ee.options.SystemClockOffset)/1e3>60)Yr();else if(ee.options.getAuthorization)ee.options.getAuthorization.call(ee,{Bucket:pe,Region:ze,Method:w.Method,Key:Ne,Pathname:at,Query:w.Query,Headers:L,Scope:rt,SystemClockOffset:ee.options.SystemClockOffset,ForceSignHost:H},function(St){typeof St=="string"&&(St={Authorization:St});var et=Rn(St);if(et)return X(et);St.Authorization?X(null,St):(we=St||{},we.Scope=rt,we.ScopeKey=Nr,ee._StsCache.push(we),Yr())});else if(ee.options.getSTS)ee.options.getSTS.call(ee,{Bucket:pe,Region:ze},function(St){we=St||{},we.Scope=rt,we.ScopeKey=Nr,we.TmpSecretId||(we.TmpSecretId=we.SecretId),we.TmpSecretKey||(we.TmpSecretKey=we.SecretKey);var et=Rn(we);if(et)return X(et);ee._StsCache.push(we),Yr()});else return function(){var St="";if(ee.options.StartTime&&w.Expires){if(ee.options.StartTime.toString().length!==10)return X(s.error(new Error('params "StartTime" should be 10 digits')));St=ee.options.StartTime+";"+(ee.options.StartTime+w.Expires*1)}else if(ee.options.StartTime&&ee.options.ExpiredTime){if(ee.options.StartTime.toString().length!==10)return X(s.error(new Error('params "StartTime" should be 10 digits')));if(ee.options.ExpiredTime.toString().length!==10)return X(s.error(new Error('params "ExpiredTime" should be 10 digits')));St=ee.options.StartTime+";"+ee.options.ExpiredTime*1}var et=s.getAuth({SecretId:w.SecretId||ee.options.SecretId,SecretKey:w.SecretKey||ee.options.SecretKey,Method:w.Method,Pathname:at,Query:w.Query,Headers:L,Expires:w.Expires,KeyTime:St,UseRawKey:ee.options.UseRawKey,SystemClockOffset:ee.options.SystemClockOffset,ForceSignHost:H}),Qe={Authorization:et,SecurityToken:ee.options.SecurityToken||ee.options.XCosSecurityToken,SignFrom:"client"};return X(null,Qe),Qe}();return""}function rf(w){var N=this,L=!1,k=!1,H=!1,z=w.headers&&(w.headers.date||w.headers.Date)||w.error&&w.error.ServerTime;try{var X=w.error.Code,ee=w.error.Message;(X==="RequestTimeTooSkewed"||X==="AccessDenied"&&ee==="Request has expired")&&(k=!0)}catch{}if(w)if(k&&z){var pe=Date.parse(z);this.options.CorrectClockSkew&&Math.abs(s.getSkewTime(this.options.SystemClockOffset)-pe)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=pe-Date.now(),L=!0)}else Math.floor(w.statusCode/100)===5?L=!0:w.message==="CORS blocked or network error"&&(H=!0,L=N.options.AutoSwitchHost);return{canRetry:L,networkError:H}}function nf(w){var N=w.requestUrl,L=w.clientCalcSign,k=w.networkError;if(!this.options.AutoSwitchHost||!N||!L||!k)return!1;var H=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,z=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,X=H.test(N)&&!z.test(N);return X}function Le(w,N){var L=this;!w.headers&&(w.headers={}),!w.qs&&(w.qs={}),w.VersionId&&(w.qs.versionId=w.VersionId),w.qs=s.clearKey(w.qs),w.headers&&(w.headers=s.clearKey(w.headers)),w.qs&&(w.qs=s.clearKey(w.qs));var k=s.clone(w.qs);w.action&&(k[w.action]="");var H=w.url||w.Url,z=w.SignHost||$a.call(this,{Bucket:w.Bucket,Region:w.Region,Url:H}),X=w.tracker,ee=function pe(ze){var Ne=L.options.SystemClockOffset;X&&X.setParams({signStartTime:new Date().getTime(),httpRetryTimes:ze-1}),w.SwitchHost&&(z=z.replace(/myqcloud.com/,"tencentcos.cn")),ml.call(L,{Bucket:w.Bucket||"",Region:w.Region||"",Method:w.method,Key:w.Key,Query:k,Headers:w.headers,SignHost:z,Action:w.Action,ResourceKey:w.ResourceKey,Scope:w.Scope,ForceSignHost:L.options.ForceSignHost,SwitchHost:w.SwitchHost},function(at,we){if(at){N(at);return}X&&X.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),w.AuthData=we,af.call(L,w,function(rt,Br){X&&X.setParams({httpEndTime:new Date().getTime()});var er=!1,Nr=!1;if(rt){var Yr=rf.call(L,rt);er=Yr.canRetry||Ne!==L.options.SystemClockOffset,Nr=Yr.networkError}if(rt&&ze<2&&er){w.headers&&(delete w.headers.Authorization,delete w.headers.token,delete w.headers.clientIP,delete w.headers.clientUA,w.headers["x-cos-security-token"]&&delete w.headers["x-cos-security-token"],w.headers["x-ci-security-token"]&&delete w.headers["x-ci-security-token"]);var Rn=nf.call(L,{requestUrl:(rt==null?void 0:rt.url)||"",clientCalcSign:we.SignFrom==="client",networkError:Nr});w.SwitchHost=Rn,w.retry=!0,pe(ze+1)}else N(rt,Br)})})};ee(1)}function af(w,N){var L=this,k=w.TaskId;if(!(k&&!L._isRunningTask(k))){var H=w.Bucket,z=w.Region,X=w.Key,ee=w.method||"GET",pe=w.Url||w.url,ze=w.body,Ne=w.rawBody;L.options.UseAccelerate&&(z="accelerate"),pe=pe||Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:H,region:z,object:X}),w.SwitchHost&&(pe=pe.replace(/myqcloud.com/,"tencentcos.cn"));var at=X?pe:"";w.action&&(pe=pe+"?"+(s.isIOS_QQ?"".concat(w.action,"="):w.action)),w.qsStr&&(pe.indexOf("?")>-1?pe=pe+"&"+w.qsStr:pe=pe+"?"+w.qsStr);var we={method:ee,url:pe,headers:w.headers,qs:w.qs,body:ze},rt="x-cos-security-token";if(s.isCIHost(pe)&&(rt="x-ci-security-token"),we.headers.Authorization=w.AuthData.Authorization,w.AuthData.Token&&(we.headers.token=w.AuthData.Token),w.AuthData.ClientIP&&(we.headers.clientIP=w.AuthData.ClientIP),w.AuthData.ClientUA&&(we.headers.clientUA=w.AuthData.ClientUA),w.AuthData.SecurityToken&&(we.headers[rt]=w.AuthData.SecurityToken),we.headers&&(we.headers=s.clearKey(we.headers)),w.retry&&(we.headers["x-cos-sdk-retry"]=!0),we=s.clearKey(we),w.onProgress&&typeof w.onProgress=="function"){var Br=ze&&(ze.size||ze.length)||0;we.onProgress=function(Qe){if(!(k&&!L._isRunningTask(k))){var wt=Qe?Qe.loaded:0;w.onProgress({loaded:wt,total:Br})}}}w.onDownloadProgress&&(we.onDownloadProgress=w.onDownloadProgress),w.DataType&&(we.dataType=w.DataType),this.options.Timeout&&(we.timeout=this.options.Timeout),L.options.ForcePathStyle&&(we.pathStyle=L.options.ForcePathStyle),L.emit("before-send",we);var er=we.url.includes("accelerate."),Nr=we.qs?Object.keys(we.qs).map(function(Qe){return"".concat(Qe,"=").concat(we.qs[Qe])}).join("&"):"",Yr=Nr?we.url+"?"+Nr:we.url;if(w.tracker){var Rn;w.tracker.setParams({url:Yr,httpMethod:we.method,accelerate:er,httpSize:((Rn=we.body)===null||Rn===void 0?void 0:Rn.size)||0}),w.tracker.parent&&!w.tracker.parent.params.url&&w.tracker.parent.setParams({url:at,accelerate:er})}var St=(L.options.Request||o)(we,function(Qe){if(!(Qe&&Qe.error==="abort")){var wt={options:we,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 of=wt.error,yl=wt.body,gi={statusCode:wt.statusCode,statusMessage:wt.statusMessage,headers:wt.headers},Ap,Qi=function(Ji,Gt){if(k&&L.off("inner-kill-task",et),!Ap){Ap=!0;var Ua={};if(gi&&gi.statusCode&&(Ua.statusCode=gi.statusCode),gi&&gi.headers&&(Ua.headers=gi.headers),Ji)we.url&&(Ua.url=we.url),we.method&&(Ua.method=we.method),Ji=s.extend(Ji||{},Ua),N(Ji,null);else{if(w.Action==="name/cos:PutObject"){var lf={};for(var Pp in w.headers){var Fx=Pp.toLowerCase();lf[Fx]=w.headers[Pp]}lf["x-cos-callback"]?Gt.Error?(Gt.CallbackError=s.clone(Gt.Error),delete Gt.Error):Gt.CallbackBody=s.clone(Gt):lf["x-cos-return-body"]&&(Gt.Error?(Gt.ReturnError=s.clone(Gt.Error),delete Gt.Error):Gt.ReturnBody=s.clone(Gt))}Gt=s.extend(Gt||{},Ua),N(null,Gt)}St=null}};if(of)return Qi(s.error(of));var Sl=gi.statusCode,_p=Math.floor(Sl/100)===2;if(Ne){if(_p)return Qi(null,{body:yl});if(yl instanceof Blob){s.readAsBinaryString(yl,function(Ep){var Ji=s.parseResBody(Ep),Gt=Ji.Error||Ji;return Qi(s.error(new Error(Gt.Message||"response body error"),{code:Gt.Code,error:Gt}))});return}}var sf=s.parseResBody(yl),bl=sf.Error||sf;_p?Qi(null,sf):bl?Qi(s.error(new Error(bl.Message),{code:bl.Code,error:bl})):Sl?Qi(s.error(new Error(gi.statusMessage),{code:""+Sl})):Sl&&Qi(s.error(new Error("statusCode error")))}}),et=function Qe(wt){wt.TaskId===k&&(St&&St.abort&&St.abort(),L.off("inner-kill-task",Qe))};k&&L.on("inner-kill-task",et)}}var Ip={getService:l,putBucket:u,headBucket:f,getBucket:c,deleteBucket:d,putBucketAcl:h,getBucketAcl:v,putBucketCors:p,getBucketCors:g,deleteBucketCors:m,getBucketLocation:y,getBucketPolicy:A,putBucketPolicy:b,deleteBucketPolicy:M,putBucketTagging:C,getBucketTagging:I,deleteBucketTagging:P,putBucketLifecycle:S,getBucketLifecycle:T,deleteBucketLifecycle:x,putBucketVersioning:_,getBucketVersioning:E,putBucketReplication:R,getBucketReplication:O,deleteBucketReplication:D,putBucketWebsite:B,getBucketWebsite:$,deleteBucketWebsite:U,putBucketReferer:Q,getBucketReferer:Z,putBucketDomain:V,getBucketDomain:te,deleteBucketDomain:ie,putBucketOrigin:se,getBucketOrigin:W,deleteBucketOrigin:q,putBucketLogging:ce,getBucketLogging:me,putBucketInventory:ue,postBucketInventory:ve,getBucketInventory:Ce,listBucketInventory:ae,deleteBucketInventory:fe,putBucketAccelerate:Ae,getBucketAccelerate:Re,putBucketEncryption:st,getBucketEncryption:vt,deleteBucketEncryption:mt,getObject:Lt,headObject:Fe,listObjectVersions:Kt,putObject:gr,deleteObject:hn,getObjectAcl:Jn,putObjectAcl:qn,optionsObject:ei,putObjectCopy:ne,deleteMultipleObject:G,restoreObject:F,putObjectTagging:j,getObjectTagging:K,deleteObjectTagging:le,selectObjectContent:de,appendObject:qt,uploadPartCopy:re,multipartInit:_e,multipartUpload:xe,multipartComplete:ye,multipartList:Ee,multipartListPart:ke,multipartAbort:Ue,request:lt,getObjectUrl:or,getAuth:ti};function Nx(w,N,L){s.each(["Cors","Acl"],function(k){if(w.slice(-k.length)===k){var H=w.slice(0,-k.length)+k.toUpperCase(),z=s.apiWrapper(w,N),X=!1;L[H]=function(){!X&&console.warn("warning: cos."+H+" has been deprecated. Please Use cos."+w+" instead."),X=!0,z.apply(this,arguments)}}})}r.exports.init=function(w,N){N.transferToTaskMethod(Ip,"putObject"),s.each(Ip,function(L,k){w.prototype[k]=s.apiWrapper(k,L),Nx(k,L,w.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 b=l[y][2];(!b||b+s=0;b--){var A=l[b];A[0]===g&&A[1]===m&&l.splice(b,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(I){var P={id:I.id,Bucket:I.Bucket,Region:I.Region,Key:I.Key,FilePath:I.FilePath,state:I.state,loaded:I.loaded,size:I.size,speed:I.speed,percent:I.percent,hashPercent:I.hashPercent,error:I.error};return I.FilePath&&(P.FilePath=I.FilePath),I._custom&&(P._custom=I._custom),P},m=function(){var C,I=function(){C=0,c.emit("task-list-update",{list:o.map(d,g)}),c.emit("list-update",{list:o.map(d,g)})};return function(){C||(C=setTimeout(I))}}(),y=function(){if(!(d.length<=c.options.UploadQueueSize)){for(var I=0;Ic.options.UploadQueueSize;){var P=d[I].state==="waiting"||d[I].state==="checking"||d[I].state==="uploading";!d[I]||!P?(h[d[I].id]&&delete h[d[I].id],d.splice(I,1),p--):I++}m()}},b=function C(){if(!(v>=c.options.FileParallelLimit)){for(;d[p]&&d[p].state!=="waiting";)p++;if(!(p>=d.length)){var I=d[p];p++,v++,I.state="checking",I.params.onTaskStart&&I.params.onTaskStart(g(I)),!I.params.UploadData&&(I.params.UploadData={});var P=o.formatParams(I.api,I.params);s[I.api].call(c,P,function(S,T){c._isRunningTask(I.id)&&((I.state==="checking"||I.state==="uploading")&&(I.state=S?"error":"success",S&&(I.error=S),v--,m(),C(),I.callback&&I.callback(S,T),I.state==="success"&&(I.params&&(delete I.params.UploadData,delete I.params.Body,delete I.params),delete I.callback)),y())}),m(),setTimeout(C)}}},A=function(I,P){var S=h[I];if(S){var T=S&&S.state==="waiting",x=S&&(S.state==="checking"||S.state==="uploading");if(P==="canceled"&&S.state!=="canceled"||P==="paused"&&T||P==="paused"&&x){S.state=P,c.emit("inner-kill-task",{TaskId:I,toState:P});try{var _=S&&S.params&&S.params.UploadData.UploadId}catch{}P==="canceled"&&_&&a.removeUsing(_),m(),x&&(v--,b()),P==="canceled"&&(S.params&&(delete S.params.UploadData,delete S.params.Body,delete S.params),delete S.callback)}y()}};c._addTasks=function(C){o.each(C,function(I){c._addTask(I.api,I.params,I.callback,!0)}),m()};var M=!0;c._addTask=function(C,I,P,S){I=o.formatParams(C,I);var T=o.uuid();I.TaskId=T,I.onTaskReady&&I.onTaskReady(T),I.TaskReady&&(I.TaskReady(T),M&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),M=!1);var x={params:I,callback:P,api:C,index:d.length,id:T,Bucket:I.Bucket,Region:I.Region,Key:I.Key,FilePath:I.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:I._custom},_=I.onHashProgress;I.onHashProgress=function(R){c._isRunningTask(x.id)&&(x.hashPercent=R.percent,_&&_(R),m())};var E=I.onProgress;return I.onProgress=function(R){c._isRunningTask(x.id)&&(x.state==="checking"&&(x.state="uploading"),x.loaded=R.loaded,x.speed=R.speed,x.percent=R.percent,E&&E(R),m())},o.getFileSize(C,I,function(R,O){if(R)return P(o.error(R));h[T]=x,d.push(x),x.size=O,!S&&m(),b(),y()}),T},c._isRunningTask=function(C){var I=h[C];return!!(I&&(I.state==="checking"||I.state==="uploading"))},c.getTaskList=function(){return o.map(d,g)},c.cancelTask=function(C){A(C,"canceled")},c.pauseTask=function(C){A(C,"paused")},c.restartTask=function(C){var I=h[C];I&&(I.state==="paused"||I.state==="error")&&(I.state="waiting",m(),p=Math.min(p,I.index),b())},c.isUploadRunning=function(){return v||p"u"?"undefined":s(navigator))==="object"){var P=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(P==null?void 0:P.type)||(P==null?void 0:P.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 P=navigator.userAgent.toLowerCase(),S=/macintosh|mac os x/i.test(navigator.userAgent);return P.indexOf("win32")>=0||P.indexOf("wow32")>=0?"win32":P.indexOf("win64")>=0||P.indexOf("wow64")>=0?"win64":S?"mac":"unknown os"},isMobile:function(){var P=/(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(P))},isAndroid:function(){var P=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(P))},isIOS:function(){var P=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(P))},isOtherMobile:function(){return h&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown device";var P=navigator.userAgent;return P}},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(),b=function(P){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(P)?"UploadTask":P==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(P)?"CopyTask":P};function A(I){return I.replace(/([A-Z])/g,"_$1").toLowerCase()}function M(I){var P={},S=["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"],T=[].concat(S,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),x=I.requestResult==="Success"?S:T;for(var _ in I)if(x.includes(_)){var E=A(_);P[E]=I[_]}return P.request_name=I.realApi?b(I.realApi):I.requestName,P}var C=function(){function I(P){a(this,I);var S=P.parent,T=P.traceId,x=P.bucket,_=P.region,E=P.apiName,R=P.realApi,O=P.httpMethod,D=P.fileKey,B=P.fileSize,$=P.accelerate,U=P.customId,Q=P.delay,Z=P.deepTracker,V=P.Beacon,te=P.clsReporter,ie=x&&x.substr(x.lastIndexOf("-")+1)||"";this.parent=S,this.deepTracker=Z,this.delay=Q,te&&!this.clsReporter&&(this.clsReporter=te),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:l.version,osName:g,networkType:"",requestName:E||"",requestResult:"",realApi:R,bucket:x,region:_,accelerate:$,httpMethod:O,url:"",host:"",httpDomain:"",requestPath:D||"",userAgent:m,networkProtocol:y,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:B||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:T||d.getUid(),appid:ie,partNumber:0,httpRetryTimes:0,customId:U||"",partTime:0},V&&(this.beacon=f(V,Q))}return o(I,[{key:"formatResult",value:function(S,T){var x,_,E,R,O,D,B=new Date().getTime(),$=d.getNetType(),U=S?(S==null?void 0:S.code)||(S==null||(x=S.error)===null||x===void 0?void 0:x.code)||(S==null||(_=S.error)===null||_===void 0?void 0:_.Code):"",Q=S?(S==null?void 0:S.message)||(S==null||(E=S.error)===null||E===void 0?void 0:E.message)||(S==null||(R=S.error)===null||R===void 0?void 0:R.Message):"",Z=Q,V=S?(S==null?void 0:S.resource)||(S==null||(O=S.error)===null||O===void 0?void 0:O.resource)||(S==null||(D=S.error)===null||D===void 0?void 0:D.Resource):"",te=S?S==null?void 0:S.statusCode:T.statusCode,ie=S?(S==null?void 0:S.headers)&&(S==null?void 0:S.headers["x-cos-request-id"]):(T==null?void 0:T.headers)&&(T==null?void 0:T.headers["x-cos-request-id"]),se=S?ie?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=T?T.headers&&T.headers["content-length"]:0);var W=this.params.realApi==="sliceUploadFile",q=this.params.realApi==="sliceCopyFile";if(W||q){var ce=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:ce<0?0:ce.toFixed(3)})}else{var me=B-this.params.startTime,be=this.params.httpEndTime-this.params.httpStartTime,ue=this.params.httpSize/1024/(be/1e3),ve=this.params.md5EndTime-this.params.md5StartTime,Ce=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",c(be)),this.parent.addParamValue("httpFullTime",c(me)),this.parent.addParamValue("httpMd5",c(ve)),this.parent.addParamValue("httpSign",c(Ce)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",c(be))),Object.assign(this.params,{httpFullTime:c(me),httpMd5:c(ve),httpSign:c(Ce),httpTookTime:c(be),httpSpeed:ue<0?0:ue.toFixed(3)})}if(Object.assign(this.params,{networkType:$,requestResult:S?"Failure":"Success",errorType:se,errorCode:U,errorHttpCode:te,errorName:Z,errorMessage:Q,errorServiceName:V,errorRequestId:ie}),S&&(!U||!Q)&&(this.params.fullError=S?JSON.stringify(S):""),this.params.url){try{var ae=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=ae[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(S,T){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(S,T);var x=M(this.params);this.beacon&&this.sendEventsToBeacon(x),this.clsReporter&&this.sendEventsToCLS(x)}}},{key:"setParams",value:function(S){Object.assign(this.params,S)}},{key:"addParamValue",value:function(S,T){this.params[S]=(+this.params[S]+ +T).toFixed(3)}},{key:"sendEventsToBeacon",value:function(S){var T=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(T&&!this.deepTracker)){var x="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(x,S):this.beacon&&this.beacon.onUserAction(x,S)}}},{key:"sendEventsToCLS",value:function(S){var T=this.delay===0;this.clsReporter.log(S,T)}},{key:"generateSubTracker",value:function(S){return Object.assign(S,{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 I(S)}}]),I}();r.exports=C},"./src/util.js":function(r,n,i){(function(a){var o=i("./node_modules/@babel/runtime/helpers/typeof.js");function s(G,F){var j=typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(!j){if(Array.isArray(G)||(j=l(G))||F){j&&(G=j);var K=0,le=function(){};return{s:le,n:function(){return K>=G.length?{done:!0}:{done:!1,value:G[K++]}},e:function(Ee){throw Ee},f:le}}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 de=!0,_e=!1,xe;return{s:function(){j=j.call(G)},n:function(){var Ee=j.next();return de=Ee.done,Ee},e:function(Ee){_e=!0,xe=Ee},f:function(){try{!de&&j.return!=null&&j.return()}finally{if(_e)throw xe}}}}function l(G,F){if(G){if(typeof G=="string")return u(G,F);var j=Object.prototype.toString.call(G).slice(8,-1);if(j==="Object"&&G.constructor&&(j=G.constructor.name),j==="Map"||j==="Set")return Array.from(G);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return u(G,F)}}function u(G,F){(F==null||F>G.length)&&(F=G.length);for(var j=0,K=new Array(F);jde?1:-1})}var I=function(F,j){var K,le,de,_e=[],xe=C(F);for(K=0;K-1||P.indexOf(le)>-1)&&(j[K]=F[K])}return j},T=function(F){F=F||{};var j=F.SecretId,K=F.SecretKey,le=F.KeyTime,de=(F.method||F.Method||"get").toLowerCase(),_e=te(F.Query||F.params||{}),xe=S(te(F.Headers||F.headers||{})),ye=F.Key||"",Ee;F.UseRawKey?Ee=F.Pathname||F.pathname||"/"+ye:(Ee=F.Pathname||F.pathname||ye,Ee.indexOf("/")!==0&&(Ee="/"+Ee));var ke=F.ForceSignHost!==!1;if(!xe.Host&&!xe.host&&F.Bucket&&F.Region&&ke&&(xe.Host=F.Bucket+".cos."+F.Region+".myqcloud.com"),!j)throw new Error("missing param SecretId");if(!K)throw new Error("missing param SecretKey");var Ue=Math.round(vt(F.SystemClockOffset)/1e3)-1,lt=Ue,qt=F.Expires||F.expires;qt===void 0?lt+=900:lt+=qt*1||0;var ti="sha1",or=j,dt=le||Ue+";"+lt,Mn=le||Ue+";"+lt,Kr=C(xe,!0).join(";").toLowerCase(),$a=C(_e,!0).join(";").toLowerCase(),ml=c.HmacSHA1(Mn,K).toString(),rf=[de,Ee,re.obj2str(_e,!0),re.obj2str(xe,!0),""].join(` `),nf=["sha1",dt,c.SHA1(rf).toString(),""].join(` `),Le=c.HmacSHA1(nf,ml).toString(),af=["q-sign-algorithm="+ti,"q-ak="+or,"q-sign-time="+dt,"q-key-time="+Mn,"q-header-list="+Kr,"q-url-param-list="+$a,"q-signature="+Le].join("&");return af},x=function(F,j,K){var le=j/8,de=F.slice(K,K+le);return new Uint8Array(de).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[j](de)[0]},_=function(F,j,K,le){var de=F.slice(j,K),_e="";return new Uint8Array(de).forEach(function(xe){_e+=String.fromCharCode(xe)}),le&&(_e=decodeURIComponent(escape(_e))),_e},E=function(F){for(var j={},K=_(F),le={records:[]};F.byteLength;){var de=x(F,32,0),_e=x(F,32,4),xe=de-_e-16,ye=0,Ee;for(F=F.slice(12);ye<_e;){var ke=x(F,8,ye),Ue=_(F,ye+1,ye+1+ke),lt=x(F,16,ye+ke+2),qt=_(F,ye+ke+4,ye+ke+4+lt);j[Ue]=qt,ye+=ke+4+lt}if(j[":event-type"]==="Records")Ee=_(F,ye,ye+xe,!0),le.records.push(Ee);else if(j[":event-type"]==="Stats")Ee=_(F,ye,ye+xe,!0),le.stats=re.xml2json(Ee).Stats;else if(j[":event-type"]==="error"){var ti=j[":error-code"],or=j[":error-message"],dt=new Error(or);dt.message=or,dt.name=dt.code=ti,le.error=dt}F=F.slice(ye+xe+4)}return{payload:le.records.join(""),body:K}},R=function(F){var j=this.options.CopySourceParser;if(j)return j(F);var K=F.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return K?{Bucket:K[1],Region:K[3],Key:K[7]}:null},O=function(){},D=function(F){var j={};for(var K in F)F.hasOwnProperty(K)&&F[K]!==void 0&&F[K]!==null&&(j[K]=F[K]);return j},B=function(F,j){var K,le=new FileReader;FileReader.prototype.readAsBinaryString?(K=FileReader.prototype.readAsBinaryString,le.onload=function(){j(this.result)}):FileReader.prototype.readAsArrayBuffer?K=function(_e){var xe="",ye=new FileReader;ye.onload=function(Ee){for(var ke=new Uint8Array(ye.result),Ue=ke.byteLength,lt=0;ltparseInt(le[de])?1:-1;return 0},F=function(K){if(!K)return!1;var le=(K.match(/Chrome\/([.\d]+)/)||[])[1],de=(K.match(/QBCore\/([.\d]+)/)||[])[1],_e=(K.match(/QQBrowser\/([.\d]+)/)||[])[1],xe=le&&G(le,"53.0.2785.116")<0&&de&&G(de,"3.53.991.400")<0&&_e&&G(_e,"9.0.2524.400")<=0||!1;return xe};return F(typeof navigator<"u"&&navigator.userAgent)}(),U=function(F,j,K,le,de){var _e;if(F.slice?_e=F.slice(j,K):F.mozSlice?_e=F.mozSlice(j,K):F.webkitSlice&&(_e=F.webkitSlice(j,K)),le&&$){var xe=new FileReader;xe.onload=function(ye){_e=null,de(new Blob([xe.result]))},xe.readAsArrayBuffer(_e)}else de(_e)},Q=function(F,j,K,le){K=K||O,F?typeof j=="string"?K(re.md5(j,!0)):Blob&&j instanceof Blob?re.getFileMd5(j,function(de,_e){K(_e)},le):K():K()},Z=1024*1024,V=function(F,j,K){var le=F.size,de=0,_e=f.getCtx(),xe=function ye(Ee){if(Ee>=le){var ke=_e.digest("hex");j(null,ke);return}var Ue=Math.min(le,Ee+Z);re.fileSlice(F,Ee,Ue,!1,function(lt){B(lt,function(qt){lt=null,_e=_e.update(qt,!0),de+=qt.length,qt=null,K&&K({loaded:de,total:le,percent:Math.round(de/le*1e4)/1e4}),ye(Ee+Z)})})};xe(0)};function te(G){return be(G,function(F){return o(F)==="object"&&F!==null?te(F):F})}function ie(G,F,j){return G&&F in G?G[F]:j}function se(G,F){return me(F,function(j,K){G[K]=F[K]}),G}function W(G){return G instanceof Array}function q(G,F){for(var j=!1,K=0;K-1,ye=!_e||typeof _e=="string"&&_e.indexOf("{Region}")>-1;if(F.indexOf("Bucket")>-1||F==="deleteMultipleObject"||F==="multipartList"||F==="listObjectVersions"){if(xe&&!K)return"Bucket";if(ye&&!le)return"Region"}else if(F.indexOf("Object")>-1||F.indexOf("multipart")>-1||F==="sliceUploadFile"||F==="abortUploadTask"||F==="uploadFile"){if(xe&&!K)return"Bucket";if(ye&&!le)return"Region";if(!de)return"Key"}return!1},fe=function(F,j){if(j=se({},j),F!=="getAuth"&&F!=="getV4Auth"&&F!=="getObjectUrl"){var K=j.Headers||{};if(j&&o(j)==="object"){(function(){for(var de in j)j.hasOwnProperty(de)&&de.indexOf("x-cos-")>-1&&(K[de]=j[de])})();var le={"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"};re.each(le,function(de,_e){j[de]!==void 0&&(K[_e]=j[de])}),j.Headers=D(K)}}return j},Ae=function(F,j){return function(K,le){var de=this;typeof K=="function"&&(le=K,K={}),K=fe(F,K);var _e;if(de.options.EnableReporter)if(K.calledBySdk==="sliceUploadFile"||K.calledBySdk==="sliceCopyFile")_e=K.tracker&&K.tracker.generateSubTracker({apiName:F});else if(["uploadFile","uploadFiles"].includes(F))_e=null;else{var xe=0;K.Body&&(xe=typeof K.Body=="string"?K.Body.length:K.Body.size||K.Body.byteLength||0);var ye=de.options.UseAccelerate||typeof de.options.Domain=="string"&&de.options.Domain.includes("accelerate.");_e=new y({Beacon:de.options.BeaconReporter,clsReporter:de.options.ClsReporter,bucket:K.Bucket,region:K.Region,apiName:F,realApi:F,accelerate:ye,fileKey:K.Key,fileSize:xe,deepTracker:de.options.DeepTracker,customId:de.options.CustomId,delay:de.options.TrackerDelay})}K.tracker=_e;var Ee=function(dt){return dt&&dt.headers&&(dt.headers["x-cos-request-id"]&&(dt.RequestId=dt.headers["x-cos-request-id"]),dt.headers["x-ci-request-id"]&&(dt.RequestId=dt.headers["x-ci-request-id"]),dt.headers["x-cos-version-id"]&&(dt.VersionId=dt.headers["x-cos-version-id"]),dt.headers["x-cos-delete-marker"]&&(dt.DeleteMarker=dt.headers["x-cos-delete-marker"])),dt},ke=function(dt,Mn){_e&&_e.report(dt,Mn),le&&le(Ee(dt),Ee(Mn))},Ue=function(){if(F!=="getService"&&F!=="abortUploadTask"){var dt=ae.call(de,F,K);if(dt)return"missing param "+dt;if(K.Region){if(de.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(K.Region))return"Region format error."}else{if(K.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(K.Region))return"Region format error."}!de.options.CompatibilityMode&&K.Region.indexOf("-")===-1&&K.Region!=="yfb"&&K.Region!=="default"&&K.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(K.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(K.Bucket))if(K.AppId)K.Bucket=K.Bucket+"-"+K.AppId;else if(de.options.AppId)K.Bucket=K.Bucket+"-"+de.options.AppId;else return'Bucket should format as "test-1250000000".';K.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete K.AppId)}!de.options.UseRawKey&&K.Key&&K.Key.substr(0,1)==="/"&&(K.Key=K.Key.substr(1))}},lt=Ue(),qt=["getAuth","getObjectUrl"].includes(F);if(typeof Promise=="function"&&!qt&&!le)return new Promise(function(or,dt){if(le=function(Kr,$a){Kr?dt(Kr):or($a)},lt)return ke(re.error(new Error(lt)));j.call(de,K,ke)});if(lt)return ke(re.error(new Error(lt)));var ti=j.call(de,K,ke);if(qt)return ti}},Re=function(F,j){var K=this,le=0,de=0,_e=Date.now(),xe,ye;function Ee(){if(ye=0,j&&typeof j=="function"){xe=Date.now();var ke=Math.max(0,Math.round((de-le)/((xe-_e)/1e3)*100)/100)||0,Ue;de===0&&F===0?Ue=1:Ue=Math.floor(de/F*100)/100||0,_e=xe,le=de;try{j({loaded:de,total:F,speed:ke,percent:Ue})}catch{}}}return function(ke,Ue){if(ke&&(de=ke.loaded,F=ke.total),Ue)clearTimeout(ye),Ee();else{if(ye)return;ye=setTimeout(Ee,K.options.ProgressInterval)}}},st=function(F,j,K){var le;if(typeof j.Body=="string"?j.Body=new Blob([j.Body],{type:"text/plain"}):j.Body instanceof ArrayBuffer&&(j.Body=new Blob([j.Body])),j.Body&&(j.Body instanceof Blob||j.Body.toString()==="[object File]"||j.Body.toString()==="[object Blob]"))le=j.Body.size;else{K(re.error(new Error("params body format error, Only allow File|Blob|String.")));return}j.ContentLength=le,K(null,le)},vt=function(F){return Date.now()+(F||0)},mt=function(F,j){var K=F;return F.message=F.message||null,typeof j=="string"?(F.error=j,F.message=j):o(j)==="object"&&j!==null&&(se(F,j),(j.code||j.name)&&(F.code=j.code||j.name),j.message&&(F.message=j.message),j.stack&&(F.stack=j.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(F,"name",{writable:!0,enumerable:!1}),Object.defineProperty(F,"message",{enumerable:!0})),F.name=j&&j.name||F.name||F.code||"Error",F.code||(F.code=F.name),F.error||(F.error=te(K)),F},Fe=function(){return(typeof globalThis>"u"?"undefined":o(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Kt=function(){return(typeof window>"u"?"undefined":o(window))!=="object"&&(typeof a>"u"?"undefined":o(a))==="object"&&!0&&!Fe()},Lt=function(F){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(F)},gr=function(){if((typeof navigator>"u"?"undefined":o(navigator))!=="object")return!1;var G=navigator.userAgent,F=!!G.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return F}(),hn=function(){return(typeof navigator>"u"?"undefined":o(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Jn=function(F,j){var K=m.encode(F);return j&&(K=K.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),K},qn=function(F){return F?m.decode(F):""},ei=function(F){var j=F.split("/"),K=[],le=s(j),de;try{for(le.s();!(de=le.n()).done;){var _e=de.value;_e===".."?K.length&&K.pop():_e.length&&_e!=="."&&K.push(_e)}}catch(xe){le.e(xe)}finally{le.f()}return"/"+K.join("/")},ne=function(F){var j;if(F&&typeof F=="string"){var K=F.trim(),le=K.indexOf("<")===0,de=K.indexOf("{")===0;if(le)j=re.xml2json(F)||{};else if(de)try{var _e=F.replace(/\n/g," "),xe=JSON.parse(_e);Object.prototype.toString.call(xe)==="[object Object]"?j=xe:j=F}catch{j=F}else j=F}else j=F||{};return j},re={noop:O,formatParams:fe,apiWrapper:Ae,xml2json:b,json2xml:A,md5:f,clearKey:D,fileSlice:U,getBodyMd5:Q,getFileMd5:V,b64:ve,extend:se,isArray:W,isInArray:q,makeArray:ce,each:me,map:be,filter:ue,clone:te,attr:ie,uuid:Ce,camSafeUrlEncode:M,throttleOnProgress:Re,getFileSize:st,getSkewTime:vt,error:mt,obj2str:I,getAuth:T,parseSelectPayload:E,getSourceParams:R,isBrowser:!0,isNode:Kt,isCIHost:Lt,isIOS_QQ:gr&&hn,encodeBase64:Jn,decodeBase64:qn,simplifyPath:ei,readAsBinaryString:B,parseResBody:ne};r.exports=re}).call(this,i("./node_modules/process/browser.js"))}})})})(G0);var MI=G0.exports;const RI=U0(MI),j0="daya-online-1303457149",Op="tencent";async function kp(t,e,r,n=!0,i){i||(i={isLoading:!0}),i.isLoading&&ai.loading(!0,i.text||"资源上传中"),n&&(t=OI(t));const a=await DI(t,r);if(a.code===200)try{const o=await LI(a.data.signature,{fileName:t,file:e,filePath:r});return i.isLoading&&ai.loading(!1),o.statusCode===200?o.Location.includes("http")?o.Location:`https://${o.Location}`:Promise.reject("")}catch{return i.isLoading&&ai.loading(!1),Promise.reject("")}else return i.isLoading&&ai.loading(!1),Promise.reject("")}const DI=async(t,e)=>{const r=`pptList/${e||"errPath/"}`+t;return eI(tI,{postData:{key:r},pluginName:Op,bucketName:j0,filename:r},{pluginName:Op})},LI=(t,e)=>new RI({Domain:"https://oss.dayaedu.com",Protocol:"https",getAuthorization:async(n,i)=>{i({Authorization:t})}}).uploadFile({Bucket:j0,Region:"ap-nanjing",Key:`pptList/${e.filePath||"errPath/"}${e.fileName}`,Body:e.file,SliceSize:1024*1024*500,onProgress:function(n){}});function OI(t){const e=t.lastIndexOf("."),r=t.substring(0,e),n=t.substring(e);return`${r}_${Date.now()}${n}`}function kI(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 BI=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function ui(t){const e=[];for(let r=0,n=t.length;rFr||t.height>Fr)&&(t.width>Fr&&t.height>Fr?t.width>t.height?(t.height*=Fr/t.width,t.width=Fr):(t.width*=Fr/t.height,t.height=Fr):t.width>Fr?(t.height*=Fr/t.width,t.width=Fr):(t.width*=Fr/t.height,t.height=Fr))}function zI(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 HI(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function VI(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),HI(i)}const Pr=(t,e)=>{if(t instanceof e)return!0;const r=Object.getPrototypeOf(t);return r===null?!1:r.constructor.name===e.name||Pr(r,e)};function GI(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function jI(t){return ui(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function WI(t,e,r){const n=`.${t}:${e}`,i=r.cssText?GI(r):jI(r);return document.createTextNode(`${n}{${i}}`)}function Bp(t,e,r){const n=window.getComputedStyle(t,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const a=BI();try{e.className=`${e.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(WI(a,r,n)),e.appendChild(o)}function XI(t,e){Bp(t,e,":before"),Bp(t,e,":after")}const Np="application/font-woff",Fp="image/jpeg",KI={woff:Np,woff2:Np,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Fp,jpeg:Fp,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function YI(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function uv(t){const e=YI(t).toLowerCase();return KI[e]||""}function ZI(t){return t.split(/,/)[1]}function Xd(t){return t.search(/^(data:)/)!==-1}function QI(t,e){return`data:${e};base64,${t}`}async function X0(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 uf={};function JI(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 cv(t,e,r){const n=JI(t,e,r.includeQueryParams);if(uf[n]!=null)return uf[n];r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{const a=await X0(t,r.fetchRequestInit,({res:o,result:s})=>(e||(e=o.headers.get("Content-Type")||""),ZI(s)));i=QI(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 uf[n]=i,i}async function qI(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):Fu(e)}async function eA(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 Fu(s)}const r=t.poster,n=uv(r),i=await cv(r,n,e);return Fu(i)}async function tA(t){var e;try{if(!((e=t==null?void 0:t.contentDocument)===null||e===void 0)&&e.body)return await Sc(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)}async function rA(t,e){return Pr(t,HTMLCanvasElement)?qI(t):Pr(t,HTMLVideoElement)?eA(t,e):Pr(t,HTMLIFrameElement)?tA(t):t.cloneNode(!1)}const nA=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function iA(t,e,r){var n,i;let a=[];return nA(t)&&t.assignedNodes?a=ui(t.assignedNodes()):Pr(t,HTMLIFrameElement)&&(!((n=t.contentDocument)===null||n===void 0)&&n.body)?a=ui(t.contentDocument.body.childNodes):a=ui(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),a.length===0||Pr(t,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Sc(s,r)).then(l=>{l&&e.appendChild(l)}),Promise.resolve()),e}function aA(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):ui(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`),Pr(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 oA(t,e){Pr(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),Pr(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function sA(t,e){if(Pr(t,HTMLSelectElement)){const r=e,n=Array.from(r.children).find(i=>t.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function lA(t,e){return Pr(e,Element)&&(aA(t,e),XI(t,e),oA(t,e),sA(t,e)),e}async function uA(t,e){const r=t.querySelectorAll?t.querySelectorAll("use"):[];if(r.length===0)return t;const n={};for(let a=0;arA(n,e)).then(n=>iA(t,n,e)).then(n=>lA(t,n)).then(n=>uA(n,e))}const K0=/url\((['"]?)([^'"]+?)\1\)/g,cA=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,fA=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function dA(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function hA(t){const e=[];return t.replace(K0,(r,n,i)=>(e.push(i),r)),e.filter(r=>!Xd(r))}async function vA(t,e,r,n,i){try{const a=r?kI(e,r):e,o=uv(e);let s;return i||(s=await cv(a,o,n)),t.replace(dA(e),`$1${s}$3`)}catch{}return t}function pA(t,{preferredFontFormat:e}){return e?t.replace(fA,r=>{for(;;){const[n,,i]=cA.exec(r)||[];if(!i)return"";if(i===e)return`src: ${n};`}}):t}function Y0(t){return t.search(K0)!==-1}async function Z0(t,e,r){if(!Y0(t))return t;const n=pA(t,r);return hA(n).reduce((a,o)=>a.then(s=>vA(s,o,e,r)),Promise.resolve(n))}async function wl(t,e,r){var n;const i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(t);if(i){const a=await Z0(i,null,r);return e.style.setProperty(t,a,e.style.getPropertyPriority(t)),!0}return!1}async function gA(t,e){await wl("background",t,e)||await wl("background-image",t,e),await wl("mask",t,e)||await wl("mask-image",t,e)}async function mA(t,e){const r=Pr(t,HTMLImageElement);if(!(r&&!Xd(t.src))&&!(Pr(t,SVGImageElement)&&!Xd(t.href.baseVal)))return;const n=r?t.src:t.href.baseVal,i=await cv(n,uv(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 yA(t,e){const n=ui(t.childNodes).map(i=>Q0(i,e));await Promise.all(n).then(()=>t)}async function Q0(t,e){Pr(t,Element)&&(await gA(t,e),await mA(t,e),await yA(t,e))}function SA(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 $p={};async function Up(t){let e=$p[t];if(e!=null)return e;const n=await(await fetch(t)).text();return e={url:t,cssText:n},$p[t]=e,e}async function zp(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),X0(s,e.fetchRequestInit,({result:l})=>(r=r.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>r)}function Hp(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 bA(t,e){const r=[],n=[];return t.forEach(i=>{if("cssRules"in i)try{ui(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,u=Up(l).then(f=>zp(f,e)).then(f=>Hp(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(Up(i.href).then(s=>zp(s,e)).then(s=>Hp(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{ui(i.cssRules||[]).forEach(a=>{r.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),r))}function CA(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Y0(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=ui(t.ownerDocument.styleSheets),n=await bA(r,e);return CA(n)}async function wA(t,e){const r=await xA(t,e);return(await Promise.all(r.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return Z0(i.cssText,a,e)}))).join(` `)}async function TA(t,e){const r=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await wA(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 IA(t,e={}){const{width:r,height:n}=W0(t,e),i=await Sc(t,e,!0);return await TA(i,e),await Q0(i,e),SA(i,e),await VI(i,r,n)}async function AA(t,e={}){const{width:r,height:n}=W0(t,e),i=await IA(t,e),a=await Fu(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=e.pixelRatio||$I(),u=e.canvasWidth||r,f=e.canvasHeight||n;return o.width=u*l,o.height=f*l,e.skipAutoScale||UI(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 AA(t,e);return await zI(r)}const EA=rI("pptWork",{state:()=>({id:iI().query.id,coverImg:"",jsonUrl:"",isSave:!1}),actions:{async initPPTData(){if(this.id){ai.loading(!0,"资源加载中,请稍等...");const t=await Mp(wI,this.id,vo.pptResourcesType);if(t.code===200){const{dataJson:e,chapterLessonCoursewareName:r}=t.data||{},{coverImg:n,jsonUrl:i}=JSON.parse(e);if(this.coverImg=n||"",zt().setTitle(r),i){const o=await AI(i);o.code===200&&_I(o.data)}}else aI.replace("/err");ai.loading(!1)}},async updatePPT(){ai.loading(!0,"课件保存中,请稍等..."),await this.updateCoverImg();const{blob:t}=EI();kp(`${this.id}ppt`,t,`${this.id}/`,!1,{isLoading:!1}).then(e=>{const r=Date.now();Mp(vo.fromType==="PLATFORM"?II:TI,{id:this.id,dataJson:JSON.stringify({coverImg:this.coverImg+`?v=_${r}`,jsonUrl:e+`?v=_${r}`})}).then(n=>{n.code===200&&(this.isSave=!0,Rp({showClose:!0,message:"保存成功!",type:"success"})),ai.loading(!1)})}).catch(()=>{ai.loading(!1),Rp({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 kp(`${this.id}coverImg`,e,`${this.id}/`,!1,{isLoading:!1});r&&(this.coverImg=r)}}}catch(t){console.log(t,"上传coverImg错误")}}}}),v$=()=>EA(nI),J0=()=>{const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},q0=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},Kd=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),bc=()=>{const t=yc(),e=zt(),r=()=>{J0(),t.setScreening(!0)};return{enterScreening:r,enterScreeningFromStart:()=>{e.updateSlideIndex(0),r()},exitScreening:()=>{t.setScreening(!1),Kd()&&q0()}}},PA=Xe({__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=ge(),a=ge(),o=ge(),s=ge(!1),l=Me(()=>r.contentStyle||{});return hr(()=>r.value,()=>{i.value&&(r.value?i.value.show():i.value.hide())}),un(()=>{i.value&&i.value.destroy()}),xr(()=>{i.value=oI(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)=>(oe(),Se("div",{class:ht(["popover",{center:u.center}]),ref_key:"triggerRef",ref:a},[Y("div",{class:"popover-content",style:Ie(l.value),ref_key:"contentRef",ref:o},[s.value?Ns(u.$slots,"content",{key:0},void 0,!0):je("",!0)],4),Ns(u.$slots,"default",{},void 0,!0)],2))}}),cf=tt(PA,[["__scopeId","data-v-e147331a"]]),Ba=Symbol(),ol=Symbol(),p$=Symbol(),Cc=t=>({shadowStyle:Me(()=>{if(t.value){const{h:r,v:n,blur:i,color:a}=t.value;return`${r}px ${n}px ${i}px ${a}`}return""})}),e1=(t,e)=>({flipStyle:Me(()=>{let n="";return t.value&&e.value?n="rotateX(180deg) rotateY(180deg)":e.value?n="rotateX(180deg)":t.value&&(n="rotateY(180deg)"),n})});var t1=(t=>(t.RECT="rect",t.ELLIPSE="ellipse",t.POLYGON="polygon",t))(t1||{});const Vp={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`}},r1=t=>{const e=Me(()=>{let n=Vp.rect;if(t.value.clip){const i=t.value.clip.shape||t1.RECT;n=Vp[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=Me(()=>{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}},MA=t=>({filter:Me(()=>{if(!t.value)return"";let r="";const n=Object.keys(t.value);for(const i of n)r+=`${i}(${t.value[i]}) `;return r})}),sl=t=>{const e=Me(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=Me(()=>{var a;return((a=t.value)==null?void 0:a.style)||"solid"}),n=Me(()=>{var a;return((a=t.value)==null?void 0:a.color)||"#5b9bd5"}),i=Me(()=>{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}},RA=["width","height"],DA=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],LA=Xe({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:a.width,height:a.height},[Y("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:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,DA)],8,RA)):je("",!0)}}),OA=tt(LA,[["__scopeId","data-v-801a8465"]]),kA=["width","height"],BA=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],NA=Xe({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:a.width,height:a.height},[Y("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:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,BA)],8,kA)):je("",!0)}}),FA=tt(NA,[["__scopeId","data-v-2528d7e2"]]),$A=["width","height"],UA=["d","stroke","stroke-width","stroke-dasharray"],zA=Xe({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:a.width,height:a.height},[Y("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:a.createPath(a.width,a.height),stroke:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,UA)],8,$A)):je("",!0)}}),HA=tt(zA,[["__scopeId","data-v-04ee0d7b"]]),VA={class:"image-outline"},GA=Xe({__name:"index",props:{elementInfo:{}},setup(t){const e=t,r=Me(()=>e.elementInfo),{clipShape:n}=r1(r);return(i,a)=>(oe(),Se("div",VA,[he(n).type==="rect"?(oe(),Je(OA,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:he(n).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):he(n).type==="ellipse"?(oe(),Je(FA,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):he(n).type==="polygon"?(oe(),Je(HA,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:he(n).createPath},null,8,["width","height","outline","createPath"])):je("",!0)]))}}),jA=["width","height"],WA=["d","stroke","stroke-width","stroke-dasharray"],XA=Xe({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"element-outline",overflow:"visible",width:a.width,height:a.height},[Y("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:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,WA)],8,jA)):je("",!0)}}),n1=tt(XA,[["__scopeId","data-v-813f8c74"]]),KA=["id","gradientTransform"],YA=["offset","stop-color"],ZA=["id"],QA=["offset","stop-color"],JA=Xe({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(t){return(e,r)=>e.type==="linear"?(oe(),Se("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${e.rotate},0.5,0.5)`},[(oe(!0),Se(Yt,null,Vr(e.colors,(n,i)=>(oe(),Se("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,YA))),128))],8,KA)):(oe(),Se("radialGradient",{key:1,id:e.id},[(oe(!0),Se(Yt,null,Vr(e.colors,(n,i)=>(oe(),Se("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,QA))),128))],8,ZA))}}),qA=["id","markerWidth","markerHeight","refX","refY"],e_=["d","fill","transform"],Gp=Xe({__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=Me(()=>r[e.type]),a=Me(()=>n[`${e.type}-${e.position}`]||0),o=Me(()=>e.baseSize<2?2:e.baseSize);return(s,l)=>(oe(),Se("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},[Y("path",{d:i.value,fill:s.color,transform:`scale(${o.value*.3}, ${o.value*.3}) rotate(${a.value}, 5, 5)`},null,8,e_)],8,qA))}}),t_=({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"?Ct.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ct.node=!0,Ct.svgSupported=!0):i_(navigator.userAgent,Ct);function i_(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 fv=12,i1="sans-serif",Ui=fv+"px "+i1,a_=20,o_=100,s_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function l_(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 L_(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]=M_(o,s))}function d1(t){return t.nodeName.toUpperCase()==="CANVAS"}var O_=/([&<>"'])/g,k_={"&":"&","<":"<",">":">",'"':""","'":"'"};function B_(t){return t==null?"":(t+"").replace(O_,function(e,r){return k_[r]})}var N_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hf=[],F_=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function th(t,e,r,n){return r=r||{},n?Yp(t,e,r):F_&&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):Yp(t,e,r),r}function Yp(t,e,r){if(Ct.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(d1(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(R_(hf,t,n,i)){r.zrX=hf[0],r.zrY=hf[1];return}}r.zrX=r.zrY=0}function gv(t){return t||window.event}function Sn(t,e,r){if(e=gv(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&&th(t,o,e,r)}else{th(t,e,e,r);var a=$_(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&N_.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function $_(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 U_(t,e,r,n){t.addEventListener(e,r,n)}function z_(t,e,r,n){t.removeEventListener(e,r,n)}var H_=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},V_=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=Zp(n)/Zp(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=G_(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function ys(){return[1,0,0,1,0,0]}function mv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function j_(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 go(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 Qp(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 h1(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 W_(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 yv(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 Ze=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}(),Il=Math.min,Al=Math.max,qi=new Ze,ea=new Ze,ta=new Ze,ra=new Ze,ko=new Ze,Bo=new Ze,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=Il(e.x,this.x),n=Il(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Al(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Al(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=ys();return Qp(a,a,[-r.x,-r.y]),W_(a,a,[n,i]),Qp(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=b,pv&&(v=A,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}qi.x=ta.x=r.x,qi.y=ra.y=r.y,ea.x=ra.x=r.x+r.width,ea.y=ta.y=r.y+r.height,qi.transform(n),ra.transform(n),ea.transform(n),ta.transform(n),e.x=Il(qi.x,ea.x,ta.x,ra.x),e.y=Il(qi.y,ea.y,ta.y,ra.y);var l=Al(qi.x,ea.x,ta.x,ra.x),u=Al(qi.y,ea.y,ta.y,ra.y);e.width=l-e.x,e.height=u-e.y},t}(),v1="silent";function X_(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:K_}}function K_(){H_(this.event)}var Y_=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}(hi),No=function(){function t(e,r){this.x=e,this.y=r}return t}(),Z_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pf=new It(0,0,0,0),p1=function(t){De(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new No(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Y_,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new E_(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(J(Z_,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=g1(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 No(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 No(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=X_(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 No(r,n);if(Jp(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)&&(pf.copy(d.getBoundingRect()),d.transform&&pf.applyTransform(d.transform),pf.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 Q_(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?v1:!0}return!1}function Jp(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=Q_(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==v1)){e.target=o;break}}}function g1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var m1=32,Fo=7;function J_(t){for(var e=0;t>=m1;)e|=t&1,t>>=1;return t+e}function qp(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 q_(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 gf(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 mf(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 eE(t,e){var r=Fo,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]=Fo||I>=Fo);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),v===1){for(m=0;m=0;m--)t[C+m]=t[M+m];t[A]=o[b];return}for(var I=r;;){var P=0,S=0,T=!1;do if(e(o[b],t[y])<0){if(t[A--]=t[y--],P++,S=0,--v===0){T=!0;break}}else if(t[A--]=o[b--],S++,P=0,--g===1){T=!0;break}while((P|S)=0;m--)t[C+m]=t[M+m];if(v===0){T=!0;break}}if(t[A--]=o[b--],--g===1){T=!0;break}if(S=g-gf(t[y],o,0,g,g-1,e),S!==0){for(A-=S,b-=S,g-=S,C=A+1,M=b+1,m=0;m=Fo||S>=Fo);if(T)break;I<0&&(I=0),I+=2}if(r=I,r<1&&(r=1),g===1){for(A-=v,y-=v,C=A+1,M=y+1,m=v-1;m>=0;m--)t[C+m]=t[M+m];t[A]=o[b]}else{if(g===0)throw new Error;for(M=A-(g-1),m=0;ms&&(l=s),eg(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 $n=1,is=2,io=4,tg=!1;function yf(){tg||(tg=!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 tE=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)&&(yf(),f.z=0),isNaN(f.z2)&&(yf(),f.z2=0),isNaN(f.zlevel)&&(yf(),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}(),rh;rh=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ss={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-Ss.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?Ss.bounceIn(t*2)*.5:Ss.bounceOut(t*2-1)*.5+.5}},_l=Math.pow,Bi=Math.sqrt,Uu=1e-8,y1=1e-4,ng=Bi(3),El=1/3,Un=Eo(),nn=Eo(),mo=Eo();function Mi(t){return t>-Uu&&tUu||t<-Uu}function ar(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 ig(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function zu(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(Mi(f)&&Mi(c))if(Mi(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(Mi(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=Bi(p),b=f*s+1.5*o*(-c+y),A=f*s+1.5*o*(-c-y);b<0?b=-_l(-b,El):b=_l(b,El),A<0?A=-_l(-A,El):A=_l(A,El);var v=(-s-(b+A))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var M=(2*f*s-3*o*c)/(2*Bi(f*f*f)),C=Math.acos(M)/3,I=Bi(f),P=Math.cos(C),v=(-s-2*I*P)/(3*o),m=(-s+I*(P+ng*Math.sin(C)))/(3*o),S=(-s+I*(P-ng*Math.sin(C)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),S>=0&&S<=1&&(a[h++]=S)}}return h}function b1(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(Mi(o)){if(S1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Mi(f))i[0]=-a/(2*o);else if(f>0){var c=Bi(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 Hu(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 rE(t,e,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,p,g,m;Un[0]=l,Un[1]=u;for(var y=0;y<1;y+=.05)nn[0]=ar(t,r,i,o,y),nn[1]=ar(e,n,a,s,y),g=po(Un,nn),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Mi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Bi(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 C1(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Vu(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 aE(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Un[0]=o,Un[1]=s;for(var d=0;d<1;d+=.05){nn[0]=_r(t,r,i,d),nn[1]=_r(e,n,a,d);var h=po(Un,nn);h=0&&h=1?1:zu(0,n,a,1,l,s)&&ar(0,i,o,1,s[0])}}}var lE=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||Gr,this.ondestroy=e.ondestroy||Gr,this.onrestart=e.onrestart||Gr,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:Ss[e]||Sv(e)},t}(),x1=function(){function t(e){this.value=e}return t}(),uE=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new x1(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}(),cl=function(){function t(e){this._list=new uE,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 x1(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 Ni(t){return t=Math.round(t),t<0?0:t>255?255:t}function nh(t){return t<0?0:t>1?1:t}function Sf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ni(parseFloat(e)/100*255):Ni(parseInt(e,10))}function bs(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?nh(parseFloat(e)/100):nh(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 Pl(t,e,r){return t+(e-t)*r}function qr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function ih(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var w1=new cl(20),Ml=null;function Ha(t,e){Ml&&ih(Ml,e),Ml=w1.put(t,Ml||e.slice())}function Vn(t,e){if(t){e=e||[];var r=w1.get(t);if(r)return ih(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in og)return ih(e,og[n]),Ha(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)){qr(e,0,0,0,1);return}return qr(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),Ha(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){qr(e,0,0,0,1);return}return qr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ha(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?qr(e,+u[0],+u[1],+u[2],1):qr(e,0,0,0,1);f=bs(u.pop());case"rgb":if(u.length>=3)return qr(e,Sf(u[0]),Sf(u[1]),Sf(u[2]),u.length===3?f:bs(u[3])),Ha(t,e),e;qr(e,0,0,0,1);return;case"hsla":if(u.length!==4){qr(e,0,0,0,1);return}return u[3]=bs(u[3]),sg(u,e),Ha(t,e),e;case"hsl":if(u.length!==3){qr(e,0,0,0,1);return}return sg(u,e),Ha(t,e),e;default:return}}qr(e,0,0,0,1)}}function sg(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=bs(t[1]),i=bs(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],qr(e,Ni(bf(o,a,r+1/3)*255),Ni(bf(o,a,r)*255),Ni(bf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function lg(t,e){var r=Vn(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 Tc(r,r.length===4?"rgba":"rgb")}}function cE(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=Vn(e[i]),s=Vn(e[a]),l=n-i,u=Tc([Ni(Pl(o[0],s[0],l)),Ni(Pl(o[1],s[1],l)),Ni(Pl(o[2],s[2],l)),nh(Pl(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Tc(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 Gu(t,e){var r=Vn(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var ug=new cl(100);function ah(t){if(He(t)){var e=ug.get(t);return e||(e=lg(t,-.1),ug.put(t,e)),e}else if(vv(t)){var r=Te({},t);return r.colorStops=Oe(t.colorStops,function(n){return{offset:n.offset,color:lg(n.color,-.1)}}),r}return t}var ju=Math.round;function Us(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Vn(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var cg=1e-4;function Ri(t){return t-cg}function Rl(t){return ju(t*1e3)/1e3}function oh(t){return ju(t*1e4)/1e4}function fE(t){return"matrix("+Rl(t[0])+","+Rl(t[1])+","+Rl(t[2])+","+Rl(t[3])+","+oh(t[4])+","+oh(t[5])+")"}var dE={left:"start",right:"end",center:"middle",middle:"middle"};function hE(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function vE(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function pE(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 T1(t){return t&&!!t.image}function gE(t){return t&&!!t.svgElement}function bv(t){return T1(t)||gE(t)}function I1(t){return t.type==="linear"}function A1(t){return t.type==="radial"}function _1(t){return t&&(t.type==="linear"||t.type==="radial")}function Ic(t){return"url(#"+t+")"}function E1(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 P1(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Su,i=Ke(t.scaleX,1),a=Ke(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("+ju(o*Su)+"deg, "+ju(s*Su)+"deg)"),l.join(" ")}var mE=function(){return Ct.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}}(),sh=Array.prototype.slice;function ii(t,e,r){return(e-t)*r+t}function Cf(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=dg,l=r;if(Lr(r)){var u=CE(r);s=u,(u===1&&!Et(r[0])||u===2&&!Et(r[0][0]))&&(o=!0)}else if(Et(r)&&!$u(r))s=Ll;else if(He(r))if(!isNaN(+r))s=Ll;else{var f=Vn(r);f&&(l=f,s=as)}else if(vv(r)){var c=Te({},l);c.colorStops=Oe(r.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),I1(r)?s=lh:A1(r)&&(s=uh),l=c}a===0?this.valType=s:(s!==this.valType||s===dg)&&(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:Ss[n]||Sv(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=Ol(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?$o:e[l];if((Ol(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:v.rawValue;else if(Ol(a))a===wu?Cf(y,h[i],v[i],m):yE(y,h[i],v[i],m);else if(hg(a)){var b=h[i],A=v[i],M=a===lh;e[l]={type:M?"linear":"radial",x:ii(b.x,A.x,m),y:ii(b.y,A.y,m),colorStops:Oe(b.colorStops,function(I,P){var S=A.colorStops[P];return{offset:ii(I.offset,S.offset,m),color:xu(Cf([],I.color,S.color,m))}}),global:A.global},M?(e[l].x2=ii(b.x2,A.x2,m),e[l].y2=ii(b.y2,A.y2,m)):e[l].r=ii(b.r,A.r,m)}else if(u)Cf(y,h[i],v[i],m),n||(e[l]=xu(y));else{var C=ii(h[i],v[i],m);n?this._additiveValue=C:e[l]=C}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ll?e[n]=e[n]+i:r===as?(Vn(e[n],$o),Dl($o,$o,i,1),e[n]=xu($o)):r===wu?Dl(e[n],e[n],i,1):r===M1&&fg(e[n],e[n],i,1)},t}(),Cv=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){l1("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,Cu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Cu(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 co(){return new Date().getTime()}var wE=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=co()-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&&(rh(n),!r._paused&&r.update())}rh(n)},e.prototype.start=function(){this._running||(this._time=co(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=co(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=co()-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 Cv(r,n.loop);return this.addAnimator(i),i},e}(hi),TE=300,xf=Ct.domSupported,wf=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=Oe(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"]},pg=!1;function ch(t){var e=t.pointerType;return e==="pen"||e==="touch"}function IE(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 Tf(t){t&&(t.zrByTouch=!0)}function AE(t,e){return Sn(t.dom,new _E(t,e),!0)}function R1(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=Gr,this.stopImmediatePropagation=Gr,this.preventDefault=Gr,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),bn={mousedown:function(t){t=Sn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Sn(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=Sn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Sn(this.dom,t);var e=t.toElement||t.relatedTarget;R1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){pg=!0,t=Sn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){pg||(t=Sn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Sn(this.dom,t),Tf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),bn.mousemove.call(this,t),bn.mousedown.call(this,t)},touchmove:function(t){t=Sn(this.dom,t),Tf(t),this.handler.processGesture(t,"change"),bn.mousemove.call(this,t)},touchend:function(t){t=Sn(this.dom,t),Tf(t),this.handler.processGesture(t,"end"),bn.mouseup.call(this,t),+new Date-+this.__lastTouchMomentSg||t<-Sg}var ia=[],Va=[],Af=ys(),_f=Math.abs,xv=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 na(this.rotation)||na(this.x)||na(this.y)||na(this.scaleX-1)||na(this.scaleY-1)||na(this.skewX)||na(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(yg(n),this.invTransform=null);return}n=n||ys(),r?this.getLocalTransform(n):yg(n),e&&(r?go(n,e,n):j_(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ia);var n=ia[0]<0?-1:1,i=ia[1]<0?-1:1,a=((ia[0]-n)*r+n)/ia[0]||0,o=((ia[1]-i)*r+i)/ia[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ys(),yv(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||ys(),go(Va,e.invTransform,r),r=Va);var n=this.originX,i=this.originY;(n||i)&&(Af[4]=n,Af[5]=i,go(Va,r,Af),Va[4]-=n,Va[5]-=i,r=Va),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&&ln(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&ln(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&_f(e[0]-1)>1e-10&&_f(e[3]-1)>1e-10?Math.sqrt(_f(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){L1(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&&h1(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}(),zs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function L1(t,e){for(var r=0;r=0?parseFloat(t)/100*e:parseFloat(t):t}function Wu(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+=Hi(n[0],r.width),u+=Hi(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 Ef="__zr_normal__",Pf=zs.concat(["ignore"]),DE=zi(zs,function(t,e){return t[e]=!0,t},{ignore:!1}),Ga={},LE=new It(0,0,0,0),_c=function(){function t(e){this.id=s1(),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=LE;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ga,n,f):Wu(Ga,n,f),a.x=Ga.x,a.y=Ga.y,o=Ga.align,s=Ga.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=Hi(c[0],f.width),h=Hi(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,b=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),b=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),b=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=$n,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()?vh:hh},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Vn(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,Tc(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||{},Te(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(We(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(Ef,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Ef,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Pt(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){l1("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&=~$n),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&=~$n)}},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=Pt(i,e),o=Pt(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 P=void 0,S=void 0,T=void 0;if(s){S={},d&&(P={});for(var A=0;A=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Pt(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=Pt(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 _t(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 He(t)?GE(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),N1),t=(+t).toFixed(e),r?t:+t}function si(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 jE(t)}function jE(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 XE(t,e){var r=zi(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=Oe(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Oe(i,function(h){return Math.floor(h)}),s=zi(o,function(h,v){return h+v},0),l=Oe(i,function(h,v){return h-o[v]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Oe(o,function(h){return h/n})}function KE(t,e){var r=Math.max(si(t),si(e)),n=t+e;return r>N1?n:Vt(n,r)}function F1(t){var e=Math.PI*2;return(t%e+e)%e}function Xu(t){return t>-wg&&t=10&&e++,e}function $1(t,e){var r=wv(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 QE(t){var e=parseFloat(t);return e==t&&(e!==0||!He(t)||t.indexOf("x")<=0)?e:NaN}function JE(t){return!isNaN(QE(t))}function qE(){return Math.round(Math.random()*9)}function U1(t,e){return e===0?t:U1(e,t%e)}function Tg(t,e){return t==null?e:e==null?t:t*e/U1(t,e)}function zr(t){throw new Error(t)}function Ig(t,e,r){return(e-t)*r+t}var z1="series\0",e2="\0_ec_\0";function Cr(t){return t instanceof Array?t:t==null?[]:[t]}function mh(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&&Pt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var x2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],w2=Vs(x2),T2=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return w2(this,e,r)},t}(),yh=new cl(50);function I2(t){if(typeof t=="string"){var e=yh.get(t);return e&&e.image}else return t}function Av(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=yh.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Mc(e)&&a.pending.push(o)):(e=ll.loadImage(t,_g,_g),e.__zrImageSrc=t,yh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function _g(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=jr(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 K1(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=jr(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?_2(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=jr(t,n)}return t===""&&(t=e.placeholder),t}function _2(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=X1(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&Of(r,t.substring(s,u),e,o),Of(r,l[2],e,o,l[1]),s=Lf.lastIndex}si){M>0?(y.tokens=y.tokens.slice(0,M),g(y,A,b),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var _=I.width,E=_==null||_==="auto";if(typeof _=="string"&&_.charAt(_.length-1)==="%")C.percentWidth=_,f.push(C),C.contentWidth=jr(C.text,T);else{if(E){var R=I.backgroundColor,O=R&&R.image;O&&(O=I2(O),Mc(O)&&(C.width=Math.max(C.width,O.width*x/O.height)))}var D=v&&n!=null?n-A:null;D!=null&&D0&&v+n.accumWidth>n.width&&(f=e.split(` `),u=!0),n.accumWidth=v}else{var p=Y1(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 L2=zi(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function O2(t){return D2(t)?!!L2[t]:!0}function Y1(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 Sh="__zr_style_"+Math.round(Math.random()*10),Pa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Pa[Sh]=!0;var Pg=["z","z2","invisible"],k2=["invisible"],B2=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(kl[0]=Ff(i)*r+t,kl[1]=Nf(i)*n+e,Bl[0]=Ff(a)*r+t,Bl[1]=Nf(a)*n+e,u(s,kl,Bl),f(l,kl,Bl),i=i%oa,i<0&&(i=i+oa),a=a%oa,a<0&&(a=a+oa),i>a&&!o?a+=oa:ii&&(Nl[0]=Ff(h)*r+t,Nl[1]=Nf(h)*n+e,u(s,Nl,s),f(l,Nl,l))}var bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sa=[],la=[],Ln=[],mi=[],On=[],kn=[],$f=Math.min,Uf=Math.max,ua=Math.cos,ca=Math.sin,ri=Math.abs,bh=Math.PI,Ai=bh*2,zf=typeof Float32Array<"u",Uo=[];function Hf(t){var e=Math.round(t/bh*1e8)/1e8;return e%2*bh}function Z1(t,e){var r=Hf(t[0]);r<0&&(r+=Ai);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Ai?i=r+Ai:e&&r-i>=Ai?i=r-Ai:!e&&r>i?i=r+(Ai-Hf(r-i)):e&&r0&&(this._ux=ri(n/mg/e)||0,this._uy=ri(n/mg/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=ri(e-this._xi),i=ri(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(),Uo[0]=i,Uo[1]=a,Z1(Uo,o),i=Uo[0],a=Uo[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=ua(a)*n+e,this._yi=ca(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)&&zf&&(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(){Ln[0]=Ln[1]=On[0]=On[1]=Number.MAX_VALUE,mi[0]=mi[1]=kn[0]=kn[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||ri(b)>i||d===r-1)&&(p=Math.sqrt(y*y+b*b),a=g,o=m);break}case bt.C:{var A=e[d++],M=e[d++],g=e[d++],m=e[d++],C=e[d++],I=e[d++];p=nE(a,o,A,M,g,m,C,I,10),a=C,o=I;break}case bt.Q:{var A=e[d++],M=e[d++],g=e[d++],m=e[d++];p=oE(a,o,A,M,g,m,10),a=g,o=m;break}case bt.A:var P=e[d++],S=e[d++],T=e[d++],x=e[d++],_=e[d++],E=e[d++],R=E+_;d+=1,v&&(s=ua(_)*T+P,l=ca(_)*x+S),p=Uf(T,x)*$f(Ai,Math.abs(E)),a=ua(R)*T+P,o=ca(R)*x+S;break;case bt.R:{s=a=e[d++],l=o=e[d++];var O=e[d++],D=e[d++];p=O*2+D*2;break}case bt.Z:{var y=s-a,b=l-o;p=Math.sqrt(y*y+b*b),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,b=0,A,M;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var C=0;C0&&(e.lineTo(A,M),b=0),I){case bt.M:s=u=n[C++],l=f=n[C++],e.moveTo(u,f);break;case bt.L:{c=n[C++],d=n[C++];var S=ri(c-u),T=ri(d-f);if(S>i||T>a){if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;e.lineTo(u*(1-_)+c*_,f*(1-_)+d*_);break e}g+=x}e.lineTo(c,d),u=c,f=d,b=0}else{var E=S*S+T*T;E>b&&(A=c,M=d,b=E)}break}case bt.C:{var R=n[C++],O=n[C++],D=n[C++],B=n[C++],$=n[C++],U=n[C++];if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;Hu(u,R,D,$,_,sa),Hu(f,O,B,U,_,la),e.bezierCurveTo(sa[1],la[1],sa[2],la[2],sa[3],la[3]);break e}g+=x}e.bezierCurveTo(R,O,D,B,$,U),u=$,f=U;break}case bt.Q:{var R=n[C++],O=n[C++],D=n[C++],B=n[C++];if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;Vu(u,R,D,_,sa),Vu(f,O,B,_,la),e.quadraticCurveTo(sa[1],la[1],sa[2],la[2]);break e}g+=x}e.quadraticCurveTo(R,O,D,B),u=D,f=B;break}case bt.A:var Q=n[C++],Z=n[C++],V=n[C++],te=n[C++],ie=n[C++],se=n[C++],W=n[C++],q=!n[C++],ce=V>te?V:te,me=ri(V-te)>.001,be=ie+se,ue=!1;if(h){var x=v[m++];g+x>y&&(be=ie+se*(y-g)/x,ue=!0),g+=x}if(me&&e.ellipse?e.ellipse(Q,Z,V,te,W,ie,be,q):e.arc(Q,Z,ce,ie,be,q),ue)break e;P&&(s=ua(ie)*V+Q,l=ca(ie)*te+Z),u=ua(be)*V+Q,f=ca(be)*te+Z;break;case bt.R:s=u=n[C],l=f=n[C+1],c=n[C++],d=n[C++];var ve=n[C++],Ce=n[C++];if(h){var x=v[m++];if(g+x>y){var ae=y-g;e.moveTo(c,d),e.lineTo(c+$f(ae,ve),d),ae-=ve,ae>0&&e.lineTo(c+ve,d+$f(ae,Ce)),ae-=Ce,ae>0&&e.lineTo(c+Uf(ve-ae,0),d+Ce),ae-=ve,ae>0&&e.lineTo(c,d+Uf(Ce-ae,0));break e}g+=x}e.rect(c,d,ve,Ce);break;case bt.Z:if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;e.lineTo(u*(1-_)+s*_,f*(1-_)+l*_);break e}g+=x}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 ja(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+=zo);var d=Math.atan2(l,s);return d<0&&(d+=zo),d>=n&&d<=i||d+zo>=n&&d+zo<=i}function fa(t,e,r,n,i,a){if(a>e&&a>n||ai?s:0}var yi=Gi.CMD,da=Math.PI*2,G2=1e-4;function j2(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||u1&&W2(),h=ar(e,n,a,s,tn[0]),d>1&&(v=ar(e,n,a,s,tn[1]))),d===2?ge&&s>n&&s>a||s=0&&u<=1){for(var f=0,c=_r(e,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Sr[0]=-l,Sr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=da-1e-4){n=0,i=da;var f=a?1:-1;return o>=Sr[0]+t&&o<=Sr[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=da,i+=da);for(var d=0,h=0;h<2;h++){var v=Sr[h];if(v+t>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=da+p),(p>=n&&p<=i||p+da>=n&&p+da<=i)&&(p>Math.PI/2&&p1&&(r||(s+=fa(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case yi.M:f=a[v++],c=a[v++],l=f,u=c;break;case yi.L:if(r){if(ja(l,u,a[v],a[v+1],e,n,i))return!0}else s+=fa(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case yi.C:if(r){if(z2(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=X2(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 yi.Q:if(r){if(H2(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=K2(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case yi.A:var m=a[v++],y=a[v++],b=a[v++],A=a[v++],M=a[v++],C=a[v++];v+=1;var I=!!(1-a[v++]);d=Math.cos(M)*b+m,h=Math.sin(M)*A+y,g?(f=d,c=h):s+=fa(l,u,d,h,n,i);var P=(n-m)*A/b+m;if(r){if(V2(m,y,A,M,M+C,I,e,P,i))return!0}else s+=Y2(m,y,A,M,M+C,I,P,i);l=Math.cos(M+C)*b+m,u=Math.sin(M+C)*A+y;break;case yi.R:f=l=a[v++],c=u=a[v++];var S=a[v++],T=a[v++];if(d=f+S,h=c+T,r){if(ja(f,c,d,c,e,n,i)||ja(d,c,d,h,e,n,i)||ja(d,h,f,h,e,n,i)||ja(f,h,f,c,e,n,i))return!0}else s+=fa(d,c,d,h,n,i),s+=fa(f,h,f,c,n,i);break;case yi.Z:if(r){if(ja(l,u,f,c,e,n,i))return!0}else s+=fa(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!j2(u,c)&&(s+=fa(l,u,f,c,n,i)||0),s!==0}function Z2(t,e,r){return Q1(t,0,!1,e,r)}function Q2(t,e,r,n){return Q1(t,e,!0,r,n)}var Ku=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Pa),J2={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rc.style)},Vf=zs.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?hh:n>.2?RE:vh}else if(r)return vh}return hh},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(He(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Gu(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&io)&&(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)),Q2(s,l/u,r,n)))return!0}if(this.hasFill())return Z2(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=io,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:Te(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&io)},e.prototype.createStyle=function(r){return wc(Ku,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Te({},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=Te({},i.shape),Te(u,n.shape)):(u=Te({},a?this.shape:i.shape),Te(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Te({},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 wc(q2,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=O1(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}(dl);Gs.prototype.type="tspan";var eP=ft({x:0,y:0},Pa),tP={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rc.style)};function rP(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var _n=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return wc(eP,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=rP(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 tP},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}(dl);_n.prototype.type="image";function nP(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 fo=Math.round;function J1(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&&(fo(n*2)===fo(i*2)&&(t.x1=t.x2=_a(n,s,!0)),fo(a*2)===fo(o*2)&&(t.y1=t.y2=_a(a,s,!0))),t}}function q1(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=_a(n,s,!0),t.y=_a(i,s,!0),t.width=Math.max(_a(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(_a(i+o,s,!1)-t.y,o===0?0:1)),t}}function _a(t,e,r){if(!e)return t;var n=fo(t*2);return(n+fo(e))%2===0?n/2:(n+(r?1:-1))/2}var iP=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),aP={},Zt=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new iP},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=q1(aP,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?nP(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);Zt.prototype.type="rect";var Og={fill:"#000"},kg=2,oP={style:ft({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},Rc.style)},Wr=function(t){De(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Og,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,_=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),E=o.calculatedLineHeight,R=0;R=0&&(R=C[E],R.align==="right");)this._placeToken(R,r,P,m,_,"right",b),S-=R.width,_-=R.width,E--;for(x+=(a-(x-g)-(y-_)-S)/2;T<=E;)R=C[T],this._placeToken(R,r,P,m,x+R.width/2,"center",b),x+=R.width,T++;m+=P}},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&&Gf(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=zg(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Gs),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,b=0,A=Ug("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),M=$g("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(b=kg,m.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,C&&(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||Ui,g.opacity=gs(u.opacity,n.opacity,1),Ng(g,u),M&&(g.lineWidth=gs(u.lineWidth,n.lineWidth,b),g.lineDash=Ke(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=M),A&&(g.fill=A);var I=r.contentWidth,P=r.contentHeight;p.setBoundingRect(new It(os(g.x,I,g.textAlign),ao(g.y,P,g.textBaseline),I,P))},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(Zt),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=Ke(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(_n),g.onload=function(){v.dirtyStyle()};var b=g.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Ke(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 A=(p||g).style;A.shadowBlur=r.shadowBlur||0,A.shadowColor=r.shadowColor||"transparent",A.shadowOffsetX=r.shadowOffsetX||0,A.shadowOffsetY=r.shadowOffsetY||0,A.opacity=gs(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return tS(r)&&(n=[r.fontStyle,r.fontWeight,eS(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Pi(n)||r.textFont||r.font},e}(dl),sP={left:!0,right:1,center:1},lP={top:1,bottom:1,middle:1},Bg=["fontStyle","fontWeight","fontSize","fontFamily"];function eS(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?fv+"px":t+"px"}function Ng(t,e){for(var r=0;r=0,a=!1;if(t instanceof yt){var o=rS(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Wa(s)||Wa(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Te({},n),u=Te({},u),u.fill=s):!Wa(u.fill)&&Wa(s)?(a=!0,n=Te({},n),u=Te({},u),u.fill=ah(s)):!Wa(u.stroke)&&Wa(l)&&(a||(n=Te({},n),u=Te({},u)),u.stroke=ah(l)),n.style=u}}if(n&&n.z2==null){a||(n=Te({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??fP)}return n}function mP(t,e,r){if(r&&r.z2==null){r=Te({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??dP)}return r}function yP(t,e,r){var n=Pt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:pP(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Te({},r),o=Te({opacity:n?i:a.opacity*.1},o),r.style=o),r}function jf(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return gP(this,t,e,r);if(t==="blur")return yP(this,t,r);if(t==="select")return mP(this,t,r)}return r}function SP(t){t.stateProxy=jf;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=jf),r&&(r.stateProxy=jf)}function Xg(t,e){!uS(t,e)&&!t.__highByOuter&&vi(t,nS)}function Kg(t,e){!uS(t,e)&&!t.__highByOuter&&vi(t,iS)}function Zu(t,e){t.__highByOuter|=1<<(e||0),vi(t,nS)}function Qu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&vi(t,iS)}function bP(t){vi(t,Pv)}function oS(t){vi(t,aS)}function sS(t){vi(t,hP)}function lS(t){vi(t,vP)}function uS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function cS(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=_v(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){aS(u)}),s&&r.push(a)),o.isBlured=!1}),J(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Ch(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 wh(t,e,r){fS(t,!0),vi(t,SP),_P(t,e,r)}function AP(t){fS(t,!1)}function xo(t,e,r,n){n?AP(t):wh(t,e,r)}function _P(t,e,r){var n=Mt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Zg=["emphasis","blur","select"],EP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wo(t,e,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Wf(v),s*=Wf(v));var p=(i===a?-1:1)*Wf((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+Ul(c)*g-$l(c)*m,b=(e+n)/2+$l(c)*g+Ul(c)*m,A=em([1,0],[(d-g)/o,(h-m)/s]),M=[(d-g)/o,(h-m)/s],C=[(-1*d-g)/o,(-1*h-m)/s],I=em(M,C);if(Ah(M,C)<=-1&&(I=Ho),Ah(M,C)>=1&&(I=0),I<0){var P=Math.round(I/Ho*1e6)/1e6;I=Ho*2+P%2*Ho}f.addData(u,y,b,o,s,A,I,c,a)}var OP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BP(t){var e=new Gi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Gi.CMD,l=t.match(OP);if(!l)return e;for(var u=0;uR*R+O*O&&(P=T,S=x),{cx:P,cy:S,x0:-f,y0:-c,x1:P*(i/M-1),y1:S*(i/M-1)}}function GP(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 jP(t,e){var r,n=ss(e.r,0),i=ss(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>Xf&&h%Xf;if(v>yn&&(h=v),!(n>yn))t.moveTo(f,c);else if(h>Xf-yn)t.moveTo(f+n*Ka(l),c+n*ha(l)),t.arc(f,c,n,l,u,!d),i>yn&&(t.moveTo(f+i*Ka(u),c+i*ha(u)),t.arc(f,c,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,b=void 0,A=void 0,M=void 0,C=void 0,I=void 0,P=void 0,S=void 0,T=void 0,x=void 0,_=void 0,E=void 0,R=void 0,O=n*Ka(l),D=n*ha(l),B=i*Ka(u),$=i*ha(u),U=h>yn;if(U){var Q=e.cornerRadius;Q&&(r=GP(Q),p=r[0],g=r[1],m=r[2],y=r[3]);var Z=rm(n-i)/2;if(b=Bn(Z,m),A=Bn(Z,y),M=Bn(Z,p),C=Bn(Z,g),S=I=ss(b,A),T=P=ss(M,C),(I>yn||P>yn)&&(x=n*Ka(u),_=n*ha(u),E=i*Ka(l),R=i*ha(l),hyn){var me=Bn(m,S),be=Bn(y,S),ue=zl(E,R,O,D,n,me,d),ve=zl(x,_,B,$,n,be,d);t.moveTo(f+ue.cx+ue.x0,c+ue.cy+ue.y0),S0&&t.arc(f+ue.cx,c+ue.cy,me,sr(ue.y0,ue.x0),sr(ue.y1,ue.x1),!d),t.arc(f,c,n,sr(ue.cy+ue.y1,ue.cx+ue.x1),sr(ve.cy+ve.y1,ve.cx+ve.x1),!d),be>0&&t.arc(f+ve.cx,c+ve.cy,be,sr(ve.y1,ve.x1),sr(ve.y0,ve.x0),!d))}else t.moveTo(f+O,c+D),t.arc(f,c,n,l,u,!d);if(!(i>yn)||!U)t.lineTo(f+B,c+$);else if(T>yn){var me=Bn(p,T),be=Bn(g,T),ue=zl(B,$,x,_,i,-be,d),ve=zl(O,D,E,R,i,-me,d);t.lineTo(f+ue.cx+ue.x0,c+ue.cy+ue.y0),T0&&t.arc(f+ue.cx,c+ue.cy,be,sr(ue.y0,ue.x0),sr(ue.y1,ue.x1),!d),t.arc(f,c,i,sr(ue.cy+ue.y1,ue.cx+ue.x1),sr(ve.cy+ve.y1,ve.cx+ve.x1),d),me>0&&t.arc(f+ve.cx,c+ve.cy,me,sr(ve.y1,ve.x1),sr(ve.y0,ve.x0),!d))}else t.lineTo(f+B,c+$),t.arc(f,c,i,u,l,d)}t.closePath()}}}var WP=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}(),Zi=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WP},e.prototype.buildPath=function(r,n){jP(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);Zi.prototype.type="sector";var XP=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),kc=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XP},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);kc.prototype.type="ring";function KP(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=KP(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;spa[1]){if(s=!1,a)return s;var f=Math.abs(pa[0]-va[1]),c=Math.abs(va[0]-pa[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 pr(t,e,r,n,i,a){Lv("update",t,e,r,n,i,a)}function Mr(t,e,r,n,i,a){Lv("enter",t,e,r,n,i,a)}function Is(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 am(t){return!t.isGroup}function yM(t){return t.shape!=null}function TS(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){am(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return yM(o)&&(s.shape=Te({},o.shape)),s}var a=n(t);e.traverse(function(o){if(am(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),pr(o,l,r,Mt(o).dataIndex)}}})}function SM(t,e){return Oe(t,function(r){var n=r[0];n=tc(n,e.x),n=rc(n,e.x+e.width);var i=r[1];return i=tc(i,e.y),i=rc(i,e.y+e.height),[n,i]})}function bM(t,e){var r=tc(t.x,e.x),n=rc(t.x+t.width,e.x+e.width),i=tc(t.y,e.y),a=rc(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 IS(t,e,r){var n=Te({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),ft(i,r),new _n(n)):Ov(t.replace("path://",""),n,r,"center")}function CM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Kf(h,v,f,c)/d;return!(g<0||g>1)}function Kf(t,e,r,n){return t*n-r*e}function xM(t){return t<=1e-6&&t>=-1e-6}function kv(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=He(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&&J(gt(l),function(f){$s(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Mt(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ft({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function om(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Nc(t,e){if(t)if($e(t))for(var r=0;r=0&&s.push(l)}),s}}function PS(t,e){return xt(xt({},t,!0),e,!0)}const FM={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:". "}}}},$M={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 nc="ZH",Bv="EN",yo=Bv,Eu={},Nv={},MS=Ct.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yo).toUpperCase();return t.indexOf(nc)>-1?nc:yo}():yo;function RS(t,e){t=t.toUpperCase(),Nv[t]=new Qt(e),Eu[t]=e}function UM(t){if(He(t)){var e=Eu[t.toUpperCase()]||{};return t===nc||t===Bv?pt(e):xt(pt(e),pt(Eu[yo]),!1)}else return xt(pt(t),pt(Eu[yo]),!1)}function zM(t){return Nv[t]}function HM(){return Nv[yo]}RS(Bv,FM);RS(nc,$M);var Fv=1e3,$v=Fv*60,As=$v*60,sn=As*24,hm=sn*365,ls={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}"},Gl="{yyyy}-{MM}-{dd}",vm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gl,hour:Gl+" "+ls.hour,minute:Gl+" "+ls.minute,second:Gl+" "+ls.second,millisecond:ls.none},Qf=["year","month","day","hour","minute","second","millisecond"],DS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Si(t,e){return t+="","0000".substr(0,e-t.length)+t}function So(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 VM(t){return t===So(t)}function GM(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function LS(t,e,r,n){var i=Vi(t),a=i[Uv(r)](),o=i[bo(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[zc(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Ks(r)](),c=(f-1)%12+1,d=i[Hc(r)](),h=i[Vc(r)](),v=i[Gc(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Qt?n:zM(n||MS)||HM(),y=m.getModel("time"),b=y.get("month"),A=y.get("monthAbbr"),M=y.get("dayOfWeek"),C=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Si(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,A[o-1]).replace(/{MM}/g,Si(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Si(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,M[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Si(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Si(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Si(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Si(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Si(v,3)).replace(/{S}/g,v+"")}function jM(t,e,r,n,i){var a=null;if(He(r))a=r;else if(nt(r))a=r(t.value,e,{level:t.level});else{var o=Te({},ls);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 LS(new Date(t.value),a,i,n)}function OS(t,e){var r=Vi(t),n=r[bo(e)]()+1,i=r[zc(e)](),a=r[Ks(e)](),o=r[Hc(e)](),s=r[Vc(e)](),l=r[Gc(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 pm(t,e,r){var n=Et(t)?Vi(t):t;switch(e=e||OS(t,r),e){case"year":return n[Uv(r)]();case"half-year":return n[bo(r)]()>=6?1:0;case"quarter":return Math.floor((n[bo(r)]()+1)/4);case"month":return n[bo(r)]();case"day":return n[zc(r)]();case"half-day":return n[Ks(r)]()/24;case"hour":return n[Ks(r)]();case"minute":return n[Hc(r)]();case"second":return n[Vc(r)]();case"millisecond":return n[Gc(r)]()}}function Uv(t){return t?"getUTCFullYear":"getFullYear"}function bo(t){return t?"getUTCMonth":"getMonth"}function zc(t){return t?"getUTCDate":"getDate"}function Ks(t){return t?"getUTCHours":"getHours"}function Hc(t){return t?"getUTCMinutes":"getMinutes"}function Vc(t){return t?"getUTCSeconds":"getSeconds"}function Gc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function WM(t){return t?"setUTCFullYear":"setFullYear"}function kS(t){return t?"setUTCMonth":"setMonth"}function BS(t){return t?"setUTCDate":"setDate"}function NS(t){return t?"setUTCHours":"setHours"}function FS(t){return t?"setUTCMinutes":"setMinutes"}function $S(t){return t?"setUTCSeconds":"setSeconds"}function US(t){return t?"setUTCMilliseconds":"setMilliseconds"}function XM(t){if(!JE(t))return He(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var zS=u1,gm=["a","b","c","d","e","f","g"],Jf=function(t,e){return"{"+t+(e??"")+"}"};function KM(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 _s=zv;Hr(zv,"vertical");Hr(zv,"horizontal");function ic(t,e,r){r=zS(r||0);var n=e.width,i=e.height,a=_t(t.left,n),o=_t(t.top,i),s=_t(t.right,n),l=_t(t.bottom,i),u=_t(t.width,n),f=_t(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 Ys(t){var e=t.layoutMode||t.constructor.layoutMode;return We(e)?e:e?{type:e}:null}function To(t,e,r){var n=r&&r.ignoreSize;!$e(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],t,i),u(jl[1],t,a);function o(f,c){var d={},h=0,v={},p=0,g=2;if(Pu(f,function(b){v[b]=t[b]}),Pu(f,function(b){s(e,b)&&(d[b]=v[b]=e[b]),l(d,b)&&h++,l(v,b)&&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=xt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ec(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}(Qt);W1(Tt,Qt);Pc(Tt);BM(Tt);NM(Tt,JM);function JM(t){var e=[];return J(Tt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Oe(e,function(r){return Hn(r).main}),t!=="dataset"&&Pt(e,"dataset")<=0&&e.unshift("dataset"),e}var HS="";typeof navigator<"u"&&(HS=navigator.platform||"");var Ya="rgba(0, 0, 0, 0.2)";const qM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ya,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ya,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ya,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ya,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ya,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ya,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:HS.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 VS=it(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dn="original",kr="arrayRows",Pn="objectRows",Zn="keyedColumns",Fi="typedArray",GS="unknown",ci="column",Ro="row",rr={Must:1,Might:2,Not:3},jS=Jt();function eR(t){jS(t).datasetMap=it()}function tR(t,e,r){var n={},i=Hv(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=jS(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),J(t,function(p,g){var m=We(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});J(t,function(p,g){var m=p.name,y=v(p);if(f==null){var b=d.valueWayDim;h(n[m],b,y),h(o,b,y),d.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var b=d.categoryWayDim;h(n[m],b,y),h(o,b,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;ye)return t[n];return t[r-1]}function sR(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:oR(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 lR(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Wl,Vo,ym,Sm="\0_ec_inner",uR=1,Gv=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 Qt(a),this._locale=new Qt(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=xm(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,xm(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"?ym(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&&J(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;eR(this),J(r,function(c,d){c!=null&&(Tt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?pt(c):xt(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=aR(this,c,Cr(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=r2(h,d,v);u2(p,c,Tt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,b;J(p,function(A,M){var C=A.existing,I=A.newOption;if(!I)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var P=c==="series",S=Tt.getClass(c,A.keyInfo.subType,!P);if(!S)return;if(c==="tooltip"){if(b)return;b=!0}if(C&&C.constructor===S)C.name=A.keyInfo.name,C.mergeOption(I,this),C.optionUpdated(I,!1);else{var T=Te({componentIndex:M},A.keyInfo);C=new S(I,this,this,T),Te(C,T),A.brandNew&&(C.__requireNewView=!0),C.init(I,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),m.push(C),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Wl(this)}this._seriesIndices||Wl(this)},e.prototype.getOption=function(){var r=pt(this.option);return J(r,function(n,i){if(Tt.hasClass(i)){for(var a=Cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Hs(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Sm],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 yR(t,e){return t.join(",")===e.join(",")}var vn=J,Zs=We,wm=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ed(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=wm.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 Wc=function(){function t(e){this.data=e.data||(e.sourceFormat===Zn?{}:[]),this.sourceFormat=e.sourceFormat||GS,this.seriesLayoutBy=e.seriesLayoutBy||ci,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=b)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Mm=(e={},e[kr+"_"+ci]={pure:!0,appendData:a},e[kr+"_"+Ro]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pn]={pure:!0,appendData:a},e[Zn]={pure:!0,appendData:function(o){var s=this._data;J(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[dn]={appendData:a},e[Fi]={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 Io(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Es(t){return new BR(t)}var BR=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?WR:XR}function Za(){return[1/0,-1/0]}function KR(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Bm(t,e,r,n,i){var a=ob[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=Oe(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]],b=h[i[1]],A=e[i[1]][0],M=e[i[1]][1],m=0;m=c&&y<=d||isNaN(y))&&(C>=A&&C<=M||isNaN(C))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m=c&&y<=d||isNaN(y))&&(l[u++]=I)}else for(var m=0;me[T][1])&&(P=!1)}P&&(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(jo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vf&&(f=c,d=A)}x>0&&xf-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 Mu(r[a],this._dimensions[a])}nd={arrayRows:e,objectRows:function(r,n,i,a){return Mu(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Mu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),YR=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(Xl(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=Or(s)?Fi:dn,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ke(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=Ke(c.sourceHeader,d.sourceHeader),p=Ke(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[Mh(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 b=m.get("source",!0);i=[Mh(b,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&&Nm(a)}var o,s=[],l=[];return J(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Nm(c),s.push(f),l.push(u._getVersionSign())}),n?o=GR(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[ER(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=QR(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=Io(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Tv(e),m=g&&e.name||"",y=i.getName(r),b=n?m:y;return Qs("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Qs("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Pi(b),value:f,valueType:c,dataIndex:r})].concat(d||[])})}function QR(t,e,r,n,i){var a=e.getData(),o=zi(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?J(n,function(c){f(Io(a,r,c),c)}):J(t,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Qs("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 bi=Jt();function Kl(t,e){return t.getName(e)||t.getId(e)}var JR="__universalTransitionEnabled",Xr=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=Es({count:eD,reset:tD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=bi(this).sourceManager=new YR(this);a.prepareSource();var o=this.getInitialData(r,i);$m(o,this),this.dataTask.context.data=o,bi(this).dataBeforeProcessed=o,Fm(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ys(this),a=i?jc(r):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),xt(r,n.getTheme().get(this.subType)),xt(r,this.getDefaultOption()),mh(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&To(r,a,i)},e.prototype.mergeOption=function(r,n){r=xt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ys(this);i&&To(this.option,r,i);var a=bi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);$m(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,bi(this).dataBeforeProcessed=o,Fm(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Or(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=Vv.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[Kl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[JR])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"){We(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);An(Xr,kR);An(Xr,Vv);W1(Xr,Tt);function Fm(t){var e=t.name;Tv(t)||(t.name=qR(t)||e)}function qR(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return J(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function eD(t){return t.model.getRawData().count()}function tD(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),rD}function rD(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function $m(t,e){J(C_(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Hr(nD,e))})}function nD(t,e){var r=Dh(t);return r&&r.setOutputEnd((e||this).count()),e}function Dh(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 di=function(){function t(){this.group=new Xt,this.uid=Uc("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}();Iv(di);Pc(di);function Yv(){var t=Jt();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 lb=Jt(),iD=Yv(),Rr=function(){function t(){this.group=new Xt,this.uid=Uc("viewChart"),this.renderTask=Es({plan:aD,reset:oD}),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&&zm(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&zm(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){Nc(this.group,e)},t.markUpdateMethod=function(e,r){lb(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Um(t,e,r){t&&Th(t)&&(e==="emphasis"?Zu:Qu)(t,r)}function zm(t,e,r){var n=Co(t,e),i=e&&e.highlightKey!=null?PP(e.highlightKey):null;n!=null?J(Cr(n),function(a){Um(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Um(a,r,i)})}Iv(Rr);Pc(Rr);function aD(t){return iD(t.model)}function oD(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&lb(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),sD[l]}var sD={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 ub(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 Hm=Jt(),Vm={itemStyle:Vs(ES,!0),lineStyle:Vs(_S,!0)},lD={lineStyle:"stroke",itemStyle:"fill"};function cb(t,e){var r=t.visualStyleMapper||Vm[e];return r||(console.warn("Unknown style type '"+e+"'."),Vm.itemStyle)}function fb(t,e){var r=t.visualDrawType||lD[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var uD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=cb(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=Te({},o);g[l]=f(p),h.setItemVisual(v,"style",g)}}}},Wo=new Qt,cD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=cb(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Wo.option=l[n];var u=i(Wo),f=o.ensureUniqueItemVisual(s,"style");Te(f,u),Wo.option.decal&&(o.setItemVisual(s,"decal",Wo.option.decal),Wo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},fD={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)),Hm(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Hm(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)}})}})}},Yl=Math.PI;function dD(t,e){e=e||{},ft(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 Xt,n=new Zt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Wr({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 Zt({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 Bc({shape:{startAngle:-Yl/2,endAngle:-Yl/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:Yl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Yl*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 db=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;J(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Xn(!(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;J(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)||Es({plan:mD,reset:yD,count:bD}));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||Es({reset:hD});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="";Xn(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,J(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Es({reset:vD,onDirty:gD})));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:CD(e)}),e.uid=Uc("stageHandler"),r&&(e.visualType=r),e},t}();function hD(t){t.overallReset(t.ecModel,t.api,t.payload)}function vD(t){return t.overallProgress&&pD}function pD(){this.agent.dirty(),this.getDownstream().dirty()}function gD(){this.agent&&this.agent.dirty()}function mD(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function yD(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Cr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Oe(e,function(r,n){return hb(n)}):SD}var SD=hb(0);function hb(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}(),Lh=["symbol","symbolSize","symbolRotate","symbolOffset"],Xm=Lh.concat(["symbolKeepAspect"]),TD={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&&Ea(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Km(t,e,r){for(var n=e.type==="radial"?HD(t,e,r):zD(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 Zv(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&GD(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=Oe(r,function(a){return a/i}),n/=i)}return[r,n]}var jD=new Gi(!0);function oc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Zm(t){return typeof t=="string"&&t!=="none"}function sc(t){var e=t.fill;return e!=null&&e!=="none"}function Qm(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 Jm(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 qm(t,e,r){var n=Av(e.image,e.__image,r);if(Mc(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)*Su),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function WD(t,e,r,n){var i,a=oc(r),o=sc(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||jD,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,b=void 0,A=void 0,M=void 0,C=void 0;(v||p)&&(C=e.getBoundingRect()),v&&(y=c?Km(t,d,C):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(b=c?Km(t,h,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),g&&(A=c||!e.__canvasFillPattern?qm(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=A),m&&(M=c||!e.__canvasStrokePattern?qm(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),v?t.fillStyle=y:g&&(A?t.fillStyle=A:o=!1),p?t.strokeStyle=b:m&&(M?t.strokeStyle=M:a=!1)}var I=e.getGlobalScale();f.setScale(I[0],I[1],e.segmentIgnoreThreshold);var P,S;t.setLineDash&&r.lineDash&&(i=Zv(e),P=i[0],S=i[1]);var T=!0;(u||c&io)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),T=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),T&&f.rebuildPath(t,l?s:1),P&&(t.setLineDash(P),t.lineDashOffset=S),n||(r.strokeFirst?(a&&Jm(t,r),o&&Qm(t,r)):(o&&Qm(t,r),a&&Jm(t,r))),P&&t.setLineDash([])}function XD(t,e,r){var n=e.__image=Av(r.image,e.__image,e,e.onload);if(!(!n||!Mc(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 KD(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Ui,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Zv(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(oc(r)&&t.strokeText(i,r.x,r.y),sc(r)&&t.fillText(i,r.x,r.y)):(sc(r)&&t.fillText(i,r.x,r.y),oc(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var ey=["shadowBlur","shadowOffsetX","shadowOffsetY"],ty=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Sb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Er(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Pa.opacity:o}(n||e.blend!==r.blend)&&(a||(Er(t,i),a=!0),t.globalCompositeOperation=e.blend||Pa.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[lr]){if(this._disposed){this.id;return}var a,o,s;if(We(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[lr]=!0,!this._model||n){var l=new vR(this._api),u=this._theme,f=this._model=new Gv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Fh);var c={seriesTransition:s,optionChanged:!0};if(i)this[Tr]={silent:a,updateParams:c},this[lr]=!1,this.getZr().wakeUp();else{try{Ja(this),Ci.update.call(this,null,c)}catch(d){throw this[Tr]=null,this[lr]=!1,d}this._ssr||this._zr.flush(),this[Tr]=null,this[lr]=!1,Xo.call(this,a),Ko.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||Ct.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(Ct.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return J(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;J(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 J(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(gy[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();J(Ms,function(b,A){if(b.group===i){var M=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(pt(r)),C=b.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),f=o(C.right,f),c=o(C.bottom,c),d.push({dom:M,left:C.left,top:C.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,p=c-u,g=ll.createCanvas(),m=xg(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return J(d,function(b){var A=b.left-l,M=b.top-u;y+=''+b.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 Zt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),J(d,function(b){var A=new _n({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});m.add(A)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return ld(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return ld(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Df(i,r);return J(o,function(s,l){l.indexOf("Models")>=0&&J(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=Df(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?AD(s,l,n):_D(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;J(bL,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ql(s,function(v){var p=Mt(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=Te({},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)}),J(Ps,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),J(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),PD(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&&G1(this.getDom(),qv,"");var n=this,i=n._api,a=n._model;J(n._componentsViews,function(o){o.dispose(a,i)}),J(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 Ms[n.id]},e.prototype.resize=function(r){if(!this[lr]){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[Tr]&&(a==null&&(a=this[Tr].silent),i=!0,this[Tr]=null),this[lr]=!0;try{i&&Ja(this),Ci.update.call(this,{type:"resize",animation:Te({duration:0},r&&r.animation)})}catch(o){throw this[lr]=!1,o}this[lr]=!1,Xo.call(this,a),Ko.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(We(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!$h[r]){var i=$h[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=Te({},r);return n.type=Ps[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(We(n)||(n={silent:!!n}),!!lc[r.type]&&this._model){if(this[lr]){this._pendingActions.push(r);return}var i=n.silent;cd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),Xo.call(this,i),Ko.call(this,i)}},e.prototype.updateLabelLayout=function(){Cn.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(){Ja=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),sd(c,!0),sd(c,!1),d.plan()},sd=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,b=0;bd.get("hoverLayerThreshold")&&!Ct.node&&!Ct.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(),b=0;b0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Is(m))return;if(m instanceof yt&&MP(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var b=m.getTextContent(),A=m.getTextGuideLine();b&&(b.stateTransition=g),A&&(A.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){Zu(v,p),Zr(c)},h.prototype.leaveEmphasis=function(v,p){Qu(v,p),Zr(c)},h.prototype.enterBlur=function(v){bP(v),Zr(c)},h.prototype.leaveBlur=function(v){oS(v),Zr(c)},h.prototype.enterSelect=function(v){sS(v),Zr(c)},h.prototype.leaveSelect=function(v){lS(v),Zr(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}(KS))(c)},Lb=function(c){function d(h,v){for(var p=0;p=0)){my.push(r);var a=db.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function $b(t,e){$h[t]=e}function EL(t,e,r){var n=aL("registerMap");n&&n(t,e,r)}var PL=VR;Fa(Qv,uD);Fa(Kc,cD);Fa(Kc,fD);Fa(Qv,TD);Fa(Kc,ID);Fa(_b,nL);Nb(ZS);Fb(lL,AR);$b("default",dD);Do({type:Ma,event:Ma,update:Ma},Gr);Do({type:Au,event:Au,update:Au},Gr);Do({type:xs,event:xs,update:xs},Gr);Do({type:_u,event:_u,update:_u},Gr);Do({type:ws,event:ws,update:ws},Gr);Bb("light",xD);Bb("dark",gb);function Yo(t){return t==null?0:t.length||1}function yy(t){return t}var ML=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||yy,this._newKeyGetter=i||yy,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 Zo=We,xi=Oe,NL=typeof Int32Array>"u"?Array:Int32Array,FL="e\0\0",Sy=-1,$L=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],UL=["_approximateExtent"],by,tu,Qo,Jo,hd,ru,vd,jb=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;zb(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===dn;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():Zo(a)&&(a=Te({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Zo(r)?Te(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Zo(e)?Te(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?Te(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;cP(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){J(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:xi(this.dimensions,this._getDimInfo,this),this.hostModel)),hd(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(pv(arguments)))})},t.internalField=function(){by=function(e){var r=e._invertedIndicesMap;J(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new NL(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[r]=l}}}(),t}();function Wb(t,e){Wv(t)||(t=QS(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=it(),a=[],o=HL(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Gb(o),l=n===t.dimensionsDefine,u=l?Vb(t):Hb(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=it(f),d=new ab(o),h=0;h0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function HL(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return J(e,function(a){var o;We(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function VL(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 GL=function(){function t(e){this.coordSysDims=[],this.axisMap=it(),this.categoryAxisMap=it(),this.coordSysName=e}return t}();function jL(t){var e=t.get("coordinateSystem"),r=new GL(e),n=WL[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var WL={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",In).models[0],a=t.getReferringComponents("yAxis",In).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),qa(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),qa(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",In).models[0];e.coordSysDims=["single"],r.set("single",i),qa(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",In).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),qa(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),qa(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();J(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),qa(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function qa(t){return t.get("type")==="category"}function XL(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;KL(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,d;if(J(a,function(y,b){He(y)&&(a[b]=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;J(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 KL(t){return!zb(t.schema)}function Ao(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function YL(t,e){return Ao(t,e)?t.getCalculationInfo("stackResultDimension"):e}function ZL(t,e){var r=t.get("coordinateSystem"),n=jv.get(r),i;return e&&e.coordSysDims&&(i=Oe(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=LL(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function QL(t,e,r){var n,i;return r&&J(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 Yc(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===dn;var o=jL(e),s=ZL(e,o),l=r.useEncodeDefaulter,u=nt(l)?l:l?Hr(tR,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Wb(i,f),d=QL(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=XL(e,{schema:c,store:h}),p=new jb(c,e);p.setCalculationInfo(v);var g=d!=null&&JL(i)?function(m,y,b,A){return A===d?b:this.defaultDimValueGetter(m,y,b,A)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function JL(t){if(t.sourceFormat===dn){var e=qL(t.data||[]);return!$e(fl(e))}}function qL(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}();Pc(Qn);var eO=0,Uh=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++eO}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&Oe(n,tO);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(!He(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 tO(t){return We(t)&&t.value!=null?t.value:t+""}function zh(t){return t.type==="interval"||t.type==="log"}function rO(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=$1(a/e);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=Xb(o),l=i.niceTickExtent=[Vt(Math.ceil(t[0]/o)*o,s),Vt(Math.floor(t[1]/o)*o,s)];return nO(l,t),i}function pd(t){var e=Math.pow(10,wv(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Vt(r*e)}function Xb(t){return si(t)+2}function Cy(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function nO(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Cy(t,0,e),Cy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Zc(t,e){return t>=e[0]&&t<=e[1]}function Qc(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Jc(t,e){return t*(e[1]-e[0])+e[0]}var rp=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 Uh({})),$e(i)&&(i=new Uh({categories:Oe(i,function(a){return We(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:He(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),Zc(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Qc(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(Jc(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}(Qn);Qn.registerClass(rp);var Sa=Vt,Xi=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 Zc(r,this._extent)},e.prototype.normalize=function(r){return Qc(r,this._extent)},e.prototype.scale=function(r){return Jc(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=Xb(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:Sa(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 Zb(t){var e=oO(t),r=[];return J(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=_t(n.get("barWidth"),s),p=_t(n.get("barMaxWidth"),s),g=_t(n.get("barMinWidth")||(Jb(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:ip(a),stackId:np(n)})}),sO(r)}function sO(t){var e={};J(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 J(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=_t(s,o),f=_t(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),J(a,function(m){var y=m.maxWidth,b=m.minWidth;if(m.width){var A=m.width;y&&(A=Math.min(A,y)),b&&(A=Math.max(A,b)),m.width=A,c-=A+f*A,d--}else{var A=h;y&&yA&&(A=b),A!==h&&(m.width=A,c-=A+f*A,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,p;J(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;J(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function lO(t,e,r){if(t&&e){var n=t[ip(e)];return n!=null&&r!=null?n[np(r)]:n}}function uO(t,e){var r=Yb(t,e),n=Zb(r);J(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=np(i),u=n[ip(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function cO(t){return{seriesType:t,plan:Yv(),reset:function(e){if(Qb(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=Ao(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=fO(i,a),v=Jb(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(b,A){for(var M=b.count,C=v&&li(M*3),I=v&&l&&li(M*3),P=v&&li(M),S=n.master.getRect(),T=d?S.width:S.height,x,_=A.getStore(),E=0;(x=b.next())!=null;){var R=_.get(c?g:o,x),O=_.get(s,x),D=h,B=void 0;c&&(B=+R-_.get(o,x));var $=void 0,U=void 0,Q=void 0,Z=void 0;if(d){var V=n.dataToPoint([R,O]);if(c){var te=n.dataToPoint([B,O]);D=te[0]}$=D,U=V[1]+y,Q=V[0]-D,Z=m,Math.abs(Q)0?r:1:r))}var dO=function(t,e,r,n){for(;r>>1;t[i][1]i&&(this._approxInterval=i);var s=nu.length,l=Math.min(dO(nu,this._approxInterval,0,s),s-1);this._interval=nu[l][1],this._minLevelUnit=nu[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Et(r)?r:+Vi(r)},e.prototype.contain=function(r){return Zc(this.parse(r),this._extent)},e.prototype.normalize=function(r){return Qc(this.parse(r),this._extent)},e.prototype.scale=function(r){return Jc(r,this._extent)},e.type="time",e}(Xi),nu=[["second",Fv],["minute",$v],["hour",As],["quarter-day",As*6],["half-day",As*12],["day",sn*1.2],["half-week",sn*3.5],["week",sn*7],["month",sn*31],["quarter",sn*95],["half-year",hm/2],["year",hm]];function hO(t,e,r,n){var i=Vi(e),a=Vi(r),o=function(v){return pm(i,v,n)===pm(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 vO(t,e){return t/=sn,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function pO(t){var e=30*sn;return t/=e,t>6?6:t>3?3:t>2?2:1}function gO(t){return t/=As,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function xy(t,e){return t/=e?$v:Fv,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function mO(t){return $1(t)}function yO(t,e,r){var n=new Date(t);switch(So(e)){case"year":case"month":n[kS(r)](0);case"day":n[BS(r)](1);case"hour":n[NS(r)](0);case"minute":n[FS(r)](0);case"second":n[$S(r)](0),n[US(r)](0)}return n.getTime()}function SO(t,e,r,n){var i=1e4,a=DS,o=0;function s(T,x,_,E,R,O,D){for(var B=new Date(x),$=x,U=B[E]();$<_&&$<=n[1];)D.push({value:$}),U+=T,B[R](U),$=B.getTime();D.push({value:$,notAdd:!0})}function l(T,x,_){var E=[],R=!x.length;if(!hO(So(T),n[0],n[1],r)){R&&(x=[{value:yO(new Date(n[0]),T,r)},{value:n[1]}]);for(var O=0;O1&&O===0&&_.unshift({value:_[0].value-$})}}for(var O=0;O=n[0]&&y<=n[1]&&c++)}var b=(n[1]-n[0])/e;if(c>b*1.5&&d>b/1.5||(u.push(g),c>b||t===a[h]))break}f=[]}}}for(var A=fr(Oe(u,function(T){return fr(T,function(x){return x.value>=n[0]&&x.value<=n[1]&&!x.notAdd})}),function(T){return T.length>0}),M=[],C=A.length-1,h=0;h0;)a*=10;var s=[Vt(xO(n[0]/a)*a),Vt(CO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Rs.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=pn(r)/pn(this.base),Zc(r,this._extent)},e.prototype.normalize=function(r){return r=pn(r)/pn(this.base),Qc(r,this._extent)},e.prototype.scale=function(r){return r=Jc(r,this._extent),iu(this.base,r)},e.type="log",e}(Qn),eC=ap.prototype;eC.getMinorTicks=Rs.getMinorTicks;eC.getLabel=Rs.getLabel;function au(t,e){return bO(t,si(e))}Qn.registerClass(ap);var wO=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[IO[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=TO[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),TO={min:"_determinedMin",max:"_determinedMax"},IO={min:"_dataMin",max:"_dataMax"};function AO(t,e,r){var n=t.rawExtentInfo;return n||(n=new wO(t,e,r),t.rawExtentInfo=n,n)}function ou(t,e){return e==null?null:$u(e)?NaN:t.parse(e)}function tC(t,e){var r=t.type,n=AO(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=Yb("bar",o),l=!1;if(J(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=Zb(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=lO(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;J(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;J(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 Ty(t,e){var r=e,n=tC(t,r),i=n.extent,a=r.get("splitNumber");t instanceof ap&&(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 EO(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new rp({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new qb({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Qn.getClass(e)||Xi)}}function PO(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Lo(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):He(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(MO(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function MO(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function RO(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof rp?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=Lo(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(Iy.push(t),nt(t)&&(t={install:t}),t.install(OO))}var el=Jt();function iC(t,e){var r=Oe(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=Lo(t);return{labels:iC(t,e).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:t.scale.getLabel(i),tickValue:n}})}}return t.type==="category"?NO(t):$O(t)}function BO(t,e){var r=t.getTickModel().get("customValues");return r?{ticks:iC(t,r)}:t.type==="category"?FO(t,e):{ticks:Oe(t.scale.getTicks(),function(n){return n.value})}}function NO(t){var e=t.getLabelModel(),r=aC(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function aC(t,e){var r=oC(t,"labels"),n=op(e),i=sC(r,n);if(i)return i;var a,o;return nt(n)?a=cC(t,n):(o=n==="auto"?UO(t):n,a=uC(t,o)),lC(r,n,{labels:a,labelCategoryInterval:o})}function FO(t,e){var r=oC(t,"ticks"),n=op(e),i=sC(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),nt(n))a=cC(t,n,!0);else if(n==="auto"){var s=aC(t,t.getLabelModel());o=s.labelCategoryInterval,a=Oe(s.labels,function(l){return l.tickValue})}else o=n,a=uC(t,o,!0);return lC(r,n,{ticks:a,tickCategoryInterval:o})}function $O(t){var e=t.scale.getTicks(),r=Lo(t);return{labels:Oe(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function oC(t,e){return el(t)[e]||(el(t)[e]=[])}function sC(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=O1(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 b=Math.max(0,Math.floor(Math.min(m,y))),A=el(t.model),M=t.getExtent(),C=A.lastAutoInterval,I=A.lastTickCount;return C!=null&&I!=null&&Math.abs(C-b)<=1&&Math.abs(I-o)<=1&&C>b&&A.axisExtent0===M[0]&&A.axisExtent1===M[1]?b=C:(A.lastTickCount=o,A.lastAutoInterval=b,A.axisExtent0=M[0],A.axisExtent1=M[1]),b}function HO(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 uC(t,e,r){var n=Lo(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=rC(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 cC(t,e,r){var n=t.scale,i=Lo(t),a=[];return J(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 Ay=[0,1],fC=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(),_y(n,i.count())),gh(e,Ay,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),_y(n,i.count()));var a=gh(e,n,Ay,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=BO(this,r),i=n.ticks,a=Oe(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return VO(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=Oe(n,function(a){return Oe(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 _y(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function VO(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;J(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,Di.fromArray(t[0]),Nt.fromArray(t[1]),nr.fromArray(t[2]),Ze.sub(Li,Di,Nt),Ze.sub(zn,nr,Nt);var r=Li.len(),n=zn.len();if(!(r<.001||n<.001)){Li.scale(1/r),zn.scale(1/n);var i=Li.dot(zn),a=Math.cos(e);if(a1&&Ze.copy(br,nr),br.toArray(t[1])}}}}function jO(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Di.fromArray(t[0]),Nt.fromArray(t[1]),nr.fromArray(t[2]),Ze.sub(Li,Nt,Di),Ze.sub(zn,nr,Nt);var n=Li.len(),i=zn.len();if(!(n<.001||i<.001)){Li.scale(1/n),zn.scale(1/i);var a=Li.dot(e),o=Math.cos(r);if(a=l)Ze.copy(br,nr);else{br.scaleAndAdd(zn,s/Math.tan(Math.PI/2-f));var c=nr.x!==Nt.x?(br.x-Nt.x)/(nr.x-Nt.x):(br.y-Nt.y)/(nr.y-Nt.y);if(isNaN(c))return;c<0?Ze.copy(br,Nt):c>1&&Ze.copy(br,nr)}br.toArray(t[1])}}}}function gd(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=qd(n[0],n[1]),a=qd(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=df([],n[1],n[0],o/i),l=df([],n[1],n[2],o/a),u=df([],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&&M(-f/o,0,o);var p=t[0],g=t[o-1],m,y;b(),m<0&&C(-m,.8),y<0&&C(y,.8),b(),A(m,y,1),A(y,m,-1),b(),m<0&&I(-m),y<0&&I(y);function b(){m=p.rect[e]-n,y=i-g.rect[e]-g.rect[r]}function A(P,S,T){if(P<0){var x=Math.min(S,-P);if(x>0){M(x*T,0,o);var _=x+P;_<0&&C(-_*T,1)}else C(-P*T,1)}}function M(P,S,T){P!==0&&(u=!0);for(var x=S;x0)for(var _=0;_0;_--){var D=T[_-1]*O;M(-D,_,o)}}}function I(P){var S=P<0?-1:1;P=Math.abs(P);for(var T=Math.ceil(P/(o-1)),x=0;x0?M(T,0,x+1):M(-T,o-x-1,o),P-=T,P<=0)return}return u}function QO(t,e,r,n){return ZO(t,"y","height",e,r,n)}function JO(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}(Xr);function sp(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Io(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 lp=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=Wi(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=ek,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(){Zu(this.childAt(0))},e.prototype.downplay=function(){Qu(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):pr(d,h,s,n),js(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,Mr(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),b=y.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),v=b.get("disabled"),p=Mo(y),g=b.getShallow("scale"),m=y.getShallow("cursor")}var A=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var M=yb(r.getItemVisual(n,"symbolOffset"),i);M&&(s.x=M[0],s.y=M[1]),m&&s.attr("cursor",m);var C=r.getItemVisual(n,"style"),I=C.fill;if(s instanceof _n){var P=s.style;s.useStyle(Te({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},C))}else s.__isEmptyBrush?s.useStyle(Te({},C)):s.useStyle(C),s.style.decal=null,s.setColor(I,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var S=r.getItemVisual(n,"liftZ"),T=this._z2;S!=null?T==null&&(this._z2=s.z2,s.z2+=S):T!=null&&(s.z2=T,this._z2=null);var x=o&&o.useNameLabel;Po(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:_,inheritColor:I,defaultOpacity:C.opacity});function _(O){return x?r.getName(O):sp(r,O)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var E=s.ensureState("emphasis");E.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;E.scaleX=this._sizeX*R,E.scaleY=this._sizeY*R,this.setSymbolScale(1),xo(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=Mt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&qu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();qu(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return mb(r.getItemVisual(n,"symbolSize"))},e}(Xt);function ek(t,e){this.parent.drift(t,e)}function md(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 Ey(t){return t!=null&&!We(t)&&(t={isIgnore:t}),t||{}}function Py(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:Mo(e),cursorStyle:e.get("cursor")}}var vC=function(){function t(e){this.group=new Xt,this._SymbolCtor=e||lp}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Ey(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Py(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(md(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(!md(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):pr(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=Py(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Ey(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 gC(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 rk(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 nk(t,e,r,n,i,a,o,s){for(var l=rk(t,e),u=[],f=[],c=[],d=[],h=[],v=[],p=[],g=pC(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b=i||p<0)break;if(Ra(m,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,d=y;else{var b=m-u,A=y-f;if(b*b+A*A<.5){p+=a;continue}if(o>0){for(var M=p+a,C=e[M*2],I=e[M*2+1];C===m&&I===y&&g=n||Ra(C,I))h=m,v=y;else{T=C-u,x=I-f;var R=m-u,O=C-m,D=y-f,B=I-y,$=void 0,U=void 0;if(s==="x"){$=Math.abs(R),U=Math.abs(O);var Q=T>0?1:-1;h=m-Q*$*o,v=y,_=m+Q*U*o,E=y}else if(s==="y"){$=Math.abs(D),U=Math.abs(B);var Z=x>0?1:-1;h=m,v=y-Z*$*o,_=m,E=y+Z*U*o}else $=Math.sqrt(R*R+D*D),U=Math.sqrt(O*O+B*B),S=U/(U+$),h=m-T*o*(1-S),v=y-x*o*(1-S),_=m+T*o*S,E=y+x*o*S,_=wi(_,Ti(C,m)),E=wi(E,Ti(I,y)),_=Ti(_,wi(C,m)),E=Ti(E,wi(I,y)),T=_-m,x=E-y,h=m-T*$/U,v=y-x*$/U,h=wi(h,Ti(u,m)),v=wi(v,Ti(f,y)),h=Ti(h,wi(u,m)),v=Ti(v,wi(f,y)),T=m-h,x=y-v,_=m+T*U/$,E=y+x*U/$}t.bezierCurveTo(c,d,h,v,m,y),c=_,d=E}else t.lineTo(m,y)}u=m,f=y,p+=a}return g}var mC=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ik=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 mC},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Ra(i[o*2-2],i[o*2-1]);o--);for(;a=0){var A=u?(v-l)*b+l:(h-s)*b+s;return u?[r,A]:[A,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 M=u?zu(s,h,p,m,r,f):zu(l,v,g,y,r,f);if(M>0)for(var C=0;C=0){var A=u?ar(l,v,g,y,I):ar(s,h,p,m,I);return u?[r,A]:[A,r]}}s=m,l=y;break}}},e}(yt),ak=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mC),ok=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 ak},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&&Ra(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 ck(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=Oe(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var d=uk(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";J(d,function(b){b.offset=(b.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 SS(0,0,0,0,d,!0);return y[i]=p,y[i+"2"]=g,y}}}function fk(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&dk(a,e))){var o=e.mapDimension(a.dim),s={};return J(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function dk(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 hk(t,e){return isNaN(t)||isNaN(e)}function vk(t){for(var e=t.length/2;e>0&&hk(t[e*2-2],t[e*2-1]);e--);return e-1}function Oy(t,e){return[t[e*2],t[e*2+1]]}function pk(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 bC(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}Mt(p).seriesIndex=r.seriesIndex,xo(p,B,$,U);var Z=Ly(r.get("smooth")),V=r.get("smoothMonotone");if(p.setShape({smooth:Z,smoothMonotone:V,connectNulls:P}),g){var te=l.getCalculationInfo("stackedOnSeries"),ie=0;g.useStyle(ft(f.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),te&&(ie=Ly(te.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:ie,smoothMonotone:V,connectNulls:P}),wo(g,r,"areaStyle"),Mt(g).seriesIndex=r.seriesIndex,xo(g,B,$,U)}var se=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=se)}),this._polyline.onHoverStateChange=se,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=c,this._step=x,this._valueOrigin=A,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Mt(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=Co(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 lp(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 Rr.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Co(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 Rr.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Wg(this._polyline,r),n&&Wg(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new ik({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 ok({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,b=void 0;if(i)if(o){var A=i,M=n.pointToCoord(g);a?(m=A.startAngle,y=A.endAngle,b=-M[1]/180*Math.PI):(m=A.r0,y=A.r,b=M[0])}else{var C=i;a?(m=C.x,y=C.x+C.width,b=h.x):(m=C.y+C.height,y=C.y,b=h.y)}var I=y===m?0:(b-m)/(y-m);l&&(I=1-I);var P=nt(c)?c(v):f*I+d,S=p.getSymbolPath(),T=S.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:P}),S.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(bC(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 Wr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=vk(l);f>=0&&(Po(s,Mo(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,d,h){return h!=null?hC(o,h):sp(o,c)},enableTextSetter:!0},gk(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,b=n.shape,A=y?m?b.x:b.y+b.height:m?b.x+b.width:b.y,M=(m?p:0)*(y?-1:1),C=(m?0:-p)*(y?-1:1),I=m?"x":"y",P=pk(c,A,I),S=P.range,T=S[1]-S[0],x=void 0;if(T>=1){if(T>1&&!h){var _=Oy(c,S[0]);u.attr({x:_[0]+M,y:_[1]+C}),o&&(x=d.getRawValue(S[0]))}else{var _=f.getPointOn(A,I);_&&u.attr({x:_[0]+M,y:_[1]+C});var E=d.getRawValue(S[0]),R=d.getRawValue(S[1]);o&&(x=h2(i,v,E,R,P.t))}a.lastFrameIndex=S[0]}else{var O=r===1||a.lastFrameIndex>0?S[0]:0,_=Oy(c,O);o&&(x=d.getRawValue(O)),u.attr({x:_[0]+M,y:_[1]+C})}if(o){var D=$c(u);typeof D.setLabelText=="function"&&D.setLabelText(x)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,d=nk(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=Ii(d.current,i,o,l),v=Ii(d.stackedOnCurrent,i,o,l),p=Ii(d.next,i,o,l),g=Ii(d.stackedOnNext,i,o,l)),Dy(h,p)>3e3||f&&Dy(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(),pr(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),pr(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],b=d.status,A=0;Ae&&(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]}},Sk=function(t){return Math.round(t.length/2)};function CC(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;He(a)?v=yk[a]:nt(a)&&(v=a),v&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,v,Sk))}}}}}function bk(t){t.registerChartView(mk),t.registerSeriesModel(qO),t.registerLayout(cp("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,CC("line"))}var Vh=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 Yc(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)J(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,b=void 0,A=1,M=0;Mg){b=(C+y)/2;break}M===1&&(A=I-v[0].tickValue)}b==null&&(y?y&&(b=v[v.length-1].coord):b=v[0].coord),s[h]=d.toGlobalCoord(b)}});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}(Xr);Xr.registerClass(Vh);var Ck=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 Yc(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=PS(Vh.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}(Vh),xk=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}(),ky=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 xk},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){ec(a,r,Mt(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}(Rr),By={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=Sd(e.x,t.x),s=bd(e.x+e.width,i),l=Sd(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=Sd(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}},Ny={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Zt({shape:Te({},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?ky:Zi,f=new u({shape:n,z2:1});f.name="item";var c=xC(i);if(f.calculateTextPosition=wk(c,{isRoundCap:u===ky}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?n.r0:n.startAngle,v[h]=n[h],(s?pr:Mr)(f,{shape:v},a)}return f}};function _k(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 Fy(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?pr:Mr)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?pr:Mr)(r,{shape:u},f,i)}function $y(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 Mk(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function xC(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 zy(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=cs(n.getModel("itemStyle"),f,!0);Te(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=Mo(n);Po(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:sp(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,Tk(t,g==="outside"?h:g,xC(o),n.get(["label","rotate"]))}EM(p,v,a.getRawValue(r),function(y){return hC(e,y)});var m=n.getModel(["emphasis"]);xo(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),wo(t,n),Mk(i)&&(t.style.fill="none",t.style.stroke="none",J(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Rk(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 Dk=function(){function t(){}return t}(),Hy=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 Dk},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 Lk(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 wC(t,e,r){if(up(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 Ok(t,e,r){var n=t.type==="polar"?Zi:Zt;return new n({shape:wC(e,r,t),silent:!0,z2:0})}function kk(t){t.registerChartView(Ak),t.registerSeriesModel(Ck),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Hr(uO,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cO("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,CC("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 jy=Math.PI*2,cu=Math.PI/180;function TC(t,e){return ic(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function IC(t,e){var r=TC(t,e),n=t.get("center"),i=t.get("radius");$e(i)||(i=[0,i]);var a=_t(r.width,e.getWidth()),o=_t(r.height,e.getHeight()),s=Math.min(a,o),l=_t(i[0],s/2),u=_t(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=_t(n[0],a)+r.x,c=_t(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function Bk(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=TC(n,r),s=IC(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,d=-n.get("startAngle")*cu,h=n.get("endAngle"),v=n.get("padAngle")*cu;h=h==="auto"?d-jy:-h*cu;var p=n.get("minAngle")*cu,g=p+v,m=0;i.each(a,function(B){!isNaN(B)&&m++});var y=i.getSum(a),b=Math.PI/(y||m)*2,A=n.get("clockwise"),M=n.get("roseType"),C=n.get("stillShowZeroSum"),I=i.getDataExtent(a);I[0]=0;var P=A?1:-1,S=[d,h],T=P*v/2;Z1(S,!A),d=S[0],h=S[1];var x=AC(n);x.startAngle=d,x.endAngle=h,x.clockwise=A;var _=Math.abs(h-d),E=_,R=0,O=d;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(B,$){var U;if(isNaN(B)){i.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:l,cy:u,r0:c,r:M?NaN:f});return}M!=="area"?U=y===0&&C?b:B*b:U=_/m,UU?(Z=O+P*U/2,V=Z):(Z=O+T,V=Q-T),i.setItemLayout($,{angle:U,startAngle:Z,endAngle:V,clockwise:A,cx:l,cy:u,r0:c,r:M?gh(B,I,[c,f]):f}),O=Q}),Er?m:g,M=Math.abs(b.label.y-r);if(M>=A.maxY){var C=b.label.x-e-b.len2*i,I=n+b.len,P=Math.abs(C)t.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 Cd(t){return t.position==="center"}function $k(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*Nk,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var I in C.states)if(C.states[I].ignore===!1)return!0;return!1}e.each(function(C){var I=e.getItemGraphicEl(C),P=I.shape,S=I.getTextContent(),T=I.getTextGuideLine(),x=e.getItemModel(C),_=x.getModel("label"),E=_.get("position")||x.get(["emphasis","label","position"]),R=_.get("distanceToLabelLine"),O=_.get("alignTo"),D=_t(_.get("edgeDistance"),u),B=_.get("bleedMargin"),$=x.getModel("labelLine"),U=$.get("length");U=_t(U,u);var Q=$.get("length2");if(Q=_t(Q,u),Math.abs(P.endAngle-P.startAngle)0?"right":"left":V>0?"left":"right"}var fe=Math.PI,Ae=0,Re=_.get("rotate");if(Et(Re))Ae=Re*(fe/180);else if(E==="center")Ae=0;else if(Re==="radial"||Re===!0){var st=V<0?-Z+fe:-Z;Ae=st}else if(Re==="tangential"&&E!=="outside"&&E!=="outer"){var vt=Math.atan2(V,te);vt<0&&(vt=fe*2+vt);var mt=te>0;mt&&(vt=fe+vt),Ae=vt-fe}if(a=!!Ae,S.x=ie,S.y=se,S.rotation=Ae,S.setStyle({verticalAlign:"middle"}),ce){S.setStyle({align:q});var Lt=S.states.select;Lt&&(Lt.x+=S.x,Lt.y+=S.y)}else{var Fe=S.getBoundingRect().clone();Fe.applyTransform(S.getComputedTransform());var Kt=(S.style.margin||0)+2.1;Fe.y-=Kt/2,Fe.height+=Kt,r.push({label:S,labelLine:T,position:E,len:U,len2:Q,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new Ze(V,te),linePoints:W,textAlign:q,labelDistance:R,labelAlignTo:O,edgeDistance:D,bleedMargin:B,rect:Fe,unconstrainedWidth:Fe.width,labelStyleWidth:S.style.width})}I.setTextConfig({inside:ce})}}),!a&&t.get("avoidLabelOverlap")&&Fk(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}(Rr);function PC(t,e,r){e=$e(e)&&{coordDimensions:e}||Te({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Wb(n,e).dimensions,a=new jb(i,t);return a.initData(n,r),a}var MC=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}(),Hk=Jt(),Vk=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 MC(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 PC(this,{coordDimensions:["value"],encodeDefaulter:Hr(rR,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=Hk(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=XE(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){mh(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}(Xr);function Gk(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 jk(t){t.registerChartView(zk),t.registerSeriesModel(Vk),ED("pie",t.registerAction),t.registerLayout(Hr(Bk,"pie")),t.registerProcessor(_C("pie")),t.registerProcessor(Gk("pie"))}var Wk=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 Yc(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}(Xr),RC=4,Xk=function(){function t(){}return t}(),Kk=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 Xk},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}(),Zk=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=cp("").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 Yk:new vC,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}(Rr),Qk=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),Gh=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",In).models[0]},e.type="cartesian2dAxis",e}(Tt);An(Gh,nC);var DC={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)"]}}},Jk=xt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},DC),fp=xt({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}}},DC),qk=xt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fp),eB=ft({logBase:10},fp);const LC={category:Jk,value:fp,time:qk,log:eB};var tB={value:1,category:1,time:1,log:1};function Xy(t,e,r,n){J(tB,function(i,a){var o=xt(xt({},LC[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=Ys(this),h=d?jc(f):{},v=c.getTheme();xt(f,v.get(a+"Axis")),xt(f,this.getDefaultOption()),f.type=Ky(f),d&&To(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Uh.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",Ky)}function Ky(t){return t.type||(t.data?"category":"value")}var rB=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 Oe(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),fr(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}(),jh=["x","y"];function Yy(t){return t.type==="interval"||t.type==="time"}var nB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=jh,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Yy(r)||!Yy(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=yv([],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 ln(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 ln(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}(rB),iB=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}(fC);function aB(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),Fs(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 Zy(t){return t.get("coordinateSystem")==="cartesian2d"}function Qy(t){var e={xAxisModel:null,yAxisModel:null};return J(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,In).models[0];e[n]=a}),e}var xd=Math.log;function OC(t,e,r){var n=Xi.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=tC(t,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(t.type==="log"){var d=xd(t.base);u=[xd(u[0])/d,xd(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=pd(v),p=u[1]-v*o;else{var m=t.getTicks().length-1;m>o&&(v=pd(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 b=(i[0].value-a[0].value)/s,A=(i[o].value-a[o].value)/s;n.setExtent.call(t,p+v*b,g+v*A),n.setInterval.call(t,v),(b||A)&&n.setNiceExtent.call(t,p+v,g-v)}var oB=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jh,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;zh(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Ty(p,v),zh(p)&&(s=h))}f.length&&(s||(s=f.pop(),Ty(s.scale,s.model)),J(f,function(g){OC(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};J(n.x,function(o){Jy(n,"y",o,a)}),J(n.y,function(o){Jy(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=ic(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(J(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=RO(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()),J(this._coordsList,function(u){u.calcAffineTransform()});function l(){J(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]),sB(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]}We(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Xu(i-Oi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"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}(),e0={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&&(ln(s,s,o),ln(l,l,o));var f=Te({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ji({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ws(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"]);He(d)&&(d=[d,d]),(He(h)||Et(h))&&(h=[h,h]);var v=yb(e.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];J([{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 b=Wi(d[y],-p/2,-g/2,p,g,f.stroke,!0),A=m.r+m.offset,M=u?l:s;b.attr({rotation:m.rotate,x:M[0]+A*Math.cos(t.rotation),y:M[1]-A*Math.sin(t.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(t,e,r,n){var i=cB(r,n,e,t),a=dB(r,n,e,t);if(uB(e,a,i),fB(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=YO(Oe(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));JO(o)}},axisName:function(t,e,r,n){var i=Fs(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*Oi/180);var v;r0(a)?d=$i.innerTextLayout(t.rotation,h??t.rotation,o):(d=lB(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=Fs(t.nameTruncateMaxWidth,g.maxWidth,v),b=new Wr({x:c[0],y:c[1],rotation:d.rotation,silent:$i.isLabelSilent(e),style:Xs(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(kv({el:b,componentModel:e,itemName:i}),b.__fullText=i,b.anid="name",e.get("triggerEvent")){var A=$i.makeAxisEventDataBase(e);A.targetType="axisName",A.name=i,Mt(b).eventData=A}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function lB(t,e,r,n){var i=F1(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Xu(i-Oi/2)?(o=l?"bottom":"top",a="center"):Xu(i-Oi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iOi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function uB(t,e,r){if(!rC(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?(Qr(a),Qr(u)):t0(a,o)&&(n?(Qr(o),Qr(f)):(Qr(a),Qr(u))),i===!1?(Qr(s),Qr(c)):t0(l,s)&&(i?(Qr(l),Qr(d)):(Qr(s),Qr(c)))}}function Qr(t){t&&(t.ignore=!0)}function t0(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=mv([]);return h1(i,i,-t.rotation),r.applyTransform(go([],i,t.getLocalTransform())),n.applyTransform(go([],i,e.getLocalTransform())),r.intersect(n)}}function r0(t){return t==="middle"||t==="center"}function kC(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=ft({color:v.color},l));var g=xt(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(He(f)){var m=g.name;g.name=f.replace("{value}",m??"")}else nt(f)&&(g.name=f(g.name,g));var y=new Qt(g,null,this.ecModel);return An(y,nC.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:xt({lineStyle:{color:"#bbb"}},qo.axisLine),axisLabel:fu(qo.axisLabel,!1),axisTick:fu(qo.axisTick,!1),splitLine:fu(qo.splitLine,!0),splitArea:fu(qo.splitArea,!0),indicator:[]},e}(Tt),DB=["axisLine","axisTickLabel","axisName"],LB=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=Oe(i,function(o){var s=o.model.get("showName")?o.name:"",l=new $i(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});J(a,function(o){J(DB,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(O,D,B){var $=B%D.length;return O[$]=O[$]||[],$}if(a==="circle")for(var b=i[0].getTicksCoords(),A=n.cx,M=n.cy,C=0;C=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),eo=Hr,Kh=J,du=Xt,$C=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 du),this.group.add(this._selectorGroup=new du),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=ic(f,c,d),v=this.layoutInner(r,o,h,a,l,u),p=ic(ft({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=FB(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)}),Kh(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new du;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),b=y.getVisual("legendLineStyle")||{},A=y.getVisual("legendIcon"),M=y.getVisual("style"),C=this._createItem(m,p,v,h,n,r,b,M,A,c,a);C.on("click",eo(s0,p,null,a,d)).on("mouseover",eo(Yh,m.name,null,a,d)).on("mouseout",eo(Zh,m.name,null,a,d)),i.ssr&&C.eachChild(function(I){var P=Mt(I);P.seriesIndex=m.seriesIndex,P.dataIndex=v,P.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(I){if(!f.get(p)&&I.legendVisualProvider){var P=I.legendVisualProvider;if(!P.containName(p))return;var S=P.indexOfName(p),T=P.getItemVisual(S,"style"),x=P.getItemVisual(S,"legendIcon"),_=Vn(T.fill);_&&_[3]===0&&(_[3]=.2,T=Te(Te({},T),{fill:Tc(_,"rgba")}));var E=this._createItem(I,p,v,h,n,r,{},T,x,c,a);E.on("click",eo(s0,null,p,a,d)).on("mouseover",eo(Yh,null,p,a,d)).on("mouseout",eo(Zh,null,p,a,d)),i.ssr&&E.eachChild(function(R){var O=Mt(R);O.seriesIndex=I.seriesIndex,O.dataIndex=v,O.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();Kh(r,function(u){var f=u.type,c=new Wr({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"]);Po(c,{normal:d,emphasis:h},{defaultText:u.title}),wh(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"),b=a.get("icon");f=b||f||"roundRect";var A=UB(f,a,l,u,h,g,d),M=new du,C=a.getModel("textStyle");if(nt(r.getLegendIcon)&&(!b||b==="inherit"))M.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}));else{var I=b==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;M.add(zB({itemWidth:v,itemHeight:p,icon:f,iconRotate:I,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}))}var P=s==="left"?v+5:-5,S=s,T=o.get("formatter"),x=n;He(T)&&T?x=T.replace("{name}",n??""):nt(T)&&(x=T(n));var _=g?C.getTextColor():a.get("inactiveColor");M.add(new Wr({style:Xs(C,{text:x,x:P,y:p/2,fill:_,align:S,verticalAlign:"middle"},{inheritColor:_})}));var E=new Zt({shape:M.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&kv({el:E,componentModel:o,itemName:n,itemTooltipOption:R.option}),M.add(E),M.eachChild(function(O){O.silent=!0}),E.silent=!c,this.getContentGroup().add(M),wh(M),M.__legendDataIndex=i,M},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();_s(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){_s("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 b={x:0,y:0};return b[g]=f[g]+v+d[g],b[m]=Math.max(f[m],d[m]),b[y]=Math.min(0,d[y]+h[1-p]),b}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}(di);function UB(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Kh(g,function(y,b){g[b]==="inherit"&&(g[b]=m[b])})}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:Bh(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 zB(t){var e=t.icon||"roundRect",r=Wi(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 s0(t,e,r,n){Zh(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Yh(t,e,r,n)}function UC(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],b=Ke(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var A=r.get("pageButtonPosition",!0);A==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+b}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var M={x:0,y:0};if(M[o]=p?i[o]:h[o],M[s]=Math.max(h[s],v[s]),M[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var C={x:0,y:0};C[o]=Math.max(i[o]-v[o]-b,0),C[s]=M[s],c.setClipPath(new Zt({shape:C})),c.__rectSize=C[o]}else d.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var I=this._getPageInfo(r);return I.pageIndex!=null&&pr(f,{x:I.contentPosition[0],y:I.contentPosition[1]},p?r:null),this._updatePageInfoView(r,I),M},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;J(["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",He(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=Td[o],l=Id[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=A(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,b=null;g<=d;++g)b=A(f[g]),(!b&&y.e>m.s+a||b&&!M(b,m.s))&&(y.i>m.i?m=y:m=b,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=b;for(var g=u-1,m=p,y=p,b=null;g>=-1;--g)b=A(f[g]),(!b||!M(y,b.s))&&m.i=I&&C.s<=I+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}($C);function WB(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 XB(t){La(zC),t.registerComponentModel(GB),t.registerComponentView(jB),WB(t)}function KB(t){La(zC),La(XB)}var Ad=Math.sin,_d=Math.cos,HC=Math.PI,ba=Math.PI*2,YB=180/HC,VC=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=Ri(c-ba)||(f?u>=ba:-u>=ba),h=u>0?u%ba:u%ba+ba,v=!1;d?v=!0:Ri(c)?v=!1:v=h>=HC==!!f;var p=e+n*_d(o),g=r+i*Ad(o);this._start&&this._add("M",p,g);var m=Math.round(a*YB);if(d){var y=1/this._p,b=(f?1:-1)*(ba-y);this._add("A",n,i,m,1,+f,e+n*_d(o+b),r+i*Ad(o+b)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var A=e+n*_d(s),M=r+i*Ad(s);this._add("A",n,i,m,+v,+f,A,M)}},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 i5(t){return""}function hp(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 n5(o,s)+(o!=="style"?B_(l):l||"")+(a?""+r+Oe(a,function(u){return n(u)}).join(r)+r:"")+i5(o)}return n(t)}function a5(t,e,r){r=r||{};var n=r.newline?` `:"",i=" {"+n,a=n+"}",o=Oe(gt(t),function(l){return l+i+Oe(gt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=Oe(gt(e),function(l){return"@keyframes "+l+i+Oe(gt(e[l]),function(u){return u+i+Oe(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 Jh(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function f0(t,e,r,n){return Wt("svg","root",{width:t,height:e,xmlns:GC,"xmlns:xlink":jC,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var o5=0;function XC(){return o5++}var d0={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"},Ta="transform-origin";function s5(t,e,r){var n=Te({},t.shape);Te(n,e),t.buildPath(r,n);var i=new VC;return i.reset(E1(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function l5(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Ta]=r+"px "+n+"px")}var u5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KC(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function c5(t,e,r){var n=t.shape.paths,i={},a,o;if(J(n,function(l){var u=Jh(r.zrId);u.animation=!0,qc(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=KC(i,r);return a.replace(o,s)}}function h0(t){return He(t)?d0[t]?"cubic-bezier("+d0[t]+")":Sv(t)?t:"":""}function qc(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof mS){var s=c5(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var q=KC(I,r);return q+" "+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 f5(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=ah(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 tl=Math.round;function YC(t){return t&&He(t.src)}function ZC(t){return t&&nt(t.toDataURL)}function vp(t,e,r,n){e5(function(i,a){var o=i==="fill"||i==="stroke";o&&_1(a)?JC(e,t,i,n):o&&bv(a)?qC(r,t,i,n):o&&a==="none"?t[i]="transparent":t[i]=a},e,r,!1),y5(r,t,n)}function pp(t,e){var r=HE(e);r&&(r.each(function(n,i){n!=null&&(t[(c0+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[c0+"silent"]="true"))}function p0(t){return Ri(t[0]-1)&&Ri(t[1])&&Ri(t[2])&&Ri(t[3]-1)}function d5(t){return Ri(t[4])&&Ri(t[5])}function gp(t,e,r){if(e&&!(d5(e)&&p0(e))){var n=1e4;t.transform=p0(e)?"translate("+tl(e[4]*n)/n+" "+tl(e[5]*n)/n+")":fE(e)}}function g0(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.";Xn(d,g),Xn(h,g)}else if(d==null||h==null){var m=function(T,x){if(T){var _=T.elm,E=d||x.width,R=h||x.height;T.tag==="pattern"&&(u?(R=1,E/=a.width):f&&(E=1,R/=a.height)),T.attrs.width=E,T.attrs.height=R,_&&(_.setAttribute("width",E),_.setAttribute("height",R))}},y=Av(v,null,t,function(T){l||m(C,T),m(c,T)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}c=Wt("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 b,A;l?b=A=1:u?(A=1,b=o.width/a.width):f?(b=1,A=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),A!=null&&!isNaN(A)&&(o.height=A);var M=P1(i);M&&(o.patternTransform=M);var C=Wt("pattern","",o,[c]),I=hp(C),P=n.patternCache,S=P[I];S||(S=n.zrId+"-p"+n.patternIdx++,P[I]=S,o.id=S,C=n.defs[S]=Wt("pattern",S,o,[c])),e[r]=Ic(S)}}function S5(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]=Wt("clipPath",a,o,[QC(t,r)])}e["clip-path"]=Ic(a)}function S0(t){return document.createTextNode(t)}function Aa(t,e,r){t.insertBefore(e,r)}function b0(t,e){t.removeChild(e)}function C0(t,e){t.appendChild(e)}function ex(t){return t.parentNode}function tx(t){return t.nextSibling}function Ed(t,e){t.textContent=e}var x0=58,b5=120,C5=Wt("","");function qh(t){return t===void 0}function Fn(t){return t!==void 0}function x5(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 fs(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function rl(t){var e,r=t.children,n=t.tag;if(Fn(n)){var i=t.elm=WC(n);if(mp(C5,t),$e(r))for(e=0;ea?(v=r[l+1]==null?null:r[l+1].elm,rx(t,v,r,i,l)):fc(t,e,n,a))}function oo(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(mp(t,e),qh(e.text)?Fn(n)&&Fn(i)?n!==i&&w5(r,n,i):Fn(i)?(Fn(t.text)&&Ed(r,""),rx(r,null,i,0,i.length-1)):Fn(n)?fc(r,n,0,n.length-1):Fn(t.text)&&Ed(r,""):t.text!==e.text&&(Fn(n)&&fc(r,n,0,n.length-1),Ed(r,e.text)))}function T5(t,e){if(fs(t,e))oo(t,e);else{var r=t.elm,n=ex(r);rl(e),n!==null&&(Aa(n,e.elm,tx(r)),fc(n,[t],0,0))}return e}var I5=0,A5=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=w0(),this.configLayer=w0(),this.storage=r,this._opts=n=Te({},n),this.root=e,this._id="zr"+I5++,this._oldVNode=f0(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=WC("svg");mp(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",T5(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return y0(e,Jh(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Jh(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis;var o=[],s=this._bgVNode=_5(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Wt("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Oe(gt(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(Wt("defs","defs",{},u)),e.animation){var f=a5(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Wt("style","stl",{},[],f);o.push(c)}}return f0(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},hp(this.renderToVNode({animation:Ke(e.cssAnimation,!0),emphasis:Ke(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ke(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=Vd(e.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=e.themeColors.length,l=Vd(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=t_({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 xr(()=>{r=xL(n.value,null,{renderer:"svg"}),a();const o=()=>r.resize();new ResizeObserver(o).observe(n.value)}),hr(()=>e.type,a),hr(()=>e.data,a),hr(()=>e.themeColors,a),hr(()=>e.textColor,a),(o,s)=>(oe(),Se("div",{class:"chart",ref_key:"chartRef",ref:n},null,512))}}),M5=tt(P5,[["__scopeId","data-v-a77f2c9e"]]),R5=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"}},D5=t=>t.replace(/\n/g,"
").replace(/ /g," "),L5=t=>({hideCells:Me(()=>{const r=[];for(let n=0;n1||o.rowspan>1)for(let s=n;s{const e=ge(["",""]);return hr(()=>t.value,()=>{t.value&&(e.value=uI(t.value.color))},{immediate:!0}),{subThemeColor:e}},k5=(t,e)=>{xr(()=>{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()}}})},yp=t=>(ka("data-v-b2516295"),t=t(),Oa(),t),B5={key:0,class:"load-error"},N5=["src","poster"],F5={class:"bezel"},$5=yp(()=>Y("div",{class:"controller-mask"},null,-1)),U5={class:"controller"},z5={class:"icons icons-left"},H5={class:"icon-content"},V5={class:"volume"},G5={class:"icon-content"},j5=yp(()=>Y("span",{class:"thumb"},null,-1)),W5=[j5],X5={class:"time"},K5={class:"ptime"},Y5={class:"dtime"},Z5={class:"icons icons-right"},Q5={class:"speed"},J5={class:"icon speed-icon"},q5=["onClick"],eN={class:"icon-content"},tN={class:"bar"},rN=yp(()=>Y("span",{class:"thumb"},null,-1)),nN=[rN],iN=Xe({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1},needWaitAnimation:{type:Boolean}},setup(t){const e=t;hr(()=>e.needWaitAnimation,()=>{e.autoplay&&!e.needWaitAnimation?T():e.needWaitAnimation&&x()});const r=(ae=0)=>{if(ae===0||isNaN(ae))return"00:00";const fe=vt=>vt<10?"0"+vt:""+vt,Ae=Math.floor(ae/3600),Re=Math.floor((ae-Ae*3600)/60),st=Math.floor(ae-Ae*3600-Re*60);return(Ae>0?[Ae,Re,st]:[Re,st]).map(fe).join(":")},n=ae=>ae.getBoundingClientRect().left,i=ge(),a=ge(),o=ge(),s=ge(.5),l=ge(!0),u=ge(0),f=ge(0),c=ge(0),d=ge(!1),h=ge(!1),v=ge(1),p=ge(!1),g=ge("00:00"),m=ge("0"),y=Me(()=>r(u.value)),b=Me(()=>r(f.value)),A=Me(()=>u.value/f.value*100+"%"),M=Me(()=>c.value/f.value*100+"%"),C=Me(()=>s.value*100+"%"),I=ge(!1),P=[{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}],S=ae=>{i.value&&(ae=Math.max(ae,0),ae=Math.min(ae,f.value),i.value.currentTime=ae,u.value=ae)},T=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},x=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},_=()=>{l.value?T():x()},E=ae=>{i.value&&(ae=Math.max(ae,0),ae=Math.min(ae,1),i.value.volume=ae,s.value=ae,i.value.muted&&ae!==0&&(i.value.muted=!1))},R=ae=>{i.value&&(i.value.playbackRate=ae),v.value=ae},O=()=>{var ae;f.value=((ae=i.value)==null?void 0:ae.duration)||0},D=()=>{var ae;u.value=((ae=i.value)==null?void 0:ae.currentTime)||0},B=()=>{d.value?(S(0),T()):x()},$=()=>{var ae;c.value=(ae=i.value)!=null&&ae.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},U=ge(!1),Q=()=>U.value=!0,Z=ae=>{if(!i.value||!a.value)return;let Ae=(("clientX"in ae?ae.clientX:ae.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},V=ae=>{if(!i.value||!a.value)return;let Ae=(("clientX"in ae?ae.clientX:ae.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",Z),document.removeEventListener("touchmove",Z),document.removeEventListener("mouseup",V),document.removeEventListener("touchend",V)},te=()=>{document.addEventListener("mousemove",Z),document.addEventListener("touchmove",Z),document.addEventListener("mouseup",V),document.addEventListener("touchend",V)},ie=ae=>{if(!o.value)return;const Ae=(("clientX"in ae?ae.clientX:ae.changedTouches[0].clientX)-n(o.value))/45;E(Ae)},se=()=>{document.removeEventListener("mousemove",ie),document.removeEventListener("touchmove",ie),document.removeEventListener("mouseup",se),document.removeEventListener("touchend",se)},W=()=>{document.addEventListener("mousemove",ie),document.addEventListener("touchmove",ie),document.addEventListener("mouseup",se),document.addEventListener("touchend",se)},q=ae=>{if(!o.value)return;const fe=(ae.clientX-n(o.value))/45;E(fe)},ce=ae=>{if(f.value&&a.value){const fe=a.value.getBoundingClientRect().left,Ae=ae.clientX-fe;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}},me=()=>{i.value&&(i.value.muted?(i.value.muted=!1,E(.5)):(i.value.muted=!0,E(0)))},be=()=>{d.value=!d.value},ue=ge(-1),ve=ge(!1),Ce=()=>{ve.value=!1,clearTimeout(ue.value),ue.value=setTimeout(()=>{var ae;(ae=i.value)!=null&&ae.played.length&&(ve.value=!0)},3e3)};return k5(e.src,i),(ae,fe)=>{const Ae=ct("IconPlayOne"),Re=ct("IconPause"),st=ct("IconVolumeMute"),vt=ct("IconVolumeNotice"),mt=ct("IconVolumeSmall");return oe(),Se("div",{class:ht(["video-player",{"hide-controller":ve.value}]),style:Ie({width:ae.width*ae.scale+"px",height:ae.height*ae.scale+"px",transform:`scale(${1/ae.scale})`}),onMousemove:fe[22]||(fe[22]=Fe=>Ce()),onClick:fe[23]||(fe[23]=Fe=>Ce())},[Y("div",{class:"video-wrap",onClick:fe[8]||(fe[8]=Fe=>_())},[U.value?(oe(),Se("div",B5,"视频加载失败")):je("",!0),Y("video",{class:"video",ref_key:"videoRef",ref:i,src:ae.src,poster:ae.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:fe[0]||(fe[0]=Fe=>O()),onTimeupdate:fe[1]||(fe[1]=Fe=>D()),onEnded:fe[2]||(fe[2]=Fe=>B()),onProgress:fe[3]||(fe[3]=Fe=>$()),onPlay:fe[4]||(fe[4]=()=>{Ce(),l.value=!1}),onPause:fe[5]||(fe[5]=Fe=>Ce()),onError:fe[6]||(fe[6]=Fe=>Q())},null,40,N5),Y("div",F5,[Y("span",{class:ht(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:fe[7]||(fe[7]=Fe=>h.value=!1)},[l.value?(oe(),Je(Ae,{key:0})):(oe(),Je(Re,{key:1}))],34)])]),$5,Y("div",U5,[Y("div",z5,[Y("div",{class:"icon play-icon",onClick:fe[9]||(fe[9]=Fe=>_())},[Y("span",H5,[l.value?(oe(),Je(Ae,{key:0})):(oe(),Je(Re,{key:1}))])]),Y("div",V5,[Y("div",{class:"icon volume-icon",onClick:fe[10]||(fe[10]=Fe=>me())},[Y("span",G5,[s.value===0?(oe(),Je(st,{key:0})):s.value===1?(oe(),Je(vt,{key:1})):(oe(),Je(mt,{key:2}))])]),Y("div",{class:"volume-bar-wrap",onMousedown:fe[11]||(fe[11]=Fe=>W()),onTouchstart:fe[12]||(fe[12]=Fe=>W()),onClick:fe[13]||(fe[13]=Fe=>q(Fe))},[Y("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:o},[Y("div",{class:"volume-bar-inner",style:Ie({width:C.value})},W5,4)],512)],32)]),Y("span",X5,[Y("span",K5,$t(y.value),1),ov(" / "),Y("span",Y5,$t(b.value),1)])]),Y("div",Z5,[Y("div",Q5,[Y("div",J5,[Y("span",{class:"icon-content",onClick:fe[14]||(fe[14]=Fe=>I.value=!I.value)},$t(v.value===1?"倍速":v.value+"x"),1),I.value?(oe(),Se("div",{key:0,class:"speed-menu",onMouseleave:fe[15]||(fe[15]=Fe=>I.value=!1)},[(oe(),Se(Yt,null,Vr(P,Fe=>Y("div",{class:ht(["speed-menu-item",{active:Fe.value===v.value}]),key:Fe.label,onClick:Kt=>R(Fe.value)},$t(Fe.label),11,q5)),64))],32)):je("",!0)])]),Y("div",{class:"loop",onClick:fe[16]||(fe[16]=Fe=>be())},[Y("div",{class:ht(["icon loop-icon",{active:d.value}])},[Y("span",eN,"循环"+$t(d.value?"开":"关"),1)],2)])]),Y("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:fe[17]||(fe[17]=Fe=>te()),onTouchstart:fe[18]||(fe[18]=Fe=>te()),onMousemove:fe[19]||(fe[19]=Fe=>ce(Fe)),onMouseenter:fe[20]||(fe[20]=Fe=>p.value=!0),onMouseleave:fe[21]||(fe[21]=Fe=>p.value=!1)},[Y("div",{class:ht(["bar-time",{hidden:!p.value}]),style:Ie({left:m.value})},$t(g.value),7),Y("div",tN,[Y("div",{class:"loaded",style:Ie({width:M.value})},null,4),Y("div",{class:"played",style:Ie({width:A.value})},nN,4)])],544)])],38)}}}),aN=tt(iN,[["__scopeId","data-v-b2516295"]]),nx=t=>(ka("data-v-589afd06"),t=t(),Oa(),t),oN=["src"],sN={class:"controller"},lN={class:"icons"},uN={class:"icon-content"},cN={class:"volume"},fN={class:"icon-content"},dN=nx(()=>Y("span",{class:"thumb"},null,-1)),hN=[dN],vN={class:"time"},pN={class:"ptime"},gN={class:"dtime"},mN={class:"bar"},yN=nx(()=>Y("span",{class:"thumb"},null,-1)),SN=[yN],bN=Xe({__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;hr(()=>r.needWaitAnimation,()=>{r.autoplay&&!r.needWaitAnimation?I():r.needWaitAnimation&&P()});const n=(W=0)=>{if(W===0||isNaN(W))return"00:00";const q=ue=>ue<10?"0"+ue:""+ue,ce=Math.floor(W/3600),me=Math.floor((W-ce*3600)/60),be=Math.floor(W-ce*3600-me*60);return(ce>0?[ce,me,be]:[me,be]).map(q).join(":")},i=W=>W.getBoundingClientRect().left,a=ge(),o=ge(),s=ge(),l=ge(.5),u=ge(!0),f=ge(0),c=ge(0),d=ge(0),h=ge(!1),v=ge(!1),p=ge("00:00"),g=ge("0"),m=Me(()=>n(f.value)),y=Me(()=>n(c.value)),b=Me(()=>f.value/c.value*100+"%"),A=Me(()=>d.value/c.value*100+"%"),M=Me(()=>l.value*100+"%"),C=W=>{a.value&&(W=Math.max(W,0),W=Math.min(W,c.value),a.value.currentTime=W,f.value=W)},I=()=>{a.value&&(u.value=!1,a.value.play())},P=()=>{a.value&&(u.value=!0,a.value.pause())},S=()=>{u.value?I():P()},T=W=>{a.value&&(W=Math.max(W,0),W=Math.min(W,1),a.value.volume=W,l.value=W,a.value.muted&&W!==0&&(a.value.muted=!1))},x=()=>{var W;c.value=((W=a.value)==null?void 0:W.duration)||0},_=()=>{var W;f.value=((W=a.value)==null?void 0:W.currentTime)||0},E=()=>{u.value=!1},R=()=>{h.value||(r.loop?(C(0),I()):P())},O=()=>{var W;d.value=(W=a.value)!=null&&W.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},D=()=>Dr.error("音频加载失败"),B=W=>{if(!a.value||!o.value)return;let ce=(("clientX"in W?W.clientX:W.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;ce=Math.max(ce,0),ce=Math.min(ce,1);const me=ce*c.value;a.value.currentTime=me,f.value=me},$=W=>{if(!a.value||!o.value)return;let ce=(("clientX"in W?W.clientX:W.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;ce=Math.max(ce,0),ce=Math.min(ce,1);const me=ce*c.value;a.value.currentTime=me,f.value=me;const be=setTimeout(()=>{clearTimeout(be),h.value=!1},500);document.removeEventListener("mousemove",B),document.removeEventListener("touchmove",B),document.removeEventListener("mouseup",$),document.removeEventListener("touchend",$)},U=()=>{h.value=!0,document.addEventListener("mousemove",B),document.addEventListener("touchmove",B),document.addEventListener("mouseup",$),document.addEventListener("touchend",$)},Q=W=>{if(!s.value)return;const ce=(("clientX"in W?W.clientX:W.changedTouches[0].clientX)-i(s.value))/45;T(ce)},Z=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("touchmove",Q),document.removeEventListener("mouseup",Z),document.removeEventListener("touchend",Z)},V=()=>{document.addEventListener("mousemove",Q),document.addEventListener("touchmove",Q),document.addEventListener("mouseup",Z),document.addEventListener("touchend",Z)},te=W=>{if(!s.value)return;const q=(W.clientX-i(s.value))/45;T(q)},ie=W=>{if(c.value&&o.value){const q=o.value.getBoundingClientRect().left,ce=W.clientX-q;if(ce<0||ce>o.value.offsetWidth)return;const me=c.value*(ce/o.value.offsetWidth);g.value=`${ce-(me>=3600?25:20)}px`,p.value=n(me),v.value=!0}},se=()=>{a.value&&(a.value.muted?(a.value.muted=!1,T(.5)):(a.value.muted=!0,T(0)))};return e({toggle:S}),(W,q)=>{const ce=ct("IconPlayOne"),me=ct("IconPause"),be=ct("IconVolumeMute"),ue=ct("IconVolumeNotice"),ve=ct("IconVolumeSmall");return oe(),Se("div",{class:"audio-player",style:Ie({transform:`scale(${1/W.scale})`})},[Y("audio",{class:"audio",ref_key:"audioRef",ref:a,src:W.src,onDurationchange:q[0]||(q[0]=Ce=>x()),onTimeupdate:q[1]||(q[1]=Ce=>_()),onPlay:q[2]||(q[2]=Ce=>E()),onEnded:q[3]||(q[3]=Ce=>R()),onProgress:q[4]||(q[4]=Ce=>O()),onError:q[5]||(q[5]=Ce=>D())},null,40,oN),Y("div",sN,[Y("div",lN,[Y("div",{class:"icon play-icon",onClick:q[6]||(q[6]=Ce=>S())},[Y("span",uN,[u.value?(oe(),Je(ce,{key:0})):(oe(),Je(me,{key:1}))])]),Y("div",cN,[Y("div",{class:"icon volume-icon",onClick:q[7]||(q[7]=Ce=>se())},[Y("span",fN,[l.value===0?(oe(),Je(be,{key:0})):l.value===1?(oe(),Je(ue,{key:1})):(oe(),Je(ve,{key:2}))])]),Y("div",{class:"volume-bar-wrap",onMousedown:q[8]||(q[8]=Ce=>V()),onTouchstart:q[9]||(q[9]=Ce=>V()),onClick:q[10]||(q[10]=Ce=>te(Ce))},[Y("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[Y("div",{class:"volume-bar-inner",style:Ie({width:M.value})},hN,4)],512)],32)])]),Y("span",vN,[Y("span",pN,$t(m.value),1),ov(" / "),Y("span",gN,$t(y.value),1)]),Y("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:q[11]||(q[11]=Ce=>U()),onTouchstart:q[12]||(q[12]=Ce=>U()),onMousemove:q[13]||(q[13]=Ce=>ie(Ce)),onMouseenter:q[14]||(q[14]=Ce=>v.value=!0),onMouseleave:q[15]||(q[15]=Ce=>v.value=!1)},[Y("div",{class:ht(["bar-time",{hidden:!v.value}]),style:Ie({left:g.value})},$t(p.value),7),Y("div",mN,[Y("div",{class:"loaded",style:Ie({width:A.value})},null,4),Y("div",{class:"played",style:Ie({width:b.value})},SN,4)])],544)])],4)}}}),CN=tt(bN,[["__scopeId","data-v-589afd06"]]),xN={key:0,class:"loading-overlay"},wN=B0('
',1),TN=[wN],IN=["src"],AN=Xe({__name:"cloudCoachPlayer",props:{width:{},height:{},id:{},scale:{default:1}},setup(t){const e=t,r=Me(()=>vo.fromType==="CLASS"?`${Dp}?v=${Date.now()}&Authorization=${Lp()}&id=${e.id}&iscurseplay=play&modelType=practise&showCourseMember=true&showGuide=true&showWebGuide=false&instrumentId=${vo.instrumentId}&zoom=0.8`:`${Dp}?v=${Date.now()}&showGuide=true&showWebGuide=false&platform=pc&imagePos=right&zoom=0.8&modelType=practise&instrumentId=${vo.instrumentId}&iscurseplay=play&id=${e.id}&Authorization=${Lp()}`),n=ge(!0);function i(){n.value=!1}return(a,o)=>(oe(),Se("div",{class:"cloudCoachPlayer",style:Ie({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(oe(),Se("div",xN,TN)):je("",!0),Y("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,IN)],4))}}),_N=tt(AN,[["__scopeId","data-v-7ab31ac7"]]);var ix={exports:{}};const EN=z0(lI);/**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */function T0(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 Kn(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function RN(t,e){if(t==null)return{};var r=MN(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 DN(t){return LN(t)||ON(t)||kN(t)||BN()}function LN(t){if(Array.isArray(t))return ev(t)}function ON(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kN(t,e){if(t){if(typeof t=="string")return ev(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 ev(t,e)}}function ev(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 $N(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function wn(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&dc(t,e):dc(t,e))||n&&t===r)return t;if(t===r)break}while(t=$N(t))}return null}var A0=/\s+/g;function Ot(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(A0," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(A0," ")}}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 Da(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 sx(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===jn())break;n=ki(n,!1)}return!1}function _o(t,e,r,n){for(var i=0,a=0,o=t.children;a2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,a=RN(n,WN);gl.pluginEvent.bind(Ve)(e,r,Kn({dragEl:Pe,parentEl:kt,ghostEl:qe,rootEl:Rt,nextEl:Ia,lastDownEl:Lu,cloneEl:Bt,cloneHidden:Ei,dragStarted:hs,putSortable:tr,activeSortable:Ve.active,originalEvent:i,oldIndex:ho,oldDraggableIndex:Os,newIndex:Ur,newDraggableIndex:_i,hideGhostForTarget:hx,unhideGhostForTarget:vx,cloneNowHidden:function(){Ei=!0},cloneNowShown:function(){Ei=!1},dispatchSortableEvent:function(s){yr({sortable:r,name:s,originalEvent:i})}},a))};function yr(t){ds(Kn({putSortable:tr,cloneEl:Bt,targetEl:Pe,rootEl:Rt,oldIndex:ho,oldDraggableIndex:Os,newIndex:Ur,newDraggableIndex:_i},t))}var Pe,kt,qe,Rt,Ia,Lu,Bt,Ei,ho,Ur,Os,_i,hu,tr,so=!1,hc=!1,vc=[],Ca,gn,Dd,Ld,M0,R0,hs,ro,ks,Bs=!1,vu=!1,Ou,ur,Od=[],tv=!1,pc=[],ef=typeof document<"u",pu=ax,D0=pl||pi?"cssFloat":"float",XN=ef&&!FN&&!ax&&"draggable"in document.createElement("div"),cx=function(){if(ef){if(pi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),fx=function(e,r){var n=Be(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=_o(e,0,r),o=_o(e,1,r),s=a&&Be(a),l=o&&Be(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Dt(a).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Dt(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[D0]==="none"||o&&n[D0]==="none"&&u+f>i)?"vertical":"horizontal"},KN=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},YN=function(e,r){var n;return vc.some(function(i){var a=i[dr].options.emptyInsertThreshold;if(!(!a||Sp(i))){var o=Dt(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},dx=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||Du(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},hx=function(){!cx&&qe&&Be(qe,"display","none")},vx=function(){!cx&&qe&&Be(qe,"display","")};ef&&document.addEventListener("click",function(t){if(hc)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),hc=!1,!1},!0);var xa=function(e){if(Pe){e=e.touches?e.touches[0]:e;var r=YN(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[dr]._onDragOver(n)}}},ZN=function(e){Pe&&Pe.parentNode[dr]._isOutsideThisEl(e.target)};function Ve(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=fn({},e),t[dr]=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 fx(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:Ve.supportPointer!==!1&&"PointerEvent"in window&&!Ds,emptyInsertThreshold:5};gl.initializePlugins(this,t,r);for(var n in r)!(n in e)&&(e[n]=r[n]);dx(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:XN,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ut(t,"pointerdown",this._onTapStart):(ut(t,"mousedown",this._onTapStart),ut(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(ut(t,"dragover",this),ut(t,"dragenter",this)),vc.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),fn(this,VN())}Ve.prototype={constructor:Ve,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ro=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,Pe):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(iF(n),!Pe&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ds&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=wn(l,i.draggable,n,!1),!(l&&l.animated)&&Lu!==l)){if(ho=Ft(l),Os=Ft(l,i.draggable),typeof f=="function"){if(f.call(this,e,l,this)){yr({sortable:r,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),Ir("filter",r,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=wn(u,c.trim(),n,!1),c)return yr({sortable:r,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),Ir("filter",r,{evt:e}),!0}),f)){a&&e.cancelable&&e.preventDefault();return}i.handle&&!wn(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&&!Pe&&n.parentNode===a){var u=Dt(n);if(Rt=a,Pe=n,kt=Pe.parentNode,Ia=Pe.nextSibling,Lu=n,hu=o.group,Ve.dragged=Pe,Ca={target:Pe,clientX:(r||e).clientX,clientY:(r||e).clientY},M0=Ca.clientX-u.left,R0=Ca.clientY-u.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,Pe.style["will-change"]="all",l=function(){if(Ir("delayEnded",i,{evt:e}),Ve.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!I0&&i.nativeDraggable&&(Pe.draggable=!0),i._triggerDragStart(e,r),yr({sortable:i,name:"choose",originalEvent:e}),Ot(Pe,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){sx(Pe,f.trim(),kd)}),ut(s,"dragover",xa),ut(s,"mousemove",xa),ut(s,"touchmove",xa),ut(s,"mouseup",i._onDrop),ut(s,"touchend",i._onDrop),ut(s,"touchcancel",i._onDrop),I0&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Pe.draggable=!0),Ir("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(pl||pi))){if(Ve.eventCanceled){this._onDrop();return}ut(s,"mouseup",i._disableDelayedDrag),ut(s,"touchend",i._disableDelayedDrag),ut(s,"touchcancel",i._disableDelayedDrag),ut(s,"mousemove",i._delayedDragTouchMoveHandler),ut(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&ut(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(){Pe&&kd(Pe),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?ut(document,"pointermove",this._onTouchMove):r?ut(document,"touchmove",this._onTouchMove):ut(document,"mousemove",this._onTouchMove):(ut(Pe,"dragend",this),ut(Rt,"dragstart",this._onDragStart));try{document.selection?ku(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(so=!1,Rt&&Pe){Ir("dragStarted",this,{evt:r}),this.nativeDraggable&&ut(document,"dragover",ZN);var n=this.options;!e&&Ot(Pe,n.dragClass,!1),Ot(Pe,n.ghostClass,!0),Ve.active=this,e&&this._appendGhost(),yr({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(gn){this._lastX=gn.clientX,this._lastY=gn.clientY,hx();for(var e=document.elementFromPoint(gn.clientX,gn.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(gn.clientX,gn.clientY),e!==r);)r=e;if(Pe.parentNode[dr]._isOutsideThisEl(e),r)do{if(r[dr]){var n=void 0;if(n=r[dr]._onDragOver({clientX:gn.clientX,clientY:gn.clientY,target:e,rootEl:r}),n&&!this.options.dragoverBubble)break}e=r}while(r=r.parentNode);vx()}},_onTouchMove:function(e){if(Ca){var r=this.options,n=r.fallbackTolerance,i=r.fallbackOffset,a=e.touches?e.touches[0]:e,o=qe&&Da(qe,!0),s=qe&&o&&o.a,l=qe&&o&&o.d,u=pu&&ur&&E0(ur),f=(a.clientX-Ca.clientX+i.x)/(s||1)+(u?u[0]-Od[0]:0)/(s||1),c=(a.clientY-Ca.clientY+i.y)/(l||1)+(u?u[1]-Od[1]:0)/(l||1);if(!Ve.active&&!so){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(yr({rootEl:kt,name:"add",toEl:kt,fromEl:Rt,originalEvent:e}),yr({sortable:this,name:"remove",toEl:kt,originalEvent:e}),yr({rootEl:kt,name:"sort",toEl:kt,fromEl:Rt,originalEvent:e}),yr({sortable:this,name:"sort",toEl:kt,originalEvent:e})),tr&&tr.save()):Ur!==ho&&Ur>=0&&(yr({sortable:this,name:"update",toEl:kt,originalEvent:e}),yr({sortable:this,name:"sort",toEl:kt,originalEvent:e})),Ve.active&&((Ur==null||Ur===-1)&&(Ur=ho,_i=Os),yr({sortable:this,name:"end",toEl:kt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ir("nulling",this),Rt=Pe=kt=qe=Ia=Bt=Lu=Ei=Ca=gn=hs=Ur=_i=ho=Os=ro=ks=tr=hu=Ve.dragged=Ve.ghost=Ve.clone=Ve.active=null,pc.forEach(function(e){e.checked=!0}),pc.length=Dd=Ld=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Pe&&(this._onDragOver(e),QN(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 tF(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&&Ouf+u*a/2:lc-Ou)return-ks}else if(l>f+u*(1-i)/2&&lc-u*a/2)?l>f+u/2?1:-1:0}function rF(t){return Ft(Pe)1&&(Ye.forEach(function(s){a.addAnimationState({target:s,rect:Ar?Dt(s):o}),Md(s),s.fromRect=o,n.removeAnimationState(s)}),Ar=!1,uF(!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(),rs=!1,u.animation&&Ye.length>1&&(Ar||!i&&!o.options.sort&&!l)){var f=Dt(At,!1,!0,!0);Ye.forEach(function(d){d!==At&&(P0(d,f),s.appendChild(d))}),Ar=!0}if(!i)if(Ar||yu(),Ye.length>1){var c=mu;o._showClone(n),o.options.animation&&!mu&&c&&$r.forEach(function(d){o.addAnimationState({target:d,rect:ns}),d.fromRect=ns,d.thisAnimationDuration=null})}else o._showClone(n)}},dragOverAnimationCapture:function(r){var n=r.dragRect,i=r.isOwner,a=r.activeSortable;if(Ye.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){ns=fn({},n);var o=Da(At,!0);ns.top-=o.f,ns.left-=o.e}},dragOverAnimationComplete:function(){Ar&&(Ar=!1,yu())},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(!no)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ot(At,c.selectedClass,!~Ye.indexOf(At)),~Ye.indexOf(At))Ye.splice(Ye.indexOf(At),1),ts=null,ds({sortable:o,rootEl:i,name:"deselect",targetEl:At,originalEvt:n});else{if(Ye.push(At),ds({sortable:o,rootEl:i,name:"select",targetEl:At,originalEvt:n}),n.shiftKey&&ts&&o.el.contains(ts)){var h=Ft(ts),v=Ft(At);if(~h&&~v&&h!==v){var p,g;for(v>h?(g=h,p=v):(g=v,p=h+1);g1){var m=Dt(At),y=Ft(At,":not(."+this.options.selectedClass+")");if(!rs&&c.animation&&(At.thisAnimationDuration=null),f.captureAnimationState(),!rs&&(c.animation&&(At.fromRect=m,Ye.forEach(function(A){if(A.thisAnimationDuration=null,A!==At){var M=Ar?Dt(A):m;A.fromRect=M,f.addAnimationState({target:A,rect:M})}})),yu(),Ye.forEach(function(A){d[y]?a.insertBefore(A,d[y]):a.appendChild(A),y++}),l===Ft(At))){var b=!1;Ye.forEach(function(A){if(A.sortableIndex!==Ft(A)){b=!0;return}}),b&&s("update")}Ye.forEach(function(A){Md(A)}),f.animateAll()}mn=f}(i===a||u&&u.lastPutMode!=="clone")&&$r.forEach(function(A){A.parentNode&&A.parentNode.removeChild(A)})}},nullingGlobal:function(){this.isMultiDrag=no=!1,$r.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 no<"u"&&no)&&mn===this.sortable&&!(r&&wn(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;Ye.length;){var n=Ye[0];Ot(n,this.options.selectedClass,!1),Ye.shift(),ds({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)}},fn(t,{pluginName:"multiDrag",utils:{select:function(r){var n=r.parentNode[dr];!n||!n.options.multiDrag||~Ye.indexOf(r)||(mn&&mn!==n&&(mn.multiDrag._deselectMultiDrag(),mn=n),Ot(r,n.options.selectedClass,!0),Ye.push(r))},deselect:function(r){var n=r.parentNode[dr],i=Ye.indexOf(r);!n||!n.options.multiDrag||!~i||(Ot(r,n.options.selectedClass,!1),Ye.splice(i,1))}},eventProperties:function(){var r=this,n=[],i=[];return Ye.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var o;Ar&&a!==At?o=-1:Ar?o=Ft(a,":not(."+r.options.selectedClass+")"):o=Ft(a),i.push({multiDragElement:a,index:o})}),{items:DN(Ye),clones:[].concat($r),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 uF(t,e){Ye.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function O0(t,e){$r.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function yu(){Ye.forEach(function(t){t!==At&&t.parentNode&&t.parentNode.removeChild(t)})}Ve.mount(new aF);Ve.mount(xp,Cp);const cF=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:lF,Sortable:Ve,Swap:oF,default:Ve},Symbol.toStringTag,{value:"Module"})),fF=z0(cF);(function(t,e){(function(n,i){t.exports=i(EN,fF)})(typeof self<"u"?self:$0,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,b,A,M,C,I,P;if(m?A=s:y?A=s[g]||c(g,{}):A=(s[g]||{}).prototype,A)for(M in p){if(I=p[M],v.noTargetGet?(P=l(A,M),C=P&&P.value):C=A[M],b=h(m?M:g+(y?".":"#")+M,v.forced),!b&&C!==void 0){if(typeof I==typeof C)continue;d(I,C)}(v.sham||C&&C.sham)&&u(I,"sham",!0),f(A,M,I,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),b=m.flags,A=String(b===void 0&&m instanceof RegExp&&!("flags"in d)?f.call(m):b);return"/"+y+"/"+A},{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(b){var A=String(c(this));f(b);var M=u(p(arguments.length>1?arguments[1]:void 0,A.length)),C=String(b);return v?v.call(A,C,M):A.slice(M,M+C.length)===C}})},"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,b=y>1?arguments[1]:void 0,A=b!==void 0,M=h(g),C=0,I,P,S,T,x,_;if(A&&(b=s(b,y>2?arguments[2]:void 0,2)),M!=null&&!(m==Array&&f(M)))for(T=M.call(g),x=T.next,P=new m;!(S=x.call(T)).done;C++)_=A?u(T,b,[S.value,C],!0):S.value,d(P,C,_);else for(I=c(g.length),P=new m(I);I>C;C++)_=A?b(g[C],C):g[C],d(P,C,_);return P.length=C,P}},"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,b=/\$([$&'`]|\d\d?)/g,A=function(M){return M===void 0?M:String(M)};s("replace",2,function(M,C,I,P){var S=P.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=P.REPLACE_KEEPS_$0,x=S?"$":"$0";return[function(R,O){var D=d(this),B=R==null?void 0:R[M];return B!==void 0?B.call(R,D,O):C.call(String(D),R,O)},function(E,R){if(!S&&T||typeof R=="string"&&R.indexOf(x)===-1){var O=I(C,E,this,R);if(O.done)return O.value}var D=l(E),B=String(this),$=typeof R=="function";$||(R=String(R));var U=D.global;if(U){var Q=D.unicode;D.lastIndex=0}for(var Z=[];;){var V=v(D,B);if(V===null||(Z.push(V),!U))break;var te=String(V[0]);te===""&&(D.lastIndex=h(B,f(D.lastIndex),Q))}for(var ie="",se=0,W=0;W=se&&(ie+=B.slice(se,ce)+Ce,se=ce+q.length)}return ie+B.slice(se)}];function _(E,R,O,D,B,$){var U=O+E.length,Q=D.length,Z=b;return B!==void 0&&(B=u(B),Z=y),C.call($,Z,function(V,te){var ie;switch(te.charAt(0)){case"$":return"$";case"&":return E;case"`":return R.slice(0,O);case"'":return R.slice(U);case"<":ie=B[te.slice(1,-1)];break;default:var se=+te;if(se===0)return V;if(se>Q){var W=m(se/10);return W===0?V:W<=Q?D[W-1]===void 0?te.charAt(1):D[W-1]+te.charAt(1):V}ie=D[se-1]}return ie===void 0?"":ie})}})},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(S){return m(S)?g(S):p(S,{})},b=function(S){return function(T){var x;if(!u(T)||(x=g(T)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return x}};if(s){var A=new v,M=A.get,C=A.has,I=A.set;p=function(S,T){return I.call(A,S,T),T},g=function(S){return M.call(A,S)||{}},m=function(S){return C.call(A,S)}}else{var P=d("state");h[P]=!0,p=function(S,T){return f(S,P,T),T},g=function(S){return c(S,P)?S[P]:{}},m=function(S){return c(S,P)}}i.exports={set:p,get:g,has:m,enforce:y,getterFor:b}},"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,b){var A=b?!!b.unsafe:!1,M=b?!!b.enumerable:!1,C=b?!!b.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){M?g[m]=y:f(m,y);return}else A?!C&&g[m]&&(M=!0):delete g[m];M?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=[],b;g>m;)b=p[m++],(!s||f.call(v,b))&&y.push(d?[b,v[b]]:v[b]);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"),b=function(){},A=function(S){return p+m+v+S+p+"/"+m+v},M=function(S){S.write(A("")),S.close();var T=S.parentWindow.Object;return S=null,T},C=function(){var S=d("iframe"),T="java"+m+":",x;return S.style.display="none",c.appendChild(S),S.src=String(T),x=S.contentWindow.document,x.open(),x.write(A("document.F=Object")),x.close(),x.F},I,P=function(){try{I=document.domain&&new ActiveXObject("htmlfile")}catch{}P=I?M(I):C();for(var S=u.length;S--;)delete P[g][u[S]];return P()};f[y]=!0,i.exports=Object.create||function(T,x){var _;return T!==null?(b[g]=s(T),_=new b,b[g]=null,_[y]=T):_=P(),x===void 0?_:l(_,x)}},"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,b=m.BUGGY_SAFARI_ITERATORS,A=v("iterator"),M="keys",C="values",I="entries",P=function(){return this};i.exports=function(S,T,x,_,E,R,O){l(x,T,_);var D=function(W){if(W===E&&Z)return Z;if(!b&&W in U)return U[W];switch(W){case M:return function(){return new x(this,W)};case C:return function(){return new x(this,W)};case I:return function(){return new x(this,W)}}return function(){return new x(this)}},B=T+" Iterator",$=!1,U=S.prototype,Q=U[A]||U["@@iterator"]||E&&U[E],Z=!b&&Q||D(E),V=T=="Array"&&U.entries||Q,te,ie,se;if(V&&(te=u(V.call(new S)),y!==Object.prototype&&te.next&&(!p&&u(te)!==y&&(f?f(te,y):typeof te[A]!="function"&&d(te,A,P)),c(te,B,!0,!0),p&&(g[B]=P))),E==C&&Q&&Q.name!==C&&($=!0,Z=function(){return Q.call(this)}),(!p||O)&&U[A]!==Z&&d(U,A,Z),g[T]=Z,E)if(ie={values:D(C),keys:R?Z:D(M),entries:D(I)},O)for(se in ie)(b||$||!(se in U))&&h(U,se,ie[se]);else s({target:T,proto:!0,forced:b||$},ie);return ie}},"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(I){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,v=d.exec(I.stack)||h.exec(I.stack),p=v&&v[1]||!1,g=v&&v[2]||!1,m=document.location.href.replace(document.location.hash,""),y,b,A,M=document.getElementsByTagName("script");p===m&&(y=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*