(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2668],{57817:function(ne,Pr,Xt){"use strict";Xt.d(Pr,{Z:function(){return dt}});function dt(F,$,j){if(F){if(typeof F.addEventListener=="function")return F.addEventListener($,j,!1),{remove:function(){F.removeEventListener($,j,!1)}};if(typeof F.attachEvent=="function")return F.attachEvent("on"+$,j),{remove:function(){F.detachEvent("on"+$,j)}}}}},6056:function(ne,Pr,Xt){"use strict";Xt.d(Pr,{Z:function(){return _t}});var dt,F,$,j;function gr(){dt=document.createElement("table"),F=document.createElement("tr"),$=/^\s*<(\w+|!)[^>]*>/,j={tr:document.createElement("tbody"),tbody:dt,thead:dt,tfoot:dt,td:F,th:F,"*":document.createElement("div")}}function _t(mr){dt||gr();var Kt=$.test(mr)&&RegExp.$1;(!Kt||!(Kt in j))&&(Kt="*");var Ar=j[Kt];mr=typeof mr=="string"?mr.replace(/(^\s*)|(\s*$)/g,""):mr,Ar.innerHTML=""+mr;var dr=Ar.childNodes[0];return dr&&Ar.contains(dr)&&Ar.removeChild(dr),dr}},45442:function(ne,Pr,Xt){"use strict";Xt.d(Pr,{Z:function(){return dt}});function dt(F,$){if(F)for(var j in $)$.hasOwnProperty(j)&&(F.style[j]=$[j]);return F}},90494:function(ne,Pr){"use strict";var Xt="*",dt=function(){function F(){this._events={}}return F.prototype.on=function($,j,gr){return this._events[$]||(this._events[$]=[]),this._events[$].push({callback:j,once:!!gr}),this},F.prototype.once=function($,j){return this.on($,j,!0)},F.prototype.emit=function($){for(var j=this,gr=[],_t=1;_t2&&(r.push([i].concat(w.splice(0,2))),S="l",i=i==="m"?"l":"L"),S==="o"&&w.length===1&&r.push([i,w[0]]),S==="r")r.push([i].concat(w));else for(;w.length>=t[S]&&(r.push([i].concat(w.splice(0,t[S]))),!!t[S]););return e}),r},Kt=function(e,t){for(var r=[],n=0,i=e.length;i-2*!t>n;n+=2){var c=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?i-4===n?c[3]={x:+e[0],y:+e[1]}:i-2===n&&(c[2]={x:+e[0],y:+e[1]},c[3]={x:+e[2],y:+e[3]}):c[0]={x:+e[i-2],y:+e[i-1]}:i-4===n?c[3]=c[2]:n||(c[0]={x:+e[n],y:+e[n+1]}),r.push(["C",(-c[0].x+6*c[1].x+c[2].x)/6,(-c[0].y+6*c[1].y+c[2].y)/6,(c[1].x+6*c[2].x-c[3].x)/6,(c[1].y+6*c[2].y-c[3].y)/6,c[2].x,c[2].y])}return r},Ar=function(e,t,r,n,i){var c=[];if(i===null&&n===null&&(n=r),e=+e,t=+t,r=+r,n=+n,i!==null){var w=Math.PI/180,S=e+r*Math.cos(-n*w),I=e+r*Math.cos(-i*w),tt=t+r*Math.sin(-n*w),J=t+r*Math.sin(-i*w);c=[["M",S,tt],["A",r,r,0,+(i-n>180),0,I,J]]}else c=[["M",e,t],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return c},dr=function(e){if(e=mr(e),!e||!e.length)return[["M",0,0]];var t=[],r=0,n=0,i=0,c=0,w=0,S,I;e[0][0]==="M"&&(r=+e[0][1],n=+e[0][2],i=r,c=n,w++,t[0]=["M",r,n]);for(var tt=e.length===3&&e[0][0]==="M"&&e[1][0].toUpperCase()==="R"&&e[2][0].toUpperCase()==="Z",J=void 0,it=void 0,Ot=w,Tt=e.length;Ot1&&(_r=Math.sqrt(_r),r=_r*r,n=_r*n);var Zr=r*r,ee=n*n,Re=(c===w?-1:1)*Math.sqrt(Math.abs((Zr*ee-Zr*Bt*Bt-ee*Qt*Qt)/(Zr*Bt*Bt+ee*Qt*Qt)));vr=Re*r*Bt/n+(e+S)/2,Mr=Re*-n*Qt/r+(t+I)/2,ht=Math.asin(((t-Mr)/n).toFixed(9)),or=Math.asin(((I-Mr)/n).toFixed(9)),ht=eor&&(ht=ht-Math.PI*2),!w&&or>ht&&(or=or-Math.PI*2)}var Bn=or-ht;if(Math.abs(Bn)>J){var Ca=or,ba=S,_a=I;or=ht+J*(w&&or>ht?1:-1),S=vr+r*Math.cos(or),I=Mr+n*Math.sin(or),Ot=Jt(S,I,r,n,i,0,w,ba,_a,[or,Ca,vr,Mr])}Bn=or-ht;var Sa=Math.cos(ht),Ea=Math.sin(ht),Pa=Math.cos(or),Ta=Math.sin(or),Vn=Math.tan(Bn/4),Zn=4/3*r*Vn,Un=4/3*n*Vn,$n=[e,t],$e=[e+Zn*Ea,t-Un*Sa],Qn=[S+Zn*Ta,I-Un*Pa],Kn=[S,I];if($e[0]=2*$n[0]-$e[0],$e[1]=2*$n[1]-$e[1],tt)return[$e,Qn,Kn].concat(Ot);Ot=[$e,Qn,Kn].concat(Ot).join().split(",");for(var Jn=[],Xe=0,Ia=Ot.length;Xe7){Qt[Bt].shift();for(var _r=Qt[Bt];_r.length;)w[Bt]="A",n&&(S[Bt]="A"),Qt.splice(Bt++,0,["C"].concat(_r.splice(0,6)));Qt.splice(Bt,1),J=Math.max(r.length,n&&n.length||0)}},Tt=function(Qt,Bt,_r,Zr,ee){Qt&&Bt&&Qt[ee][0]==="M"&&Bt[ee][0]!=="M"&&(Bt.splice(ee,0,["M",Zr.x,Zr.y]),_r.bx=0,_r.by=0,_r.x=Qt[ee][1],_r.y=Qt[ee][2],J=Math.max(r.length,n&&n.length||0))};J=Math.max(r.length,n&&n.length||0);for(var ht=0;ht1?1:I<0?0:I;for(var tt=I/2,J=12,it=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Ot=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Tt=0,ht=0;ht0&&Tt<1&&I.push(Tt);continue}var or=it*it-4*Ot*J,vr=Math.sqrt(or);if(!(or<0)){var Mr=(-it+vr)/(2*J);Mr>0&&Mr<1&&I.push(Mr);var Ir=(-it-vr)/(2*J);Ir>0&&Ir<1&&I.push(Ir)}}for(var Qt=I.length,Bt=Qt,_r;Qt--;)Tt=I[Qt],_r=1-Tt,tt[0][Qt]=_r*_r*_r*e+3*_r*_r*Tt*r+3*_r*Tt*Tt*i+Tt*Tt*Tt*w,tt[1][Qt]=_r*_r*_r*t+3*_r*_r*Tt*n+3*_r*Tt*Tt*c+Tt*Tt*Tt*S;return tt[0][Bt]=e,tt[1][Bt]=t,tt[0][Bt+1]=w,tt[1][Bt+1]=S,tt[0].length=tt[1].length=Bt+2,{min:{x:Math.min.apply(0,tt[0]),y:Math.min.apply(0,tt[1])},max:{x:Math.max.apply(0,tt[0]),y:Math.max.apply(0,tt[1])}}},Rt=function(e,t,r,n,i,c,w,S){if(!(Math.max(e,r)Math.max(i,w)||Math.max(t,n)Math.max(c,S))){var I=(e*n-t*r)*(i-w)-(e-r)*(i*S-c*w),tt=(e*n-t*r)*(c-S)-(t-n)*(i*S-c*w),J=(e-r)*(c-S)-(t-n)*(i-w);if(!!J){var it=I/J,Ot=tt/J,Tt=+it.toFixed(2),ht=+Ot.toFixed(2);if(!(Tt<+Math.min(e,r).toFixed(2)||Tt>+Math.max(e,r).toFixed(2)||Tt<+Math.min(i,w).toFixed(2)||Tt>+Math.max(i,w).toFixed(2)||ht<+Math.min(t,n).toFixed(2)||ht>+Math.max(t,n).toFixed(2)||ht<+Math.min(c,S).toFixed(2)||ht>+Math.max(c,S).toFixed(2)))return{x:it,y:Ot}}}},sr=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},Cr=function(e,t,r,n,i){if(i)return[["M",+e+ +i,t],["l",r-i*2,0],["a",i,i,0,0,1,i,i],["l",0,n-i*2],["a",i,i,0,0,1,-i,i],["l",i*2-r,0],["a",i,i,0,0,1,-i,-i],["l",0,i*2-n],["a",i,i,0,0,1,i,-i],["z"]];var c=[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]];return c.parsePathArray=yr,c},Sr=function(e,t,r,n){return e===null&&(e=t=r=n=0),t===null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:Cr(e,t,r,n),vb:[e,t,r,n].join(" ")}},Er=function(e,t){return e=Sr(e),t=Sr(t),sr(t,e.x,e.y)||sr(t,e.x2,e.y)||sr(t,e.x,e.y2)||sr(t,e.x2,e.y2)||sr(e,t.x,t.y)||sr(e,t.x2,t.y)||sr(e,t.x,t.y2)||sr(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)},Tr=function(e,t,r,n,i,c,w,S){(0,$.isArray)(e)||(e=[e,t,r,n,i,c,w,S]);var I=Wr.apply(null,e);return Sr(I.min.x,I.min.y,I.max.x-I.min.x,I.max.y-I.min.y)},Dr=function(e,t,r,n,i,c,w,S,I){var tt=1-I,J=Math.pow(tt,3),it=Math.pow(tt,2),Ot=I*I,Tt=Ot*I,ht=J*e+it*3*I*r+tt*3*I*I*i+Tt*w,or=J*t+it*3*I*n+tt*3*I*I*c+Tt*S,vr=e+2*I*(r-e)+Ot*(i-2*r+e),Mr=t+2*I*(n-t)+Ot*(c-2*n+t),Ir=r+2*I*(i-r)+Ot*(w-2*i+r),Qt=n+2*I*(c-n)+Ot*(S-2*c+n),Bt=tt*e+I*r,_r=tt*t+I*n,Zr=tt*i+I*w,ee=tt*c+I*S,Re=90-Math.atan2(vr-Ir,Mr-Qt)*180/Math.PI;return{x:ht,y:or,m:{x:vr,y:Mr},n:{x:Ir,y:Qt},start:{x:Bt,y:_r},end:{x:Zr,y:ee},alpha:Re}},zr=function(e,t,r){var n=Tr(e),i=Tr(t);if(!Er(n,i))return r?0:[];for(var c=Br.apply(0,e),w=Br.apply(0,t),S=~~(c/8),I=~~(w/8),tt=[],J=[],it={},Ot=r?0:[],Tt=0;Tt=0&&ee<=1&&Re>=0&&Re<=1&&(r?Ot+=1:Ot.push({x:Zr.x,y:Zr.y,t1:ee,t2:Re}))}}return Ot},ft=function(e,t,r){e=$t(e),t=$t(t);for(var n,i,c,w,S,I,tt,J,it,Ot,Tt=r?0:[],ht=0,or=e.length;ht=3&&(it.length===3&&Ot.push("Q"),Ot=Ot.concat(it[1])),it.length===2&&Ot.push("L"),Ot=Ot.concat(it[it.length-1]),Ot});return J}var Nt=function(e,t,r){if(r===1)return[[].concat(e)];var n=[];if(t[0]==="L"||t[0]==="C"||t[0]==="Q")n=n.concat(Ct(e,t,r));else{var i=[].concat(e);i[0]==="M"&&(i[0]="L");for(var c=0;c<=r-1;c++)n.push(i)}return n},Pt=function(e,t){if(e.length===1)return e;var r=e.length-1,n=t.length-1,i=r/n,c=[];if(e.length===1&&e[0][0]==="M"){for(var w=0;w=0;I--)w=c[I].index,c[I].type==="add"?e.splice(w,0,[].concat(e[w])):e.splice(w,1)}n=e.length;var it=i-n;if(n0)r=Ht(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["Q"].concat(r.reduce(function(i,c){return i.concat(c)},[]));break;case"T":e[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=Ht(r,e[n-1],2);else{e[n]=t[n];break}e[n]=["C"].concat(r.reduce(function(i,c){return i.concat(c)},[]));break;case"S":if(r.length<2)if(n>0)r=Ht(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["S"].concat(r.reduce(function(i,c){return i.concat(c)},[]));break;default:e[n]=t[n]}return e},cr=function(){function e(t,r){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=r,this.timeStamp=r.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},e.prototype.save=function(){},e.prototype.restore=function(){},e}(),ur=cr,tr=Xt(70655),wr=Xt(90494);function kr(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1)}var L=typeof window!="undefined"&&typeof window.document!="undefined";function p(e,t){if(e.isCanvas())return!0;for(var r=t.getParent(),n=!1;r;){if(r===e){n=!0;break}r=r.getParent()}return n}function y(e){return e.cfg.visible&&e.cfg.capture}var _=function(e){(0,tr.__extends)(t,e);function t(r){var n=e.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=(0,$.mix)(i,r),n}return t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(r){return this.cfg[r]},t.prototype.set=function(r,n){this.cfg[r]=n},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(wr.Z),s=_,d=Xt(43631),P=Xt(31506);function R(e,t){var r=[],n=e[0],i=e[1],c=e[2],w=e[3],S=e[4],I=e[5],tt=e[6],J=e[7],it=e[8],Ot=t[0],Tt=t[1],ht=t[2],or=t[3],vr=t[4],Mr=t[5],Ir=t[6],Qt=t[7],Bt=t[8];return r[0]=Ot*n+Tt*w+ht*tt,r[1]=Ot*i+Tt*S+ht*J,r[2]=Ot*c+Tt*I+ht*it,r[3]=or*n+vr*w+Mr*tt,r[4]=or*i+vr*S+Mr*J,r[5]=or*c+vr*I+Mr*it,r[6]=Ir*n+Qt*w+Bt*tt,r[7]=Ir*i+Qt*S+Bt*J,r[8]=Ir*c+Qt*I+Bt*it,r}function W(e,t){var r=[],n=t[0],i=t[1];return r[0]=e[0]*n+e[3]*i+e[6],r[1]=e[1]*n+e[4]*i+e[7],r}function ot(e){var t=[],r=e[0],n=e[1],i=e[2],c=e[3],w=e[4],S=e[5],I=e[6],tt=e[7],J=e[8],it=J*w-S*tt,Ot=-J*c+S*I,Tt=tt*c-w*I,ht=r*it+n*Ot+i*Tt;return ht?(ht=1/ht,t[0]=it*ht,t[1]=(-J*n+i*tt)*ht,t[2]=(S*n-i*w)*ht,t[3]=Ot*ht,t[4]=(J*r-i*I)*ht,t[5]=(-S*r+i*c)*ht,t[6]=Tt*ht,t[7]=(-tt*r+n*I)*ht,t[8]=(w*r-n*c)*ht,t):null}var Lt=P.vs,kt="matrix",Zt=["zIndex","capture","visible","type"],pr=["repeat"],A=":",E="*";function N(e){for(var t=[],r=0;rw.delay&&(0,$.each)(t.toAttrs,function(S,I){c.call(w.toAttrs,I)&&(delete w.toAttrs[I],delete w.fromAttrs[I])})}),e}var rt=function(e){(0,tr.__extends)(t,e);function t(r){var n=e.call(this,r)||this;n.attrs={};var i=n.getDefaultAttrs();return(0,$.mix)(i,r.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(r){},t.prototype.initAttrs=function(r){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var r,n=[],i=0;i0?c=nt(c,Bt):i.addAnimator(this),c.push(Bt),this.set("animations",c),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(r){var n=this;r===void 0&&(r=!0);var i=this.get("animations");(0,$.each)(i,function(c){r&&(c.onFrame?n.attr(c.onFrame(1)):n.attr(c.toAttrs)),c.callback&&c.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var r=this.get("timeline"),n=this.get("animations"),i=r.getTime();return(0,$.each)(n,function(c){c._paused=!0,c._pauseTime=i,c.pauseCallback&&c.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:i}),this},t.prototype.resumeAnimate=function(){var r=this.get("timeline"),n=r.getTime(),i=this.get("animations"),c=this.get("_pause").pauseTime;return(0,$.each)(i,function(w){w.startTime=w.startTime+(n-c),w._paused=!1,w._pauseTime=null,w.resumeCallback&&w.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",i),this},t.prototype.emitDelegation=function(r,n){var i=this,c=n.propagationPath,w=this.getEvents(),S;r==="mouseenter"?S=n.fromShape:r==="mouseleave"&&(S=n.toShape);for(var I=function(Ot){var Tt=c[Ot],ht=Tt.get("name");if(ht){if((Tt.isGroup()||Tt.isCanvas&&Tt.isCanvas())&&S&&p(Tt,S))return"break";(0,$.isArray)(ht)?(0,$.each)(ht,function(or){i.emitDelegateEvent(Tt,or,n)}):tt.emitDelegateEvent(Tt,ht,n)}},tt=this,J=0;J=0}function It(e,t,r){r===void 0&&(r=!0),r?t.destroy():(t.set("parent",null),t.set("canvas",null)),kr(e.getChildren(),t)}function zt(e){return function(t,r){var n=e(t,r);return n===0?t[yt]-r[yt]:n}}var Gt=function(e){(0,tr.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var r=Infinity,n=-Infinity,i=Infinity,c=-Infinity,w=[],S=[],I=this.getChildren().filter(function(J){return J.get("visible")&&(!J.isGroup()||J.isGroup()&&J.getChildren().length>0)});I.length>0?((0,$.each)(I,function(J){var it=J.getBBox();w.push(it.minX,it.maxX),S.push(it.minY,it.maxY)}),r=(0,$.min)(w),n=(0,$.max)(w),i=(0,$.min)(S),c=(0,$.max)(S)):(r=0,n=0,i=0,c=0);var tt={x:r,y:i,minX:r,minY:i,maxX:n,maxY:c,width:n-r,height:c-i};return tt},t.prototype.getCanvasBBox=function(){var r=Infinity,n=-Infinity,i=Infinity,c=-Infinity,w=[],S=[],I=this.getChildren().filter(function(J){return J.get("visible")&&(!J.isGroup()||J.isGroup()&&J.getChildren().length>0)});I.length>0?((0,$.each)(I,function(J){var it=J.getCanvasBBox();w.push(it.minX,it.maxX),S.push(it.minY,it.maxY)}),r=(0,$.min)(w),n=(0,$.max)(w),i=(0,$.min)(S),c=(0,$.max)(S)):(r=0,n=0,i=0,c=0);var tt={x:r,y:i,minX:r,minY:i,maxX:n,maxY:c,width:n-r,height:c-i};return tt},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.children=[],r},t.prototype.onAttrChange=function(r,n,i){if(e.prototype.onAttrChange.call(this,r,n,i),r==="matrix"){var c=this.getTotalMatrix();this._applyChildrenMarix(c)}},t.prototype.applyMatrix=function(r){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,r);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},t.prototype._applyChildrenMarix=function(r){var n=this.getChildren();(0,$.each)(n,function(i){i.applyMatrix(r)})},t.prototype.addShape=function(){for(var r=[],n=0;n=0;S--){var I=r[S];if(y(I)&&(I.isGroup()?w=I.getShape(n,i,c):I.isHit(n,i)&&(w=I)),w)break}return w},t.prototype.add=function(r){var n=this.getCanvas(),i=this.getChildren(),c=this.get("timeline"),w=r.getParent();w&&It(w,r,!1),r.set("parent",this),n&<(r,n),c&&Yt(r,c),i.push(r),r.onCanvasChange("add"),this._applyElementMatrix(r)},t.prototype._applyElementMatrix=function(r){var n=this.getTotalMatrix();n&&r.applyMatrix(n)},t.prototype.getChildren=function(){return this.get("children")},t.prototype.sort=function(){var r=this.getChildren();(0,$.each)(r,function(n,i){return n[yt]=i,n}),r.sort(zt(function(n,i){return n.get("zIndex")-i.get("zIndex")})),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var r=this.getChildren(),n=r.length-1;n>=0;n--)r[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var r=this.getChildren();return this.getChildByIndex(r.length-1)},t.prototype.getChildByIndex=function(r){var n=this.getChildren();return n[r]},t.prototype.getCount=function(){var r=this.getChildren();return r.length},t.prototype.contain=function(r){var n=this.getChildren();return n.indexOf(r)>-1},t.prototype.removeChild=function(r,n){n===void 0&&(n=!0),this.contain(r)&&r.remove(n)},t.prototype.findAll=function(r){var n=[],i=this.getChildren();return(0,$.each)(i,function(c){r(c)&&n.push(c),c.isGroup()&&(n=n.concat(c.findAll(r)))}),n},t.prototype.find=function(r){var n=null,i=this.getChildren();return(0,$.each)(i,function(c){if(r(c)?n=c:c.isGroup()&&(n=c.find(r)),n)return!1}),n},t.prototype.findById=function(r){return this.find(function(n){return n.get("id")===r})},t.prototype.findByClassName=function(r){return this.find(function(n){return n.get("className")===r})},t.prototype.findAllByName=function(r){return this.findAll(function(n){return n.get("name")===r})},t}(st),er=Gt,Dt=0,Ut=0,B=0,x=1e3,o,C,k=0,U=0,et=0,at=typeof performance=="object"&&performance.now?performance:Date,pt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function br(){return U||(pt(xr),U=at.now()+et)}function xr(){U=0}function Gr(){this._call=this._time=this._next=null}Gr.prototype=Vr.prototype={constructor:Gr,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?br():+r)+(t==null?0:+t),!this._next&&C!==this&&(C?C._next=this:o=this,C=this),this._call=e,this._time=r,me()},stop:function(){this._call&&(this._call=null,this._time=Infinity,me())}};function Vr(e,t,r){var n=new Gr;return n.restart(e,t,r),n}function ae(){br(),++Dt;for(var e=o,t;e;)(t=U-e._time)>=0&&e._call.call(null,t),e=e._next;--Dt}function he(){U=(k=at.now())+et,Dt=Ut=0;try{ae()}finally{Dt=0,Me(),U=0}}function re(){var e=at.now(),t=e-k;t>x&&(et-=t,k=e)}function Me(){for(var e,t=o,r,n=Infinity;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:o=r);C=e,me(n)}function me(e){if(!Dt){Ut&&(Ut=clearTimeout(Ut));var t=e-U;t>24?(e>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?qr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?qr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=D.exec(e))?new Or(t[1],t[2],t[3],1):(t=Y.exec(e))?new Or(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=z.exec(e))?qr(t[1],t[2],t[3],t[4]):(t=gt.exec(e))?qr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wt.exec(e))?we(t[1],t[2]/100,t[3]/100,1):(t=St.exec(e))?we(t[1],t[2]/100,t[3]/100,t[4]):xt.hasOwnProperty(e)?Jr(xt[e]):e==="transparent"?new Or(NaN,NaN,NaN,0):null}function Jr(e){return new Or(e>>16&255,e>>8&255,e&255,1)}function qr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Or(e,t,r,n)}function Kr(e){return e instanceof Ae||(e=Hr(e)),e?(e=e.rgb(),new Or(e.r,e.g,e.b,e.opacity)):new Or}function Ur(e,t,r,n){return arguments.length===1?Kr(e):new Or(e,t,r,n==null?1:n)}function Or(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ye(Or,Ur,Se(Ae,{brighter:function(e){return e=e==null?M:Math.pow(M,e),new Or(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Ce:Math.pow(Ce,e),new Or(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatRgb:ge,toString:ge}));function te(){return"#"+$r(this.r)+$r(this.g)+$r(this.b)}function ge(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function $r(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function we(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new b(e,t,r,n)}function h(e){if(e instanceof b)return new b(e.h,e.s,e.l,e.opacity);if(e instanceof Ae||(e=Hr(e)),!e)return new b;if(e instanceof b)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),c=Math.max(t,r,n),w=NaN,S=c-i,I=(c+i)/2;return S?(t===c?w=(r-n)/S+(r0&&I<1?0:w,new b(w,S,I,e.opacity)}function m(e,t,r,n){return arguments.length===1?h(e):new b(e,t,r,n==null?1:n)}function b(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ye(b,m,Se(Ae,{brighter:function(e){return e=e==null?M:Math.pow(M,e),new b(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Ce:Math.pow(Ce,e),new b(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Or(q(e>=240?e-240:e+120,i,n),q(e,i,n),q(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function q(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function X(e,t,r,n,i){var c=e*e,w=c*e;return((1-3*e+3*c-w)*t+(4-6*c+3*w)*r+(1+3*e+3*c-3*w)*n+w*i)/6}function Q(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],c=e[n+1],w=n>0?e[n-1]:2*i-c,S=n180||r<-180?r-360*Math.round(r/360):r):constant(isNaN(e)?t:e)}function Yr(e){return(e=+e)==1?Nr:function(t,r){return r-t?qt(t,r,e):Et(isNaN(t)?r:t)}}function Nr(e,t){var r=t-e;return r?nr(e,r):Et(isNaN(e)?t:e)}var Qr=function e(t){var r=Yr(t);function n(i,c){var w=r((i=Ur(i)).r,(c=Ur(c)).r),S=r(i.g,c.g),I=r(i.b,c.b),tt=Nr(i.opacity,c.opacity);return function(J){return i.r=w(J),i.g=S(J),i.b=I(J),i.opacity=tt(J),i+""}}return n.gamma=e,n}(1);function Rr(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),c=new Array(r),w,S;for(w=0;wr&&(c=t.slice(r,c),S[w]?S[w]+=c:S[++w]=c),(n=n[0])===(i=i[0])?S[w]?S[w]+=i:S[++w]=i:(S[++w]=null,I.push({i:w,x:ce(n,i)})),r=pe.lastIndex;return rtt.length?(I=mr(c[S]),tt=mr(i[S]),tt=mt(tt,I),tt=Wt(tt,I),t.fromAttrs.path=tt,t.toAttrs.path=I):t.pathFormatted||(I=mr(c[S]),tt=mr(i[S]),tt=Wt(tt,I),t.fromAttrs.path=tt,t.toAttrs.path=I,t.pathFormatted=!0),n[S]=[];for(var J=0;J0){for(var S=t.animators.length-1;S>=0;S--){if(n=t.animators[S],n.destroyed){t.removeAnimator(S);continue}if(!n.isAnimatePaused()){i=n.get("animations");for(var I=i.length-1;I>=0;I--)c=i[I],r=Fr(n,c,w),r&&(i.splice(I,1),r=!1,c.callback&&c.callback())}i.length===0&&t.removeAnimator(S)}var tt=t.canvas.get("autoDraw");tt||t.canvas.draw()}})},e.prototype.addAnimator=function(t){this.animators.push(t)},e.prototype.removeAnimator=function(t){this.animators.splice(t,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(t){t===void 0&&(t=!0),this.animators.forEach(function(r){r.stopAnimate(t)}),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}(),de=le,xe=40,Ue=0,ra=":",Nn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ka(e,t){for(var r in e)if(e.hasOwnProperty(r)&&r.indexOf(ra+t)>=0)return!0;return!1}function Ln(e,t,r){r.name=t,r.target=e,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}function ea(e,t,r){if(r.bubbles){var n=void 0,i=!1;if(t==="mouseenter"?(n=r.fromShape,i=!0):t==="mouseleave"&&(i=!0,n=r.toShape),e.isCanvas()&&i)return;if(n&&p(e,n)){r.bubbles=!1;return}r.name=t,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}}var na=function(){function e(t){var r=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var i=n.type;r._triggerEvent(i,n)},this._onDocumentMove=function(n){var i=r.canvas,c=i.get("el");if(c!==n.target&&(r.dragging||r.currentShape)){var w=r._getPointInfo(n);r.dragging&&r._emitEvent("drag",n,w,r.draggingShape)}},this._onDocumentMouseUp=function(n){var i=r.canvas,c=i.get("el");if(c!==n.target&&r.dragging){var w=r._getPointInfo(n);r.draggingShape&&r._emitEvent("drop",n,w,null),r._emitEvent("dragend",n,w,r.draggingShape),r._afterDrag(r.draggingShape,w,n)}},this.canvas=t.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var t=this,r=this.canvas.get("el");(0,$.each)(Nn,function(n){r.addEventListener(n,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var t=this,r=this.canvas.get("el");(0,$.each)(Nn,function(n){r.removeEventListener(n,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(t,r,n,i,c,w){var S=new ur(t,r);return S.fromShape=c,S.toShape=w,S.x=n.x,S.y=n.y,S.clientX=n.clientX,S.clientY=n.clientY,S.propagationPath.push(i),S},e.prototype._getShape=function(t,r){return this.canvas.getShape(t.x,t.y,r)},e.prototype._getPointInfo=function(t){var r=this.canvas,n=r.getClientByEvent(t),i=r.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(t,r){var n=this._getPointInfo(r),i=this._getShape(n,r),c=this["_on"+t],w=!1;if(c)c.call(this,n,i,r);else{var S=this.currentShape;t==="mouseenter"||t==="dragenter"||t==="mouseover"?(this._emitEvent(t,r,n,null,null,i),i&&this._emitEvent(t,r,n,i,null,i),t==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",r,n,null)):t==="mouseleave"||t==="dragleave"||t==="mouseout"?(w=!0,S&&this._emitEvent(t,r,n,S,S,null),this._emitEvent(t,r,n,null,S,null),t==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",r,n,null)):this._emitEvent(t,r,n,i,null,null)}if(w||(this.currentShape=i),i&&!i.get("destroyed")){var I=this.canvas,tt=I.get("el");tt.style.cursor=i.attr("cursor")||I.get("cursor")}},e.prototype._onmousedown=function(t,r,n){n.button===Ue&&(this.mousedownShape=r,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,r,null,null)},e.prototype._emitMouseoverEvents=function(t,r,n,i){var c=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,r,n,n,i),this._emitEvent("mouseleave",t,r,n,n,i),(!i||i.get("destroyed"))&&(c.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,r,i,n,i),this._emitEvent("mouseenter",t,r,i,n,i)))},e.prototype._emitDragoverEvents=function(t,r,n,i,c){i?(i!==n&&(n&&this._emitEvent("dragleave",t,r,n,n,i),this._emitEvent("dragenter",t,r,i,n,i)),c||this._emitEvent("dragover",t,r,i)):n&&this._emitEvent("dragleave",t,r,n,n,i),c&&this._emitEvent("dragover",t,r,i)},e.prototype._afterDrag=function(t,r,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(r,n);i!==t&&this._emitMouseoverEvents(n,r,t,i),this.currentShape=i},e.prototype._onmouseup=function(t,r,n){if(n.button===Ue){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,r),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,r),r===this.mousedownShape&&this._emitEvent("click",n,t,r),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(t,r,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,r,!0)},e.prototype._onmousemove=function(t,r,n){var i=this.canvas,c=this.currentShape,w=this.draggingShape;if(this.dragging)w&&this._emitDragoverEvents(n,t,c,r,!1),this._emitEvent("drag",n,t,w);else{var S=this.mousedownPoint;if(S){var I=this.mousedownShape,tt=n.timeStamp,J=tt-this.mousedownTimeStamp,it=S.clientX-t.clientX,Ot=S.clientY-t.clientY,Tt=it*it+Ot*Ot;J>120||Tt>xe?I&&I.get("draggable")?(w=this.mousedownShape,w.set("capture",!1),this.draggingShape=w,this.dragging=!0,this._emitEvent("dragstart",n,t,w),this.mousedownShape=null,this.mousedownPoint=null):!I&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,c,r),this._emitEvent("mousemove",n,t,r)):(this._emitMouseoverEvents(n,t,c,r),this._emitEvent("mousemove",n,t,r))}else this._emitMouseoverEvents(n,t,c,r),this._emitEvent("mousemove",n,t,r)}},e.prototype._emitEvent=function(t,r,n,i,c,w){var S=this._getEventObj(t,r,n,i,c,w);if(i){S.shape=i,Ln(i,t,S);for(var I=i.getParent();I;)I.emitDelegation(t,S),S.propagationStopped||ea(I,t,S),S.propagationPath.push(I),I=I.getParent()}else{var tt=this.canvas;Ln(tt,t,S)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),aa=na,Yn="px",Fn=(0,d.qY)(),ia=Fn&&Fn.name==="firefox",oa=function(e){(0,tr.__extends)(t,e);function t(r){var n=e.call(this,r)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.cursor="default",r.supportCSSTransform=!1,r},t.prototype.initContainer=function(){var r=this.get("container");(0,$.isString)(r)&&(r=document.getElementById(r),this.set("container",r))},t.prototype.initDom=function(){var r=this.createDom();this.set("el",r);var n=this.get("container");n.appendChild(r),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var r=new aa({canvas:this});r.init(),this.set("eventController",r)},t.prototype.initTimeline=function(){var r=new de(this);this.set("timeline",r)},t.prototype.setDOMSize=function(r,n){var i=this.get("el");L&&(i.style.width=r+Yn,i.style.height=n+Yn)},t.prototype.changeSize=function(r,n){this.setDOMSize(r,n),this.set("width",r),this.set("height",n),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(r){this.set("cursor",r);var n=this.get("el");L&&n&&(n.style.cursor=r)},t.prototype.getPointByEvent=function(r){var n=this.get("supportCSSTransform");if(n){if(ia&&!(0,$.isNil)(r.layerX)&&r.layerX!==r.offsetX)return{x:r.layerX,y:r.layerY};if(!(0,$.isNil)(r.offsetX))return{x:r.offsetX,y:r.offsetY}}var i=this.getClientByEvent(r),c=i.x,w=i.y;return this.getPointByClient(c,w)},t.prototype.getClientByEvent=function(r){var n=r;return r.touches&&(r.type==="touchend"?n=r.changedTouches[0]:n=r.touches[0]),{x:n.clientX,y:n.clientY}},t.prototype.getPointByClient=function(r,n){var i=this.get("el"),c=i.getBoundingClientRect();return{x:r-c.left,y:n-c.top}},t.prototype.getClientByPoint=function(r,n){var i=this.get("el"),c=i.getBoundingClientRect();return{x:r+c.left,y:n+c.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var r=this.get("el");r.parentNode.removeChild(r)},t.prototype.clearEvents=function(){var r=this.get("eventController");r.destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var r=this.get("timeline");this.get("destroyed")||(this.clear(),r&&r.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(er),sa=oa,ua=function(e){(0,tr.__extends)(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var r=e.prototype.clone.call(this),n=this.getChildren(),i=0;i=r&&i.minY<=n&&i.maxY>=n},t.prototype.afterAttrsChange=function(r){e.prototype.afterAttrsChange.call(this,r),this.clearCacheBBox()},t.prototype.getBBox=function(){var r=this.cfg.bbox;return r||(r=this.calculateBBox(),this.set("bbox",r)),r},t.prototype.getCanvasBBox=function(){var r=this.cfg.canvasBBox;return r||(r=this.calculateCanvasBBox(),this.set("canvasBBox",r)),r},t.prototype.applyMatrix=function(r){e.prototype.applyMatrix.call(this,r),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var r=this.getBBox(),n=this.getTotalMatrix(),i=r.minX,c=r.minY,w=r.maxX,S=r.maxY;if(n){var I=W(n,[r.minX,r.minY]),tt=W(n,[r.maxX,r.minY]),J=W(n,[r.minX,r.maxY]),it=W(n,[r.maxX,r.maxY]);i=Math.min(I[0],tt[0],J[0],it[0]),w=Math.max(I[0],tt[0],J[0],it[0]),c=Math.min(I[1],tt[1],J[1],it[1]),S=Math.max(I[1],tt[1],J[1],it[1])}var Ot=this.attrs;if(Ot.shadowColor){var Tt=Ot.shadowBlur,ht=Tt===void 0?0:Tt,or=Ot.shadowOffsetX,vr=or===void 0?0:or,Mr=Ot.shadowOffsetY,Ir=Mr===void 0?0:Mr,Qt=i-ht+vr,Bt=w+ht+vr,_r=c-ht+Ir,Zr=S+ht+Ir;i=Math.min(i,Qt),w=Math.max(w,Bt),c=Math.min(c,_r),S=Math.max(S,Zr)}return{x:i,y:c,minX:i,minY:c,maxX:w,maxY:S,width:w-i,height:S-c}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(r,n){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(r,n){var i=this.get("startArrowShape"),c=this.get("endArrowShape"),w=[r,n,1];w=this.invertFromMatrix(w);var S=w[0],I=w[1],tt=this._isInBBox(S,I);return this.isOnlyHitBox()?tt:!!(tt&&!this.isClipped(S,I)&&(this.isInShape(S,I)||i&&i.isHit(S,I)||c&&c.isHit(S,I)))},t}(st),la=ca,Rn=new Map;function _e(e,t){Rn.set(e,t)}function ha(e){return Rn.get(e)}function Xn(e){var t=e.attr(),r=t.x,n=t.y,i=t.width,c=t.height;return{x:r,y:n,width:i,height:c}}function Hn(e){var t=e.attr(),r=t.x,n=t.y,i=t.r;return{x:r-i,y:n-i,width:i*2,height:i*2}}var nn=Xt(89838);function qn(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function On(e,t){var r=e.get("startArrowShape"),n=e.get("endArrowShape"),i=null,c=null;return r&&(i=r.getCanvasBBox(),t=qn(t,i)),n&&(c=n.getCanvasBBox(),t=qn(t,c)),t}function va(e){for(var t=e.attr(),r=t.points,n=[],i=[],c=0;c1){var i=ga(t,r);return t*n+i*(n-1)}return t}function ga(e,t){return t?t-e:e*.14}function da(e,t){var r=zn(),n=0;if((0,$.isNil)(e)||e==="")return n;if(r.save(),r.font=t,(0,$.isString)(e)&&e.includes(` `)){var i=e.split(` `);(0,$.each)(i,function(c){var w=r.measureText(c).width;nMath.PI/2?Math.PI-tt:tt,J=J>Math.PI/2?Math.PI-J:J;var it={xExtra:Math.cos(I/2-tt)*(t/2*(1/Math.sin(I/2)))-t/2||0,yExtra:Math.cos(J-I/2)*(t/2*(1/Math.sin(I/2)))-t/2||0};return it}function Ma(e){var t=e.attr(),r=t.path,n=t.stroke,i=n?t.lineWidth:0,c=e.get("segments")||(0,ya.zx)(r),w=xa(c,i),S=w.x,I=w.y,tt=w.width,J=w.height,it={minX:S,minY:I,maxX:S+tt,maxY:I+J};return it=On(e,it),{x:it.minX,y:it.minY,width:it.maxX-it.minX,height:it.maxY-it.minY}}function wa(e){var t=e.attr(),r=t.x1,n=t.y1,i=t.x2,c=t.y2,w=Math.min(r,i),S=Math.max(r,i),I=Math.min(n,c),tt=Math.max(n,c),J={minX:w,maxX:S,minY:I,maxY:tt};return J=On(e,J),{x:J.minX,y:J.minY,width:J.maxX-J.minX,height:J.maxY-J.minY}}function Aa(e){var t=e.attr(),r=t.x,n=t.y,i=t.rx,c=t.ry;return{x:r-i,y:n-c,width:i*2,height:c*2}}_e("rect",Xn),_e("image",Xn),_e("circle",Hn),_e("marker",Hn),_e("polyline",va),_e("polygon",pa),_e("text",ma),_e("path",Ma),_e("line",wa),_e("ellipse",Aa);var Ba="0.5.11"},13063:function(ne,Pr,Xt){"use strict";Xt.r(Pr),Xt.d(Pr,{AbstractCanvas:function(){return $.$Z},AbstractGroup:function(){return $.pA},AbstractShape:function(){return $.zr},Base:function(){return $.XY},Canvas:function(){return Ae},Event:function(){return $.ju},Group:function(){return y},PathUtil:function(){return $.Gk},Shape:function(){return dt},assembleFont:function(){return $.$O},getArcParams:function(){return Er},getBBoxMethod:function(){return $.bj},getOffScreenContext:function(){return $.LF},getTextHeight:function(){return $.FE},invert:function(){return $.U_},isAllowCapture:function(){return $.pP},multiplyVec2:function(){return $.rG},registerBBox:function(){return $.WZ},registerEasing:function(){return $.CW},version:function(){return Ce}});var dt={};Xt.r(dt),Xt.d(dt,{Base:function(){return s},Circle:function(){return P},Ellipse:function(){return ot},Image:function(){return Zt},Line:function(){return N},Marker:function(){return rt},Path:function(){return C},Polygon:function(){return et},Polyline:function(){return pt},Rect:function(){return Vr},Text:function(){return he}});var F=Xt(70655),$=Xt(3232),j=Xt(49242);function gr(){return window?window.devicePixelRatio:1}function _t(M,l,a,f){var g=M-a,D=l-f;return Math.sqrt(g*g+D*D)}function mr(M,l,a,f,g,D){return g>=M&&g<=M+a&&D>=l&&D<=l+f}function Kt(M,l){return!(l.minX>M.maxX||l.maxXM.maxY||l.maxY=0&&g<1/2*Math.PI?(z={x:Y.minX,y:Y.minY},gt={x:Y.maxX,y:Y.maxY}):1/2*Math.PI<=g&&g1&&(a*=Math.sqrt(lr),f*=Math.sqrt(lr));var Xr=a*a*(Vt*Vt)+f*f*(xt*xt),Hr=Xr?Math.sqrt((a*a*(f*f)-Xr)/Xr):1;D===Y&&(Hr*=-1),isNaN(Hr)&&(Hr=0);var Jr=f?Hr*a*Vt/f:0,qr=a?Hr*-f*xt/a:0,Kr=(z+wt)/2+Math.cos(g)*Jr-Math.sin(g)*qr,Ur=(gt+St)/2+Math.sin(g)*Jr+Math.cos(g)*qr,Or=[(xt-Jr)/a,(Vt-qr)/f],te=[(-1*xt-Jr)/a,(-1*Vt-qr)/f],ge=Sr([1,0],Or),$r=Sr(Or,te);return Cr(Or,te)<=-1&&($r=Math.PI),Cr(Or,te)>=1&&($r=0),Y===0&&$r>0&&($r=$r-2*Math.PI),Y===1&&$r<0&&($r=$r+2*Math.PI),{cx:Kr,cy:Ur,rx:dr(M,[wt,St])?0:a,ry:dr(M,[wt,St])?0:f,startAngle:ge,endAngle:ge+$r,xRotation:g,arcFlag:D,sweepFlag:Y}}var Tr=Math.sin,Dr=Math.cos,zr=Math.atan2,ft=Math.PI;function ut(M,l,a,f,g,D,Y){var z=l.stroke,gt=l.lineWidth,wt=a-g,St=f-D,xt=zr(St,wt),Vt=new C({type:"path",canvas:M.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Dr(ft/6)+","+10*Tr(ft/6)+" L0,0 L"+10*Dr(ft/6)+",-"+10*Tr(ft/6),stroke:z,lineWidth:gt}});Vt.translate(g,D),Vt.rotateAtPoint(g,D,xt),M.set(Y?"startArrowShape":"endArrowShape",Vt)}function Mt(M,l,a,f,g,D,Y){var z=l.startArrow,gt=l.endArrow,wt=l.stroke,St=l.lineWidth,xt=Y?z:gt,Vt=xt.d,lr=xt.fill,Xr=xt.stroke,Hr=xt.lineWidth,Jr=(0,F.__rest)(xt,["d","fill","stroke","lineWidth"]),qr=a-g,Kr=f-D,Ur=zr(Kr,qr);Vt&&(g=g-Dr(Ur)*Vt,D=D-Tr(Ur)*Vt);var Or=new C({type:"path",canvas:M.get("canvas"),isArrowShape:!0,attrs:(0,F.__assign)((0,F.__assign)({},Jr),{stroke:Xr||wt,lineWidth:Hr||St,fill:lr})});Or.translate(g,D),Or.rotateAtPoint(g,D,Ur),M.set(Y?"startArrowShape":"endArrowShape",Or)}function Ct(M,l,a,f,g){var D=zr(f-l,a-M);return{dx:Dr(D)*g,dy:Tr(D)*g}}function Nt(M,l,a,f,g,D){typeof l.startArrow=="object"?Mt(M,l,a,f,g,D,!0):l.startArrow?ut(M,l,a,f,g,D,!0):M.set("startArrowShape",null)}function Pt(M,l,a,f,g,D){typeof l.endArrow=="object"?Mt(M,l,a,f,g,D,!1):l.endArrow?ut(M,l,a,f,g,D,!1):M.set("startArrowShape",null)}var v={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function O(M,l){var a=l.attr();for(var f in a){var g=a[f],D=v[f]?v[f]:f;D==="matrix"&&g?M.transform(g[0],g[1],g[3],g[4],g[6],g[7]):D==="lineDash"&&M.setLineDash?(0,j.isArray)(g)&&M.setLineDash(g):(D==="strokeStyle"||D==="fillStyle"?g=Wr(M,l,g):D==="globalAlpha"&&(g=g*M.globalAlpha),M[D]=g)}}function vt(M,l,a){for(var f=0;fte?Or:te,b=Or>te?1:Or/te,q=Or>te?te/Or:1;l.translate(Kr,Ur),l.rotate(we),l.scale(b,q),l.arc(0,0,m,ge,$r,1-h),l.scale(1/b,1/q),l.rotate(-we),l.translate(-Kr,-Ur)}break}case"Z":l.closePath();break;default:break}if(Vt==="Z")z=gt;else{var X=xt.length;z=[xt[X-2],xt[X-1]]}}}}function tr(M,l){var a=M.get("canvas");a&&(l==="remove"&&(M._cacheCanvasBBox=M.get("cacheCanvasBBox")),M.get("hasChanged")||(M.set("hasChanged",!0),M.cfg.parent&&M.cfg.parent.get("hasChanged")||(a.refreshElement(M,l,a),a.get("autoDraw")&&a.draw())))}function wr(M){var l;if(M.destroyed)l=M._cacheCanvasBBox;else{var a=M.get("cacheCanvasBBox"),f=a&&!!(a.width&&a.height),g=M.getCanvasBBox(),D=g&&!!(g.width&&g.height);f&&D?l=Ar(a,g):f?l=a:D&&(l=g)}return l}function kr(M){if(!M.length)return null;var l=[],a=[],f=[],g=[];return(0,j.each)(M,function(D){var Y=wr(D);Y&&(l.push(Y.minX),a.push(Y.minY),f.push(Y.maxX),g.push(Y.maxY))}),{minX:(0,j.min)(l),minY:(0,j.min)(a),maxX:(0,j.max)(f),maxY:(0,j.max)(g)}}function L(M,l){return!M||!l||!Kt(M,l)?null:{minX:Math.max(M.minX,l.minX),minY:Math.max(M.minY,l.minY),maxX:Math.min(M.maxX,l.maxX),maxY:Math.min(M.maxY,l.maxY)}}var p=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.onCanvasChange=function(a){tr(this,a)},l.prototype.getShapeBase=function(){return dt},l.prototype.getGroupBase=function(){return l},l.prototype._applyClip=function(a,f){f&&(a.save(),O(a,f),f.createPath(a),a.restore(),a.clip(),f._afterDraw())},l.prototype.cacheCanvasBBox=function(){var a=this.cfg.children,f=[],g=[];(0,j.each)(a,function(Vt){var lr=Vt.cfg.cacheCanvasBBox;lr&&Vt.cfg.isInView&&(f.push(lr.minX,lr.maxX),g.push(lr.minY,lr.maxY))});var D=null;if(f.length){var Y=(0,j.min)(f),z=(0,j.max)(f),gt=(0,j.min)(g),wt=(0,j.max)(g);D={minX:Y,minY:gt,x:Y,y:gt,maxX:z,maxY:wt,width:z-Y,height:wt-gt};var St=this.cfg.canvas;if(St){var xt=St.getViewRange();this.set("isInView",Kt(D,xt))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",D)},l.prototype.draw=function(a,f){var g=this.cfg.children,D=f?this.cfg.refresh:!0;g.length&&D&&(a.save(),O(a,this),this._applyClip(a,this.getClip()),vt(a,g,f),a.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},l.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},l}($.pA),y=p,_=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},a),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},l.prototype.getShapeBase=function(){return dt},l.prototype.getGroupBase=function(){return y},l.prototype.onCanvasChange=function(a){tr(this,a)},l.prototype.calculateBBox=function(){var a=this.get("type"),f=this.getHitLineWidth(),g=(0,$.bj)(a),D=g(this),Y=f/2,z=D.x-Y,gt=D.y-Y,wt=D.x+D.width+Y,St=D.y+D.height+Y;return{x:z,minX:z,y:gt,minY:gt,width:D.width+f,height:D.height+f,maxX:wt,maxY:St}},l.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},l.prototype.isStroke=function(){return!!this.attrs.stroke},l.prototype._applyClip=function(a,f){f&&(a.save(),O(a,f),f.createPath(a),a.restore(),a.clip(),f._afterDraw())},l.prototype.draw=function(a,f){var g=this.cfg.clipShape;if(f){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var D=this.getCanvasBBox();if(!Kt(f,D)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}a.save(),O(a,this),this._applyClip(a,g),this.drawPath(a),a.restore(),this._afterDraw()},l.prototype.getCanvasViewBox=function(){var a=this.cfg.canvas;return a?a.getViewRange():null},l.prototype.cacheCanvasBBox=function(){var a=this.getCanvasViewBox();if(a){var f=this.getCanvasBBox(),g=Kt(f,a);this.set("isInView",g),g?this.set("cacheCanvasBBox",f):this.set("cacheCanvasBBox",null)}},l.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},l.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},l.prototype.drawPath=function(a){this.createPath(a),this.strokeAndFill(a),this.afterDrawPath(a)},l.prototype.fill=function(a){a.fill()},l.prototype.stroke=function(a){a.stroke()},l.prototype.strokeAndFill=function(a){var f=this.attrs,g=f.lineWidth,D=f.opacity,Y=f.strokeOpacity,z=f.fillOpacity;this.isFill()&&(!(0,j.isNil)(z)&&z!==1?(a.globalAlpha=z,this.fill(a),a.globalAlpha=D):this.fill(a)),this.isStroke()&&g>0&&(!(0,j.isNil)(Y)&&Y!==1&&(a.globalAlpha=Y),this.stroke(a)),this.afterDrawPath(a)},l.prototype.createPath=function(a){},l.prototype.afterDrawPath=function(a){},l.prototype.isInShape=function(a,f){var g=this.isStroke(),D=this.isFill(),Y=this.getHitLineWidth();return this.isInStrokeOrPath(a,f,g,D,Y)},l.prototype.isInStrokeOrPath=function(a,f,g,D,Y){return!1},l.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var a=this.attrs;return a.lineWidth+a.lineAppendWidth},l}($.zr),s=_,d=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},a),{x:0,y:0,r:0})},l.prototype.isInStrokeOrPath=function(a,f,g,D,Y){var z=this.attr(),gt=z.x,wt=z.y,St=z.r,xt=Y/2,Vt=_t(gt,wt,a,f);return D&&g?Vt<=St+xt:D?Vt<=St:g?Vt>=St-xt&&Vt<=St+xt:!1},l.prototype.createPath=function(a){var f=this.attr(),g=f.x,D=f.y,Y=f.r;a.beginPath(),a.arc(g,D,Y,0,Math.PI*2,!1),a.closePath()},l}(s),P=d;function R(M,l,a,f){return M/(a*a)+l/(f*f)}var W=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},a),{x:0,y:0,rx:0,ry:0})},l.prototype.isInStrokeOrPath=function(a,f,g,D,Y){var z=this.attr(),gt=Y/2,wt=z.x,St=z.y,xt=z.rx,Vt=z.ry,lr=(a-wt)*(a-wt),Xr=(f-St)*(f-St);return D&&g?R(lr,Xr,xt+gt,Vt+gt)<=1:D?R(lr,Xr,xt,Vt)<=1:g?R(lr,Xr,xt-gt,Vt-gt)>=1&&R(lr,Xr,xt+gt,Vt+gt)<=1:!1},l.prototype.createPath=function(a){var f=this.attr(),g=f.x,D=f.y,Y=f.rx,z=f.ry;if(a.beginPath(),a.ellipse)a.ellipse(g,D,Y,z,0,0,Math.PI*2,!1);else{var gt=Y>z?Y:z,wt=Y>z?1:Y/z,St=Y>z?z/Y:1;a.save(),a.translate(g,D),a.scale(wt,St),a.arc(0,0,gt,0,Math.PI*2),a.restore(),a.closePath()}},l}(s),ot=W;function Lt(M){return M instanceof HTMLElement&&(0,j.isString)(M.nodeName)&&M.nodeName.toUpperCase()==="CANVAS"}var kt=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},a),{x:0,y:0,width:0,height:0})},l.prototype.initAttrs=function(a){this._setImage(a.img)},l.prototype.isStroke=function(){return!1},l.prototype.isOnlyHitBox=function(){return!0},l.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var a=this.get("canvas");a?a.draw():this.createPath(this.get("context"))}},l.prototype._setImage=function(a){var f=this,g=this.attrs;if((0,j.isString)(a)){var D=new Image;D.onload=function(){if(f.destroyed)return!1;f.attr("img",D),f.set("loading",!1),f._afterLoading();var Y=f.get("callback");Y&&Y.call(f)},D.crossOrigin="Anonymous",D.src=a,this.set("loading",!0)}else a instanceof Image?(g.width||(g.width=a.width),g.height||(g.height=a.height)):Lt(a)&&(g.width||(g.width=Number(a.getAttribute("width"))),g.height||(g.height,Number(a.getAttribute("height"))))},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),a==="img"&&this._setImage(f)},l.prototype.createPath=function(a){if(this.get("loading")){this.set("toDraw",!0),this.set("context",a);return}var f=this.attr(),g=f.x,D=f.y,Y=f.width,z=f.height,gt=f.sx,wt=f.sy,St=f.swidth,xt=f.sheight,Vt=f.img;(Vt instanceof Image||Lt(Vt))&&(!(0,j.isNil)(gt)&&!(0,j.isNil)(wt)&&!(0,j.isNil)(St)&&!(0,j.isNil)(xt)?a.drawImage(Vt,gt,wt,St,xt,g,D,Y,z):a.drawImage(Vt,g,D,Y,z))},l}(s),Zt=kt,pr=Xt(89838);function A(M,l,a,f,g,D,Y){var z=Math.min(M,a),gt=Math.max(M,a),wt=Math.min(l,f),St=Math.max(l,f),xt=g/2;return D>=z-xt&&D<=gt+xt&&Y>=wt-xt&&Y<=St+xt?pr.x1.pointToLine(M,l,a,f,D,Y)<=g/2:!1}var E=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},a),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},l.prototype.initAttrs=function(a){this.setArrow()},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),this.setArrow()},l.prototype.setArrow=function(){var a=this.attr(),f=a.x1,g=a.y1,D=a.x2,Y=a.y2,z=a.startArrow,gt=a.endArrow;z&&Nt(this,a,D,Y,f,g),gt&&Pt(this,a,f,g,D,Y)},l.prototype.isInStrokeOrPath=function(a,f,g,D,Y){if(!g||!Y)return!1;var z=this.attr(),gt=z.x1,wt=z.y1,St=z.x2,xt=z.y2;return A(gt,wt,St,xt,Y,a,f)},l.prototype.createPath=function(a){var f=this.attr(),g=f.x1,D=f.y1,Y=f.x2,z=f.y2,gt=f.startArrow,wt=f.endArrow,St={dx:0,dy:0},xt={dx:0,dy:0};gt&>.d&&(St=Ct(g,D,Y,z,f.startArrow.d)),wt&&wt.d&&(xt=Ct(g,D,Y,z,f.endArrow.d)),a.beginPath(),a.moveTo(g+St.dx,D+St.dy),a.lineTo(Y-xt.dx,z-xt.dy)},l.prototype.afterDrawPath=function(a){var f=this.get("startArrowShape"),g=this.get("endArrowShape");f&&f.draw(a),g&&g.draw(a)},l.prototype.getTotalLength=function(){var a=this.attr(),f=a.x1,g=a.y1,D=a.x2,Y=a.y2;return pr.x1.length(f,g,D,Y)},l.prototype.getPoint=function(a){var f=this.attr(),g=f.x1,D=f.y1,Y=f.x2,z=f.y2;return pr.x1.pointAt(g,D,Y,z,a)},l}(s),N=E,G=Xt(80389),Z={circle:function(M,l,a){return[["M",M-a,l],["A",a,a,0,1,0,M+a,l],["A",a,a,0,1,0,M-a,l]]},square:function(M,l,a){return[["M",M-a,l-a],["L",M+a,l-a],["L",M+a,l+a],["L",M-a,l+a],["Z"]]},diamond:function(M,l,a){return[["M",M-a,l],["L",M,l-a],["L",M+a,l],["L",M,l+a],["Z"]]},triangle:function(M,l,a){var f=a*Math.sin(1/3*Math.PI);return[["M",M-a,l+f],["L",M,l-f],["L",M+a,l+f],["Z"]]},"triangle-down":function(M,l,a){var f=a*Math.sin(1/3*Math.PI);return[["M",M-a,l-f],["L",M+a,l-f],["L",M,l+f],["Z"]]}},nt=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.initAttrs=function(a){this._resetParamsCache()},l.prototype._resetParamsCache=function(){this.set("paramsCache",{})},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),["symbol","x","y","r","radius"].indexOf(a)!==-1&&this._resetParamsCache()},l.prototype.isOnlyHitBox=function(){return!0},l.prototype._getR=function(a){return(0,j.isNil)(a.r)?a.radius:a.r},l.prototype._getPath=function(){var a=this.attr(),f=a.x,g=a.y,D=a.symbol||"circle",Y=this._getR(a),z,gt;if((0,j.isFunction)(D))z=D,gt=z(f,g,Y),gt=(0,G.wb)(gt);else{if(z=l.Symbols[D],!z)return console.warn(D+" marker is not supported."),null;gt=z(f,g,Y)}return gt},l.prototype.createPath=function(a){var f=this._getPath(),g=this.get("paramsCache");ur(this,a,{path:f},g)},l.Symbols=Z,l}(s),rt=nt;function st(M,l,a){var f=(0,$.LF)();return M.createPath(f),f.isPointInPath(l,a)}var K=1e-6;function yt(M){return Math.abs(M)0!=yt(z[1]-a)>0&&yt(l-(a-Y[1])*(Y[0]-z[0])/(Y[1]-z[1])-Y[0])<0&&(f=!f)}return f}var rr=Xt(31506),It=Xt(77160);function zt(M,l,a,f,g,D,Y,z){var gt=(Math.atan2(z-l,Y-M)+Math.PI*2)%(Math.PI*2);if(gtg)return!1;var wt={x:M+a*Math.cos(gt),y:l+a*Math.sin(gt)};return _t(wt.x,wt.y,Y,z)<=D/2}var Gt=rr.vs;function er(M){for(var l=!1,a=M.length,f=0;fUr?Kr:Ur,h=Kr>Ur?1:Kr/Ur,m=Kr>Ur?Ur/Kr:1,b=Gt(null,[["t",-Jr,-qr],["r",-ge],["s",1/h,1/m]]);It.transformMat3($r,$r,b),D=zt(0,0,we,Or,te,l,$r[0],$r[1]);break;default:break}if(D)break}}return D}function Ut(M){for(var l=M.length,a=[],f=[],g=[],D=0;D0&&f.push(g),{polygons:a,polylines:f}}var B=(0,F.__assign)({hasArc:er,extractPolygons:Ut,isPointInStroke:Dt},$.Gk);function x(M,l,a){for(var f=!1,g=0;g=St[0]&&a<=St[1]&&(g=(a-St[0])/(St[1]-St[0]),D=xt)});var z=Y[D];if((0,j.isNil)(z)||(0,j.isNil)(D))return null;var gt=z.length,wt=Y[D+1];return pr.Ll.pointAt(z[gt-2],z[gt-1],wt[1],wt[2],wt[3],wt[4],wt[5],wt[6],g)},l.prototype._calculateCurve=function(){var a=this.attr().path;this.set("curve",B.pathToCurve(a))},l.prototype._setTcache=function(){var a=0,f=0,g=[],D,Y,z,gt,wt=this.get("curve");if(!!wt){if((0,j.each)(wt,function(St,xt){z=wt[xt+1],gt=St.length,z&&(a+=pr.Ll.length(St[gt-2],St[gt-1],z[1],z[2],z[3],z[4],z[5],z[6])||0)}),this.set("totalLength",a),a===0){this.set("tCache",[]);return}(0,j.each)(wt,function(St,xt){z=wt[xt+1],gt=St.length,z&&(D=[],D[0]=f/a,Y=pr.Ll.length(St[gt-2],St[gt-1],z[1],z[2],z[3],z[4],z[5],z[6]),f+=Y||0,D[1]=f/a,g.push(D))}),this.set("tCache",g)}},l.prototype.getStartTangent=function(){var a=this.getSegments(),f;if(a.length>1){var g=a[0].currentPoint,D=a[1].currentPoint,Y=a[1].startTangent;f=[],Y?(f.push([g[0]-Y[0],g[1]-Y[1]]),f.push([g[0],g[1]])):(f.push([D[0],D[1]]),f.push([g[0],g[1]]))}return f},l.prototype.getEndTangent=function(){var a=this.getSegments(),f=a.length,g;if(f>1){var D=a[f-2].currentPoint,Y=a[f-1].currentPoint,z=a[f-1].endTangent;g=[],z?(g.push([Y[0]-z[0],Y[1]-z[1]]),g.push([Y[0],Y[1]])):(g.push([D[0],D[1]]),g.push([Y[0],Y[1]]))}return g},l}(s),C=o;function k(M,l,a,f,g){var D=M.length;if(D<2)return!1;for(var Y=0;Y=z[0]&&a<=z[1]&&(D=(a-z[0])/(z[1]-z[0]),Y=gt)}),pr.x1.pointAt(f[Y][0],f[Y][1],f[Y+1][0],f[Y+1][1],D)},l.prototype._setTcache=function(){var a=this.attr().points;if(!(!a||a.length===0)){var f=this.getTotalLength();if(!(f<=0)){var g=0,D=[],Y,z;(0,j.each)(a,function(gt,wt){a[wt+1]&&(Y=[],Y[0]=g/f,z=pr.x1.length(gt[0],gt[1],a[wt+1][0],a[wt+1][1]),g+=z,Y[1]=g/f,D.push(Y))}),this.set("tCache",D)}}},l.prototype.getStartTangent=function(){var a=this.attr().points,f=[];return f.push([a[1][0],a[1][1]]),f.push([a[0][0],a[0][1]]),f},l.prototype.getEndTangent=function(){var a=this.attr().points,f=a.length-1,g=[];return g.push([a[f-1][0],a[f-1][1]]),g.push([a[f][0],a[f][1]]),g},l}(s),pt=at;function br(M,l,a,f,g,D,Y){var z=g/2;return mr(M-z,l-z,a,g,D,Y)||mr(M+a-z,l-z,g,f,D,Y)||mr(M+z,l+f-z,a,g,D,Y)||mr(M-z,l+z,g,f,D,Y)}function xr(M,l,a,f,g,D,Y,z){var gt=D/2;return A(M+g,l,M+a-g,l,D,Y,z)||A(M+a,l+g,M+a,l+f-g,D,Y,z)||A(M+a-g,l+f,M+g,l+f,D,Y,z)||A(M,l+f-g,M,l+g,D,Y,z)||zt(M+a-g,l+g,g,1.5*Math.PI,2*Math.PI,D,Y,z)||zt(M+a-g,l+f-g,g,0,.5*Math.PI,D,Y,z)||zt(M+g,l+f-g,g,.5*Math.PI,Math.PI,D,Y,z)||zt(M+g,l+g,g,Math.PI,1.5*Math.PI,D,Y,z)}var Gr=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},a),{x:0,y:0,width:0,height:0,radius:0})},l.prototype.isInStrokeOrPath=function(a,f,g,D,Y){var z=this.attr(),gt=z.x,wt=z.y,St=z.width,xt=z.height,Vt=z.radius;if(Vt){var Xr=!1;return g&&(Xr=xr(gt,wt,St,xt,Vt,Y,a,f)),!Xr&&D&&(Xr=st(this,a,f)),Xr}else{var lr=Y/2;if(D&&g)return mr(gt-lr,wt-lr,St+lr,xt+lr,a,f);if(D)return mr(gt,wt,St,xt,a,f);if(g)return br(gt,wt,St,xt,Y,a,f)}},l.prototype.createPath=function(a){var f=this.attr(),g=f.x,D=f.y,Y=f.width,z=f.height,gt=f.radius;if(a.beginPath(),gt===0)a.rect(g,D,Y,z);else{var wt=Rt(gt),St=wt[0],xt=wt[1],Vt=wt[2],lr=wt[3];a.moveTo(g+St,D),a.lineTo(g+Y-xt,D),xt!==0&&a.arc(g+Y-xt,D+xt,xt,-Math.PI/2,0),a.lineTo(g+Y,D+z-Vt),Vt!==0&&a.arc(g+Y-Vt,D+z-Vt,Vt,0,Math.PI/2),a.lineTo(g+lr,D+z),lr!==0&&a.arc(g+lr,D+z-lr,lr,Math.PI/2,Math.PI),a.lineTo(g,D+St),St!==0&&a.arc(g+St,D+St,St,Math.PI,Math.PI*1.5),a.closePath()}},l}(s),Vr=Gr,ae=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultAttrs=function(){var a=M.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},a),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},l.prototype.isOnlyHitBox=function(){return!0},l.prototype.initAttrs=function(a){this._assembleFont(),a.text&&this._setText(a.text)},l.prototype._assembleFont=function(){var a=this.attrs;a.font=(0,$.$O)(a)},l.prototype._setText=function(a){var f=null;(0,j.isString)(a)&&a.indexOf(` `)!==-1&&(f=a.split(` `)),this.set("textArr",f)},l.prototype.onAttrChange=function(a,f,g){M.prototype.onAttrChange.call(this,a,f,g),a.startsWith("font")&&this._assembleFont(),a==="text"&&this._setText(f)},l.prototype._getSpaceingY=function(){var a=this.attrs,f=a.lineHeight,g=a.fontSize*1;return f?f-g:g*.14},l.prototype._drawTextArr=function(a,f,g){var D=this.attrs,Y=D.textBaseline,z=D.x,gt=D.y,wt=D.fontSize*1,St=this._getSpaceingY(),xt=(0,$.FE)(D.text,D.fontSize,D.lineHeight),Vt;(0,j.each)(f,function(lr,Xr){Vt=gt+Xr*(St+wt)-xt+wt,Y==="middle"&&(Vt+=xt-wt-(xt-wt)/2),Y==="top"&&(Vt+=xt-wt),(0,j.isNil)(lr)||(g?a.fillText(lr,z,Vt):a.strokeText(lr,z,Vt))})},l.prototype._drawText=function(a,f){var g=this.attr(),D=g.x,Y=g.y,z=this.get("textArr");if(z)this._drawTextArr(a,z,f);else{var gt=g.text;(0,j.isNil)(gt)||(f?a.fillText(gt,D,Y):a.strokeText(gt,D,Y))}},l.prototype.strokeAndFill=function(a){var f=this.attrs,g=f.lineWidth,D=f.opacity,Y=f.strokeOpacity,z=f.fillOpacity;this.isStroke()&&g>0&&(!(0,j.isNil)(Y)&&Y!==1&&(a.globalAlpha=D),this.stroke(a)),this.isFill()&&(!(0,j.isNil)(z)&&z!==1?(a.globalAlpha=z,this.fill(a),a.globalAlpha=D):this.fill(a)),this.afterDrawPath(a)},l.prototype.fill=function(a){this._drawText(a,!0)},l.prototype.stroke=function(a){this._drawText(a,!1)},l}(s),he=ae;function re(M,l){if(l){var a=(0,$.U_)(l);return(0,$.rG)(a,M)}return M}function Me(M,l,a){var f=M.getTotalMatrix();if(f){var g=re([l,a,1],f),D=g[0],Y=g[1];return[D,Y]}return[l,a]}function me(M,l,a){if(M.isCanvas&&M.isCanvas())return!0;if(!(0,$.pP)(M)||M.cfg.isInView===!1)return!1;if(M.cfg.clipShape){var f=Me(M,l,a),g=f[0],D=f[1];if(M.isClipped(g,D))return!1}var Y=M.cfg.cacheCanvasBBox||M.getCanvasBBox();return l>=Y.minX&&l<=Y.maxX&&a>=Y.minY&&a<=Y.maxY}function ye(M,l,a){if(!me(M,l,a))return null;for(var f=null,g=M.getChildren(),D=g.length,Y=D-1;Y>=0;Y--){var z=g[Y];if(z.isGroup())f=ye(z,l,a);else if(me(z,l,a)){var gt=z,wt=Me(z,l,a),St=wt[0],xt=wt[1];gt.isInShape(St,xt)&&(f=z)}if(f)break}return f}var Se=function(M){(0,F.__extends)(l,M);function l(){return M!==null&&M.apply(this,arguments)||this}return l.prototype.getDefaultCfg=function(){var a=M.prototype.getDefaultCfg.call(this);return a.renderer="canvas",a.autoDraw=!0,a.localRefresh=!0,a.refreshElements=[],a.clipView=!0,a.quickHit=!1,a},l.prototype.onCanvasChange=function(a){(a==="attr"||a==="sort"||a==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},l.prototype.getShapeBase=function(){return dt},l.prototype.getGroupBase=function(){return y},l.prototype.getPixelRatio=function(){var a=this.get("pixelRatio")||gr();return a>=1?Math.ceil(a):1},l.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},l.prototype.createDom=function(){var a=document.createElement("canvas"),f=a.getContext("2d");return this.set("context",f),a},l.prototype.setDOMSize=function(a,f){M.prototype.setDOMSize.call(this,a,f);var g=this.get("context"),D=this.get("el"),Y=this.getPixelRatio();D.width=Y*a,D.height=Y*f,Y>1&&g.scale(Y,Y)},l.prototype.clear=function(){M.prototype.clear.call(this),this._clearFrame();var a=this.get("context"),f=this.get("el");a.clearRect(0,0,f.width,f.height)},l.prototype.getShape=function(a,f){var g;return this.get("quickHit")?g=ye(this,a,f):g=M.prototype.getShape.call(this,a,f,null),g},l.prototype._getRefreshRegion=function(){var a=this.get("refreshElements"),f=this.getViewRange(),g;if(a.length&&a[0]===this)g=f;else if(g=kr(a),g){g.minX=Math.floor(g.minX),g.minY=Math.floor(g.minY),g.maxX=Math.ceil(g.maxX),g.maxY=Math.ceil(g.maxY),g.maxY+=1;var D=this.get("clipView");D&&(g=L(g,f))}return g},l.prototype.refreshElement=function(a){var f=this.get("refreshElements");f.push(a)},l.prototype._clearFrame=function(){var a=this.get("drawFrame");a&&((0,j.clearAnimationFrame)(a),this.set("drawFrame",null),this.set("refreshElements",[]))},l.prototype.draw=function(){var a=this.get("drawFrame");this.get("autoDraw")&&a||this._startDraw()},l.prototype._drawAll=function(){var a=this.get("context"),f=this.get("el"),g=this.getChildren();a.clearRect(0,0,f.width,f.height),O(a,this),vt(a,g),this.set("refreshElements",[])},l.prototype._drawRegion=function(){var a=this.get("context"),f=this.get("refreshElements"),g=this.getChildren(),D=this._getRefreshRegion();D?(a.clearRect(D.minX,D.minY,D.maxX-D.minX,D.maxY-D.minY),a.save(),a.beginPath(),a.rect(D.minX,D.minY,D.maxX-D.minX,D.maxY-D.minY),a.clip(),O(a,this),mt(this,g,D),vt(a,g,D),a.restore()):f.length&&ir(f),(0,j.each)(f,function(Y){Y.get("hasChanged")&&Y.set("hasChanged",!1)}),this.set("refreshElements",[])},l.prototype._startDraw=function(){var a=this,f=this.get("drawFrame");f||(f=(0,j.requestAnimationFrame)(function(){a.get("localRefresh")?a._drawRegion():a._drawAll(),a.set("drawFrame",null)}),this.set("drawFrame",f))},l.prototype.skipDraw=function(){},l.prototype.removeDom=function(){var a=this.get("el");a.width=0,a.height=0,a.parentNode.removeChild(a)},l}($.$Z),Ae=Se,Ce="0.5.12"},89838:function(ne,Pr,Xt){"use strict";Xt.d(Pr,{wN:function(){return mt},Ll:function(){return Tr},x1:function(){return dr},aH:function(){return tr},lD:function(){return Wr},Zr:function(){return dt}});var dt={};Xt.r(dt),Xt.d(dt,{distance:function(){return j},getBBoxByArray:function(){return _t},getBBoxRange:function(){return mr},isNumberEqual:function(){return gr},piMod:function(){return Kt}});function F(L){return Math.min.apply(null,L)}function $(L){return Math.max.apply(null,L)}function j(L,p,y,_){var s=L-y,d=p-_;return Math.sqrt(s*s+d*d)}function gr(L,p){return Math.abs(L-p)<.001}function _t(L,p){var y=F(L),_=F(p),s=$(L),d=$(p);return{x:y,y:_,width:s-y,height:d-_}}function mr(L,p,y,_){return{minX:F([L,y]),maxX:$([L,y]),minY:F([p,_]),maxY:$([p,_])}}function Kt(L){return(L+Math.PI*2)%(Math.PI*2)}var Ar=Xt(31437),dr={box:function(L,p,y,_){return _t([L,y],[p,_])},length:function(L,p,y,_){return j(L,p,y,_)},pointAt:function(L,p,y,_,s){return{x:(1-s)*L+s*y,y:(1-s)*p+s*_}},pointDistance:function(L,p,y,_,s,d){var P=(y-L)*(s-L)+(_-p)*(d-p);if(P<0)return j(L,p,s,d);var R=(y-L)*(y-L)+(_-p)*(_-p);return P>R?j(y,_,s,d):this.pointToLine(L,p,y,_,s,d)},pointToLine:function(L,p,y,_,s,d){var P=[y-L,_-p];if(Ar.exactEquals(P,[0,0]))return Math.sqrt((s-L)*(s-L)+(d-p)*(d-p));var R=[-P[1],P[0]];Ar.normalize(R,R);var W=[s-L,d-p];return Math.abs(Ar.dot(W,R))},tangentAngle:function(L,p,y,_){return Math.atan2(_-p,y-L)}},fr=1e-4;function At(L,p,y,_,s,d){var P,R=Infinity,W=[y,_],ot=20;d&&d>200&&(ot=d/10);for(var Lt=1/ot,kt=Lt/10,Zt=0;Zt<=ot;Zt++){var pr=Zt*Lt,A=[s.apply(null,L.concat([pr])),s.apply(null,p.concat([pr]))],E=j(W[0],W[1],A[0],A[1]);E=0&&E=0?[s]:[]}function yr(L,p,y,_){return 2*(1-_)*(p-L)+2*_*(y-p)}function Lr(L,p,y,_,s,d,P){var R=$t(L,y,s,P),W=$t(p,_,d,P),ot=dr.pointAt(L,p,y,_,P),Lt=dr.pointAt(y,_,s,d,P);return[[L,p,ot.x,ot.y,R,W],[R,W,Lt.x,Lt.y,s,d]]}function Br(L,p,y,_,s,d,P){if(P===0)return(j(L,p,y,_)+j(y,_,s,d)+j(L,p,s,d))/2;var R=Lr(L,p,y,_,s,d,.5),W=R[0],ot=R[1];return W.push(P-1),ot.push(P-1),Br.apply(null,W)+Br.apply(null,ot)}var Wr={box:function(L,p,y,_,s,d){var P=ar(L,y,s)[0],R=ar(p,_,d)[0],W=[L,s],ot=[p,d];return P!==void 0&&W.push($t(L,y,s,P)),R!==void 0&&ot.push($t(p,_,d,R)),_t(W,ot)},length:function(L,p,y,_,s,d){return Br(L,p,y,_,s,d,3)},nearestPoint:function(L,p,y,_,s,d,P,R){return At([L,y,s],[p,_,d],P,R,$t)},pointDistance:function(L,p,y,_,s,d,P,R){var W=this.nearestPoint(L,p,y,_,s,d,P,R);return j(W.x,W.y,P,R)},interpolationAt:$t,pointAt:function(L,p,y,_,s,d,P){return{x:$t(L,y,s,P),y:$t(p,_,d,P)}},divide:function(L,p,y,_,s,d,P){return Lr(L,p,y,_,s,d,P)},tangentAngle:function(L,p,y,_,s,d,P){var R=yr(L,y,s,P),W=yr(p,_,d,P),ot=Math.atan2(W,R);return Kt(ot)}};function Rt(L,p,y,_,s){var d=1-s;return d*d*d*L+3*p*s*d*d+3*y*s*s*d+_*s*s*s}function sr(L,p,y,_,s){var d=1-s;return 3*(d*d*(p-L)+2*d*s*(y-p)+s*s*(_-y))}function Cr(L,p,y,_){var s=-3*L+9*p-9*y+3*_,d=6*L-12*p+6*y,P=3*p-3*L,R=[],W,ot,Lt;if(gr(s,0))gr(d,0)||(W=-P/d,W>=0&&W<=1&&R.push(W));else{var kt=d*d-4*s*P;gr(kt,0)?R.push(-d/(2*s)):kt>0&&(Lt=Math.sqrt(kt),W=(-d+Lt)/(2*s),ot=(-d-Lt)/(2*s),W>=0&&W<=1&&R.push(W),ot>=0&&ot<=1&&R.push(ot))}return R}function Sr(L,p,y,_,s,d,P,R,W){var ot=Rt(L,y,s,P,W),Lt=Rt(p,_,d,R,W),kt=dr.pointAt(L,p,y,_,W),Zt=dr.pointAt(y,_,s,d,W),pr=dr.pointAt(s,d,P,R,W),A=dr.pointAt(kt.x,kt.y,Zt.x,Zt.y,W),E=dr.pointAt(Zt.x,Zt.y,pr.x,pr.y,W);return[[L,p,kt.x,kt.y,A.x,A.y,ot,Lt],[ot,Lt,E.x,E.y,pr.x,pr.y,P,R]]}function Er(L,p,y,_,s,d,P,R,W){if(W===0)return Jt([L,y,s,P],[p,_,d,R]);var ot=Sr(L,p,y,_,s,d,P,R,.5),Lt=ot[0],kt=ot[1];return Lt.push(W-1),kt.push(W-1),Er.apply(null,Lt)+Er.apply(null,kt)}var Tr={extrema:Cr,box:function(L,p,y,_,s,d,P,R){for(var W=[L,P],ot=[p,R],Lt=Cr(L,y,s,P),kt=Cr(p,_,d,R),Zt=0;Zt0?y:y*-1}var zr={box:function(L,p,y,_){return{x:L-y,y:p-_,width:y*2,height:_*2}},length:function(L,p,y,_){return Math.PI*(3*(y+_)-Math.sqrt((3*y+_)*(y+3*_)))},nearestPoint:function(L,p,y,_,s,d){var P=y,R=_;if(P===0||R===0)return{x:L,y:p};for(var W=s-L,ot=d-p,Lt=Math.abs(W),kt=Math.abs(ot),Zt=P*P,pr=R*R,A=Math.PI/4,E,N,G=0;G<4;G++){E=P*Math.cos(A),N=R*Math.sin(A);var Z=(Zt-pr)*Math.pow(Math.cos(A),3)/P,nt=(pr-Zt)*Math.pow(Math.sin(A),3)/R,rt=E-Z,st=N-nt,K=Lt-Z,yt=kt-nt,lt=Math.hypot(st,rt),Yt=Math.hypot(yt,K),rr=lt*Math.asin((rt*yt-st*K)/(lt*Yt)),It=rr/Math.sqrt(Zt+pr-E*E-N*N);A+=It,A=Math.min(Math.PI/2,Math.max(0,A))}return{x:L+Dr(E,W),y:p+Dr(N,ot)}},pointDistance:function(L,p,y,_,s,d){var P=this.nearestPoint(L,p,y,_,s,d);return j(P.x,P.y,s,d)},pointAt:function(L,p,y,_,s){var d=2*Math.PI*s;return{x:L+y*Math.cos(d),y:p+_*Math.sin(d)}},tangentAngle:function(L,p,y,_,s){var d=2*Math.PI*s,P=Math.atan2(_*Math.cos(d),-y*Math.sin(d));return Kt(P)}};function ft(L,p,y,_,s,d,P,R){return-1*y*Math.cos(s)*Math.sin(R)-_*Math.sin(s)*Math.cos(R)}function ut(L,p,y,_,s,d,P,R){return-1*y*Math.sin(s)*Math.sin(R)+_*Math.cos(s)*Math.cos(R)}function Mt(L,p,y){return Math.atan(-p/L*Math.tan(y))}function Ct(L,p,y){return Math.atan(p/(L*Math.tan(y)))}function Nt(L,p,y,_,s,d){return y*Math.cos(s)*Math.cos(d)-_*Math.sin(s)*Math.sin(d)+L}function Pt(L,p,y,_,s,d){return y*Math.sin(s)*Math.cos(d)+_*Math.cos(s)*Math.sin(d)+p}function v(L,p,y,_){var s=Math.atan2(_*L,y*p);return(s+Math.PI*2)%(Math.PI*2)}function O(L,p,y){return{x:L*Math.cos(y),y:p*Math.sin(y)}}function vt(L,p,y){var _=Math.cos(y),s=Math.sin(y);return[L*_-p*s,L*s+p*_]}var mt={box:function(L,p,y,_,s,d,P){for(var R=Mt(y,_,s),W=Infinity,ot=-Infinity,Lt=[d,P],kt=-Math.PI*2;kt<=Math.PI*2;kt+=Math.PI){var Zt=R+kt;dot&&(ot=pr)}for(var A=Ct(y,_,s),E=Infinity,N=-Infinity,G=[d,P],kt=-Math.PI*2;kt<=Math.PI*2;kt+=Math.PI){var Z=A+kt;dN&&(N=nt)}return{x:W,y:E,width:ot-W,height:N-E}},length:function(L,p,y,_,s,d,P){},nearestPoint:function(L,p,y,_,s,d,P,R,W){var ot=vt(R-L,W-p,-s),Lt=ot[0],kt=ot[1],Zt=zr.nearestPoint(0,0,y,_,Lt,kt),pr=v(y,_,Zt.x,Zt.y);prP&&(Zt=O(y,_,P));var A=vt(Zt.x,Zt.y,s);return{x:A[0]+L,y:A[1]+p}},pointDistance:function(L,p,y,_,s,d,P,R,W){var ot=this.nearestPoint(L,p,y,_,R,W);return j(ot.x,ot.y,R,W)},pointAt:function(L,p,y,_,s,d,P,R){var W=(P-d)*R+d;return{x:Nt(L,p,y,_,s,W),y:Pt(L,p,y,_,s,W)}},tangentAngle:function(L,p,y,_,s,d,P,R){var W=(P-d)*R+d,ot=ft(L,p,y,_,s,d,P,W),Lt=ut(L,p,y,_,s,d,P,W);return Kt(Math.atan2(Lt,ot))}};function Ht(L){for(var p=0,y=[],_=0;_1||p<0||L.length<2)return null;var y=Ht(L),_=y.segments,s=y.totalLength;if(s===0)return{x:L[0][0],y:L[0][1]};for(var d=0,P=null,R=0;R<_.length;R++){var W=_[R],ot=W.from,Lt=W.to,kt=W.length/s;if(p>=d&&p<=d+kt){var Zt=(p-d)/kt;P=dr.pointAt(ot[0],ot[1],Lt[0],Lt[1],Zt);break}d+=kt}return P}function cr(L,p){if(p>1||p<0||L.length<2)return 0;for(var y=Ht(L),_=y.segments,s=y.totalLength,d=0,P=0,R=0;R<_.length;R++){var W=_[R],ot=W.from,Lt=W.to,kt=W.length/s;if(p>=d&&p<=d+kt){P=Math.atan2(Lt[1]-ot[1],Lt[0]-ot[0]);break}d+=kt}return P}function ur(L,p,y){for(var _=Infinity,s=0;sx)o.insertBefore(B,k);else if(U0&&(C?"stroke"in k?this._setColor(o,"stroke",at):"strokeStyle"in k&&this._setColor(o,"stroke",pt):this._setColor(o,"stroke",at||pt),xr&&Vr.setAttribute(_t.strokeOpacity,xr),Gr&&Vr.setAttribute(_t.lineWidth,Gr))},x.prototype._setColor=function(o,C,k){var U=this.get("el");if(!k){U.setAttribute(_t[C],"none");return}if(k=k.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(k)){var et=o.find("gradient",k);et||(et=o.addGradient(k)),U.setAttribute(_t[C],"url(#"+et+")")}else if(/^[p,P]{1}[\s]*\(/.test(k)){var et=o.find("pattern",k);et||(et=o.addPattern(k)),U.setAttribute(_t[C],"url(#"+et+")")}else U.setAttribute(_t[C],k)},x.prototype.shadow=function(o,C){var k=this.attr(),U=C||k,et=U.shadowOffsetX,at=U.shadowOffsetY,pt=U.shadowBlur,br=U.shadowColor;(et||at||pt||br)&&At(this,o)},x.prototype.transform=function(o){var C=this.attr(),k=(o||C).matrix;k&&Jt(this)},x.prototype.isInShape=function(o,C){return this.isPointInPath(o,C)},x.prototype.isPointInPath=function(o,C){var k=this.get("el"),U=this.get("canvas"),et=U.get("el").getBoundingClientRect(),at=o+et.left,pt=C+et.top,br=document.elementFromPoint(at,pt);return!!(br&&br.isEqualNode(k))},x.prototype.getHitLineWidth=function(){var o=this.attrs,C=o.lineWidth,k=o.lineAppendWidth;return this.isStroke()?C+k:0},x}($.zr),Rt=Wr,sr=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="circle",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{x:0,y:0,r:0})},x.prototype.createPath=function(o,C){var k=this.attr(),U=this.get("el");(0,j.each)(C||k,function(et,at){at==="x"||at==="y"?U.setAttribute("c"+at,et):_t[at]&&U.setAttribute(_t[at],et)})},x}(Rt),Cr=sr,Sr=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="dom",o.canFill=!1,o.canStroke=!1,o}return x.prototype.createPath=function(o,C){var k=this.attr(),U=this.get("el");if((0,j.each)(C||k,function(br,xr){_t[xr]&&U.setAttribute(_t[xr],br)}),typeof k.html=="function"){var et=k.html.call(this,k);if(et instanceof Element||et instanceof HTMLDocument){for(var at=U.childNodes,pt=at.length-1;pt>=0;pt--)U.removeChild(at[pt]);U.appendChild(et)}else U.innerHTML=et}else U.innerHTML=k.html},x}(Rt),Er=Sr,Tr=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="ellipse",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{x:0,y:0,rx:0,ry:0})},x.prototype.createPath=function(o,C){var k=this.attr(),U=this.get("el");(0,j.each)(C||k,function(et,at){at==="x"||at==="y"?U.setAttribute("c"+at,et):_t[at]&&U.setAttribute(_t[at],et)})},x}(Rt),Dr=Tr,zr=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="image",o.canFill=!1,o.canStroke=!1,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{x:0,y:0,width:0,height:0})},x.prototype.createPath=function(o,C){var k=this,U=this.attr(),et=this.get("el");(0,j.each)(C||U,function(at,pt){pt==="img"?k._setImage(U.img):_t[pt]&&et.setAttribute(_t[pt],at)})},x.prototype.setAttr=function(o,C){this.attrs[o]=C,o==="img"&&this._setImage(C)},x.prototype._setImage=function(o){var C=this.attr(),k=this.get("el");if((0,j.isString)(o))k.setAttribute("href",o);else if(o instanceof window.Image)C.width||(k.setAttribute("width",o.width),this.attr("width",o.width)),C.height||(k.setAttribute("height",o.height),this.attr("height",o.height)),k.setAttribute("href",o.src);else if(o instanceof HTMLElement&&(0,j.isString)(o.nodeName)&&o.nodeName.toUpperCase()==="CANVAS")k.setAttribute("href",o.toDataURL());else if(o instanceof ImageData){var U=document.createElement("canvas");U.setAttribute("width",""+o.width),U.setAttribute("height",""+o.height),U.getContext("2d").putImageData(o,0,0),C.width||(k.setAttribute("width",""+o.width),this.attr("width",o.width)),C.height||(k.setAttribute("height",""+o.height),this.attr("height",o.height)),k.setAttribute("href",U.toDataURL())}},x}(Rt),ft=zr,ut=Xt(89838),Mt=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="line",o.canFill=!1,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},x.prototype.createPath=function(o,C){var k=this.attr(),U=this.get("el");(0,j.each)(C||k,function(et,at){if(at==="startArrow"||at==="endArrow")if(et){var pt=(0,j.isObject)(et)?o.addArrow(k,_t[at]):o.getDefaultArrow(k,_t[at]);U.setAttribute(_t[at],"url(#"+pt+")")}else U.removeAttribute(_t[at]);else _t[at]&&U.setAttribute(_t[at],et)})},x.prototype.getTotalLength=function(){var o=this.attr(),C=o.x1,k=o.y1,U=o.x2,et=o.y2;return ut.x1.length(C,k,U,et)},x.prototype.getPoint=function(o){var C=this.attr(),k=C.x1,U=C.y1,et=C.x2,at=C.y2;return ut.x1.pointAt(k,U,et,at,o)},x}(Rt),Ct=Mt,Nt={circle:function(B,x,o){return[["M",B,x],["m",-o,0],["a",o,o,0,1,0,o*2,0],["a",o,o,0,1,0,-o*2,0]]},square:function(B,x,o){return[["M",B-o,x-o],["L",B+o,x-o],["L",B+o,x+o],["L",B-o,x+o],["Z"]]},diamond:function(B,x,o){return[["M",B-o,x],["L",B,x-o],["L",B+o,x],["L",B,x+o],["Z"]]},triangle:function(B,x,o){var C=o*Math.sin(1/3*Math.PI);return[["M",B-o,x+C],["L",B,x-C],["L",B+o,x+C],["z"]]},triangleDown:function(B,x,o){var C=o*Math.sin(1/3*Math.PI);return[["M",B-o,x-C],["L",B+o,x-C],["L",B,x+C],["Z"]]}},Pt={get:function(B){return Nt[B]},register:function(B,x){Nt[B]=x},remove:function(B){delete Nt[B]},getAll:function(){return Nt}},v=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="marker",o.canFill=!0,o.canStroke=!0,o}return x.prototype.createPath=function(o){var C=this.get("el");C.setAttribute("d",this._assembleMarker())},x.prototype._assembleMarker=function(){var o=this._getPath();return(0,j.isArray)(o)?o.map(function(C){return C.join(" ")}).join(""):o},x.prototype._getPath=function(){var o=this.attr(),C=o.x,k=o.y,U=o.r||o.radius,et=o.symbol||"circle",at;return(0,j.isFunction)(et)?at=et:at=Pt.get(et),at?at(C,k,U):(console.warn(at+" symbol is not exist."),null)},x.symbolsFactory=Pt,x}(Rt),O=v,vt=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="path",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{startArrow:!1,endArrow:!1})},x.prototype.createPath=function(o,C){var k=this,U=this.attr(),et=this.get("el");(0,j.each)(C||U,function(at,pt){if(pt==="path"&&(0,j.isArray)(at))et.setAttribute("d",k._formatPath(at));else if(pt==="startArrow"||pt==="endArrow")if(at){var br=(0,j.isObject)(at)?o.addArrow(U,_t[pt]):o.getDefaultArrow(U,_t[pt]);et.setAttribute(_t[pt],"url(#"+br+")")}else et.removeAttribute(_t[pt]);else _t[pt]&&et.setAttribute(_t[pt],at)})},x.prototype._formatPath=function(o){var C=o.map(function(k){return k.join(" ")}).join("");return~C.indexOf("NaN")?"":C},x.prototype.getTotalLength=function(){var o=this.get("el");return o?o.getTotalLength():null},x.prototype.getPoint=function(o){var C=this.get("el"),k=this.getTotalLength();if(k===0)return null;var U=C?C.getPointAtLength(o*k):null;return U?{x:U.x,y:U.y}:null},x}(Rt),mt=vt,Ht=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="polygon",o.canFill=!0,o.canStroke=!0,o}return x.prototype.createPath=function(o,C){var k=this.attr(),U=this.get("el");(0,j.each)(C||k,function(et,at){at==="points"&&(0,j.isArray)(et)&&et.length>=2?U.setAttribute("points",et.map(function(pt){return pt[0]+","+pt[1]}).join(" ")):_t[at]&&U.setAttribute(_t[at],et)})},x}(Rt),ir=Ht,Wt=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="polyline",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{startArrow:!1,endArrow:!1})},x.prototype.onAttrChange=function(o,C,k){B.prototype.onAttrChange.call(this,o,C,k),["points"].indexOf(o)!==-1&&this._resetCache()},x.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},x.prototype.createPath=function(o,C){var k=this.attr(),U=this.get("el");(0,j.each)(C||k,function(et,at){at==="points"&&(0,j.isArray)(et)&&et.length>=2?U.setAttribute("points",et.map(function(pt){return pt[0]+","+pt[1]}).join(" ")):_t[at]&&U.setAttribute(_t[at],et)})},x.prototype.getTotalLength=function(){var o=this.attr().points,C=this.get("totalLength");return(0,j.isNil)(C)?(this.set("totalLength",ut.aH.length(o)),this.get("totalLength")):C},x.prototype.getPoint=function(o){var C=this.attr().points,k=this.get("tCache");k||(this._setTcache(),k=this.get("tCache"));var U,et;return(0,j.each)(k,function(at,pt){o>=at[0]&&o<=at[1]&&(U=(o-at[0])/(at[1]-at[0]),et=pt)}),ut.x1.pointAt(C[et][0],C[et][1],C[et+1][0],C[et+1][1],U)},x.prototype._setTcache=function(){var o=this.attr().points;if(!(!o||o.length===0)){var C=this.getTotalLength();if(!(C<=0)){var k=0,U=[],et,at;(0,j.each)(o,function(pt,br){o[br+1]&&(et=[],et[0]=k/C,at=ut.x1.length(pt[0],pt[1],o[br+1][0],o[br+1][1]),k+=at,et[1]=k/C,U.push(et))}),this.set("tCache",U)}}},x.prototype.getStartTangent=function(){var o=this.attr().points,C=[];return C.push([o[1][0],o[1][1]]),C.push([o[0][0],o[0][1]]),C},x.prototype.getEndTangent=function(){var o=this.attr().points,C=o.length-1,k=[];return k.push([o[C-1][0],o[C-1][1]]),k.push([o[C][0],o[C][1]]),k},x}(Rt),cr=Wt,ur=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,tr=/[^\s,]+/gi;function wr(B){var x=0,o=0,C=0,k=0;return(0,j.isArray)(B)?B.length===1?x=o=C=k=B[0]:B.length===2?(x=C=B[0],o=k=B[1]):B.length===3?(x=B[0],o=k=B[1],C=B[2]):(x=B[0],o=B[1],C=B[2],k=B[3]):x=o=C=k=B,{r1:x,r2:o,r3:C,r4:k}}function kr(B){if(B=B||[],isArray(B))return B;if(isString(B))return B=B.match(ur),each(B,function(x,o){if(x=x.match(tr),x[0].length>1){var C=x[0].charAt(0);x.splice(1,0,x[0].substr(1)),x[0]=C}each(x,function(k,U){isNaN(k)||(x[U]=+k)}),B[o]=x}),B}var L=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="rect",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{x:0,y:0,width:0,height:0,radius:0})},x.prototype.createPath=function(o,C){var k=this,U=this.attr(),et=this.get("el"),at=!1,pt=["x","y","width","height","radius"];(0,j.each)(C||U,function(br,xr){pt.indexOf(xr)!==-1&&!at?(et.setAttribute("d",k._assembleRect(U)),at=!0):pt.indexOf(xr)===-1&&_t[xr]&&et.setAttribute(_t[xr],br)})},x.prototype._assembleRect=function(o){var C=o.x,k=o.y,U=o.width,et=o.height,at=o.radius;if(!at)return"M "+C+","+k+" l "+U+",0 l 0,"+et+" l"+-U+" 0 z";var pt=wr(at);(0,j.isArray)(at)?at.length===1?pt.r1=pt.r2=pt.r3=pt.r4=at[0]:at.length===2?(pt.r1=pt.r3=at[0],pt.r2=pt.r4=at[1]):at.length===3?(pt.r1=at[0],pt.r2=pt.r4=at[1],pt.r3=at[2]):(pt.r1=at[0],pt.r2=at[1],pt.r3=at[2],pt.r4=at[3]):pt.r1=pt.r2=pt.r3=pt.r4=at;var br=[["M "+(C+pt.r1)+","+k],["l "+(U-pt.r1-pt.r2)+",0"],["a "+pt.r2+","+pt.r2+",0,0,1,"+pt.r2+","+pt.r2],["l 0,"+(et-pt.r2-pt.r3)],["a "+pt.r3+","+pt.r3+",0,0,1,"+-pt.r3+","+pt.r3],["l "+(pt.r3+pt.r4-U)+",0"],["a "+pt.r4+","+pt.r4+",0,0,1,"+-pt.r4+","+-pt.r4],["l 0,"+(pt.r4+pt.r1-et)],["a "+pt.r1+","+pt.r1+",0,0,1,"+pt.r1+","+-pt.r1],["z"]];return br.join(" ")},x}(Rt),p=L,y=Xt(43631),_=.3,s={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},d={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},P={left:"left",start:"left",center:"middle",right:"end",end:"end"},R=function(B){(0,F.__extends)(x,B);function x(){var o=B!==null&&B.apply(this,arguments)||this;return o.type="text",o.canFill=!0,o.canStroke=!0,o}return x.prototype.getDefaultAttrs=function(){var o=B.prototype.getDefaultAttrs.call(this);return(0,F.__assign)((0,F.__assign)({},o),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},x.prototype.createPath=function(o,C){var k=this,U=this.attr(),et=this.get("el");this._setFont(),(0,j.each)(C||U,function(at,pt){pt==="text"?k._setText(""+at):pt==="matrix"&&at?Jt(k):_t[pt]&&et.setAttribute(_t[pt],at)}),et.setAttribute("paint-order","stroke"),et.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},x.prototype._setFont=function(){var o=this.get("el"),C=this.attr(),k=C.textBaseline,U=C.textAlign,et=(0,y.qY)();et&&et.name==="firefox"?o.setAttribute("dominant-baseline",d[k]||"alphabetic"):o.setAttribute("alignment-baseline",s[k]||"baseline"),o.setAttribute("text-anchor",P[U]||"left")},x.prototype._setText=function(o){var C=this.get("el"),k=this.attr(),U=k.x,et=k.textBaseline,at=et===void 0?"bottom":et;if(!o)C.innerHTML="";else if(~o.indexOf(` `)){var pt=o.split(` `),br=pt.length-1,xr="";(0,j.each)(pt,function(Gr,Vr){Vr===0?at==="alphabetic"?xr+=''+Gr+"":at==="top"?xr+=''+Gr+"":at==="middle"?xr+=''+Gr+"":at==="bottom"?xr+=''+Gr+"":at==="hanging"&&(xr+=''+Gr+""):xr+=''+Gr+""}),C.innerHTML=xr}else C.innerHTML=o},x}(Rt),W=R,ot=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Lt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,kt=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Zt(B){var x=B.match(kt);if(!x)return"";var o="";return x.sort(function(C,k){return C=C.split(":"),k=k.split(":"),Number(C[0])-Number(k[0])}),(0,j.each)(x,function(C){C=C.split(":"),o+=''}),o}function pr(B,x){var o=ot.exec(B),C=(0,j.mod)((0,j.toRadian)(parseFloat(o[1])),Math.PI*2),k=o[2],U,et;C>=0&&C<.5*Math.PI?(U={x:0,y:0},et={x:1,y:1}):.5*Math.PI<=C&&C`;o.innerHTML=C},B}(),rt=nt,st=function(){function B(x,o){this.cfg={};var C=Kt("marker"),k=(0,j.uniqueId)("marker_");C.setAttribute("id",k);var U=Kt("path");U.setAttribute("stroke",x.stroke||"none"),U.setAttribute("fill",x.fill||"none"),C.appendChild(U),C.setAttribute("overflow","visible"),C.setAttribute("orient","auto-start-reverse"),this.el=C,this.child=U,this.id=k;var et=x[o==="marker-start"?"startArrow":"endArrow"];return this.stroke=x.stroke||"#000",et===!0?this._setDefaultPath(o,U):(this.cfg=et,this._setMarker(x.lineWidth,U)),this}return B.prototype.match=function(){return!1},B.prototype._setDefaultPath=function(x,o){var C=this.el;o.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),C.setAttribute("refX",""+10*Math.cos(Math.PI/6)),C.setAttribute("refY",""+5)},B.prototype._setMarker=function(x,o){var C=this.el,k=this.cfg.path,U=this.cfg.d;(0,j.isArray)(k)&&(k=k.map(function(et){return et.join(" ")}).join("")),o.setAttribute("d",k),C.appendChild(o),U&&C.setAttribute("refX",""+U/x)},B.prototype.update=function(x){var o=this.child;o.attr?o.attr("fill",x):o.setAttribute("fill",x)},B}(),K=st,yt=function(){function B(x){this.type="clip",this.cfg={};var o=Kt("clipPath");this.el=o,this.id=(0,j.uniqueId)("clip_"),o.id=this.id;var C=x.cfg.el;return o.appendChild(C),this.cfg=x,this}return B.prototype.match=function(){return!1},B.prototype.remove=function(){var x=this.el;x.parentNode.removeChild(x)},B}(),lt=yt,Yt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,rr=function(){function B(x){this.cfg={};var o=Kt("pattern");o.setAttribute("patternUnits","userSpaceOnUse");var C=Kt("image");o.appendChild(C);var k=(0,j.uniqueId)("pattern_");o.id=k,this.el=o,this.id=k,this.cfg=x;var U=Yt.exec(x),et=U[2];C.setAttribute("href",et);var at=new Image;et.match(/^data:/i)||(at.crossOrigin="Anonymous"),at.src=et;function pt(){o.setAttribute("width",""+at.width),o.setAttribute("height",""+at.height)}return at.complete?pt():(at.onload=pt,at.src=at.src),this}return B.prototype.match=function(x,o){return this.cfg===o},B}(),It=rr,zt=function(){function B(x){var o=Kt("defs"),C=(0,j.uniqueId)("defs_");o.id=C,x.appendChild(o),this.children=[],this.defaultArrow={},this.el=o,this.canvas=x}return B.prototype.find=function(x,o){for(var C=this.children,k=null,U=0;U=0;return Jt?ar?Math.PI*2-$t:$t:ar?$t:Math.PI*2-$t}function dr(fr,At,Jt){return Jt?(fr[0]=At[1],fr[1]=-1*At[0]):(fr[0]=-1*At[1],fr[1]=At[0]),fr}},80389:function(ne,Pr,Xt){"use strict";Xt.d(Pr,{e9:function(){return Ar},Wq:function(){return pr},tr:function(){return yr},wb:function(){return Wr},zx:function(){return y}});var dt=Xt(49242),F=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,$=/[^\s\,]+/ig;function j(A){var E=A||[];if((0,dt.isArray)(E))return E;if((0,dt.isString)(E))return E=E.match(F),(0,dt.each)(E,function(N,G){if(N=N.match($),N[0].length>1){var Z=N[0].charAt(0);N.splice(1,0,N[0].substr(1)),N[0]=Z}(0,dt.each)(N,function(nt,rt){isNaN(nt)||(N[rt]=+nt)}),E[G]=N}),E}var gr=j,_t=Xt(31437);function mr(A,E,N,G){var Z=[],nt=!!G,rt,st,K,yt,lt,Yt,rr;if(nt){K=G[0],yt=G[1];for(var It=0,zt=A.length;It=0;K--)rt=nt[K].index,nt[K].type==="add"?A.splice(rt,0,[].concat(A[rt])):A.splice(rt,1)}if(G=A.length,G2&&(N.push([Z].concat(rt.splice(0,2))),st="l",Z=Z==="m"?"l":"L"),st==="o"&&rt.length===1&&N.push([Z,rt[0]]),st==="r")N.push([Z].concat(rt));else for(;rt.length>=E[st]&&(N.push([Z].concat(rt.splice(0,E[st]))),!!E[st]););return""}),N}var Lr=/[a-z]/;function Br(A,E){return[E[0]+(E[0]-A[0]),E[1]+(E[1]-A[1])]}function Wr(A){var E=yr(A);if(!E||!E.length)return[["M",0,0]];for(var N=!1,G=0;G=0){N=!0;break}}if(!N)return E;var nt=[],rt=0,st=0,K=0,yt=0,lt=0,Yt,rr,It=E[0];(It[0]==="M"||It[0]==="m")&&(rt=+It[1],st=+It[2],K=rt,yt=st,lt++,nt[0]=["M",rt,st]);for(var G=lt,zt=E.length;G1&&(nt=1),nt<-1&&(nt=-1),Z*Math.acos(nt)},Er=function(A,E,N,G,Z,nt,rt,st,K,yt,lt,Yt){var rr=Math.pow(Z,2),It=Math.pow(nt,2),zt=Math.pow(lt,2),Gt=Math.pow(Yt,2),er=rr*It-rr*Gt-It*zt;er<0&&(er=0),er/=rr*Gt+It*zt,er=Math.sqrt(er)*(rt===st?-1:1);var Dt=er*Z/nt*Yt,Ut=er*-nt/Z*lt,B=yt*Dt-K*Ut+(A+N)/2,x=K*Dt+yt*Ut+(E+G)/2,o=(lt-Dt)/Z,C=(Yt-Ut)/nt,k=(-lt-Dt)/Z,U=(-Yt-Ut)/nt,et=Sr(1,0,o,C),at=Sr(o,C,k,U);return st===0&&at>0&&(at-=Rt),st===1&&at<0&&(at+=Rt),[B,x,et,at]},Tr=function(A){var E=A.px,N=A.py,G=A.cx,Z=A.cy,nt=A.rx,rt=A.ry,st=A.xAxisRotation,K=st===void 0?0:st,yt=A.largeArcFlag,lt=yt===void 0?0:yt,Yt=A.sweepFlag,rr=Yt===void 0?0:Yt,It=[];if(nt===0||rt===0)return[{x1:0,y1:0,x2:0,y2:0,x:G,y:Z}];var zt=Math.sin(K*Rt/360),Gt=Math.cos(K*Rt/360),er=Gt*(E-G)/2+zt*(N-Z)/2,Dt=-zt*(E-G)/2+Gt*(N-Z)/2;if(er===0&&Dt===0)return[{x1:0,y1:0,x2:0,y2:0,x:G,y:Z}];nt=Math.abs(nt),rt=Math.abs(rt);var Ut=Math.pow(er,2)/Math.pow(nt,2)+Math.pow(Dt,2)/Math.pow(rt,2);Ut>1&&(nt*=Math.sqrt(Ut),rt*=Math.sqrt(Ut));var B=Er(E,N,G,Z,nt,rt,lt,rr,zt,Gt,er,Dt),x=B[0],o=B[1],C=B[2],k=B[3],U=Math.abs(k)/(Rt/4);Math.abs(1-U)<1e-7&&(U=1);var et=Math.max(Math.ceil(U),1);k/=et;for(var at=0;at7){A[N].shift();for(var G=A[N],Z=N;G.length;)E[N]="A",A.splice(Z+=1,0,["C"].concat(G.splice(0,6)));A.splice(N,1)}}var Mt=function(A,E,N,G,Z){var nt=-3*E+9*N-9*G+3*Z,rt=A*nt+6*E-12*N+6*G;return A*rt-3*E+3*N},Ct=function(A,E,N,G,Z,nt,rt,st,K){K===null&&(K=1),K=K>1?1:K<0?0:K;for(var yt=K/2,lt=12,Yt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],rr=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],It=0,zt=0;zt0&&It<1&&K.push(It);continue}var Gt=Yt*Yt-4*rr*lt,er=Math.sqrt(Gt);if(!(Gt<0)){var Dt=(-Yt+er)/(2*lt);Dt>0&&Dt<1&&K.push(Dt);var Ut=(-Yt-er)/(2*lt);Ut>0&&Ut<1&&K.push(Ut)}}for(var B=K.length,x=B,o;B--;)It=K[B],o=1-It,yt[0][B]=o*o*o*A+3*o*o*It*N+3*o*It*It*Z+It*It*It*rt,yt[1][B]=o*o*o*E+3*o*o*It*G+3*o*It*It*nt+It*It*It*st;return yt[0][x]=A,yt[1][x]=E,yt[0][x+1]=rt,yt[1][x+1]=st,yt[0].length=yt[1].length=x+2,{min:{x:Math.min.apply(0,yt[0]),y:Math.min.apply(0,yt[1])},max:{x:Math.max.apply(0,yt[0]),y:Math.max.apply(0,yt[1])}}},Pt=function(A,E,N,G,Z,nt,rt,st){if(!(Math.max(A,N)Math.max(Z,rt)||Math.max(E,G)Math.max(nt,st))){var K=(A*G-E*N)*(Z-rt)-(A-N)*(Z*st-nt*rt),yt=(A*G-E*N)*(nt-st)-(E-G)*(Z*st-nt*rt),lt=(A-N)*(nt-st)-(E-G)*(Z-rt);if(!!lt){var Yt=K/lt,rr=yt/lt,It=+Yt.toFixed(2),zt=+rr.toFixed(2);if(!(It<+Math.min(A,N).toFixed(2)||It>+Math.max(A,N).toFixed(2)||It<+Math.min(Z,rt).toFixed(2)||It>+Math.max(Z,rt).toFixed(2)||zt<+Math.min(E,G).toFixed(2)||zt>+Math.max(E,G).toFixed(2)||zt<+Math.min(nt,st).toFixed(2)||zt>+Math.max(nt,st).toFixed(2)))return{x:Yt,y:rr}}}},v=function(A,E,N){return E>=A.x&&E<=A.x+A.width&&N>=A.y&&N<=A.y+A.height},O=function(A,E,N,G){return A===null&&(A=E=N=G=0),E===null&&(E=A.y,N=A.width,G=A.height,A=A.x),{x:A,y:E,width:N,w:N,height:G,h:G,x2:A+N,y2:E+G,cx:A+N/2,cy:E+G/2,r1:Math.min(N,G)/2,r2:Math.max(N,G)/2,r0:Math.sqrt(N*N+G*G)/2,path:rectPath(A,E,N,G),vb:[A,E,N,G].join(" ")}},vt=function(A,E){return A=O(A),E=O(E),v(E,A.x,A.y)||v(E,A.x2,A.y)||v(E,A.x,A.y2)||v(E,A.x2,A.y2)||v(A,E.x,E.y)||v(A,E.x2,E.y)||v(A,E.x,E.y2)||v(A,E.x2,E.y2)||(A.xE.x||E.xA.x)&&(A.yE.y||E.yA.y)},mt=function(A,E,N,G,Z,nt,rt,st){isArray(A)||(A=[A,E,N,G,Z,nt,rt,st]);var K=Nt.apply(null,A);return O(K.min.x,K.min.y,K.max.x-K.min.x,K.max.y-K.min.y)},Ht=function(A,E,N,G,Z,nt,rt,st,K){var yt=1-K,lt=Math.pow(yt,3),Yt=Math.pow(yt,2),rr=K*K,It=rr*K,zt=lt*A+Yt*3*K*N+yt*3*K*K*Z+It*rt,Gt=lt*E+Yt*3*K*G+yt*3*K*K*nt+It*st,er=A+2*K*(N-A)+rr*(Z-2*N+A),Dt=E+2*K*(G-E)+rr*(nt-2*G+E),Ut=N+2*K*(Z-N)+rr*(rt-2*Z+N),B=G+2*K*(nt-G)+rr*(st-2*nt+G),x=yt*A+K*N,o=yt*E+K*G,C=yt*Z+K*rt,k=yt*nt+K*st,U=90-Math.atan2(er-Ut,Dt-B)*180/Math.PI;return{x:zt,y:Gt,m:{x:er,y:Dt},n:{x:Ut,y:B},start:{x,y:o},end:{x:C,y:k},alpha:U}},ir=function(A,E,N){var G=mt(A),Z=mt(E);if(!vt(G,Z))return N?0:[];for(var nt=Ct.apply(0,A),rt=Ct.apply(0,E),st=~~(nt/8),K=~~(rt/8),yt=[],lt=[],Yt={},rr=N?0:[],It=0;It=0&&k<=1&&U>=0&&U<=1&&(N?rr++:rr.push({x:C.x,y:C.y,t1:k,t2:U}))}}return rr},Wt=function(A,E,N){A=path2Curve(A),E=path2Curve(E);for(var G,Z,nt,rt,st,K,yt,lt,Yt,rr,It=N?0:[],zt=0,Gt=A.length;zt1&&(N*=Math.sqrt(It),G*=Math.sqrt(It));var zt=N*N*(rr*rr)+G*G*(Yt*Yt),Gt=zt?Math.sqrt((N*N*(G*G)-zt)/zt):1;nt===rt&&(Gt*=-1),isNaN(Gt)&&(Gt=0);var er=G?Gt*N*rr/G:0,Dt=N?Gt*-G*Yt/N:0,Ut=(st+yt)/2+Math.cos(Z)*er-Math.sin(Z)*Dt,B=(K+lt)/2+Math.sin(Z)*er+Math.cos(Z)*Dt,x=[(Yt-er)/N,(rr-Dt)/G],o=[(-1*Yt-er)/N,(-1*rr-Dt)/G],C=wr([1,0],x),k=wr(x,o);return tr(x,o)<=-1&&(k=Math.PI),tr(x,o)>=1&&(k=0),rt===0&&k>0&&(k=k-2*Math.PI),rt===1&&k<0&&(k=k+2*Math.PI),{cx:Ut,cy:B,rx:kr(A,[yt,lt])?0:N,ry:kr(A,[yt,lt])?0:G,startAngle:C,endAngle:C+k,xRotation:Z,arcFlag:nt,sweepFlag:rt}}function p(A,E){return[E[0]+(E[0]-A[0]),E[1]+(E[1]-A[1])]}function y(A){A=gr(A);for(var E=[],N=null,G=null,Z=null,nt=0,rt=A.length,st=0;st0!=s(st[1]-N)>0&&s(E-(N-rt[1])*(rt[0]-st[0])/(rt[1]-st[1])-rt[0])<0&&(G=!G)}return G}var R=function(A,E,N){return A>=E&&A<=N};function W(A,E,N,G){var Z=.001,nt={x:N.x-A.x,y:N.y-A.y},rt={x:E.x-A.x,y:E.y-A.y},st={x:G.x-N.x,y:G.y-N.y},K=rt.x*st.y-rt.y*st.x,yt=K*K,lt=rt.x*rt.x+rt.y*rt.y,Yt=st.x*st.x+st.y*st.y,rr=null;if(yt>Z*lt*Yt){var It=(nt.x*st.y-nt.y*st.x)/K,zt=(nt.x*rt.y-nt.y*rt.x)/K;R(It,0,1)&&R(zt,0,1)&&(rr={x:A.x+It*rt.x,y:A.y+It*rt.y})}return rr}function ot(A){for(var E=[],N=A.length,G=0;G1){var rt=A[0],st=A[N-1];E.push({from:{x:st[0],y:st[1]},to:{x:rt[0],y:rt[1]}})}return E}function Lt(A,E){var N=!1;return(0,dt.each)(A,function(G){if(W(G.from,G.to,E.from,E.to))return N=!0,!1}),N}function kt(A){var E=A.map(function(G){return G[0]}),N=A.map(function(G){return G[1]});return{minX:Math.min.apply(null,E),maxX:Math.max.apply(null,E),minY:Math.min.apply(null,N),maxY:Math.max.apply(null,N)}}function Zt(A,E){return!(E.minX>A.maxX||E.maxXA.maxY||E.maxYthis.max?NaN:this.values[Q]},m.prototype.getText=function(b){for(var q=[],X=1;X1?b-1:b}this.translateIndexMap&&(this.translateIndexMap=void 0)},m}(mr),dr=Ar,fr=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,At="\\d\\d?",Jt="\\d\\d",$t="\\d{3}",ar="\\d{4}",yr="[^\\s]+",Lr=/\[([^]*?)\]/gm;function Br(h,m){for(var b=[],q=0,X=h.length;q-1?X:null}};function Rt(h){for(var m=[],b=1;b3?0:(h-h%10!=10?1:0)*h%10]}},Dr=Rt({},Tr),zr=function(h){return Dr=Rt(Dr,h)},ft=function(h){return h.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ut=function(h,m){for(m===void 0&&(m=2),h=String(h);h.length0?"-":"+")+ut(Math.floor(Math.abs(m)/60)*100+Math.abs(m)%60,4)},Z:function(h){var m=h.getTimezoneOffset();return(m>0?"-":"+")+ut(Math.floor(Math.abs(m)/60),2)+":"+ut(Math.abs(m)%60,2)}},Ct=function(h){return+h-1},Nt=[null,At],Pt=[null,yr],v=["isPm",yr,function(h,m){var b=h.toLowerCase();return b===m.amPm[0]?0:b===m.amPm[1]?1:null}],O=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(h){var m=(h+"").match(/([+-]|\d\d)/gi);if(m){var b=+m[1]*60+parseInt(m[2],10);return m[0]==="+"?b:-b}return 0}],vt={D:["day",At],DD:["day",Jt],Do:["day",At+yr,function(h){return parseInt(h,10)}],M:["month",At,Ct],MM:["month",Jt,Ct],YY:["year",Jt,function(h){var m=new Date,b=+(""+m.getFullYear()).substr(0,2);return+(""+(+h>68?b-1:b)+h)}],h:["hour",At,void 0,"isPm"],hh:["hour",Jt,void 0,"isPm"],H:["hour",At],HH:["hour",Jt],m:["minute",At],mm:["minute",Jt],s:["second",At],ss:["second",Jt],YYYY:["year",ar],S:["millisecond","\\d",function(h){return+h*100}],SS:["millisecond",Jt,function(h){return+h*10}],SSS:["millisecond",$t],d:Nt,dd:Nt,ddd:Pt,dddd:Pt,MMM:["month",yr,Wr("monthNamesShort")],MMMM:["month",yr,Wr("monthNames")],a:v,A:v,ZZ:O,Z:O},mt={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Ht=function(h){return Rt(mt,h)},ir=function(h,m,b){if(m===void 0&&(m=mt.default),b===void 0&&(b={}),typeof h=="number"&&(h=new Date(h)),Object.prototype.toString.call(h)!=="[object Date]"||isNaN(h.getTime()))throw new Error("Invalid Date pass to format");m=mt[m]||m;var q=[];m=m.replace(Lr,function(Q,bt){return q.push(bt),"@@@"});var X=Rt(Rt({},Dr),b);return m=m.replace(fr,function(Q){return Mt[Q](h,X)}),m.replace(/@@@/g,function(){return q.shift()})};function Wt(h,m,b){if(b===void 0&&(b={}),typeof m!="string")throw new Error("Invalid format in fecha parse");if(m=mt[m]||m,h.length>1e3)return null;var q=new Date,X={year:q.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Q=[],bt=[],Et=m.replace(Lr,function(ue,fe){return bt.push(ft(fe)),"@@@"}),nr={},qt={};Et=ft(Et).replace(fr,function(ue){var fe=vt[ue],ce=fe[0],Ie=fe[1],ie=fe[3];if(nr[ce])throw new Error("Invalid format. "+ce+" specified twice in format");return nr[ce]=!0,ie&&(qt[ie]=!0),Q.push(fe),"("+Ie+")"}),Object.keys(qt).forEach(function(ue){if(!nr[ue])throw new Error("Invalid format. "+ue+" is required in specified format")}),Et=Et.replace(/@@@/g,function(){return bt.shift()});var jt=h.match(new RegExp(Et,"i"));if(!jt)return null;for(var Yr=Rt(Rt({},Dr),b),Nr=1;Nr11||X.month<0||X.day>31||X.day<1||X.hour>23||X.hour<0||X.minute>59||X.minute<0||X.second>59||X.second<0)return null;return ve}var cr={format:ir,parse:Wt,defaultI18n:Tr,setGlobalDateI18n:zr,setGlobalDateMasks:Ht},ur=cr;function tr(h){return function(m,b,q,X){for(var Q=(0,F.isNil)(q)?0:q,bt=(0,F.isNil)(X)?m.length:X;Q>>1;h(m[Et])>b?bt=Et:Q=Et+1}return Q}}var wr="format";function kr(h,m){var b=dt[wr]||ur[wr];return b(h,m)}function L(h){return(0,F.isString)(h)&&(h.indexOf("T")>0?h=new Date(h).getTime():h=new Date(h.replace(/-/gi,"/")).getTime()),(0,F.isDate)(h)&&(h=h.getTime()),h}var p=1e3,y=60*p,_=60*y,s=24*_,d=s*31,P=s*365,R=[["HH:mm:ss",p],["HH:mm:ss",p*10],["HH:mm:ss",p*30],["HH:mm",y],["HH:mm",y*10],["HH:mm",y*30],["HH",_],["HH",_*6],["HH",_*12],["YYYY-MM-DD",s],["YYYY-MM-DD",s*4],["YYYY-WW",s*7],["YYYY-MM",d],["YYYY-MM",d*4],["YYYY-MM",d*6],["YYYY",s*380]];function W(h,m,b){var q=(m-h)/b,X=tr(function(bt){return bt[1]})(R,q)-1,Q=R[X];return X<0?Q=R[0]:X>=R.length&&(Q=(0,F.last)(R)),Q}var ot=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="timeCat",b}return m.prototype.translate=function(b){b=L(b);var q=this.values.indexOf(b);return q===-1&&((0,F.isNumber)(b)&&b-1){var Q=this.values[X],bt=this.formatter;return Q=bt?bt(Q,q):kr(Q,this.mask),Q}return b},m.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},m.prototype.setDomain=function(){var b=this.values;(0,F.each)(b,function(q,X){b[X]=L(q)}),b.sort(function(q,X){return q-X}),h.prototype.setDomain.call(this)},m}(dr),Lt=ot,kt=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.isContinuous=!0,b}return m.prototype.scale=function(b){if((0,F.isNil)(b))return NaN;var q=this.rangeMin(),X=this.rangeMax(),Q=this.max,bt=this.min;if(Q===bt)return q;var Et=this.getScalePercent(b);return q+Et*(X-q)},m.prototype.init=function(){h.prototype.init.call(this);var b=this.ticks,q=(0,F.head)(b),X=(0,F.last)(b);qthis.max&&(this.max=X),(0,F.isNil)(this.minLimit)||(this.min=q),(0,F.isNil)(this.maxLimit)||(this.max=X)},m.prototype.setDomain=function(){var b=(0,F.getRange)(this.values),q=b.min,X=b.max;(0,F.isNil)(this.min)&&(this.min=q),(0,F.isNil)(this.max)&&(this.max=X),this.min>this.max&&(this.min=q,this.max=X)},m.prototype.calculateTicks=function(){var b=this,q=h.prototype.calculateTicks.call(this);return this.nice||(q=(0,F.filter)(q,function(X){return X>=b.min&&X<=b.max})),q},m.prototype.getScalePercent=function(b){var q=this.max,X=this.min;return(b-X)/(q-X)},m.prototype.getInvertPercent=function(b){return(b-this.rangeMin())/(this.rangeMax()-this.rangeMin())},m}(mr),Zt=kt,pr=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="linear",b.isLinear=!0,b}return m.prototype.invert=function(b){var q=this.getInvertPercent(b);return this.min+q*(this.max-this.min)},m.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},m}(Zt),A=pr;function E(h,m){var b=Math.E,q;return m>=0?q=Math.pow(b,Math.log(m)/h):q=Math.pow(b,Math.log(-m)/h)*-1,q}function N(h,m){return h===1?1:Math.log(m)/Math.log(h)}function G(h,m,b){(0,F.isNil)(b)&&(b=Math.max.apply(null,h));var q=b;return(0,F.each)(h,function(X){X>0&&X1&&(q=1),q}function Z(h){var m=h.toString().split(/[eE]/),b=(m[0].split(".")[1]||"").length-+(m[1]||0);return b>0?b:0}function nt(h,m){var b=Z(h),q=Z(m),X=Math.pow(10,Math.max(b,q));return(h*X+m*X)/X}var rt=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="log",b}return m.prototype.invert=function(b){var q=this.base,X=N(q,this.max),Q=this.rangeMin(),bt=this.rangeMax()-Q,Et,nr=this.positiveMin;if(nr){if(b===0)return 0;Et=N(q,nr/q);var qt=1/(X-Et)*bt;if(b=0?1:-1;return Math.pow(Et,X)*nr},m.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},m.prototype.getScalePercent=function(b){var q=this.max,X=this.min;if(q===X)return 0;var Q=this.exponent,bt=(E(Q,b)-E(Q,X))/(E(Q,q)-E(Q,X));return bt},m}(Zt),yt=K,lt=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="time",b}return m.prototype.getText=function(b,q){var X=this.translate(b),Q=this.formatter;return Q?Q(X,q):kr(X,this.mask)},m.prototype.scale=function(b){var q=b;return((0,F.isString)(q)||(0,F.isDate)(q))&&(q=this.translate(q)),h.prototype.scale.call(this,q)},m.prototype.translate=function(b){return L(b)},m.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},m.prototype.setDomain=function(){var b=this.values,q=this.getConfig("min"),X=this.getConfig("max");if((!(0,F.isNil)(q)||!(0,F.isNumber)(q))&&(this.min=this.translate(this.min)),(!(0,F.isNil)(X)||!(0,F.isNumber)(X))&&(this.max=this.translate(this.max)),b&&b.length){var Q=[],bt=Infinity,Et=bt,nr=0;(0,F.each)(b,function(qt){var jt=L(qt);if(isNaN(jt))throw new TypeError("Invalid Time: "+qt+" in time scale!");bt>jt?(Et=bt,bt=jt):Et>jt&&(Et=jt),nr1&&(this.minTickInterval=Et-bt),(0,F.isNil)(q)&&(this.min=bt),(0,F.isNil)(X)&&(this.max=nr)}},m}(A),Yt=lt,rr=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="quantize",b}return m.prototype.invert=function(b){var q=this.ticks,X=q.length,Q=this.getInvertPercent(b),bt=Math.floor(Q*(X-1));if(bt>=X-1)return(0,F.last)(q);if(bt<0)return(0,F.head)(q);var Et=q[bt],nr=q[bt+1],qt=bt/(X-1),jt=(bt+1)/(X-1);return Et+(Q-qt)/(jt-qt)*(nr-Et)},m.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},m.prototype.calculateTicks=function(){var b=h.prototype.calculateTicks.call(this);return this.nice||((0,F.last)(b)!==this.max&&b.push(this.max),(0,F.head)(b)!==this.min&&b.unshift(this.min)),b},m.prototype.getScalePercent=function(b){var q=this.ticks;if(b<(0,F.head)(q))return 0;if(b>(0,F.last)(q))return 1;var X=0;return(0,F.each)(q,function(Q,bt){if(b>=Q)X=bt;else return!1}),X/(q.length-1)},m}(Zt),It=rr,zt=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="quantile",b}return m.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},m}(It),Gt=zt,er={};function Dt(h){return er[h]}function Ut(h,m){if(Dt(h))throw new Error("type '"+h+"' existed.");er[h]=m}var B=function(h){(0,Kt.__extends)(m,h);function m(){var b=h!==null&&h.apply(this,arguments)||this;return b.type="identity",b.isIdentity=!0,b}return m.prototype.calculateTicks=function(){return this.values},m.prototype.scale=function(b){return this.values[0]!==b&&(0,F.isNumber)(b)?b:this.range[0]},m.prototype.invert=function(b){var q=this.range;return bq[1]?NaN:this.values[0]},m}(mr),x=B;function o(h){var m=h.values,b=h.tickInterval,q=h.tickCount,X=h.showLast;if((0,F.isNumber)(b)){var Q=(0,F.filter)(m,function(Rr,oe){return oe%b==0}),bt=(0,F.last)(m);return X&&(0,F.last)(Q)!==bt&&Q.push(bt),Q}var Et=m.length,nr=h.min,qt=h.max;if((0,F.isNil)(nr)&&(nr=0),(0,F.isNil)(qt)&&(qt=m.length-1),!(0,F.isNumber)(q)||q>=Et)return m.slice(nr,qt+1);if(q<=0||qt<=0)return[];for(var jt=q===1?Et:Math.floor(Et/(q-1)),Yr=[],Nr=nr,Qr=0;Qr=qt);Qr++)Nr=Math.min(nr+Qr*jt,qt),Qr===q-1&&X?Yr.push(m[qt]):Yr.push(m[Nr]);return Yr}function C(h){var m=h.min,b=h.max,q=h.nice,X=h.tickCount,Q=new pt;return Q.domain([m,b]),q&&Q.nice(X),Q.ticks(X)}var k=5,U=Math.sqrt(50),et=Math.sqrt(10),at=Math.sqrt(2),pt=function(){function h(){this._domain=[0,1]}return h.prototype.domain=function(m){return m?(this._domain=Array.from(m,Number),this):this._domain.slice()},h.prototype.nice=function(m){var b,q;m===void 0&&(m=k);var X=this._domain.slice(),Q=0,bt=this._domain.length-1,Et=this._domain[Q],nr=this._domain[bt],qt;return nr0?(Et=Math.floor(Et/qt)*qt,nr=Math.ceil(nr/qt)*qt,qt=xr(Et,nr,m)):qt<0&&(Et=Math.ceil(Et*qt)/qt,nr=Math.floor(nr*qt)/qt,qt=xr(Et,nr,m)),qt>0?(X[Q]=Math.floor(Et/qt)*qt,X[bt]=Math.ceil(nr/qt)*qt,this.domain(X)):qt<0&&(X[Q]=Math.ceil(Et*qt)/qt,X[bt]=Math.floor(nr*qt)/qt,this.domain(X)),this},h.prototype.ticks=function(m){return m===void 0&&(m=k),br(this._domain[0],this._domain[this._domain.length-1],m||k)},h}();function br(h,m,b){var q,X=-1,Q,bt,Et;if(m=+m,h=+h,b=+b,h===m&&b>0)return[h];if((q=m0)for(h=Math.ceil(h/Et),m=Math.floor(m/Et),bt=new Array(Q=Math.ceil(m-h+1));++X=0?(Q>=U?10:Q>=et?5:Q>=at?2:1)*Math.pow(10,X):-Math.pow(10,-X)/(Q>=U?10:Q>=et?5:Q>=at?2:1)}function Gr(h,m,b){var q;return b==="ceil"?q=Math.ceil(h/m):b==="floor"?q=Math.floor(h/m):q=Math.round(h/m),q*m}function Vr(h,m,b){var q=Gr(h,b,"floor"),X=Gr(m,b,"ceil");q=(0,F.fixedBase)(q,b),X=(0,F.fixedBase)(X,b);for(var Q=[],bt=Math.max((X-q)/(Math.pow(2,12)-1),b),Et=q;Et<=X;Et=Et+bt){var nr=(0,F.fixedBase)(Et,bt);Q.push(nr)}return{min:q,max:X,ticks:Q}}function ae(h,m,b){var q,X=h.minLimit,Q=h.maxLimit,bt=h.min,Et=h.max,nr=h.tickCount,qt=nr===void 0?5:nr,jt=(0,F.isNil)(X)?(0,F.isNil)(m)?bt:m:X,Yr=(0,F.isNil)(Q)?(0,F.isNil)(b)?Et:b:Q;if(jt>Yr&&(q=[jt,Yr],Yr=q[0],jt=q[1]),qt<=2)return[jt,Yr];for(var Nr=(Yr-jt)/(qt-1),Qr=[],Rr=0;Rr=0&&(nr=1),1-Et/(bt-1)-b+nr}function M(h,m,b){var q=(0,F.size)(m),X=(0,F.indexOf)(m,h),Q=1;return 1-X/(q-1)-b+Q}function l(h,m,b,q,X,Q){var bt=(h-1)/(Q-X),Et=(m-1)/(Math.max(Q,q)-Math.min(b,X));return 2-Math.max(bt/Et,Et/bt)}function a(h,m){return h>=m?2-(h-1)/(m-1):1}function f(h,m,b,q){var X=m-h;return 1-.5*(Math.pow(m-q,2)+Math.pow(h-b,2))/Math.pow(.1*X,2)}function g(h,m,b){var q=m-h;if(b>q){var X=(b-q)/2;return 1-Math.pow(X,2)/Math.pow(.1*q,2)}return 1}function D(){return 1}function Y(h,m,b,q,X,Q){b===void 0&&(b=5),q===void 0&&(q=!0),X===void 0&&(X=Me),Q===void 0&&(Q=[.25,.2,.5,.05]);var bt=b<0?0:Math.round(b);if(Number.isNaN(h)||Number.isNaN(m)||typeof h!="number"||typeof m!="number"||!bt)return{min:0,max:0,ticks:[]};if(m-h<1e-15||bt===1)return{min:h,max:m,ticks:[h]};if(m-h>1e148){var Et=b||5,nr=(m-h)/Et;return{min:h,max:m,ticks:Array(Et).fill(null).map(function(We,Ke){return re(h+nr*Ke)})}}for(var qt={score:-2,lmin:0,lmax:0,lstep:0},jt=1;jtqt.score&&(!q||ie<=h&&pe>=m)&&(qt.lmin=ie,qt.lmax=pe,qt.lstep=Oe,qt.score=Ne)}ve+=1}Rr+=1}}jt+=1}var Ee=re(qt.lmax),qe=re(qt.lmin),Ge=re(qt.lstep),Le=Math.floor(Ae((Ee-qe)/Ge))+1,be=new Array(Le);be[0]=re(qe);for(var Yr=1;Yr0)bt=Math.floor(N(m,q));else{var nr=G(Q,m,X);bt=Math.floor(N(m,nr))}for(var qt=Et-bt,jt=Math.ceil(qt/b),Yr=[],Nr=bt;Nr=0?1:-1;return Math.pow(bt,m)*Et})}function xt(h,m){var b=h.length*m;return m===1?h[h.length-1]:m===0?h[0]:b%1!=0?h[Math.ceil(b)-1]:h.length%2==0?(h[b-1]+h[b])/2:h[b]}function Vt(h){var m=h.tickCount,b=h.values;if(!b||!b.length)return[];for(var q=b.slice().sort(function(Et,nr){return Et-nr}),X=[],Q=0;Q1&&(X=X*Math.ceil(Et)),q&&XP)for(var nr=Jr(b),qt=Math.ceil(Q/P),jt=Et;jt<=nr+qt;jt=jt+qt)bt.push(qr(jt));else if(Q>d)for(var Yr=Math.ceil(Q/d),Nr=Kr(m),Qr=Ur(m,b),jt=0;jt<=Qr+Yr;jt=jt+Yr)bt.push(Or(Et,jt+Nr));else if(Q>s)for(var Rr=new Date(m),oe=Rr.getFullYear(),se=Rr.getMonth(),ve=Rr.getDate(),jr=Math.ceil(Q/s),Te=te(m,b),jt=0;jt_)for(var Rr=new Date(m),oe=Rr.getFullYear(),se=Rr.getMonth(),jr=Rr.getDate(),ue=Rr.getHours(),fe=Math.ceil(Q/_),ce=ge(m,b),jt=0;jt<=ce+fe;jt=jt+fe)bt.push(new Date(oe,se,jr,ue+jt).getTime());else if(Q>y)for(var Ie=$r(m,b),ie=Math.ceil(Q/y),jt=0;jt<=Ie+ie;jt=jt+ie)bt.push(m+jt*y);else{var pe=Q;pe=512&&console.warn("Notice: current ticks length("+bt.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+Q+") is too small, increase the value to solve the problem!"),bt}gr("cat",o),gr("time-cat",Hr),gr("wilkinson-extended",z),gr("r-pretty",lr),gr("time",Xr),gr("time-pretty",we),gr("log",gt),gr("pow",St),gr("quantile",Vt),gr("d3-linear",he),Ut("cat",dr),Ut("category",dr),Ut("identity",x),Ut("linear",A),Ut("log",st),Ut("pow",yt),Ut("time",Yt),Ut("timeCat",Lt),Ut("quantize",It),Ut("quantile",Gt)},49242:function(ne,Pr,Xt){"use strict";Xt.r(Pr),Xt.d(Pr,{Cache:function(){return Dn},assign:function(){return Ee},augment:function(){return Ge},clamp:function(){return et},clearAnimationFrame:function(){return Qe},clone:function(){return be},contains:function(){return j},debounce:function(){return Ke},deepMix:function(){return pn},difference:function(){return Kt},each:function(){return Br},endsWith:function(){return nt},every:function(){return st},extend:function(){return un},filter:function(){return _t},find:function(){return ft},findIndex:function(){return Mt},firstValue:function(){return Nt},fixedBase:function(){return pt},flatten:function(){return v},flattenDeep:function(){return vt},forIn:function(){return Xr},get:function(){return Cn},getEllipsisText:function(){return In},getRange:function(){return Wt},getType:function(){return nr},getWrapBehavior:function(){return er},group:function(){return zt},groupBy:function(){return rr},groupToMap:function(){return It},has:function(){return Hr},hasKey:function(){return Jr},hasValue:function(){return Ur},head:function(){return A},identity:function(){return Tn},includes:function(){return j},indexOf:function(){return dn},isArguments:function(){return jt},isArray:function(){return ar},isArrayLike:function(){return F},isBoolean:function(){return Nr},isDate:function(){return Rr},isDecimal:function(){return Vr},isElement:function(){return ke},isEmpty:function(){return yn},isEqual:function(){return tn},isEqualWith:function(){return rn},isError:function(){return se},isEven:function(){return he},isFinite:function(){return ve},isFunction:function(){return At},isInteger:function(){return Me},isMatch:function(){return Cr},isNegative:function(){return ye},isNil:function(){return $t},isNull:function(){return Te},isNumber:function(){return xr},isNumberEqual:function(){return Ae},isObject:function(){return yr},isObjectLike:function(){return Er},isOdd:function(){return M},isPlainObject:function(){return Dr},isPositive:function(){return a},isPrototype:function(){return ce},isRegExp:function(){return ie},isString:function(){return R},isType:function(){return fr},isUndefined:function(){return Oe},keys:function(){return Rt},last:function(){return E},lowerCase:function(){return ge},lowerFirst:function(){return we},map:function(){return Mn},mapValues:function(){return An},max:function(){return mt},maxBy:function(){return f},measureTextWidth:function(){return De},memoize:function(){return an},min:function(){return Ht},minBy:function(){return g},mix:function(){return Ee},mod:function(){return Y},noop:function(){return Pn},number2color:function(){return o},omit:function(){return Ve},parseRadius:function(){return k},pick:function(){return Sn},pull:function(){return kr},pullAt:function(){return y},reduce:function(){return s},remove:function(){return P},requestAnimationFrame:function(){return Be},set:function(){return bn},size:function(){return cn},some:function(){return yt},sortBy:function(){return ot},startsWith:function(){return G},substitute:function(){return m},throttle:function(){return En},toArray:function(){return ze},toDegree:function(){return wt},toInteger:function(){return St},toRadian:function(){return lr},toString:function(){return Or},union:function(){return Zt},uniq:function(){return Lt},uniqueId:function(){return en},upperCase:function(){return q},upperFirst:function(){return Q},values:function(){return Kr},valuesOfKey:function(){return pr},wrapBehavior:function(){return Ut}});var dt=function(u){return u!==null&&typeof u!="function"&&isFinite(u.length)},F=dt,$=function(u,T){return F(u)?u.indexOf(T)>-1:!1},j=$,gr=function(u,T){if(!F(u))return u;for(var H=[],V=0;V-1;)ur.call(u,Ft,1);return u},kr=wr,L=Array.prototype.splice,p=function(T,H){if(!F(T))return[];for(var V=T?H.length:0,ct=V-1;V--;){var Ft=void 0,hr=H[V];(V===ct||hr!==Ft)&&(Ft=hr,L.call(T,hr,1))}return T},y=p,_=function(u,T,H){if(!ar(u)&&!Dr(u))return u;var V=H;return Br(u,function(ct,Ft){V=T(V,ct,Ft)}),V},s=_,d=function(u,T){var H=[];if(!F(u))return H;for(var V=-1,ct=[],Ft=u.length;++VFt[Fr])return 1;if(ct[Fr]H?H:u},et=U,at=function(u,T){var H=T.toString(),V=H.indexOf(".");if(V===-1)return Math.round(u);var ct=H.substr(V+1).length;return ct>20&&(ct=20),parseFloat(u.toFixed(ct))},pt=at,br=function(u){return fr(u,"Number")},xr=br,Gr=function(u){return xr(u)&&u%1!=0},Vr=Gr,ae=function(u){return xr(u)&&u%2==0},he=ae,re=Number.isInteger?Number.isInteger:function(u){return xr(u)&&u%1==0},Me=re,me=function(u){return xr(u)&&u<0},ye=me,Se=1e-5;function Ae(u,T,H){return H===void 0&&(H=Se),Math.abs(u-T)0},a=l,f=function(u,T){if(!!ar(u)){for(var H,V=-Infinity,ct=0;ctV&&(H=Ft,V=hr)}return H}},g=function(u,T){if(!!ar(u)){for(var H,V=Infinity,ct=0;ctT?(V&&(clearTimeout(V),V=null),Fr=xe,hr=u.apply(ct,Ft),V||(ct=Ft=null)):!V&&H.trailing!==!1&&(V=setTimeout(le,Ue)),hr};return de.cancel=function(){clearTimeout(V),Fr=0,V=ct=Ft=null},de},ze=function(u){return F(u)?Array.prototype.slice.call(u):[]},Ze={},en=function(u){return u=u||"g",Ze[u]?Ze[u]+=1:Ze[u]=1,u+Ze[u]},Pn=function(){},Tn=function(u){return u};function cn(u){return $t(u)?0:F(u)?u.length:Object.keys(u).length}var Ye=Xt(70655),Fe,De=an(function(u,T){T===void 0&&(T={});var H=T.fontSize,V=T.fontFamily,ct=T.fontWeight,Ft=T.fontStyle,hr=T.fontVariant;return Fe||(Fe=document.createElement("canvas").getContext("2d")),Fe.font=[Ft,hr,ct,H+"px",V].join(" "),Fe.measureText(R(u)?u:"").width},function(u,T){return T===void 0&&(T={}),(0,Ye.__spreadArrays)([u],Kr(T)).join("")}),In=function(u,T,H,V){V===void 0&&(V="...");var ct=16,Ft=De(V,H),hr=R(u)?u:Or(u),Fr=T,le=[],de,xe;if(De(u,H)<=T)return u;for(;de=hr.substr(0,ct),xe=De(de,H),!(xe+Ft>Fr&&xe>Fr);)if(le.push(de),Fr-=xe,hr=hr.substr(ct),!hr)return le.join("");for(;de=hr.substr(0,1),xe=De(de,H),!(xe+Ft>Fr);)if(le.push(de),Fr-=xe,hr=hr.substr(1),!hr)return le.join("");return""+le.join("")+V},ln=function(){function u(){this.map={}}return u.prototype.has=function(T){return this.map[T]!==void 0},u.prototype.get=function(T,H){var V=this.map[T];return V===void 0?H:V},u.prototype.set=function(T,H){this.map[T]=H},u.prototype.clear=function(){this.map={}},u.prototype.delete=function(T){delete this.map[T]},u.prototype.size=function(){return Object.keys(this.map).length},u}(),Dn=ln},43631:function(ne,Pr,Xt){"use strict";Xt.d(Pr,{qY:function(){return Jt}});var dt=Xt(34155),F=function(Rt,sr,Cr){if(Cr||arguments.length===2)for(var Sr=0,Er=sr.length,Tr;Sr0&&(d=1/Math.sqrt(d)),p[0]=y[0]*d,p[1]=y[1]*d,p}function Tr(p,y){return p[0]*y[0]+p[1]*y[1]}function Dr(p,y,_){var s=y[0]*_[1]-y[1]*_[0];return p[0]=p[1]=0,p[2]=s,p}function zr(p,y,_,s){var d=y[0],P=y[1];return p[0]=d+s*(_[0]-d),p[1]=P+s*(_[1]-P),p}function ft(p,y){y=y||1;var _=dt.RANDOM()*2*Math.PI;return p[0]=Math.cos(_)*y,p[1]=Math.sin(_)*y,p}function ut(p,y,_){var s=y[0],d=y[1];return p[0]=_[0]*s+_[2]*d,p[1]=_[1]*s+_[3]*d,p}function Mt(p,y,_){var s=y[0],d=y[1];return p[0]=_[0]*s+_[2]*d+_[4],p[1]=_[1]*s+_[3]*d+_[5],p}function Ct(p,y,_){var s=y[0],d=y[1];return p[0]=_[0]*s+_[3]*d+_[6],p[1]=_[1]*s+_[4]*d+_[7],p}function Nt(p,y,_){var s=y[0],d=y[1];return p[0]=_[0]*s+_[4]*d+_[12],p[1]=_[1]*s+_[5]*d+_[13],p}function Pt(p,y,_,s){var d=y[0]-_[0],P=y[1]-_[1],R=Math.sin(s),W=Math.cos(s);return p[0]=d*W-P*R+_[0],p[1]=d*R+P*W+_[1],p}function v(p,y){var _=p[0],s=p[1],d=y[0],P=y[1],R=Math.sqrt(_*_+s*s)*Math.sqrt(d*d+P*P),W=R&&(_*d+s*P)/R;return Math.acos(Math.min(Math.max(W,-1),1))}function O(p){return p[0]=0,p[1]=0,p}function vt(p){return"vec2("+p[0]+", "+p[1]+")"}function mt(p,y){return p[0]===y[0]&&p[1]===y[1]}function Ht(p,y){var _=p[0],s=p[1],d=y[0],P=y[1];return Math.abs(_-d)<=dt.EPSILON*Math.max(1,Math.abs(_),Math.abs(d))&&Math.abs(s-P)<=dt.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))}var ir=Rt,Wt=Kt,cr=Ar,ur=dr,tr=Br,wr=Wr,kr=sr,L=function(){var p=F();return function(y,_,s,d,P,R){var W,ot;for(_||(_=2),s||(s=0),d?ot=Math.min(d*_+s,y.length):ot=y.length,W=s;W0&&(ot=1/Math.sqrt(ot)),s[0]=d[0]*ot,s[1]=d[1]*ot,s[2]=d[2]*ot,s}function Tr(s,d){return s[0]*d[0]+s[1]*d[1]+s[2]*d[2]}function Dr(s,d,P){var R=d[0],W=d[1],ot=d[2],Lt=P[0],kt=P[1],Zt=P[2];return s[0]=W*Zt-ot*kt,s[1]=ot*Lt-R*Zt,s[2]=R*kt-W*Lt,s}function zr(s,d,P,R){var W=d[0],ot=d[1],Lt=d[2];return s[0]=W+R*(P[0]-W),s[1]=ot+R*(P[1]-ot),s[2]=Lt+R*(P[2]-Lt),s}function ft(s,d,P,R,W,ot){var Lt=ot*ot,kt=Lt*(2*ot-3)+1,Zt=Lt*(ot-2)+ot,pr=Lt*(ot-1),A=Lt*(3-2*ot);return s[0]=d[0]*kt+P[0]*Zt+R[0]*pr+W[0]*A,s[1]=d[1]*kt+P[1]*Zt+R[1]*pr+W[1]*A,s[2]=d[2]*kt+P[2]*Zt+R[2]*pr+W[2]*A,s}function ut(s,d,P,R,W,ot){var Lt=1-ot,kt=Lt*Lt,Zt=ot*ot,pr=kt*Lt,A=3*ot*kt,E=3*Zt*Lt,N=Zt*ot;return s[0]=d[0]*pr+P[0]*A+R[0]*E+W[0]*N,s[1]=d[1]*pr+P[1]*A+R[1]*E+W[1]*N,s[2]=d[2]*pr+P[2]*A+R[2]*E+W[2]*N,s}function Mt(s,d){d=d||1;var P=dt.RANDOM()*2*Math.PI,R=dt.RANDOM()*2-1,W=Math.sqrt(1-R*R)*d;return s[0]=Math.cos(P)*W,s[1]=Math.sin(P)*W,s[2]=R*d,s}function Ct(s,d,P){var R=d[0],W=d[1],ot=d[2],Lt=P[3]*R+P[7]*W+P[11]*ot+P[15];return Lt=Lt||1,s[0]=(P[0]*R+P[4]*W+P[8]*ot+P[12])/Lt,s[1]=(P[1]*R+P[5]*W+P[9]*ot+P[13])/Lt,s[2]=(P[2]*R+P[6]*W+P[10]*ot+P[14])/Lt,s}function Nt(s,d,P){var R=d[0],W=d[1],ot=d[2];return s[0]=R*P[0]+W*P[3]+ot*P[6],s[1]=R*P[1]+W*P[4]+ot*P[7],s[2]=R*P[2]+W*P[5]+ot*P[8],s}function Pt(s,d,P){var R=P[0],W=P[1],ot=P[2],Lt=P[3],kt=d[0],Zt=d[1],pr=d[2],A=W*pr-ot*Zt,E=ot*kt-R*pr,N=R*Zt-W*kt,G=W*N-ot*E,Z=ot*A-R*N,nt=R*E-W*A,rt=Lt*2;return A*=rt,E*=rt,N*=rt,G*=2,Z*=2,nt*=2,s[0]=kt+A+G,s[1]=Zt+E+Z,s[2]=pr+N+nt,s}function v(s,d,P,R){var W=[],ot=[];return W[0]=d[0]-P[0],W[1]=d[1]-P[1],W[2]=d[2]-P[2],ot[0]=W[0],ot[1]=W[1]*Math.cos(R)-W[2]*Math.sin(R),ot[2]=W[1]*Math.sin(R)+W[2]*Math.cos(R),s[0]=ot[0]+P[0],s[1]=ot[1]+P[1],s[2]=ot[2]+P[2],s}function O(s,d,P,R){var W=[],ot=[];return W[0]=d[0]-P[0],W[1]=d[1]-P[1],W[2]=d[2]-P[2],ot[0]=W[2]*Math.sin(R)+W[0]*Math.cos(R),ot[1]=W[1],ot[2]=W[2]*Math.cos(R)-W[0]*Math.sin(R),s[0]=ot[0]+P[0],s[1]=ot[1]+P[1],s[2]=ot[2]+P[2],s}function vt(s,d,P,R){var W=[],ot=[];return W[0]=d[0]-P[0],W[1]=d[1]-P[1],W[2]=d[2]-P[2],ot[0]=W[0]*Math.cos(R)-W[1]*Math.sin(R),ot[1]=W[0]*Math.sin(R)+W[1]*Math.cos(R),ot[2]=W[2],s[0]=ot[0]+P[0],s[1]=ot[1]+P[1],s[2]=ot[2]+P[2],s}function mt(s,d){var P=s[0],R=s[1],W=s[2],ot=d[0],Lt=d[1],kt=d[2],Zt=Math.sqrt(P*P+R*R+W*W),pr=Math.sqrt(ot*ot+Lt*Lt+kt*kt),A=Zt*pr,E=A&&Tr(s,d)/A;return Math.acos(Math.min(Math.max(E,-1),1))}function Ht(s){return s[0]=0,s[1]=0,s[2]=0,s}function ir(s){return"vec3("+s[0]+", "+s[1]+", "+s[2]+")"}function Wt(s,d){return s[0]===d[0]&&s[1]===d[1]&&s[2]===d[2]}function cr(s,d){var P=s[0],R=s[1],W=s[2],ot=d[0],Lt=d[1],kt=d[2];return Math.abs(P-ot)<=dt.EPSILON*Math.max(1,Math.abs(P),Math.abs(ot))&&Math.abs(R-Lt)<=dt.EPSILON*Math.max(1,Math.abs(R),Math.abs(Lt))&&Math.abs(W-kt)<=dt.EPSILON*Math.max(1,Math.abs(W),Math.abs(kt))}var ur=Ar,tr=dr,wr=fr,kr=Wr,L=Rt,p=j,y=sr,_=function(){var s=F();return function(d,P,R,W,ot,Lt){var kt,Zt;for(P||(P=3),R||(R=0),W?Zt=Math.min(W*P+R,d.length):Zt=d.length,kt=R;kt=0;O--)(v=ft[O])&&(Pt=(Nt<3?v(Pt):Nt>3?v(ut,Mt,Pt):v(ut,Mt))||Pt);return Nt>3&&Pt&&Object.defineProperty(ut,Mt,Pt),Pt}function _t(ft,ut){return function(Mt,Ct){ut(Mt,Ct,ft)}}function mr(ft,ut){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(ft,ut)}function Kt(ft,ut,Mt,Ct){function Nt(Pt){return Pt instanceof Mt?Pt:new Mt(function(v){v(Pt)})}return new(Mt||(Mt=Promise))(function(Pt,v){function O(Ht){try{mt(Ct.next(Ht))}catch(ir){v(ir)}}function vt(Ht){try{mt(Ct.throw(Ht))}catch(ir){v(ir)}}function mt(Ht){Ht.done?Pt(Ht.value):Nt(Ht.value).then(O,vt)}mt((Ct=Ct.apply(ft,ut||[])).next())})}function Ar(ft,ut){var Mt={label:0,sent:function(){if(Pt[0]&1)throw Pt[1];return Pt[1]},trys:[],ops:[]},Ct,Nt,Pt,v;return v={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function O(mt){return function(Ht){return vt([mt,Ht])}}function vt(mt){if(Ct)throw new TypeError("Generator is already executing.");for(;Mt;)try{if(Ct=1,Nt&&(Pt=mt[0]&2?Nt.return:mt[0]?Nt.throw||((Pt=Nt.return)&&Pt.call(Nt),0):Nt.next)&&!(Pt=Pt.call(Nt,mt[1])).done)return Pt;switch(Nt=0,Pt&&(mt=[mt[0]&2,Pt.value]),mt[0]){case 0:case 1:Pt=mt;break;case 4:return Mt.label++,{value:mt[1],done:!1};case 5:Mt.label++,Nt=mt[1],mt=[0];continue;case 7:mt=Mt.ops.pop(),Mt.trys.pop();continue;default:if(Pt=Mt.trys,!(Pt=Pt.length>0&&Pt[Pt.length-1])&&(mt[0]===6||mt[0]===2)){Mt=0;continue}if(mt[0]===3&&(!Pt||mt[1]>Pt[0]&&mt[1]=ft.length&&(ft=void 0),{value:ft&&ft[Ct++],done:!ft}}};throw new TypeError(ut?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jt(ft,ut){var Mt=typeof Symbol=="function"&&ft[Symbol.iterator];if(!Mt)return ft;var Ct=Mt.call(ft),Nt,Pt=[],v;try{for(;(ut===void 0||ut-- >0)&&!(Nt=Ct.next()).done;)Pt.push(Nt.value)}catch(O){v={error:O}}finally{try{Nt&&!Nt.done&&(Mt=Ct.return)&&Mt.call(Ct)}finally{if(v)throw v.error}}return Pt}function $t(){for(var ft=[],ut=0;ut1||O(Wt,cr)})})}function O(Wt,cr){try{vt(Ct[Wt](cr))}catch(ur){ir(Pt[0][3],ur)}}function vt(Wt){Wt.value instanceof Lr?Promise.resolve(Wt.value.v).then(mt,Ht):ir(Pt[0][2],Wt)}function mt(Wt){O("next",Wt)}function Ht(Wt){O("throw",Wt)}function ir(Wt,cr){Wt(cr),Pt.shift(),Pt.length&&O(Pt[0][0],Pt[0][1])}}function Wr(ft){var ut,Mt;return ut={},Ct("next"),Ct("throw",function(Nt){throw Nt}),Ct("return"),ut[Symbol.iterator]=function(){return this},ut;function Ct(Nt,Pt){ut[Nt]=ft[Nt]?function(v){return(Mt=!Mt)?{value:Lr(ft[Nt](v)),done:Nt==="return"}:Pt?Pt(v):v}:Pt}}function Rt(ft){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ut=ft[Symbol.asyncIterator],Mt;return ut?ut.call(ft):(ft=typeof At=="function"?At(ft):ft[Symbol.iterator](),Mt={},Ct("next"),Ct("throw"),Ct("return"),Mt[Symbol.asyncIterator]=function(){return this},Mt);function Ct(Pt){Mt[Pt]=ft[Pt]&&function(v){return new Promise(function(O,vt){v=ft[Pt](v),Nt(O,vt,v.done,v.value)})}}function Nt(Pt,v,O,vt){Promise.resolve(vt).then(function(mt){Pt({value:mt,done:O})},v)}}function sr(ft,ut){return Object.defineProperty?Object.defineProperty(ft,"raw",{value:ut}):ft.raw=ut,ft}var Cr=Object.create?function(ft,ut){Object.defineProperty(ft,"default",{enumerable:!0,value:ut})}:function(ft,ut){ft.default=ut};function Sr(ft){if(ft&&ft.__esModule)return ft;var ut={};if(ft!=null)for(var Mt in ft)Mt!=="default"&&Object.prototype.hasOwnProperty.call(ft,Mt)&&dr(ut,ft,Mt);return Cr(ut,ft),ut}function Er(ft){return ft&&ft.__esModule?ft:{default:ft}}function Tr(ft,ut,Mt,Ct){if(Mt==="a"&&!Ct)throw new TypeError("Private accessor was defined without a getter");if(typeof ut=="function"?ft!==ut||!Ct:!ut.has(ft))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Mt==="m"?Ct:Mt==="a"?Ct.call(ft):Ct?Ct.value:ut.get(ft)}function Dr(ft,ut,Mt,Ct,Nt){if(Ct==="m")throw new TypeError("Private method is not writable");if(Ct==="a"&&!Nt)throw new TypeError("Private accessor was defined without a setter");if(typeof ut=="function"?ft!==ut||!Nt:!ut.has(ft))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ct==="a"?Nt.call(ft,Mt):Nt?Nt.value=Mt:ut.set(ft,Mt),Mt}function zr(ft,ut){if(ut===null||typeof ut!="object"&&typeof ut!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof ft=="function"?ut===ft:ft.has(ut)}}}]);