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+=`
>>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 "&&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++;x c.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 0&&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 0?r:1:r))}var dO=function(t,e,r,n){for(;r1&&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=!(a0;)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++;os&&(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=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;mr);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;og[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&&re){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