From 0c340acdc1d97202bf7e8f59f1a2617924ff5d76 Mon Sep 17 00:00:00 2001 From: yuepeng Date: Sun, 4 Feb 2024 23:45:34 +0800 Subject: [PATCH] update Rose chart define --- .../public/{830.5c7849c8d95958b4.js => 830.20de7dc1f9897d6d.js} | 2 +- erupt-web/src/main/resources/public/index.html | 2 +- ...{runtime.633ddae6872db1af.js => runtime.303e102d120cbac3.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename erupt-web/src/main/resources/public/{830.5c7849c8d95958b4.js => 830.20de7dc1f9897d6d.js} (95%) rename erupt-web/src/main/resources/public/{runtime.633ddae6872db1af.js => runtime.303e102d120cbac3.js} (58%) diff --git a/erupt-web/src/main/resources/public/830.5c7849c8d95958b4.js b/erupt-web/src/main/resources/public/830.20de7dc1f9897d6d.js similarity index 95% rename from erupt-web/src/main/resources/public/830.5c7849c8d95958b4.js rename to erupt-web/src/main/resources/public/830.20de7dc1f9897d6d.js index 40b99e1e4..e573f6a51 100644 --- a/erupt-web/src/main/resources/public/830.5c7849c8d95958b4.js +++ b/erupt-web/src/main/resources/public/830.20de7dc1f9897d6d.js @@ -1 +1 @@ -(self.webpackChunkerupt=self.webpackChunkerupt||[]).push([[830],{1120:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>ie});const ie=function(){function qt(){this._events={}}return qt.prototype.on=function(zt,bt,kt){return this._events[zt]||(this._events[zt]=[]),this._events[zt].push({callback:bt,once:!!kt}),this},qt.prototype.once=function(zt,bt){return this.on(zt,bt,!0)},qt.prototype.emit=function(zt){for(var bt=this,kt=[],ht=1;ht{"use strict";V.d(ae,{Z:()=>zt});var Vt=V(7582),Et=V(1120),ie=V(5412);const zt=function(bt){function kt(ht){var mt=bt.call(this)||this;mt.destroyed=!1;var te=mt.getDefaultCfg();return mt.cfg=(0,ie.CD)(te,ht),mt}return(0,Vt.ZT)(kt,bt),kt.prototype.getDefaultCfg=function(){return{}},kt.prototype.get=function(ht){return this.cfg[ht]},kt.prototype.set=function(ht,mt){this.cfg[ht]=mt},kt.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},kt}(Et.Z)},7281:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>pn});var te,Bt,Vt=V(7582),Et=V(1653),ie=V(5331),qt=V(5412),zt=V(6641),bt=0,kt=0,ht=0,mt=1e3,Qt=0,xt=0,K=0,J="object"==typeof performance&&performance.now?performance:Date,$="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(N){setTimeout(N,17)};function Lt(){return xt||($(Tt),xt=J.now()+K)}function Tt(){xt=0}function Ft(){this._call=this._time=this._next=null}function lt(N,P,H){var rt=new Ft;return rt.restart(N,P,H),rt}function u(){xt=(Qt=J.now())+K,bt=kt=0;try{!function Z(){Lt(),++bt;for(var P,N=te;N;)(P=xt-N._time)>=0&&N._call.call(null,P),N=N._next;--bt}()}finally{bt=0,function Mt(){for(var N,H,P=te,rt=1/0;P;)P._call?(rt>P._time&&(rt=P._time),N=P,P=P._next):(H=P._next,P._next=null,P=N?N._next=H:te=H);Bt=N,Jt(rt)}(),xt=0}}function ct(){var N=J.now(),P=N-Qt;P>mt&&(K-=P,Qt=N)}function Jt(N){bt||(kt&&(kt=clearTimeout(kt)),N-xt>24?(N<1/0&&(kt=setTimeout(u,N-J.now()-K)),ht&&(ht=clearInterval(ht))):(ht||(Qt=J.now(),ht=setInterval(ct,mt)),bt=1,$(u)))}function jt(N,P,H){N.prototype=P.prototype=H,H.constructor=N}function et(N,P){var H=Object.create(N.prototype);for(var rt in P)H[rt]=P[rt];return H}function ft(){}Ft.prototype=lt.prototype={constructor:Ft,restart:function(N,P,H){if("function"!=typeof N)throw new TypeError("callback is not a function");H=(null==H?Lt():+H)+(null==P?0:+P),!this._next&&Bt!==this&&(Bt?Bt._next=this:te=this,Bt=this),this._call=N,this._time=H,Jt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jt())}};var Ct=1/.7,vt="\\s*([+-]?\\d+)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",B=/^#([0-9a-f]{3,8})$/,dt=new RegExp(`^rgb\\(${vt},${vt},${vt}\\)$`),Rt=new RegExp(`^rgb\\(${_},${_},${_}\\)$`),Zt=new RegExp(`^rgba\\(${vt},${vt},${vt},${ut}\\)$`),oe=new RegExp(`^rgba\\(${_},${_},${_},${ut}\\)$`),L=new RegExp(`^hsl\\(${ut},${_},${_}\\)$`),Y=new RegExp(`^hsla\\(${ut},${_},${_},${ut}\\)$`),G={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function D(){return this.rgb().formatHex()}function k(){return this.rgb().formatRgb()}function I(N){var P,H;return N=(N+"").trim().toLowerCase(),(P=B.exec(N))?(H=P[1].length,P=parseInt(P[1],16),6===H?w(P):3===H?new O(P>>8&15|P>>4&240,P>>4&15|240&P,(15&P)<<4|15&P,1):8===H?A(P>>24&255,P>>16&255,P>>8&255,(255&P)/255):4===H?A(P>>12&15|P>>8&240,P>>8&15|P>>4&240,P>>4&15|240&P,((15&P)<<4|15&P)/255):null):(P=dt.exec(N))?new O(P[1],P[2],P[3],1):(P=Rt.exec(N))?new O(255*P[1]/100,255*P[2]/100,255*P[3]/100,1):(P=Zt.exec(N))?A(P[1],P[2],P[3],P[4]):(P=oe.exec(N))?A(255*P[1]/100,255*P[2]/100,255*P[3]/100,P[4]):(P=L.exec(N))?Kt(P[1],P[2]/100,P[3]/100,1):(P=Y.exec(N))?Kt(P[1],P[2]/100,P[3]/100,P[4]):G.hasOwnProperty(N)?w(G[N]):"transparent"===N?new O(NaN,NaN,NaN,0):null}function w(N){return new O(N>>16&255,N>>8&255,255&N,1)}function A(N,P,H,rt){return rt<=0&&(N=P=H=NaN),new O(N,P,H,rt)}function R(N,P,H,rt){return 1===arguments.length?function F(N){return N instanceof ft||(N=I(N)),N?new O((N=N.rgb()).r,N.g,N.b,N.opacity):new O}(N):new O(N,P,H,rt??1)}function O(N,P,H,rt){this.r=+N,this.g=+P,this.b=+H,this.opacity=+rt}function j(){return`#${se(this.r)}${se(this.g)}${se(this.b)}`}function gt(){const N=$t(this.opacity);return`${1===N?"rgb(":"rgba("}${Dt(this.r)}, ${Dt(this.g)}, ${Dt(this.b)}${1===N?")":`, ${N})`}`}function $t(N){return isNaN(N)?1:Math.max(0,Math.min(1,N))}function Dt(N){return Math.max(0,Math.min(255,Math.round(N)||0))}function se(N){return((N=Dt(N))<16?"0":"")+N.toString(16)}function Kt(N,P,H,rt){return rt<=0?N=P=H=NaN:H<=0||H>=1?N=P=NaN:P<=0&&(N=NaN),new U(N,P,H,rt)}function Yt(N){if(N instanceof U)return new U(N.h,N.s,N.l,N.opacity);if(N instanceof ft||(N=I(N)),!N)return new U;if(N instanceof U)return N;var P=(N=N.rgb()).r/255,H=N.g/255,rt=N.b/255,It=Math.min(P,H,rt),re=Math.max(P,H,rt),ve=NaN,le=re-It,Pe=(re+It)/2;return le?(ve=P===re?(H-rt)/le+6*(H0&&Pe<1?0:ve,new U(ve,le,Pe,N.opacity)}function U(N,P,H,rt){this.h=+N,this.s=+P,this.l=+H,this.opacity=+rt}function q(N){return(N=(N||0)%360)<0?N+360:N}function at(N){return Math.max(0,Math.min(1,N||0))}function At(N,P,H){return 255*(N<60?P+(H-P)*N/60:N<180?H:N<240?P+(H-P)*(240-N)/60:P)}function Nt(N,P,H,rt,It){var re=N*N,ve=re*N;return((1-3*N+3*re-ve)*P+(4-6*re+3*ve)*H+(1+3*N+3*re-3*ve)*rt+ve*It)/6}jt(ft,I,{copy(N){return Object.assign(new this.constructor,this,N)},displayable(){return this.rgb().displayable()},hex:D,formatHex:D,formatHex8:function nt(){return this.rgb().formatHex8()},formatHsl:function st(){return Yt(this).formatHsl()},formatRgb:k,toString:k}),jt(O,R,et(ft,{brighter(N){return N=null==N?Ct:Math.pow(Ct,N),new O(this.r*N,this.g*N,this.b*N,this.opacity)},darker(N){return N=null==N?.7:Math.pow(.7,N),new O(this.r*N,this.g*N,this.b*N,this.opacity)},rgb(){return this},clamp(){return new O(Dt(this.r),Dt(this.g),Dt(this.b),$t(this.opacity))},displayable(){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:j,formatHex:j,formatHex8:function Q(){return`#${se(this.r)}${se(this.g)}${se(this.b)}${se(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:gt,toString:gt})),jt(U,function z(N,P,H,rt){return 1===arguments.length?Yt(N):new U(N,P,H,rt??1)},et(ft,{brighter(N){return N=null==N?Ct:Math.pow(Ct,N),new U(this.h,this.s,this.l*N,this.opacity)},darker(N){return N=null==N?.7:Math.pow(.7,N),new U(this.h,this.s,this.l*N,this.opacity)},rgb(){var N=this.h%360+360*(this.h<0),P=isNaN(N)||isNaN(this.s)?0:this.s,H=this.l,rt=H+(H<.5?H:1-H)*P,It=2*H-rt;return new O(At(N>=240?N-240:N+120,It,rt),At(N,It,rt),At(N<120?N+240:N-120,It,rt),this.opacity)},clamp(){return new U(q(this.h),at(this.s),at(this.l),$t(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const N=$t(this.opacity);return`${1===N?"hsl(":"hsla("}${q(this.h)}, ${100*at(this.s)}%, ${100*at(this.l)}%${1===N?")":`, ${N})`}`}}));const _t=N=>()=>N;function ce(N,P){var H=P-N;return H?function ne(N,P){return function(H){return N+H*P}}(N,H):_t(isNaN(N)?P:N)}const xe=function N(P){var H=function Ce(N){return 1==(N=+N)?ce:function(P,H){return H-P?function Wt(N,P,H){return N=Math.pow(N,H),P=Math.pow(P,H)-N,H=1/H,function(rt){return Math.pow(N+rt*P,H)}}(P,H,N):_t(isNaN(P)?H:P)}}(P);function rt(It,re){var ve=H((It=R(It)).r,(re=R(re)).r),le=H(It.g,re.g),Pe=H(It.b,re.b),on=ce(It.opacity,re.opacity);return function(Sn){return It.r=ve(Sn),It.g=le(Sn),It.b=Pe(Sn),It.opacity=on(Sn),It+""}}return rt.gamma=N,rt}(1);function ye(N){return function(P){var ve,le,H=P.length,rt=new Array(H),It=new Array(H),re=new Array(H);for(ve=0;ve=1?(H=1,P-1):Math.floor(H*P),It=N[rt],re=N[rt+1];return Nt((H-rt/P)*P,rt>0?N[rt-1]:2*It-re,It,re,rtH&&(re=P.slice(H,re),le[ve]?le[ve]+=re:le[++ve]=re),(rt=rt[0])===(It=It[0])?le[ve]?le[ve]+=It:le[++ve]=It:(le[++ve]=null,Pe.push({i:ve,x:Ve(rt,It)})),H=Cn.lastIndex;return Hon.length?(Pe=vn.parsePathString(re[le]),on=vn.parsePathString(It[le]),on=vn.fillPathByDiff(on,Pe),on=vn.formatPath(on,Pe),P.fromAttrs.path=on,P.toAttrs.path=Pe):P.pathFormatted||(Pe=vn.parsePathString(re[le]),on=vn.parsePathString(It[le]),on=vn.formatPath(on,Pe),P.fromAttrs.path=on,P.toAttrs.path=Pe,P.pathFormatted=!0),rt[le]=[];for(var Sn=0;Sn0){for(var le=P.animators.length-1;le>=0;le--)if((rt=P.animators[le]).destroyed)P.removeAnimator(le);else{if(!rt.isAnimatePaused())for(var Pe=(It=rt.get("animations")).length-1;Pe>=0;Pe--)mr(rt,re=It[Pe],ve)&&(It.splice(Pe,1),re.callback&&re.callback());0===It.length&&P.removeAnimator(le)}P.canvas.get("autoDraw")||P.canvas.draw()}})},N.prototype.addAnimator=function(P){this.animators.push(P)},N.prototype.removeAnimator=function(P){this.animators.splice(P,1)},N.prototype.isAnimating=function(){return!!this.animators.length},N.prototype.stop=function(){this.timer&&this.timer.stop()},N.prototype.stopAllAnimations=function(P){void 0===P&&(P=!0),this.animators.forEach(function(H){H.stopAnimate(P)}),this.animators=[],this.canvas.draw()},N.prototype.getTime=function(){return this.current},N}();var za=V(713),Ba=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function wi(N,P,H){H.name=P,H.target=N,H.currentTarget=N,H.delegateTarget=N,N.emit(P,H)}function Na(N,P,H){if(H.bubbles){var rt=void 0,It=!1;if("mouseenter"===P?(rt=H.fromShape,It=!0):"mouseleave"===P&&(It=!0,rt=H.toShape),N.isCanvas()&&It)return;if(rt&&(0,qt.UY)(N,rt))return void(H.bubbles=!1);H.name=P,H.currentTarget=N,H.delegateTarget=N,N.emit(P,H)}}const Jo=function(){function N(P){var H=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(rt){H._triggerEvent(rt.type,rt)},this._onDocumentMove=function(rt){if(H.canvas.get("el")!==rt.target&&(H.dragging||H.currentShape)){var ve=H._getPointInfo(rt);H.dragging&&H._emitEvent("drag",rt,ve,H.draggingShape)}},this._onDocumentMouseUp=function(rt){if(H.canvas.get("el")!==rt.target&&H.dragging){var ve=H._getPointInfo(rt);H.draggingShape&&H._emitEvent("drop",rt,ve,null),H._emitEvent("dragend",rt,ve,H.draggingShape),H._afterDrag(H.draggingShape,ve,rt)}},this.canvas=P.canvas}return N.prototype.init=function(){this._bindEvents()},N.prototype._bindEvents=function(){var P=this,H=this.canvas.get("el");(0,qt.S6)(Ba,function(rt){H.addEventListener(rt,P._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},N.prototype._clearEvents=function(){var P=this,H=this.canvas.get("el");(0,qt.S6)(Ba,function(rt){H.removeEventListener(rt,P._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},N.prototype._getEventObj=function(P,H,rt,It,re,ve){var le=new za.Z(P,H);return le.fromShape=re,le.toShape=ve,le.x=rt.x,le.y=rt.y,le.clientX=rt.clientX,le.clientY=rt.clientY,le.propagationPath.push(It),le},N.prototype._getShape=function(P,H){return this.canvas.getShape(P.x,P.y,H)},N.prototype._getPointInfo=function(P){var H=this.canvas,rt=H.getClientByEvent(P),It=H.getPointByEvent(P);return{x:It.x,y:It.y,clientX:rt.x,clientY:rt.y}},N.prototype._triggerEvent=function(P,H){var rt=this._getPointInfo(H),It=this._getShape(rt,H),re=this["_on"+P],ve=!1;if(re)re.call(this,rt,It,H);else{var le=this.currentShape;"mouseenter"===P||"dragenter"===P||"mouseover"===P?(this._emitEvent(P,H,rt,null,null,It),It&&this._emitEvent(P,H,rt,It,null,It),"mouseenter"===P&&this.draggingShape&&this._emitEvent("dragenter",H,rt,null)):"mouseleave"===P||"dragleave"===P||"mouseout"===P?(ve=!0,le&&this._emitEvent(P,H,rt,le,le,null),this._emitEvent(P,H,rt,null,le,null),"mouseleave"===P&&this.draggingShape&&this._emitEvent("dragleave",H,rt,null)):this._emitEvent(P,H,rt,It,null,null)}if(ve||(this.currentShape=It),It&&!It.get("destroyed")){var Pe=this.canvas;Pe.get("el").style.cursor=It.attr("cursor")||Pe.get("cursor")}},N.prototype._onmousedown=function(P,H,rt){0===rt.button&&(this.mousedownShape=H,this.mousedownPoint=P,this.mousedownTimeStamp=rt.timeStamp),this._emitEvent("mousedown",rt,P,H,null,null)},N.prototype._emitMouseoverEvents=function(P,H,rt,It){var re=this.canvas.get("el");rt!==It&&(rt&&(this._emitEvent("mouseout",P,H,rt,rt,It),this._emitEvent("mouseleave",P,H,rt,rt,It),(!It||It.get("destroyed"))&&(re.style.cursor=this.canvas.get("cursor"))),It&&(this._emitEvent("mouseover",P,H,It,rt,It),this._emitEvent("mouseenter",P,H,It,rt,It)))},N.prototype._emitDragoverEvents=function(P,H,rt,It,re){It?(It!==rt&&(rt&&this._emitEvent("dragleave",P,H,rt,rt,It),this._emitEvent("dragenter",P,H,It,rt,It)),re||this._emitEvent("dragover",P,H,It)):rt&&this._emitEvent("dragleave",P,H,rt,rt,It),re&&this._emitEvent("dragover",P,H,It)},N.prototype._afterDrag=function(P,H,rt){P&&(P.set("capture",!0),this.draggingShape=null),this.dragging=!1;var It=this._getShape(H,rt);It!==P&&this._emitMouseoverEvents(rt,H,P,It),this.currentShape=It},N.prototype._onmouseup=function(P,H,rt){if(0===rt.button){var It=this.draggingShape;this.dragging?(It&&this._emitEvent("drop",rt,P,H),this._emitEvent("dragend",rt,P,It),this._afterDrag(It,P,rt)):(this._emitEvent("mouseup",rt,P,H),H===this.mousedownShape&&this._emitEvent("click",rt,P,H),this.mousedownShape=null,this.mousedownPoint=null)}},N.prototype._ondragover=function(P,H,rt){rt.preventDefault(),this._emitDragoverEvents(rt,P,this.currentShape,H,!0)},N.prototype._onmousemove=function(P,H,rt){var It=this.canvas,re=this.currentShape,ve=this.draggingShape;if(this.dragging)ve&&this._emitDragoverEvents(rt,P,re,H,!1),this._emitEvent("drag",rt,P,ve);else{var le=this.mousedownPoint;if(le){var Pe=this.mousedownShape,zn=le.clientX-P.clientX,xr=le.clientY-P.clientY;rt.timeStamp-this.mousedownTimeStamp>120||zn*zn+xr*xr>40?Pe&&Pe.get("draggable")?((ve=this.mousedownShape).set("capture",!1),this.draggingShape=ve,this.dragging=!0,this._emitEvent("dragstart",rt,P,ve),this.mousedownShape=null,this.mousedownPoint=null):!Pe&&It.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",rt,P,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(rt,P,re,H),this._emitEvent("mousemove",rt,P,H)):(this._emitMouseoverEvents(rt,P,re,H),this._emitEvent("mousemove",rt,P,H))}else this._emitMouseoverEvents(rt,P,re,H),this._emitEvent("mousemove",rt,P,H)}},N.prototype._emitEvent=function(P,H,rt,It,re,ve){var le=this._getEventObj(P,H,rt,It,re,ve);if(It){le.shape=It,wi(It,P,le);for(var Pe=It.getParent();Pe;)Pe.emitDelegation(P,le),le.propagationStopped||Na(Pe,P,le),le.propagationPath.push(Pe),Pe=Pe.getParent()}else wi(this.canvas,P,le)},N.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},N}();var Ki=(0,Et.qY)(),ta=Ki&&"firefox"===Ki.name;const pn=function(N){function P(H){var rt=N.call(this,H)||this;return rt.initContainer(),rt.initDom(),rt.initEvents(),rt.initTimeline(),rt}return(0,Vt.ZT)(P,N),P.prototype.getDefaultCfg=function(){var H=N.prototype.getDefaultCfg.call(this);return H.cursor="default",H.supportCSSTransform=!1,H},P.prototype.initContainer=function(){var H=this.get("container");(0,qt.HD)(H)&&(H=document.getElementById(H),this.set("container",H))},P.prototype.initDom=function(){var H=this.createDom();this.set("el",H),this.get("container").appendChild(H),this.setDOMSize(this.get("width"),this.get("height"))},P.prototype.initEvents=function(){var H=new Jo({canvas:this});H.init(),this.set("eventController",H)},P.prototype.initTimeline=function(){var H=new Qi(this);this.set("timeline",H)},P.prototype.setDOMSize=function(H,rt){var It=this.get("el");qt.jU&&(It.style.width=H+"px",It.style.height=rt+"px")},P.prototype.changeSize=function(H,rt){this.setDOMSize(H,rt),this.set("width",H),this.set("height",rt),this.onCanvasChange("changeSize")},P.prototype.getRenderer=function(){return this.get("renderer")},P.prototype.getCursor=function(){return this.get("cursor")},P.prototype.setCursor=function(H){this.set("cursor",H);var rt=this.get("el");qt.jU&&rt&&(rt.style.cursor=H)},P.prototype.getPointByEvent=function(H){if(this.get("supportCSSTransform")){if(ta&&!(0,qt.kK)(H.layerX)&&H.layerX!==H.offsetX)return{x:H.layerX,y:H.layerY};if(!(0,qt.kK)(H.offsetX))return{x:H.offsetX,y:H.offsetY}}var It=this.getClientByEvent(H);return this.getPointByClient(It.x,It.y)},P.prototype.getClientByEvent=function(H){var rt=H;return H.touches&&(rt="touchend"===H.type?H.changedTouches[0]:H.touches[0]),{x:rt.clientX,y:rt.clientY}},P.prototype.getPointByClient=function(H,rt){var re=this.get("el").getBoundingClientRect();return{x:H-re.left,y:rt-re.top}},P.prototype.getClientByPoint=function(H,rt){var re=this.get("el").getBoundingClientRect();return{x:H+re.left,y:rt+re.top}},P.prototype.draw=function(){},P.prototype.removeDom=function(){var H=this.get("el");H.parentNode.removeChild(H)},P.prototype.clearEvents=function(){this.get("eventController").destroy()},P.prototype.isCanvas=function(){return!0},P.prototype.getParent=function(){return null},P.prototype.destroy=function(){var H=this.get("timeline");this.get("destroyed")||(this.clear(),H&&H.stop(),this.clearEvents(),this.removeDom(),N.prototype.destroy.call(this))},P}(ie.Z)},5331:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>Qt});var Vt=V(7582),Et=V(8085),ie=V(5412),qt={},zt="_INDEX";function bt(xt,K){if(xt.set("canvas",K),xt.isGroup()){var J=xt.get("children");J.length&&J.forEach(function($){bt($,K)})}}function kt(xt,K){if(xt.set("timeline",K),xt.isGroup()){var J=xt.get("children");J.length&&J.forEach(function($){kt($,K)})}}const Qt=function(xt){function K(){return null!==xt&&xt.apply(this,arguments)||this}return(0,Vt.ZT)(K,xt),K.prototype.isCanvas=function(){return!1},K.prototype.getBBox=function(){var J=1/0,$=-1/0,Lt=1/0,Tt=-1/0,Ft=this.getChildren().filter(function(Z){return Z.get("visible")&&(!Z.isGroup()||Z.isGroup()&&Z.getChildren().length>0)});return Ft.length>0?(0,ie.S6)(Ft,function(Z){var u=Z.getBBox(),ct=u.minX,Mt=u.maxX,Jt=u.minY,jt=u.maxY;ct$&&($=Mt),JtTt&&(Tt=jt)}):(J=0,$=0,Lt=0,Tt=0),{x:J,y:Lt,minX:J,minY:Lt,maxX:$,maxY:Tt,width:$-J,height:Tt-Lt}},K.prototype.getCanvasBBox=function(){var J=1/0,$=-1/0,Lt=1/0,Tt=-1/0,Ft=this.getChildren().filter(function(Z){return Z.get("visible")&&(!Z.isGroup()||Z.isGroup()&&Z.getChildren().length>0)});return Ft.length>0?(0,ie.S6)(Ft,function(Z){var u=Z.getCanvasBBox(),ct=u.minX,Mt=u.maxX,Jt=u.minY,jt=u.maxY;ct$&&($=Mt),JtTt&&(Tt=jt)}):(J=0,$=0,Lt=0,Tt=0),{x:J,y:Lt,minX:J,minY:Lt,maxX:$,maxY:Tt,width:$-J,height:Tt-Lt}},K.prototype.getDefaultCfg=function(){var J=xt.prototype.getDefaultCfg.call(this);return J.children=[],J},K.prototype.onAttrChange=function(J,$,Lt){if(xt.prototype.onAttrChange.call(this,J,$,Lt),"matrix"===J){var Tt=this.getTotalMatrix();this._applyChildrenMarix(Tt)}},K.prototype.applyMatrix=function(J){var $=this.getTotalMatrix();xt.prototype.applyMatrix.call(this,J);var Lt=this.getTotalMatrix();Lt!==$&&this._applyChildrenMarix(Lt)},K.prototype._applyChildrenMarix=function(J){var $=this.getChildren();(0,ie.S6)($,function(Lt){Lt.applyMatrix(J)})},K.prototype.addShape=function(){for(var J=[],$=0;$=0;lt--){var Z=J[lt];if((0,ie.pP)(Z)&&(Z.isGroup()?Ft=Z.getShape($,Lt,Tt):Z.isHit($,Lt)&&(Ft=Z)),Ft)break}return Ft},K.prototype.add=function(J){var $=this.getCanvas(),Lt=this.getChildren(),Tt=this.get("timeline"),Ft=J.getParent();Ft&&function mt(xt,K,J){void 0===J&&(J=!0),J?K.destroy():(K.set("parent",null),K.set("canvas",null)),(0,ie.As)(xt.getChildren(),K)}(Ft,J,!1),J.set("parent",this),$&&bt(J,$),Tt&&kt(J,Tt),Lt.push(J),J.onCanvasChange("add"),this._applyElementMatrix(J)},K.prototype._applyElementMatrix=function(J){var $=this.getTotalMatrix();$&&J.applyMatrix($)},K.prototype.getChildren=function(){return this.get("children")},K.prototype.sort=function(){var J=this.getChildren();(0,ie.S6)(J,function($,Lt){return $[zt]=Lt,$}),J.sort(function te(xt){return function(K,J){var $=xt(K,J);return 0===$?K[zt]-J[zt]:$}}(function($,Lt){return $.get("zIndex")-Lt.get("zIndex")})),this.onCanvasChange("sort")},K.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var J=this.getChildren(),$=J.length-1;$>=0;$--)J[$].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},K.prototype.destroy=function(){this.get("destroyed")||(this.clear(),xt.prototype.destroy.call(this))},K.prototype.getFirst=function(){return this.getChildByIndex(0)},K.prototype.getLast=function(){var J=this.getChildren();return this.getChildByIndex(J.length-1)},K.prototype.getChildByIndex=function(J){return this.getChildren()[J]},K.prototype.getCount=function(){return this.getChildren().length},K.prototype.contain=function(J){return this.getChildren().indexOf(J)>-1},K.prototype.removeChild=function(J,$){void 0===$&&($=!0),this.contain(J)&&J.remove($)},K.prototype.findAll=function(J){var $=[],Lt=this.getChildren();return(0,ie.S6)(Lt,function(Tt){J(Tt)&&$.push(Tt),Tt.isGroup()&&($=$.concat(Tt.findAll(J)))}),$},K.prototype.find=function(J){var $=null,Lt=this.getChildren();return(0,ie.S6)(Lt,function(Tt){if(J(Tt)?$=Tt:Tt.isGroup()&&($=Tt.find(J)),$)return!1}),$},K.prototype.findById=function(J){return this.find(function($){return $.get("id")===J})},K.prototype.findByClassName=function(J){return this.find(function($){return $.get("className")===J})},K.prototype.findAllByName=function(J){return this.findAll(function($){return $.get("name")===J})},K}(Et.Z)},8085:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>Tt});var Vt=V(7582),Et=V(6641),ie=V(8438),qt=V(5412),zt=V(8296),bt=V(8604),kt=ie.vs,ht="matrix",mt=["zIndex","capture","visible","type"],te=["repeat"];function K(Ft,lt){var Z={},u=lt.attrs;for(var ct in Ft)Z[ct]=u[ct];return Z}const Tt=function(Ft){function lt(Z){var u=Ft.call(this,Z)||this;u.attrs={};var ct=u.getDefaultAttrs();return(0,Et.CD)(ct,Z.attrs),u.attrs=ct,u.initAttrs(ct),u.initAnimate(),u}return(0,Vt.ZT)(lt,Ft),lt.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},lt.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},lt.prototype.onCanvasChange=function(Z){},lt.prototype.initAttrs=function(Z){},lt.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},lt.prototype.isGroup=function(){return!1},lt.prototype.getParent=function(){return this.get("parent")},lt.prototype.getCanvas=function(){return this.get("canvas")},lt.prototype.attr=function(){for(var Z,u=[],ct=0;ct0?Mt=function $(Ft,lt){if(lt.onFrame)return Ft;var Z=lt.startTime,u=lt.delay,ct=lt.duration,Mt=Object.prototype.hasOwnProperty;return(0,Et.S6)(Ft,function(Jt){Z+uJt.delay&&(0,Et.S6)(lt.toAttrs,function(jt,et){Mt.call(Jt.toAttrs,et)&&(delete Jt.toAttrs[et],delete Jt.fromAttrs[et])})}),Ft}(Mt,L):ct.addAnimator(this),Mt.push(L),this.set("animations",Mt),this.set("_pause",{isPaused:!1})}},lt.prototype.stopAnimate=function(Z){var u=this;void 0===Z&&(Z=!0);var ct=this.get("animations");(0,Et.S6)(ct,function(Mt){Z&&u.attr(Mt.onFrame?Mt.onFrame(1):Mt.toAttrs),Mt.callback&&Mt.callback()}),this.set("animating",!1),this.set("animations",[])},lt.prototype.pauseAnimate=function(){var Z=this.get("timeline"),u=this.get("animations"),ct=Z.getTime();return(0,Et.S6)(u,function(Mt){Mt._paused=!0,Mt._pauseTime=ct,Mt.pauseCallback&&Mt.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:ct}),this},lt.prototype.resumeAnimate=function(){var u=this.get("timeline").getTime(),ct=this.get("animations"),Mt=this.get("_pause").pauseTime;return(0,Et.S6)(ct,function(Jt){Jt.startTime=Jt.startTime+(u-Mt),Jt._paused=!1,Jt._pauseTime=null,Jt.resumeCallback&&Jt.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",ct),this},lt.prototype.emitDelegation=function(Z,u){var jt,ct=this,Mt=u.propagationPath;this.getEvents(),"mouseenter"===Z?jt=u.fromShape:"mouseleave"===Z&&(jt=u.toShape);for(var et=function(vt){var ut=Mt[vt],_=ut.get("name");if(_){if((ut.isGroup()||ut.isCanvas&&ut.isCanvas())&&jt&&(0,qt.UY)(ut,jt))return"break";(0,Et.kJ)(_)?(0,Et.S6)(_,function(B){ct.emitDelegateEvent(ut,B,u)}):ft.emitDelegateEvent(ut,_,u)}},ft=this,Ht=0;Ht{"use strict";V.d(ae,{Z:()=>qt});var Vt=V(7582);const qt=function(zt){function bt(){return null!==zt&&zt.apply(this,arguments)||this}return(0,Vt.ZT)(bt,zt),bt.prototype.isGroup=function(){return!0},bt.prototype.isEntityGroup=function(){return!1},bt.prototype.clone=function(){for(var kt=zt.prototype.clone.call(this),ht=this.getChildren(),mt=0;mt{"use strict";V.d(ae,{Z:()=>zt});var Vt=V(7582),Et=V(8085),ie=V(8296);const zt=function(bt){function kt(ht){return bt.call(this,ht)||this}return(0,Vt.ZT)(kt,bt),kt.prototype._isInBBox=function(ht,mt){var te=this.getBBox();return te.minX<=ht&&te.maxX>=ht&&te.minY<=mt&&te.maxY>=mt},kt.prototype.afterAttrsChange=function(ht){bt.prototype.afterAttrsChange.call(this,ht),this.clearCacheBBox()},kt.prototype.getBBox=function(){var ht=this.cfg.bbox;return ht||(ht=this.calculateBBox(),this.set("bbox",ht)),ht},kt.prototype.getCanvasBBox=function(){var ht=this.cfg.canvasBBox;return ht||(ht=this.calculateCanvasBBox(),this.set("canvasBBox",ht)),ht},kt.prototype.applyMatrix=function(ht){bt.prototype.applyMatrix.call(this,ht),this.set("canvasBBox",null)},kt.prototype.calculateCanvasBBox=function(){var ht=this.getBBox(),mt=this.getTotalMatrix(),te=ht.minX,Bt=ht.minY,Qt=ht.maxX,xt=ht.maxY;if(mt){var K=(0,ie.rG)(mt,[ht.minX,ht.minY]),J=(0,ie.rG)(mt,[ht.maxX,ht.minY]),$=(0,ie.rG)(mt,[ht.minX,ht.maxY]),Lt=(0,ie.rG)(mt,[ht.maxX,ht.maxY]);te=Math.min(K[0],J[0],$[0],Lt[0]),Qt=Math.max(K[0],J[0],$[0],Lt[0]),Bt=Math.min(K[1],J[1],$[1],Lt[1]),xt=Math.max(K[1],J[1],$[1],Lt[1])}var Tt=this.attrs;if(Tt.shadowColor){var Ft=Tt.shadowBlur,lt=void 0===Ft?0:Ft,Z=Tt.shadowOffsetX,u=void 0===Z?0:Z,ct=Tt.shadowOffsetY,Mt=void 0===ct?0:ct,jt=Qt+lt+u,et=Bt-lt+Mt,ft=xt+lt+Mt;te=Math.min(te,te-lt+u),Qt=Math.max(Qt,jt),Bt=Math.min(Bt,et),xt=Math.max(xt,ft)}return{x:te,y:Bt,minX:te,minY:Bt,maxX:Qt,maxY:xt,width:Qt-te,height:xt-Bt}},kt.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},kt.prototype.isClipShape=function(){return this.get("isClipShape")},kt.prototype.isInShape=function(ht,mt){return!1},kt.prototype.isOnlyHitBox=function(){return!1},kt.prototype.isHit=function(ht,mt){var te=this.get("startArrowShape"),Bt=this.get("endArrowShape"),Qt=[ht,mt,1],xt=(Qt=this.invertFromMatrix(Qt))[0],K=Qt[1],J=this._isInBBox(xt,K);return this.isOnlyHitBox()?J:!(!J||this.isClipped(xt,K)||!(this.isInShape(xt,K)||te&&te.isHit(xt,K)||Bt&&Bt.isHit(xt,K)))},kt}(Et.Z)},3532:(Ne,ae,V)=>{"use strict";V.d(ae,{_:()=>F,C:()=>R});var Vt={};function Et(O){return+O}function ie(O){return O*O}function qt(O){return O*(2-O)}function zt(O){return((O*=2)<=1?O*O:--O*(2-O)+1)/2}function bt(O){return O*O*O}function kt(O){return--O*O*O+1}function ht(O){return((O*=2)<=1?O*O*O:(O-=2)*O*O+2)/2}V.r(Vt),V.d(Vt,{easeBack:()=>G,easeBackIn:()=>L,easeBackInOut:()=>G,easeBackOut:()=>Y,easeBounce:()=>Rt,easeBounceIn:()=>dt,easeBounceInOut:()=>Zt,easeBounceOut:()=>Rt,easeCircle:()=>Mt,easeCircleIn:()=>u,easeCircleInOut:()=>Mt,easeCircleOut:()=>ct,easeCubic:()=>ht,easeCubicIn:()=>bt,easeCubicInOut:()=>ht,easeCubicOut:()=>kt,easeElastic:()=>I,easeElasticIn:()=>k,easeElasticInOut:()=>w,easeElasticOut:()=>I,easeExp:()=>Z,easeExpIn:()=>Ft,easeExpInOut:()=>Z,easeExpOut:()=>lt,easeLinear:()=>Et,easePoly:()=>Qt,easePolyIn:()=>te,easePolyInOut:()=>Qt,easePolyOut:()=>Bt,easeQuad:()=>zt,easeQuadIn:()=>ie,easeQuadInOut:()=>zt,easeQuadOut:()=>qt,easeSin:()=>Lt,easeSinIn:()=>J,easeSinInOut:()=>Lt,easeSinOut:()=>$});var te=function O(j){function Q(gt){return Math.pow(gt,j)}return j=+j,Q.exponent=O,Q}(3),Bt=function O(j){function Q(gt){return 1-Math.pow(1-gt,j)}return j=+j,Q.exponent=O,Q}(3),Qt=function O(j){function Q(gt){return((gt*=2)<=1?Math.pow(gt,j):2-Math.pow(2-gt,j))/2}return j=+j,Q.exponent=O,Q}(3),xt=Math.PI,K=xt/2;function J(O){return 1==+O?1:1-Math.cos(O*K)}function $(O){return Math.sin(O*K)}function Lt(O){return(1-Math.cos(xt*O))/2}function Tt(O){return 1.0009775171065494*(Math.pow(2,-10*O)-.0009765625)}function Ft(O){return Tt(1-+O)}function lt(O){return 1-Tt(O)}function Z(O){return((O*=2)<=1?Tt(1-O):2-Tt(O-1))/2}function u(O){return 1-Math.sqrt(1-O*O)}function ct(O){return Math.sqrt(1- --O*O)}function Mt(O){return((O*=2)<=1?1-Math.sqrt(1-O*O):Math.sqrt(1-(O-=2)*O)+1)/2}var Jt=4/11,jt=6/11,et=8/11,ft=3/4,Ht=9/11,Ct=10/11,vt=15/16,ut=21/22,_=63/64,B=1/Jt/Jt;function dt(O){return 1-Rt(1-O)}function Rt(O){return(O=+O){"use strict";V.d(ae,{b:()=>ie,W:()=>Et});var Vt=new Map;function Et(lt,Z){Vt.set(lt,Z)}function ie(lt){return Vt.get(lt)}function qt(lt){var Z=lt.attr();return{x:Z.x,y:Z.y,width:Z.width,height:Z.height}}function zt(lt){var Z=lt.attr(),Mt=Z.r;return{x:Z.x-Mt,y:Z.y-Mt,width:2*Mt,height:2*Mt}}var bt=V(4137);function kt(lt,Z){return lt&&Z?{minX:Math.min(lt.minX,Z.minX),minY:Math.min(lt.minY,Z.minY),maxX:Math.max(lt.maxX,Z.maxX),maxY:Math.max(lt.maxY,Z.maxY)}:lt||Z}function ht(lt,Z){var u=lt.get("startArrowShape"),ct=lt.get("endArrowShape");return u&&(Z=kt(Z,u.getCanvasBBox())),ct&&(Z=kt(Z,ct.getCanvasBBox())),Z}var Bt=V(6026),xt=V(575),K=V(6641);function $(lt,Z){var u=lt.prePoint,ct=lt.currentPoint,Mt=lt.nextPoint,Jt=Math.pow(ct[0]-u[0],2)+Math.pow(ct[1]-u[1],2),jt=Math.pow(ct[0]-Mt[0],2)+Math.pow(ct[1]-Mt[1],2),et=Math.pow(u[0]-Mt[0],2)+Math.pow(u[1]-Mt[1],2),ft=Math.acos((Jt+jt-et)/(2*Math.sqrt(Jt)*Math.sqrt(jt)));if(!ft||0===Math.sin(ft)||(0,K.vQ)(ft,0))return{xExtra:0,yExtra:0};var Ht=Math.abs(Math.atan2(Mt[1]-ct[1],Mt[0]-ct[0])),Ct=Math.abs(Math.atan2(Mt[0]-ct[0],Mt[1]-ct[1]));return Ht=Ht>Math.PI/2?Math.PI-Ht:Ht,Ct=Ct>Math.PI/2?Math.PI-Ct:Ct,{xExtra:Math.cos(ft/2-Ht)*(Z/2*(1/Math.sin(ft/2)))-Z/2||0,yExtra:Math.cos(Ct-ft/2)*(Z/2*(1/Math.sin(ft/2)))-Z/2||0}}Et("rect",qt),Et("image",qt),Et("circle",zt),Et("marker",zt),Et("polyline",function mt(lt){for(var u=lt.attr().points,ct=[],Mt=[],Jt=0;Jt{"use strict";V.d(ae,{Z:()=>Et});const Et=function(){function ie(qt,zt){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=qt,this.name=qt,this.originalEvent=zt,this.timeStamp=zt.timeStamp}return ie.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},ie.prototype.stopPropagation=function(){this.propagationStopped=!0},ie.prototype.toString=function(){return"[Event (type="+this.type+")]"},ie.prototype.save=function(){},ie.prototype.restore=function(){},ie}()},659:(Ne,ae,V)=>{"use strict";V.r(ae),V.d(ae,{AbstractCanvas:()=>mt.Z,AbstractGroup:()=>te.Z,AbstractShape:()=>Bt.Z,Base:()=>ht.Z,Event:()=>kt.Z,PathUtil:()=>Vt,assembleFont:()=>xt.$O,getBBoxMethod:()=>Qt.b,getOffScreenContext:()=>$.L,getTextHeight:()=>xt.FE,invert:()=>J.U_,isAllowCapture:()=>K.pP,multiplyVec2:()=>J.rG,registerBBox:()=>Qt.W,registerEasing:()=>Lt.C,version:()=>Tt});var Vt=V(92),Et=V(7257),bt={};for(const Ft in Et)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(Ft)<0&&(bt[Ft]=()=>Et[Ft]);V.d(ae,bt);var qt=V(8355);bt={};for(const Ft in qt)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(Ft)<0&&(bt[Ft]=()=>qt[Ft]);V.d(ae,bt);var kt=V(713),ht=V(8604),mt=V(7281),te=V(289),Bt=V(7979),Qt=V(6233),xt=V(6026),K=V(5412),J=V(8296),$=V(9441),Lt=V(3532),Tt="0.5.11"},8355:()=>{},7257:()=>{},8296:(Ne,ae,V)=>{"use strict";function Vt(qt,zt){var bt=[],kt=qt[0],ht=qt[1],mt=qt[2],te=qt[3],Bt=qt[4],Qt=qt[5],xt=qt[6],K=qt[7],J=qt[8],$=zt[0],Lt=zt[1],Tt=zt[2],Ft=zt[3],lt=zt[4],Z=zt[5],u=zt[6],ct=zt[7],Mt=zt[8];return bt[0]=$*kt+Lt*te+Tt*xt,bt[1]=$*ht+Lt*Bt+Tt*K,bt[2]=$*mt+Lt*Qt+Tt*J,bt[3]=Ft*kt+lt*te+Z*xt,bt[4]=Ft*ht+lt*Bt+Z*K,bt[5]=Ft*mt+lt*Qt+Z*J,bt[6]=u*kt+ct*te+Mt*xt,bt[7]=u*ht+ct*Bt+Mt*K,bt[8]=u*mt+ct*Qt+Mt*J,bt}function Et(qt,zt){var bt=[],kt=zt[0],ht=zt[1];return bt[0]=qt[0]*kt+qt[3]*ht+qt[6],bt[1]=qt[1]*kt+qt[4]*ht+qt[7],bt}function ie(qt){var zt=[],bt=qt[0],kt=qt[1],ht=qt[2],mt=qt[3],te=qt[4],Bt=qt[5],Qt=qt[6],xt=qt[7],K=qt[8],J=K*te-Bt*xt,$=-K*mt+Bt*Qt,Lt=xt*mt-te*Qt,Tt=bt*J+kt*$+ht*Lt;return Tt?(zt[0]=J*(Tt=1/Tt),zt[1]=(-K*kt+ht*xt)*Tt,zt[2]=(Bt*kt-ht*te)*Tt,zt[3]=$*Tt,zt[4]=(K*bt-ht*Qt)*Tt,zt[5]=(-Bt*bt+ht*mt)*Tt,zt[6]=Lt*Tt,zt[7]=(-xt*bt+kt*Qt)*Tt,zt[8]=(te*bt-kt*mt)*Tt,zt):null}V.d(ae,{U_:()=>ie,rG:()=>Et,xq:()=>Vt})},9441:(Ne,ae,V)=>{"use strict";V.d(ae,{L:()=>Et});var Vt=null;function Et(){if(!Vt){var ie=document.createElement("canvas");ie.width=1,ie.height=1,Vt=ie.getContext("2d")}return Vt}},92:(Ne,ae,V)=>{"use strict";V.r(ae),V.d(ae,{catmullRomToBezier:()=>bt,fillPath:()=>vt,fillPathByDiff:()=>dt,formatPath:()=>oe,intersection:()=>et,parsePathArray:()=>K,parsePathString:()=>zt,pathToAbsolute:()=>ht,pathToCurve:()=>Qt,rectPath:()=>lt});var Vt=V(6641),Et="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",ie=new RegExp("([a-z])["+Et+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Et+"]*,?["+Et+"]*)+)","ig"),qt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Et+"]*,?["+Et+"]*","ig"),zt=function(L){if(!L)return null;if((0,Vt.kJ)(L))return L;var Y={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},G=[];return String(L).replace(ie,function(D,nt,st){var k=[],I=nt.toLowerCase();if(st.replace(qt,function(w,A){A&&k.push(+A)}),"m"===I&&k.length>2&&(G.push([nt].concat(k.splice(0,2))),I="l",nt="m"===nt?"l":"L"),"o"===I&&1===k.length&&G.push([nt,k[0]]),"r"===I)G.push([nt].concat(k));else for(;k.length>=Y[I]&&(G.push([nt].concat(k.splice(0,Y[I]))),Y[I]););return L}),G},bt=function(L,Y){for(var G=[],D=0,nt=L.length;nt-2*!Y>D;D+=2){var st=[{x:+L[D-2],y:+L[D-1]},{x:+L[D],y:+L[D+1]},{x:+L[D+2],y:+L[D+3]},{x:+L[D+4],y:+L[D+5]}];Y?D?nt-4===D?st[3]={x:+L[0],y:+L[1]}:nt-2===D&&(st[2]={x:+L[0],y:+L[1]},st[3]={x:+L[2],y:+L[3]}):st[0]={x:+L[nt-2],y:+L[nt-1]}:nt-4===D?st[3]=st[2]:D||(st[0]={x:+L[D],y:+L[D+1]}),G.push(["C",(6*st[1].x-st[0].x+st[2].x)/6,(6*st[1].y-st[0].y+st[2].y)/6,(st[1].x+6*st[2].x-st[3].x)/6,(st[1].y+6*st[2].y-st[3].y)/6,st[2].x,st[2].y])}return G},kt=function(L,Y,G,D,nt){var st=[];if(null===nt&&null===D&&(D=G),L=+L,Y=+Y,G=+G,D=+D,null!==nt){var k=Math.PI/180,I=L+G*Math.cos(-D*k),w=L+G*Math.cos(-nt*k);st=[["M",I,Y+G*Math.sin(-D*k)],["A",G,G,0,+(nt-D>180),0,w,Y+G*Math.sin(-nt*k)]]}else st=[["M",L,Y],["m",0,-D],["a",G,D,0,1,1,0,2*D],["a",G,D,0,1,1,0,-2*D],["z"]];return st},ht=function(L){if(!(L=zt(L))||!L.length)return[["M",0,0]];var I,w,Y=[],G=0,D=0,nt=0,st=0,k=0;"M"===L[0][0]&&(nt=G=+L[0][1],st=D=+L[0][2],k++,Y[0]=["M",G,D]);for(var A=3===L.length&&"M"===L[0][0]&&"R"===L[1][0].toUpperCase()&&"Z"===L[2][0].toUpperCase(),F=void 0,R=void 0,O=k,j=L.length;O1&&(G*=z=Math.sqrt(z),D*=z);var U=G*G,q=D*D,at=(st===k?-1:1)*Math.sqrt(Math.abs((U*q-U*Yt*Yt-q*Kt*Kt)/(U*Yt*Yt+q*Kt*Kt)));$t=at*G*Yt/D+(L+I)/2,Dt=at*-D*Kt/G+(Y+w)/2,Q=Math.asin(((Y-Dt)/D).toFixed(9)),gt=Math.asin(((w-Dt)/D).toFixed(9)),Q=L<$t?Math.PI-Q:Q,gt=I<$t?Math.PI-gt:gt,Q<0&&(Q=2*Math.PI+Q),gt<0&&(gt=2*Math.PI+gt),k&&Q>gt&&(Q-=2*Math.PI),!k&>>Q&&(gt-=2*Math.PI)}var At=gt-Q;if(Math.abs(At)>F){var Nt=gt,Ot=I,Pt=w;gt=Q+F*(k&>>Q?1:-1),I=$t+G*Math.cos(gt),w=Dt+D*Math.sin(gt),O=Bt(I,w,G,D,nt,0,k,Ot,Pt,[gt,Nt,$t,Dt])}At=gt-Q;var _t=Math.cos(Q),ne=Math.sin(Q),Wt=Math.cos(gt),de=Math.sin(gt),Ce=Math.tan(At/4),ce=4/3*G*Ce,xe=4/3*D*Ce,ye=[L,Y],we=[L+ce*ne,Y-xe*_t],he=[I+ce*de,w-xe*Wt],Te=[I,w];if(we[0]=2*ye[0]-we[0],we[1]=2*ye[1]-we[1],A)return[we,he,Te].concat(O);for(var Ie=[],Ae=0,De=(O=[we,he,Te].concat(O).join().split(",")).length;Ae7){Kt[Yt].shift();for(var z=Kt[Yt];z.length;)k[Yt]="A",D&&(I[Yt]="A"),Kt.splice(Yt++,0,["C"].concat(z.splice(0,6)));Kt.splice(Yt,1),F=Math.max(G.length,D&&D.length||0)}},j=function(Kt,Yt,z,U,q){Kt&&Yt&&"M"===Kt[q][0]&&"M"!==Yt[q][0]&&(Yt.splice(q,0,["M",U.x,U.y]),z.bx=0,z.by=0,z.x=Kt[q][1],z.y=Kt[q][2],F=Math.max(G.length,D&&D.length||0))};F=Math.max(G.length,D&&D.length||0);for(var Q=0;Q1?1:w<0?0:w)/2,R=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],O=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],j=0,Q=0;Q<12;Q++){var gt=A*R[Q]+A,$t=J(gt,L,G,nt,k),Dt=J(gt,Y,D,st,I);j+=O[Q]*Math.sqrt($t*$t+Dt*Dt)}return A*j},Lt=function(L,Y,G,D,nt,st,k,I){for(var F,R,O,j,w=[],A=[[],[]],Q=0;Q<2;++Q)if(0===Q?(R=6*L-12*G+6*nt,F=-3*L+9*G-9*nt+3*k,O=3*G-3*L):(R=6*Y-12*D+6*st,F=-3*Y+9*D-9*st+3*I,O=3*D-3*Y),Math.abs(F)<1e-12){if(Math.abs(R)<1e-12)continue;(j=-O/R)>0&&j<1&&w.push(j)}else{var gt=R*R-4*O*F,$t=Math.sqrt(gt);if(!(gt<0)){var Dt=(-R+$t)/(2*F);Dt>0&&Dt<1&&w.push(Dt);var se=(-R-$t)/(2*F);se>0&&se<1&&w.push(se)}}for(var z,Kt=w.length,Yt=Kt;Kt--;)A[0][Kt]=(z=1-(j=w[Kt]))*z*z*L+3*z*z*j*G+3*z*j*j*nt+j*j*j*k,A[1][Kt]=z*z*z*Y+3*z*z*j*D+3*z*j*j*st+j*j*j*I;return A[0][Yt]=L,A[1][Yt]=Y,A[0][Yt+1]=k,A[1][Yt+1]=I,A[0].length=A[1].length=Yt+2,{min:{x:Math.min.apply(0,A[0]),y:Math.min.apply(0,A[1])},max:{x:Math.max.apply(0,A[0]),y:Math.max.apply(0,A[1])}}},Tt=function(L,Y,G,D,nt,st,k,I){if(!(Math.max(L,G)Math.max(nt,k)||Math.max(Y,D)Math.max(st,I))){var F=(L-G)*(st-I)-(Y-D)*(nt-k);if(F){var R=((L*D-Y*G)*(nt-k)-(L-G)*(nt*I-st*k))/F,O=((L*D-Y*G)*(st-I)-(Y-D)*(nt*I-st*k))/F,j=+R.toFixed(2),Q=+O.toFixed(2);if(!(j<+Math.min(L,G).toFixed(2)||j>+Math.max(L,G).toFixed(2)||j<+Math.min(nt,k).toFixed(2)||j>+Math.max(nt,k).toFixed(2)||Q<+Math.min(Y,D).toFixed(2)||Q>+Math.max(Y,D).toFixed(2)||Q<+Math.min(st,I).toFixed(2)||Q>+Math.max(st,I).toFixed(2)))return{x:R,y:O}}}},Ft=function(L,Y,G){return Y>=L.x&&Y<=L.x+L.width&&G>=L.y&&G<=L.y+L.height},lt=function(L,Y,G,D,nt){if(nt)return[["M",+L+ +nt,Y],["l",G-2*nt,0],["a",nt,nt,0,0,1,nt,nt],["l",0,D-2*nt],["a",nt,nt,0,0,1,-nt,nt],["l",2*nt-G,0],["a",nt,nt,0,0,1,-nt,-nt],["l",0,2*nt-D],["a",nt,nt,0,0,1,nt,-nt],["z"]];var st=[["M",L,Y],["l",G,0],["l",0,D],["l",-G,0],["z"]];return st.parsePathArray=K,st},Z=function(L,Y,G,D){return null===L&&(L=Y=G=D=0),null===Y&&(Y=L.y,G=L.width,D=L.height,L=L.x),{x:L,y:Y,width:G,w:G,height:D,h:D,x2:L+G,y2:Y+D,cx:L+G/2,cy:Y+D/2,r1:Math.min(G,D)/2,r2:Math.max(G,D)/2,r0:Math.sqrt(G*G+D*D)/2,path:lt(L,Y,G,D),vb:[L,Y,G,D].join(" ")}},ct=function(L,Y,G,D,nt,st,k,I){(0,Vt.kJ)(L)||(L=[L,Y,G,D,nt,st,k,I]);var w=Lt.apply(null,L);return Z(w.min.x,w.min.y,w.max.x-w.min.x,w.max.y-w.min.y)},Mt=function(L,Y,G,D,nt,st,k,I,w){var A=1-w,F=Math.pow(A,3),R=Math.pow(A,2),O=w*w,j=O*w,$t=L+2*w*(G-L)+O*(nt-2*G+L),Dt=Y+2*w*(D-Y)+O*(st-2*D+Y),se=G+2*w*(nt-G)+O*(k-2*nt+G),Kt=D+2*w*(st-D)+O*(I-2*st+D);return{x:F*L+3*R*w*G+3*A*w*w*nt+j*k,y:F*Y+3*R*w*D+3*A*w*w*st+j*I,m:{x:$t,y:Dt},n:{x:se,y:Kt},start:{x:A*L+w*G,y:A*Y+w*D},end:{x:A*nt+w*k,y:A*st+w*I},alpha:90-180*Math.atan2($t-se,Dt-Kt)/Math.PI}},Jt=function(L,Y,G){if(!function(L,Y){return L=Z(L),Y=Z(Y),Ft(Y,L.x,L.y)||Ft(Y,L.x2,L.y)||Ft(Y,L.x,L.y2)||Ft(Y,L.x2,L.y2)||Ft(L,Y.x,Y.y)||Ft(L,Y.x2,Y.y)||Ft(L,Y.x,Y.y2)||Ft(L,Y.x2,Y.y2)||(L.xY.x||Y.xL.x)&&(L.yY.y||Y.yL.y)}(ct(L),ct(Y)))return G?0:[];for(var I=~~($.apply(0,L)/8),w=~~($.apply(0,Y)/8),A=[],F=[],R={},O=G?0:[],j=0;j=0&&q<=1&&at>=0&&at<=1&&(G?O+=1:O.push({x:U.x,y:U.y,t1:q,t2:at}))}}return O},et=function(L,Y){return function(L,Y,G){L=Qt(L),Y=Qt(Y);for(var D,nt,st,k,I,w,A,F,R,O,j=[],Q=0,gt=L.length;Q=3&&(3===R.length&&O.push("Q"),O=O.concat(R[1])),2===R.length&&O.push("L"),O.concat(R[R.length-1])})}(L,Y,G));else{var nt=[].concat(L);"M"===nt[0]&&(nt[0]="L");for(var st=0;st<=G-1;st++)D.push(nt)}return D}(L[R],L[R+1],F))},[]);return w.unshift(L[0]),("Z"===Y[D]||"z"===Y[D])&&w.push("Z"),w},ut=function(L,Y){if(L.length!==Y.length)return!1;var G=!0;return(0,Vt.S6)(L,function(D,nt){if(D!==Y[nt])return G=!1,!1}),G};function _(L,Y,G){var D=null,nt=G;return Y=0;w--)k=st[w].index,"add"===st[w].type?L.splice(k,0,[].concat(L[k])):L.splice(k,1)}var R=nt-(D=L.length);if(D0)){L[D]=Y[D];break}G=Rt(G,L[D-1],1)}L[D]=["Q"].concat(G.reduce(function(nt,st){return nt.concat(st)},[]));break;case"T":L[D]=["T"].concat(G[0]);break;case"C":if(G.length<3){if(!(D>0)){L[D]=Y[D];break}G=Rt(G,L[D-1],2)}L[D]=["C"].concat(G.reduce(function(nt,st){return nt.concat(st)},[]));break;case"S":if(G.length<2){if(!(D>0)){L[D]=Y[D];break}G=Rt(G,L[D-1],1)}L[D]=["S"].concat(G.reduce(function(nt,st){return nt.concat(st)},[]));break;default:L[D]=Y[D]}return L}},6026:(Ne,ae,V)=>{"use strict";V.d(ae,{$O:()=>bt,FE:()=>ie,mY:()=>zt});var Vt=V(5412),Et=V(9441);function ie(kt,ht,mt){var te=1;if((0,Vt.HD)(kt)&&(te=kt.split("\n").length),te>1){var Bt=function qt(kt,ht){return ht?ht-kt:.14*kt}(ht,mt);return ht*te+Bt*(te-1)}return ht}function zt(kt,ht){var mt=(0,Et.L)(),te=0;if((0,Vt.kK)(kt)||""===kt)return te;if(mt.save(),mt.font=ht,(0,Vt.HD)(kt)&&kt.includes("\n")){var Bt=kt.split("\n");(0,Vt.S6)(Bt,function(Qt){var xt=mt.measureText(Qt).width;te{"use strict";V.d(ae,{As:()=>Et,CD:()=>Vt.CD,HD:()=>Vt.HD,Kn:()=>Vt.Kn,S6:()=>Vt.S6,UY:()=>qt,jC:()=>Vt.jC,jU:()=>ie,kK:()=>Vt.UM,mf:()=>Vt.mf,pP:()=>zt});var Vt=V(6641);function Et(bt,kt){var ht=bt.indexOf(kt);-1!==ht&&bt.splice(ht,1)}var ie=typeof window<"u"&&typeof window.document<"u";function qt(bt,kt){if(bt.isCanvas())return!0;for(var ht=kt.getParent(),mt=!1;ht;){if(ht===bt){mt=!0;break}ht=ht.getParent()}return mt}function zt(bt){return bt.cfg.visible&&bt.cfg.capture}},4137:(Ne,ae,V)=>{"use strict";V.d(ae,{wN:()=>Rt,Ll:()=>Mt,x1:()=>mt,aH:()=>D,lD:()=>Tt,Zr:()=>Vt});var Vt={};V.r(Vt),V.d(Vt,{distance:()=>ie,getBBoxByArray:()=>zt,getBBoxRange:()=>bt,isNumberEqual:()=>qt,piMod:()=>kt});var Et=V(6641);function ie(k,I,w,A){var F=k-w,R=I-A;return Math.sqrt(F*F+R*R)}function qt(k,I){return Math.abs(k-I)<.001}function zt(k,I){var w=(0,Et.VV)(k),A=(0,Et.VV)(I);return{x:w,y:A,width:(0,Et.Fp)(k)-w,height:(0,Et.Fp)(I)-A}}function bt(k,I,w,A){return{minX:(0,Et.VV)([k,w]),maxX:(0,Et.Fp)([k,w]),minY:(0,Et.VV)([I,A]),maxY:(0,Et.Fp)([I,A])}}function kt(k){return(k+2*Math.PI)%(2*Math.PI)}var ht=V(7367);const mt={box:function(k,I,w,A){return zt([k,w],[I,A])},length:function(k,I,w,A){return ie(k,I,w,A)},pointAt:function(k,I,w,A,F){return{x:(1-F)*k+F*w,y:(1-F)*I+F*A}},pointDistance:function(k,I,w,A,F,R){var O=(w-k)*(F-k)+(A-I)*(R-I);return O<0?ie(k,I,F,R):O>(w-k)*(w-k)+(A-I)*(A-I)?ie(w,A,F,R):this.pointToLine(k,I,w,A,F,R)},pointToLine:function(k,I,w,A,F,R){var O=[w-k,A-I];if(ht.I6(O,[0,0]))return Math.sqrt((F-k)*(F-k)+(R-I)*(R-I));var j=[-O[1],O[0]];return ht.Fv(j,j),Math.abs(ht.AK([F-k,R-I],j))},tangentAngle:function(k,I,w,A){return Math.atan2(A-I,w-k)}};function Bt(k,I,w,A,F,R){var O,j=1/0,Q=[w,A],gt=20;R&&R>200&&(gt=R/10);for(var $t=1/gt,Dt=$t/10,se=0;se<=gt;se++){var Kt=se*$t,Yt=[F.apply(null,k.concat([Kt])),F.apply(null,I.concat([Kt]))];(z=ie(Q[0],Q[1],Yt[0],Yt[1]))=0&&z=0?[F]:[]}function J(k,I,w,A){return 2*(1-A)*(I-k)+2*A*(w-I)}function $(k,I,w,A,F,R,O){var j=xt(k,w,F,O),Q=xt(I,A,R,O),gt=mt.pointAt(k,I,w,A,O),$t=mt.pointAt(w,A,F,R,O);return[[k,I,gt.x,gt.y,j,Q],[j,Q,$t.x,$t.y,F,R]]}function Lt(k,I,w,A,F,R,O){if(0===O)return(ie(k,I,w,A)+ie(w,A,F,R)+ie(k,I,F,R))/2;var j=$(k,I,w,A,F,R,.5),Q=j[0],gt=j[1];return Q.push(O-1),gt.push(O-1),Lt.apply(null,Q)+Lt.apply(null,gt)}const Tt={box:function(k,I,w,A,F,R){var O=K(k,w,F)[0],j=K(I,A,R)[0],Q=[k,F],gt=[I,R];return void 0!==O&&Q.push(xt(k,w,F,O)),void 0!==j&>.push(xt(I,A,R,j)),zt(Q,gt)},length:function(k,I,w,A,F,R){return Lt(k,I,w,A,F,R,3)},nearestPoint:function(k,I,w,A,F,R,O,j){return Bt([k,w,F],[I,A,R],O,j,xt)},pointDistance:function(k,I,w,A,F,R,O,j){var Q=this.nearestPoint(k,I,w,A,F,R,O,j);return ie(Q.x,Q.y,O,j)},interpolationAt:xt,pointAt:function(k,I,w,A,F,R,O){return{x:xt(k,w,F,O),y:xt(I,A,R,O)}},divide:function(k,I,w,A,F,R,O){return $(k,I,w,A,F,R,O)},tangentAngle:function(k,I,w,A,F,R,O){var j=J(k,w,F,O),Q=J(I,A,R,O);return kt(Math.atan2(Q,j))}};function Ft(k,I,w,A,F){var R=1-F;return R*R*R*k+3*I*F*R*R+3*w*F*F*R+A*F*F*F}function lt(k,I,w,A,F){var R=1-F;return 3*(R*R*(I-k)+2*R*F*(w-I)+F*F*(A-w))}function Z(k,I,w,A){var Q,gt,$t,F=-3*k+9*I-9*w+3*A,R=6*k-12*I+6*w,O=3*I-3*k,j=[];if(qt(F,0))qt(R,0)||(Q=-O/R)>=0&&Q<=1&&j.push(Q);else{var Dt=R*R-4*F*O;qt(Dt,0)?j.push(-R/(2*F)):Dt>0&&(gt=(-R-($t=Math.sqrt(Dt)))/(2*F),(Q=(-R+$t)/(2*F))>=0&&Q<=1&&j.push(Q),gt>=0&><=1&&j.push(gt))}return j}function u(k,I,w,A,F,R,O,j,Q){var gt=Ft(k,w,F,O,Q),$t=Ft(I,A,R,j,Q),Dt=mt.pointAt(k,I,w,A,Q),se=mt.pointAt(w,A,F,R,Q),Kt=mt.pointAt(F,R,O,j,Q),Yt=mt.pointAt(Dt.x,Dt.y,se.x,se.y,Q),z=mt.pointAt(se.x,se.y,Kt.x,Kt.y,Q);return[[k,I,Dt.x,Dt.y,Yt.x,Yt.y,gt,$t],[gt,$t,z.x,z.y,Kt.x,Kt.y,O,j]]}function ct(k,I,w,A,F,R,O,j,Q){if(0===Q)return function Qt(k,I){for(var w=0,A=k.length,F=0;F0?w:-1*w}function vt(k,I,w,A,F,R){return w*Math.cos(F)*Math.cos(R)-A*Math.sin(F)*Math.sin(R)+k}function ut(k,I,w,A,F,R){return w*Math.sin(F)*Math.cos(R)+A*Math.cos(F)*Math.sin(R)+I}function B(k,I,w){return{x:k*Math.cos(w),y:I*Math.sin(w)}}function dt(k,I,w){var A=Math.cos(w),F=Math.sin(w);return[k*A-I*F,k*F+I*A]}const Rt={box:function(k,I,w,A,F,R,O){for(var j=function Ht(k,I,w){return Math.atan(-I/k*Math.tan(w))}(w,A,F),Q=1/0,gt=-1/0,$t=[R,O],Dt=2*-Math.PI;Dt<=2*Math.PI;Dt+=Math.PI){var se=j+Dt;Rgt&&(gt=Kt)}var Yt=function Ct(k,I,w){return Math.atan(I/(k*Math.tan(w)))}(w,A,F),z=1/0,U=-1/0,q=[R,O];for(Dt=2*-Math.PI;Dt<=2*Math.PI;Dt+=Math.PI){var at=Yt+Dt;RU&&(U=At)}return{x:Q,y:z,width:gt-Q,height:U-z}},length:function(k,I,w,A,F,R,O){},nearestPoint:function(k,I,w,A,F,R,O,j,Q){var gt=dt(j-k,Q-I,-F),se=function(k,I,w,A,F,R){var O=w,j=A;if(0===O||0===j)return{x:k,y:I};for(var z,U,Q=F-k,gt=R-I,$t=Math.abs(Q),Dt=Math.abs(gt),se=O*O,Kt=j*j,Yt=Math.PI/4,q=0;q<4;q++){z=O*Math.cos(Yt),U=j*Math.sin(Yt);var at=(se-Kt)*Math.pow(Math.cos(Yt),3)/O,At=(Kt-se)*Math.pow(Math.sin(Yt),3)/j,Nt=z-at,Ot=U-At,Pt=$t-at,_t=Dt-At,ne=Math.hypot(Ot,Nt),Wt=Math.hypot(_t,Pt);Yt+=ne*Math.asin((Nt*_t-Ot*Pt)/(ne*Wt))/Math.sqrt(se+Kt-z*z-U*U),Yt=Math.min(Math.PI/2,Math.max(0,Yt))}return{x:k+Jt(z,Q),y:I+Jt(U,gt)}}(0,0,w,A,gt[0],gt[1]),Kt=function _(k,I,w,A){return(Math.atan2(A*k,w*I)+2*Math.PI)%(2*Math.PI)}(w,A,se.x,se.y);KtO&&(se=B(w,A,O));var Yt=dt(se.x,se.y,F);return{x:Yt[0]+k,y:Yt[1]+I}},pointDistance:function(k,I,w,A,F,R,O,j,Q){var gt=this.nearestPoint(k,I,w,A,j,Q);return ie(gt.x,gt.y,j,Q)},pointAt:function(k,I,w,A,F,R,O,j){var Q=(O-R)*j+R;return{x:vt(k,0,w,A,F,Q),y:ut(0,I,w,A,F,Q)}},tangentAngle:function(k,I,w,A,F,R,O,j){var Q=(O-R)*j+R,gt=function et(k,I,w,A,F,R,O,j){return-1*w*Math.cos(F)*Math.sin(j)-A*Math.sin(F)*Math.cos(j)}(0,0,w,A,F,0,0,Q),$t=function ft(k,I,w,A,F,R,O,j){return-1*w*Math.sin(F)*Math.sin(j)+A*Math.cos(F)*Math.cos(j)}(0,0,w,A,F,0,0,Q);return kt(Math.atan2($t,gt))}};function Zt(k){for(var I=0,w=[],A=0;A1||I<0||k.length<2)return null;var w=Zt(k),A=w.segments,F=w.totalLength;if(0===F)return{x:k[0][0],y:k[0][1]};for(var R=0,O=null,j=0;j=R&&I<=R+Dt){O=mt.pointAt(gt[0],gt[1],$t[0],$t[1],(I-R)/Dt);break}R+=Dt}return O}(k,I)},pointDistance:function(k,I,w){return function G(k,I,w){for(var A=1/0,F=0;F1||I<0||k.length<2)return 0;for(var w=Zt(k),A=w.segments,F=w.totalLength,R=0,O=0,j=0;j=R&&I<=R+Dt){O=Math.atan2($t[1]-gt[1],$t[0]-gt[0]);break}R+=Dt}return O}(k,I)}}},8438:(Ne,ae,V)=>{"use strict";V.d(ae,{Dg:()=>mt,lh:()=>zt,m$:()=>ie,vs:()=>kt,zu:()=>qt});var Vt=V(2067),Et=V(7367);function ie(Bt,Qt,xt){var K=[0,0,0,0,0,0,0,0,0];return Vt.vc(K,xt),Vt.Jp(Bt,K,Qt)}function qt(Bt,Qt,xt){var K=[0,0,0,0,0,0,0,0,0];return Vt.Us(K,xt),Vt.Jp(Bt,K,Qt)}function zt(Bt,Qt,xt){var K=[0,0,0,0,0,0,0,0,0];return Vt.xJ(K,xt),Vt.Jp(Bt,K,Qt)}function bt(Bt,Qt,xt){return Vt.Jp(Bt,xt,Qt)}function kt(Bt,Qt){for(var xt=Bt?[].concat(Bt):[1,0,0,0,1,0,0,0,1],K=0,J=Qt.length;K=0;return xt?J?2*Math.PI-K:K:J?K:2*Math.PI-K}},575:(Ne,ae,V)=>{"use strict";V.d(ae,{e9:()=>mt,Wq:()=>Yt,tr:()=>$,wb:()=>Ft,zx:()=>A});var Vt=V(6641),Et=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,ie=/[^\s\,]+/gi;const zt=function qt(z){var U=z||[];return(0,Vt.kJ)(U)?U:(0,Vt.HD)(U)?(U=U.match(Et),(0,Vt.S6)(U,function(q,at){if((q=q.match(ie))[0].length>1){var At=q[0].charAt(0);q.splice(1,0,q[0].substr(1)),q[0]=At}(0,Vt.S6)(q,function(Nt,Ot){isNaN(Nt)||(q[Ot]=+Nt)}),U[at]=q}),U):void 0};var bt=V(7367);const mt=function ht(z,U,q){void 0===U&&(U=!1),void 0===q&&(q=[[0,0],[1,1]]);for(var at=!!U,At=[],Nt=0,Ot=z.length;Nt2&&(q.push([At].concat(Ot.splice(0,2))),Pt="l",At="m"===At?"l":"L"),"o"===Pt&&1===Ot.length&&q.push([At,Ot[0]]),"r"===Pt)q.push([At].concat(Ot));else for(;Ot.length>=U[Pt]&&(q.push([At].concat(Ot.splice(0,U[Pt]))),U[Pt]););return""}),q}var Lt=/[a-z]/;function Tt(z,U){return[U[0]+(U[0]-z[0]),U[1]+(U[1]-z[1])]}function Ft(z){var U=$(z);if(!U||!U.length)return[["M",0,0]];for(var q=!1,at=0;at=0){q=!0;break}if(!q)return U;var Nt=[],Ot=0,Pt=0,_t=0,ne=0,Wt=0,ce=U[0];("M"===ce[0]||"m"===ce[0])&&(_t=Ot=+ce[1],ne=Pt=+ce[2],Wt++,Nt[0]=["M",Ot,Pt]),at=Wt;for(var xe=U.length;at1&&(q*=Math.sqrt(ce),at*=Math.sqrt(ce));var xe=q*q*(Ce*Ce)+at*at*(de*de),ye=xe?Math.sqrt((q*q*(at*at)-xe)/xe):1;Nt===Ot&&(ye*=-1),isNaN(ye)&&(ye=0);var we=at?ye*q*Ce/at:0,he=q?ye*-at*de/q:0,Te=(Pt+ne)/2+Math.cos(At)*we-Math.sin(At)*he,Ie=(_t+Wt)/2+Math.sin(At)*we+Math.cos(At)*he,Ae=[(de-we)/q,(Ce-he)/at],De=[(-1*de-we)/q,(-1*Ce-he)/at],Ge=st([1,0],Ae),Ve=st(Ae,De);return nt(Ae,De)<=-1&&(Ve=Math.PI),nt(Ae,De)>=1&&(Ve=0),0===Ot&&Ve>0&&(Ve-=2*Math.PI),1===Ot&&Ve<0&&(Ve+=2*Math.PI),{cx:Te,cy:Ie,rx:k(z,[ne,Wt])?0:q,ry:k(z,[ne,Wt])?0:at,startAngle:Ge,endAngle:Ge+Ve,xRotation:At,arcFlag:Nt,sweepFlag:Ot}}function w(z,U){return[U[0]+(U[0]-z[0]),U[1]+(U[1]-z[1])]}function A(z){for(var U=[],q=null,at=null,At=null,Nt=0,Ot=(z=zt(z)).length,Pt=0;Pt0!=R(Pt[1]-q)>0&&R(U-(q-Ot[1])*(Ot[0]-Pt[0])/(Ot[1]-Pt[1])-Ot[0])<0&&(at=!at)}return at}var Q=function(z,U,q){return z>=U&&z<=q};function $t(z){for(var U=[],q=z.length,at=0;at1){var Ot=z[0],Pt=z[q-1];U.push({from:{x:Pt[0],y:Pt[1]},to:{x:Ot[0],y:Ot[1]}})}return U}function se(z){var U=z.map(function(at){return at[0]}),q=z.map(function(at){return at[1]});return{minX:Math.min.apply(null,U),maxX:Math.max.apply(null,U),minY:Math.min.apply(null,q),maxY:Math.max.apply(null,q)}}function Yt(z,U){if(z.length<2||U.length<2)return!1;if(!function Kt(z,U){return!(U.minX>z.maxX||U.maxXz.maxY||U.maxY.001*(Ot_x*Ot_x+Ot_y*Ot_y)*(Pt_x*Pt_x+Pt_y*Pt_y)){var ce=(Nt_x*Pt_y-Nt_y*Pt_x)/_t,xe=(Nt_x*Ot_y-Nt_y*Ot_x)/_t;Q(ce,0,1)&&Q(xe,0,1)&&(Ce={x:z.x+ce*Ot_x,y:z.y+ce*Ot_y})}return Ce}(at.from,at.to,U.from,U.to))return q=!0,!1}),q}(Nt,_t))return Pt=!0,!1}),Pt}},6641:(Ne,ae,V)=>{"use strict";V.d(ae,{Ct:()=>Sc,f0:()=>es,uZ:()=>Ie,VS:()=>$l,d9:()=>Jl,FX:()=>qt,Ds:()=>ql,b$:()=>tc,e5:()=>ht,S6:()=>Tt,yW:()=>Nt,hX:()=>bt,sE:()=>ft,cx:()=>Ct,Wx:()=>ut,ri:()=>De,xH:()=>B,U5:()=>Va,U2:()=>uc,Lo:()=>Cc,rx:()=>Y,ru:()=>Ce,vM:()=>Wt,Ms:()=>de,wH:()=>ji,YM:()=>Kt,q9:()=>qt,cq:()=>nc,kJ:()=>J,jn:()=>xr,J_:()=>Wn,kK:()=>Wl,xb:()=>ac,Xy:()=>oc,mf:()=>Qt,BD:()=>u,UM:()=>K,Ft:()=>Ul,hj:()=>Ve,vQ:()=>gr,Kn:()=>$,PO:()=>jt,HD:()=>Q,P9:()=>Bt,o8:()=>Gl,XP:()=>lt,Z$:()=>Yt,vl:()=>P,UI:()=>cc,Q8:()=>ts,Fp:()=>Zt,UT:()=>Kr,HP:()=>qo,VV:()=>oe,F:()=>Qi,CD:()=>es,wQ:()=>zr,ZT:()=>mc,CE:()=>pc,ei:()=>vc,u4:()=>R,Od:()=>j,U7:()=>Xl,t8:()=>hc,dp:()=>xc,G:()=>Pt,MR:()=>$t,ng:()=>rt,P2:()=>dc,qo:()=>gc,c$:()=>Na,BB:()=>pn,jj:()=>Dt,EL:()=>yc,jC:()=>re,VO:()=>ta,I:()=>se});const Et=function(T){return null!==T&&"function"!=typeof T&&isFinite(T.length)},qt=function(T,X){return!!Et(T)&&T.indexOf(X)>-1},bt=function(T,X){if(!Et(T))return T;for(var ot=[],pt=0;ptpe[qe])return 1;if(Gt[qe]ot?ot:T},De=function(T,X){var ot=X.toString(),pt=ot.indexOf(".");if(-1===pt)return Math.round(T);var Gt=ot.substr(pt+1).length;return Gt>20&&(Gt=20),parseFloat(T.toFixed(Gt))},Ve=function(T){return Bt(T,"Number")};var vn=1e-5;function gr(T,X,ot){return void 0===ot&&(ot=vn),Math.abs(T-X)pt&&(ot=pe,pt=Ee)}return ot}},Qi=function(T,X){if(J(T)){for(var ot,pt=1/0,Gt=0;GtX?(pt&&(clearTimeout(pt),pt=null),qe=Xn,Ee=T.apply(Gt,pe),pt||(Gt=pe=null)):!pt&&!1!==ot.trailing&&(pt=setTimeout(Dn,Za)),Ee};return Bn.cancel=function(){clearTimeout(pt),qe=0,pt=Gt=pe=null},Bn},gc=function(T){return Et(T)?Array.prototype.slice.call(T):[]};var ia={};const yc=function(T){return ia[T=T||"g"]?ia[T]+=1:ia[T]=1,T+ia[T]},mc=function(){};function xc(T){return K(T)?0:Et(T)?T.length:Object.keys(T).length}var aa,Mc=V(7582);const oa=qo(function(T,X){void 0===X&&(X={});var ot=X.fontSize,pt=X.fontFamily,Gt=X.fontWeight,pe=X.fontStyle,Ee=X.fontVariant;return aa||(aa=document.createElement("canvas").getContext("2d")),aa.font=[pe,Ee,Gt,ot+"px",pt].join(" "),aa.measureText(Q(T)?T:"").width},function(T,X){return void 0===X&&(X={}),(0,Mc.pr)([T],ta(X)).join("")}),Cc=function(T,X,ot,pt){void 0===pt&&(pt="...");var Bn,Xn,pe=oa(pt,ot),Ee=Q(T)?T:pn(T),qe=X,Dn=[];if(oa(T,ot)<=X)return T;for(;Bn=Ee.substr(0,16),!((Xn=oa(Bn,ot))+pe>qe&&Xn>qe);)if(Dn.push(Bn),qe-=Xn,!(Ee=Ee.substr(16)))return Dn.join("");for(;Bn=Ee.substr(0,1),!((Xn=oa(Bn,ot))+pe>qe);)if(Dn.push(Bn),qe-=Xn,!(Ee=Ee.substr(1)))return Dn.join("");return""+Dn.join("")+pt},Sc=function(){function T(){this.map={}}return T.prototype.has=function(X){return void 0!==this.map[X]},T.prototype.get=function(X,ot){var pt=this.map[X];return void 0===pt?ot:pt},T.prototype.set=function(X,ot){this.map[X]=ot},T.prototype.clear=function(){this.map={}},T.prototype.delete=function(X){delete this.map[X]},T.prototype.size=function(){return Object.keys(this.map).length},T}()},3830:(Ne,ae,V)=>{"use strict";V.r(ae),V.d(ae,{BiModule:()=>OL});var Vt={};V.r(Vt),V.d(Vt,{assign:()=>ii,default:()=>av,defaultI18n:()=>Lc,format:()=>rv,parse:()=>iv,setGlobalDateI18n:()=>Jf,setGlobalDateMasks:()=>nv});var Et={};V.r(Et),V.d(Et,{Arc:()=>c2,DataMarker:()=>d2,DataRegion:()=>y2,Html:()=>F2,Image:()=>v2,Line:()=>a2,Region:()=>h2,RegionFilter:()=>x2,Shape:()=>C2,Text:()=>s2});var ie={};V.r(ie),V.d(ie,{ellipsisHead:()=>I2,ellipsisMiddle:()=>D2,ellipsisTail:()=>Dv,getDefault:()=>k2});var qt={};V.r(qt),V.d(qt,{equidistance:()=>Pv,equidistanceWithReverseBoth:()=>R2,getDefault:()=>O2,reserveBoth:()=>B2,reserveFirst:()=>P2,reserveLast:()=>z2});var zt={};V.r(zt),V.d(zt,{fixedAngle:()=>Bv,getDefault:()=>V2,unfixedAngle:()=>U2});var bt={};V.r(bt),V.d(bt,{autoEllipsis:()=>ie,autoHide:()=>qt,autoRotate:()=>zt});var kt={};V.r(kt),V.d(kt,{Base:()=>$c,Circle:()=>J2,Html:()=>j2,Line:()=>Rv});var ht={};V.r(ht),V.d(ht,{CONTAINER_CLASS:()=>Nr,CROSSHAIR_X:()=>tu,CROSSHAIR_Y:()=>eu,LIST_CLASS:()=>oo,LIST_ITEM_CLASS:()=>Cs,MARKER_CLASS:()=>ws,NAME_CLASS:()=>Hv,TITLE_CLASS:()=>Vr,VALUE_CLASS:()=>Ss});var mt={};V.r(mt),V.d(mt,{Base:()=>fr,Circle:()=>$w,Ellipse:()=>Qw,Image:()=>jw,Line:()=>tS,Marker:()=>rS,Path:()=>ku,Polygon:()=>fS,Polyline:()=>pS,Rect:()=>mS,Text:()=>MS});var te={};V.r(te),V.d(te,{Canvas:()=>SS,Group:()=>Fu,Shape:()=>mt,getArcParams:()=>Ys,version:()=>_S});var Bt={};V.r(Bt),V.d(Bt,{Base:()=>ir,Circle:()=>kS,Dom:()=>DS,Ellipse:()=>OS,Image:()=>zS,Line:()=>RS,Marker:()=>VS,Path:()=>YS,Polygon:()=>GS,Polyline:()=>WS,Rect:()=>qS,Text:()=>r_});var Qt={};V.r(Qt),V.d(Qt,{Canvas:()=>__,Group:()=>Du,Shape:()=>Bt,version:()=>b_});var xt={};V.r(xt),V.d(xt,{cluster:()=>x8,hierarchy:()=>Ia,pack:()=>yy,packEnclose:()=>uy,packSiblings:()=>BF,partition:()=>Jy,stratify:()=>S8,tree:()=>E8,treemap:()=>tm,treemapBinary:()=>k8,treemapDice:()=>Uo,treemapResquarify:()=>D8,treemapSlice:()=>Dl,treemapSliceDice:()=>I8,treemapSquarify:()=>Ky});var K=V(6814),J=V(2787),$=function(e){return e.Number="Number",e.Line="Line",e.StepLine="StepLine",e.Bar="Bar",e.PercentStackedBar="PercentStackedBar",e.Area="Area",e.PercentageArea="PercentageArea",e.Column="Column",e.Waterfall="Waterfall",e.StackedColumn="StackedColumn",e.Pie="Pie",e.Ring="Ring",e.Rose="Rose",e.Scatter="Scatter",e.Radar="Radar",e.WordCloud="WordCloud",e.Funnel="Funnel",e.Bubble="Bubble",e.Sankey="Sankey",e.RadialBar="RadialBar",e.Chord="Chord",e.tpl="tpl",e.table="table",e}($||{}),Lt=function(e){return e.backend="backend",e.front="front",e.none="none",e}(Lt||{}),Tt=function(e){return e.INPUT="INPUT",e.TAG="TAG",e.NUMBER="NUMBER",e.NUMBER_RANGE="NUMBER_RANGE",e.DATE="DATE",e.DATE_RANGE="DATE_RANGE",e.DATETIME="DATETIME",e.DATETIME_RANGE="DATETIME_RANGE",e.TIME="TIME",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR",e.REFERENCE="REFERENCE",e.REFERENCE_CASCADE="REFERENCE_CASCADE",e.REFERENCE_MULTI="REFERENCE_MULTI",e.REFERENCE_TREE_RADIO="REFERENCE_TREE_RADIO",e.REFERENCE_TREE_MULTI="REFERENCE_TREE_MULTI",e.REFERENCE_RADIO="REFERENCE_RADIO",e.REFERENCE_CHECKBOX="REFERENCE_CHECKBOX",e}(Tt||{}),Ft=function(e){return e.STRING="string",e.NUMBER="number",e.DATE="date",e.DRILL="drill",e}(Ft||{}),lt=V(2867),Z=V(3460),u=V(5879),ct=V(1152),Mt=V(1877),Jt=V(7955),jt=V(7776);let et=(()=>{class e{constructor(t,r,i){this._http=t,this.menuSrv=r,this.tokenService=i}getBiBuild(t){return this._http.get(ct.zP.bi+"/"+t,null,{observe:"body",headers:{erupt:t}})}getBiData(t,r,i,a,o,s){let l={index:r,size:i};return a&&o&&(l.sort=a,l.direction=o?"ascend"===o:null),this._http.post(ct.zP.bi+"/data/"+t,s,l,{headers:{erupt:t}})}getBiDrillData(t,r,i,a,o){return this._http.post(ct.zP.bi+"/drill/data/"+t+"/"+r,o,{pageIndex:i,pageSize:a},{headers:{erupt:t}})}getBiChart(t,r,i){return this._http.post(ct.zP.bi+"/"+t+"/chart/"+r,i,null,{headers:{erupt:t}})}getBiReference(t,r,i){return this._http.post(ct.zP.bi+"/"+t+"/reference/"+r,i||{},null,{headers:{erupt:t}})}exportExcel_bak(t,r,i){Mt.D.postExcelFile(ct.zP.bi+"/"+r+"/excel/"+t,{condition:encodeURIComponent(JSON.stringify(i)),[Mt.D.PARAM_ERUPT]:r,[Mt.D.PARAM_TOKEN]:this.tokenService.get().token})}exportExcel(t,r,i,a){this._http.post(ct.zP.bi+"/"+r+"/excel/"+t,i,null,{responseType:"arraybuffer",observe:"events",headers:{erupt:r}}).subscribe(o=>{4===o.type&&((0,lt.Sv)(o),a())},()=>{a()})}exportChartExcel(t,r,i,a){this._http.post(ct.zP.bi+"/"+t+"/export/chart/"+r,i,null,{responseType:"arraybuffer",observe:"events",headers:{erupt:t}}).subscribe(o=>{4===o.type&&((0,lt.Sv)(o),a())},()=>{a()})}getChartTpl(t,r,i){return ct.zP.bi+"/"+r+"/custom-chart/"+t+"?_token="+this.tokenService.get().token+"&_t="+(new Date).getTime()+"&_erupt="+r+"&condition="+encodeURIComponent(JSON.stringify(i))}static#t=this.\u0275fac=function(r){return new(r||e)(u.LFG(jt.lP),u.LFG(jt.hl),u.LFG(Jt.T))};static#e=this.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ft=(()=>{class e{constructor(t){this.msg=t,this.datePipe=new K.uU("zh-cn")}buildDimParam(t,r=!0,i=!1){let a={};for(let o of t.dimensions){let s=o.$value;if(s)switch(o.type){case Tt.DATE_RANGE:s[0]=this.datePipe.transform(s[0],"yyyy-MM-dd 00:00:00"),s[1]=this.datePipe.transform(s[1],"yyyy-MM-dd 23:59:59");break;case Tt.DATETIME_RANGE:s[0]=this.datePipe.transform(s[0],"yyyy-MM-dd HH:mm:ss"),s[1]=this.datePipe.transform(s[1],"yyyy-MM-dd HH:mm:ss");break;case Tt.DATE:s=this.datePipe.transform(s,"yyyy-MM-dd");break;case Tt.DATETIME:s=this.datePipe.transform(s,"yyyy-MM-dd HH:mm:ss");break;case Tt.TIME:s=this.datePipe.transform(s,"HH:mm:ss");break;case Tt.YEAR:s=this.datePipe.transform(s,"yyyy");break;case Tt.MONTH:s=this.datePipe.transform(s,"yyyy-MM");break;case Tt.WEEK:s=this.datePipe.transform(s,"yyyy-ww")}if(o.notNull&&!o.$value&&(r&&this.msg.error(o.title+"\u5fc5\u586b"),!i)||o.notNull&&Array.isArray(o.$value)&&!o.$value[0]&&!o.$value[1]&&(r&&this.msg.error(o.title+"\u5fc5\u586b"),!i))return null;a[o.code]=Array.isArray(s)&&0==s.length?null:s||null}return a}static#t=this.\u0275fac=function(r){return new(r||e)(u.LFG(Z.dD))};static#e=this.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ht=V(6990),Ct=V(6976),vt=V(2669),ut=V(2274);const _=["st"];function B(e,n){if(1&e&&u._uU(0),2&e){const t=u.oxw(2);u.hij("\u5171",t.biTable.total,"\u6761")}}const dt=function(e){return{x:e}};function Rt(e,n){if(1&e){const t=u.EpF();u.ynx(0),u._UZ(1,"st",2,3),u.TgZ(3,"nz-pagination",4),u.NdJ("nzPageSizeChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.pageSizeChange(i))})("nzPageIndexChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.pageIndexChange(i))}),u.qZA(),u.YNc(4,B,1,1,"ng-template",null,5,u.W1O),u.BQk()}if(2&e){const t=u.MAs(5),r=u.oxw();u.xp6(1),u.Q6J("columns",r.biTable.columns)("data",r.biTable.data)("ps",r.biTable.size)("page",r.biTable.page)("scroll",u.VKq(13,dt,(r.clientWidth>768?150*r.biTable.columns.length:0)+"px"))("bordered",r.settingSrv.layout.bordered)("size","small"),u.xp6(2),u.Q6J("nzPageIndex",r.biTable.index)("nzPageSize",r.biTable.size)("nzTotal",r.biTable.total)("nzPageSizeOptions",r.bi.pageSizeOptions)("nzSize","small")("nzShowTotal",t)}}const Zt=function(){return[]};function oe(e,n){1&e&&(u.ynx(0),u._UZ(1,"nz-list",6),u.BQk()),2&e&&(u.xp6(1),u.Q6J("nzDataSource",u.DdM(1,Zt)))}let L=(()=>{class e{constructor(t,r,i,a,o){this.dataService=t,this.route=r,this.handlerService=i,this.settingSrv=a,this.msg=o,this.querying=!1,this.clientWidth=document.body.clientWidth,this.biTable={index:1,size:10,total:0,page:{show:!1}}}ngOnInit(){this.biTable.size=this.bi.pageSize,this.query(1,this.bi.pageSize)}query(t,r){this.querying=!0,this.dataService.getBiDrillData(this.bi.code,this.drillCode.toString(),t,r,this.row).subscribe(i=>{if(this.querying=!1,this.biTable.total=i.total,this.biTable.columns=[],i.columns){for(let a of i.columns)a.display&&this.biTable.columns.push({title:a.name,index:a.name,className:"text-center",width:a.width});this.biTable.data=i.list}else this.biTable.data=[]})}pageIndexChange(t){this.query(t,this.biTable.size)}pageSizeChange(t){this.biTable.size=t,this.query(1,t)}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(J.gz),u.Y36(ft),u.Y36(jt.gb),u.Y36(Z.dD))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-drill"]],viewQuery:function(r,i){if(1&r&&u.Gf(_,5),2&r){let a;u.iGM(a=u.CRH())&&(i.st=a.first)}},inputs:{bi:"bi",drillCode:"drillCode",row:"row"},decls:3,vars:3,consts:[[2,"width","100%","text-align","center","min-height","80px",3,"nzSpinning"],[4,"ngIf"],[2,"margin-bottom","12px",3,"columns","data","ps","page","scroll","bordered","size"],["st",""],["nzShowSizeChanger","","nzShowQuickJumper","",2,"text-align","center",3,"nzPageIndex","nzPageSize","nzTotal","nzPageSizeOptions","nzSize","nzShowTotal","nzPageSizeChange","nzPageIndexChange"],["totalTemplate",""],[3,"nzDataSource"]],template:function(r,i){1&r&&(u.TgZ(0,"nz-spin",0),u.YNc(1,Rt,6,15,"ng-container",1),u.YNc(2,oe,2,2,"ng-container",1),u.qZA()),2&r&&(u.Q6J("nzSpinning",i.querying),u.xp6(1),u.Q6J("ngIf",i.biTable.columns&&i.biTable.columns.length>0),u.xp6(1),u.Q6J("ngIf",!i.biTable.columns||0==i.biTable.columns.length))},dependencies:[K.O5,Ht.A5,Ct.n_,vt.W,ut.dE],encapsulation:2})}return e})();var Y=V(1221),G=V(9682),D=V(95),nt=V(2840),st=V(855),k=V(1958),I=V(2920),w=V(2612),A=V(7417),F=V(551),R=V(2962),O=V(6987),j=V(4139),Q=V(9388),gt=V(8324),$t=V(8645),Dt=V(9773);function se(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"span",6),u.BQk()),2&e){const t=n.$implicit;u.xp6(1),u.Q6J("nzType",t)}}function Kt(e,n){if(1&e&&(u.ynx(0),u.YNc(1,se,2,1,"ng-container",5),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.icon)}}function Yt(e,n){1&e&&u.Hsn(0,1,["*ngIf","!icon"])}function z(e,n){if(1&e&&(u.ynx(0),u.YNc(1,Kt,2,1,"ng-container",2),u.YNc(2,Yt,1,0,"ng-content",2),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngIf",t.icon),u.xp6(1),u.Q6J("ngIf",!t.icon)}}function U(e,n){if(1&e&&(u.TgZ(0,"div",8),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.hij(" ",t.nzTitle," ")}}function q(e,n){if(1&e&&(u.ynx(0),u.YNc(1,U,2,1,"div",7),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzTitle)}}function at(e,n){1&e&&u.Hsn(0,2,["*ngIf","!nzTitle"])}function At(e,n){if(1&e&&(u.TgZ(0,"div",10),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.hij(" ",t.nzSubTitle," ")}}function Nt(e,n){if(1&e&&(u.ynx(0),u.YNc(1,At,2,1,"div",9),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzSubTitle)}}function Ot(e,n){1&e&&u.Hsn(0,3,["*ngIf","!nzSubTitle"])}function Pt(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.hij(" ",t.nzExtra," ")}}function _t(e,n){if(1&e&&(u.TgZ(0,"div",11),u.YNc(1,Pt,2,1,"ng-container",5),u.qZA()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzExtra)}}function ne(e,n){1&e&&u.Hsn(0,4,["*ngIf","!nzExtra"])}function Wt(e,n){1&e&&u._UZ(0,"nz-result-not-found")}function de(e,n){1&e&&u._UZ(0,"nz-result-server-error")}function Ce(e,n){1&e&&u._UZ(0,"nz-result-unauthorized")}function ce(e,n){if(1&e&&(u.ynx(0,12),u.YNc(1,Wt,1,0,"nz-result-not-found",13),u.YNc(2,de,1,0,"nz-result-server-error",13),u.YNc(3,Ce,1,0,"nz-result-unauthorized",13),u.BQk()),2&e){const t=u.oxw();u.Q6J("ngSwitch",t.nzStatus),u.xp6(1),u.Q6J("ngSwitchCase","404"),u.xp6(1),u.Q6J("ngSwitchCase","500"),u.xp6(1),u.Q6J("ngSwitchCase","403")}}const xe=[[["nz-result-content"],["","nz-result-content",""]],[["","nz-result-icon",""]],[["div","nz-result-title",""]],[["div","nz-result-subtitle",""]],[["div","nz-result-extra",""]]],ye=["nz-result-content, [nz-result-content]","[nz-result-icon]","div[nz-result-title]","div[nz-result-subtitle]","div[nz-result-extra]"];let we=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result-not-found"]],exportAs:["nzResultNotFound"],decls:62,vars:0,consts:[["width","252","height","294"],["d","M0 .387h251.772v251.772H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .012)"],["fill","#fff"],["d","M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321","fill","#E4EBF7","mask","url(#b)"],["d","M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66","fill","#FFF"],["d","M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788","stroke","#FFF","strokeWidth","2"],["d","M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175","fill","#FFF"],["d","M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932","fill","#FFF"],["d","M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011","par","","stroke","#FFF","strokeWidth","2"],["d","M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382","fill","#FFF"],["d","M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"],["d","M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742","fill","#FFF"],["d","M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48","fill","#1890FF"],["d","M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894","fill","#FFF"],["d","M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88","fill","#FFB594"],["d","M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624","fill","#FFC6A0"],["d","M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682","fill","#FFF"],["d","M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573","fill","#CBD1D1"],["d","M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z","fill","#2B0849"],["d","M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558","fill","#A4AABA"],["d","M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z","fill","#CBD1D1"],["d","M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062","fill","#2B0849"],["d","M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15","fill","#A4AABA"],["d","M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165","fill","#7BB2F9"],["d","M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M107.275 222.1s2.773-1.11 6.102-3.884","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038","fill","#192064"],["d","M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81","fill","#FFF"],["d","M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642","fill","#192064"],["d","M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268","fill","#FFC6A0"],["d","M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456","fill","#FFC6A0"],["d","M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z","fill","#520038"],["d","M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254","fill","#552950"],["stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round","d","M110.13 74.84l-.896 1.61-.298 4.357h-2.228"],["d","M110.846 74.481s1.79-.716 2.506.537","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.287 72.93s1.83 1.113 4.137.954","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M129.405 122.865s-5.272 7.403-9.422 10.768","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M119.306 107.329s.452 4.366-2.127 32.062","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01","fill","#F2D7AD"],["d","M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92","fill","#F4D19D"],["d","M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z","fill","#F2D7AD"],["fill","#CC9B6E","d","M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"],["d","M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83","fill","#F4D19D"],["fill","#CC9B6E","d","M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"],["fill","#CC9B6E","d","M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"],["d","M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238","fill","#FFC6A0"],["d","M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647","fill","#5BA02E"],["d","M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647","fill","#92C110"],["d","M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187","fill","#F2D7AD"],["d","M88.979 89.48s7.776 5.384 16.6 2.842","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"]],template:function(r,i){1&r&&(u.O4$(),u.TgZ(0,"svg",0)(1,"defs"),u._UZ(2,"path",1),u.qZA(),u.TgZ(3,"g",2)(4,"g",3),u._UZ(5,"mask",4)(6,"path",5),u.qZA(),u._UZ(7,"path",6)(8,"path",7)(9,"path",8)(10,"path",9)(11,"path",10)(12,"path",11)(13,"path",12)(14,"path",13)(15,"path",14)(16,"path",15)(17,"path",16)(18,"path",17)(19,"path",18)(20,"path",19)(21,"path",20)(22,"path",21)(23,"path",22)(24,"path",23)(25,"path",24)(26,"path",25)(27,"path",26)(28,"path",27)(29,"path",28)(30,"path",29)(31,"path",30)(32,"path",31)(33,"path",32)(34,"path",33)(35,"path",34)(36,"path",35)(37,"path",36)(38,"path",37)(39,"path",38)(40,"path",39)(41,"path",40)(42,"path",41)(43,"path",42)(44,"path",43)(45,"path",44)(46,"path",45)(47,"path",46)(48,"path",47)(49,"path",48)(50,"path",49)(51,"path",50)(52,"path",51)(53,"path",52)(54,"path",53)(55,"path",54)(56,"path",55)(57,"path",56)(58,"path",57)(59,"path",58)(60,"path",59)(61,"path",60),u.qZA()())},encapsulation:2,changeDetection:0})}return e})(),he=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result-server-error"]],exportAs:["nzResultServerError"],decls:69,vars:0,consts:[["width","254","height","294"],["d","M0 .335h253.49v253.49H0z"],["d","M0 293.665h253.49V.401H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .067)"],["fill","#fff"],["d","M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134","fill","#E4EBF7","mask","url(#b)"],["d","M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671","fill","#FFF"],["d","M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861","stroke","#FFF","strokeWidth","2"],["d","M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238","fill","#FFF"],["d","M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775","fill","#FFF"],["d","M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68","fill","#FF603B"],["d","M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733","fill","#FFF"],["d","M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487","fill","#FFB594"],["d","M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235","fill","#FFF"],["d","M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246","fill","#FFB594"],["d","M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508","fill","#FFC6A0"],["d","M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z","fill","#520038"],["d","M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26","fill","#552950"],["stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round","d","M99.206 73.644l-.9 1.62-.3 4.38h-2.24"],["d","M99.926 73.284s1.8-.72 2.52.54","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68","stroke","#DB836E","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.326 71.724s1.84 1.12 4.16.96","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954","stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round"],["d","M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044","stroke","#E4EBF7","strokeWidth","1.136","strokeLinecap","round","strokeLinejoin","round"],["d","M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583","fill","#FFF"],["d","M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75","fill","#FFC6A0"],["d","M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713","fill","#FFC6A0"],["d","M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16","fill","#FFC6A0"],["d","M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575","fill","#FFF"],["d","M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47","fill","#CBD1D1"],["d","M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z","fill","#2B0849"],["d","M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671","fill","#A4AABA"],["d","M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z","fill","#CBD1D1"],["d","M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162","fill","#2B0849"],["d","M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156","fill","#A4AABA"],["d","M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69","fill","#7BB2F9"],["d","M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M96.973 219.373s2.882-1.153 6.34-4.034","stroke","#648BD8","strokeWidth","1.032","strokeLinecap","round","strokeLinejoin","round"],["d","M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62","fill","#192064"],["d","M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843","fill","#FFF"],["d","M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668","fill","#192064"],["d","M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69","fill","#FFC6A0"],["d","M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593","stroke","#DB836E","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594","fill","#FFC6A0"],["d","M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M109.278 112.533s3.38-3.613 7.575-4.662","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M107.375 123.006s9.697-2.745 11.445-.88","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955","stroke","#BFCDDD","strokeWidth","2","strokeLinecap","round","strokeLinejoin","round"],["d","M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01","fill","#A3B4C6"],["d","M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813","fill","#A3B4C6"],["fill","#A3B4C6","mask","url(#d)","d","M154.098 190.096h70.513v-84.617h-70.513z"],["d","M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208","fill","#BFCDDD","mask","url(#d)"],["d","M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209","fill","#BFCDDD","mask","url(#d)"],["d","M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751","stroke","#7C90A5","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407","fill","#BFCDDD","mask","url(#d)"],["d","M177.259 207.217v11.52M201.05 207.217v11.52","stroke","#A3B4C6","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422","fill","#5BA02E","mask","url(#d)"],["d","M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423","fill","#92C110","mask","url(#d)"],["d","M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209","fill","#F2D7AD","mask","url(#d)"]],template:function(r,i){1&r&&(u.O4$(),u.TgZ(0,"svg",0)(1,"defs"),u._UZ(2,"path",1)(3,"path",2),u.qZA(),u.TgZ(4,"g",3)(5,"g",4),u._UZ(6,"mask",5)(7,"path",6),u.qZA(),u._UZ(8,"path",7)(9,"path",8)(10,"path",9)(11,"path",10)(12,"path",11)(13,"path",12)(14,"path",13)(15,"path",14)(16,"path",15)(17,"path",16)(18,"path",17)(19,"path",18)(20,"path",19)(21,"path",20)(22,"path",21)(23,"path",22)(24,"path",23)(25,"path",24)(26,"path",25)(27,"path",26)(28,"path",27)(29,"path",28)(30,"path",29)(31,"path",30)(32,"path",31)(33,"path",32)(34,"path",33)(35,"path",34)(36,"path",35)(37,"path",36)(38,"path",37)(39,"path",38)(40,"path",39)(41,"path",40)(42,"path",41)(43,"path",42)(44,"path",43)(45,"path",44)(46,"path",45)(47,"path",46)(48,"path",47)(49,"path",48)(50,"path",49)(51,"path",50)(52,"path",51)(53,"path",52)(54,"path",53)(55,"path",54)(56,"path",55)(57,"mask",5)(58,"path",56)(59,"path",57)(60,"path",58)(61,"path",59)(62,"path",60)(63,"path",61)(64,"path",62)(65,"path",63)(66,"path",64)(67,"path",65)(68,"path",66),u.qZA()())},encapsulation:2,changeDetection:0})}return e})(),Te=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result-unauthorized"]],exportAs:["nzResultUnauthorized"],decls:56,vars:0,consts:[["width","251","height","294"],["fill","none","fillRule","evenodd"],["d","M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023","fill","#E4EBF7"],["d","M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65","fill","#FFF"],["d","M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73","stroke","#FFF","strokeWidth","2"],["d","M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126","fill","#FFF"],["d","M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873","fill","#FFF"],["d","M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36","stroke","#FFF","strokeWidth","2"],["d","M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375","fill","#FFF"],["d","M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"],["d","M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321","fill","#A26EF4"],["d","M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734","fill","#FFF"],["d","M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717","fill","#FFF"],["d","M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61","fill","#5BA02E"],["d","M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611","fill","#92C110"],["d","M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17","fill","#F2D7AD"],["d","M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085","fill","#FFF"],["d","M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233","fill","#FFC6A0"],["d","M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367","fill","#FFB594"],["d","M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95","fill","#FFC6A0"],["d","M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929","fill","#FFF"],["d","M78.18 94.656s.911 7.41-4.914 13.078","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437","stroke","#E4EBF7","strokeWidth",".932","strokeLinecap","round","strokeLinejoin","round"],["d","M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z","fill","#FFC6A0"],["d","M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91","fill","#FFB594"],["d","M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103","fill","#5C2552"],["d","M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145","fill","#FFC6A0"],["stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round","d","M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"],["d","M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32","fill","#552950"],["d","M91.132 86.786s5.269 4.957 12.679 2.327","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25","fill","#DB836E"],["d","M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073","stroke","#5C2552","strokeWidth","1.526","strokeLinecap","round","strokeLinejoin","round"],["d","M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M66.508 86.763s-1.598 8.83-6.697 14.078","stroke","#E4EBF7","strokeWidth","1.114","strokeLinecap","round","strokeLinejoin","round"],["d","M128.31 87.934s3.013 4.121 4.06 11.785","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M64.09 84.816s-6.03 9.912-13.607 9.903","stroke","#DB836E","strokeWidth",".795","strokeLinecap","round","strokeLinejoin","round"],["d","M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73","fill","#FFC6A0"],["d","M130.532 85.488s4.588 5.757 11.619 6.214","stroke","#DB836E","strokeWidth",".75","strokeLinecap","round","strokeLinejoin","round"],["d","M121.708 105.73s-.393 8.564-1.34 13.612","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M115.784 161.512s-3.57-1.488-2.678-7.14","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68","fill","#CBD1D1"],["d","M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z","fill","#2B0849"],["d","M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62","fill","#A4AABA"],["d","M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z","fill","#CBD1D1"],["d","M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078","fill","#2B0849"],["d","M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15","fill","#A4AABA"],["d","M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954","fill","#7BB2F9"],["d","M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M108.459 220.905s2.759-1.104 6.07-3.863","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017","fill","#192064"],["d","M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806","fill","#FFF"],["d","M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64","fill","#192064"],["d","M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"]],template:function(r,i){1&r&&(u.O4$(),u.TgZ(0,"svg",0)(1,"g",1),u._UZ(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"path",18)(19,"path",19)(20,"path",20)(21,"path",21)(22,"path",22)(23,"path",23)(24,"path",24)(25,"path",25)(26,"path",26)(27,"path",27)(28,"path",28)(29,"path",29)(30,"path",30)(31,"path",31)(32,"path",32)(33,"path",33)(34,"path",34)(35,"path",35)(36,"path",36)(37,"path",37)(38,"path",38)(39,"path",39)(40,"path",40)(41,"path",41)(42,"path",42)(43,"path",43)(44,"path",44)(45,"path",45)(46,"path",46)(47,"path",47)(48,"path",48)(49,"path",49)(50,"path",50)(51,"path",51)(52,"path",52)(53,"path",53)(54,"path",54)(55,"path",55),u.qZA()())},encapsulation:2,changeDetection:0})}return e})(),Ve=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=u.lG2({type:e,selectors:[["div","nz-result-extra",""]],hostAttrs:[1,"ant-result-extra"],exportAs:["nzResultExtra"]})}return e})();const hn={success:"check-circle",error:"close-circle",info:"exclamation-circle",warning:"warning"},kn=["404","500","403"];let Cn=(()=>{class e{constructor(t,r){this.cdr=t,this.directionality=r,this.nzStatus="info",this.isException=!1,this.dir="ltr",this.destroy$=new $t.x}ngOnInit(){this.directionality.change?.pipe((0,Dt.R)(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(){this.setStatusIcon()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusIcon(){const t=this.nzIcon;this.isException=-1!==kn.indexOf(this.nzStatus),this.icon=t?"string"==typeof t&&hn[t]||t:this.isException?void 0:hn[this.nzStatus]}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.sBO),u.Y36(Q.Is,8))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result"]],hostAttrs:[1,"ant-result"],hostVars:10,hostBindings:function(r,i){2&r&&u.ekj("ant-result-success","success"===i.nzStatus)("ant-result-error","error"===i.nzStatus)("ant-result-info","info"===i.nzStatus)("ant-result-warning","warning"===i.nzStatus)("ant-result-rtl","rtl"===i.dir)},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",nzStatus:"nzStatus",nzSubTitle:"nzSubTitle",nzExtra:"nzExtra"},exportAs:["nzResult"],features:[u.TTD],ngContentSelectors:ye,decls:11,vars:8,consts:[[1,"ant-result-icon"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","ant-result-extra",4,"ngIf"],["exceptionTpl",""],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","fill",3,"nzType"],["class","ant-result-title",4,"nzStringTemplateOutlet"],[1,"ant-result-title"],["class","ant-result-subtitle",4,"nzStringTemplateOutlet"],[1,"ant-result-subtitle"],[1,"ant-result-extra"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(r,i){if(1&r&&(u.F$t(xe),u.TgZ(0,"div",0),u.YNc(1,z,3,2,"ng-container",1),u.qZA(),u.YNc(2,q,2,1,"ng-container",2),u.YNc(3,at,1,0,"ng-content",2),u.YNc(4,Nt,2,1,"ng-container",2),u.YNc(5,Ot,1,0,"ng-content",2),u.Hsn(6),u.YNc(7,_t,2,1,"div",3),u.YNc(8,ne,1,0,"ng-content",2),u.YNc(9,ce,4,4,"ng-template",null,4,u.W1O)),2&r){const a=u.MAs(10);u.xp6(1),u.Q6J("ngIf",!i.isException)("ngIfElse",a),u.xp6(1),u.Q6J("ngIf",i.nzTitle),u.xp6(1),u.Q6J("ngIf",!i.nzTitle),u.xp6(1),u.Q6J("ngIf",i.nzSubTitle),u.xp6(1),u.Q6J("ngIf",!i.nzSubTitle),u.xp6(2),u.Q6J("ngIf",i.nzExtra),u.xp6(1),u.Q6J("ngIf",!i.nzExtra)}},dependencies:[K.O5,K.RF,K.n9,gt.f,F.Ls,we,he,Te],encapsulation:2,changeDetection:0})}return e})(),Or=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[Q.vT,K.ez,gt.T,F.PV]})}return e})();var In=V(804),dr=V(9601),vn=V(824),gr=V(4263);const yr=["tree"];function Pr(e,n){1&e&&u._UZ(0,"i",7)}let jr=(()=>{class e{constructor(t,r){this.dataService=t,this.handlerService=r,this.loading=!1}ngOnInit(){this.multiple=this.dimension.type===Tt.REFERENCE_MULTI||this.dimension.type===Tt.REFERENCE_TREE_MULTI;let t=this.dimension.type==Tt.REFERENCE_TREE_MULTI||this.dimension.type==Tt.REFERENCE_TREE_RADIO;this.loading=!0,this.dataService.getBiReference(this.code,this.dimension.id,this.handlerService.buildDimParam(this.bi,!1,!0)).subscribe(r=>{if(r){if(t)this.data=this.recursiveTree(r,null);else{let i=[];r.forEach(a=>{i.push({isLeaf:!0,key:a.id,title:a.title})}),this.data=i}if(this.multiple&&(this.data=[{key:null,title:"\u5168\u90e8",expanded:!0,children:this.data,all:!0}]),this.dimension.$value)switch(this.dimension.type){case Tt.REFERENCE:this.data.forEach(i=>{i.key==this.dimension.$value&&(i.selected=!0)});break;case Tt.REFERENCE_MULTI:this.data[0].children.forEach(i=>{-1!=this.dimension.$value.indexOf(i.key)&&(i.checked=!0)});break;case Tt.REFERENCE_TREE_RADIO:this.findAllNode(this.data).forEach(i=>{i.key==this.dimension.$value&&(i.selected=!0)});break;case Tt.REFERENCE_TREE_MULTI:this.findAllNode(this.data).forEach(i=>{-1!=this.dimension.$value.indexOf(i.key)&&(i.checked=!0)})}}else this.data=[];this.loading=!1})}recursiveTree(t,r){let i=[];return t.forEach(a=>{if(a.pid==r){let o={key:a.id,title:a.title,expanded:!0,children:this.recursiveTree(t,a.id)};o.isLeaf=!o.children.length,i.push(o)}}),i}confirmNodeChecked(){if(this.multiple){let t=this.tree.getCheckedNodeList(),r=[],i=[];t.forEach(a=>{a.origin.key&&(i.push(a.origin.key),r.push(a.origin.title))}),this.dimension.$value=i.length+1===this.findAllNode(this.data).length?[]:i,this.dimension.$viewValue=r.join(" | ")}else this.tree.getSelectedNodeList().length>0&&(this.dimension.$viewValue=this.tree.getSelectedNodeList()[0].title,this.dimension.$value=this.tree.getSelectedNodeList()[0].key)}findAllNode(t,r=[]){return t.forEach(i=>{i.children&&this.findAllNode(i.children,r),r.push(i)}),r}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(ft))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-reference-select"]],viewQuery:function(r,i){if(1&r&&u.Gf(yr,5),2&r){let a;u.iGM(a=u.CRH())&&(i.tree=a.first)}},inputs:{dimension:"dimension",code:"code",bi:"bi"},decls:9,vars:9,consts:[[3,"nzSpinning"],[1,"mb-sm",2,"width","100%",3,"nzSuffix"],["type","text","nz-input","","placeholder","Search",3,"ngModel","ngModelChange"],["searchSuffixIcon",""],[2,"max-height","450px","min-height","300px","overflow","auto"],["nzDraggable","",1,"tree-container",3,"nzCheckStrictly","nzCheckable","nzShowLine","nzHideUnMatched","nzData","nzSearchValue"],["tree",""],["nz-icon","","nzType","search"]],template:function(r,i){if(1&r&&(u.TgZ(0,"nz-spin",0)(1,"nz-input-group",1)(2,"input",2),u.NdJ("ngModelChange",function(o){return i.searchValue=o}),u.qZA()(),u.YNc(3,Pr,1,0,"ng-template",null,3,u.W1O),u._UZ(5,"br"),u.TgZ(6,"div",4),u._UZ(7,"nz-tree",5,6),u.qZA()()),2&r){const a=u.MAs(4);u.Q6J("nzSpinning",i.loading),u.xp6(1),u.Q6J("nzSuffix",a),u.xp6(1),u.Q6J("ngModel",i.searchValue),u.xp6(5),u.Q6J("nzCheckStrictly",!1)("nzCheckable",i.multiple)("nzShowLine",!0)("nzHideUnMatched",!0)("nzData",i.data)("nzSearchValue",i.searchValue)}},dependencies:[D.Fj,D.JJ,D.On,st.w,F.Ls,vn.Zp,vn.gB,vn.ke,vt.W,gr.Hc],encapsulation:2})}return e})();var mr=V(6676),Kr=V(899),Qi=V(6109),za=V(9691),zr=V(2682),qi=V(47),$o=V(8373),Ba=V(3599),Ra=V(7907),wi=V(7929);function Na(e,n){1&e&&(u.TgZ(0,"label",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.Q6J("nzValue",null),u.xp6(1),u.Oqu(u.lcZ(2,2,"global.check_none")))}function Va(e,n){if(1&e&&(u.TgZ(0,"label",6),u._uU(1),u.qZA()),2&e){const t=n.$implicit;u.Q6J("nzValue",t.id),u.xp6(1),u.Oqu(t.title)}}function Jo(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-radio-group",3),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.dim.$value=i)}),u.YNc(2,Na,3,4,"label",4),u.YNc(3,Va,2,2,"label",5),u.qZA(),u.BQk()}if(2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngModel",t.dim.$value)("name",t.dim.code),u.xp6(1),u.Q6J("ngIf",!t.dim.notNull),u.xp6(1),u.Q6J("ngForOf",t.data)}}function ji(e,n){if(1&e&&(u.TgZ(0,"label",10),u._uU(1),u.qZA()),2&e){const t=n.$implicit,r=u.oxw(2);u.Q6J("nzChecked",r.dim.$viewValue)("nzValue",t.id),u.xp6(1),u.Oqu(t.title)}}function Ki(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"label",7),u.NdJ("nzCheckedChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.dim.$viewValue=i)})("nzCheckedChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.checkedChangeAll(i))}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"nz-checkbox-wrapper",8),u.NdJ("nzOnChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.checkedChange(i))}),u.YNc(5,ji,2,3,"label",9),u.qZA(),u.BQk()}if(2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzChecked",t.dim.$viewValue),u.xp6(1),u.Oqu(u.lcZ(3,3,"global.check_all")),u.xp6(3),u.Q6J("ngForOf",t.data)}}let ta=(()=>{class e{constructor(t){this.dataService=t,this.dimType=Tt}ngOnInit(){this.loading=!0,this.dataService.getBiReference(this.bi.code,this.dim.id,null).subscribe(t=>{this.data=t,this.loading=!1})}checkedChange(t){this.dim.$value=t}checkedChangeAll(t){this.dim.$viewValue=t,this.dim.$value=[]}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-bi-choice"]],inputs:{dim:"dim",bi:"bi"},decls:4,vars:4,consts:[[3,"nzSpinning"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngModel","name","ngModelChange"],["nz-radio","",3,"nzValue",4,"ngIf"],["nz-radio","",3,"nzValue",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue"],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[3,"nzOnChange"],["nz-checkbox","",3,"nzChecked","nzValue",4,"ngFor","ngForOf"],["nz-checkbox","",3,"nzChecked","nzValue"]],template:function(r,i){1&r&&(u.TgZ(0,"nz-spin",0),u.ynx(1,1),u.YNc(2,Jo,4,4,"ng-container",2),u.YNc(3,Ki,6,5,"ng-container",2),u.BQk(),u.qZA()),2&r&&(u.Q6J("nzSpinning",i.loading),u.xp6(1),u.Q6J("ngSwitch",i.dim.type),u.xp6(1),u.Q6J("ngSwitchCase",i.dimType.REFERENCE_RADIO),u.xp6(1),u.Q6J("ngSwitchCase",i.dimType.REFERENCE_CHECKBOX))},dependencies:[K.sg,K.O5,K.RF,K.n9,D.JJ,D.On,w.Ie,w.EZ,Ra.Of,Ra.Dg,vt.W,wi.C],styles:["label[nz-radio][_ngcontent-%COMP%]{min-width:120px;margin-right:0;line-height:32px}label[nz-checkbox][_ngcontent-%COMP%]{min-width:120px;line-height:32px;margin-left:0}"]})}return e})();var g=V(7582),pn=V(6028),N=V(3651),P=V(5619),H=V(7715),rt=V(2096),It=V(5592),re=V(2438),ve=V(6232),le=V(4716),Pe=V(3997),on=V(2460),Sn=V(7398),zn=V(7921),xr=V(4664),Br=V(4194),Wn=V(874),ea=V(5448),Ua=V(9087),lr=V(7754),Qo=V(4267),Ul=V(2131),Ya=V(331),na=V(883);const Yl=["nz-cascader-option",""];function xf(e,n){}const Mf=function(e,n){return{$implicit:e,index:n}};function Hl(e,n){if(1&e&&(u.ynx(0),u.YNc(1,xf,0,0,"ng-template",3),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngTemplateOutlet",t.optionTemplate)("ngTemplateOutletContext",u.WLB(2,Mf,t.option,t.columnIndex))}}function Gl(e,n){if(1&e&&(u._UZ(0,"div",4),u.ALo(1,"nzHighlight")),2&e){const t=u.oxw();u.Q6J("innerHTML",u.gM2(1,1,t.optionLabel,t.highlightText,"g","ant-cascader-menu-item-keyword"),u.oJD)}}function Zl(e,n){1&e&&u._UZ(0,"span",8)}function Wl(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"span",10),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("nzType",t.expandIcon)}}function Xl(e,n){if(1&e&&u.YNc(0,Wl,2,1,"ng-container",9),2&e){const t=u.oxw(2);u.Q6J("nzStringTemplateOutlet",t.expandIcon)}}function $l(e,n){if(1&e&&(u.TgZ(0,"div",5),u.YNc(1,Zl,1,0,"span",6),u.YNc(2,Xl,1,1,"ng-template",null,7,u.W1O),u.qZA()),2&e){const t=u.MAs(3),r=u.oxw();u.xp6(1),u.Q6J("ngIf",r.option.loading)("ngIfElse",t)}}const Cf=["selectContainer"],wf=["input"],Ha=["menu"];function Jl(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Oqu(t.labelRenderText)}}function Ql(e,n){}function ql(e,n){if(1&e&&u.YNc(0,Ql,0,0,"ng-template",16),2&e){const t=u.oxw(3);u.Q6J("ngTemplateOutlet",t.nzLabelRender)("ngTemplateOutletContext",t.labelRenderContext)}}function qo(e,n){if(1&e&&(u.TgZ(0,"span",13),u.YNc(1,Jl,2,1,"ng-container",14),u.YNc(2,ql,1,2,"ng-template",null,15,u.W1O),u.qZA()),2&e){const t=u.MAs(3),r=u.oxw(2);u.Q6J("title",r.labelRenderText),u.xp6(1),u.Q6J("ngIf",!r.isLabelRenderTemplate)("ngIfElse",t)}}function jl(e,n){if(1&e&&(u.TgZ(0,"span",17),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.Udp("visibility",t.inputValue?"hidden":"visible"),u.xp6(1),u.Oqu(t.showPlaceholder?t.nzPlaceHolder||(null==t.locale?null:t.locale.placeholder):null)}}function jo(e,n){if(1&e&&u._UZ(0,"span",22),2&e){const t=u.oxw(3);u.ekj("ant-cascader-picker-arrow-expand",t.menuVisible),u.Q6J("nzType",t.nzSuffixIcon)}}function Kl(e,n){1&e&&u._UZ(0,"span",23)}function tc(e,n){if(1&e&&u._UZ(0,"nz-form-item-feedback-icon",24),2&e){const t=u.oxw(3);u.Q6J("status",t.status)}}function Sf(e,n){if(1&e&&(u.TgZ(0,"span",18),u.YNc(1,jo,1,3,"span",19),u.YNc(2,Kl,1,0,"span",20),u.YNc(3,tc,1,1,"nz-form-item-feedback-icon",21),u.qZA()),2&e){const t=u.oxw(2);u.ekj("ant-select-arrow-loading",t.isLoading),u.xp6(1),u.Q6J("ngIf",!t.isLoading),u.xp6(1),u.Q6J("ngIf",t.isLoading),u.xp6(1),u.Q6J("ngIf",t.hasFeedback&&!!t.status)}}function _f(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"span",25)(1,"span",26),u.NdJ("click",function(i){u.CHM(t);const a=u.oxw(2);return u.KtG(a.clearSelection(i))}),u.qZA()()}}function ec(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"div",4,5)(3,"span",6)(4,"input",7,8),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.inputValue=i)})("blur",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.handleInputBlur())})("focus",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.handleInputFocus())}),u.qZA()(),u.YNc(6,qo,4,3,"span",9),u.YNc(7,jl,2,3,"span",10),u.qZA(),u.YNc(8,Sf,4,5,"span",11),u.YNc(9,_f,2,0,"span",12),u.BQk()}if(2&e){const t=u.oxw();u.xp6(4),u.Udp("opacity",t.nzShowSearch?"":"0"),u.Q6J("readonly",!t.nzShowSearch)("disabled",t.nzDisabled)("ngModel",t.inputValue),u.uIk("autoComplete","off")("expanded",t.menuVisible)("autofocus",t.nzAutoFocus?"autofocus":null),u.xp6(2),u.Q6J("ngIf",t.showLabelRender),u.xp6(1),u.Q6J("ngIf",!t.showLabelRender),u.xp6(1),u.Q6J("ngIf",t.nzShowArrow),u.xp6(1),u.Q6J("ngIf",t.clearIconVisible)}}function nc(e,n){if(1&e&&(u.TgZ(0,"ul",32)(1,"li",33),u._UZ(2,"nz-embed-empty",34),u.qZA()()),2&e){const t=u.oxw(2);u.Udp("width",t.dropdownWidthStyle)("height",t.dropdownHeightStyle),u.xp6(2),u.Q6J("nzComponentName","cascader")("specificContent",t.nzNotFoundContent)}}function rc(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"li",38),u.NdJ("mouseenter",function(i){const o=u.CHM(t).$implicit,s=u.oxw().index,l=u.oxw(3);return u.KtG(l.onOptionMouseEnter(o,s,i))})("mouseleave",function(i){const o=u.CHM(t).$implicit,s=u.oxw().index,l=u.oxw(3);return u.KtG(l.onOptionMouseLeave(o,s,i))})("click",function(i){const o=u.CHM(t).$implicit,s=u.oxw().index,l=u.oxw(3);return u.KtG(l.onOptionClick(o,s,i))}),u.qZA()}if(2&e){const t=n.$implicit,r=u.oxw().index,i=u.oxw(3);u.Q6J("expandIcon",i.nzExpandIcon)("columnIndex",r)("nzLabelProperty",i.nzLabelProperty)("optionTemplate",i.nzOptionRender)("activated",i.isOptionActivated(t,r))("highlightText",i.inSearchingMode?i.inputValue:"")("option",t)("dir",i.dir)}}function ic(e,n){if(1&e&&(u.TgZ(0,"ul",36),u.YNc(1,rc,1,8,"li",37),u.qZA()),2&e){const t=n.$implicit,r=u.oxw(3);u.Udp("height",r.dropdownHeightStyle)("width",r.dropdownWidthStyle),u.Q6J("ngClass",r.menuColumnCls),u.xp6(1),u.Q6J("ngForOf",t)}}function ac(e,n){if(1&e&&u.YNc(0,ic,2,6,"ul",35),2&e){const t=u.oxw(2);u.Q6J("ngForOf",t.cascaderService.columns)}}function Ga(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"div",27),u.NdJ("mouseenter",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.onTriggerMouseEnter())})("mouseleave",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.onTriggerMouseLeave(i))}),u.TgZ(1,"div",28,29),u.YNc(3,nc,3,6,"ul",30),u.YNc(4,ac,1,1,"ng-template",null,31,u.W1O),u.qZA()()}if(2&e){const t=u.MAs(5),r=u.oxw();u.ekj("ant-cascader-dropdown-rtl","rtl"===r.dir),u.Q6J("@slideMotion","enter")("@.disabled",!(null==r.noAnimation||!r.noAnimation.nzNoAnimation))("nzNoAnimation",null==r.noAnimation?null:r.noAnimation.nzNoAnimation),u.xp6(1),u.ekj("ant-cascader-rtl","rtl"===r.dir)("ant-cascader-menus-hidden",!r.menuVisible)("ant-cascader-menu-empty",r.shouldShowEmpty),u.Q6J("ngClass",r.menuCls)("ngStyle",r.nzMenuStyle),u.xp6(2),u.Q6J("ngIf",r.shouldShowEmpty)("ngIfElse",t)}}const oc=["*"];function sc(e){return"boolean"!=typeof e}let Ko=(()=>{class e{constructor(t,r){this.cdr=t,this.optionTemplate=null,this.activated=!1,this.nzLabelProperty="label",this.expandIcon="",this.dir="ltr",this.nativeElement=r.nativeElement}ngOnInit(){""===this.expandIcon&&"rtl"===this.dir?this.expandIcon="left":""===this.expandIcon&&(this.expandIcon="right")}get optionLabel(){return this.option[this.nzLabelProperty]}markForCheck(){this.cdr.markForCheck()}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.sBO),u.Y36(u.SBq))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["","nz-cascader-option",""]],hostAttrs:[1,"ant-cascader-menu-item","ant-cascader-menu-item-expanded"],hostVars:7,hostBindings:function(r,i){2&r&&(u.uIk("title",i.option.title||i.optionLabel),u.ekj("ant-cascader-menu-item-active",i.activated)("ant-cascader-menu-item-expand",!i.option.isLeaf)("ant-cascader-menu-item-disabled",i.option.disabled))},inputs:{optionTemplate:"optionTemplate",option:"option",activated:"activated",highlightText:"highlightText",nzLabelProperty:"nzLabelProperty",columnIndex:"columnIndex",expandIcon:"expandIcon",dir:"dir"},exportAs:["nzCascaderOption"],attrs:Yl,decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["defaultOptionTemplate",""],["class","ant-cascader-menu-item-expand-icon",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-cascader-menu-item-content",3,"innerHTML"],[1,"ant-cascader-menu-item-expand-icon"],["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["icon",""],["nz-icon","","nzType","loading"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(r,i){if(1&r&&(u.YNc(0,Hl,2,5,"ng-container",0),u.YNc(1,Gl,2,6,"ng-template",null,1,u.W1O),u.YNc(3,$l,4,2,"div",2)),2&r){const a=u.MAs(2);u.Q6J("ngIf",i.optionTemplate)("ngIfElse",a),u.xp6(3),u.Q6J("ngIf",!i.option.isLeaf||(null==i.option.children?null:i.option.children.length)||i.option.loading)}},dependencies:[K.O5,K.tP,gt.f,F.Ls,Qo.U],encapsulation:2,changeDetection:0})}return e})(),ts=(()=>{class e{constructor(){this.activatedOptions=[],this.columns=[],this.inSearchingMode=!1,this.selectedOptions=[],this.values=[],this.$loading=new P.X(!1),this.$redraw=new $t.x,this.$optionSelected=new $t.x,this.$quitSearching=new $t.x,this.columnsSnapshot=[[]],this.activatedOptionsSnapshot=[]}get nzOptions(){return this.columns[0]}ngOnDestroy(){this.$redraw.complete(),this.$quitSearching.complete(),this.$optionSelected.complete(),this.$loading.complete()}syncOptions(t=!1){const r=this.values,i=r&&r.length,a=r.length-1,o=s=>{const l=()=>{const c=r[s];if(!(0,lr.DX)(c))return void this.$redraw.next();const h=this.findOptionWithValue(s,r[s])||("object"==typeof c?c:{[`${this.cascaderComponent.nzValueProperty}`]:c,[`${this.cascaderComponent.nzLabelProperty}`]:c});this.setOptionActivated(h,s,!1,!1),s{this.$quitSearching.next(),this.$redraw.next(),this.inSearchingMode=!1,this.columns=[...this.columnsSnapshot],this.activatedOptions=[...this.selectedOptions]},200)}prepareSearchOptions(t){const r=[],i=[],o=this.cascaderComponent.nzShowSearch,s=sc(o)&&o.filter?o.filter:(f,p)=>p.some(d=>{const y=this.getOptionLabel(d);return!!y&&-1!==y.indexOf(f)}),l=sc(o)&&o.sorter?o.sorter:null,c=(f,p=!1)=>{i.push(f);const d=Array.from(i);if(s(t,d)){const m={disabled:p||f.disabled,isLeaf:!0,path:d,[this.cascaderComponent.nzLabelProperty]:d.map(x=>this.getOptionLabel(x)).join(" / ")};r.push(m)}i.pop()},h=(f,p=!1)=>{const d=p||f.disabled;i.push(f),f.children.forEach(y=>{y.parent||(y.parent=f),y.isLeaf||h(y,d),(y.isLeaf||!y.children||!y.children.length)&&c(y,d)}),i.pop()};this.columnsSnapshot.length?(this.columnsSnapshot[0].forEach(f=>function lc(e){return e.isLeaf||!e.children||!e.children.length}(f)?c(f):h(f)),l&&r.sort((f,p)=>l(f.path,p.path,t)),this.columns=[r],this.$redraw.next()):this.columns=[[]]}toggleSearchingMode(t){this.inSearchingMode=t,t?(this.activatedOptionsSnapshot=[...this.activatedOptions],this.activatedOptions=[],this.selectedOptions=[],this.$redraw.next()):(this.activatedOptions=[...this.activatedOptionsSnapshot],this.selectedOptions=[...this.activatedOptions],this.columns=[...this.columnsSnapshot],this.syncOptions(),this.$redraw.next())}clear(){this.values=[],this.selectedOptions=[],this.activatedOptions=[],this.dropBehindColumns(0),this.$redraw.next(),this.$optionSelected.next(null)}getOptionLabel(t){return t[this.cascaderComponent.nzLabelProperty||"label"]}getOptionValue(t){return t[this.cascaderComponent.nzValueProperty||"value"]}setColumnData(t,r,i){(0,lr.cO)(this.columns[r],t)||(t.forEach(o=>o.parent=i),this.columns[r]=t,this.dropBehindColumns(r))}trackAncestorActivatedOptions(t){for(let r=t-1;r>=0;r--)this.activatedOptions[r]||(this.activatedOptions[r]=this.activatedOptions[r+1].parent)}dropBehindActivatedOptions(t){this.activatedOptions=this.activatedOptions.splice(0,t+1)}dropBehindColumns(t){t{t.loading=!1,this.$loading.next(!1),this.$redraw.next()})).subscribe({next:()=>{t.children&&this.setColumnData(t.children,r+1,t),i?.()},error:()=>{t.isLeaf=!0,a?.()}}))}isLoaded(t){return this.columns[t]&&this.columns[t].length>0}findOptionWithValue(t,r){const i=this.columns[t];if(i){const a="object"==typeof r?this.getOptionValue(r):r;return i.find(o=>a===this.getOptionValue(o))}return null}prepareEmitValue(){this.values=this.selectedOptions.map(t=>this.getOptionValue(t))}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac})}return e})();const ra="cascader",es=e=>e.join(" / ");let uc=(()=>{class e{set input(t){this.input$.next(t)}get input(){return this.input$.getValue()}get nzOptions(){return this.cascaderService.nzOptions}set nzOptions(t){this.cascaderService.withOptions(t)}get inSearchingMode(){return this.cascaderService.inSearchingMode}set inputValue(t){this.inputString=t,this.toggleSearchingMode(!!t)}get inputValue(){return this.inputString}get menuCls(){return{[`${this.nzMenuClassName}`]:!!this.nzMenuClassName}}get menuColumnCls(){return{[`${this.nzColumnClassName}`]:!!this.nzColumnClassName}}get hasInput(){return!!this.inputValue}get hasValue(){return this.cascaderService.values&&this.cascaderService.values.length>0}get showLabelRender(){return this.hasValue}get showPlaceholder(){return!(this.hasInput||this.hasValue)}get clearIconVisible(){return this.nzAllowClear&&!this.nzDisabled&&(this.hasValue||this.hasInput)}get isLabelRenderTemplate(){return!!this.nzLabelRender}constructor(t,r,i,a,o,s,l,c,h,f,p,d){this.cascaderService=t,this.nzConfigService=r,this.ngZone=i,this.cdr=a,this.i18nService=o,this.destroy$=s,this.elementRef=l,this.renderer=c,this.directionality=h,this.noAnimation=f,this.nzFormStatusService=p,this.nzFormNoStatusService=d,this._nzModuleName=ra,this.input$=new P.X(void 0),this.nzOptionRender=null,this.nzShowInput=!0,this.nzShowArrow=!0,this.nzAllowClear=!0,this.nzAutoFocus=!1,this.nzChangeOnSelect=!1,this.nzDisabled=!1,this.nzExpandTrigger="click",this.nzValueProperty="value",this.nzLabelRender=null,this.nzLabelProperty="label",this.nzSize="default",this.nzBackdrop=!1,this.nzShowSearch=!1,this.nzPlaceHolder="",this.nzMenuStyle=null,this.nzMouseEnterDelay=150,this.nzMouseLeaveDelay=150,this.nzStatus="",this.nzTriggerAction=["click"],this.nzSuffixIcon="down",this.nzExpandIcon="",this.nzVisibleChange=new u.vpe,this.nzSelectionChange=new u.vpe,this.nzSelect=new u.vpe,this.nzClear=new u.vpe,this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1,this.shouldShowEmpty=!1,this.menuVisible=!1,this.isLoading=!1,this.labelRenderContext={},this.onChange=Function.prototype,this.onTouched=Function.prototype,this.positions=[...ea.n$],this.dropdownHeightStyle="",this.isFocused=!1,this.dir="ltr",this.inputString="",this.isOpening=!1,this.delayMenuTimer=null,this.delaySelectTimer=null,this.isNzDisableFirstChange=!0,this.el=l.nativeElement,this.cascaderService.withComponent(this),this.renderer.addClass(this.elementRef.nativeElement,"ant-select"),this.renderer.addClass(this.elementRef.nativeElement,"ant-cascader")}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,Pe.x)((r,i)=>r.status===i.status&&r.hasFeedback===i.hasFeedback),(0,on.M)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,rt.of)(!1)),(0,Sn.U)(([{status:r,hasFeedback:i},a])=>({status:a?"":r,hasFeedback:i})),(0,Dt.R)(this.destroy$)).subscribe(({status:r,hasFeedback:i})=>{this.setStatusStyles(r,i)});const t=this.cascaderService;t.$redraw.pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.checkChildren(),this.setDisplayLabel(),this.cdr.detectChanges(),this.reposition(),this.setDropdownStyles()}),t.$loading.pipe((0,Dt.R)(this.destroy$)).subscribe(r=>{this.isLoading=r}),t.$optionSelected.pipe((0,Dt.R)(this.destroy$)).subscribe(r=>{if(r){const{option:i,index:a}=r;(i.isLeaf||this.nzChangeOnSelect&&"hover"===this.nzExpandTrigger)&&this.delaySetMenuVisible(!1),this.onChange(this.cascaderService.values),this.nzSelectionChange.emit(this.cascaderService.selectedOptions),this.nzSelect.emit({option:i,index:a}),this.cdr.markForCheck()}else this.onChange([]),this.nzSelect.emit(null),this.nzSelectionChange.emit([])}),t.$quitSearching.pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.inputString="",this.dropdownWidthStyle=""}),this.i18nService.localeChange.pipe((0,zn.O)(),(0,Dt.R)(this.destroy$)).subscribe(()=>{this.setLocale()}),this.nzConfigService.getConfigChangeEventForComponent(ra).pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change.pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.dir=this.directionality.value,t.$redraw.next()}),this.setupChangeListener(),this.setupKeydownListener()}ngOnChanges(t){const{nzStatus:r}=t;r&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.clearDelayMenuTimer(),this.clearDelaySelectTimer()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}writeValue(t){this.cascaderService.values=(0,lr.qo)(t),this.cascaderService.syncOptions(!0)}delaySetMenuVisible(t,r=100,i=!1){this.clearDelayMenuTimer(),r?(t&&i&&(this.isOpening=!0),this.delayMenuTimer=setTimeout(()=>{this.setMenuVisible(t),this.cdr.detectChanges(),this.clearDelayMenuTimer(),t&&setTimeout(()=>{this.isOpening=!1},100)},r)):this.setMenuVisible(t)}setMenuVisible(t){this.nzDisabled||this.menuVisible===t||(t&&(this.cascaderService.syncOptions(),this.scrollToActivatedOptions()),t||(this.inputValue=""),this.menuVisible=t,this.nzVisibleChange.emit(t),this.cdr.detectChanges())}clearDelayMenuTimer(){this.delayMenuTimer&&(clearTimeout(this.delayMenuTimer),this.delayMenuTimer=null)}clearSelection(t){t&&(t.preventDefault(),t.stopPropagation()),this.labelRenderText="",this.labelRenderContext={},this.inputValue="",this.setMenuVisible(!1),this.cascaderService.clear(),this.nzClear.emit()}getSubmitValue(){return this.cascaderService.selectedOptions.map(t=>this.cascaderService.getOptionValue(t))}focus(){this.isFocused||((this.input?.nativeElement||this.el).focus(),this.isFocused=!0)}blur(){this.isFocused&&((this.input?.nativeElement||this.el).blur(),this.isFocused=!1)}handleInputBlur(){this.menuVisible?this.focus():this.blur()}handleInputFocus(){this.focus()}onTriggerClick(){this.nzDisabled||(this.nzShowSearch&&this.focus(),this.isActionTrigger("click")&&this.delaySetMenuVisible(!this.menuVisible,100),this.onTouched())}onTriggerMouseEnter(){this.nzDisabled||!this.isActionTrigger("hover")||this.delaySetMenuVisible(!0,this.nzMouseEnterDelay,!0)}onTriggerMouseLeave(t){if(this.nzDisabled||!this.menuVisible||this.isOpening||!this.isActionTrigger("hover"))return void t.preventDefault();const r=t.relatedTarget,a=this.menu&&this.menu.nativeElement;this.el.contains(r)||a&&a.contains(r)||this.delaySetMenuVisible(!1,this.nzMouseLeaveDelay)}onOptionMouseEnter(t,r,i){i.preventDefault(),"hover"===this.nzExpandTrigger&&(t.isLeaf?this.cascaderService.setOptionDeactivatedSinceColumn(r):this.delaySetOptionActivated(t,r,!1))}onOptionMouseLeave(t,r,i){i.preventDefault(),"hover"===this.nzExpandTrigger&&!t.isLeaf&&this.clearDelaySelectTimer()}onOptionClick(t,r,i){i&&i.preventDefault(),(!t||!t.disabled)&&(this.el.focus(),this.inSearchingMode?this.cascaderService.setSearchOptionSelected(t):this.cascaderService.setOptionActivated(t,r,!0))}onClickOutside(t){this.el.contains(t.target)||this.closeMenu()}isActionTrigger(t){return"string"==typeof this.nzTriggerAction?this.nzTriggerAction===t:-1!==this.nzTriggerAction.indexOf(t)}onEnter(){const t=Math.max(this.cascaderService.activatedOptions.length-1,0),r=this.cascaderService.activatedOptions[t];r&&!r.disabled&&(this.inSearchingMode?this.cascaderService.setSearchOptionSelected(r):this.cascaderService.setOptionActivated(r,t,!0))}moveUpOrDown(t){const r=Math.max(this.cascaderService.activatedOptions.length-1,0),i=this.cascaderService.activatedOptions[r],a=this.cascaderService.columns[r]||[],o=a.length;let s=-1;for(s=i?a.indexOf(i):t?o:-1;s=t?s-1:s+1,!(s<0||s>=o);){const l=a[s];if(l&&!l.disabled){this.cascaderService.setOptionActivated(l,r);break}}}moveLeft(){const t=this.cascaderService.activatedOptions;t.length&&t.pop()}moveRight(){const t=this.cascaderService.activatedOptions.length,r=this.cascaderService.columns[t];if(r&&r.length){const i=r.find(a=>!a.disabled);i&&this.cascaderService.setOptionActivated(i,t)}}clearDelaySelectTimer(){this.delaySelectTimer&&(clearTimeout(this.delaySelectTimer),this.delaySelectTimer=null)}delaySetOptionActivated(t,r,i){this.clearDelaySelectTimer(),this.delaySelectTimer=setTimeout(()=>{this.cascaderService.setOptionActivated(t,r,i),this.delaySelectTimer=null},150)}toggleSearchingMode(t){this.inSearchingMode!==t&&this.cascaderService.toggleSearchingMode(t),this.inSearchingMode&&this.cascaderService.prepareSearchOptions(this.inputValue)}isOptionActivated(t,r){return this.cascaderService.activatedOptions[r]===t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.closeMenu()}closeMenu(){this.blur(),this.clearDelayMenuTimer(),this.setMenuVisible(!1)}reposition(){this.overlay&&this.overlay.overlayRef&&this.menuVisible&&Promise.resolve().then(()=>{this.overlay.overlayRef.updatePosition(),this.cdr.markForCheck()})}checkChildren(){this.cascaderItems&&this.cascaderItems.forEach(t=>t.markForCheck())}setDisplayLabel(){const t=this.cascaderService.selectedOptions,r=t.map(i=>this.cascaderService.getOptionLabel(i));this.isLabelRenderTemplate&&(this.labelRenderContext={labels:r,selectedOptions:t}),this.labelRenderText=es.call(this,r)}setDropdownStyles(){const t=this.cascaderService.columns[0];this.shouldShowEmpty=this.inSearchingMode&&(!t||!t.length)||!(this.nzOptions&&this.nzOptions.length)&&!this.nzLoadData,this.dropdownHeightStyle=this.shouldShowEmpty?"auto":"",this.input&&(this.dropdownWidthStyle=this.inSearchingMode||this.shouldShowEmpty?`${this.selectContainer.nativeElement.offsetWidth}px`:"")}setStatusStyles(t,r){this.status=t,this.hasFeedback=r,this.cdr.markForCheck(),this.statusCls=(0,lr.Zu)(this.prefixCls,t,r),Object.keys(this.statusCls).forEach(i=>{this.statusCls[i]?this.renderer.addClass(this.elementRef.nativeElement,i):this.renderer.removeClass(this.elementRef.nativeElement,i)})}setLocale(){this.locale=this.i18nService.getLocaleData("global"),this.cdr.markForCheck()}scrollToActivatedOptions(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.cascaderItems.toArray().filter(t=>t.activated).forEach(t=>{t.nativeElement.scrollIntoView({block:"start",inline:"nearest"})})})})}setupChangeListener(){this.input$.pipe((0,xr.w)(t=>t?new It.y(r=>this.ngZone.runOutsideAngular(()=>(0,re.R)(t.nativeElement,"change").subscribe(r))):ve.E),(0,Dt.R)(this.destroy$)).subscribe(t=>t.stopPropagation())}setupKeydownListener(){this.ngZone.runOutsideAngular(()=>{(0,re.R)(this.el,"keydown").pipe((0,Dt.R)(this.destroy$)).subscribe(t=>{const r=t.keyCode;if(r===pn.JH||r===pn.LH||r===pn.oh||r===pn.SV||r===pn.K5||r===pn.ZH||r===pn.hY){if(!this.menuVisible&&r!==pn.ZH&&r!==pn.hY)return this.ngZone.run(()=>this.setMenuVisible(!0));this.inSearchingMode&&(r===pn.ZH||r===pn.oh||r===pn.SV)||this.menuVisible&&(t.preventDefault(),this.ngZone.run(()=>{r===pn.JH?this.moveUpOrDown(!1):r===pn.LH?this.moveUpOrDown(!0):r===pn.oh?this.moveLeft():r===pn.SV?this.moveRight():r===pn.K5&&this.onEnter(),this.cdr.markForCheck()}))}})})}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(ts),u.Y36(Wn.jY),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(Ul.wi),u.Y36(Ua.kn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(Q.Is,8),u.Y36(Ya.P,9),u.Y36(na.kH,8),u.Y36(na.yW,8))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-cascader"],["","nz-cascader",""]],viewQuery:function(r,i){if(1&r&&(u.Gf(Cf,5),u.Gf(wf,5),u.Gf(Ha,5),u.Gf(N.pI,5),u.Gf(Ko,5)),2&r){let a;u.iGM(a=u.CRH())&&(i.selectContainer=a.first),u.iGM(a=u.CRH())&&(i.input=a.first),u.iGM(a=u.CRH())&&(i.menu=a.first),u.iGM(a=u.CRH())&&(i.overlay=a.first),u.iGM(a=u.CRH())&&(i.cascaderItems=a)}},hostVars:23,hostBindings:function(r,i){1&r&&u.NdJ("click",function(){return i.onTriggerClick()})("mouseenter",function(){return i.onTriggerMouseEnter()})("mouseleave",function(o){return i.onTriggerMouseLeave(o)}),2&r&&(u.uIk("tabIndex","0"),u.ekj("ant-select-in-form-item",!!i.nzFormStatusService)("ant-select-lg","large"===i.nzSize)("ant-select-sm","small"===i.nzSize)("ant-select-allow-clear",i.nzAllowClear)("ant-select-show-arrow",i.nzShowArrow)("ant-select-show-search",!!i.nzShowSearch)("ant-select-disabled",i.nzDisabled)("ant-select-open",i.menuVisible)("ant-select-focused",i.isFocused)("ant-select-single",!0)("ant-select-rtl","rtl"===i.dir))},inputs:{nzOptionRender:"nzOptionRender",nzShowInput:"nzShowInput",nzShowArrow:"nzShowArrow",nzAllowClear:"nzAllowClear",nzAutoFocus:"nzAutoFocus",nzChangeOnSelect:"nzChangeOnSelect",nzDisabled:"nzDisabled",nzColumnClassName:"nzColumnClassName",nzExpandTrigger:"nzExpandTrigger",nzValueProperty:"nzValueProperty",nzLabelRender:"nzLabelRender",nzLabelProperty:"nzLabelProperty",nzNotFoundContent:"nzNotFoundContent",nzSize:"nzSize",nzBackdrop:"nzBackdrop",nzShowSearch:"nzShowSearch",nzPlaceHolder:"nzPlaceHolder",nzMenuClassName:"nzMenuClassName",nzMenuStyle:"nzMenuStyle",nzMouseEnterDelay:"nzMouseEnterDelay",nzMouseLeaveDelay:"nzMouseLeaveDelay",nzStatus:"nzStatus",nzTriggerAction:"nzTriggerAction",nzChangeOn:"nzChangeOn",nzLoadData:"nzLoadData",nzSuffixIcon:"nzSuffixIcon",nzExpandIcon:"nzExpandIcon",nzOptions:"nzOptions"},outputs:{nzVisibleChange:"nzVisibleChange",nzSelectionChange:"nzSelectionChange",nzSelect:"nzSelect",nzClear:"nzClear"},exportAs:["nzCascader"],features:[u._Bn([{provide:D.JU,useExisting:(0,u.Gpc)(()=>e),multi:!0},ts,Ua.kn]),u.TTD],ngContentSelectors:oc,decls:6,vars:6,consts:[["cdkOverlayOrigin",""],["origin","cdkOverlayOrigin","trigger",""],[4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayOpen","overlayOutsideClick","detach"],[1,"ant-select-selector"],["selectContainer",""],[1,"ant-select-selection-search"],["type","search",1,"ant-select-selection-search-input",3,"readonly","disabled","ngModel","ngModelChange","blur","focus"],["input",""],["class","ant-select-selection-item",3,"title",4,"ngIf"],["class","ant-select-selection-placeholder",3,"visibility",4,"ngIf"],["class","ant-select-arrow",3,"ant-select-arrow-loading",4,"ngIf"],["class","ant-select-clear",4,"ngIf"],[1,"ant-select-selection-item",3,"title"],[4,"ngIf","ngIfElse"],["labelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-select-selection-placeholder"],[1,"ant-select-arrow"],["nz-icon","",3,"nzType","ant-cascader-picker-arrow-expand",4,"ngIf"],["nz-icon","","nzType","loading",4,"ngIf"],[3,"status",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","loading"],[3,"status"],[1,"ant-select-clear"],["nz-icon","","nzType","close-circle","nzTheme","fill",3,"click"],[1,"ant-select-dropdown","ant-cascader-dropdown","ant-select-dropdown-placement-bottomLeft",3,"nzNoAnimation","mouseenter","mouseleave"],[1,"ant-cascader-menus",3,"ngClass","ngStyle"],["menu",""],["class","ant-cascader-menu",3,"width","height",4,"ngIf","ngIfElse"],["hasOptionsTemplate",""],[1,"ant-cascader-menu"],[1,"ant-cascader-menu-item","ant-cascader-menu-item-disabled"],[1,"ant-cascader-menu-item-content",3,"nzComponentName","specificContent"],["class","ant-cascader-menu","role","menuitemcheckbox",3,"ngClass","height","width",4,"ngFor","ngForOf"],["role","menuitemcheckbox",1,"ant-cascader-menu",3,"ngClass"],["nz-cascader-option","",3,"expandIcon","columnIndex","nzLabelProperty","optionTemplate","activated","highlightText","option","dir","mouseenter","mouseleave","click",4,"ngFor","ngForOf"],["nz-cascader-option","",3,"expandIcon","columnIndex","nzLabelProperty","optionTemplate","activated","highlightText","option","dir","mouseenter","mouseleave","click"]],template:function(r,i){if(1&r&&(u.F$t(),u.TgZ(0,"div",0,1),u.YNc(3,ec,10,12,"ng-container",2),u.Hsn(4),u.qZA(),u.YNc(5,Ga,6,15,"ng-template",3),u.NdJ("overlayOutsideClick",function(o){return i.onClickOutside(o)})("detach",function(){return i.closeMenu()})),2&r){const a=u.MAs(1);u.xp6(3),u.Q6J("ngIf",i.nzShowInput),u.xp6(2),u.Q6J("cdkConnectedOverlayHasBackdrop",i.nzBackdrop)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayPositions",i.positions)("cdkConnectedOverlayTransformOriginOn",".ant-cascader-dropdown")("cdkConnectedOverlayOpen",i.menuVisible)}},dependencies:[Q.Lv,K.mk,K.sg,K.O5,K.tP,K.PC,D.Fj,D.JJ,D.On,N.pI,N.xu,In.gB,F.Ls,Ya.P,ea.hQ,na.w_,Ko],encapsulation:2,data:{animation:[Br.mF]},changeDetection:0})}return(0,g.gn)([(0,lr.yF)()],e.prototype,"nzShowInput",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzShowArrow",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzAllowClear",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzAutoFocus",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzChangeOnSelect",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzDisabled",void 0),(0,g.gn)([(0,Wn.oS)()],e.prototype,"nzSize",void 0),(0,g.gn)([(0,Wn.oS)()],e.prototype,"nzBackdrop",void 0),e})(),hc=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[Q.vT,K.ez,D.u5,N.U8,gt.T,In.Xo,Qo.C,F.PV,vn.o7,Ya.g,ea.e4,na.mJ]})}return e})(),fc=(()=>{class e{constructor(t,r,i){this.dataService=t,this.handlerService=r,this.i18nService=i,this.loading=!1}fanyi(t){return this.i18nService.fanyi("")}ngOnInit(){this.loading=!0,this.dataService.getBiReference(this.bi.code,this.dim.id,this.handlerService.buildDimParam(this.bi,!1,!0)).subscribe(t=>{this.data=this.recursiveTree(t,null),this.data.forEach(r=>{r.key==this.dim.$value&&(r.selected=!0)}),this.loading=!1})}recursiveTree(t,r){let i=[];return t.forEach(a=>{if(a.pid==r){let o={value:a.id,label:a.title,children:this.recursiveTree(t,a.id)};o.isLeaf=!o.children.length,i.push(o)}}),i}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(ft),u.Y36(Kr.t$))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-bi-cascade"]],inputs:{dim:"dim",bi:"bi"},decls:2,vars:6,consts:[[3,"nzSpinning"],[2,"width","100%",3,"ngModel","nzChangeOnSelect","nzShowSearch","nzNotFoundContent","nzOptions","ngModelChange"]],template:function(r,i){1&r&&(u.TgZ(0,"nz-spin",0)(1,"nz-cascader",1),u.NdJ("ngModelChange",function(o){return i.dim.$value=o}),u.qZA()()),2&r&&(u.Q6J("nzSpinning",i.loading),u.xp6(1),u.Q6J("ngModel",i.dim.$value)("nzChangeOnSelect",!0)("nzShowSearch",!0)("nzNotFoundContent",i.fanyi("global.no_data"))("nzOptions",i.data))},dependencies:[D.JJ,D.On,vt.W,uc],encapsulation:2})}return e})();const vc=["*"];let pc=(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-search-se"]],inputs:{dimension:"dimension"},ngContentSelectors:vc,decls:9,vars:3,consts:[[2,"display","flex","margin","4px 0"],[2,"display","flex","justify-content","flex-end"],[1,"ellipsis",2,"line-height","32px","width","90px","text-align","left"],[2,"color","#f00"],[2,"margin","0 3px",3,"title"],[2,"flex","1","width","100%"]],template:function(r,i){1&r&&(u.F$t(),u.TgZ(0,"div",0)(1,"div",1)(2,"label",2)(3,"span",3),u._uU(4),u.qZA(),u.TgZ(5,"span",4),u._uU(6),u.qZA()()(),u.TgZ(7,"div",5),u.Hsn(8),u.qZA()()),2&r&&(u.xp6(4),u.Oqu(i.dimension.notNull?"*":""),u.xp6(1),u.Q6J("title",i.dimension.title),u.xp6(1),u.hij("",i.dimension.title," : \xa0"))}})}return e})();function dc(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",6)(2,"bi-search-se",7),u._UZ(3,"erupt-bi-choice",8),u.qZA()(),u.BQk()),2&e){const t=u.oxw().$implicit,r=u.oxw();u.xp6(1),u.Q6J("nzXs",24),u.xp6(1),u.Q6J("dimension",t),u.xp6(1),u.Q6J("dim",t)("bi",r.bi)}}function gc(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",9)(2,"bi-search-se",7),u._UZ(3,"erupt-bi-choice",8),u.qZA()(),u.BQk()),2&e){const t=u.oxw().$implicit,r=u.oxw();u.xp6(2),u.Q6J("dimension",t),u.xp6(1),u.Q6J("dim",t)("bi",r.bi)}}function ia(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-select",12),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("nzMode","tags")("ngModel",t.$value)("name",t.code)}}function yc(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"i",17),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(4).$implicit;return u.KtG(i.$value=null)}),u.qZA()}}function mc(e,n){if(1&e&&u.YNc(0,yc,1,0,"i",16),2&e){const t=u.oxw(3).$implicit;u.Q6J("ngIf",t.$value)}}function xc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",13)(2,"input",14),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)})("keydown",function(i){u.CHM(t);const a=u.oxw(3);return u.KtG(a.enterEvent(i))}),u.qZA()(),u.YNc(3,mc,1,1,"ng-template",null,15,u.W1O),u.BQk()}if(2&e){const t=u.MAs(4),r=u.oxw(2).$implicit;u.xp6(1),u.Q6J("nzSuffix",t),u.xp6(1),u.Q6J("ngModel",r.$value)("name",r.code)("required",r.notNull)}}function Mc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-number",18),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)})("keydown",function(i){u.CHM(t);const a=u.oxw(3);return u.KtG(a.enterEvent(i))}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function aa(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",19)(2,"nz-input-number",20),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value[0]=i)}),u.qZA(),u._UZ(3,"input",21),u.TgZ(4,"nz-input-number",20),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value[1]=i)}),u.qZA()(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(2),u.Q6J("ngModel",t.$value[0])("name",t.code),u.xp6(2),u.Q6J("ngModel",t.$value[1])("name",t.code)}}function oa(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"i",23),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3).$implicit,a=u.oxw();return u.KtG(a.clearRef(i))}),u.qZA(),u.BQk()}}function Cc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"i",24),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA(),u.BQk()}}function wc(e,n){if(1&e&&(u.YNc(0,oa,2,0,"ng-container",22),u.YNc(1,Cc,2,0,"ng-container",22)),2&e){const t=u.oxw(2).$implicit;u.Q6J("ngIf",t.$value),u.xp6(1),u.Q6J("ngIf",!t.$value)}}function Sc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function T(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function X(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function ot(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function pt(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"erupt-bi-cascade",8),u.BQk()),2&e){const t=u.oxw(2).$implicit,r=u.oxw();u.xp6(1),u.Q6J("dim",t)("bi",r.bi)}}function Gt(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-date-picker",27),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function pe(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-range-picker",28),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngModel",t.$value)("nzRanges",r.dateRanges)("name",t.code)}}function Ee(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-time-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function qe(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-date-picker",30),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Dn(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-range-picker",31),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)("nzRanges",r.dateRanges)}}function Bn(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-week-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Xn(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-month-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Za(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-year-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Rm(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",10)(2,"bi-search-se",7),u.ynx(3,3),u.YNc(4,ia,2,3,"ng-container",4),u.YNc(5,xc,5,4,"ng-container",4),u.YNc(6,Mc,2,2,"ng-container",4),u.YNc(7,aa,5,4,"ng-container",4),u.ynx(8),u.YNc(9,wc,2,2,"ng-template",null,11,u.W1O),u.YNc(11,Sc,3,5,"ng-container",4),u.YNc(12,T,3,5,"ng-container",4),u.YNc(13,X,3,5,"ng-container",4),u.YNc(14,ot,3,5,"ng-container",4),u.BQk(),u.YNc(15,pt,2,2,"ng-container",4),u.YNc(16,Gt,2,2,"ng-container",4),u.YNc(17,pe,2,3,"ng-container",4),u.YNc(18,Ee,2,2,"ng-container",4),u.YNc(19,qe,2,2,"ng-container",4),u.YNc(20,Dn,2,3,"ng-container",4),u.YNc(21,Bn,2,2,"ng-container",4),u.YNc(22,Xn,2,2,"ng-container",4),u.YNc(23,Za,2,2,"ng-container",4),u.BQk(),u.qZA()(),u.BQk()),2&e){const t=u.oxw().$implicit,r=u.oxw();u.xp6(1),u.Q6J("nzXs",r.col.xs)("nzSm",r.col.sm)("nzMd",r.col.md)("nzLg",r.col.lg)("nzXl",r.col.xl)("nzXXl",r.col.xxl),u.xp6(1),u.Q6J("dimension",t),u.xp6(1),u.Q6J("ngSwitch",t.type),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.TAG),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.INPUT),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.NUMBER),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.NUMBER_RANGE),u.xp6(4),u.Q6J("ngSwitchCase",r.dimType.REFERENCE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_MULTI),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_TREE_MULTI),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_TREE_RADIO),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_CASCADE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATE_RANGE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.TIME),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATETIME),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATETIME_RANGE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.WEEK),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.MONTH),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.YEAR)}}function Nm(e,n){if(1&e&&(u.ynx(0)(1,3),u.YNc(2,dc,4,4,"ng-container",4),u.YNc(3,gc,4,3,"ng-container",4),u.YNc(4,Rm,24,25,"ng-container",5),u.BQk()()),2&e){const t=n.$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngSwitch",t.type),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_RADIO),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_CHECKBOX)}}let Vm=(()=>{class e{constructor(t,r){this.modal=t,this.i18n=r,this.search=new u.vpe,this.col=dr.l[3],this.dimType=Tt,this.dateRanges={},this.datePipe=new K.uU("zh-cn")}ngOnInit(){this.dateRanges={[this.i18n.fanyi("global.today")]:[this.datePipe.transform(new Date,"yyyy-MM-dd 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.last_7_day")]:[this.datePipe.transform(mr().add(-7,"day").toDate(),"yyyy-MM-dd 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.last_30_day")]:[this.datePipe.transform(mr().add(-30,"day").toDate(),"yyyy-MM-dd 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.this_month")]:[this.datePipe.transform(mr().toDate(),"yyyy-MM-01 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.last_month")]:[this.datePipe.transform(mr().add(-1,"month").toDate(),"yyyy-MM-01 00:00:00"),this.datePipe.transform(mr().add(-1,"month").endOf("month").toDate(),"yyyy-MM-dd 23:59:59")]}}enterEvent(t){13===t.which&&this.search.emit()}ref(t){let r=this.modal.create({nzWrapClassName:"modal-xs",nzKeyboard:!0,nzStyle:{top:"30px"},nzTitle:t.title,nzContent:jr,nzOnOk:i=>{i.confirmNodeChecked()}});Object.assign(r.getContentComponent(),{dimension:t,code:this.bi.code,bi:this.bi})}clearRef(t){t.$viewValue=null,t.$value=null}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(Y.Sf),u.Y36(Kr.t$))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-dimension"]],inputs:{bi:"bi"},outputs:{search:"search"},decls:3,vars:2,consts:[["nz-form","","nzLayout","horizontal"],["nz-row","",3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-col","",3,"nzXs"],[3,"dimension"],[3,"dim","bi"],["nz-col",""],["nz-col","",3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],["refBtn",""],[2,"width","100%",3,"nzMode","ngModel","name","ngModelChange"],[1,"erupt-input",3,"nzSuffix"],["nz-input","","autocomplete","off",1,"full-width",3,"ngModel","name","required","ngModelChange","keydown"],["suffixTemplate",""],["nz-icon","","nz-tooltip","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nz-tooltip","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],[1,"full-width",3,"ngModel","name","ngModelChange","keydown"],[1,"erupt-input",2,"display","flex","align-items","center"],[2,"width","45%",3,"ngModel","name","ngModelChange"],["disabled","","nz-input","","placeholder","~",2,"width","30px","border-left","0","border-right","0","pointer-events","none"],[4,"ngIf"],["nz-icon","","nzType","close-circle","theme","fill",1,"point",3,"click"],["nz-icon","","nzType","database","theme","fill",1,"point",3,"click"],[1,"full-width",3,"nzAddOnAfter"],["nz-input","","autocomplete","off",3,"required","readOnly","value","name","click"],["nzShowToday","",1,"full-width",3,"ngModel","name","ngModelChange"],["nzShowToday","",1,"full-width",3,"ngModel","nzRanges","name","ngModelChange"],[1,"full-width",3,"ngModel","name","ngModelChange"],["nzShowTime","","nzShowToday","",1,"full-width",3,"ngModel","name","ngModelChange"],["nzShowToday","","nzShowTime","",1,"full-width",3,"ngModel","name","nzRanges","ngModelChange"]],template:function(r,i){1&r&&(u.TgZ(0,"form",0)(1,"div",1),u.YNc(2,Nm,5,3,"ng-container",2),u.qZA()()),2&r&&(u.xp6(1),u.Q6J("nzGutter",16),u.xp6(1),u.Q6J("ngForOf",i.bi.dimensions))},dependencies:[K.sg,K.O5,K.RF,K.n9,K.ED,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.On,D.F,st.w,I.t3,I.SK,Qi.SY,za.Vq,F.Ls,vn.Zp,vn.gB,vn.ke,zr.uw,zr.wS,zr.Xv,zr.Mq,zr.mr,qi.m4,$o._V,Ba.Lr,ta,fc,pc],styles:["[_nghost-%COMP%] nz-input-group{width:100%}[_nghost-%COMP%] se{width:100%}[_nghost-%COMP%] se .ant-form-item-label{width:auto!important;text-overflow:ellipsis;white-space:nowrap;max-width:150px;min-width:65px}"]})}return e})();var Wa,bc,kf,Tc,v=V(6641),gn=function(e){return e.FORE="fore",e.MID="mid",e.BG="bg",e}(gn||{}),ue=function(e){return e.TOP="top",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.RIGHT="right",e.RIGHT_TOP="right-top",e.RIGHT_BOTTOM="right-bottom",e.LEFT="left",e.LEFT_TOP="left-top",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.RADIUS="radius",e.CIRCLE="circle",e.NONE="none",e}(ue||{}),_n=function(e){return e.AXIS="axis",e.GRID="grid",e.LEGEND="legend",e.TOOLTIP="tooltip",e.ANNOTATION="annotation",e.SLIDER="slider",e.SCROLLBAR="scrollbar",e.OTHER="other",e}(_n||{}),Ue=function(e){return e.BEFORE_RENDER="beforerender",e.AFTER_RENDER="afterrender",e.BEFORE_PAINT="beforepaint",e.AFTER_PAINT="afterpaint",e.BEFORE_CHANGE_DATA="beforechangedata",e.AFTER_CHANGE_DATA="afterchangedata",e.BEFORE_CLEAR="beforeclear",e.AFTER_CLEAR="afterclear",e.BEFORE_DESTROY="beforedestroy",e.BEFORE_CHANGE_SIZE="beforechangesize",e.AFTER_CHANGE_SIZE="afterchangesize",e}(Ue||{}),Si=function(e){return e.BEFORE_DRAW_ANIMATE="beforeanimate",e.AFTER_DRAW_ANIMATE="afteranimate",e.BEFORE_RENDER_LABEL="beforerenderlabel",e.AFTER_RENDER_LABEL="afterrenderlabel",e}(Si||{}),$n=function(e){return e.MOUSE_ENTER="plot:mouseenter",e.MOUSE_DOWN="plot:mousedown",e.MOUSE_MOVE="plot:mousemove",e.MOUSE_UP="plot:mouseup",e.MOUSE_LEAVE="plot:mouseleave",e.TOUCH_START="plot:touchstart",e.TOUCH_MOVE="plot:touchmove",e.TOUCH_END="plot:touchend",e.TOUCH_CANCEL="plot:touchcancel",e.CLICK="plot:click",e.DBLCLICK="plot:dblclick",e.CONTEXTMENU="plot:contextmenu",e.LEAVE="plot:leave",e.ENTER="plot:enter",e}($n||{}),_c=function(e){return e.ACTIVE="active",e.INACTIVE="inactive",e.SELECTED="selected",e.DEFAULT="default",e}(_c||{}),la=["color","shape","size"],nn="_origin",Ff={};function Ef(e,n){Ff[e]=n}function ti(e){Wa||function Ym(){Wa=document.createElement("table"),bc=document.createElement("tr"),kf=/^\s*<(\w+|!)[^>]*>/,Tc={tr:document.createElement("tbody"),tbody:Wa,thead:Wa,tfoot:Wa,td:bc,th:bc,"*":document.createElement("div")}}();var n=kf.test(e)&&RegExp.$1;(!n||!(n in Tc))&&(n="*");var t=Tc[n];e="string"==typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,t.innerHTML=""+e;var r=t.childNodes[0];return r&&t.contains(r)&&t.removeChild(r),r}function Ln(e,n){if(e)for(var t in n)n.hasOwnProperty(t)&&(e.style[t]=n[t]);return e}function If(e){return"number"==typeof e&&!isNaN(e)}function Df(e,n,t,r){var i=t,a=r;if(n){var o=function Hm(e){var n=getComputedStyle(e);return{width:(e.clientWidth||parseInt(n.width,10))-parseInt(n.paddingLeft,10)-parseInt(n.paddingRight,10),height:(e.clientHeight||parseInt(n.height,10))-parseInt(n.paddingTop,10)-parseInt(n.paddingBottom,10)}}(e);i=o.width?o.width:i,a=o.height?o.height:a}return{width:Math.max(If(i)?i:1,1),height:Math.max(If(a)?a:1,1)}}var Lf=V(1120),Zm=function(e){function n(t){var r=e.call(this)||this;r.destroyed=!1;var i=t.visible;return r.visible=void 0===i||i,r}return(0,g.ZT)(n,e),n.prototype.show=function(){this.visible||this.changeVisible(!0)},n.prototype.hide=function(){this.visible&&this.changeVisible(!1)},n.prototype.destroy=function(){this.off(),this.destroyed=!0},n.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},n}(Lf.Z);const Ac=Zm;var bn=V(659),Jm=function(){function e(n){var t=n.xField,r=n.yField,i=n.adjustNames,o=n.dimValuesMap;this.adjustNames=void 0===i?["x","y"]:i,this.xField=t,this.yField=r,this.dimValuesMap=o}return e.prototype.isAdjust=function(n){return this.adjustNames.indexOf(n)>=0},e.prototype.getAdjustRange=function(n,t,r){var s,l,i=this.yField,a=r.indexOf(t),o=r.length;return!i&&this.isAdjust("y")?(s=0,l=1):o>1?(s=r[0===a?0:a-1],l=r[a===o-1?o-1:a+1],0!==a?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-r[o-2])/2):(s=0===t?0:t-.5,l=0===t?1:t+.5),{pre:s,next:l}},e.prototype.adjustData=function(n,t){var r=this,i=this.getDimValues(t);v.S6(n,function(a,o){v.S6(i,function(s,l){r.adjustDim(l,s,a,o)})})},e.prototype.groupData=function(n,t){return v.S6(n,function(r){void 0===r[t]&&(r[t]=0)}),v.vM(n,t)},e.prototype.adjustDim=function(n,t,r,i){},e.prototype.getDimValues=function(n){var r=this.xField,i=this.yField,a=v.f0({},this.dimValuesMap),o=[];return r&&this.isAdjust("x")&&o.push(r),i&&this.isAdjust("y")&&o.push(i),o.forEach(function(l){a&&a[l]||(a[l]=v.I(n,l).sort(function(c,h){return c-h}))}),!i&&this.isAdjust("y")&&(a.y=[0,1]),a},e}();const ns=Jm;var Pf={},zf=function(e){return Pf[e.toLowerCase()]},rs=function(e,n){if(zf(e))throw new Error("Adjust type '"+e+"' existed.");Pf[e.toLowerCase()]=n},Fc=function(e,n){return(Fc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])})(e,n)};function is(e,n){function t(){this.constructor=e}Fc(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Mr=function(){return Mr=Object.assign||function(n){for(var t,r=1,i=arguments.length;r=0)d=h+this.getIntervalOnlyOffset(i,r);else if(!v.UM(c)&&v.UM(l)&&c>=0)d=h+this.getDodgeOnlyOffset(i,r);else if(!v.UM(l)&&!v.UM(c)&&l>=0&&c>=0)d=h+this.getIntervalAndDodgeOffset(i,r);else{var m=p*o/i,x=s*m;d=(h+f)/2+(.5*(p-i*m-(i-1)*x)+((r+1)*m+r*x)-.5*m-.5*p)}return d},n.prototype.getIntervalOnlyOffset=function(t,r){var i=this,a=i.defaultSize,s=i.xDimensionLegenth,l=i.groupNum,h=i.maxColumnWidth,f=i.minColumnWidth,p=i.columnWidthRatio,d=i.intervalPadding/s,y=(1-(l-1)*d)/l*i.dodgeRatio/(t-1),m=((1-d*(l-1))/l-y*(t-1))/t;return m=v.UM(p)?m:1/l/t*p,v.UM(h)||(m=Math.min(m,h/s)),v.UM(f)||(m=Math.max(m,f/s)),((.5+r)*(m=a?a/s:m)+r*(y=((1-(l-1)*d)/l-t*m)/(t-1))+.5*d)*l-d/2},n.prototype.getDodgeOnlyOffset=function(t,r){var i=this,a=i.defaultSize,s=i.xDimensionLegenth,l=i.groupNum,h=i.maxColumnWidth,f=i.minColumnWidth,p=i.columnWidthRatio,d=i.dodgePadding/s,y=1*i.marginRatio/(l-1),m=((1-y*(l-1))/l-d*(t-1))/t;return m=p?1/l/t*p:m,v.UM(h)||(m=Math.min(m,h/s)),v.UM(f)||(m=Math.max(m,f/s)),((.5+r)*(m=a?a/s:m)+r*d+.5*(y=(1-(m*t+d*(t-1))*l)/(l-1)))*l-y/2},n.prototype.getIntervalAndDodgeOffset=function(t,r){var i=this,s=i.xDimensionLegenth,l=i.groupNum,c=i.intervalPadding/s,h=i.dodgePadding/s;return((.5+r)*(((1-c*(l-1))/l-h*(t-1))/t)+r*h+.5*c)*l-c/2},n.prototype.getDistribution=function(t){var i=this.cacheMap,a=i[t];return a||(a={},v.S6(this.adjustDataArray,function(o,s){var l=v.I(o,t);l.length||l.push(0),v.S6(l,function(c){a[c]||(a[c]=[]),a[c].push(s)})}),i[t]=a),a},n}(ns);const jm=qm;var t1=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return is(n,e),n.prototype.process=function(t){var r=v.d9(t),i=v.xH(r);return this.adjustData(r,i),r},n.prototype.adjustDim=function(t,r,i){var a=this,o=this.groupData(i,t);return v.S6(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),r)})},n.prototype.getAdjustOffset=function(t){var r=t.pre,i=t.next,a=.05*(i-r);return function Km(e,n){return(n-e)*Math.random()+e}(r+a,i-a)},n.prototype.adjustGroup=function(t,r,i,a){var o=this,s=this.getAdjustRange(r,i,a);return v.S6(t,function(l){l[r]=o.getAdjustOffset(s)}),t},n}(ns);const e1=t1;var Ec=v.Ct,n1=function(e){function n(t){var r=e.call(this,t)||this,i=t.adjustNames,o=t.height,s=void 0===o?NaN:o,l=t.size,c=void 0===l?10:l,h=t.reverseOrder,f=void 0!==h&&h;return r.adjustNames=void 0===i?["y"]:i,r.height=s,r.size=c,r.reverseOrder=f,r}return is(n,e),n.prototype.process=function(t){var a=this.reverseOrder,o=this.yField?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},n.prototype.reverse=function(t){return t.slice(0).reverse()},n.prototype.processStack=function(t){var r=this,i=r.xField,a=r.yField,s=r.reverseOrder?this.reverse(t):t,l=new Ec,c=new Ec;return s.map(function(h){return h.map(function(f){var p,d=v.U2(f,i,0),y=v.U2(f,[a]),m=d.toString();if(y=v.kJ(y)?y[1]:y,!v.UM(y)){var x=y>=0?l:c;x.has(m)||x.set(m,0);var M=x.get(m),C=y+M;return x.set(m,C),Mr(Mr({},f),((p={})[a]=[M,C],p))}return f})})},n.prototype.processOneDimStack=function(t){var r=this,i=this,a=i.xField,o=i.height,c=i.reverseOrder?this.reverse(t):t,h=new Ec;return c.map(function(f){return f.map(function(p){var d,m=p[a],x=2*r.size/o;h.has(m)||h.set(m,x/2);var M=h.get(m);return h.set(m,M+x),Mr(Mr({},p),((d={}).y=M,d))})})},n}(ns);const r1=n1;var i1=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return is(n,e),n.prototype.process=function(t){var r=v.xH(t),a=this.xField,o=this.yField,s=this.getXValuesMaxMap(r),l=Math.max.apply(Math,Object.keys(s).map(function(c){return s[c]}));return v.UI(t,function(c){return v.UI(c,function(h){var f,p,d=h[o],y=h[a];if(v.kJ(d)){var m=(l-s[y])/2;return Mr(Mr({},h),((f={})[o]=v.UI(d,function(M){return m+M}),f))}var x=(l-d)/2;return Mr(Mr({},h),((p={})[o]=[x,d+x],p))})})},n.prototype.getXValuesMaxMap=function(t){var r=this,a=this.xField,o=this.yField,s=v.vM(t,function(l){return l[a]});return v.Q8(s,function(l){return r.getDimMaxValue(l,o)})},n.prototype.getDimMaxValue=function(t,r){var i=v.UI(t,function(o){return v.U2(o,r,[])}),a=v.xH(i);return Math.max.apply(Math,a)},n}(ns);const a1=i1;rs("Dodge",jm),rs("Jitter",e1),rs("Stack",r1),rs("Symmetric",a1);var Rf=function(e,n){return(0,v.HD)(n)?n:e.invert(e.scale(n))},o1=function(){function e(n){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(n)}return e.prototype.mapping=function(){for(var n=this,t=[],r=0;r1?1:Number(n),r=e.length-1,i=Math.floor(r*t),a=r*t-i,o=e[i],s=i===r?o:e[i+1];return Nf([kc(o,s,a,0),kc(o,s,a,1),kc(o,s,a,2)])}(t,r)}},toRGB:(0,v.HP)(Uf),toCSSGradient:function(e){if(function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)}(e)){var n,t=void 0;if("l"===e[0])t=(r=l1.exec(e))[2],n="linear-gradient("+(+r[1]+90)+"deg, ";else if("r"===e[0]){var r;n="radial-gradient(",t=(r=c1.exec(e))[4]}var a=t.match(u1);return(0,v.S6)(a,function(o,s){var l=o.split(":");n+=l[1]+" "+100*l[0]+"%",s!==a.length-1&&(n+=", ")}),n+=")"}return e}};var g1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="color",r.names=["color"],(0,v.HD)(r.values)&&(r.linear=!0),r.gradient=ei.gradient(r.values),r}return(0,g.ZT)(n,e),n.prototype.getLinearValue=function(t){return this.gradient(t)},n}(Xa);const y1=g1;var m1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="opacity",r.names=["opacity"],r}return(0,g.ZT)(n,e),n}(Xa);const x1=m1;var M1=function(e){function n(t){var r=e.call(this,t)||this;return r.names=["x","y"],r.type="position",r}return(0,g.ZT)(n,e),n.prototype.mapping=function(t,r){var i=this.scales,a=i[0],o=i[1];return(0,v.UM)(t)||(0,v.UM)(r)?[]:[(0,v.kJ)(t)?t.map(function(s){return a.scale(s)}):a.scale(t),(0,v.kJ)(r)?r.map(function(s){return o.scale(s)}):o.scale(r)]},n}(Xa);const C1=M1;var w1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="shape",r.names=["shape"],r}return(0,g.ZT)(n,e),n.prototype.getLinearValue=function(t){var r=Math.round((this.values.length-1)*t);return this.values[r]},n}(Xa);const S1=w1;var _1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="size",r.names=["size"],r}return(0,g.ZT)(n,e),n}(Xa);const b1=_1;var Yf={};function Cr(e,n){Yf[e]=n}var A1=function(){function e(n){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=n,this.initCfg(),this.init()}return e.prototype.translate=function(n){return n},e.prototype.change=function(n){(0,v.f0)(this.__cfg__,n),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var n=this;return(0,v.UI)(this.ticks,function(t,r){return(0,v.Kn)(t)?t:{text:n.getText(t,r),tickValue:t,value:n.scale(t)}})},e.prototype.getText=function(n,t){var r=this.formatter,i=r?r(n,t):n;return(0,v.UM)(i)||!(0,v.mf)(i.toString)?"":i.toString()},e.prototype.getConfig=function(n){return this.__cfg__[n]},e.prototype.init=function(){(0,v.f0)(this,this.__cfg__),this.setDomain(),(0,v.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var n=this.tickMethod,t=[];if((0,v.HD)(n)){var r=function T1(e){return Yf[e]}(n);if(!r)throw new Error("There is no method to to calculate ticks!");t=r(this)}else(0,v.mf)(n)&&(t=n(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(n,t,r){return(0,v.hj)(n)?(n-t)/(r-t):NaN},e.prototype.calcValue=function(n,t,r){return t+n*(r-t)},e}();const Dc=A1;var F1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return(0,g.ZT)(n,e),n.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[a]},n.prototype.getText=function(t){for(var r=[],i=1;i1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},n}(Dc);const ss=F1;var Hf=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ni="\\d\\d?",ri="\\d\\d",$a="[^\\s]+",Gf=/\[([^]*?)\]/gm;function Zf(e,n){for(var t=[],r=0,i=e.length;r-1?i:null}};function ii(e){for(var n=[],t=1;t3?0:(e-e%10!=10?1:0)*e%10]}},ls=ii({},Lc),Jf=function(e){return ls=ii(ls,e)},Qf=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Rn=function(e,n){for(void 0===n&&(n=2),e=String(e);e.length0?"-":"+")+Rn(100*Math.floor(Math.abs(n)/60)+Math.abs(n)%60,4)},Z:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+Rn(Math.floor(Math.abs(n)/60),2)+":"+Rn(Math.abs(n)%60,2)}},qf=function(e){return+e-1},jf=[null,ni],Kf=[null,$a],tv=["isPm",$a,function(e,n){var t=e.toLowerCase();return t===n.amPm[0]?0:t===n.amPm[1]?1:null}],ev=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var n=(e+"").match(/([+-]|\d\d)/gi);if(n){var t=60*+n[1]+parseInt(n[2],10);return"+"===n[0]?t:-t}return 0}],O1={D:["day",ni],DD:["day",ri],Do:["day",ni+$a,function(e){return parseInt(e,10)}],M:["month",ni,qf],MM:["month",ri,qf],YY:["year",ri,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",ni,void 0,"isPm"],hh:["hour",ri,void 0,"isPm"],H:["hour",ni],HH:["hour",ri],m:["minute",ni],mm:["minute",ri],s:["second",ni],ss:["second",ri],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",ri,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:jf,dd:jf,ddd:Kf,dddd:Kf,MMM:["month",$a,Wf("monthNamesShort")],MMMM:["month",$a,Wf("monthNames")],a:tv,A:tv,ZZ:ev,Z:ev},cs={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"},nv=function(e){return ii(cs,e)},rv=function(e,n,t){if(void 0===n&&(n=cs.default),void 0===t&&(t={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var r=[];n=(n=cs[n]||n).replace(Gf,function(a,o){return r.push(o),"@@@"});var i=ii(ii({},ls),t);return(n=n.replace(Hf,function(a){return L1[a](e,i)})).replace(/@@@/g,function(){return r.shift()})};function iv(e,n,t){if(void 0===t&&(t={}),"string"!=typeof n)throw new Error("Invalid format in fecha parse");if(n=cs[n]||n,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=n.replace(Gf,function(b,E){return o.push(Qf(E)),"@@@"}),l={},c={};s=Qf(s).replace(Hf,function(b){var E=O1[b],W=E[0],tt=E[1],it=E[3];if(l[W])throw new Error("Invalid format. "+W+" specified twice in format");return l[W]=!0,it&&(c[it]=!0),a.push(E),"("+tt+")"}),Object.keys(c).forEach(function(b){if(!l[b])throw new Error("Invalid format. "+b+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var M,h=e.match(new RegExp(s,"i"));if(!h)return null;for(var f=ii(ii({},ls),t),p=1;p11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return M}const av={format:rv,parse:iv,defaultI18n:Lc,setGlobalDateI18n:Jf,setGlobalDateMasks:nv};function sv(e,n){return(Vt.format||av.format)(e,n)}function us(e){return(0,v.HD)(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),(0,v.J_)(e)&&(e=e.getTime()),e}var cr=1e3,_i=6e4,bi=60*_i,Rr=24*bi,Ja=31*Rr,lv=365*Rr,Qa=[["HH:mm:ss",cr],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",_i],["HH:mm",10*_i],["HH:mm",30*_i],["HH",bi],["HH",6*bi],["HH",12*bi],["YYYY-MM-DD",Rr],["YYYY-MM-DD",4*Rr],["YYYY-WW",7*Rr],["YYYY-MM",Ja],["YYYY-MM",4*Ja],["YYYY-MM",6*Ja],["YYYY",380*Rr]];var R1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeCat",t}return(0,g.ZT)(n,e),n.prototype.translate=function(t){t=us(t);var r=this.values.indexOf(t);return-1===r&&(r=(0,v.hj)(t)&&t-1){var a=this.values[i],o=this.formatter;return o?o(a,r):sv(a,this.mask)}return t},n.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},n.prototype.setDomain=function(){var t=this.values;(0,v.S6)(t,function(r,i){t[i]=us(r)}),t.sort(function(r,i){return r-i}),e.prototype.setDomain.call(this)},n}(ss);const N1=R1;var V1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return(0,g.ZT)(n,e),n.prototype.scale=function(t){if((0,v.UM)(t))return NaN;var r=this.rangeMin(),i=this.rangeMax();return this.max===this.min?r:r+this.getScalePercent(t)*(i-r)},n.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,r=(0,v.YM)(t),i=(0,v.Z$)(t);rthis.max&&(this.max=i),(0,v.UM)(this.minLimit)||(this.min=r),(0,v.UM)(this.maxLimit)||(this.max=i)},n.prototype.setDomain=function(){var t=(0,v.rx)(this.values),r=t.min,i=t.max;(0,v.UM)(this.min)&&(this.min=r),(0,v.UM)(this.max)&&(this.max=i),this.min>this.max&&(this.min=r,this.max=i)},n.prototype.calculateTicks=function(){var t=this,r=e.prototype.calculateTicks.call(this);return this.nice||(r=(0,v.hX)(r,function(i){return i>=t.min&&i<=t.max})),r},n.prototype.getScalePercent=function(t){var i=this.min;return(t-i)/(this.max-i)},n.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},n}(Dc);const hs=V1;var U1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return(0,g.ZT)(n,e),n.prototype.invert=function(t){var r=this.getInvertPercent(t);return this.min+r*(this.max-this.min)},n.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},n}(hs);const fs=U1;function ai(e,n){var t=Math.E;return n>=0?Math.pow(t,Math.log(n)/e):-1*Math.pow(t,Math.log(-n)/e)}function nr(e,n){return 1===e?1:Math.log(n)/Math.log(e)}function cv(e,n,t){(0,v.UM)(t)&&(t=Math.max.apply(null,e));var r=t;return(0,v.S6)(e,function(i){i>0&&i1&&(r=1),r}var Y1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t}return(0,g.ZT)(n,e),n.prototype.invert=function(t){var s,r=this.base,i=nr(r,this.max),a=this.rangeMin(),o=this.rangeMax()-a,l=this.positiveMin;if(l){if(0===t)return 0;var c=1/(i-(s=nr(r,l/r)))*o;if(t=0?1:-1;return Math.pow(s,i)*l},n.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},n.prototype.getScalePercent=function(t){var r=this.max,i=this.min;if(r===i)return 0;var a=this.exponent;return(ai(a,t)-ai(a,i))/(ai(a,r)-ai(a,i))},n}(hs);const Z1=G1;var W1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="time",t}return(0,g.ZT)(n,e),n.prototype.getText=function(t,r){var i=this.translate(t),a=this.formatter;return a?a(i,r):sv(i,this.mask)},n.prototype.scale=function(t){var r=t;return((0,v.HD)(r)||(0,v.J_)(r))&&(r=this.translate(r)),e.prototype.scale.call(this,r)},n.prototype.translate=function(t){return us(t)},n.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},n.prototype.setDomain=function(){var t=this.values,r=this.getConfig("min"),i=this.getConfig("max");if((!(0,v.UM)(r)||!(0,v.hj)(r))&&(this.min=this.translate(this.min)),(!(0,v.UM)(i)||!(0,v.hj)(i))&&(this.max=this.translate(this.max)),t&&t.length){var a=[],o=1/0,s=o,l=0;(0,v.S6)(t,function(c){var h=us(c);if(isNaN(h))throw new TypeError("Invalid Time: "+c+" in time scale!");o>h?(s=o,o=h):s>h&&(s=h),l1&&(this.minTickInterval=s-o),(0,v.UM)(r)&&(this.min=o),(0,v.UM)(i)&&(this.max=l)}},n}(fs);const X1=W1;var $1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantize",t}return(0,g.ZT)(n,e),n.prototype.invert=function(t){var r=this.ticks,i=r.length,a=this.getInvertPercent(t),o=Math.floor(a*(i-1));if(o>=i-1)return(0,v.Z$)(r);if(o<0)return(0,v.YM)(r);var s=r[o],c=o/(i-1);return s+(a-c)/((o+1)/(i-1)-c)*(r[o+1]-s)},n.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},n.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,v.Z$)(t)!==this.max&&t.push(this.max),(0,v.YM)(t)!==this.min&&t.unshift(this.min)),t},n.prototype.getScalePercent=function(t){var r=this.ticks;if(t<(0,v.YM)(r))return 0;if(t>(0,v.Z$)(r))return 1;var i=0;return(0,v.S6)(r,function(a,o){if(!(t>=a))return!1;i=o}),i/(r.length-1)},n}(hs);const hv=$1;var J1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantile",t}return(0,g.ZT)(n,e),n.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},n}(hv);const Q1=J1;var fv={};function Oc(e){return fv[e]}function wr(e,n){if(Oc(e))throw new Error("type '"+e+"' existed.");fv[e]=n}var q1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return(0,g.ZT)(n,e),n.prototype.calculateTicks=function(){return this.values},n.prototype.scale=function(t){return this.values[0]!==t&&(0,v.hj)(t)?t:this.range[0]},n.prototype.invert=function(t){var r=this.range;return tr[1]?NaN:this.values[0]},n}(Dc);const j1=q1;function vv(e){var n=e.values,t=e.tickInterval,r=e.tickCount,i=e.showLast;if((0,v.hj)(t)){var a=(0,v.hX)(n,function(y,m){return m%t==0}),o=(0,v.Z$)(n);return i&&(0,v.Z$)(a)!==o&&a.push(o),a}var s=n.length,l=e.min,c=e.max;if((0,v.UM)(l)&&(l=0),(0,v.UM)(c)&&(c=n.length-1),!(0,v.hj)(r)||r>=s)return n.slice(l,c+1);if(r<=0||c<=0)return[];for(var h=1===r?s:Math.floor(s/(r-1)),f=[],p=l,d=0;d=c);d++)p=Math.min(l+d*h,c),f.push(d===r-1&&i?n[c]:n[p]);return f}var pv=Math.sqrt(50),dv=Math.sqrt(10),gv=Math.sqrt(2),tx=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(n){return n?(this._domain=Array.from(n,Number),this):this._domain.slice()},e.prototype.nice=function(n){var t,r;void 0===n&&(n=5);var c,i=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o];return l0?c=vs(s=Math.floor(s/c)*c,l=Math.ceil(l/c)*c,n):c<0&&(c=vs(s=Math.ceil(s*c)/c,l=Math.floor(l*c)/c,n)),c>0?(i[a]=Math.floor(s/c)*c,i[o]=Math.ceil(l/c)*c,this.domain(i)):c<0&&(i[a]=Math.ceil(s*c)/c,i[o]=Math.floor(l*c)/c,this.domain(i)),this},e.prototype.ticks=function(n){return void 0===n&&(n=5),function ex(e,n,t){var r,a,o,s,i=-1;if(t=+t,(e=+e)===(n=+n)&&t>0)return[e];if((r=n0)for(e=Math.ceil(e/s),n=Math.floor(n/s),o=new Array(a=Math.ceil(n-e+1));++i=0?(a>=pv?10:a>=dv?5:a>=gv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=pv?10:a>=dv?5:a>=gv?2:1)}function yv(e,n,t){return("ceil"===t?Math.ceil(e/n):"floor"===t?Math.floor(e/n):Math.round(e/n))*n}function zc(e,n,t){var r=yv(e,t,"floor"),i=yv(n,t,"ceil");r=(0,v.ri)(r,t),i=(0,v.ri)(i,t);for(var a=[],o=Math.max((i-r)/(Math.pow(2,12)-1),t),s=r;s<=i;s+=o){var l=(0,v.ri)(s,o);a.push(l)}return{min:r,max:i,ticks:a}}function Bc(e,n,t){var r,i=e.minLimit,a=e.maxLimit,o=e.min,s=e.max,l=e.tickCount,c=void 0===l?5:l,h=(0,v.UM)(i)?(0,v.UM)(n)?o:n:i,f=(0,v.UM)(a)?(0,v.UM)(t)?s:t:a;if(h>f&&(f=(r=[h,f])[0],h=r[1]),c<=2)return[h,f];for(var p=(f-h)/(c-1),d=[],y=0;y=0&&(l=1),1-s/(o-1)-t+l}function sx(e,n,t){var r=(0,v.dp)(n);return 1-(0,v.cq)(n,e)/(r-1)-t+1}function lx(e,n,t,r,i,a){var o=(e-1)/(a-i),s=(n-1)/(Math.max(a,r)-Math.min(t,i));return 2-Math.max(o/s,s/o)}function cx(e,n){return e>=n?2-(e-1)/(n-1):1}function ux(e,n,t,r){var i=n-e;return 1-.5*(Math.pow(n-r,2)+Math.pow(e-t,2))/Math.pow(.1*i,2)}function hx(e,n,t){var r=n-e;return t>r?1-Math.pow((t-r)/2,2)/Math.pow(.1*r,2):1}function xv(e,n,t){if(void 0===t&&(t=5),e===n)return{max:n,min:e,ticks:[e]};var r=t<0?0:Math.round(t);if(0===r)return{max:n,min:e,ticks:[]};var s=(n-e)/r,l=Math.pow(10,Math.floor(Math.log10(s))),c=l;2*l-s<1.5*(s-c)&&5*l-s<2.75*(s-(c=2*l))&&10*l-s<1.5*(s-(c=5*l))&&(c=10*l);for(var h=Math.ceil(n/c),f=Math.floor(e/c),p=Math.max(h*c,n),d=Math.min(f*c,e),y=Math.floor((p-d)/c)+1,m=new Array(y),x=0;x1e148){var l=(n-e)/(s=t||5);return{min:e,max:n,ticks:Array(s).fill(null).map(function(Fe,He){return Ti(e+l*He)})}}for(var c={score:-2,lmin:0,lmax:0,lstep:0},h=1;h<1/0;){for(var f=0;fc.score&&(!r||it<=e&&wt>=n)&&(c.lmin=it,c.lmax=wt,c.lstep=yt,c.score=ze)}M+=1}y+=1}}h+=1}var Xt=Ti(c.lmax),fe=Ti(c.lmin),Se=Ti(c.lstep),ge=Math.floor(function ax(e){return Math.round(1e12*e)/1e12}((Xt-fe)/Se))+1,Me=new Array(ge);for(Me[0]=Ti(fe),f=1;f>>1;e(n[s])>t?o=s:a=s+1}return a}}(function(o){return o[1]})(Qa,r)-1,a=Qa[i];return i<0?a=Qa[0]:i>=Qa.length&&(a=(0,v.Z$)(Qa)),a}(n,t,a)[1])/a;s>1&&(i*=Math.ceil(s)),r&&ilv)for(var l=ps(t),c=Math.ceil(a/lv),h=s;h<=l+c;h+=c)o.push(wx(h));else if(a>Ja){var f=Math.ceil(a/Ja),p=Rc(n),d=function Sx(e,n){var t=ps(e),r=ps(n),i=Rc(e);return 12*(r-t)+(Rc(n)-i)%12}(n,t);for(h=0;h<=d+f;h+=f)o.push(_x(s,h+p))}else if(a>Rr){var m=(y=new Date(n)).getFullYear(),x=y.getMonth(),M=y.getDate(),C=Math.ceil(a/Rr),S=function bx(e,n){return Math.ceil((n-e)/Rr)}(n,t);for(h=0;hbi){m=(y=new Date(n)).getFullYear(),x=y.getMonth(),C=y.getDate();var y,b=y.getHours(),E=Math.ceil(a/bi),W=function Tx(e,n){return Math.ceil((n-e)/bi)}(n,t);for(h=0;h<=W+E;h+=E)o.push(new Date(m,x,C,b+h).getTime())}else if(a>_i){var tt=function Ax(e,n){return Math.ceil((n-e)/6e4)}(n,t),it=Math.ceil(a/_i);for(h=0;h<=tt+it;h+=it)o.push(n+h*_i)}else{var wt=a;wt=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o}),Cr("log",function dx(e){var o,n=e.base,t=e.tickCount,r=e.min,i=e.max,a=e.values,s=nr(n,i);if(r>0)o=Math.floor(nr(n,r));else{var l=cv(a,n,i);o=Math.floor(nr(n,l))}for(var h=Math.ceil((s-o)/t),f=[],p=o;p=0?1:-1;return Math.pow(o,n)*s})}),Cr("quantile",function mx(e){var n=e.tickCount,t=e.values;if(!t||!t.length)return[];for(var r=t.slice().sort(function(s,l){return s-l}),i=[],a=0;a=0&&this.radius<=1&&(r*=this.radius),this.d=Math.floor(r*(1-this.innerRadius)/t),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*r,end:this.innerRadius*r+.99*this.d}},n.prototype.convertPoint=function(t){var r,i=t.x,a=t.y;this.isTransposed&&(i=(r=[a,i])[0],a=r[1]);var o=this.convertDim(i,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},n.prototype.invertPoint=function(t){var r,i=this.d+this.y.start,a=Le.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=an.Dg(a,[1,0],!0),s=o*this.a;Le.kE(a)this.width/r?{x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*(s=this.width/r)*i}:{x:this.center.x-(.5-a)*(s=this.height/i)*r,y:this.center.y-(.5-o)*this.height},this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},n.prototype.getRadius=function(){return this.polarRadius},n.prototype.convertPoint=function(t){var r,i=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(a=(r=[o,a])[0],o=r[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:i.x+Math.cos(a)*o,y:i.y+Math.sin(a)*o}},n.prototype.invertPoint=function(t){var r,i=this.getCenter(),a=[t.x-i.x,t.y-i.y],s=this.startAngle,l=this.endAngle;this.isReflect("x")&&(s=(r=[l,s])[0],l=r[1]);var c=[1,0,0,0,1,0,0,0,1];an.zu(c,c,s);var h=[1,0,0];ja(h,h,c);var p=an.Dg([h[0],h[1]],a,l0?y:-y;var m=this.invertDim(d,"y"),x={x:0,y:0};return x.x=this.isTransposed?m:y,x.y=this.isTransposed?y:m,x},n.prototype.getCenter=function(){return this.circleCenter},n.prototype.getOneBox=function(){var t=this.startAngle,r=this.endAngle;if(Math.abs(r-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var i=[0,Math.cos(t),Math.cos(r)],a=[0,Math.sin(t),Math.sin(r)],o=Math.min(t,r);o=0;r--)e.removeChild(n[r])}function Ka(e){var n=e.start,t=e.end,r=Math.min(n.x,t.x),i=Math.min(n.y,t.y),a=Math.max(n.x,t.x),o=Math.max(n.y,t.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function to(e,n,t,r){var i=e+t,a=n+r;return{x:e,y:n,width:t,height:r,minX:e,minY:n,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function Fi(e,n,t){return(1-t)*e+n*t}function ca(e,n,t){return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}}var ms=function(e,n,t){return void 0===t&&(t=Math.pow(Number.EPSILON,.5)),[e,n].includes(1/0)?Math.abs(e)===Math.abs(n):Math.abs(e-n)0?(0,v.S6)(l,function(c){if(c.get("visible")){if(c.isGroup()&&0===c.get("children").length)return!0;var h=Fv(c),f=c.applyToMatrix([h.minX,h.minY,1]),p=c.applyToMatrix([h.minX,h.maxY,1]),d=c.applyToMatrix([h.maxX,h.minY,1]),y=c.applyToMatrix([h.maxX,h.maxY,1]),m=Math.min(f[0],p[0],d[0],y[0]),x=Math.max(f[0],p[0],d[0],y[0]),M=Math.min(f[1],p[1],d[1],y[1]),C=Math.max(f[1],p[1],d[1],y[1]);ma&&(a=x),Ms&&(s=C)}}):(i=0,a=0,o=0,s=0),r=to(i,o,a-i,s-o)}else r=e.getBBox();return t?function Gx(e,n){var t=Math.max(e.minX,n.minX),r=Math.max(e.minY,n.minY);return to(t,r,Math.min(e.maxX,n.maxX)-t,Math.min(e.maxY,n.maxY)-r)}(r,t):r}function Nn(e){return e+"px"}function Ev(e,n,t,r){var i=function Hx(e,n){var t=n.x-e.x,r=n.y-e.y;return Math.sqrt(t*t+r*r)}(e,n),a=r/i,o=0;return"start"===t?o=0-a:"end"===t&&(o=1+a),{x:Fi(e.x,n.x,o),y:Fi(e.y,n.y,o)}}var Wx={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},Xx=function(e){function n(t){var r=e.call(this,t)||this;return r.initCfg(),r}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},n.prototype.clear=function(){},n.prototype.update=function(t){var r=this,i=this.get("defaultCfg")||{};(0,v.S6)(t,function(a,o){var l=a;r.get(o)!==a&&((0,v.Kn)(a)&&i[o]&&(l=(0,v.b$)({},i[o],a)),r.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},n.prototype.updateInner=function(t){},n.prototype.afterUpdate=function(t){(0,v.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,v.wH)(t,"capture")&&this.setCapture(t.capture)},n.prototype.getLayoutBBox=function(){return this.getBBox()},n.prototype.getLocationType=function(){return this.get("locationType")},n.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},n.prototype.setOffset=function(t,r){this.update({offsetX:t,offsetY:r})},n.prototype.setLocation=function(t){var r=(0,g.pi)({},t);this.update(r)},n.prototype.getLocation=function(){var t=this,r={},i=this.get("locationType");return(0,v.S6)(Wx[i],function(o){r[o]=t.get(o)}),r},n.prototype.isList=function(){return!1},n.prototype.isSlider=function(){return!1},n.prototype.init=function(){},n.prototype.initCfg=function(){var t=this,r=this.get("defaultCfg");(0,v.S6)(r,function(i,a){var o=t.get(a);if((0,v.Kn)(o)){var s=(0,v.b$)({},i,o);t.set(a,s)}})},n}(bn.Base);const kv=Xx;var Ei="update_status",$x=["visible","tip","delegateObject"],Jx=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Qx=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},n.prototype.remove=function(){this.clear(),this.get("group").remove()},n.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},n.prototype.getChildComponentById=function(t){var r=this.getElementById(t);return r&&r.get("component")},n.prototype.getElementById=function(t){return this.get("shapesMap")[t]},n.prototype.getElementByLocalId=function(t){var r=this.getElementId(t);return this.getElementById(r)},n.prototype.getElementsByName=function(t){var r=[];return(0,v.S6)(this.get("shapesMap"),function(i){i.get("name")===t&&r.push(i)}),r},n.prototype.getContainer=function(){return this.get("container")},n.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},n.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var r=this.get("group");this.updateElements(t,r),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},n.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},n.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},n.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},n.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},n.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},n.prototype.getLayoutBBox=function(){var t=this.get("group"),r=this.getInnerLayoutBBox(),i=t.getTotalMatrix();return i&&(r=function Vx(e,n){var t=gs(e,[n.minX,n.minY]),r=gs(e,[n.maxX,n.minY]),i=gs(e,[n.minX,n.maxY]),a=gs(e,[n.maxX,n.maxY]),o=Math.min(t[0],r[0],i[0],a[0]),s=Math.max(t[0],r[0],i[0],a[0]),l=Math.min(t[1],r[1],i[1],a[1]),c=Math.max(t[1],r[1],i[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:c,width:s-o,height:c-l}}(i,r)),r},n.prototype.on=function(t,r,i){return this.get("group").on(t,r,i),this},n.prototype.off=function(t,r){var i=this.get("group");return i&&i.off(t,r),this},n.prototype.emit=function(t,r){this.get("group").emit(t,r)},n.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},n.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},n.prototype.delegateEmit=function(t,r){var i=this.get("group");r.target=i,i.emit(t,r),bv(i,t,r)},n.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},n.prototype.applyOffset=function(){var t=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:r})},n.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},n.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Fv(t)),t},n.prototype.addGroup=function(t,r){this.appendDelegateObject(t,r);var i=t.addGroup(r);return this.get("isRegister")&&this.registerElement(i),i},n.prototype.addShape=function(t,r){this.appendDelegateObject(t,r);var i=t.addShape(r);return this.get("isRegister")&&this.registerElement(i),i},n.prototype.addComponent=function(t,r){var i=r.id,a=r.component,o=(0,g._T)(r,["id","component"]),s=new a((0,g.pi)((0,g.pi)({},o),{id:i,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},n.prototype.initEvent=function(){},n.prototype.removeEvent=function(){this.get("group").off()},n.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},n.prototype.registerElement=function(t){var r=t.get("id");this.get("shapesMap")[r]=t},n.prototype.unregisterElement=function(t){var r=t.get("id");delete this.get("shapesMap")[r]},n.prototype.moveElementTo=function(t,r){var i=Vc(r);t.attr("matrix",i)},n.prototype.addAnimation=function(t,r,i){var a=r.attr("opacity");(0,v.UM)(a)&&(a=1),r.attr("opacity",0),r.animate({opacity:a},i)},n.prototype.removeAnimation=function(t,r,i){r.animate({opacity:0},i)},n.prototype.updateAnimation=function(t,r,i,a){r.animate(i,a)},n.prototype.updateElements=function(t,r){var l,i=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,v.S6)(s,function(c){var h=c.get("id"),f=i.getElementById(h),p=c.get("name");if(f)if(c.get("isComponent")){var d=c.get("component"),y=f.get("component"),m=(0,v.ei)(d.cfg,(0,v.e5)((0,v.XP)(d.cfg),Jx));y.update(m),f.set(Ei,"update")}else{var x=i.getReplaceAttrs(f,c);a&&o.update?i.updateAnimation(p,f,x,o.update):f.attr(x),c.isGroup()&&i.updateElements(c,f),(0,v.S6)($x,function(b){f.set(b,c.get(b))}),function Zx(e,n){if(e.getClip()||n.getClip()){var t=n.getClip();if(!t)return void e.setClip(null);var r={type:t.get("type"),attrs:t.attr()};e.setClip(r)}}(f,c),l=f,f.set(Ei,"update")}else{r.add(c);var M=r.getChildren();if(M.splice(M.length-1,1),l){var C=M.indexOf(l);M.splice(C+1,0,c)}else M.unshift(c);if(i.registerElement(c),c.set(Ei,"add"),c.get("isComponent")?(d=c.get("component")).set("container",r):c.isGroup()&&i.registerNewGroup(c),l=c,a){var S=i.get("isInit")?o.appear:o.enter;S&&i.addAnimation(p,c,S)}}})},n.prototype.clearUpdateStatus=function(t){var r=t.getChildren();(0,v.S6)(r,function(i){i.set(Ei,null)})},n.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},n.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},n.prototype.appendDelegateObject=function(t,r){var i=t.get("delegateObject");r.delegateObject||(r.delegateObject={}),(0,v.CD)(r.delegateObject,i)},n.prototype.getReplaceAttrs=function(t,r){var i=t.attr(),a=r.attr();return(0,v.S6)(i,function(o,s){void 0===a[s]&&(a[s]=void 0)}),a},n.prototype.registerNewGroup=function(t){var r=this,i=t.getChildren();(0,v.S6)(i,function(a){r.registerElement(a),a.set(Ei,"add"),a.isGroup()&&r.registerNewGroup(a)})},n.prototype.deleteElements=function(){var t=this,r=this.get("shapesMap"),i=[];(0,v.S6)(r,function(s,l){!s.get(Ei)||s.destroyed?i.push([l,s]):s.set(Ei,null)});var a=this.get("animate"),o=this.get("animateOption");(0,v.S6)(i,function(s){var l=s[0],c=s[1];if(!c.destroyed){var h=c.get("name");if(a&&o.leave){var f=(0,v.CD)({callback:function(){t.removeElement(c)}},o.leave);t.removeAnimation(h,c,f)}else t.removeElement(c)}delete r[l]})},n.prototype.removeElement=function(t){if(t.get("isGroup")){var r=t.get("component");r&&r.destroy()}t.remove()},n}(kv);const An=Qx;var Hc="\u2026";function ki(e,n){return e.charCodeAt(n)>0&&e.charCodeAt(n)<128?1:2}var Kx="\u2026",t2=2,e2=400;function Gc(e){if(e.length>e2)return function n2(e){for(var n=e.map(function(l){var c=l.attr("text");return(0,v.UM)(c)?"":""+c}),t=0,r=0,i=0;i=19968&&s<=40869?2:1}a>t&&(t=a,r=i)}return e[r].getBBox().width}(e);var n=0;return(0,v.S6)(e,function(t){var i=t.getBBox().width;n=0?function jx(e,n,t){void 0===t&&(t="tail");var r=e.length,i="";if("tail"===t){for(var a=0,o=0;a1||a<0)&&(a=1),{x:Fi(t.x,r.x,a),y:Fi(t.y,r.y,a)}},n.prototype.renderLabel=function(t){var r=this.get("text"),i=this.get("start"),a=this.get("end"),s=r.content,l=r.style,c=r.offsetX,h=r.offsetY,f=r.autoRotate,p=r.maxLength,d=r.autoEllipsis,y=r.ellipsisPosition,m=r.background,x=r.isVertical,M=void 0!==x&&x,C=this.getLabelPoint(i,a,r.position),S=C.x+c,b=C.y+h,E={id:this.getElementId("line-text"),name:"annotation-line-text",x:S,y:b,content:s,style:l,maxLength:p,autoEllipsis:d,ellipsisPosition:y,background:m,isVertical:M};if(f){var W=[a.x-i.x,a.y-i.y];E.rotate=Math.atan2(W[1],W[0])}xs(t,E)},n}(An);const a2=i2;var o2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Ze.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Ze.fontFamily}}})},n.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},n.prototype.renderInner=function(t){var r=this.getLocation(),i=r.x,a=r.y,o=this.get("content"),s=this.get("style");xs(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:i,y:a,content:o,style:s,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},n.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var r=this.getLocation(),i=r.x,a=r.y,o=this.get("rotate");Uc(t,i,a),Av(t,o,i,a)}},n}(An);const s2=o2;var l2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},n.prototype.renderInner=function(t){this.renderArc(t)},n.prototype.getArcPath=function(){var t=this.getLocation(),r=t.center,i=t.radius,a=t.startAngle,o=t.endAngle,s=ca(r,i,a),l=ca(r,i,o),c=o-a>Math.PI?1:0,h=[["M",s.x,s.y]];if(o-a==2*Math.PI){var f=ca(r,i,a+Math.PI);h.push(["A",i,i,0,c,1,f.x,f.y]),h.push(["A",i,i,0,c,1,l.x,l.y])}else h.push(["A",i,i,0,c,1,l.x,l.y]);return h},n.prototype.renderArc=function(t){var r=this.getArcPath(),i=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,g.pi)({path:r},i)})},n}(An);const c2=l2;var u2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Ze.regionColor,opacity:.4}}})},n.prototype.renderInner=function(t){this.renderRegion(t)},n.prototype.renderRegion=function(t){var r=this.get("start"),i=this.get("end"),a=this.get("style"),o=Ka({start:r,end:i});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.pi)({x:o.x,y:o.y,width:o.width,height:o.height},a)})},n}(An);const h2=u2;var f2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},n.prototype.renderInner=function(t){this.renderImage(t)},n.prototype.getImageAttrs=function(){var t=this.get("start"),r=this.get("end"),i=this.get("style"),a=Ka({start:t,end:r}),o=this.get("src");return(0,g.pi)({x:a.x,y:a.y,img:o,width:a.width,height:a.height},i)},n.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},n}(An);const v2=f2;var p2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Ze.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Ze.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Ze.fontFamily}}}})},n.prototype.renderInner=function(t){(0,v.U2)(this.get("line"),"display")&&this.renderLine(t),(0,v.U2)(this.get("text"),"display")&&this.renderText(t),(0,v.U2)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},n.prototype.renderPoint=function(t){var r=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:r})},n.prototype.renderLine=function(t){var r=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:r})},n.prototype.renderText=function(t){var r=this.getShapeAttrs().text,i=r.x,a=r.y,o=r.text,s=(0,g._T)(r,["x","y","text"]),l=this.get("text"),c=l.background,h=l.maxLength,f=l.autoEllipsis,p=l.isVertival,d=l.ellipsisPosition;xs(t,{x:i,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:c,maxLength:h,autoEllipsis:f,isVertival:p,ellipsisPosition:d})},n.prototype.autoAdjust=function(t){var r=this.get("direction"),i=this.get("x"),a=this.get("y"),o=(0,v.U2)(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),c=l.minX,h=l.maxX,f=l.minY,p=l.maxY,d=t.findById(this.getElementId("text-group")),y=t.findById(this.getElementId("text")),m=t.findById(this.getElementId("line"));if(s&&d){var x=d.attr("x"),M=d.attr("y"),C=y.getCanvasBBox(),S=C.width,b=C.height,E=0,W=0;if(i+c<=s.minX)if("leftward"===r)E=1;else{var tt=s.minX-(i+c);x=d.attr("x")+tt}else i+h>=s.maxX&&("rightward"===r?E=-1:(tt=i+h-s.maxX,x=d.attr("x")-tt));E&&(m&&m.attr("path",[["M",0,0],["L",o*E,0]]),x=(o+2+S)*E),a+f<=s.minY?"upward"===r?W=1:(tt=s.minY-(a+f),M=d.attr("y")+tt):a+p>=s.maxY&&("downward"===r?W=-1:(tt=a+p-s.maxY,M=d.attr("y")-tt)),W&&(m&&m.attr("path",[["M",0,0],["L",0,o*W]]),M=(o+2+b)*W),(x!==d.attr("x")||M!==d.attr("y"))&&Uc(d,x,M)}},n.prototype.getShapeAttrs=function(){var t=(0,v.U2)(this.get("line"),"display"),r=(0,v.U2)(this.get("point"),"style",{}),i=(0,v.U2)(this.get("line"),"style",{}),a=(0,v.U2)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,v.U2)(this.get("line"),"length",0):0,l=0,c=0,h="top",f="start";switch(o){case"upward":c=-1,h="bottom";break;case"downward":c=1,h="top";break;case"leftward":l=-1,f="end";break;case"rightward":l=1,f="start"}return{point:(0,g.pi)({x:0,y:0},r),line:(0,g.pi)({path:[["M",0,0],["L",s*l,s*c]]},i),text:(0,g.pi)({x:(s+2)*l,y:(s+2)*c,text:(0,v.U2)(this.get("text"),"content",""),textBaseline:h,textAlign:f},a)}},n}(An);const d2=p2;var g2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Ze.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Ze.textColor,fontFamily:Ze.fontFamily}}}})},n.prototype.renderInner=function(t){var r=(0,v.U2)(this.get("region"),"style",{}),a=((0,v.U2)(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var s=function Yx(e){var n=e.map(function(s){return s.x}),t=e.map(function(s){return s.y}),r=Math.min.apply(Math,n),i=Math.min.apply(Math,t),a=Math.max.apply(Math,n),o=Math.max.apply(Math,t);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}(o),l=[];l.push(["M",o[0].x,s.minY-a]),o.forEach(function(h){l.push(["L",h.x,h.y])}),l.push(["L",o[o.length-1].x,o[o.length-1].y-a]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.pi)({path:l},r)}),xs(t,(0,g.pi)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-a},this.get("text")))}},n}(An);const y2=g2;var m2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},n.prototype.renderInner=function(t){var r=this,i=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,v.S6)(this.get("shapes"),function(l,c){var h=l.get("type"),f=(0,v.d9)(l.attr());r.adjustShapeAttrs(f),r.addShape(o,{id:r.getElementId("shape-"+h+"-"+c),capture:!1,type:h,attrs:f})});var s=Ka({start:i,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},n.prototype.adjustShapeAttrs=function(t){var r=this.get("color");t.fill&&(t.fill=t.fillStyle=r),t.stroke=t.strokeStyle=r},n}(An);const x2=m2;var M2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"shape",draw:v.ZT})},n.prototype.renderInner=function(t){var r=this.get("render");(0,v.mf)(r)&&r(t)},n}(An);const C2=M2;function Vn(e,n,t){var r;try{r=window.getComputedStyle?window.getComputedStyle(e,null)[n]:e.style[n]}catch{}finally{r=void 0===r?t:r}return r}var T2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},n.prototype.getContainer=function(){return this.get("container")},n.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},n.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},n.prototype.setCapture=function(t){this.getContainer().style.pointerEvents=t?"auto":"none",this.set("capture",t)},n.prototype.getBBox=function(){var t=this.getContainer();return to(parseFloat(t.style.left)||0,parseFloat(t.style.top)||0,t.clientWidth,t.clientHeight)},n.prototype.clear=function(){Yc(this.get("container"))},n.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},n.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},n.prototype.initCapture=function(){this.setCapture(this.get("capture"))},n.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},n.prototype.initDom=function(){},n.prototype.initContainer=function(){var t=this.get("container");if((0,v.UM)(t)){t=this.createDom();var r=this.get("parent");(0,v.HD)(r)&&(r=document.getElementById(r),this.set("parent",r)),r.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,v.HD)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},n.prototype.resetStyles=function(){var t=this.get("domStyles"),r=this.get("defaultStyles");t=t?(0,v.b$)({},r,t):r,this.set("domStyles",t)},n.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var r=this.getContainer();this.applyChildrenStyles(r,t);var i=this.get("containerClassName");i&&function Ux(e,n){return!!e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))}(r,i)&&Ln(r,t[i])}},n.prototype.applyChildrenStyles=function(t,r){(0,v.S6)(r,function(i,a){var o=t.getElementsByClassName(a);(0,v.S6)(o,function(s){Ln(s,i)})})},n.prototype.applyStyle=function(t,r){Ln(r,this.get("domStyles")[t])},n.prototype.createDom=function(){return ti(this.get("containerTpl"))},n.prototype.initEvent=function(){},n.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},n.prototype.removeEvent=function(){},n.prototype.updateInner=function(t){(0,v.wH)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},n.prototype.resetPosition=function(){},n}(kv);const Zc=T2;var A2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},n.prototype.render=function(){var t=this.getContainer(),r=this.get("html");Yc(t);var i=(0,v.mf)(r)?r(t):r;if((0,v.kK)(i))t.appendChild(i);else if((0,v.HD)(i)||(0,v.hj)(i)){var a=ti(""+i);a&&t.appendChild(a)}this.resetPosition()},n.prototype.resetPosition=function(){var t=this.getContainer(),r=this.getLocation(),i=r.x,a=r.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),c=this.get("offsetY"),h=function S2(e,n){var t=function w2(e,n){var t=Vn(e,"width",n);return"auto"===t&&(t=e.offsetWidth),parseFloat(t)}(e,n),r=parseFloat(Vn(e,"borderLeftWidth"))||0,i=parseFloat(Vn(e,"paddingLeft"))||0,a=parseFloat(Vn(e,"paddingRight"))||0,o=parseFloat(Vn(e,"borderRightWidth"))||0,s=parseFloat(Vn(e,"marginRight"))||0;return t+r+o+i+a+(parseFloat(Vn(e,"marginLeft"))||0)+s}(t),f=function b2(e,n){var t=function _2(e,n){var t=Vn(e,"height",n);return"auto"===t&&(t=e.offsetHeight),parseFloat(t)}(e,n),r=parseFloat(Vn(e,"borderTopWidth"))||0,i=parseFloat(Vn(e,"paddingTop"))||0,a=parseFloat(Vn(e,"paddingBottom"))||0;return t+r+(parseFloat(Vn(e,"borderBottomWidth"))||0)+i+a+(parseFloat(Vn(e,"marginTop"))||0)+(parseFloat(Vn(e,"marginBottom"))||0)}(t),p={x:i,y:a};"middle"===o?p.x-=Math.round(h/2):"right"===o&&(p.x-=Math.round(h)),"middle"===s?p.y-=Math.round(f/2):"bottom"===s&&(p.y-=Math.round(f)),l&&(p.x+=l),c&&(p.y+=c),Ln(t,{position:"absolute",left:p.x+"px",top:p.y+"px",zIndex:this.get("zIndex")})},n}(Zc);const F2=A2;function no(e,n,t){var r=n+"Style",i=null;return(0,v.S6)(t,function(a,o){e[o]&&a[r]&&(i||(i={}),(0,v.CD)(i,a[r]))}),i}var E2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Ze.lineColor}},tickLine:{style:{lineWidth:1,stroke:Ze.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Ze.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Ze.textColor,fontFamily:Ze.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Ze.textColor,textBaseline:"middle",fontFamily:Ze.fontFamily,textAlign:"center"},iconStyle:{fill:Ze.descriptionIconFill,stroke:Ze.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Ze.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},n.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},n.prototype.isList=function(){return!0},n.prototype.getItems=function(){return this.get("ticks")},n.prototype.setItems=function(t){this.update({ticks:t})},n.prototype.updateItem=function(t,r){(0,v.CD)(t,r),this.clear(),this.render()},n.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},n.prototype.setItemState=function(t,r,i){t[r]=i,this.updateTickStates(t)},n.prototype.hasState=function(t,r){return!!t[r]},n.prototype.getItemStates=function(t){var r=this.get("tickStates"),i=[];return(0,v.S6)(r,function(a,o){t[o]&&i.push(o)}),i},n.prototype.clearItemsState=function(t){var r=this,i=this.getItemsByState(t);(0,v.S6)(i,function(a){r.setItemState(a,t,!1)})},n.prototype.getItemsByState=function(t){var r=this,i=this.getItems();return(0,v.hX)(i,function(a){return r.hasState(a,t)})},n.prototype.getSidePoint=function(t,r){var a=this.getSideVector(r,t);return{x:t.x+a[0],y:t.y+a[1]}},n.prototype.getTextAnchor=function(t){var r;return(0,v.vQ)(t[0],0)?r="center":t[0]>0?r="start":t[0]<0&&(r="end"),r},n.prototype.getTextBaseline=function(t){var r;return(0,v.vQ)(t[1],0)?r="middle":t[1]>0?r="top":t[1]<0&&(r="bottom"),r},n.prototype.processOverlap=function(t){},n.prototype.drawLine=function(t){var r=this.getLinePath(),i=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,v.CD)({path:r},i.style)})},n.prototype.getTickLineItems=function(t){var r=this,i=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1;return t.length>=2&&(l=t[1].value-t[0].value),(0,v.S6)(t,function(h){var f=h.point;o||(f=r.getTickPoint(h.value-l/2));var p=r.getSidePoint(f,s);i.push({startPoint:f,tickValue:h.value,endPoint:p,tickId:h.id,id:"tickline-"+h.id})}),i},n.prototype.getSubTickLineItems=function(t){var r=[],i=this.get("subTickLine"),a=i.count,o=t.length;if(o>=2)for(var s=0;s0){var i=(0,v.dp)(r);if(i>t.threshold){var a=Math.ceil(i/t.threshold),o=r.filter(function(s,l){return l%a==0});this.set("ticks",o),this.set("originalTicks",r)}}},n.prototype.getLabelAttrs=function(t,r,i){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,c=a.rotate,h=a.formatter,f=this.getSidePoint(t.point,o),p=this.getSideVector(o,f),d=h?h(t.name,t,r):t.name,y=a.style;y=(0,v.mf)(y)?(0,v.U2)(this.get("theme"),["label","style"],{}):y;var m=(0,v.CD)({x:f.x+s,y:f.y+l,text:d,textAlign:this.getTextAnchor(p),textBaseline:this.getTextBaseline(p)},y);return c&&(m.matrix=Ai(f,c)),m},n.prototype.drawLabels=function(t){var r=this,i=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,v.S6)(i,function(p,d){r.addShape(a,{type:"text",name:"axis-label",id:r.getElementId("label-"+p.id),attrs:r.getLabelAttrs(p,d,i),delegateObject:{tick:p,item:p,index:d}})}),this.processOverlap(a);var o=a.getChildren(),s=(0,v.U2)(this.get("theme"),["label","style"],{}),l=this.get("label"),c=l.style,h=l.formatter;if((0,v.mf)(c)){var f=o.map(function(p){return(0,v.U2)(p.get("delegateObject"),"tick")});(0,v.S6)(o,function(p,d){var y=p.get("delegateObject").tick,m=h?h(y.name,y,d):y.name,x=(0,v.CD)({},s,c(m,d,f));p.attr(x)})}},n.prototype.getTitleAttrs=function(){var t=this.get("title"),r=t.style,i=t.position,a=t.offset,o=t.spacing,s=void 0===o?0:o,l=t.autoRotate,c=r.fontSize,h=.5;"start"===i?h=0:"end"===i&&(h=1);var f=this.getTickPoint(h),p=this.getSidePoint(f,a||s+c/2),d=(0,v.CD)({x:p.x,y:p.y,text:t.text},r),y=t.rotate,m=y;if((0,v.UM)(y)&&l){var x=this.getAxisVector(f);m=an.Dg(x,[1,0],!0)}if(m){var C=Ai(p,m);d.matrix=C}return d},n.prototype.drawTitle=function(t){var r,i=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:i});null!==(r=this.get("title"))&&void 0!==r&&r.description&&this.drawDescriptionIcon(t,a,i.matrix)},n.prototype.drawDescriptionIcon=function(t,r,i){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=r.getBBox(),s=o.maxX,l=o.maxY,c=o.height,h=this.get("title").iconStyle,p=c/2,d=p/6,y=s+4,m=l-c/2,x=[y+p,m-p],M=x[0],C=x[1],S=[M+p,C+p],b=S[0],E=S[1],W=[M,E+p],tt=W[0],it=W[1],wt=[y,C+p],yt=wt[0],Ut=wt[1],ee=[y+p,m-c/4],me=ee[0],_e=ee[1],ze=[me,_e+d],Xt=ze[0],fe=ze[1],Se=[Xt,fe+d],ge=Se[0],Me=Se[1],Fe=[ge,Me+3*p/4],He=Fe[0],We=Fe[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,g.pi)({path:[["M",M,C],["A",p,p,0,0,1,b,E],["A",p,p,0,0,1,tt,it],["A",p,p,0,0,1,yt,Ut],["A",p,p,0,0,1,M,C],["M",me,_e],["L",Xt,fe],["M",ge,Me],["L",He,We]],lineWidth:d,matrix:i},h)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:y,y:m-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:i,cursor:"pointer"}})},n.prototype.applyTickStates=function(t,r){if(this.getItemStates(t).length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=r.findById(o);if(s){var l=no(t,"label",a);l&&s.attr(l)}var c=this.getElementId("tickline-"+t.id),h=r.findById(c);if(h){var f=no(t,"tickLine",a);f&&h.attr(f)}}},n.prototype.updateTickStates=function(t){var r=this.getItemStates(t),i=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(r.length){if(o){var c=no(t,"label",i);c&&o.attr(c)}if(l){var h=no(t,"tickLine",i);h&&l.attr(h)}}else o&&o.attr(a.style),l&&l.attr(s.style)},n}(An);const Iv=E2;function Wc(e,n,t,r){var i=n.getChildren(),a=!1;return(0,v.S6)(i,function(o){var s=eo(e,o,t,r);a=a||s}),a}function k2(){return Dv}function I2(e,n,t){return Wc(e,n,t,"head")}function Dv(e,n,t){return Wc(e,n,t,"tail")}function D2(e,n,t){return Wc(e,n,t,"middle")}function Lv(e){var n=function L2(e){var n=e.attr("matrix");return n&&1!==n[0]}(e)?function Nx(e){var t=[0,0,0];return ja(t,[1,0,0],e),Math.atan2(t[1],t[0])}(e.attr("matrix")):0;return n%360}function Xc(e,n,t,r){var i=!1,a=Lv(n),o=Math.abs(e?t.attr("y")-n.attr("y"):t.attr("x")-n.attr("x")),s=(e?t.attr("y")>n.attr("y"):t.attr("x")>n.attr("x"))?n.getBBox():t.getBBox();if(e){var l=Math.abs(Math.cos(a));i=ms(l,0,Math.PI/180)?s.width+r>o:s.height/l+r>o}else l=Math.abs(Math.sin(a)),i=ms(l,0,Math.PI/180)?s.width+r>o:s.height/l+r>o;return i}function ro(e,n,t,r){var i=r?.minGap||0,a=n.getChildren().slice().filter(function(y){return y.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,c=a[0],h=1;h1){p=Math.ceil(p);for(var m=0;m2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),ro(e,n,!1,r)&&(a=!0)),s.get("visible")||(s.show(),ro(e,n,!0,r)&&(a=!0))}return a}function zv(e,n,t,r){var i=n.getChildren();if(!i.length||!e&&i.length<2)return!1;var a=Gc(i),o=!1;return(o=e?!!t&&a>t:a>Math.abs(i[1].attr("x")-i[0].attr("x")))&&function N2(e,n){(0,v.S6)(e,function(t){var a=Ai({x:t.attr("x"),y:t.attr("y")},n);t.attr("matrix",a)})}(i,r(t,a)),o}function V2(){return Bv}function Bv(e,n,t,r){return zv(e,n,t,function(){return(0,v.hj)(r)?r:e?Ze.verticalAxisRotate:Ze.horizontalAxisRotate})}function U2(e,n,t){return zv(e,n,t,function(r,i){if(!r)return e?Ze.verticalAxisRotate:Ze.horizontalAxisRotate;if(e)return-Math.acos(r/i);var a=0;return(r>i||(a=Math.asin(r/i))>Math.PI/4)&&(a=Math.PI/4),a})}var Y2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},n.prototype.getLinePath=function(){var t=this.get("start"),r=this.get("end"),i=[];return i.push(["M",t.x,t.y]),i.push(["L",r.x,r.y]),i},n.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),r=this.get("end"),i=e.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,r.x,i.x),o=Math.min(t.y,r.y,i.y),s=Math.max(t.x,r.x,i.maxX),l=Math.max(t.y,r.y,i.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},n.prototype.isVertical=function(){var t=this.get("start"),r=this.get("end");return(0,v.vQ)(t.x,r.x)},n.prototype.isHorizontal=function(){var t=this.get("start"),r=this.get("end");return(0,v.vQ)(t.y,r.y)},n.prototype.getTickPoint=function(t){var i=this.get("start"),a=this.get("end");return{x:i.x+(a.x-i.x)*t,y:i.y+(a.y-i.y)*t}},n.prototype.getSideVector=function(t){var r=this.getAxisVector(),i=Le.Fv([0,0],r),a=this.get("verticalFactor");return Le.bA([0,0],[i[1],-1*i[0]],t*a)},n.prototype.getAxisVector=function(){var t=this.get("start"),r=this.get("end");return[r.x-t.x,r.y-t.y]},n.prototype.processOverlap=function(t){var r=this,i=this.isVertical(),a=this.isHorizontal();if(i||a){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),c=o.offset,h=l,f=0,p=0;s&&(f=s.style.fontSize,p=s.spacing),h&&(h=h-c-p-f);var d=this.get("overlapOrder");if((0,v.S6)(d,function(x){o[x]&&r.canProcessOverlap(x)&&r.autoProcessOverlap(x,o[x],t,h)}),s&&(0,v.UM)(s.offset)){var y=t.getCanvasBBox();s.offset=c+(i?y.width:y.height)+p+f/2}}},n.prototype.canProcessOverlap=function(t){var r=this.get("label");return"autoRotate"!==t||(0,v.UM)(r.rotate)},n.prototype.autoProcessOverlap=function(t,r,i,a){var o=this,s=this.isVertical(),l=!1,c=bt[t];if(!0===r?(this.get("label"),l=c.getDefault()(s,i,a)):(0,v.mf)(r)?l=r(s,i,a):(0,v.Kn)(r)?c[r.type]&&(l=c[r.type](s,i,a,r.cfg)):c[r]&&(l=c[r](s,i,a)),"autoRotate"===t){if(l){var p=i.getChildren(),d=this.get("verticalFactor");(0,v.S6)(p,function(m){"center"===m.attr("textAlign")&&m.attr("textAlign",d>0?"end":"start")})}}else if("autoHide"===t){var y=i.getChildren().slice(0);(0,v.S6)(y,function(m){m.get("visible")||(o.get("isRegister")&&o.unregisterElement(m),m.remove())})}},n}(Iv);const H2=Y2;var G2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},n.prototype.getLinePath=function(){var t=this.get("center"),r=t.x,i=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),c=[];if(Math.abs(l-s)===2*Math.PI)c=[["M",r,i-o],["A",a,o,0,1,1,r,i+o],["A",a,o,0,1,1,r,i-o],["Z"]];else{var h=this.getCirclePoint(s),f=this.getCirclePoint(l),p=Math.abs(l-s)>Math.PI?1:0;c=[["M",r,i],["L",h.x,h.y],["A",a,o,0,p,s>l?0:1,f.x,f.y],["L",r,i]]}return c},n.prototype.getTickPoint=function(t){var r=this.get("startAngle"),i=this.get("endAngle");return this.getCirclePoint(r+(i-r)*t)},n.prototype.getSideVector=function(t,r){var i=this.get("center"),a=[r.x-i.x,r.y-i.y],o=this.get("verticalFactor"),s=Le.kE(a);return Le.bA(a,a,o*t/s),a},n.prototype.getAxisVector=function(t){var r=this.get("center"),i=[t.x-r.x,t.y-r.y];return[i[1],-1*i[0]]},n.prototype.getCirclePoint=function(t,r){var i=this.get("center");return r=r||this.get("radius"),{x:i.x+Math.cos(t)*r,y:i.y+Math.sin(t)*r}},n.prototype.canProcessOverlap=function(t){var r=this.get("label");return"autoRotate"!==t||(0,v.UM)(r.rotate)},n.prototype.processOverlap=function(t){var r=this,i=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=i.offset,l=o,c=0,h=0;a&&(c=a.style.fontSize,h=a.spacing),l&&(l=l-s-h-c);var f=this.get("overlapOrder");if((0,v.S6)(f,function(d){i[d]&&r.canProcessOverlap(d)&&r.autoProcessOverlap(d,i[d],t,l)}),a&&(0,v.UM)(a.offset)){var p=t.getCanvasBBox().height;a.offset=s+p+h+c/2}},n.prototype.autoProcessOverlap=function(t,r,i,a){var o=this,s=!1,l=bt[t];if(a>0&&(!0===r?s=l.getDefault()(!1,i,a):(0,v.mf)(r)?s=r(!1,i,a):(0,v.Kn)(r)?l[r.type]&&(s=l[r.type](!1,i,a,r.cfg)):l[r]&&(s=l[r](!1,i,a))),"autoRotate"===t){if(s){var h=i.getChildren(),f=this.get("verticalFactor");(0,v.S6)(h,function(d){"center"===d.attr("textAlign")&&d.attr("textAlign",f>0?"end":"start")})}}else if("autoHide"===t){var p=i.getChildren().slice(0);(0,v.S6)(p,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},n}(Iv);const Z2=G2;var W2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Ze.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Ze.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Ze.fontFamily}},textBackground:{padding:5,style:{stroke:Ze.lineColor}}}})},n.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},n.prototype.renderText=function(t){var r=this.get("text"),i=r.style,a=r.autoRotate,o=r.content;if(!(0,v.UM)(o)){var s=this.getTextPoint(),l=null;a&&(l=Ai(s,this.getRotateAngle())),this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,g.pi)((0,g.pi)((0,g.pi)({},s),{text:o,matrix:l}),i)})}},n.prototype.renderLine=function(t){var r=this.getLinePath(),a=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,g.pi)({path:r},a)})},n.prototype.renderBackground=function(t){var r=this.getElementId("text"),i=t.findById(r),a=this.get("textBackground");if(a&&i){var o=i.getBBox(),s=ys(a.padding),l=a.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,g.pi)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:i.attr("matrix")},l)}).toBack()}},n}(An);const $c=W2;var X2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},n.prototype.getRotateAngle=function(){var t=this.getLocation(),r=t.start,i=t.end,a=this.get("text").position,o=Math.atan2(i.y-r.y,i.x-r.x);return"start"===a?o-Math.PI/2:o+Math.PI/2},n.prototype.getTextPoint=function(){var t=this.getLocation(),r=t.start,i=t.end,a=this.get("text");return Ev(r,i,a.position,a.offset)},n.prototype.getLinePath=function(){var t=this.getLocation(),r=t.start,i=t.end;return[["M",r.x,r.y],["L",i.x,i.y]]},n}($c);const Rv=X2;var $2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},n.prototype.getRotateAngle=function(){var t=this.getLocation(),r=t.startAngle,i=t.endAngle;return"start"===this.get("text").position?r+Math.PI/2:i-Math.PI/2},n.prototype.getTextPoint=function(){var t=this.get("text"),r=t.position,i=t.offset,a=this.getLocation(),o=a.center,s=a.radius,h="start"===r?a.startAngle:a.endAngle,f=this.getRotateAngle()-Math.PI,p=ca(o,s,h),d=Math.cos(f)*i,y=Math.sin(f)*i;return{x:p.x+d,y:p.y+y}},n.prototype.getLinePath=function(){var t=this.getLocation(),r=t.center,i=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a==2*Math.PI){var l=r.x,c=r.y;s=[["M",l,c-i],["A",i,i,0,1,1,l,c+i],["A",i,i,0,1,1,l,c-i],["Z"]]}else{var h=ca(r,i,a),f=ca(r,i,o),p=Math.abs(o-a)>Math.PI?1:0;s=[["M",h.x,h.y],["A",i,i,0,p,a>o?0:1,f.x,f.y]]}return s},n}($c);const J2=$2;var ao,io="g2-crosshair",Jc=io+"-line",Qc=io+"-text";const Q2=((ao={})[""+io]={position:"relative"},ao[""+Jc]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},ao[""+Qc]={position:"absolute",color:Ze.textColor,fontFamily:Ze.fontFamily},ao);var q2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:io,defaultStyles:Q2,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},n.prototype.render=function(){this.resetText(),this.resetPosition()},n.prototype.initCrossHair=function(){var t=this.getContainer(),i=ti(this.get("crosshairTpl"));t.appendChild(i),this.applyStyle(Jc,i),this.set("crosshairEl",i)},n.prototype.getTextPoint=function(){var t=this.getLocation(),r=t.start,i=t.end,a=this.get("text");return Ev(r,i,a.position,a.offset)},n.prototype.resetText=function(){var t=this.get("text"),r=this.get("textEl");if(t){var i=t.content;if(!r){var a=this.getContainer();r=ti((0,v.ng)(this.get("textTpl"),t)),a.appendChild(r),this.applyStyle(Qc,r),this.set("textEl",r)}r.innerHTML=i}else r&&r.remove()},n.prototype.isVertical=function(t,r){return t.x===r.x},n.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var r=this.get("start"),i=this.get("end"),a=Math.min(r.x,i.x),o=Math.min(r.y,i.y);this.isVertical(r,i)?Ln(t,{width:"1px",height:Nn(Math.abs(i.y-r.y))}):Ln(t,{height:"1px",width:Nn(Math.abs(i.x-r.x))}),Ln(t,{top:Nn(o),left:Nn(a)}),this.alignText()},n.prototype.alignText=function(){var t=this.get("textEl");if(t){var r=this.get("text").align,i=t.clientWidth,a=this.getTextPoint();switch(r){case"center":a.x=a.x-i/2;break;case"right":a.x=a.x-i}Ln(t,{top:Nn(a.y),left:Nn(a.x)})}},n.prototype.updateInner=function(t){(0,v.wH)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},n}(Zc);const j2=q2;var K2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Ze.lineColor}}}})},n.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},n.prototype.renderInner=function(t){this.drawGrid(t)},n.prototype.getAlternatePath=function(t,r){var i=this.getGridPath(t),a=r.slice(0).reverse(),o=this.getGridPath(a,!0);return this.get("closed")?i=i.concat(o):(o[0][0]="L",(i=i.concat(o)).push(["Z"])),i},n.prototype.getPathStyle=function(){return this.get("line").style},n.prototype.drawGrid=function(t){var r=this,i=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;(0,v.S6)(a,function(l,c){var h=l.id||c;if(i){var f=r.getPathStyle();f=(0,v.mf)(f)?f(l,c,a):f;var p=r.getElementId("line-"+h),d=r.getGridPath(l.points);r.addShape(t,{type:"path",name:"grid-line",id:p,attrs:(0,v.CD)({path:d},f)})}if(o&&c>0){var y=r.getElementId("region-"+h),m=c%2==0;(0,v.HD)(o)?m&&r.drawAlternateRegion(y,t,s.points,l.points,o):r.drawAlternateRegion(y,t,s.points,l.points,m?o[1]:o[0])}s=l})},n.prototype.drawAlternateRegion=function(t,r,i,a,o){var s=this.getAlternatePath(i,a);this.addShape(r,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},n}(An);const Nv=K2;var eM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"circle",center:null,closed:!0})},n.prototype.getGridPath=function(t,r){var i=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if("circle"===i){var s=this.get("center"),l=t[0],c=function tM(e,n,t,r){var i=t-e,a=r-n;return Math.sqrt(i*i+a*a)}(s.x,s.y,l.x,l.y),h=r?0:1;a?(o.push(["M",s.x,s.y-c]),o.push(["A",c,c,0,0,h,s.x,s.y+c]),o.push(["A",c,c,0,0,h,s.x,s.y-c]),o.push(["Z"])):(0,v.S6)(t,function(f,p){o.push(0===p?["M",f.x,f.y]:["A",c,c,0,0,h,f.x,f.y])})}else(0,v.S6)(t,function(f,p){o.push(0===p?["M",f.x,f.y]:["L",f.x,f.y])}),a&&o.push(["Z"]);return o},n}(Nv);const nM=eM;var rM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"line"})},n.prototype.getGridPath=function(t){var r=[];return(0,v.S6)(t,function(i,a){r.push(0===a?["M",i.x,i.y]:["L",i.x,i.y])}),r},n}(Nv);const iM=rM;var aM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},n.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),r=this.get("maxWidth"),i=this.get("maxHeight"),a=t.width,o=t.height;return r&&(a=Math.min(a,r)),i&&(o=Math.min(o,i)),to(t.minX,t.minY,a,o)},n.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},n.prototype.resetLocation=function(){var t=this.get("x"),r=this.get("y"),i=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+i,y:r+a})},n.prototype.applyOffset=function(){this.resetLocation()},n.prototype.getDrawPoint=function(){return this.get("currentPoint")},n.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},n.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},n.prototype.drawBackground=function(t){var r=this.get("background"),i=t.getBBox(),a=ys(r.padding),o=(0,g.pi)({x:0,y:0,width:i.width+a[1]+a[3],height:i.height+a[0]+a[2]},r.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},n.prototype.drawTitle=function(t){var r=this.get("currentPoint"),i=this.get("title"),a=i.spacing,o=i.style,s=i.text,c=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,g.pi)({text:s,x:r.x,y:r.y},o)}).getBBox();this.set("currentPoint",{x:r.x,y:c.maxY+a})},n.prototype.resetDraw=function(){var t=this.get("background"),r={x:0,y:0};if(t){var i=ys(t.padding);r.x=i[3],r.y=i[0]}this.set("currentPoint",r)},n}(An);const Vv=aM;var qc={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Ms={fill:Ze.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Ze.fontFamily,fontWeight:"normal",lineHeight:12},jc="navigation-arrow-right",Kc="navigation-arrow-left",Uv={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},oM=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var r=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var i=t.getCurrentNavigationMatrix();t.get("animate")?r.animate({matrix:i},100):r.attr({matrix:i})}},t.onNavigationAfter=function(){var r=t.getElementByLocalId("item-group");if(t.currentPageIndexx&&(x=tt),"horizontal"===d?(M&&Mc}(ee,M))&&(1===C&&(S=M.x+p,i.moveElementTo(m,{x:yt,y:M.y+d/2-x.height/2-x.minY})),C+=1,M.x=a,M.y+=wt),i.moveElementTo(ee,M),ee.getParent().setClip({type:"rect",attrs:{x:M.x,y:M.y,width:_e+p,height:d}}),M.x+=_e+p})}else{(0,v.S6)(l,function(ee){var me=ee.getBBox();me.width>b&&(b=me.width)}),E=b,b+=p,c&&(b=Math.min(c,b),E=Math.min(c,E)),this.pageWidth=b,this.pageHeight=h-Math.max(x.height,d+W);var Ut=Math.floor(this.pageHeight/(d+W));(0,v.S6)(l,function(ee,me){0!==me&&me%Ut==0&&(C+=1,M.x+=b,M.y=o),i.moveElementTo(ee,M),ee.getParent().setClip({type:"rect",attrs:{x:M.x,y:M.y,width:b,height:d}}),M.y+=d+W}),this.totalPagesCnt=C,this.moveElementTo(m,{x:a+E/2-x.width/2-x.minX,y:h-x.height-x.minY})}this.pageHeight&&this.pageWidth&&r.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt="horizontal"===s&&this.get("maxRow")?Math.ceil(C/this.get("maxRow")):C,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(m),r.attr("matrix",this.getCurrentNavigationMatrix())},n.prototype.drawNavigation=function(t,r,i,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,v.U2)(a.marker,"style",{}),c=l.size,h=void 0===c?12:c,f=(0,g._T)(l,["size"]),p=this.drawArrow(s,o,Kc,"horizontal"===r?"up":"left",h,f);p.on("click",this.onNavigationBack);var d=p.getBBox();o.x+=d.width+2;var m=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,g.pi)({x:o.x,y:o.y+h/2,text:i,textBaseline:"middle"},(0,v.U2)(a.text,"style"))}).getBBox();return o.x+=m.width+2,this.drawArrow(s,o,jc,"horizontal"===r?"down":"right",h,f).on("click",this.onNavigationAfter),s},n.prototype.updateNavigation=function(t){var i=(0,v.b$)({},qc,this.get("pageNavigator")).marker.style,a=i.fill,o=i.opacity,s=i.inactiveFill,l=i.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,h=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),f=t?t.findById(this.getElementId(Kc)):this.getElementByLocalId(Kc),p=t?t.findById(this.getElementId(jc)):this.getElementByLocalId(jc);h.attr("text",c),f.attr("opacity",1===this.currentPageIndex?l:o),f.attr("fill",1===this.currentPageIndex?s:a),f.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),p.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),p.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),p.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=f.getBBox().maxX+2;h.attr("x",d),d+=h.getBBox().width+2,this.updateArrowPath(p,{x:d,y:0})},n.prototype.drawArrow=function(t,r,i,a,o,s){var l=r.x,c=r.y,h=this.addShape(t,{type:"path",id:this.getElementId(i),name:i,attrs:(0,g.pi)({size:o,direction:a,path:[["M",l+o/2,c],["L",l,c+o],["L",l+o,c+o],["Z"]],cursor:"pointer"},s)});return h.attr("matrix",Ai({x:l+o/2,y:c+o/2},Uv[a])),h},n.prototype.updateArrowPath=function(t,r){var i=r.x,a=r.y,o=t.attr(),s=o.size,c=Ai({x:i+s/2,y:a+s/2},Uv[o.direction]);t.attr("path",[["M",i+s/2,a],["L",i,a+s],["L",i+s,a+s],["Z"]]),t.attr("matrix",c)},n.prototype.getCurrentNavigationMatrix=function(){var t=this,r=t.currentPageIndex,i=t.pageWidth,a=t.pageHeight;return Vc("horizontal"===this.get("layout")?{x:0,y:a*(1-r)}:{x:i*(1-r),y:0})},n.prototype.applyItemStates=function(t,r){if(this.getItemStates(t).length>0){var o=r.getChildren(),s=this.get("itemStates");(0,v.S6)(o,function(l){var h=l.get("name").split("-")[2],f=no(t,h,s);f&&(l.attr(f),"marker"===h&&(!l.get("isStroke")||!l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},n.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),r=this.get("maxItemWidth");return r?t&&(r=t<=r?t:r):t&&(r=t),r},n}(Vv);const sM=oM;var cM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Ze.textColor,textBaseline:"middle",fontFamily:Ze.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Ze.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},n.prototype.isSlider=function(){return!0},n.prototype.getValue=function(){return this.getCurrentValue()},n.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},n.prototype.setRange=function(t,r){this.update({min:t,max:r})},n.prototype.setValue=function(t){var r=this.getValue();this.set("value",t);var i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),this.delegateEmit("valuechanged",{originValue:r,value:t})},n.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},n.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},n.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},n.prototype.bindHandlersEvent=function(t){var r=this;t.on("legend-handler-min:drag",function(i){var a=r.getValueByCanvasPoint(i.x,i.y),s=r.getCurrentValue()[1];sa&&(s=a),r.setValue([s,a])})},n.prototype.bindRailEvent=function(t){},n.prototype.bindTrackEvent=function(t){var r=this,i=null;t.on("legend-track:dragstart",function(a){i={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(i){var o=r.getValueByCanvasPoint(i.x,i.y),s=r.getValueByCanvasPoint(a.x,a.y),l=r.getCurrentValue(),c=l[1]-l[0],h=r.getRange(),f=s-o;f<0?r.setValue(l[0]+f>h.min?[l[0]+f,l[1]+f]:[h.min,h.min+c]):f>0&&r.setValue(f>0&&l[1]+fo&&(f=o),f0&&this.changeRailLength(a,s,i[s]-d)}},n.prototype.changeRailLength=function(t,r,i){var o,a=t.getBBox();o="height"===r?this.getRailPath(a.x,a.y,a.width,i):this.getRailPath(a.x,a.y,i,a.height),t.attr("path",o)},n.prototype.changeRailPosition=function(t,r,i){var a=t.getBBox(),o=this.getRailPath(r,i,a.width,a.height);t.attr("path",o)},n.prototype.fixedHorizontal=function(t,r,i,a){var o=this.get("label"),s=o.align,l=o.spacing,c=i.getBBox(),h=t.getBBox(),f=r.getBBox(),p=c.height;this.fitRailLength(h,f,c,i),c=i.getBBox(),"rail"===s?(t.attr({x:a.x,y:a.y+p/2}),this.changeRailPosition(i,a.x+h.width+l,a.y),r.attr({x:a.x+h.width+c.width+2*l,y:a.y+p/2})):"top"===s?(t.attr({x:a.x,y:a.y}),r.attr({x:a.x+c.width,y:a.y}),this.changeRailPosition(i,a.x,a.y+h.height+l)):(this.changeRailPosition(i,a.x,a.y),t.attr({x:a.x,y:a.y+c.height+l}),r.attr({x:a.x+c.width,y:a.y+c.height+l}))},n.prototype.fixedVertail=function(t,r,i,a){var o=this.get("label"),s=o.align,l=o.spacing,c=i.getBBox(),h=t.getBBox(),f=r.getBBox();if(this.fitRailLength(h,f,c,i),c=i.getBBox(),"rail"===s)t.attr({x:a.x,y:a.y}),this.changeRailPosition(i,a.x,a.y+h.height+l),r.attr({x:a.x,y:a.y+h.height+c.height+2*l});else if("right"===s)t.attr({x:a.x+c.width+l,y:a.y}),this.changeRailPosition(i,a.x,a.y),r.attr({x:a.x+c.width+l,y:a.y+c.height});else{var p=Math.max(h.width,f.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(i,a.x+p+l,a.y),r.attr({x:a.x,y:a.y+c.height})}},n}(Vv);const uM=cM;var Sr,Nr="g2-tooltip",Vr="g2-tooltip-title",oo="g2-tooltip-list",Cs="g2-tooltip-list-item",ws="g2-tooltip-marker",Ss="g2-tooltip-value",Hv="g2-tooltip-name",tu="g2-tooltip-crosshair-x",eu="g2-tooltip-crosshair-y";const hM=((Sr={})[""+Nr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Ze.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},Sr[""+Vr]={marginBottom:"4px"},Sr[""+oo]={margin:"0px",listStyleType:"none",padding:"0px"},Sr[""+Cs]={listStyleType:"none",marginBottom:"4px"},Sr[""+ws]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},Sr[""+Ss]={display:"inline-block",float:"right",marginLeft:"30px"},Sr[""+tu]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Sr[""+eu]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Sr);var gM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:Nr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:hM})},n.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},n.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},n.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),Ln(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},n.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),Ln(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},n.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},n.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},n.prototype.setCrossHairsVisible=function(t){var r=t?"":"none",i=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");i&&Ln(i,{display:r}),a&&Ln(a,{display:r})},n.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},n.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(function dM(e,n){var t=!1;return(0,v.S6)(n,function(r){if((0,v.wH)(e,r))return t=!0,!1}),t}(t,["title","showTitle"])&&this.resetTitle(),(0,v.wH)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},n.prototype.initDom=function(){this.cacheDoms()},n.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},n.prototype.resetPosition=function(){var y,t=this.get("x"),r=this.get("y"),i=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),c=this.get("region"),h=this.getContainer(),f=this.getBBox(),p=f.width,d=f.height;c&&(y=Ka(c));var m=function pM(e,n,t,r,i,a,o){var s=function vM(e,n,t,r,i,a){var o=e,s=n;switch(a){case"left":o=e-r-t,s=n-i/2;break;case"right":o=e+t,s=n-i/2;break;case"top":o=e-r/2,s=n-i-t;break;case"bottom":o=e-r/2,s=n+t;break;default:o=e+t,s=n-i-t}return{x:o,y:s}}(e,n,t,r,i,a);if(o){var l=function fM(e,n,t,r,i){return{left:ei.x+i.width,top:ni.y+i.height}}(s.x,s.y,r,i,o);"auto"===a?(l.right&&(s.x=Math.max(0,e-r-t)),l.top&&(s.y=Math.max(0,n-i-t))):"top"===a||"bottom"===a?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-r),"top"===a&&l.top&&(s.y=n+t),"bottom"===a&&l.bottom&&(s.y=n-i-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-i),"left"===a&&l.left&&(s.x=e+t),"right"===a&&l.right&&(s.x=e-r-t))}return s}(t,r,i,p,d,l,y);Ln(h,{left:Nn(m.x+o),top:Nn(m.y+s)}),this.resetCrosshairs()},n.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),r=this.get("parent"),i=this.get("container");i&&i.parentNode===r?r.replaceChild(t,i):r.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},n.prototype.getHtmlContentNode=function(){var t,r=this.get("customContent");if(r){var i=r(this.get("title"),this.get("items"));t=(0,v.kK)(i)?i:ti(i)}return t},n.prototype.cacheDoms=function(){var t=this.getContainer(),r=t.getElementsByClassName(Vr)[0],i=t.getElementsByClassName(oo)[0];this.set("titleDom",r),this.set("listDom",i)},n.prototype.resetTitle=function(){var t=this.get("title"),r=this.get("showTitle");this.setTitle(r&&t?t:"")},n.prototype.setTitle=function(t){var r=this.get("titleDom");r&&(r.innerText=t)},n.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),r=this.get("crosshairs");if(t&&r){var i=Ka(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");"x"===r?(this.resetCrosshair("x",i),o&&(o.remove(),this.set("yCrosshairDom",null))):"y"===r?(this.resetCrosshair("y",i),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},n.prototype.resetCrosshair=function(t,r){var i=this.checkCrosshair(t),a=this.get(t);Ln(i,"x"===t?{left:Nn(a),top:Nn(r.y),height:Nn(r.height)}:{top:Nn(a),left:Nn(r.x),width:Nn(r.width)})},n.prototype.checkCrosshair=function(t){var r=t+"CrosshairDom",i=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=ht[a],s=this.get(r),l=this.get("parent");return s||(s=ti(this.get(i)),this.applyStyle(o,s),l.appendChild(s),this.set(r,s)),s},n.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),r=this.get("itemTpl"),i=this.get("listDom");i&&((0,v.S6)(t,function(a){var o=ei.toCSSGradient(a.color),s=(0,g.pi)((0,g.pi)({},a),{color:o}),c=ti((0,v.ng)(r,s));i.appendChild(c)}),this.applyChildrenStyles(i,this.get("domStyles")))},n.prototype.clearItemDoms=function(){this.get("listDom")&&Yc(this.get("listDom"))},n.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");t&&t.remove(),r&&r.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},n}(Zc);const yM=gM;var mM={opacity:0},xM={stroke:"#C5C5C5",strokeOpacity:.85},MM={fill:"#CACED4",opacity:.85},ua=V(575);function Gv(e){return function CM(e){return(0,v.UI)(e,function(n,t){return[0===t?"M":"L",n[0],n[1]]})}(e)}var TM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:mM,lineStyle:xM,areaStyle:MM})},n.prototype.renderInner=function(t){var r=this.cfg,i=r.width,a=r.height,o=r.data,s=r.smooth,l=r.isArea,c=r.backgroundStyle,h=r.lineStyle,f=r.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.pi)({x:0,y:0,width:i,height:a},c)});var p=function SM(e,n,t,r){void 0===r&&(r=!0);var i=new fs({values:e}),a=new ss({values:(0,v.UI)(e,function(s,l){return l})}),o=(0,v.UI)(e,function(s,l){return[a.scale(l)*n,t-i.scale(s)*t]});return r?function wM(e){if(e.length<=2)return Gv(e);var n=[];(0,v.S6)(e,function(o){(0,v.Xy)(o,n.slice(n.length-2))||n.push(o[0],o[1])});var t=(0,ua.e9)(n,!1),r=(0,v.YM)(e);return t.unshift(["M",r[0],r[1]]),t}(o):Gv(o)}(o,i,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,g.pi)({path:p},h)}),l){var d=function bM(e,n,t,r){var i=(0,g.pr)(e),a=function _M(e,n){var t=new fs({values:e}),r=t.max<0?t.max:Math.max(0,t.min);return n-t.scale(r)*n}(r,t);return i.push(["L",n,a]),i.push(["L",0,a]),i.push(["Z"]),i}(p,i,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,g.pi)({path:d},f)})}},n.prototype.applyOffset=function(){var t=this.cfg,r=t.x,i=t.y;this.moveElementTo(this.get("group"),{x:r,y:i})},n}(An),Zv={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},Wv=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:Zv})},n.prototype.renderInner=function(t){var r=this.cfg,i=r.width,a=r.height,o=r.style,s=o.fill,l=o.stroke,c=o.radius,h=o.opacity,f=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:a,fill:s,stroke:l,radius:c,opacity:h,cursor:f}});var p=1/3*i,d=2/3*i,y=1/4*a,m=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:p,y1:y,x2:p,y2:m,stroke:l,cursor:f}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:y,x2:d,y2:m,stroke:l,cursor:f}})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var r=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",r),t.draw()}),this.get("group").on("mouseleave",function(){var r=t.get("style").fill;t.getElementByLocalId("background").attr("fill",r),t.draw()})},n.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},n}(An),AM={fill:"#416180",opacity:.05},FM={fill:"#5B8FF9",opacity:.15,cursor:"move"},EM={width:10,height:24},kM={textBaseline:"middle",fill:"#000",opacity:.45},DM=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(r){return function(i){t.currentTarget=r;var a=i.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=(0,v.U2)(a,"touches.0.pageX",a.pageX),t.prevY=(0,v.U2)(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(r){var i=t.cfg.width,a=[t.get("start"),t.get("end")];r.stopPropagation(),r.preventDefault();var o=(0,v.U2)(r,"touches.0.pageX",r.pageX),s=(0,v.U2)(r,"touches.0.pageY",r.pageY),c=t.adjustOffsetRange((o-t.prevX)/i);t.updateStartEnd(c),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit("sliderchange",[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var r=t.getContainerDOM();r&&(r.removeEventListener("mousemove",t.onMouseMove),r.removeEventListener("mouseup",t.onMouseUp),r.removeEventListener("mouseleave",t.onMouseUp),r.removeEventListener("touchmove",t.onMouseMove),r.removeEventListener("touchend",t.onMouseUp),r.removeEventListener("touchcancel",t.onMouseUp))},t}return(0,g.ZT)(n,e),n.prototype.setRange=function(t,r){this.set("minLimit",t),this.set("maxLimit",r);var i=this.get("start"),a=this.get("end"),o=(0,v.uZ)(i,t,r),s=(0,v.uZ)(a,t,r);!this.get("isInit")&&(i!==o||a!==s)&&this.setValue([o,s])},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var r=this.getRange();if((0,v.kJ)(t)&&2===t.length){var i=[this.get("start"),this.get("end")];this.update({start:(0,v.uZ)(t[0],r.min,r.max),end:(0,v.uZ)(t[1],r.min,r.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,value:t})}},n.prototype.getValue=function(){return[this.get("start"),this.get("end")]},n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:AM,foregroundStyle:FM,handlerStyle:EM,textStyle:kM}})},n.prototype.update=function(t){var r=t.start,i=t.end,a=(0,g.pi)({},t);(0,v.UM)(r)||(a.start=(0,v.uZ)(r,0,1)),(0,v.UM)(i)||(a.end=(0,v.uZ)(i,0,1)),e.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},n.prototype.init=function(){this.set("start",(0,v.uZ)(this.get("start"),0,1)),this.set("end",(0,v.uZ)(this.get("end"),0,1)),e.prototype.init.call(this)},n.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},n.prototype.renderInner=function(t){var r=this.cfg,o=r.width,s=r.height,l=r.trendCfg,c=void 0===l?{}:l,h=r.minText,f=r.maxText,p=r.backgroundStyle,d=void 0===p?{}:p,y=r.foregroundStyle,m=void 0===y?{}:y,x=r.textStyle,M=void 0===x?{}:x,C=(0,v.b$)({},Zv,this.cfg.handlerStyle);(0,v.dp)((0,v.U2)(c,"data"))&&(this.trend=this.addComponent(t,(0,g.pi)({component:TM,id:this.getElementId("trend"),x:0,y:0,width:o,height:s},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.pi)({x:0,y:0,width:o,height:s},d)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,g.pi)({y:s/2,textAlign:"right",text:h,silent:!1},M)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,g.pi)({y:s/2,textAlign:"left",text:f,silent:!1},M)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,g.pi)({y:0,height:s},m)});var it=(0,v.U2)(C,"width",10),wt=(0,v.U2)(C,"height",24);this.minHandler=this.addComponent(t,{component:Wv,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(s-wt)/2,width:it,height:wt,cursor:"ew-resize",style:C}),this.maxHandler=this.addComponent(t,{component:Wv,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(s-wt)/2,width:it,height:wt,cursor:"ew-resize",style:C})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.updateUI=function(t,r,i){var a=this.cfg,l=a.width,c=a.minText,h=a.maxText,f=a.handlerStyle,d=a.start*l,y=a.end*l;this.trend&&(this.trend.update({width:l,height:a.height}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",d),t.attr("width",y-d);var m=(0,v.U2)(f,"width",10);r.attr("text",c),i.attr("text",h);var x=this._dodgeText([d,y],r,i),M=x[0],C=x[1];this.minHandler&&(this.minHandler.update({x:d-m/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,v.S6)(M,function(S,b){return r.attr(b,S)}),this.maxHandler&&(this.maxHandler.update({x:y-m/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,v.S6)(C,function(S,b){return i.attr(b,S)})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var r=t.findById(this.getElementId("foreground"));r.on("mousedown",this.onMouseDown("foreground")),r.on("touchstart",this.onMouseDown("foreground"))},n.prototype.adjustOffsetRange=function(t){var r=this.cfg,i=r.start,a=r.end;switch(this.currentTarget){case"minHandler":var o=0-i,s=1-i;return Math.min(s,Math.max(o,t));case"maxHandler":return o=0-a,s=1-a,Math.min(s,Math.max(o,t));case"foreground":return o=0-i,s=1-a,Math.min(s,Math.max(o,t))}},n.prototype.updateStartEnd=function(t){var r=this.cfg,i=r.start,a=r.end;switch(this.currentTarget){case"minHandler":i+=t;break;case"maxHandler":a+=t;break;case"foreground":i+=t,a+=t}this.set("start",i),this.set("end",a)},n.prototype._dodgeText=function(t,r,i){var a,o,s=this.cfg,c=s.width,f=(0,v.U2)(s.handlerStyle,"width",10),p=t[0],d=t[1],y=!1;p>d&&(p=(a=[d,p])[0],d=a[1],r=(o=[i,r])[0],i=o[1],y=!0);var m=r.getBBox(),x=i.getBBox(),M=m.width>p-2?{x:p+f/2+2,textAlign:"left"}:{x:p-f/2-2,textAlign:"right"},C=x.width>c-d-2?{x:d-f/2-2,textAlign:"right"}:{x:d+f/2+2,textAlign:"left"};return y?[C,M]:[M,C]},n.prototype.draw=function(){var t=this.get("container"),r=t&&t.get("canvas");r&&r.draw()},n.prototype.getContainerDOM=function(){var t=this.get("container"),r=t&&t.get("canvas");return r&&r.get("container")},n}(An);function ha(e,n,t){if(e){if("function"==typeof e.addEventListener)return e.addEventListener(n,t,!1),{remove:function(){e.removeEventListener(n,t,!1)}};if("function"==typeof e.attachEvent)return e.attachEvent("on"+n,t),{remove:function(){e.detachEvent("on"+n,t)}}}}var nu={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},OM=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.clearEvents=v.ZT,t.onStartEvent=function(r){return function(i){t.isMobile=r,i.originalEvent.preventDefault();var a=r?(0,v.U2)(i.originalEvent,"touches.0.clientX"):i.clientX,o=r?(0,v.U2)(i.originalEvent,"touches.0.clientY"):i.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var r=t.getContainerDOM(),i=[];i=t.isMobile?[ha(r,"touchmove",t.onMouseMove),ha(r,"touchend",t.onMouseUp),ha(r,"touchcancel",t.onMouseUp)]:[ha(r,"mousemove",t.onMouseMove),ha(r,"mouseup",t.onMouseUp),ha(r,"mouseleave",t.onMouseUp)],t.clearEvents=function(){i.forEach(function(a){a.remove()})}},t.onMouseMove=function(r){var i=t.cfg,a=i.isHorizontal,o=i.thumbOffset;r.preventDefault();var s=t.isMobile?(0,v.U2)(r,"touches.0.clientX"):r.clientX,l=t.isMobile?(0,v.U2)(r,"touches.0.clientY"):r.clientY,c=a?s:l,h=c-t.startPos;t.startPos=c,t.updateThumbOffset(o+h)},t.onMouseUp=function(r){r.preventDefault(),t.clearEvents()},t.onTrackClick=function(r){var i=t.cfg,a=i.isHorizontal,o=i.x,s=i.y,l=i.thumbLen,h=t.getContainerDOM().getBoundingClientRect(),y=t.validateRange(a?r.clientX-h.left-o-l/2:r.clientY-h.top-s-l/2);t.updateThumbOffset(y)},t.onThumbMouseOver=function(){var r=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",r),t.draw()},t.onThumbMouseOut=function(){var r=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",r),t.draw()},t}return(0,g.ZT)(n,e),n.prototype.setRange=function(t,r){this.set("minLimit",t),this.set("maxLimit",r);var i=this.getValue(),a=(0,v.uZ)(i,t,r);i!==a&&!this.get("isInit")&&this.setValue(a)},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var r=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,v.uZ)(t,r.min,r.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},n.prototype.getValue=function(){return(0,v.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:nu})},n.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.renderTrackShape=function(t){var r=this.cfg,i=r.trackLen,a=r.theme,s=(0,v.b$)({},nu,void 0===a?{default:{}}:a).default,l=s.lineCap,c=s.trackColor,f=(0,v.U2)(this.cfg,"size",s.size),p=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:i-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:i-f/2,lineWidth:f,stroke:c,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:p})},n.prototype.renderThumbShape=function(t){var r=this.cfg,i=r.thumbOffset,a=r.thumbLen,s=(0,v.b$)({},nu,r.theme).default,c=s.lineCap,h=s.thumbColor,f=(0,v.U2)(this.cfg,"size",s.size),p=this.get("isHorizontal")?{x1:i+f/2,y1:f/2,x2:i+a-f/2,y2:f/2,lineWidth:f,stroke:h,lineCap:c,cursor:"default"}:{x1:f/2,y1:i+f/2,x2:f/2,y2:i+a-f/2,lineWidth:f,stroke:h,lineCap:c,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:p})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var i=t.findById(this.getElementId("thumb"));i.on("mouseover",this.onThumbMouseOver),i.on("mouseout",this.onThumbMouseOut)},n.prototype.getContainerDOM=function(){var t=this.get("container"),r=t&&t.get("canvas");return r&&r.get("container")},n.prototype.validateRange=function(t){var r=this.cfg,i=r.thumbLen,a=r.trackLen,o=t;return t+i>a?o=a-i:t+ia.x?a.x:n,t=ta.y?a.y:r,i=i=r&&e<=i}function Un(e,n){return"object"==typeof e&&n.forEach(function(t){delete e[t]}),e}function si(e,n,t){var r,i;void 0===n&&(n=[]),void 0===t&&(t=new Map);try{for(var a=(0,g.XA)(e),o=a.next();!o.done;o=a.next()){var s=o.value;t.has(s)||(n.push(s),t.set(s,!0))}}catch(l){r={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return n}var On=function(){function e(n,t,r,i){void 0===n&&(n=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=n,this.y=t,this.height=i,this.width=r}return e.fromRange=function(n,t,r,i){return new e(n,t,r-n,i-t)},e.fromObject=function(n){return new e(n.minX,n.minY,n.width,n.height)},Object.defineProperty(e.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(n){return this.x===n.x&&this.y===n.y&&this.width===n.width&&this.height===n.height},e.prototype.contains=function(n){return n.minX>=this.minX&&n.maxX<=this.maxX&&n.minY>=this.minY&&n.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var n=[],t=0;tn.minX&&this.minYn.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(n){return n.x>=this.minX&&n.x<=this.maxX&&n.y>=this.minY&&n.y<=this.maxY},e}();function lo(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var n=e.convert({x:0,y:0}),t=e.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function Ts(e,n){var t=e.getCenter();return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function va(e,n){var t=e.getCenter();return Math.atan2(n.y-t.y,n.x-t.x)}function ru(e,n){void 0===n&&(n=0);var t=e.start,r=e.end,i=e.getWidth(),a=e.getHeight();if(e.isPolar){var o=e.startAngle,s=e.endAngle,l=e.getCenter(),c=e.getRadius();return{type:"path",startState:{path:oi(l.x,l.y,c+n,o,o)},endState:function(f){return{path:oi(l.x,l.y,c+n,o,(s-o)*f+o)}},attrs:{path:oi(l.x,l.y,c+n,o,s)}}}return{type:"rect",startState:{x:t.x-n,y:r.y-n,width:e.isTransposed?i+2*n:0,height:e.isTransposed?0:a+2*n},endState:e.isTransposed?{height:a+2*n}:{width:i+2*n},attrs:{x:t.x-n,y:r.y-n,width:i+2*n,height:a+2*n}}}var XM=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function jv(e,n,t,r){return void 0===n&&(n={}),n.type?n.type:"identity"!==e.type&&la.includes(t)&&["interval"].includes(r)||e.isCategory?"cat":e.type}function co(e){return e.alias||e.field}function Kv(e,n,t){var a,i=e.values.length;if(1===i)a=[.5,1];else{var s=0;a=function GM(e){return!!e.isPolar&&e.endAngle-e.startAngle==2*Math.PI}(n)?n.isTransposed?[(s=1/i*(0,v.U2)(t,"widthRatio.multiplePie",1/1.3))/2,1-s/2]:[0,1-1/i]:[s=1/i/2,1-s]}return a}function qM(e){var n=e.values.filter(function(t){return!(0,v.UM)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,g.ev)((0,g.ev)([],(0,g.CR)(n),!1),[(0,v.UM)(e.max)?-1/0:e.max],!1))}function As(e,n){var t={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?t=function jM(e){var n,t;switch(e){case ue.TOP:n={x:0,y:1},t={x:1,y:1};break;case ue.RIGHT:n={x:1,y:0},t={x:1,y:1};break;case ue.BOTTOM:n={x:0,y:0},t={x:1,y:0};break;case ue.LEFT:n={x:0,y:0},t={x:0,y:1};break;default:n=t={x:0,y:0}}return{start:n,end:t}}(n):e.isPolar&&(t=function KM(e){var n,t;return e.isTransposed?(n={x:0,y:0},t={x:1,y:0}):(n={x:0,y:0},t={x:0,y:1}),{start:n,end:t}}(e));var i=t.end;return{start:e.convert(t.start),end:e.convert(i)}}function tp(e){return e.start.x===e.end.x}function ep(e,n){var t=e.start,r=e.end;return tp(e)?(t.y-r.y)*(n.x-t.x)>0?1:-1:(r.x-t.x)*(t.y-n.y)>0?-1:1}function Fs(e,n){var t=(0,v.U2)(e,["components","axis"],{});return(0,v.b$)({},(0,v.U2)(t,["common"],{}),(0,v.b$)({},(0,v.U2)(t,[n],{})))}function np(e,n,t){var r=(0,v.U2)(e,["components","axis"],{});return(0,v.b$)({},(0,v.U2)(r,["common","title"],{}),(0,v.b$)({},(0,v.U2)(r,[n,"title"],{})),t)}function iu(e){var n=e.x,t=e.y,r=e.circleCenter,i=t.start>t.end,a=e.convert(e.isTransposed?{x:i?0:1,y:0}:{x:0,y:i?0:1}),o=[a.x-r.x,a.y-r.y],s=[1,0],l=a.y>r.y?Le.EU(o,s):-1*Le.EU(o,s),c=l+(n.end-n.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:l,endAngle:c}}function Es(e,n){return(0,v.jn)(e)?!1!==e&&{}:(0,v.U2)(e,[n])}function rp(e,n){return(0,v.U2)(e,"position",n)}function ip(e,n){return(0,v.U2)(n,["title","text"],co(e))}var pa=function(){function e(n,t){this.destroyed=!1,this.facets=[],this.view=n,this.cfg=(0,v.b$)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var n=this.view.getData();this.facets=this.generateFacets(n)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(n){var r=n.data,i=n.padding,o=this.view.createView({region:n.region,padding:void 0===i?this.cfg.padding:i});o.data(r||[]),n.view=o,this.beforeEachView(o,n);var s=this.cfg.eachView;return s&&s(o,n),this.afterEachView(o,n),o},e.prototype.createContainer=function(){return this.view.getLayer(gn.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var n=this;return this.facets.map(function(t){return n.facetToView(t)})},e.prototype.clearFacetViews=function(){var n=this;(0,v.S6)(this.facets,function(t){t.view&&(n.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var n=this.view.viewBBox,t=n.width,r=n.height;return this.cfg.spacing.map(function(a,o){return(0,v.hj)(a)?a/(0===o?t:r):parseFloat(a)/100})},e.prototype.getFieldValues=function(n,t){var r=[],i={};return(0,v.S6)(n,function(a){var o=a[t];!(0,v.UM)(o)&&!i[o]&&(r.push(o),i[o]=!0)}),r},e.prototype.getRegion=function(n,t,r,i){var a=(0,g.CR)(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(0===t?1:t)-o,c=(1+s)/(0===n?1:n)-s,h={x:(l+o)*r,y:(c+s)*i};return{start:h,end:{x:h.x+l,y:h.y+c}}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(n,t){var r=n.getOptions(),a=n.geometries;if("rect"===(0,v.U2)(r.coordinate,"type","rect")&&a.length){(0,v.UM)(r.axes)&&(r.axes={});var s=r.axes,l=(0,g.CR)(a[0].getXYFields(),2),c=l[0],h=l[1],f=Es(s,c),p=Es(s,h);!1!==f&&(r.axes[c]=this.getXAxisOption(c,s,f,t)),!1!==p&&(r.axes[h]=this.getYAxisOption(h,s,p,t))}},e.prototype.getFacetDataFilter=function(n){return function(t){return(0,v.yW)(n,function(r){var i=r.field,a=r.value;return!(!(0,v.UM)(a)&&i)||t[i]===a})}},e}(),ap={},da=function(e,n){ap[(0,v.vl)(e)]=n},eC=function(){function e(n,t){this.context=n,this.cfg=t,n.addAction(this)}return e.prototype.applyCfg=function(n){(0,v.f0)(this,n)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}();const sn=eC;var nC=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.execute=function(){this.callback&&this.callback(this.context)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},n}(sn);const rC=nC;var ks={};function Is(e){return(0,v.U2)(ks[e],"ActionClass")}function be(e,n,t){ks[e]={ActionClass:n,cfg:t}}function aC(e,n){var t=new rC(n);return t.callback=e,t.name="callback",t}function au(e,n){for(var t=[e[0]],r=1,i=e.length;r0&&i>0&&(r>=n||i>=n)}function up(e,n){var t=e.getCanvasBBox();return cp(e,n)?t:null}function hp(e,n){return e.event.maskShapes.map(function(r){return up(r,n)}).filter(function(r){return!!r})}function fp(e,n){return cp(e,n)?e.attr("path"):null}function li(e){var t,r=e.event.target;return r&&(t=r.get("element")),t}function Ii(e){var r,t=e.event.target;return t&&(r=t.get("delegateObject")),r}function vp(e){var n=e.event.gEvent;return!(n&&n.fromShape&&n.toShape&&n.fromShape.get("element")===n.toShape.get("element"))}function ho(e){return e&&e.component&&e.component.isList()}function pp(e){return e&&e.component&&e.component.isSlider()}function fo(e){var t=e.event.target;return t&&"mask"===t?.get("name")||Ls(e)}function Ls(e){var n;return"multi-mask"===(null===(n=e.event.target)||void 0===n?void 0:n.get("name"))}function ou(e,n){var t=e.event.target;if(Ls(e))return function pC(e,n){if("path"===e.event.target.get("type")){var r=function vC(e,n){return e.event.maskShapes.map(function(r){return fp(r,n)})}(e,n);return r.length>0?r.flatMap(function(a){return xp(e.view,a)}):null}var i=hp(e,n);return i.length>0?i.flatMap(function(a){return Os(e.view,a)}):null}(e,n);if("path"===t.get("type")){var r=function fC(e,n){return fp(e.event.target,n)}(e,n);return r?xp(e.view,r):void 0}var i=lp(e,n);return i?Os(e.view,i):null}function dp(e,n,t){if(Ls(e))return function dC(e,n,t){var r=hp(e,t);return r.length>0?r.flatMap(function(i){return gp(i,e,n)}):null}(e,n,t);var r=lp(e,t);return r?gp(r,e,n):null}function gp(e,n,t){var r=n.view,i=lu(r,t,{x:e.x,y:e.y}),a=lu(r,t,{x:e.maxX,y:e.maxY});return Os(t,{minX:i.x,minY:i.y,maxX:a.x,maxY:a.y})}function Tn(e){var t=[];return(0,v.S6)(e.geometries,function(r){t=t.concat(r.elements)}),e.views&&e.views.length&&(0,v.S6)(e.views,function(r){t=t.concat(Tn(r))}),t}function yp(e,n){var r=[];return(0,v.S6)(e.geometries,function(i){var a=i.getElementsBy(function(o){return o.hasState(n)});r=r.concat(a)}),r}function ur(e,n){var r=e.getModel().data;return(0,v.kJ)(r)?r[0][n]:r[n]}function Os(e,n){var t=Tn(e),r=[];return(0,v.S6)(t,function(i){var o=i.shape.getCanvasBBox();(function yC(e,n){return!(n.minX>e.maxX||n.maxXe.maxY||n.maxY=n.x&&e.y<=n.y&&e.maxY>n.y}function _r(e){var n=e.parent,t=null;return n&&(t=n.views.filter(function(r){return r!==e})),t}function lu(e,n,t){var r=function xC(e,n){return e.getCoordinate().invert(n)}(e,t);return n.getCoordinate().convert(r)}function wp(e,n,t,r){var i=!1;return(0,v.S6)(e,function(a){if(a[t]===n[t]&&a[r]===n[r])return i=!0,!1}),i}function ga(e,n){var t=e.getScaleByField(n);return!t&&e.views&&(0,v.S6)(e.views,function(r){if(t=ga(r,n))return!1}),t}var MC=function(){function e(n){this.actions=[],this.event=null,this.cacheMap={},this.view=n}return e.prototype.cache=function(){for(var n=[],t=0;t=0&&t.splice(r,1)},e.prototype.getCurrentPoint=function(){var n=this.event;return n?n.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(n.clientX,n.clientY):{x:n.x,y:n.y}:null},e.prototype.getCurrentShape=function(){return(0,v.U2)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var n=this.getCurrentPoint();return!!n&&this.view.isPointInPlot(n)},e.prototype.isInShape=function(n){var t=this.getCurrentShape();return!!t&&t.get("name")===n},e.prototype.isInComponent=function(n){var t=Mp(this.view),r=this.getCurrentPoint();return!!r&&!!t.find(function(i){var a=i.getBBox();return n?i.get("name")===n&&Cp(a,r):Cp(a,r)})},e.prototype.destroy=function(){(0,v.S6)(this.actions.slice(),function(n){n.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}();const CC=MC;var wC=function(){function e(n,t){this.view=n,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();function Sp(e,n,t){var r=e.split(":"),i=r[0],a=n.getAction(i)||function iC(e,n){var t=ks[e],r=null;return t&&((r=new(0,t.ActionClass)(n,t.cfg)).name=e,r.init()),r}(i,n);if(!a)throw new Error("There is no action named ".concat(i));return{action:a,methodName:r[1],arg:t}}function _p(e){var n=e.action,t=e.methodName,r=e.arg;if(!n[t])throw new Error("Action(".concat(n.name,") doesn't have a method called ").concat(t));n[t](r)}var _C=function(e){function n(t,r){var i=e.call(this,t,r)||this;return i.callbackCaches={},i.emitCaches={},i.steps=r,i}return(0,g.ZT)(n,e),n.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},n.prototype.initEvents=function(){var t=this;(0,v.S6)(this.steps,function(r,i){(0,v.S6)(r,function(a){var o=t.getActionCallback(i,a);o&&t.bindEvent(a.trigger,o)})})},n.prototype.clearEvents=function(){var t=this;(0,v.S6)(this.steps,function(r,i){(0,v.S6)(r,function(a){var o=t.getActionCallback(i,a);o&&t.offEvent(a.trigger,o)})})},n.prototype.initContext=function(){var r=new CC(this.view);this.context=r,(0,v.S6)(this.steps,function(a){(0,v.S6)(a,function(o){if((0,v.mf)(o.action))o.actionObject={action:aC(o.action,r),methodName:"execute"};else if((0,v.HD)(o.action))o.actionObject=Sp(o.action,r,o.arg);else if((0,v.kJ)(o.action)){var s=o.action,l=(0,v.kJ)(o.arg)?o.arg:[o.arg];o.actionObject=[],(0,v.S6)(s,function(c,h){o.actionObject.push(Sp(c,r,l[h]))})}})})},n.prototype.isAllowStep=function(t){var r=this.currentStepName;if(r===t||"showEnable"===t)return!0;if("processing"===t)return"start"===r;if("start"===t)return"processing"!==r;if("end"===t)return"processing"===r||"start"===r;if("rollback"===t){if(this.steps.end)return"end"===r;if("start"===r)return!0}return!1},n.prototype.isAllowExecute=function(t,r){if(this.isAllowStep(t)){var i=this.getKey(t,r);return(!r.once||!this.emitCaches[i])&&(!r.isEnable||r.isEnable(this.context))}return!1},n.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},n.prototype.afterExecute=function(t,r){"showEnable"!==t&&this.currentStepName!==t&&this.enterStep(t);var i=this.getKey(t,r);this.emitCaches[i]=!0},n.prototype.getKey=function(t,r){return t+r.trigger+r.action},n.prototype.getActionCallback=function(t,r){var i=this,a=this.context,o=this.callbackCaches,s=r.actionObject;if(r.action&&s){var l=this.getKey(t,r);if(!o[l]){var c=function(h){a.event=h,i.isAllowExecute(t,r)?((0,v.kJ)(s)?(0,v.S6)(s,function(f){a.event=h,_p(f)}):(a.event=h,_p(s)),i.afterExecute(t,r),r.callback&&(a.event=h,r.callback(a))):a.event=null};o[l]=r.debounce?(0,v.Ds)(c,r.debounce.wait,r.debounce.immediate):r.throttle?(0,v.P2)(c,r.throttle.wait,{leading:r.throttle.leading,trailing:r.throttle.trailing}):c}return o[l]}return null},n.prototype.bindEvent=function(t,r){var i=t.split(":");"window"===i[0]?window.addEventListener(i[1],r):"document"===i[0]?document.addEventListener(i[1],r):this.view.on(t,r)},n.prototype.offEvent=function(t,r){var i=t.split(":");"window"===i[0]?window.removeEventListener(i[1],r):"document"===i[0]?document.removeEventListener(i[1],r):this.view.off(t,r)},n}(wC);const bC=_C;var bp={};function Oe(e,n){bp[(0,v.vl)(e)]=n}function Tp(e){var n,t={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},r=function FC(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}(e),i=function EC(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=so(a.getModel(),o),h=(s.startAngle+s.endAngle)/2,p=7.5*Math.cos(h),d=7.5*Math.sin(h);return{matrix:an.vs(null,[["t",p,d]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,g.pi)((0,g.pi)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,g.pi)((0,g.pi)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,g.pi)((0,g.pi)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,g.pi)((0,g.pi)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,g.pi)((0,g.pi)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,g.pi)((0,g.pi)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,g.pi)((0,g.pi)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,g.pi)((0,g.pi)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,v.b$)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,v.b$)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(n={},n["".concat(Nr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},n["".concat(Vr)]={marginBottom:"12px",marginTop:"12px"},n["".concat(oo)]={margin:0,listStyleType:"none",padding:0},n["".concat(Cs)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},n["".concat(ws)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},n["".concat(Ss)]={display:"inline-block",float:"right",marginLeft:"30px"},n)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var je_65="#595959",je_25="#BFBFBF",kC=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],IC=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],DC=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ap=function(e){void 0===e&&(e={});var n=e.paletteQualitative10,t=void 0===n?kC:n,r=e.paletteQualitative20,a=e.brandColor,o=void 0===a?t[0]:a;return(0,g.pi)((0,g.pi)({},{backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:void 0===r?IC:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:DC,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:je_25,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:je_65,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:"#D9D9D9",axisTickLineBorderColor:je_25,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:"#D9D9D9",axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:"#8C8C8C",axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:"#D9D9D9",axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:"#8C8C8C",legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:je_65,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:"#000",legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:"#000",legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:"#8C8C8C",legendPageNavigatorTextFontSize:12,sliderRailFillColor:"#D9D9D9",sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:"#8C8C8C",sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:"#F0F0F0",sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:je_25,annotationArcBorderColor:"#D9D9D9",annotationArcBorder:1,annotationLineBorderColor:je_25,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:je_65,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:"#000",annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:je_25,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:je_65,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:je_65,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:"#FFFFFF",innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:je_65,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:"#FFFFFF",overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:je_25,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:"#FFFFFF",pointBorderOpacity:1,pointActiveBorderColor:"#000",pointSelectedBorder:2,pointSelectedBorderColor:"#000",pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:"#FFFFFF",hollowPointActiveBorder:1,hollowPointActiveBorderColor:"#000",hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:"#000",hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:"#000",hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:"#000",hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:"#000",intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:"#000",intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:"#FFFFFF",hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:"#000",hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:"#000",hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),e)};function Ps(e){var n=e.styleSheet,t=void 0===n?{}:n,r=(0,g._T)(e,["styleSheet"]),i=Ap(t);return(0,v.b$)({},Tp(i),r)}Ap();var cu={default:Ps({})};function vo(e){return(0,v.U2)(cu,(0,v.vl)(e),cu.default)}function Fp(e,n,t){var r=t.translate(e),i=t.translate(n);return(0,v.vQ)(r,i)}function Ep(e,n,t){var r=t.coordinate,i=t.getYScale(),a=i.field,o=r.invert(n),s=i.invert(o.y);return(0,v.sE)(e,function(c){var h=c[nn];return h[a][0]<=s&&h[a][1]>=s})||e[e.length-1]}var zC=(0,v.HP)(function(e){if(e.isCategory)return 1;for(var n=e.values,t=n.length,r=e.translate(n[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(t-1)});function kp(e){var n,t,i,r=function RC(e){var n=(0,v.VO)(e.attributes);return(0,v.hX)(n,function(t){return(0,v.FX)(la,t.type)})}(e);try{for(var a=(0,g.XA)(r),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear&&"cat"!==jv(l,(0,v.U2)(e.scaleDefs,l.field),s.type,e.type)){i=l;break}}}catch(d){n={error:d}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}var f=e.getXScale(),p=e.getYScale();return i||p||f}function Ip(e,n,t){if(0===n.length)return null;var r=t.type,i=t.getXScale(),a=t.getYScale(),o=i.field,s=a.field,l=null;if("heatmap"===r||"point"===r){for(var h=t.coordinate.invert(e),f=i.invert(h.x),p=a.invert(h.y),d=1/0,y=0;y(1+a)/2&&(l=o),r.translate(r.invert(l))}(e,t),E=C[nn][o],tt=S[nn][o],it=a.isLinear&&(0,v.kJ)(C[nn][s]);if((0,v.kJ)(E)){for(y=0;y=b){if(!it){l=wt;break}(0,v.kJ)(l)||(l=[]),l.push(wt)}(0,v.kJ)(l)&&(l=Ep(l,e,t))}else{var yt=void 0;if(i.isLinear||"timeCat"===i.type){if((b>i.translate(tt)||bi.max||bMath.abs(i.translate(yt[nn][o])-b)&&(S=yt)}var ze=zC(t.getXScale());return!l&&Math.abs(i.translate(S[nn][o])-b)<=ze/2&&(l=S),l}function uu(e,n,t,r){var i,a;void 0===t&&(t=""),void 0===r&&(r=!1);var f,p,o=e[nn],s=function BC(e,n,t){var i=n.getAttribute("position").getFields(),a=n.scales,o=(0,v.mf)(t)||!t?i[0]:t,s=a[o],l=s?s.getText(e[o]):e[o]||o;return(0,v.mf)(t)?t(l,e):l}(o,n,t),l=n.tooltipOption,c=n.theme.defaultColor,h=[];function d(wt,yt){(r||!(0,v.UM)(yt)&&""!==yt)&&h.push({title:s,data:o,mappingData:e,name:wt,value:yt,color:e.color||c,marker:!0})}if((0,v.Kn)(l)){var y=l.fields,m=l.callback;if(m){var x=y.map(function(wt){return e[nn][wt]}),M=m.apply(void 0,(0,g.ev)([],(0,g.CR)(x),!1)),C=(0,g.pi)({data:e[nn],mappingData:e,title:s,color:e.color||c,marker:!0},M);h.push(C)}else{var S=n.scales;try{for(var b=(0,g.XA)(y),E=b.next();!E.done;E=b.next()){var W=E.value;if(!(0,v.UM)(o[W])){var tt=S[W];d(f=co(tt),p=tt.getText(o[W]))}}}catch(wt){i={error:wt}}finally{try{E&&!E.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}}}else{var it=kp(n);p=function NC(e,n){var r=e[n.field];return(0,v.kJ)(r)?r.map(function(a){return n.getText(a)}).join("-"):n.getText(r)}(o,it),f=function VC(e,n){var t,r=n.getGroupScales();return r.length&&(t=r[0]),t?t.getText(e[t.field]):co(kp(n))}(o,n),d(f,p)}return h}function Dp(e,n,t,r){var i,a,o=r.showNil,s=[],l=e.dataArray;if(!(0,v.xb)(l)){e.sort(l);try{for(var c=(0,g.XA)(l),h=c.next();!h.done;h=c.next()){var p=Ip(n,h.value,e);if(p){var d=e.getElementId(p);if("heatmap"===e.type||e.elementsMap[d].visible){var m=uu(p,e,t,o);m.length&&s.push(m)}}}}catch(x){i={error:x}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}}return s}function Lp(e,n,t,r){var i=r.showNil,a=[],s=e.container.getShape(n.x,n.y);if(s&&s.get("visible")&&s.get("origin")){var c=uu(s.get("origin").mappingData,e,t,i);c.length&&a.push(c)}return a}function hu(e,n,t){var r,i,a=[],o=e.geometries,s=t.shared,l=t.title,c=t.reversed;try{for(var h=(0,g.XA)(o),f=h.next();!f.done;f=h.next()){var p=f.value;if(p.visible&&!1!==p.tooltipOption){var d=p.type,y=void 0;(y=["point","edge","polygon"].includes(d)?Lp(p,n,l,t):["area","line","path","heatmap"].includes(d)||!1!==s?Dp(p,n,l,t):Lp(p,n,l,t)).length&&(c&&y.reverse(),a.push(y))}}}catch(m){r={error:m}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return a}function fu(e){void 0===e&&(e=0);var n=(0,v.kJ)(e)?e:[e];switch(n.length){case 0:n=[0,0,0,0];break;case 1:n=new Array(4).fill(n[0]);break;case 2:n=(0,g.ev)((0,g.ev)([],(0,g.CR)(n),!1),(0,g.CR)(n),!1);break;case 3:n=(0,g.ev)((0,g.ev)([],(0,g.CR)(n),!1),[n[1]],!1);break;default:n=n.slice(0,4)}return n}var zs={};function Di(e,n){zs[e]=n}function GC(e){return zs[e]}var ZC=function(){function e(n){this.option=this.wrapperOption(n)}return e.prototype.update=function(n){return this.option=this.wrapperOption(n),this},e.prototype.hasAction=function(n){return(0,v.G)(this.option.actions,function(r){return r[0]===n})},e.prototype.create=function(n,t){var r=this.option,i=r.type,o="theta"===i,s=(0,g.pi)({start:n,end:t},r.cfg),l=function(e){return _v[e.toLowerCase()]}(o?"polar":i);return this.coordinate=new l(s),this.coordinate.type=i,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(n,t){return this.coordinate.update({start:n,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(n){return this.option.actions.push(["rotate",n]),this},e.prototype.reflect=function(n){return this.option.actions.push(["reflect",n]),this},e.prototype.scale=function(n,t){return this.option.actions.push(["scale",n,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(n){return(0,g.pi)({type:"rect",actions:[],cfg:{}},n)},e.prototype.execActions=function(n){var t=this;(0,v.S6)(this.option.actions,function(i){var a,o=(0,g.CR)(i),s=o[0],l=o.slice(1);((0,v.UM)(n)||n.includes(s))&&(a=t.coordinate)[s].apply(a,(0,g.ev)([],(0,g.CR)(l),!1))})},e}();const WC=ZC;var XC=function(){function e(n,t,r){this.view=n,this.gEvent=t,this.data=r,this.type=t.type}return e.fromData=function(n,t,r){return new e(n,new bn.Event(t,{}),r)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}();const un=XC;function $C(e){var n=e.getController("axis"),t=e.getController("legend"),r=e.getController("annotation");[n,e.getController("slider"),e.getController("scrollbar"),t,r].forEach(function(o){o&&o.layout()})}var JC=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(n,t,r,i){var a=r,o=this.getScaleMeta(i);if(0===t.length&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=(0,v.b$)(l,o.scaleDef,r)}var c=function JM(e,n,t){var r=n||[];if((0,v.hj)(e)||(0,v.UM)((0,v.Wx)(r,e))&&(0,v.xb)(t))return new(Oc("identity"))({field:e.toString(),values:[e]});var a=(0,v.I)(r,e),o=(0,v.U2)(t,"type",function $M(e){var n="linear";return XM.test(e)?n="timeCat":(0,v.HD)(e)&&(n="cat"),n}(a[0]));return new(Oc(o))((0,g.pi)({field:e,values:a},t))}(n,t,a);return this.cacheScale(c,r,i),c},e.prototype.sync=function(n,t){var r=this;this.syncScales.forEach(function(i,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];(0,v.S6)(i,function(c){var h=r.getScale(c);s=(0,v.hj)(h.max)?Math.max(s,h.max):s,o=(0,v.hj)(h.min)?Math.min(o,h.min):o,(0,v.S6)(h.values,function(f){l.includes(f)||l.push(f)})}),(0,v.S6)(i,function(c){var h=r.getScale(c);if(h.isContinuous)h.change({min:o,max:s,values:l});else if(h.isCategory){var f=h.range,p=r.getScaleMeta(c);l&&!(0,v.U2)(p,["scaleDef","range"])&&(f=Kv((0,v.b$)({},h,{values:l}),n,t)),h.change({values:l,range:f})}})})},e.prototype.cacheScale=function(n,t,r){var i=this.getScaleMeta(r);i&&i.scale.type===n.type?(function QM(e,n){if("identity"!==e.type&&"identity"!==n.type){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);e.change(t)}}(i.scale,n),i.scaleDef=t):this.scales.set(r,i={key:r,scale:n,scaleDef:t});var a=this.getSyncKey(i);if(i.syncKey=a,this.removeFromSyncScales(r),a){var o=this.syncScales.get(a);o||this.syncScales.set(a,o=[]),o.push(r)}},e.prototype.getScale=function(n){var t=this.getScaleMeta(n);if(!t){var r=(0,v.Z$)(n.split("-")),i=this.syncScales.get(r);i&&i.length&&(t=this.getScaleMeta(i[0]))}return t&&t.scale},e.prototype.deleteScale=function(n){var t=this.getScaleMeta(n);if(t){var i=this.syncScales.get(t.syncKey);if(i&&i.length){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}}this.scales.delete(n)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(n){var t=this;this.syncScales.forEach(function(r,i){var a=r.indexOf(n);if(-1!==a)return r.splice(a,1),0===r.length&&t.syncScales.delete(i),!1})},e.prototype.getSyncKey=function(n){var i=n.scale.field,a=(0,v.U2)(n.scaleDef,["sync"]);return!0===a?i:!1===a?void 0:a},e.prototype.getScaleMeta=function(n){return this.scales.get(n)},e}(),Bs=function(){function e(n,t,r,i){void 0===n&&(n=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),this.top=n,this.right=t,this.bottom=r,this.left=i}return e.instance=function(n,t,r,i){return void 0===n&&(n=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),new e(n,t,r,i)},e.prototype.max=function(n){var t=(0,g.CR)(n,4),i=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,t[0]),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(n){var t=(0,g.CR)(n,4),i=t[1],a=t[2],o=t[3];return this.top+=t[0],this.right+=i,this.bottom+=a,this.left+=o,this},e.prototype.inc=function(n,t){var r=n.width,i=n.height;switch(t){case ue.TOP:case ue.TOP_LEFT:case ue.TOP_RIGHT:this.top+=i;break;case ue.RIGHT:case ue.RIGHT_TOP:case ue.RIGHT_BOTTOM:this.right+=r;break;case ue.BOTTOM:case ue.BOTTOM_LEFT:case ue.BOTTOM_RIGHT:this.bottom+=i;break;case ue.LEFT:case ue.LEFT_TOP:case ue.LEFT_BOTTOM:this.left+=r}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,g.ev)([void 0],(0,g.CR)(this.getPadding()),!1)))},e}();function qC(e,n,t){var r=t.instance();n.forEach(function(i){i.autoPadding=r.max(i.autoPadding.getPadding())})}var Op=function(e){function n(t){var r=e.call(this,{visible:t.visible})||this;r.views=[],r.geometries=[],r.controllers=[],r.interactions={},r.limitInPlot=!1,r.options={data:[],animate:!0},r.usedControllers=function HC(){return Object.keys(zs)}(),r.scalePool=new JC,r.layoutFunc=$C,r.isPreMouseInPlot=!1,r.isDataChanged=!1,r.isCoordinateChanged=!1,r.createdScaleKeys=new Map,r.onCanvasEvent=function(S){var b=S.name;if(!b.includes(":")){var E=r.createViewEvent(S);r.doPlotEvent(E),r.emit(b,E)}},r.onDelegateEvents=function(S){var b=S.name;if(b.includes(":")){var E=r.createViewEvent(S);r.emit(b,E)}};var i=t.id,a=void 0===i?(0,v.EL)("view"):i,s=t.canvas,l=t.backgroundGroup,c=t.middleGroup,h=t.foregroundGroup,f=t.region,p=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=t.padding,y=t.appendPadding,m=t.theme,x=t.options,M=t.limitInPlot,C=t.syncViewPadding;return r.parent=t.parent,r.canvas=s,r.backgroundGroup=l,r.middleGroup=c,r.foregroundGroup=h,r.region=p,r.padding=d,r.appendPadding=y,r.options=(0,g.pi)((0,g.pi)({},r.options),x),r.limitInPlot=M,r.id=a,r.syncViewPadding=C,r.themeObject=(0,v.Kn)(m)?(0,v.b$)({},vo("default"),Ps(m)):vo(m),r.init(),r}return(0,g.ZT)(n,e),n.prototype.setLayout=function(t){this.layoutFunc=t},n.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},n.prototype.render=function(t,r){void 0===t&&(t=!1),this.emit(Ue.BEFORE_RENDER,un.fromData(this,Ue.BEFORE_RENDER,r)),this.paint(t),this.emit(Ue.AFTER_RENDER,un.fromData(this,Ue.AFTER_RENDER,r)),!1===this.visible&&this.changeVisible(!1)},n.prototype.clear=function(){var t=this;this.emit(Ue.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var r=this.geometries,i=0;i');yt.appendChild(Ut);var ee=Df(yt,l,a,o),me=function Um(e){var n=Ff[e];if(!n)throw new Error("G engine '".concat(e,"' is not exist, please register it at first."));return n}(p),_e=new me.Canvas((0,g.pi)({container:Ut,pixelRatio:d,localRefresh:m,supportCSSTransform:S},ee));return(r=e.call(this,{parent:null,canvas:_e,backgroundGroup:_e.addGroup({zIndex:1}),middleGroup:_e.addGroup({zIndex:2}),foregroundGroup:_e.addGroup({zIndex:3}),padding:c,appendPadding:h,visible:M,options:W,limitInPlot:tt,theme:it,syncViewPadding:wt})||this).onResize=(0,v.Ds)(function(){r.forceFit()},300),r.ele=yt,r.canvas=_e,r.width=ee.width,r.height=ee.height,r.autoFit=l,r.localRefresh=m,r.renderer=p,r.wrapperElement=Ut,r.updateCanvasStyle(),r.bindAutoFit(),r.initDefaultInteractions(E),r}return(0,g.ZT)(n,e),n.prototype.initDefaultInteractions=function(t){var r=this;(0,v.S6)(t,function(i){r.interaction(i)})},n.prototype.aria=function(t){var r="aria-label";!1===t?this.ele.removeAttribute(r):this.ele.setAttribute(r,t.label)},n.prototype.changeSize=function(t,r){return this.width===t&&this.height===r||(this.emit(Ue.BEFORE_CHANGE_SIZE),this.width=t,this.height=r,this.canvas.changeSize(t,r),this.render(!0),this.emit(Ue.AFTER_CHANGE_SIZE)),this},n.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),function Gm(e){var n=e.parentNode;n&&n.removeChild(e)}(this.wrapperElement),this.wrapperElement=null},n.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},n.prototype.forceFit=function(){if(!this.destroyed){var t=Df(this.ele,!0,this.width,this.height);this.changeSize(t.width,t.height)}},n.prototype.updateCanvasStyle=function(){Ln(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},n.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},n.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},n}(Op);const KC=jC;var ma=function(){function e(n){this.visible=!0,this.components=[],this.view=n}return e.prototype.clear=function(n){(0,v.S6)(this.components,function(t){t.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(n){this.visible!==n&&(this.components.forEach(function(t){n?t.component.show():t.component.hide()}),this.visible=n)},e}(),ew=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},n.prototype.render=function(){},n.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var r=this.view,i=this.getTooltipItems(t);if(!i.length)return void this.hideTooltip();var a=this.getTitle(i),o={x:i[0].x,y:i[0].y};r.emit("tooltip:show",un.fromData(r,"tooltip:show",(0,g.pi)({items:i,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,c=s.showMarkers,h=s.showCrosshairs,f=s.showContent,p=s.marker,d=this.items;if((0,v.Xy)(this.title,a)&&(0,v.Xy)(d,i)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(r.emit("tooltip:change",un.fromData(r,"tooltip:change",(0,g.pi)({items:i,title:a},t))),((0,v.mf)(f)?f(i):f)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,v.CD)({},s,{items:this.getItemsAfterProcess(i),title:a},l?t:{})),this.tooltip.show()),c&&this.renderTooltipMarkers(i,p)),this.items=i,this.title=a,h){var m=(0,v.U2)(s,["crosshairs","follow"],!1);this.renderCrosshairs(m?t:o,s)}}},n.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var r=this.tooltipMarkersGroup;r&&r.hide();var i=this.xCrosshair,a=this.yCrosshair;i&&i.hide(),a&&a.hide();var o=this.tooltip;o&&o.hide(),this.view.emit("tooltip:hide",un.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},n.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},n.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},n.prototype.isTooltipLocked=function(){return this.isLocked},n.prototype.clear=function(){var t=this,r=t.tooltip,i=t.xCrosshair,a=t.yCrosshair,o=t.tooltipMarkersGroup;r&&(r.hide(),r.clear()),i&&i.clear(),a&&a.clear(),o&&o.clear(),r?.get("customContent")&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},n.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},n.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},n.prototype.changeVisible=function(t){if(this.visible!==t){var r=this,i=r.tooltip,a=r.tooltipMarkersGroup,o=r.xCrosshair,s=r.yCrosshair;t?(i&&i.show(),a&&a.show(),o&&o.show(),s&&s.show()):(i&&i.hide(),a&&a.hide(),o&&o.hide(),s&&s.hide()),this.visible=t}},n.prototype.getTooltipItems=function(t){var r,i,a,o,s,l,c=this.findItemsFromView(this.view,t);if(c.length){c=(0,v.xH)(c);try{for(var h=(0,g.XA)(c),f=h.next();!f.done;f=h.next()){var p=f.value;try{for(var d=(a=void 0,(0,g.XA)(p)),y=d.next();!y.done;y=d.next()){var m=y.value,x=m.mappingData,M=x.x,C=x.y;m.x=(0,v.kJ)(M)?M[M.length-1]:M,m.y=(0,v.kJ)(C)?C[C.length-1]:C}}catch(yt){a={error:yt}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(yt){r={error:yt}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}if(!1===this.getTooltipCfg().shared&&c.length>1){var b=c[0],E=Math.abs(t.y-b[0].y);try{for(var W=(0,g.XA)(c),tt=W.next();!tt.done;tt=W.next()){var it=tt.value,wt=Math.abs(t.y-it[0].y);wt<=E&&(b=it,E=wt)}}catch(yt){s={error:yt}}finally{try{tt&&!tt.done&&(l=W.return)&&l.call(W)}finally{if(s)throw s.error}}c=[b]}return function tw(e){for(var n=[],t=function(i){var a=e[i];(0,v.sE)(n,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title})||n.push(a)},r=0;r'+s+"":s}})},n.prototype.getTitle=function(t){var r=t[0].title||t[0].name;return this.title=r,r},n.prototype.renderTooltip=function(){var t=this.view.getCanvas(),r={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},i=this.getTooltipCfg(),a=new bs((0,g.pi)((0,g.pi)({parent:t.get("el").parentNode,region:r},i),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},n.prototype.renderTooltipMarkers=function(t,r){var i,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var c=(0,g.XA)(t),h=c.next();!h.done;h=c.next()){var f=h.value,p=f.x,d=f.y;if(l||o?.getClip()){var y=ru(s.getCoordinate()),m=y.type,x=y.attrs;o?.setClip({type:m,attrs:x})}else o?.setClip(void 0);var M=this.view.getTheme(),C=(0,v.U2)(M,["components","tooltip","marker"],{}),S=(0,g.pi)((0,g.pi)({fill:f.color,symbol:"circle",shadowColor:f.color},(0,v.mf)(r)?(0,g.pi)((0,g.pi)({},C),r(f)):r),{x:p,y:d});o.addShape("marker",{attrs:S})}}catch(b){i={error:b}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}},n.prototype.renderCrosshairs=function(t,r){var i=(0,v.U2)(r,["crosshairs","type"],"x");"x"===i?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,r)):"y"===i?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,r)):"xy"===i&&(this.renderXCrosshairs(t,r),this.renderYCrosshairs(t,r))},n.prototype.renderXCrosshairs=function(t,r){var a,o,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect)i.isTransposed?(a={x:i.start.x,y:t.y},o={x:i.end.x,y:t.y}):(a={x:t.x,y:i.end.y},o={x:t.x,y:i.start.y});else{var s=va(i,t),l=i.getCenter(),c=i.getRadius();o=yn(l.x,l.y,c,s),a=l}var h=(0,v.b$)({start:a,end:o,container:this.getTooltipCrosshairsGroup()},(0,v.U2)(r,"crosshairs",{}),this.getCrosshairsText("x",t,r));delete h.type;var f=this.xCrosshair;f?f.update(h):(f=new Rv(h)).init(),f.render(),f.show(),this.xCrosshair=f},n.prototype.renderYCrosshairs=function(t,r){var a,o,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect){var s=void 0,l=void 0;i.isTransposed?(s={x:t.x,y:i.end.y},l={x:t.x,y:i.start.y}):(s={x:i.start.x,y:t.y},l={x:i.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:i.getCenter(),radius:Ts(i,t),startAngle:i.startAngle,endAngle:i.endAngle},o="Circle";delete(a=(0,v.b$)({container:this.getTooltipCrosshairsGroup()},a,(0,v.U2)(r,"crosshairs",{}),this.getCrosshairsText("y",t,r))).type;var c=this.yCrosshair;c?i.isRect&&"circle"===c.get("type")||!i.isRect&&"line"===c.get("type")?(c=new kt[o](a)).init():c.update(a):(c=new kt[o](a)).init(),c.render(),c.show(),this.yCrosshair=c},n.prototype.getCrosshairsText=function(t,r,i){var a=(0,v.U2)(i,["crosshairs","text"]),o=(0,v.U2)(i,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),c=s[0],h=l.getXScale(),f=l.getYScales()[0],p=void 0,d=void 0;if(o){var y=this.view.getCoordinate().invert(r);p=h.invert(y.x),d=f.invert(y.y)}else p=c.data[h.field],d=c.data[f.field];var m="x"===t?p:d;return(0,v.mf)(a)?a=a(t,m,s,r):a.content=m,{text:a}}},n.prototype.getGuideGroup=function(){return this.guideGroup||(this.guideGroup=this.view.foregroundGroup.addGroup({name:"tooltipGuide",capture:!1})),this.guideGroup},n.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},n.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},n.prototype.findItemsFromView=function(t,r){var i,a;if(!1===t.getOptions().tooltip)return[];var s=hu(t,r,this.getTooltipCfg());try{for(var l=(0,g.XA)(t.views),c=l.next();!c.done;c=l.next())s=s.concat(this.findItemsFromView(c.value,r))}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return s},n.prototype.getViewWithGeometry=function(t){var r=this;return t.geometries.length?t:(0,v.sE)(t.views,function(i){return r.getViewWithGeometry(i)})},n.prototype.getItemsAfterProcess=function(t){return(this.getTooltipCfg().customItems||function(a){return a})(t)},n}(ma);const Pp=ew;var zp={};function Bp(e){return zp[e.toLowerCase()]}function Qn(e,n){zp[e.toLowerCase()]=n}var xa={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},nw={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Rp={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var n;return e.isRect?n=e.isTransposed?"grow-in-x":"grow-in-y":(n="grow-in-xy",e.isPolar&&e.isTransposed&&(n="wave-in")),{animation:n}},schema:function(e){return{animation:e.isRect?e.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Np(e,n,t){var r=nw[e];return r&&((0,v.mf)(r)&&(r=r(n)),r=(0,v.b$)({},xa,r),t)?r[t]:r}function Ma(e,n,t){var r=(0,v.U2)(e.get("origin"),"data",nn),i=n.animation,a=function rw(e,n){return{delay:(0,v.mf)(e.delay)?e.delay(n):e.delay,easing:(0,v.mf)(e.easing)?e.easing(n):e.easing,duration:(0,v.mf)(e.duration)?e.duration(n):e.duration,callback:e.callback,repeat:e.repeat}}(n,r);if(i){var o=Bp(i);o&&o(e,a,t)}else e.animate(t.toAttrs,a)}var vu="element-background",aw=function(e){function n(t){var r=e.call(this,t)||this;r.labelShape=[],r.states=[];var a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,c=void 0===l||l;return r.shapeFactory=t.shapeFactory,r.container=a,r.offscreenGroup=o,r.visible=c,r.elementIndex=s,r}return(0,g.ZT)(n,e),n.prototype.draw=function(t,r){void 0===r&&(r=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,r),!1===this.visible&&this.changeVisible(!1)},n.prototype.update=function(t){var i=this.shapeFactory,a=this.shape;if(a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=i.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},n.prototype.destroy=function(){var r=this.shapeFactory,i=this.shape;if(i){var a=this.getAnimateCfg("leave");a?Ma(i,a,{coordinate:r.coordinate,toAttrs:(0,g.pi)({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},n.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(r){r.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(r){r.hide()}))},n.prototype.setState=function(t,r){var i=this,a=i.states,o=i.shapeFactory,s=i.model,l=i.shape,c=i.shapeType,h=a.indexOf(t);if(r){if(h>-1)return;a.push(t),("active"===t||"selected"===t)&&l?.toFront()}else{if(-1===h)return;if(a.splice(h,1),"active"===t||"selected"===t){var f=this.geometry,y=f.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;f.sortZIndex?l.setZIndex(y):l.set("zIndex",y)}}var m=o.drawShape(c,s,this.getOffscreenGroup());this.syncShapeStyle(l,m,a.length?a:["reset"],null),m.remove(!0);var x={state:t,stateStatus:r,element:this,target:this.container};this.container.emit("statechange",x),bv(this.shape,"statechange",x)},n.prototype.clearStates=function(){var t=this;(0,v.S6)(this.states,function(i){t.setState(i,!1)}),this.states=[]},n.prototype.hasState=function(t){return this.states.includes(t)},n.prototype.getStates=function(){return this.states},n.prototype.getData=function(){return this.data},n.prototype.getModel=function(){return this.model},n.prototype.getBBox=function(){var r=this.shape,i=this.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return r&&(a=r.getCanvasBBox()),i&&i.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},n.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,a=t.shapeFactory;this.statesStyle=(0,v.b$)({},a.theme[t.shapeType]||a.theme[a.defaultShapeType],t.geometry.stateOption)}return this.statesStyle},n.prototype.getStateStyle=function(t,r){var i=this.getStatesStyle(),a=(0,v.U2)(i,[t,"style"],{}),o=a[r]||a;return(0,v.mf)(o)?o(this):o},n.prototype.getAnimateCfg=function(t){var r=this,i=this.animate;if(i){var a=i[t];return a&&(0,g.pi)((0,g.pi)({},a),{callback:function(){var o;(0,v.mf)(a.callback)&&a.callback(),null===(o=r.geometry)||void 0===o||o.emit(Si.AFTER_DRAW_ANIMATE)}})}return null},n.prototype.drawShape=function(t,r){var i;void 0===r&&(r=!1);var a=this,o=a.shapeFactory;if(this.shape=o.drawShape(a.shapeType,t,a.container),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?(0,v.HD)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=this.getAnimateCfg(r?"enter":"appear");f&&(null===(i=this.geometry)||void 0===i||i.emit(Si.BEFORE_DRAW_ANIMATE),Ma(this.shape,f,{coordinate:o.coordinate,toAttrs:(0,g.pi)({},this.shape.attr())}))}},n.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},n.prototype.setShapeInfo=function(t,r){var i=this;t.cfg.origin=r,t.cfg.element=this,t.isGroup()&&t.get("children").forEach(function(o){i.setShapeInfo(o,r)})},n.prototype.syncShapeStyle=function(t,r,i,a,o){var l,s=this;if(void 0===i&&(i=[]),void 0===o&&(o=0),t&&r){var c=t.get("clipShape"),h=r.get("clipShape");if(this.syncShapeStyle(c,h,i,a),t.isGroup())for(var f=t.get("children"),p=r.get("children"),d=0;d=o[c]?1:0,p=h>Math.PI?1:0,d=t.convert(s),y=Ts(t,d);if(y>=.5)if(h===2*Math.PI){var x=t.convert({x:(s.x+o.x)/2,y:(s.y+o.y)/2});l.push(["A",y,y,0,p,f,x.x,x.y]),l.push(["A",y,y,0,p,f,d.x,d.y])}else l.push(["A",y,y,0,p,f,d.x,d.y]);return l}(r,i,e)):t.push(au(s,e));break;case"a":t.push(op(s,e));break;default:t.push(s)}}),function lC(e){(0,v.S6)(e,function(n,t){if("a"===n[0].toLowerCase()){var i=e[t-1],a=e[t+1];a&&"a"===a[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&a&&"l"===a[0].toLowerCase()&&(a[0]="M")}})}(t),t}(n,t):function uC(e,n){var t=[];return(0,v.S6)(n,function(r){switch(r[0].toLowerCase()){case"m":case"l":case"c":t.push(au(r,e));break;case"a":t.push(op(r,e));break;default:t.push(r)}}),t}(n,t),t},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var n=this.coordinate;return e.map(function(t){return n.convert(t)})},draw:function(e,n){}},pu={};function ci(e,n){var t=(0,v.jC)(e),r=(0,g.pi)((0,g.pi)((0,g.pi)({},lw),n),{geometryType:e});return pu[t]=r,r}function Qe(e,n,t){var r=(0,v.jC)(e),i=pu[r],a=(0,g.pi)((0,g.pi)({},cw),t);return i[n]=a,a}function Hp(e){var n=(0,v.jC)(e);return pu[n]}function Gp(e,n){return(0,v.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(t){return!(0,v.Xy)(e[t],n[t])})}function go(e){return(0,v.kJ)(e)?e:e.split("*")}function Zp(e,n){for(var t=[],r=[],i=[],a=new Map,o=0;o=0?r:i<=0?i:0},n.prototype.createAttrOption=function(t,r,i){if((0,v.UM)(r)||(0,v.Kn)(r))(0,v.Kn)(r)&&(0,v.Xy)(Object.keys(r),["values"])?(0,v.t8)(this.attributeOption,t,{fields:r.values}):(0,v.t8)(this.attributeOption,t,r);else{var a={};(0,v.hj)(r)?a.values=[r]:a.fields=go(r),i&&((0,v.mf)(i)?a.callback=i:a.values=i),(0,v.t8)(this.attributeOption,t,a)}},n.prototype.initAttributes=function(){var t=this,r=this,i=r.attributes,a=r.attributeOption,o=r.theme,s=r.shapeType;this.groupScales=[];var l={},c=function(p){if(a.hasOwnProperty(p)){var d=a[p];if(!d)return{value:void 0};var y=(0,g.pi)({},d),m=y.callback,x=y.values,M=y.fields,S=(void 0===M?[]:M).map(function(E){var W=t.scales[E];return!l[E]&&la.includes(p)&&"cat"===jv(W,(0,v.U2)(t.scaleDefs,E),p,t.type)&&(t.groupScales.push(W),l[E]=!0),W});y.scales=S,"position"!==p&&1===S.length&&"identity"===S[0].type?y.values=S[0].values:!m&&!x&&("size"===p?y.values=o.sizes:"shape"===p?y.values=o.shapes[s]||[]:"color"===p&&(y.values=S.length?S[0].values.length<=10?o.colors10:o.colors20:o.colors10));var b=Cv(p);i[p]=new b(y)}};for(var h in a){var f=c(h);if("object"==typeof f)return f.value}},n.prototype.processData=function(t){var r,i;this.hasSorted=!1;for(var o=this.getAttribute("position").scales.filter(function(tt){return tt.isCategory}),s=this.groupData(t),l=[],c=0,h=s.length;cs&&(s=f)}var p=this.scaleDefs,d={};ot.max&&!(0,v.U2)(p,[a,"max"])&&(d.max=s),t.change(d)},n.prototype.beforeMapping=function(t){var r=t;if(this.sortable&&this.sort(r),this.generatePoints)for(var i=0,a=r.length;i1)for(var p=0;p0})}function Xp(e,n,t){var r=t.data,i=t.origin,a=t.animateCfg,o=t.coordinate,s=(0,v.U2)(a,"update");e.set("data",r),e.set("origin",i),e.set("animateCfg",a),e.set("coordinate",o),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach(function(l,c){var h=n.getChildByIndex(c);if(h){l.set("data",r),l.set("origin",i),l.set("animateCfg",a),l.set("coordinate",o);var f=qv(l,h);s?Ma(l,s,{toAttrs:f,coordinate:o}):l.attr(f),h.isGroup()&&Xp(l,h,t)}else e.removeChild(l),l.remove(!0)}),(0,v.S6)(n.getChildren(),function(l,c){c>=e.getCount()&&(l.destroyed||e.add(l))})}var gw=function(){function e(n){this.shapesMap={};var r=n.container;this.layout=n.layout,this.container=r}return e.prototype.render=function(n,t,r){return void 0===r&&(r=!1),(0,g.mG)(this,void 0,void 0,function(){var i,a,o,s,l,c,h,f,p=this;return(0,g.Jh)(this,function(d){switch(d.label){case 0:if(i={},a=this.createOffscreenGroup(),!n.length)return[3,2];try{for(o=(0,g.XA)(n),s=o.next();!s.done;s=o.next())(l=s.value)&&(i[l.id]=this.renderLabel(l,a))}catch(y){h={error:y}}finally{try{s&&!s.done&&(f=o.return)&&f.call(o)}finally{if(h)throw h.error}}return[4,this.doLayout(n,t,i)];case 1:d.sent(),this.renderLabelLine(n,i),this.renderLabelBackground(n,i),this.adjustLabel(n,i),d.label=2;case 2:return c=this.shapesMap,(0,v.S6)(i,function(y,m){if(y.destroyed)delete i[m];else{if(c[m]){var x=y.get("data"),M=y.get("origin"),C=y.get("coordinate"),S=y.get("animateCfg"),b=c[m];Xp(b,i[m],{data:x,origin:M,animateCfg:S,coordinate:C}),i[m]=b}else{if(p.container.destroyed)return;p.container.add(y);var E=(0,v.U2)(y.get("animateCfg"),r?"enter":"appear");E&&Ma(y,E,{toAttrs:(0,g.pi)({},y.attr()),coordinate:y.get("coordinate")})}delete c[m]}}),(0,v.S6)(c,function(y){var m=(0,v.U2)(y.get("animateCfg"),"leave");m?Ma(y,m,{toAttrs:null,coordinate:y.get("coordinate")}):y.remove(!0)}),this.shapesMap=i,a.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(n,t){var d,o=n.mappingData,s=n.coordinate,l=n.animate,c=n.content,f={id:n.id,elementId:n.elementId,capture:n.capture,data:n.data,origin:(0,g.pi)((0,g.pi)({},o),{data:o[nn]}),coordinate:s},p=t.addGroup((0,g.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,v.b$)({},this.animate,l)},f));if(c.isGroup&&c.isGroup()||c.isShape&&c.isShape()){var y=c.getCanvasBBox(),m=y.width,x=y.height,M=(0,v.U2)(n,"textAlign","left"),C=n.x;"center"===M?C-=m/2:("right"===M||"end"===M)&&(C-=m),yo(c,C,n.y-x/2),d=c,p.add(c)}else{var b=(0,v.U2)(n,["style","fill"]);d=p.addShape("text",(0,g.pi)({attrs:(0,g.pi)((0,g.pi)({x:n.x,y:n.y,textAlign:n.textAlign,textBaseline:(0,v.U2)(n,"textBaseline","middle"),text:n.content},n.style),{fill:(0,v.Ft)(b)?n.color:b})},f))}return n.rotate&&du(d,n.rotate),p},e.prototype.doLayout=function(n,t,r){return(0,g.mG)(this,void 0,void 0,function(){var i,a=this;return(0,g.Jh)(this,function(o){switch(o.label){case 0:return this.layout?(i=(0,v.kJ)(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map(function(s){var l=function sw(e){return Yp[e.toLowerCase()]}((0,v.U2)(s,"type",""));if(l){var c=[],h=[];return(0,v.S6)(r,function(f,p){c.push(f),h.push(t[f.get("elementId")])}),l(n,c,h,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(n,t){(0,v.S6)(n,function(r){var i=(0,v.U2)(r,"coordinate");if(r&&i){var a=i.getCenter(),o=i.getRadius();if(r.labelLine){var s=(0,v.U2)(r,"labelLine",{}),l=r.id,c=s.path;if(!c){var h=yn(a.x,a.y,o,r.angle);c=[["M",h.x,h.y],["L",r.x,r.y]]}var f=t[l];f.destroyed||f.addShape("path",{capture:!1,attrs:(0,g.pi)({path:c,stroke:r.color?r.color:(0,v.U2)(r,["style","fill"],"#000"),fill:null},s.style),id:l,origin:r.mappingData,data:r.data,coordinate:r.coordinate})}}})},e.prototype.renderLabelBackground=function(n,t){(0,v.S6)(n,function(r){var i=(0,v.U2)(r,"coordinate"),a=(0,v.U2)(r,"background");if(a&&i){var o=r.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var c=Wp(s,r,a.padding),h=c.rotation,f=(0,g._T)(c,["rotation"]),p=s.addShape("rect",{attrs:(0,g.pi)((0,g.pi)({},f),a.style||{}),id:o,origin:r.mappingData,data:r.data,coordinate:r.coordinate});if(p.setZIndex(-1),h){var d=l.getMatrix();p.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},e.prototype.adjustLabel=function(n,t){(0,v.S6)(n,function(r){if(r){var a=t[r.id];if(!a.destroyed){var o=a.findAll(function(s){return"path"!==s.get("type")});(0,v.S6)(o,function(s){s&&(r.offsetX&&s.attr("x",s.attr("x")+r.offsetX),r.offsetY&&s.attr("y",s.attr("y")+r.offsetY))})}}})},e}();const yw=gw;function $p(e){var n=0;return(0,v.S6)(e,function(t){n+=t}),n/e.length}var mw=function(){function e(n){this.geometry=n}return e.prototype.getLabelItems=function(n){var t=this,r=[],i=this.getLabelCfgs(n);return(0,v.S6)(n,function(a,o){var s=i[o];if(!s||(0,v.UM)(a.x)||(0,v.UM)(a.y))r.push(null);else{var l=(0,v.kJ)(s.content)?s.content:[s.content];s.content=l;var c=l.length;(0,v.S6)(l,function(h,f){if((0,v.UM)(h)||""===h)r.push(null);else{var p=(0,g.pi)((0,g.pi)({},s),t.getLabelPoint(s,a,f));p.textAlign||(p.textAlign=t.getLabelAlign(p,f,c)),p.offset<=0&&(p.labelLine=null),r.push(p)}})}}),r},e.prototype.render=function(n,t){return void 0===t&&(t=!1),(0,g.mG)(this,void 0,void 0,function(){var r,i,a;return(0,g.Jh)(this,function(o){switch(o.label){case 0:return r=this.getLabelItems(n),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(r,a,t)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var n=this.labelsRenderer;n&&n.clear()},e.prototype.destroy=function(){var n=this.labelsRenderer;n&&n.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(n,t){var r=this.geometry,i=r.type,a=r.theme;return"polygon"===i||"interval"===i&&"middle"===t||n<0&&!["line","point","path"].includes(i)?(0,v.U2)(a,"innerLabels",{}):(0,v.U2)(a,"labels",{})},e.prototype.getThemedLabelCfg=function(n){var t=this.geometry,r=this.getDefaultLabelCfg(),i=t.type,a=t.theme;return"polygon"===i||n.offset<0&&!["line","point","path"].includes(i)?(0,v.b$)({},r,a.innerLabels,n):(0,v.b$)({},r,a.labels,n)},e.prototype.setLabelPosition=function(n,t,r,i){},e.prototype.getLabelOffset=function(n){var t=this.getCoordinate(),r=this.getOffsetVector(n);return t.isTransposed?r[0]:r[1]},e.prototype.getLabelOffsetPoint=function(n,t,r){var i=n.offset,o=this.getCoordinate().isTransposed,l=o?1:-1,c={x:0,y:0};return c[o?"x":"y"]=t>0||1===r?i*l:i*l*-1,c},e.prototype.getLabelPoint=function(n,t,r){var i=this.getCoordinate(),a=n.content.length;function o(x,M,C){void 0===C&&(C=!1);var S=x;return(0,v.kJ)(S)&&(S=1===n.content.length?C?$p(S):S.length<=2?S[x.length-1]:$p(S):S[M]),S}var s={content:n.content[r],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=(0,v.kJ)(t.shape)?t.shape[0]:t.shape,c="funnel"===l||"pyramid"===l;if("polygon"===this.geometry.type){var h=function UM(e,n){if((0,v.hj)(e)&&(0,v.hj)(n))return[e,n];if($v(e)||$v(n))return[Jv(e),Jv(n)];for(var a,s,t=-1,r=0,i=0,o=e.length-1,l=0;++t1&&0===t&&("right"===i?i="left":"left"===i&&(i="right"))}return i},e.prototype.getLabelId=function(n){var t=this.geometry,r=t.type,i=t.getXScale(),a=t.getYScale(),o=n[nn],s=t.getElementId(n);return"line"===r||"area"===r?s+=" ".concat(o[i.field]):"path"===r&&(s+=" ".concat(o[i.field],"-").concat(o[a.field])),s},e.prototype.getLabelsRenderer=function(){var n=this.geometry,i=n.canvasRegion,a=n.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new yw({container:n.labelsContainer,layout:(0,v.U2)(n.labelOption,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=i,s.animate=!!a&&Np("label",o),s},e.prototype.getLabelCfgs=function(n){var t=this,r=this.geometry,i=r.labelOption,a=r.scales,o=r.coordinate,l=i.fields,c=i.callback,h=i.cfg,f=l.map(function(d){return a[d]}),p=[];return(0,v.S6)(n,function(d,y){var M,m=d[nn],x=t.getLabelText(m,f);if(c){var C=l.map(function(tt){return m[tt]});if(M=c.apply(void 0,(0,g.ev)([],(0,g.CR)(C),!1)),(0,v.UM)(M))return void p.push(null)}var S=(0,g.pi)((0,g.pi)({id:t.getLabelId(d),elementId:t.geometry.getElementId(d),data:m,mappingData:d,coordinate:o},h),M);(0,v.mf)(S.position)&&(S.position=S.position(m,d,y));var b=t.getLabelOffset(S.offset||0),E=t.getDefaultLabelCfg(b,S.position);(S=(0,v.b$)({},E,S)).offset=t.getLabelOffset(S.offset||0);var W=S.content;(0,v.mf)(W)?S.content=W(m,d,y):(0,v.o8)(W)&&(S.content=x[0]),p.push(S)}),p},e.prototype.getLabelText=function(n,t){var r=[];return(0,v.S6)(t,function(i){var a=n[i.field];a=(0,v.kJ)(a)?a.map(function(o){return i.getText(o)}):i.getText(a),(0,v.UM)(a)||""===a?r.push(null):r.push(a)}),r},e.prototype.getOffsetVector=function(n){void 0===n&&(n=0);var t=this.getCoordinate(),r=0;return(0,v.hj)(n)&&(r=n),t.isTransposed?t.applyMatrix(r,0):t.applyMatrix(0,r)},e.prototype.getGeometryShapes=function(){var n=this.geometry,t={};return(0,v.S6)(n.elementsMap,function(r,i){t[i]=r.shape}),(0,v.S6)(n.getOffscreenGroup().getChildren(),function(r){var i=n.getElementId(r.get("origin").mappingData);t[i]=r}),t},e}();const Ns=mw;function gu(e,n,t){if(!e)return t;var r;if(e.callback&&e.callback.length>1){var i=Array(e.callback.length-1).fill("");r=e.mapping.apply(e,(0,g.ev)([n],(0,g.CR)(i),!1)).join("")}else r=e.mapping(n).join("");return r||t}var Li={hexagon:function(e,n,t){var r=t/2*Math.sqrt(3);return[["M",e,n-t],["L",e+r,n-t/2],["L",e+r,n+t/2],["L",e,n+t],["L",e-r,n+t/2],["L",e-r,n-t/2],["Z"]]},bowtie:function(e,n,t){var r=t-1.5;return[["M",e-t,n-r],["L",e+t,n+r],["L",e+t,n-r],["L",e-t,n+r],["Z"]]},cross:function(e,n,t){return[["M",e-t,n-t],["L",e+t,n+t],["M",e+t,n-t],["L",e-t,n+t]]},tick:function(e,n,t){return[["M",e-t/2,n-t],["L",e+t/2,n-t],["M",e,n-t],["L",e,n+t],["M",e-t/2,n+t],["L",e+t/2,n+t]]},plus:function(e,n,t){return[["M",e-t,n],["L",e+t,n],["M",e,n-t],["L",e,n+t]]},hyphen:function(e,n,t){return[["M",e-t,n],["L",e+t,n]]},line:function(e,n,t){return[["M",e,n-t],["L",e,n+t]]}},xw=["line","cross","tick","plus","hyphen"];function Jp(e){var n=e.symbol;(0,v.HD)(n)&&Li[n]&&(e.symbol=Li[n])}function yu(e){return e.startsWith(ue.LEFT)||e.startsWith(ue.RIGHT)?"vertical":"horizontal"}function Qp(e,n,t,r,i){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=n.getAttribute("color"),l=n.getAttribute("shape"),c=e.getTheme().defaultColor,h=n.coordinate.isPolar;return a.getTicks().map(function(f,p){var d,x=f.text,M=a.invert(f.value),C=0===e.filterFieldData(o,[(d={},d[o]=M,d)]).length;(0,v.S6)(e.views,function(tt){var it;tt.filterFieldData(o,[(it={},it[o]=M,it)]).length||(C=!0)});var S=gu(s,M,c),b=gu(l,M,"point"),E=n.getShapeMarker(b,{color:S,isInPolar:h}),W=i;return(0,v.mf)(W)&&(W=W(x,p,(0,g.pi)({name:x,value:M},(0,v.b$)({},r,E)))),function Cw(e,n){var t=e.symbol;if((0,v.HD)(t)&&-1!==xw.indexOf(t)){var r=(0,v.U2)(e,"style",{}),i=(0,v.U2)(r,"lineWidth",1);e.style=(0,v.b$)({},e.style,{lineWidth:i,stroke:r.stroke||r.fill||n,fill:null})}}(E=(0,v.b$)({},r,E,Un((0,g.pi)({},W),["style"])),S),W&&W.style&&(E.style=function Mw(e,n){return(0,v.mf)(n)?n(e):(0,v.b$)({},e,n)}(E.style,W.style)),Jp(E),{id:M,name:x,value:M,marker:E,unchecked:C}})}return[]}function qp(e,n){var t=(0,v.U2)(e,["components","legend"],{});return(0,v.b$)({},(0,v.U2)(t,["common"],{}),(0,v.b$)({},(0,v.U2)(t,[n],{})))}function mu(e){return!e&&(null==e||isNaN(e))}function jp(e){if((0,v.kJ)(e))return mu(e[1].y);var n=e.y;return(0,v.kJ)(n)?mu(n[0]):mu(n)}function Vs(e,n,t){if(void 0===n&&(n=!1),void 0===t&&(t=!0),!e.length||1===e.length&&!t)return[];if(n){for(var r=[],i=0,a=e.length;i=e&&i<=e+t&&a>=n&&a<=n+r}function mo(e,n){return!(n.minX>e.maxX||n.maxXe.maxY||n.maxY=0&&i<.5*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):.5*Math.PI<=i&&i1&&(t*=Math.sqrt(d),r*=Math.sqrt(d));var y=t*t*(p*p)+r*r*(f*f),m=y?Math.sqrt((t*t*(r*r)-y)/y):1;a===o&&(m*=-1),isNaN(m)&&(m=0);var x=r?m*t*p/r:0,M=t?m*-r*f/t:0,C=(s+c)/2+Math.cos(i)*x-Math.sin(i)*M,S=(l+h)/2+Math.sin(i)*x+Math.cos(i)*M,b=[(f-x)/t,(p-M)/r],E=[(-1*f-x)/t,(-1*p-M)/r],W=ld([1,0],b),tt=ld(b,E);return Cu(b,E)<=-1&&(tt=Math.PI),Cu(b,E)>=1&&(tt=0),0===o&&tt>0&&(tt-=2*Math.PI),1===o&&tt<0&&(tt+=2*Math.PI),{cx:C,cy:S,rx:ad(e,[c,h])?0:t,ry:ad(e,[c,h])?0:r,startAngle:W,endAngle:W+tt,xRotation:i,arcFlag:a,sweepFlag:o}}var Hs=Math.sin,Gs=Math.cos,wu=Math.atan2,Zs=Math.PI;function cd(e,n,t,r,i,a,o){var s=n.stroke,l=n.lineWidth,f=wu(r-a,t-i),p=new ku({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Gs(Zs/6)+","+10*Hs(Zs/6)+" L0,0 L"+10*Gs(Zs/6)+",-"+10*Hs(Zs/6),stroke:s,lineWidth:l}});p.translate(i,a),p.rotateAtPoint(i,a,f),e.set(o?"startArrowShape":"endArrowShape",p)}function ud(e,n,t,r,i,a,o){var c=n.stroke,h=n.lineWidth,f=o?n.startArrow:n.endArrow,p=f.d,d=f.fill,y=f.stroke,m=f.lineWidth,x=(0,g._T)(f,["d","fill","stroke","lineWidth"]),S=wu(r-a,t-i);p&&(i-=Gs(S)*p,a-=Hs(S)*p);var b=new ku({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,g.pi)((0,g.pi)({},x),{stroke:y||c,lineWidth:m||h,fill:d})});b.translate(i,a),b.rotateAtPoint(i,a,S),e.set(o?"startArrowShape":"endArrowShape",b)}function Pi(e,n,t,r,i){var a=wu(r-n,t-e);return{dx:Gs(a)*i,dy:Hs(a)*i}}function Su(e,n,t,r,i,a){"object"==typeof n.startArrow?ud(e,n,t,r,i,a,!0):n.startArrow?cd(e,n,t,r,i,a,!0):e.set("startArrowShape",null)}function _u(e,n,t,r,i,a){"object"==typeof n.endArrow?ud(e,n,t,r,i,a,!1):n.endArrow?cd(e,n,t,r,i,a,!1):e.set("startArrowShape",null)}var hd={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Ca(e,n){var t=n.attr();for(var r in t){var i=t[r],a=hd[r]?hd[r]:r;"matrix"===a&&i?e.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===a&&e.setLineDash?(0,v.kJ)(i)&&e.setLineDash(i):("strokeStyle"===a||"fillStyle"===a?i=Rw(e,n,i):"globalAlpha"===a&&(i*=e.globalAlpha),e[a]=i)}}function bu(e,n,t){for(var r=0;rE?b:E,Ut=b>E?1:b/E,ee=b>E?E/b:1;n.translate(C,S),n.rotate(it),n.scale(Ut,ee),n.arc(0,0,yt,W,tt,1-wt),n.scale(1/Ut,1/ee),n.rotate(-it),n.translate(-C,-S)}break;case"Z":n.closePath()}if("Z"===p)s=l;else{var me=f.length;s=[f[me-2],f[me-1]]}}}}function pd(e,n){var t=e.get("canvas");t&&("remove"===n&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(t.refreshElement(e,n,t),t.get("autoDraw")&&t.draw())))}var Zw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.onCanvasChange=function(t){pd(this,t)},n.prototype.getShapeBase=function(){return mt},n.prototype.getGroupBase=function(){return n},n.prototype._applyClip=function(t,r){r&&(t.save(),Ca(t,r),r.createPath(t),t.restore(),t.clip(),r._afterDraw())},n.prototype.cacheCanvasBBox=function(){var r=[],i=[];(0,v.S6)(this.cfg.children,function(p){var d=p.cfg.cacheCanvasBBox;d&&p.cfg.isInView&&(r.push(d.minX,d.maxX),i.push(d.minY,d.maxY))});var a=null;if(r.length){var o=(0,v.VV)(r),s=(0,v.Fp)(r),l=(0,v.VV)(i),c=(0,v.Fp)(i);a={minX:o,minY:l,x:o,y:l,maxX:s,maxY:c,width:s-o,height:c-l};var h=this.cfg.canvas;if(h){var f=h.getViewRange();this.set("isInView",mo(a,f))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",a)},n.prototype.draw=function(t,r){var i=this.cfg.children;i.length&&(!r||this.cfg.refresh)&&(t.save(),Ca(t,this),this._applyClip(t,this.getClip()),bu(t,i,r),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},n.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},n}(bn.AbstractGroup);const Fu=Zw;var Ww=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},n.prototype.getShapeBase=function(){return mt},n.prototype.getGroupBase=function(){return Fu},n.prototype.onCanvasChange=function(t){pd(this,t)},n.prototype.calculateBBox=function(){var t=this.get("type"),r=this.getHitLineWidth(),a=(0,bn.getBBoxMethod)(t)(this),o=r/2,s=a.x-o,l=a.y-o;return{x:s,minX:s,y:l,minY:l,width:a.width+r,height:a.height+r,maxX:a.x+a.width+o,maxY:a.y+a.height+o}},n.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},n.prototype.isStroke=function(){return!!this.attrs.stroke},n.prototype._applyClip=function(t,r){r&&(t.save(),Ca(t,r),r.createPath(t),t.restore(),t.clip(),r._afterDraw())},n.prototype.draw=function(t,r){var i=this.cfg.clipShape;if(r){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!mo(r,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Ca(t,this),this._applyClip(t,i),this.drawPath(t),t.restore(),this._afterDraw()},n.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},n.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var r=this.getCanvasBBox(),i=mo(r,t);this.set("isInView",i),this.set("cacheCanvasBBox",i?r:null)}},n.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},n.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},n.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},n.prototype.fill=function(t){t.fill()},n.prototype.stroke=function(t){t.stroke()},n.prototype.strokeAndFill=function(t){var r=this.attrs,i=r.lineWidth,a=r.opacity,o=r.strokeOpacity,s=r.fillOpacity;this.isFill()&&((0,v.UM)(s)||1===s?this.fill(t):(t.globalAlpha=s,this.fill(t),t.globalAlpha=a)),this.isStroke()&&i>0&&(!(0,v.UM)(o)&&1!==o&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},n.prototype.createPath=function(t){},n.prototype.afterDrawPath=function(t){},n.prototype.isInShape=function(t,r){var i=this.isStroke(),a=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,r,i,a,o)},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){return!1},n.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},n}(bn.AbstractShape);const fr=Ww;var Xw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,r:0})},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),h=s.r,f=o/2,p=id(s.x,s.y,t,r);return a&&i?p<=h+f:a?p<=h:!!i&&p>=h-f&&p<=h+f},n.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.r;t.beginPath(),t.arc(i,a,o,0,2*Math.PI,!1),t.closePath()},n}(fr);const $w=Xw;function Ws(e,n,t,r){return e/(t*t)+n/(r*r)}var Jw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,rx:0,ry:0})},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),l=o/2,c=s.x,h=s.y,f=s.rx,p=s.ry,d=(t-c)*(t-c),y=(r-h)*(r-h);return a&&i?Ws(d,y,f+l,p+l)<=1:a?Ws(d,y,f,p)<=1:!!i&&Ws(d,y,f-l,p-l)>=1&&Ws(d,y,f+l,p+l)<=1},n.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.rx,s=r.ry;if(t.beginPath(),t.ellipse)t.ellipse(i,a,o,s,0,0,2*Math.PI,!1);else{var l=o>s?o:s,c=o>s?1:o/s,h=o>s?s/o:1;t.save(),t.translate(i,a),t.scale(c,h),t.arc(0,0,l,0,2*Math.PI),t.restore(),t.closePath()}},n}(fr);const Qw=Jw;function dd(e){return e instanceof HTMLElement&&(0,v.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var qw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0})},n.prototype.initAttrs=function(t){this._setImage(t.img)},n.prototype.isStroke=function(){return!1},n.prototype.isOnlyHitBox=function(){return!0},n.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},n.prototype._setImage=function(t){var r=this,i=this.attrs;if((0,v.HD)(t)){var a=new Image;a.onload=function(){if(r.destroyed)return!1;r.attr("img",a),r.set("loading",!1),r._afterLoading();var o=r.get("callback");o&&o.call(r)},a.crossOrigin="Anonymous",a.src=t,this.set("loading",!0)}else t instanceof Image?(i.width||(i.width=t.width),i.height||(i.height=t.height)):dd(t)&&(i.width||(i.width=Number(t.getAttribute("width"))),i.height||Number(t.getAttribute("height")))},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),"img"===t&&this._setImage(r)},n.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var r=this.attr(),i=r.x,a=r.y,o=r.width,s=r.height,l=r.sx,c=r.sy,h=r.swidth,f=r.sheight,p=r.img;(p instanceof Image||dd(p))&&((0,v.UM)(l)||(0,v.UM)(c)||(0,v.UM)(h)||(0,v.UM)(f)?t.drawImage(p,i,a,o,s):t.drawImage(p,l,c,h,f,i,a,o,s))},n}(fr);const jw=qw;var Pn=V(4137);function vi(e,n,t,r,i,a,o){var s=Math.min(e,t),l=Math.max(e,t),c=Math.min(n,r),h=Math.max(n,r),f=i/2;return a>=s-f&&a<=l+f&&o>=c-f&&o<=h+f&&Pn.x1.pointToLine(e,n,t,r,a,o)<=i/2}var Kw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},n.prototype.initAttrs=function(t){this.setArrow()},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),this.setArrow()},n.prototype.setArrow=function(){var t=this.attr(),r=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.endArrow;t.startArrow&&Su(this,t,a,o,r,i),l&&_u(this,t,r,i,a,o)},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){if(!i||!o)return!1;var s=this.attr();return vi(s.x1,s.y1,s.x2,s.y2,o,t,r)},n.prototype.createPath=function(t){var r=this.attr(),i=r.x1,a=r.y1,o=r.x2,s=r.y2,l=r.startArrow,c=r.endArrow,h={dx:0,dy:0},f={dx:0,dy:0};l&&l.d&&(h=Pi(i,a,o,s,r.startArrow.d)),c&&c.d&&(f=Pi(i,a,o,s,r.endArrow.d)),t.beginPath(),t.moveTo(i+h.dx,a+h.dy),t.lineTo(o-f.dx,s-f.dy)},n.prototype.afterDrawPath=function(t){var r=this.get("startArrowShape"),i=this.get("endArrowShape");r&&r.draw(t),i&&i.draw(t)},n.prototype.getTotalLength=function(){var t=this.attr();return Pn.x1.length(t.x1,t.y1,t.x2,t.y2)},n.prototype.getPoint=function(t){var r=this.attr();return Pn.x1.pointAt(r.x1,r.y1,r.x2,r.y2,t)},n}(fr);const tS=Kw;var eS={circle:function(e,n,t){return[["M",e-t,n],["A",t,t,0,1,0,e+t,n],["A",t,t,0,1,0,e-t,n]]},square:function(e,n,t){return[["M",e-t,n-t],["L",e+t,n-t],["L",e+t,n+t],["L",e-t,n+t],["Z"]]},diamond:function(e,n,t){return[["M",e-t,n],["L",e,n-t],["L",e+t,n],["L",e,n+t],["Z"]]},triangle:function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n+r],["L",e,n-r],["L",e+t,n+r],["Z"]]},"triangle-down":function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n-r],["L",e+t,n-r],["L",e,n+r],["Z"]]}},nS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.initAttrs=function(t){this._resetParamsCache()},n.prototype._resetParamsCache=function(){this.set("paramsCache",{})},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},n.prototype.isOnlyHitBox=function(){return!0},n.prototype._getR=function(t){return(0,v.UM)(t.r)?t.radius:t.r},n.prototype._getPath=function(){var s,l,t=this.attr(),r=t.x,i=t.y,a=t.symbol||"circle",o=this._getR(t);if((0,v.mf)(a))l=(s=a)(r,i,o),l=(0,ua.wb)(l);else{if(!(s=n.Symbols[a]))return console.warn(a+" marker is not supported."),null;l=s(r,i,o)}return l},n.prototype.createPath=function(t){vd(this,t,{path:this._getPath()},this.get("paramsCache"))},n.Symbols=eS,n}(fr);const rS=nS;function gd(e,n,t){var r=(0,bn.getOffScreenContext)();return e.createPath(r),r.isPointInPath(n,t)}var iS=1e-6;function Eu(e){return Math.abs(e)0!=Eu(s[1]-t)>0&&Eu(n-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function xo(e,n,t,r,i,a,o,s){var l=(Math.atan2(s-n,o-e)+2*Math.PI)%(2*Math.PI);if(li)return!1;var c={x:e+t*Math.cos(l),y:n+t*Math.sin(l)};return id(c.x,c.y,o,s)<=a/2}var oS=an.vs;const Xs=(0,g.pi)({hasArc:function sS(e){for(var n=!1,t=e.length,r=0;r0&&r.push(i),{polygons:t,polylines:r}},isPointInStroke:function lS(e,n,t,r,i){for(var a=!1,o=n/2,s=0;sS?C:S;ja(tt,tt,oS(null,[["t",-m.cx,-m.cy],["r",-m.xRotation],["s",1/(C>S?1:C/S),1/(C>S?S/C:1)]])),a=xo(0,0,it,b,E,n,tt[0],tt[1])}if(a)break}}return a}},bn.PathUtil);function md(e,n,t){for(var r=!1,i=0;i=h[0]&&t<=h[1]&&(i=(t-h[0])/(h[1]-h[0]),a=f)});var s=o[a];if((0,v.UM)(s)||(0,v.UM)(a))return null;var l=s.length,c=o[a+1];return Pn.Ll.pointAt(s[l-2],s[l-1],c[1],c[2],c[3],c[4],c[5],c[6],i)},n.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Xs.pathToCurve(t))},n.prototype._setTcache=function(){var a,o,s,l,t=0,r=0,i=[],c=this.get("curve");if(c){if((0,v.S6)(c,function(h,f){l=h.length,(s=c[f+1])&&(t+=Pn.Ll.length(h[l-2],h[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),0===t)return void this.set("tCache",[]);(0,v.S6)(c,function(h,f){l=h.length,(s=c[f+1])&&((a=[])[0]=r/t,o=Pn.Ll.length(h[l-2],h[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),a[1]=(r+=o||0)/t,i.push(a))}),this.set("tCache",i)}},n.prototype.getStartTangent=function(){var r,t=this.getSegments();if(t.length>1){var i=t[0].currentPoint,a=t[1].currentPoint,o=t[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},n.prototype.getEndTangent=function(){var i,t=this.getSegments(),r=t.length;if(r>1){var a=t[r-2].currentPoint,o=t[r-1].currentPoint,s=t[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},n}(fr);const ku=uS;function xd(e,n,t,r,i){var a=e.length;if(a<2)return!1;for(var o=0;o=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Pn.x1.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],a)},n.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var r=this.getTotalLength();if(!(r<=0)){var o,s,i=0,a=[];(0,v.S6)(t,function(l,c){t[c+1]&&((o=[])[0]=i/r,s=Pn.x1.length(l[0],l[1],t[c+1][0],t[c+1][1]),o[1]=(i+=s)/r,a.push(o))}),this.set("tCache",a)}}},n.prototype.getStartTangent=function(){var t=this.attr().points,r=[];return r.push([t[1][0],t[1][1]]),r.push([t[0][0],t[0][1]]),r},n.prototype.getEndTangent=function(){var t=this.attr().points,r=t.length-1,i=[];return i.push([t[r-1][0],t[r-1][1]]),i.push([t[r][0],t[r][1]]),i},n}(fr);const pS=vS;var yS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),l=s.x,c=s.y,h=s.width,f=s.height,p=s.radius;if(p){var y=!1;return i&&(y=function gS(e,n,t,r,i,a,o,s){return vi(e+i,n,e+t-i,n,a,o,s)||vi(e+t,n+i,e+t,n+r-i,a,o,s)||vi(e+t-i,n+r,e+i,n+r,a,o,s)||vi(e,n+r-i,e,n+i,a,o,s)||xo(e+t-i,n+i,i,1.5*Math.PI,2*Math.PI,a,o,s)||xo(e+t-i,n+r-i,i,0,.5*Math.PI,a,o,s)||xo(e+i,n+r-i,i,.5*Math.PI,Math.PI,a,o,s)||xo(e+i,n+i,i,Math.PI,1.5*Math.PI,a,o,s)}(l,c,h,f,p,o,t,r)),!y&&a&&(y=gd(this,t,r)),y}var d=o/2;return a&&i?Oi(l-d,c-d,h+d,f+d,t,r):a?Oi(l,c,h,f,t,r):i?function dS(e,n,t,r,i,a,o){var s=i/2;return Oi(e-s,n-s,t,i,a,o)||Oi(e+t-s,n-s,i,r,a,o)||Oi(e+s,n+r-s,t,i,a,o)||Oi(e-s,n+s,i,r,a,o)}(l,c,h,f,o,t,r):void 0},n.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.width,s=r.height,l=r.radius;if(t.beginPath(),0===l)t.rect(i,a,o,s);else{var c=function Nw(e){var n=0,t=0,r=0,i=0;return(0,v.kJ)(e)?1===e.length?n=t=r=i=e[0]:2===e.length?(n=r=e[0],t=i=e[1]):3===e.length?(n=e[0],t=i=e[1],r=e[2]):(n=e[0],t=e[1],r=e[2],i=e[3]):n=t=r=i=e,[n,t,r,i]}(l),h=c[0],f=c[1],p=c[2],d=c[3];t.moveTo(i+h,a),t.lineTo(i+o-f,a),0!==f&&t.arc(i+o-f,a+f,f,-Math.PI/2,0),t.lineTo(i+o,a+s-p),0!==p&&t.arc(i+o-p,a+s-p,p,0,Math.PI/2),t.lineTo(i+d,a+s),0!==d&&t.arc(i+d,a+s-d,d,Math.PI/2,Math.PI),t.lineTo(i,a+h),0!==h&&t.arc(i+h,a+h,h,Math.PI,1.5*Math.PI),t.closePath()}},n}(fr);const mS=yS;var xS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},n.prototype.isOnlyHitBox=function(){return!0},n.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},n.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,bn.assembleFont)(t)},n.prototype._setText=function(t){var r=null;(0,v.HD)(t)&&-1!==t.indexOf("\n")&&(r=t.split("\n")),this.set("textArr",r)},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(r)},n.prototype._getSpaceingY=function(){var t=this.attrs,r=t.lineHeight,i=1*t.fontSize;return r?r-i:.14*i},n.prototype._drawTextArr=function(t,r,i){var p,a=this.attrs,o=a.textBaseline,s=a.x,l=a.y,c=1*a.fontSize,h=this._getSpaceingY(),f=(0,bn.getTextHeight)(a.text,a.fontSize,a.lineHeight);(0,v.S6)(r,function(d,y){p=l+y*(h+c)-f+c,"middle"===o&&(p+=f-c-(f-c)/2),"top"===o&&(p+=f-c),(0,v.UM)(d)||(i?t.fillText(d,s,p):t.strokeText(d,s,p))})},n.prototype._drawText=function(t,r){var i=this.attr(),a=i.x,o=i.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,r);else{var l=i.text;(0,v.UM)(l)||(r?t.fillText(l,a,o):t.strokeText(l,a,o))}},n.prototype.strokeAndFill=function(t){var r=this.attrs,i=r.lineWidth,a=r.opacity,o=r.strokeOpacity,s=r.fillOpacity;this.isStroke()&&i>0&&(!(0,v.UM)(o)&&1!==o&&(t.globalAlpha=a),this.stroke(t)),this.isFill()&&((0,v.UM)(s)||1===s?this.fill(t):(t.globalAlpha=s,this.fill(t),t.globalAlpha=a)),this.afterDrawPath(t)},n.prototype.fill=function(t){this._drawText(t,!0)},n.prototype.stroke=function(t){this._drawText(t,!1)},n}(fr);const MS=xS;function Md(e,n,t){var r=e.getTotalMatrix();if(r){var i=function CS(e,n){if(n){var t=(0,bn.invert)(n);return(0,bn.multiplyVec2)(t,e)}return e}([n,t,1],r);return[i[0],i[1]]}return[n,t]}function Cd(e,n,t){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,bn.isAllowCapture)(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var r=Md(e,n,t);if(e.isClipped(r[0],r[1]))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return n>=o.minX&&n<=o.maxX&&t>=o.minY&&t<=o.maxY}function wd(e,n,t){if(!Cd(e,n,t))return null;for(var r=null,i=e.getChildren(),o=i.length-1;o>=0;o--){var s=i[o];if(s.isGroup())r=wd(s,n,t);else if(Cd(s,n,t)){var l=s,c=Md(s,n,t);l.isInShape(c[0],c[1])&&(r=s)}if(r)break}return r}var wS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},n.prototype.onCanvasChange=function(t){("attr"===t||"sort"===t||"changeSize"===t)&&(this.set("refreshElements",[this]),this.draw())},n.prototype.getShapeBase=function(){return mt},n.prototype.getGroupBase=function(){return Fu},n.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||function kw(){return window?window.devicePixelRatio:1}();return t>=1?Math.ceil(t):1},n.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},n.prototype.createDom=function(){var t=document.createElement("canvas"),r=t.getContext("2d");return this.set("context",r),t},n.prototype.setDOMSize=function(t,r){e.prototype.setDOMSize.call(this,t,r);var i=this.get("context"),a=this.get("el"),o=this.getPixelRatio();a.width=o*t,a.height=o*r,o>1&&i.scale(o,o)},n.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),r=this.get("el");t.clearRect(0,0,r.width,r.height)},n.prototype.getShape=function(t,r){return this.get("quickHit")?wd(this,t,r):e.prototype.getShape.call(this,t,r,null)},n.prototype._getRefreshRegion=function(){var i,t=this.get("refreshElements"),r=this.getViewRange();return t.length&&t[0]===this?i=r:(i=function Hw(e){if(!e.length)return null;var n=[],t=[],r=[],i=[];return(0,v.S6)(e,function(a){var o=function Yw(e){var n;if(e.destroyed)n=e._cacheCanvasBBox;else{var t=e.get("cacheCanvasBBox"),r=t&&!(!t.width||!t.height),i=e.getCanvasBBox(),a=i&&!(!i.width||!i.height);r&&a?n=function Iw(e,n){return e&&n?{minX:Math.min(e.minX,n.minX),minY:Math.min(e.minY,n.minY),maxX:Math.max(e.maxX,n.maxX),maxY:Math.max(e.maxY,n.maxY)}:e||n}(t,i):r?n=t:a&&(n=i)}return n}(a);o&&(n.push(o.minX),t.push(o.minY),r.push(o.maxX),i.push(o.maxY))}),{minX:(0,v.VV)(n),minY:(0,v.VV)(t),maxX:(0,v.Fp)(r),maxY:(0,v.Fp)(i)}}(t),i&&(i.minX=Math.floor(i.minX),i.minY=Math.floor(i.minY),i.maxX=Math.ceil(i.maxX),i.maxY=Math.ceil(i.maxY),i.maxY+=1,this.get("clipView")&&(i=function Gw(e,n){return e&&n&&mo(e,n)?{minX:Math.max(e.minX,n.minX),minY:Math.max(e.minY,n.minY),maxX:Math.min(e.maxX,n.maxX),maxY:Math.min(e.maxY,n.maxY)}:null}(i,r)))),i},n.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},n.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,v.VS)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},n.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},n.prototype._drawAll=function(){var t=this.get("context"),r=this.get("el"),i=this.getChildren();t.clearRect(0,0,r.width,r.height),Ca(t,this),bu(t,i),this.set("refreshElements",[])},n.prototype._drawRegion=function(){var t=this.get("context"),r=this.get("refreshElements"),i=this.getChildren(),a=this._getRefreshRegion();a?(t.clearRect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.save(),t.beginPath(),t.rect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.clip(),Ca(t,this),Vw(this,i,a),bu(t,i,a),t.restore()):r.length&&fd(r),(0,v.S6)(r,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},n.prototype._startDraw=function(){var t=this,r=this.get("drawFrame");r||(r=(0,v.U7)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)}),this.set("drawFrame",r))},n.prototype.skipDraw=function(){},n.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},n}(bn.AbstractCanvas);const SS=wS;var _S="0.5.12",Iu={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Je={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function rr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Sd(e){var n=Iu[e.type],t=e.getParent();if(!n)throw new Error("the type "+e.type+" is not supported by svg");var r=rr(n);if(e.get("id")&&(r.id=e.get("id")),e.set("el",r),e.set("attrs",{}),t){var i=t.get("el");i||(i=t.createDom(),t.set("el",i)),i.appendChild(r)}return r}function _d(e,n){var t=e.get("el"),r=(0,v.qo)(t.children).sort(n),i=document.createDocumentFragment();r.forEach(function(a){i.appendChild(a)}),t.appendChild(i)}function Mo(e){var n=e.attr().matrix;if(n){for(var t=e.cfg.el,r=[],i=0;i<9;i+=3)r.push(n[i]+","+n[i+1]);-1===(r=r.join(",")).indexOf("NaN")?t.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",n)}}function Co(e,n){var t=e.getClip(),r=e.get("el");if(t){if(t&&!r.hasAttribute("clip-path")){Sd(t),t.createPath(n);var i=n.addClip(t);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function bd(e,n){n.forEach(function(t){t.draw(e)})}function Td(e,n){var t=e.get("canvas");if(t&&t.get("autoDraw")){var r=t.get("context"),i=e.getParent(),a=i?i.getChildren():[t],o=e.get("el");if("remove"===n)if(e.get("isClipShape")){var l=o&&o.parentNode,c=l&&l.parentNode;l&&c&&c.removeChild(l)}else o&&o.parentNode&&o.parentNode.removeChild(o);else if("show"===n)o.setAttribute("visibility","visible");else if("hide"===n)o.setAttribute("visibility","hidden");else if("zIndex"===n)!function bS(e,n){var t=e.parentNode,r=Array.from(t.childNodes).filter(function(s){return 1===s.nodeType&&"defs"!==s.nodeName.toLowerCase()}),i=r[n],a=r.indexOf(e);if(i){if(a>n)t.insertBefore(e,i);else if(a0&&(r?"stroke"in i?this._setColor(t,"stroke",s):"strokeStyle"in i&&this._setColor(t,"stroke",l):this._setColor(t,"stroke",s||l),h&&p.setAttribute(Je.strokeOpacity,h),f&&p.setAttribute(Je.lineWidth,f))},n.prototype._setColor=function(t,r,i){var a=this.get("el");if(i)if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i))(o=t.find("gradient",i))||(o=t.addGradient(i)),a.setAttribute(Je[r],"url(#"+o+")");else if(/^[p,P]{1}[\s]*\(/.test(i)){var o;(o=t.find("pattern",i))||(o=t.addPattern(i)),a.setAttribute(Je[r],"url(#"+o+")")}else a.setAttribute(Je[r],i);else a.setAttribute(Je[r],"none")},n.prototype.shadow=function(t,r){var i=this.attr(),a=r||i;(a.shadowOffsetX||a.shadowOffsetY||a.shadowBlur||a.shadowColor)&&function TS(e,n){var t=e.cfg.el,r=e.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=n.find("filter",i);a||(a=n.addShadow(i)),t.setAttribute("filter","url(#"+a+")")}else t.removeAttribute("filter")}(this,t)},n.prototype.transform=function(t){var r=this.attr();(t||r).matrix&&Mo(this)},n.prototype.isInShape=function(t,r){return this.isPointInPath(t,r)},n.prototype.isPointInPath=function(t,r){var i=this.get("el"),o=this.get("canvas").get("el").getBoundingClientRect(),c=document.elementFromPoint(t+o.left,r+o.top);return!(!c||!c.isEqualNode(i))},n.prototype.getHitLineWidth=function(){var t=this.attrs,r=t.lineWidth,i=t.lineAppendWidth;return this.isStroke()?r+i:0},n}(bn.AbstractShape);const ir=FS;var ES=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,r:0})},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"x"===s||"y"===s?a.setAttribute("c"+s,o):Je[s]&&a.setAttribute(Je[s],o)})},n}(ir);const kS=ES;var IS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return(0,g.ZT)(n,e),n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");if((0,v.S6)(r||i,function(c,h){Je[h]&&a.setAttribute(Je[h],c)}),"function"==typeof i.html){var o=i.html.call(this,i);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,l=s.length-1;l>=0;l--)a.removeChild(s[l]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=i.html},n}(ir);const DS=IS;var LS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,rx:0,ry:0})},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"x"===s||"y"===s?a.setAttribute("c"+s,o):Je[s]&&a.setAttribute(Je[s],o)})},n}(ir);const OS=LS;var PS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");(0,v.S6)(r||a,function(s,l){"img"===l?i._setImage(a.img):Je[l]&&o.setAttribute(Je[l],s)})},n.prototype.setAttr=function(t,r){this.attrs[t]=r,"img"===t&&this._setImage(r)},n.prototype._setImage=function(t){var r=this.attr(),i=this.get("el");if((0,v.HD)(t))i.setAttribute("href",t);else if(t instanceof window.Image)r.width||(i.setAttribute("width",t.width),this.attr("width",t.width)),r.height||(i.setAttribute("height",t.height),this.attr("height",t.height)),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,v.HD)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+t.width),a.setAttribute("height",""+t.height),a.getContext("2d").putImageData(t,0,0),r.width||(i.setAttribute("width",""+t.width),this.attr("width",t.width)),r.height||(i.setAttribute("height",""+t.height),this.attr("height",t.height)),i.setAttribute("href",a.toDataURL())}},n}(ir);const zS=PS;var BS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){if("startArrow"===s||"endArrow"===s)if(o){var l=(0,v.Kn)(o)?t.addArrow(i,Je[s]):t.getDefaultArrow(i,Je[s]);a.setAttribute(Je[s],"url(#"+l+")")}else a.removeAttribute(Je[s]);else Je[s]&&a.setAttribute(Je[s],o)})},n.prototype.getTotalLength=function(){var t=this.attr();return Pn.x1.length(t.x1,t.y1,t.x2,t.y2)},n.prototype.getPoint=function(t){var r=this.attr();return Pn.x1.pointAt(r.x1,r.y1,r.x2,r.y2,t)},n}(ir);const RS=BS;var $s={circle:function(e,n,t){return[["M",e,n],["m",-t,0],["a",t,t,0,1,0,2*t,0],["a",t,t,0,1,0,2*-t,0]]},square:function(e,n,t){return[["M",e-t,n-t],["L",e+t,n-t],["L",e+t,n+t],["L",e-t,n+t],["Z"]]},diamond:function(e,n,t){return[["M",e-t,n],["L",e,n-t],["L",e+t,n],["L",e,n+t],["Z"]]},triangle:function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n+r],["L",e,n-r],["L",e+t,n+r],["z"]]},triangleDown:function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n-r],["L",e+t,n-r],["L",e,n+r],["Z"]]}};const Ad={get:function(e){return $s[e]},register:function(e,n){$s[e]=n},remove:function(e){delete $s[e]},getAll:function(){return $s}};var NS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},n.prototype._assembleMarker=function(){var t=this._getPath();return(0,v.kJ)(t)?t.map(function(r){return r.join(" ")}).join(""):t},n.prototype._getPath=function(){var s,t=this.attr(),r=t.x,i=t.y,a=t.r||t.radius,o=t.symbol||"circle";return(s=(0,v.mf)(o)?o:Ad.get(o))?s(r,i,a):(console.warn(s+" symbol is not exist."),null)},n.symbolsFactory=Ad,n}(ir);const VS=NS;var US=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{startArrow:!1,endArrow:!1})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");(0,v.S6)(r||a,function(s,l){if("path"===l&&(0,v.kJ)(s))o.setAttribute("d",i._formatPath(s));else if("startArrow"===l||"endArrow"===l)if(s){var c=(0,v.Kn)(s)?t.addArrow(a,Je[l]):t.getDefaultArrow(a,Je[l]);o.setAttribute(Je[l],"url(#"+c+")")}else o.removeAttribute(Je[l]);else Je[l]&&o.setAttribute(Je[l],s)})},n.prototype._formatPath=function(t){var r=t.map(function(i){return i.join(" ")}).join("");return~r.indexOf("NaN")?"":r},n.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},n.prototype.getPoint=function(t){var r=this.get("el"),i=this.getTotalLength();if(0===i)return null;var a=r?r.getPointAtLength(t*i):null;return a?{x:a.x,y:a.y}:null},n}(ir);const YS=US;var HS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"points"===s&&(0,v.kJ)(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Je[s]&&a.setAttribute(Je[s],o)})},n}(ir);const GS=HS;var ZS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{startArrow:!1,endArrow:!1})},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),-1!==["points"].indexOf(t)&&this._resetCache()},n.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"points"===s&&(0,v.kJ)(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Je[s]&&a.setAttribute(Je[s],o)})},n.prototype.getTotalLength=function(){var t=this.attr().points,r=this.get("totalLength");return(0,v.UM)(r)?(this.set("totalLength",Pn.aH.length(t)),this.get("totalLength")):r},n.prototype.getPoint=function(t){var a,o,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,v.S6)(i,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Pn.x1.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],a)},n.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var r=this.getTotalLength();if(!(r<=0)){var o,s,i=0,a=[];(0,v.S6)(t,function(l,c){t[c+1]&&((o=[])[0]=i/r,s=Pn.x1.length(l[0],l[1],t[c+1][0],t[c+1][1]),o[1]=(i+=s)/r,a.push(o))}),this.set("tCache",a)}}},n.prototype.getStartTangent=function(){var t=this.attr().points,r=[];return r.push([t[1][0],t[1][1]]),r.push([t[0][0],t[0][1]]),r},n.prototype.getEndTangent=function(){var t=this.attr().points,r=t.length-1,i=[];return i.push([t[r-1][0],t[r-1][1]]),i.push([t[r][0],t[r][1]]),i},n}(ir);const WS=ZS;var QS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el"),s=!1,l=["x","y","width","height","radius"];(0,v.S6)(r||a,function(c,h){-1===l.indexOf(h)||s?-1===l.indexOf(h)&&Je[h]&&o.setAttribute(Je[h],c):(o.setAttribute("d",i._assembleRect(a)),s=!0)})},n.prototype._assembleRect=function(t){var r=t.x,i=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+r+","+i+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var l=function JS(e){var n=0,t=0,r=0,i=0;return(0,v.kJ)(e)?1===e.length?n=t=r=i=e[0]:2===e.length?(n=r=e[0],t=i=e[1]):3===e.length?(n=e[0],t=i=e[1],r=e[2]):(n=e[0],t=e[1],r=e[2],i=e[3]):n=t=r=i=e,{r1:n,r2:t,r3:r,r4:i}}(s);return(0,v.kJ)(s)?1===s.length?l.r1=l.r2=l.r3=l.r4=s[0]:2===s.length?(l.r1=l.r3=s[0],l.r2=l.r4=s[1]):3===s.length?(l.r1=s[0],l.r2=l.r4=s[1],l.r3=s[2]):(l.r1=s[0],l.r2=s[1],l.r3=s[2],l.r4=s[3]):l.r1=l.r2=l.r3=l.r4=s,[["M "+(r+l.r1)+","+i],["l "+(a-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-a)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},n}(ir);const qS=QS;var jS=V(1653),KS={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},t_={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},e_={left:"left",start:"left",center:"middle",right:"end",end:"end"},n_=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");this._setFont(),(0,v.S6)(r||a,function(s,l){"text"===l?i._setText(""+s):"matrix"===l&&s?Mo(i):Je[l]&&o.setAttribute(Je[l],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},n.prototype._setFont=function(){var t=this.get("el"),r=this.attr(),i=r.textBaseline,a=r.textAlign,o=(0,jS.qY)();o&&"firefox"===o.name?t.setAttribute("dominant-baseline",t_[i]||"alphabetic"):t.setAttribute("alignment-baseline",KS[i]||"baseline"),t.setAttribute("text-anchor",e_[a]||"left")},n.prototype._setText=function(t){var r=this.get("el"),i=this.attr(),a=i.x,o=i.textBaseline,s=void 0===o?"bottom":o;if(t)if(~t.indexOf("\n")){var l=t.split("\n"),c=l.length-1,h="";(0,v.S6)(l,function(f,p){0===p?"alphabetic"===s?h+=''+f+"":"top"===s?h+=''+f+"":"middle"===s?h+=''+f+"":"bottom"===s?h+=''+f+"":"hanging"===s&&(h+=''+f+""):h+=''+f+""}),r.innerHTML=h}else r.innerHTML=t;else r.innerHTML=""},n}(ir);const r_=n_;var i_=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a_=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o_=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Ed(e){var n=e.match(o_);if(!n)return"";var t="";return n.sort(function(r,i){return r=r.split(":"),i=i.split(":"),Number(r[0])-Number(i[0])}),(0,v.S6)(n,function(r){r=r.split(":"),t+=''}),t}var c_=function(){function e(n){this.cfg={};var t=null,r=(0,v.EL)("gradient_");return"l"===n.toLowerCase()[0]?function s_(e,n){var a,o,t=i_.exec(e),r=(0,v.wQ)((0,v.c$)(parseFloat(t[1])),2*Math.PI),i=t[2];r>=0&&r<.5*Math.PI?(a={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=r&&r'},e}();const p_=v_;var d_=function(){function e(n,t){this.cfg={};var r=rr("marker"),i=(0,v.EL)("marker_");r.setAttribute("id",i);var a=rr("path");a.setAttribute("stroke",n.stroke||"none"),a.setAttribute("fill",n.fill||"none"),r.appendChild(a),r.setAttribute("overflow","visible"),r.setAttribute("orient","auto-start-reverse"),this.el=r,this.child=a,this.id=i;var o=n["marker-start"===t?"startArrow":"endArrow"];return this.stroke=n.stroke||"#000",!0===o?this._setDefaultPath(t,a):(this.cfg=o,this._setMarker(n.lineWidth,a)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(n,t){var r=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),r.setAttribute("refX",""+10*Math.cos(Math.PI/6)),r.setAttribute("refY","5")},e.prototype._setMarker=function(n,t){var r=this.el,i=this.cfg.path,a=this.cfg.d;(0,v.kJ)(i)&&(i=i.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",i),r.appendChild(t),a&&r.setAttribute("refX",""+a/n)},e.prototype.update=function(n){var t=this.child;t.attr?t.attr("fill",n):t.setAttribute("fill",n)},e}();const kd=d_;var g_=function(){function e(n){this.type="clip",this.cfg={};var t=rr("clipPath");return this.el=t,this.id=(0,v.EL)("clip_"),t.id=this.id,t.appendChild(n.cfg.el),this.cfg=n,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var n=this.el;n.parentNode.removeChild(n)},e}();const y_=g_;var m_=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,x_=function(){function e(n){this.cfg={};var t=rr("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var r=rr("image");t.appendChild(r);var i=(0,v.EL)("pattern_");t.id=i,this.el=t,this.id=i,this.cfg=n;var o=m_.exec(n)[2];r.setAttribute("href",o);var s=new Image;function l(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o,s.complete?l():(s.onload=l,s.src=s.src),this}return e.prototype.match=function(n,t){return this.cfg===t},e}();const M_=x_;var C_=function(){function e(n){var t=rr("defs"),r=(0,v.EL)("defs_");t.id=r,n.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=n}return e.prototype.find=function(n,t){for(var r=this.children,i=null,a=0;a0&&(d[0][0]="L")),a=a.concat(d)}),a.push(["Z"])}return a}function Js(e,n,t,r,i){for(var a=dn(e,n,!n,"lineWidth"),s=e.isInCircle,h=Vs(e.points,e.connectNulls,e.showSinglePoint),f=[],p=0,d=h.length;po&&(o=l),l=r[0]}));var x=this.scales[y];try{for(var M=(0,g.XA)(t),C=M.next();!C.done;C=M.next()){var S=C.value,b=this.getDrawCfg(S),E=b.x,W=b.y,tt=x.scale(S[nn][y]);this.drawGrayScaleBlurredCircle(E-c.x,W-h.y,i+a,tt,m)}}catch(yt){o={error:yt}}finally{try{C&&!C.done&&(s=M.return)&&s.call(M)}finally{if(o)throw o.error}}var it=m.getImageData(0,0,f,p);this.clearShadowCanvasCtx(),this.colorize(it),m.putImageData(it,0,0);var wt=this.getImageShape();wt.attr("x",c.x),wt.attr("y",h.y),wt.attr("width",f),wt.attr("height",p),wt.attr("img",m.canvas),wt.set("origin",this.getShapeInfo(t))},n.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),r=this.coordinate;return Math.min(r.getWidth()/(4*t.scales[0].ticks.length),r.getHeight()/(4*t.scales[1].ticks.length))},n.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},n.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},n.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},n.prototype.drawGrayScaleBlurredCircle=function(t,r,i,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-i,r-i)},n.prototype.colorize=function(t){for(var r=this.getAttribute("color"),i=t.data,a=this.paletteCache,o=3;on&&(r=n-(t=t?n/(1+r/t):0)),i+a>n&&(a=n-(i=i?n/(1+a/i):0)),[t||0,r||0,i||0,a||0]}function Ld(e,n,t){var r=[];if(t.isRect){var i=t.isTransposed?{x:t.start.x,y:n[0].y}:{x:n[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:n[2].y}:{x:n[3].x,y:t.end.y},o=(0,v.U2)(e,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(n[0].y-n[2].y):n[2].x-n[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),c=(0,g.CR)(Dd(o,Math.min(s,l)),4),h=c[0],f=c[1],p=c[2],d=c[3],y=t.isTransposed&&t.isReflect("y"),m=y?0:1,x=function(W){return y?-W:W};r.push(["M",i.x,a.y+x(h)]),0!==h&&r.push(["A",h,h,0,0,m,i.x+h,a.y]),r.push(["L",a.x-f,a.y]),0!==f&&r.push(["A",f,f,0,0,m,a.x,a.y+x(f)]),r.push(["L",a.x,i.y-x(p)]),0!==p&&r.push(["A",p,p,0,0,m,a.x-p,i.y]),r.push(["L",i.x+d,i.y]),0!==d&&r.push(["A",d,d,0,0,m,i.x,i.y-x(d)])}else r.push(["M",i.x,i.y]),r.push(["L",a.x,i.y]),r.push(["L",a.x,a.y]),r.push(["L",i.x,a.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(t.isPolar){var M=t.getCenter(),C=so(e,t),S=C.startAngle,b=C.endAngle;if("theta"===t.type||t.isTransposed){var E=function(it){return Math.pow(it,2)};h=Math.sqrt(E(M.x-n[0].x)+E(M.y-n[0].y)),f=Math.sqrt(E(M.x-n[2].x)+E(M.y-n[2].y)),r=oi(M.x,M.y,h,t.startAngle,t.endAngle,f)}else r=oi(M.x,M.y,t.getRadius(),S,b)}return r}function Od(e,n,t){var r=[];return(0,v.UM)(n)?t?r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",n[1].x,n[1].y],["L",n[0].x,n[0].y],["Z"]),r}function wo(e,n){return[n,e]}function zu(e){var n=e.theme,t=e.coordinate,r=e.getXScale(),i=r.values,a=e.beforeMappingData,o=i.length,s=lo(e.coordinate),l=e.intervalPadding,c=e.dodgePadding,h=e.maxColumnWidth||n.maxColumnWidth,f=e.minColumnWidth||n.minColumnWidth,p=e.columnWidthRatio||n.columnWidthRatio,d=e.multiplePieWidthRatio||n.multiplePieWidthRatio,y=e.roseWidthRatio||n.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var m=function z_(e,n){var t=e.length,r=e;(0,v.HD)(r[0])&&(r=e.map(function(s){return n.translate(s)}));for(var i=r[1]-r[0],a=2;ao&&(i=o)}return i}(i,r);i.length>(o=(r.max-r.min)/m)&&(o=i.length)}var x=r.range,M=1/o,C=1;if(t.isPolar?C=t.isTransposed&&o>1?d:y:(r.isLinear&&(M*=x[1]-x[0]),C=p),!(0,v.UM)(l)&&l>=0?M=(1-l/s*(o-1))/o:M*=C,e.getAdjust("dodge")){var W=function B_(e,n){if(n){var t=(0,v.xH)(e);return(0,v.I)(t,n).length}return e.length}(a,e.getAdjust("dodge").dodgeBy);!(0,v.UM)(c)&&c>=0?M=(M-c/s*(W-1))/W:(!(0,v.UM)(l)&&l>=0&&(M*=C),M/=W),M=M>=0?M:0}if(!(0,v.UM)(h)&&h>=0){var it=h/s;M>it&&(M=it)}if(!(0,v.UM)(f)&&f>=0){var wt=f/s;M0&&!(0,v.U2)(r,[i,"min"])&&t.change({min:0}),o<=0&&!(0,v.U2)(r,[i,"max"])&&t.change({max:0}))}},n.prototype.getDrawCfg=function(t){var r=e.prototype.getDrawCfg.call(this,t);return r.background=this.background,r},n}(ui);const N_=R_;var V_=function(e){function n(t){var r=e.call(this,t)||this;r.type="line";var i=t.sortable;return r.sortable=void 0!==i&&i,r}return(0,g.ZT)(n,e),n}(Lu);const U_=V_;var Pd=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function Bu(e,n,t,r,i){var a,o,s=dn(n,i,!i,"r"),l=e.parsePoints(n.points),c=l[0];if(n.isStack)c=l[1];else if(l.length>1){var h=t.addGroup();try{for(var f=(0,g.XA)(l),p=f.next();!p.done;p=f.next()){var d=p.value;h.addShape({type:"marker",attrs:(0,g.pi)((0,g.pi)((0,g.pi)({},s),{symbol:Li[r]||r}),d)})}}catch(y){a={error:y}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return h}return t.addShape({type:"marker",attrs:(0,g.pi)((0,g.pi)((0,g.pi)({},s),{symbol:Li[r]||r}),c)})}ci("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return xu(e)}}),(0,v.S6)(Pd,function(e){Qe("point","hollow-".concat(e),{draw:function(n,t){return Bu(this,n,t,e,!0)},getMarker:function(n){return{symbol:Li[e]||e,style:{r:4.5,stroke:n.color,fill:null}}}})});var H_=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return(0,g.ZT)(n,e),n.prototype.getDrawCfg=function(t){var r=e.prototype.getDrawCfg.call(this,t);return(0,g.pi)((0,g.pi)({},r),{isStack:!!this.getAdjust("stack")})},n}(ui);const G_=H_;ci("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(e){var n=[];return(0,v.S6)(e.x,function(t,r){n.push({x:t,y:e.y[r]})}),n}}),Qe("polygon","polygon",{draw:function(e,n){if(!(0,v.xb)(e.points)){var t=dn(e,!0,!0),r=this.parsePath(function Z_(e){for(var n=e[0],t=1,r=[["M",n.x,n.y]];t2?"weight":"normal";if(e.isInCircle){var o={x:0,y:1};return"normal"===i?a=function K_(e,n,t){var r=Nu(n,t),i=[["M",e.x,e.y]];return i.push(r),i}(r[0],r[1],o):(t.fill=t.stroke,a=function t6(e,n){var t=Nu(e[1],n),r=Nu(e[3],n),i=[["M",e[0].x,e[0].y]];return i.push(r),i.push(["L",e[3].x,e[3].y]),i.push(["L",e[2].x,e[2].y]),i.push(t),i.push(["L",e[1].x,e[1].y]),i.push(["L",e[0].x,e[0].y]),i.push(["Z"]),i}(r,o)),a=this.parsePath(a),n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:a})})}if("normal"===i)return a=Qv(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:a})});var s=Ru(r[1],r[3]),l=Ru(r[2],r[0]);return a=this.parsePath(a=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]]),t.fill=t.stroke,n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:a})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),Qe("edge","smooth",{draw:function(e,n){var t=dn(e,!0,!1,"lineWidth"),r=e.points,i=this.parsePath(function e6(e,n){var t=Ru(e,n),r=[["M",e.x,e.y]];return r.push(t),r}(r[0],r[1]));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var Qs=1/3;Qe("edge","vhv",{draw:function(e,n){var t=dn(e,!0,!1,"lineWidth"),r=e.points,i=this.parsePath(function n6(e,n){var t=[];t.push({x:e.x,y:e.y*(1-Qs)+n.y*Qs}),t.push({x:n.x,y:e.y*(1-Qs)+n.y*Qs}),t.push(n);var r=[["M",e.x,e.y]];return(0,v.S6)(t,function(i){r.push(["L",i.x,i.y])}),r}(r[0],r[1]));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),Qe("interval","funnel",{getPoints:function(e){return e.size=2*e.size,Ou(e)},draw:function(e,n){var t=dn(e,!1,!0),r=this.parsePath(Od(e.points,e.nextPoints,!1));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),Qe("interval","hollow-rect",{draw:function(e,n){var t=dn(e,!0,!1),r=n,i=e?.background;if(i){r=n.addGroup();var a=ed(e),o=Ld(e,this.parsePoints(e.points),this.coordinate);r.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},a),{path:o}),capture:!1,zIndex:-1,name:vu})}var s=this.parsePath(Pu(e.points)),l=r.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:s}),name:"interval"});return i?r:l},getMarker:function(e){var n=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,stroke:n,fill:null}}:{symbol:"square",style:{r:4,stroke:n,fill:null}}}}),Qe("interval","line",{getPoints:function(e){return function r6(e){var n=e.x,t=e.y,r=e.y0;return(0,v.kJ)(t)?t.map(function(i,a){return{x:(0,v.kJ)(n)?n[a]:n,y:i}}):[{x:n,y:r},{x:n,y:t}]}(e)},draw:function(e,n){var t=dn(e,!0,!1,"lineWidth"),r=Un((0,g.pi)({},t),["fill"]),i=this.parsePath(Pu(e.points,!1));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},r),{path:i}),name:"interval"})},getMarker:function(e){return{symbol:function(t,r,i){return[["M",t,r-i],["L",t,r+i]]},style:{r:5,stroke:e.color}}}}),Qe("interval","pyramid",{getPoints:function(e){return e.size=2*e.size,Ou(e)},draw:function(e,n){var t=dn(e,!1,!0),r=this.parsePath(Od(e.points,e.nextPoints,!0));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),Qe("interval","tick",{getPoints:function(e){return function i6(e){var n,o,s,t=e.x,r=e.y,i=e.y0,a=e.size;(0,v.kJ)(r)?(o=(n=(0,g.CR)(r,2))[0],s=n[1]):(o=i,s=r);var l=t+a/2,c=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:c,y:o},{x:l,y:o},{x:c,y:s},{x:l,y:s}]}(e)},draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(function a6(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(t,r,i){return[["M",t-i/2,r-i],["L",t+i/2,r-i],["M",t,r-i],["L",t,r+i],["M",t-i/2,r+i],["L",t+i/2,r+i]]},style:{r:5,stroke:e.color}}}});function zd(e){var n=(0,v.kJ)(e)?e:[e],t=n[0],r=n[n.length-1],i=n.length>1?n[1]:t;return{min:t,max:r,min1:i,max1:n.length>3?n[3]:r,median:n.length>2?n[2]:i}}function Bd(e,n,t){var i,r=t/2;if((0,v.kJ)(n)){var a=zd(n),f=e-r,p=e+r;i=[[f,s=a.max],[p,s],[e,s],[e,h=a.max1],[f,c=a.min1],[f,h],[p,h],[p,c],[e,c],[e,o=a.min],[f,o],[p,o],[f,l=a.median],[p,l]]}else{n=(0,v.UM)(n)?.5:n;var o,s,l,c,h,d=zd(e),y=n-r,m=n+r;i=[[o=d.min,y],[o,m],[o,n],[c=d.min1,n],[c,y],[c,m],[h=d.max1,m],[h,y],[h,n],[s=d.max,n],[s,y],[s,m],[l=d.median,y],[l,m]]}return i.map(function(x){return{x:x[0],y:x[1]}})}function Rd(e,n,t){var r=function h6(e){var t=((0,v.kJ)(e)?e:[e]).sort(function(r,i){return i-r});return function YM(e,n,t){if((0,v.HD)(e))return e.padEnd(n,t);if((0,v.kJ)(e)){var r=e.length;if(r1){var s=n.addGroup();try{for(var l=(0,g.XA)(a),c=l.next();!c.done;c=l.next()){var h=c.value;s.addShape("image",{attrs:{x:h.x-i/2,y:h.y-i,width:i,height:i,img:e.shape[1]}})}}catch(f){t={error:f}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return s}return n.addShape("image",{attrs:{x:o.x-i/2,y:o.y-i,width:i,height:i,img:e.shape[1]}})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),(0,v.S6)(Pd,function(e){Qe("point",e,{draw:function(n,t){return Bu(this,n,t,e,!1)},getMarker:function(n){return{symbol:Li[e]||e,style:{r:4.5,fill:n.color}}}})}),Qe("schema","box",{getPoints:function(e){return Bd(e.x,e.y,e.size)},draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(function u6(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r,name:"schema"})})},getMarker:function(e){return{symbol:function(t,r,i){var o=Bd(t,[r-6,r-3,r,r+3,r+6],i);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:e.color}}}}),Qe("schema","candle",{getPoints:function(e){return Rd(e.x,e.y,e.size)},draw:function(e,n){var t=dn(e,!0,!0),r=this.parsePath(function f6(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r,name:"schema"})})},getMarker:function(e){var n=e.color;return{symbol:function(t,r,i){var o=Rd(t,[r+7.5,r+3,r-3,r-7.5],i);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:n,fill:n,r:6}}}}),Qe("polygon","square",{draw:function(e,n){if(!(0,v.xb)(e.points)){var t=dn(e,!0,!0),r=this.parsePoints(e.points);return n.addShape("rect",{attrs:(0,g.pi)((0,g.pi)({},t),v6(r,e.size)),name:"polygon"})}},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),Qe("violin","smooth",{draw:function(e,n){var t=dn(e,!0,!0),r=this.parsePath(td(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{stroke:null,r:4,fill:e.color}}}}),Qe("violin","hollow",{draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(Kp(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}}),Qe("violin","hollow-smooth",{draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(td(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}});var p6=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getLabelValueDir=function(t){var i=t.points;return i[0].y<=i[2].y?1:-1},n.prototype.getLabelOffsetPoint=function(t,r,i,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,r,i),l=this.getCoordinate(),h=l.isTransposed?"x":"y",f=this.getLabelValueDir(t.mappingData);return s=(0,g.pi)((0,g.pi)({},s),((o={})[h]=s[h]*f,o)),l.isReflect("x")&&(s=(0,g.pi)((0,g.pi)({},s),{x:-1*s.x})),l.isReflect("y")&&(s=(0,g.pi)((0,g.pi)({},s),{y:-1*s.y})),s},n.prototype.getThemedLabelCfg=function(t){var r=this.geometry,i=this.getDefaultLabelCfg();return(0,v.b$)({},i,r.theme.labels,"middle"===t.position?{offset:0}:{},t)},n.prototype.setLabelPosition=function(t,r,i,a){var p,d,y,m,o=this.getCoordinate(),s=o.isTransposed,l=r.points,c=o.convert(l[0]),h=o.convert(l[2]),f=this.getLabelValueDir(r),x=(0,v.kJ)(r.shape)?r.shape[0]:r.shape;if("funnel"===x||"pyramid"===x){var M=(0,v.U2)(r,"nextPoints"),C=(0,v.U2)(r,"points");if(M){var S=o.convert(C[0]),b=o.convert(C[1]),E=o.convert(M[0]),W=o.convert(M[1]);s?(p=Math.min(E.y,S.y),y=Math.max(E.y,S.y),d=(b.x+W.x)/2,m=(S.x+E.x)/2):(p=Math.min((b.y+W.y)/2,(S.y+E.y)/2),y=Math.max((b.y+W.y)/2,(S.y+E.y)/2),d=W.x,m=S.x)}else p=Math.min(h.y,c.y),y=Math.max(h.y,c.y),d=h.x,m=c.x}else p=Math.min(h.y,c.y),y=Math.max(h.y,c.y),d=h.x,m=c.x;switch(a){case"right":t.x=d,t.y=(p+y)/2,t.textAlign=(0,v.U2)(t,"textAlign",f>0?"left":"right");break;case"left":t.x=m,t.y=(p+y)/2,t.textAlign=(0,v.U2)(t,"textAlign",f>0?"left":"right");break;case"bottom":s&&(t.x=(d+m)/2),t.y=y,t.textAlign=(0,v.U2)(t,"textAlign","center"),t.textBaseline=(0,v.U2)(t,"textBaseline",f>0?"bottom":"top");break;case"middle":s&&(t.x=(d+m)/2),t.y=(p+y)/2,t.textAlign=(0,v.U2)(t,"textAlign","center"),t.textBaseline=(0,v.U2)(t,"textBaseline","middle");break;case"top":s&&(t.x=(d+m)/2),t.y=p,t.textAlign=(0,v.U2)(t,"textAlign","center"),t.textBaseline=(0,v.U2)(t,"textBaseline",f>0?"bottom":"top")}},n}(Ns);const d6=p6;var qs=Math.PI/2,g6=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getLabelOffset=function(t){var r=this.getCoordinate(),i=0;if((0,v.hj)(t))i=t;else if((0,v.HD)(t)&&-1!==t.indexOf("%")){var a=r.getRadius();r.innerRadius>0&&(a*=1-r.innerRadius),i=.01*parseFloat(t)*a}return i},n.prototype.getLabelItems=function(t){var r=e.prototype.getLabelItems.call(this,t),i=this.geometry.getYScale();return(0,v.UI)(r,function(a){if(a&&i){var o=i.scale((0,v.U2)(a.data,i.field));return(0,g.pi)((0,g.pi)({},a),{percent:o})}return a})},n.prototype.getLabelAlign=function(t){var i,r=this.getCoordinate();if(t.labelEmit)i=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(r.isTransposed){var a=r.getCenter(),o=t.offset;i=Math.abs(t.x-a.x)<1?"center":t.angle>Math.PI||t.angle<=0?o>0?"left":"right":o>0?"right":"left"}else i="center";return i},n.prototype.getLabelPoint=function(t,r,i){var o,a=1,s=t.content[i];this.isToMiddle(r)?o=this.getMiddlePoint(r.points):(1===t.content.length&&0===i?i=1:0===i&&(a=-1),o=this.getArcPoint(r,i));var l=t.offset*a,c=this.getPointAngle(o),h=t.labelEmit,f=this.getCirclePoint(c,l,o,h);return 0===f.r?f.content="":(f.content=s,f.angle=c,f.color=r.color),f.rotate=t.autoRotate?this.getLabelRotate(c,l,h):t.rotate,f.start={x:o.x,y:o.y},f},n.prototype.getArcPoint=function(t,r){return void 0===r&&(r=0),(0,v.kJ)(t.x)||(0,v.kJ)(t.y)?{x:(0,v.kJ)(t.x)?t.x[r]:t.x,y:(0,v.kJ)(t.y)?t.y[r]:t.y}:{x:t.x,y:t.y}},n.prototype.getPointAngle=function(t){return va(this.getCoordinate(),t)},n.prototype.getCirclePoint=function(t,r,i,a){var o=this.getCoordinate(),s=o.getCenter(),l=Ts(o,i);if(0===l)return(0,g.pi)((0,g.pi)({},s),{r:l});var c=t;return o.isTransposed&&l>r&&!a?c=t+2*Math.asin(r/(2*l)):l+=r,{x:s.x+l*Math.cos(c),y:s.y+l*Math.sin(c),r:l}},n.prototype.getLabelRotate=function(t,r,i){var a=t+qs;return i&&(a-=qs),a&&(a>qs?a-=Math.PI:a<-qs&&(a+=Math.PI)),a},n.prototype.getMiddlePoint=function(t){var r=this.getCoordinate(),i=t.length,a={x:0,y:0};return(0,v.S6)(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=i,a.y/=i,a=r.convert(a)},n.prototype.isToMiddle=function(t){return t.x.length>2},n}(Ns);const Nd=g6;var y6=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return(0,g.ZT)(n,e),n.prototype.getDefaultLabelCfg=function(t,r){var i=e.prototype.getDefaultLabelCfg.call(this,t,r);return(0,v.b$)({},i,(0,v.U2)(this.geometry.theme,"pieLabels",{}))},n.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},n.prototype.getLabelRotate=function(t,r,i){var a;return r<0&&((a=t)>Math.PI/2&&(a-=Math.PI),a<-Math.PI/2&&(a+=Math.PI)),a},n.prototype.getLabelAlign=function(t){var a,i=this.getCoordinate().getCenter();return a=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right",t.offset<=0&&(a="right"===a?"left":"right"),a},n.prototype.getArcPoint=function(t){return t},n.prototype.getPointAngle=function(t){var o,r=this.getCoordinate(),i={x:(0,v.kJ)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:(0,v.kJ)(t.x)?t.x[1]:t.x,y:t.y[1]},s=va(r,i);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=va(r,a);s>=l&&(l+=2*Math.PI),o=s+(l-s)/2}return o},n.prototype.getCirclePoint=function(t,r){var i=this.getCoordinate(),a=i.getCenter(),o=i.getRadius()+r;return(0,g.pi)((0,g.pi)({},yn(a.x,a.y,o,t)),{angle:t,r:o})},n}(Nd);const m6=y6;function Ud(e,n,t){var r=e.filter(function(y){return!y.invisible});r.sort(function(y,m){return y.y-m.y});var l,i=!0,a=t.minY,s=Math.abs(a-t.maxY),c=0,h=Number.MIN_VALUE,f=r.map(function(y){return y.y>c&&(c=y.y),y.ys&&(s=c-a);i;)for(f.forEach(function(y){var m=(Math.min.apply(h,y.targets)+Math.max.apply(h,y.targets))/2;y.pos=Math.min(Math.max(h,m-y.size/2),s-y.size),y.pos=Math.max(0,y.pos)}),i=!1,l=f.length;l--;)if(l>0){var p=f[l-1],d=f[l];p.pos+p.size>d.pos&&(p.size+=d.size,p.targets=p.targets.concat(d.targets),p.pos+p.size>s&&(p.pos=s-p.size),f.splice(l,1),i=!0)}l=0,f.forEach(function(y){var m=a+n/2;y.targets.forEach(function(){r[l].y=y.pos+m,m+=n,l++})})}var Gd=function(){function e(n){void 0===n&&(n={}),this.bitmap={};var t=n.xGap,i=n.yGap,a=void 0===i?8:i;this.xGap=void 0===t?1:t,this.yGap=a}return e.prototype.hasGap=function(n){for(var t=!0,r=this.bitmap,i=Math.round(n.minX),a=Math.round(n.maxX),o=Math.round(n.minY),s=Math.round(n.maxY),l=i;l<=a;l+=1)if(r[l]){if(l===i||l===a){for(var c=o;c<=s;c++)if(r[l][c]){t=!1;break}}else if(r[l][o]||r[l][s]){t=!1;break}}else r[l]={};return t},e.prototype.fillGap=function(n){for(var t=this.bitmap,r=Math.round(n.minX),i=Math.round(n.maxX),a=Math.round(n.minY),o=Math.round(n.maxY),s=r;s<=i;s+=1)t[s]||(t[s]={});for(s=r;s<=i;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(1!==this.yGap)for(s=a;s<=o;s+=1)t[r][s]=!0,t[i][s]=!0;if(1!==this.xGap)for(s=r;s<=i;s+=1)t[s][a]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function k6(e,n,t,r){var i=e.getCanvasBBox(),a=i.width,o=i.height,s={x:n,y:t,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return e.attr(s),e.getCanvasBBox()}function Zd(e){if(e.length>4)return[];var n=function(i,a){return[a.x-i.x,a.y-i.y]};return[n(e[0],e[1]),n(e[1],e[2])]}function js(e,n,t){void 0===n&&(n=0),void 0===t&&(t={x:0,y:0});var r=e.x,i=e.y;return{x:(r-t.x)*Math.cos(-n)+(i-t.y)*Math.sin(-n)+t.x,y:(t.x-r)*Math.sin(-n)+(i-t.y)*Math.cos(-n)+t.y}}function Wd(e){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],t=e.rotation;return t?[js(n[0],t,n[0]),js(n[1],t,n[0]),js(n[2],t,n[0]),js(n[3],t,n[0])]:n}function Xd(e,n){if(e.length>4)return{min:0,max:0};var t=[];return e.forEach(function(r){t.push(function L6(e,n){return(e[0]||0)*(n[0]||0)+(e[1]||0)*(n[1]||0)+(e[2]||0)*(n[2]||0)}([r.x,r.y],n))}),{min:Math.min.apply(Math,(0,g.ev)([],(0,g.CR)(t),!1)),max:Math.max.apply(Math,(0,g.ev)([],(0,g.CR)(t),!1))}}function O6(e,n){return e.max>n.min&&e.mine.x+e.width+t||n.x+n.widthe.y+e.height+t||n.y+n.heightS.x+S.width+E||b.x+b.widthS.y+S.height+E||b.y+b.height"u")){var n;try{n=new Blob([e.toString()],{type:"application/javascript"})}catch{(n=new window.BlobBuilder).append(e.toString()),n=n.getBlob()}return new R6(URL.createObjectURL(n))}}(U6),Qd={"#5B8FF9":!0};function qd(e,n,t){return e.some(function(r){return t(r,n)})}function jd(e,n){return qd(e,n,function(t,r){var i=hi(t),a=hi(r);return function j6(e,n,t){return void 0===t&&(t=0),Math.max(0,Math.min(e.x+e.width+t,n.x+n.width+t)-Math.max(e.x-t,n.x-t))*Math.max(0,Math.min(e.y+e.height+t,n.y+n.height+t)-Math.max(e.y-t,n.y-t))}(i.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function Kd(e,n,t){return e.some(function(r){return t(r,n)})}function tg(e,n){return Kd(e,n,function(t,r){var i=hi(t),a=hi(r);return function e3(e,n,t){return void 0===t&&(t=0),Math.max(0,Math.min(e.x+e.width+t,n.x+n.width+t)-Math.max(e.x-t,n.x-t))*Math.max(0,Math.min(e.y+e.height+t,n.y+n.height+t)-Math.max(e.y-t,n.y-t))}(i.getCanvasBBox(),a.getCanvasBBox(),2)>0})}var Ks=(0,v.HP)(function(e,n){void 0===n&&(n={});var t=n.fontSize,r=n.fontFamily,i=n.fontWeight,a=n.fontStyle,o=n.fontVariant,s=function r3(){return Hu||(Hu=document.createElement("canvas").getContext("2d")),Hu}();return s.font=[a,o,i,"".concat(t,"px"),r].join(" "),s.measureText((0,v.HD)(e)?e:"").width},function(e,n){return void 0===n&&(n={}),(0,g.ev)([e],(0,g.CR)((0,v.VO)(n)),!1).join("")});function Gu(e,n,t,r,i){var c,h,a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight();"y"===i?(c=a.x+s/2,h=r.ya.x?r.x:a.x,h=a.y+l/2):"xy"===i&&(t.isPolar?(c=t.getCenter().x,h=t.getCenter().y):(c=(a.x+o.x)/2,h=(a.y+o.y)/2));var f=function l3(e,n,t){var r,i=(0,g.CR)(n,2),a=i[0],o=i[1];return e.applyToMatrix([a,o,1]),"x"===t?(e.setMatrix(an.vs(e.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),r=an.vs(e.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===t?(e.setMatrix(an.vs(e.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),r=an.vs(e.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===t&&(e.setMatrix(an.vs(e.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),r=an.vs(e.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),r}(e,[c,h],i);e.animate({matrix:f},n)}function eg(e,n){var t,r=Ys(e,n),i=r.startAngle,a=r.endAngle;return!(0,v.vQ)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!(0,v.vQ)(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===n[5]&&(i=(t=(0,g.CR)([a,i],2))[0],a=t[1]),(0,v.vQ)(i,1.5*Math.PI)&&(i=-.5*Math.PI),(0,v.vQ)(a,-.5*Math.PI)&&!(0,v.vQ)(i,a)&&(a=1.5*Math.PI),{startAngle:i,endAngle:a}}function ng(e){var n;return"M"===e[0]||"L"===e[0]?n=[e[1],e[2]]:("a"===e[0]||"A"===e[0]||"C"===e[0])&&(n=[e[e.length-2],e[e.length-1]]),n}function rg(e){var n,t,r,i=e.filter(function(S){return"A"===S[0]||"a"===S[0]});if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=i[0],o=i.length>1?i[1]:i[0],s=e.indexOf(a),l=e.indexOf(o),c=ng(e[s-1]),h=ng(e[l-1]),f=eg(c,a),p=f.startAngle,d=f.endAngle,y=eg(h,o),m=y.startAngle,x=y.endAngle;(0,v.vQ)(p,m)&&(0,v.vQ)(d,x)?(t=p,r=d):(t=Math.min(p,m),r=Math.max(d,x));var M=a[1],C=i[i.length-1][1];return M=0;c--){var h=this.getFacetsByLevel(t,c);try{for(var f=(r=void 0,(0,g.XA)(h)),p=f.next();!p.done;p=f.next()){var d=p.value;this.isLeaf(d)||(d.originColIndex=d.columnIndex,d.columnIndex=this.getRegionIndex(d.children),d.columnValuesLength=o.length)}}catch(y){r={error:y}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}},n.prototype.getFacetsByLevel=function(t,r){var i=[];return t.forEach(function(a){a.rowIndex===r&&i.push(a)}),i},n.prototype.getRegionIndex=function(t){var r=t[0];return(t[t.length-1].columnIndex-r.columnIndex)/2+r.columnIndex},n.prototype.isLeaf=function(t){return!t.children||!t.children.length},n.prototype.getRows=function(){return this.cfg.fields.length+1},n.prototype.getChildFacets=function(t,r,i){var a=this,o=this.cfg.fields;if(!(o.length=d){var x=i.parsePosition([y[l],y[s.field]]);x&&p.push(x)}if(y[l]===f)return!1}),p},n.prototype.parsePercentPosition=function(t){var r=parseFloat(t[0])/100,i=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l_x=Math.min(o.x,s.x),l_y=Math.min(o.y,s.y);return{x:a.getWidth()*r+l_x,y:a.getHeight()*i+l_y}},n.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),r=t.start,i=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(r.x,i.x),y:Math.min(r.y,i.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},n.prototype.getAnnotationCfg=function(t,r,i){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if((0,v.UM)(r))return null;var h=r.end,f=r.position,p=this.parsePosition(r.start),d=this.parsePosition(h),y=this.parsePosition(f);if(["arc","image","line","region","regionFilter"].includes(t)&&(!p||!d))return null;if(["text","dataMarker","html"].includes(t)&&!y)return null;if("arc"===t){var C=(0,g._T)(r,["start","end"]),S=va(o,p),b=va(o,d);S>b&&(b=2*Math.PI+b),l=(0,g.pi)((0,g.pi)({},C),{center:o.getCenter(),radius:Ts(o,p),startAngle:S,endAngle:b})}else if("image"===t)C=(0,g._T)(r,["start","end"]),l=(0,g.pi)((0,g.pi)({},C),{start:p,end:d,src:r.src});else if("line"===t)C=(0,g._T)(r,["start","end"]),l=(0,g.pi)((0,g.pi)({},C),{start:p,end:d,text:(0,v.U2)(r,"text",null)});else if("region"===t)C=(0,g._T)(r,["start","end"]),l=(0,g.pi)((0,g.pi)({},C),{start:p,end:d});else if("text"===t){var _e=this.view.getData(),fe=r.content,Se=(C=(0,g._T)(r,["position","content"]),fe);(0,v.mf)(fe)&&(Se=fe(_e)),l=(0,g.pi)((0,g.pi)((0,g.pi)({},y),C),{content:Se})}else if("dataMarker"===t){var Fe=r.point,He=r.line,We=r.text,Re=r.autoAdjust,Xe=r.direction;C=(0,g._T)(r,["position","point","line","text","autoAdjust","direction"]),l=(0,g.pi)((0,g.pi)((0,g.pi)({},C),y),{coordinateBBox:this.getCoordinateBBox(),point:Fe,line:He,text:We,autoAdjust:Re,direction:Xe})}else if("dataRegion"===t){var mn=r.start,xn=r.end,Ir=r.region,Ji=(We=r.text,r.lineLength);C=(0,g._T)(r,["start","end","region","text","lineLength"]),l=(0,g.pi)((0,g.pi)({},C),{points:this.getRegionPoints(mn,xn),region:Ir,text:We,lineLength:Ji})}else if("regionFilter"===t){var Pm=r.apply,PL=r.color,zm=(C=(0,g._T)(r,["start","end","apply","color"]),[]),df=function(Dr){Dr&&(Dr.isGroup()?Dr.getChildren().forEach(function(Xo){return df(Xo)}):zm.push(Dr))};(0,v.S6)(this.view.geometries,function(Dr){Pm?(0,v.FX)(Pm,Dr.type)&&(0,v.S6)(Dr.elements,function(Xo){df(Xo.shape)}):(0,v.S6)(Dr.elements,function(Xo){df(Xo.shape)})}),l=(0,g.pi)((0,g.pi)({},C),{color:PL,shapes:zm,start:p,end:d})}else if("shape"===t){var BL=r.render,gf=(0,g._T)(r,["render"]);l=(0,g.pi)((0,g.pi)({},gf),{render:function(VL){if((0,v.mf)(r.render))return BL(VL,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var mf=r.html;gf=(0,g._T)(r,["html","position"]),l=(0,g.pi)((0,g.pi)((0,g.pi)({},gf),y),{parent:s.get("el").parentNode,html:function(Dr){return(0,v.mf)(mf)?mf(Dr,a.view):mf}})}var Ci=(0,v.b$)({},i,(0,g.pi)((0,g.pi)({},l),{top:r.top,style:r.style,offsetX:r.offsetX,offsetY:r.offsetY}));return"html"!==t&&(Ci.container=this.getComponentContainer(Ci)),Ci.animate=this.view.getOptions().animate&&Ci.animate&&(0,v.U2)(r,"animate",Ci.animate),Ci.animateOption=(0,v.b$)({},xa,Ci.animateOption,r.animateOption),Ci},n.prototype.isTop=function(t){return(0,v.U2)(t,"top",!0)},n.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},n.prototype.getAnnotationTheme=function(t){return(0,v.U2)(this.view.getTheme(),["components","annotation",t],{})},n.prototype.updateOrCreate=function(t){var r=this.cache.get(this.getCacheKey(t));if(r){var i=t.type,a=this.getAnnotationTheme(i),o=this.getAnnotationCfg(i,t,a);o&&Un(o,["container"]),r.component.update((0,g.pi)((0,g.pi)({},o||{}),{visible:!!o})),(0,v.q9)(el,t.type)&&r.component.render()}else(r=this.createAnnotation(t))&&(r.component.init(),(0,v.q9)(el,t.type)&&r.component.render());return r},n.prototype.syncCache=function(t){var r=this,i=new Map(this.cache);return t.forEach(function(a,o){i.set(o,a)}),i.forEach(function(a,o){(0,v.sE)(r.option,function(s){return o===r.getCacheKey(s)})||(a.component.destroy(),i.delete(o))}),i},n.prototype.getCacheKey=function(t){return t},n}(ma);const O3=L3;function ag(e,n){var t=(0,v.b$)({},(0,v.U2)(e,["components","axis","common"]),(0,v.U2)(e,["components","axis",n]));return(0,v.U2)(t,["grid"],{})}function nl(e,n,t,r){var i=[],a=n.getTicks();return e.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var c=s.value;if(r)i.push({points:[e.convert("y"===t?{x:0,y:c}:{x:c,y:0}),e.convert("y"===t?{x:1,y:c}:{x:c,y:1})]});else if(l){var f=(o.value+c)/2;i.push({points:[e.convert("y"===t?{x:0,y:f}:{x:f,y:0}),e.convert("y"===t?{x:1,y:f}:{x:f,y:1})]})}return s},a[0]),i}function Xu(e,n,t,r,i){var a=n.values.length,o=[],s=t.getTicks();return s.reduce(function(l,c){var f=c.value,p=((l?l.value:c.value)+f)/2;return o.push("x"===i?{points:[e.convert({x:r?f:p,y:0}),e.convert({x:r?f:p,y:1})]}:{points:(0,v.UI)(Array(a+1),function(d,y){return e.convert({x:y/a,y:r?f:p})})}),c},s[0]),o}function og(e,n){var t=(0,v.U2)(n,"grid");if(null===t)return!1;var r=(0,v.U2)(e,"grid");return!(void 0===t&&null===r)}var pi=["container"],sg=(0,g.pi)((0,g.pi)({},xa),{appear:null}),P3=function(e){function n(t){var r=e.call(this,t)||this;return r.cache=new Map,r.gridContainer=r.view.getLayer(gn.BG).addGroup(),r.gridForeContainer=r.view.getLayer(gn.FORE).addGroup(),r.axisContainer=r.view.getLayer(gn.BG).addGroup(),r.axisForeContainer=r.view.getLayer(gn.FORE).addGroup(),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.render=function(){this.update()},n.prototype.layout=function(){var t=this,r=this.view.getCoordinate();(0,v.S6)(this.getComponents(),function(i){var p,a=i.component,o=i.direction,s=i.type,l=i.extra,c=l.dim,h=l.scale,f=l.alignTick;s===_n.AXIS?r.isPolar?"x"===c?p=r.isTransposed?As(r,o):iu(r):"y"===c&&(p=r.isTransposed?iu(r):As(r,o)):p=As(r,o):s===_n.GRID&&(p=r.isPolar?{items:r.isTransposed?"x"===c?Xu(r,t.view.getYScales()[0],h,f,c):nl(r,h,c,f):"x"===c?nl(r,h,c,f):Xu(r,t.view.getXScale(),h,f,c),center:t.view.getCoordinate().getCenter()}:{items:nl(r,h,c,f)}),a.update(p)})},n.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var r=new Map;this.cache.forEach(function(i,a){t.has(a)?r.set(a,i):i.component.destroy()}),this.cache=r},n.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},n.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(r){t.push(r)}),t},n.prototype.updateXAxes=function(t){var r=this.view.getXScale();if(r&&!r.isIdentity){var i=Es(this.option,r.field);if(!1!==i){var a=rp(i,ue.BOTTOM),o=gn.BG,s="x",l=this.view.getCoordinate(),c=this.getId("axis",r.field),h=this.getId("grid",r.field);if(l.isRect)(f=this.cache.get(c))?(Un(p=this.getLineAxisCfg(r,i,a),pi),f.component.update(p),t.set(c,f)):(f=this.createLineAxis(r,i,o,a,s),this.cache.set(c,f),t.set(c,f)),(d=this.cache.get(h))?(Un(p=this.getLineGridCfg(r,i,a,s),pi),d.component.update(p),t.set(h,d)):(d=this.createLineGrid(r,i,o,a,s))&&(this.cache.set(h,d),t.set(h,d));else if(l.isPolar){var f,d;if(f=this.cache.get(c))Un(p=l.isTransposed?this.getLineAxisCfg(r,i,ue.RADIUS):this.getCircleAxisCfg(r,i,a),pi),f.component.update(p),t.set(c,f);else{if(l.isTransposed){if((0,v.o8)(i))return;f=this.createLineAxis(r,i,o,ue.RADIUS,s)}else f=this.createCircleAxis(r,i,o,a,s);this.cache.set(c,f),t.set(c,f)}if(d=this.cache.get(h)){var p;Un(p=l.isTransposed?this.getCircleGridCfg(r,i,ue.RADIUS,s):this.getLineGridCfg(r,i,ue.CIRCLE,s),pi),d.component.update(p),t.set(h,d)}else{if(l.isTransposed){if((0,v.o8)(i))return;d=this.createCircleGrid(r,i,o,ue.RADIUS,s)}else d=this.createLineGrid(r,i,o,ue.CIRCLE,s);d&&(this.cache.set(h,d),t.set(h,d))}}}}},n.prototype.updateYAxes=function(t){var r=this,i=this.view.getYScales();(0,v.S6)(i,function(a,o){if(a&&!a.isIdentity){var s=a.field,l=Es(r.option,s);if(!1!==l){var c=gn.BG,h="y",f=r.getId("axis",s),p=r.getId("grid",s),d=r.view.getCoordinate();if(d.isRect){var y=rp(l,0===o?ue.LEFT:ue.RIGHT);(m=r.cache.get(f))?(Un(x=r.getLineAxisCfg(a,l,y),pi),m.component.update(x),t.set(f,m)):(m=r.createLineAxis(a,l,c,y,h),r.cache.set(f,m),t.set(f,m)),(M=r.cache.get(p))?(Un(x=r.getLineGridCfg(a,l,y,h),pi),M.component.update(x),t.set(p,M)):(M=r.createLineGrid(a,l,c,y,h))&&(r.cache.set(p,M),t.set(p,M))}else if(d.isPolar){var m,M;if(m=r.cache.get(f))Un(x=d.isTransposed?r.getCircleAxisCfg(a,l,ue.CIRCLE):r.getLineAxisCfg(a,l,ue.RADIUS),pi),m.component.update(x),t.set(f,m);else{if(d.isTransposed){if((0,v.o8)(l))return;m=r.createCircleAxis(a,l,c,ue.CIRCLE,h)}else m=r.createLineAxis(a,l,c,ue.RADIUS,h);r.cache.set(f,m),t.set(f,m)}if(M=r.cache.get(p)){var x;Un(x=d.isTransposed?r.getLineGridCfg(a,l,ue.CIRCLE,h):r.getCircleGridCfg(a,l,ue.RADIUS,h),pi),M.component.update(x),t.set(p,M)}else{if(d.isTransposed){if((0,v.o8)(l))return;M=r.createLineGrid(a,l,c,ue.CIRCLE,h)}else M=r.createCircleGrid(a,l,c,ue.RADIUS,h);M&&(r.cache.set(p,M),t.set(p,M))}}}}})},n.prototype.createLineAxis=function(t,r,i,a,o){var s={component:new PM(this.getLineAxisCfg(t,r,a)),layer:i,direction:a===ue.RADIUS?ue.NONE:a,type:_n.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},n.prototype.createLineGrid=function(t,r,i,a,o){var s=this.getLineGridCfg(t,r,a,o);if(s){var l={component:new BM(s),layer:i,direction:ue.NONE,type:_n.GRID,extra:{dim:o,scale:t,alignTick:(0,v.U2)(s,"alignTick",!0)}};return l.component.init(),l}},n.prototype.createCircleAxis=function(t,r,i,a,o){var s={component:new zM(this.getCircleAxisCfg(t,r,a)),layer:i,direction:a,type:_n.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},n.prototype.createCircleGrid=function(t,r,i,a,o){var s=this.getCircleGridCfg(t,r,a,o);if(s){var l={component:new RM(s),layer:i,direction:ue.NONE,type:_n.GRID,extra:{dim:o,scale:t,alignTick:(0,v.U2)(s,"alignTick",!0)}};return l.component.init(),l}},n.prototype.getLineAxisCfg=function(t,r,i){var a=(0,v.U2)(r,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=As(o,i),l=ip(t,r),c=Fs(this.view.getTheme(),i),h=(0,v.U2)(r,["title"])?(0,v.b$)({title:{style:{text:l}}},{title:np(this.view.getTheme(),i,r.title)},r):r,f=(0,v.b$)((0,g.pi)((0,g.pi)({container:a},s),{ticks:t.getTicks().map(function(S){return{id:"".concat(S.tickValue),name:S.text,value:S.value}}),verticalFactor:o.isPolar?-1*ep(s,o.getCenter()):ep(s,o.getCenter()),theme:c}),c,h),p=this.getAnimateCfg(f),d=p.animate;f.animateOption=p.animateOption,f.animate=d;var m=tp(s),x=(0,v.U2)(f,"verticalLimitLength",m?1/3:.5);if(x<=1){var M=this.view.getCanvas().get("width"),C=this.view.getCanvas().get("height");f.verticalLimitLength=x*(m?M:C)}return f},n.prototype.getLineGridCfg=function(t,r,i,a){if(og(Fs(this.view.getTheme(),i),r)){var o=ag(this.view.getTheme(),i),s=(0,v.b$)({container:(0,v.U2)(r,["top"])?this.gridForeContainer:this.gridContainer},o,(0,v.U2)(r,"grid"),this.getAnimateCfg(r));return s.items=nl(this.view.getCoordinate(),t,a,(0,v.U2)(s,"alignTick",!0)),s}},n.prototype.getCircleAxisCfg=function(t,r,i){var a=(0,v.U2)(r,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(m){return{id:"".concat(m.tickValue),name:m.text,value:m.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===2*Math.PI&&s.length&&(s[s.length-1].name="");var l=ip(t,r),c=Fs(this.view.getTheme(),ue.CIRCLE),h=(0,v.U2)(r,["title"])?(0,v.b$)({title:{style:{text:l}}},{title:np(this.view.getTheme(),i,r.title)},r):r,f=(0,v.b$)((0,g.pi)((0,g.pi)({container:a},iu(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:c}),c,h),p=this.getAnimateCfg(f),y=p.animateOption;return f.animate=p.animate,f.animateOption=y,f},n.prototype.getCircleGridCfg=function(t,r,i,a){if(og(Fs(this.view.getTheme(),i),r)){var o=ag(this.view.getTheme(),ue.RADIUS),s=(0,v.b$)({container:(0,v.U2)(r,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,v.U2)(r,"grid"),this.getAnimateCfg(r)),l=(0,v.U2)(s,"alignTick",!0),c="x"===a?this.view.getYScales()[0]:this.view.getXScale();return s.items=Xu(this.view.getCoordinate(),c,t,l,a),s}},n.prototype.getId=function(t,r){var i=this.view.getCoordinate();return"".concat(t,"-").concat(r,"-").concat(i.type)},n.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,v.U2)(t,"animate"),animateOption:t&&t.animateOption?(0,v.b$)({},sg,t.animateOption):sg}},n}(ma);const z3=P3;function di(e,n,t){return t===ue.TOP?[e.minX+e.width/2-n.width/2,e.minY]:t===ue.BOTTOM?[e.minX+e.width/2-n.width/2,e.maxY-n.height]:t===ue.LEFT?[e.minX,e.minY+e.height/2-n.height/2]:t===ue.RIGHT?[e.maxX-n.width,e.minY+e.height/2-n.height/2]:t===ue.TOP_LEFT||t===ue.LEFT_TOP?[e.tl.x,e.tl.y]:t===ue.TOP_RIGHT||t===ue.RIGHT_TOP?[e.tr.x-n.width,e.tr.y]:t===ue.BOTTOM_LEFT||t===ue.LEFT_BOTTOM?[e.bl.x,e.bl.y-n.height]:t===ue.BOTTOM_RIGHT||t===ue.RIGHT_BOTTOM?[e.br.x-n.width,e.br.y-n.height]:[0,0]}function ug(e,n){return(0,v.jn)(e)?!1!==e&&{}:(0,v.U2)(e,[n],e)}function rl(e){return(0,v.U2)(e,"position",ue.BOTTOM)}var V3=function(e){function n(t){var r=e.call(this,t)||this;return r.container=r.view.getLayer(gn.FORE).addGroup(),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.render=function(){this.update()},n.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,v.S6)(this.components,function(r){var i=r.component,a=r.direction,o=yu(a),s=i.get("maxWidthRatio"),l=i.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(o,s,l),h=i.get("maxWidth"),f=i.get("maxHeight");i.update({maxWidth:Math.min(c.maxWidth,h||0),maxHeight:Math.min(c.maxHeight,f||0)});var p=i.get("padding"),d=i.getLayoutBBox(),y=new On(d.x,d.y,d.width,d.height).expand(p),m=(0,g.CR)(di(t.view.viewBBox,y,a),2),x=m[0],M=m[1],C=(0,g.CR)(di(t.layoutBBox,y,a),2),S=C[0],b=C[1],E=0,W=0;a.startsWith("top")||a.startsWith("bottom")?(E=x,W=b):(E=S,W=M),i.setLocation({x:E+p[3],y:W+p[0]}),t.layoutBBox=t.layoutBBox.cut(y,a)})},n.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var r={};if((0,v.U2)(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Un(s,["container"]),o.component.update(s),r[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var c=gn.FORE,h=rl(this.option);this.components.push({id:a,component:l,layer:c,direction:h,type:_n.LEGEND,extra:void 0}),r[a]=!0}}}else this.loopLegends(function(p,d,y){var m=t.getId(y.field),x=t.getComponentById(m);if(x){var M=void 0,C=ug(t.option,y.field);!1!==C&&((0,v.U2)(C,"custom")?M=t.getCategoryCfg(p,d,y,C,!0):y.isLinear?M=t.getContinuousCfg(p,d,y,C):y.isCategory&&(M=t.getCategoryCfg(p,d,y,C))),M&&(Un(M,["container"]),x.direction=rl(C),x.component.update(M),r[m]=!0)}else{var S=t.createFieldLegend(p,d,y);S&&(S.component.init(),t.components.push(S),r[m]=!0)}});var f=[];(0,v.S6)(this.getComponents(),function(p){r[p.id]?f.push(p):p.component.destroy()}),this.components=f},n.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},n.prototype.getGeometries=function(t){var r=this,i=t.geometries;return(0,v.S6)(t.views,function(a){i=i.concat(r.getGeometries(a))}),i},n.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var i=this.getGeometries(this.view),a={};(0,v.S6)(i,function(o){var s=o.getGroupAttributes();(0,v.S6)(s,function(l){var c=l.getScale(l.type);!c||"identity"===c.type||a[c.field]||(t(o,l,c),a[c.field]=!0)})})}},n.prototype.createFieldLegend=function(t,r,i){var a,o=ug(this.option,i.field),s=gn.FORE,l=rl(o);if(!1!==o&&((0,v.U2)(o,"custom")?a=this.createCustomLegend(t,r,i,o):i.isLinear?a=this.createContinuousLegend(t,r,i,o):i.isCategory&&(a=this.createCategoryLegend(t,r,i,o))),a)return a.set("field",i.field),{id:this.getId(i.field),component:a,layer:s,direction:l,type:_n.LEGEND,extra:{scale:i}}},n.prototype.createCustomLegend=function(t,r,i,a){var o=this.getCategoryCfg(t,r,i,a,!0);return new Xv(o)},n.prototype.createContinuousLegend=function(t,r,i,a){var o=this.getContinuousCfg(t,r,i,Un(a,["value"]));return new NM(o)},n.prototype.createCategoryLegend=function(t,r,i,a){var o=this.getCategoryCfg(t,r,i,a);return new Xv(o)},n.prototype.getContinuousCfg=function(t,r,i,a){var o=i.getTicks(),s=(0,v.sE)(o,function(m){return 0===m.value}),l=(0,v.sE)(o,function(m){return 1===m.value}),c=o.map(function(m){var x=m.value,M=m.tickValue,C=r.mapping(i.invert(x)).join("");return{value:M,attrValue:C,color:C,scaleValue:x}});s||c.push({value:i.min,attrValue:r.mapping(i.invert(0)).join(""),color:r.mapping(i.invert(0)).join(""),scaleValue:0}),l||c.push({value:i.max,attrValue:r.mapping(i.invert(1)).join(""),color:r.mapping(i.invert(1)).join(""),scaleValue:1}),c.sort(function(m,x){return m.value-x.value});var h={min:(0,v.YM)(c).value,max:(0,v.Z$)(c).value,colors:[],rail:{type:r.type},track:{}};"size"===r.type&&(h.track={style:{fill:"size"===r.type?this.view.getTheme().defaultColor:void 0}}),"color"===r.type&&(h.colors=c.map(function(m){return m.attrValue}));var f=this.container,d=yu(rl(a)),y=(0,v.U2)(a,"title");return y&&(y=(0,v.b$)({text:co(i)},y)),h.container=f,h.layout=d,h.title=y,h.animateOption=xa,this.mergeLegendCfg(h,a,"continuous")},n.prototype.getCategoryCfg=function(t,r,i,a,o){var s=this.container,l=(0,v.U2)(a,"position",ue.BOTTOM),c=qp(this.view.getTheme(),l),h=(0,v.U2)(c,["marker"]),f=(0,v.U2)(a,"marker"),p=yu(l),d=(0,v.U2)(c,["pageNavigator"]),y=(0,v.U2)(a,"pageNavigator"),m=o?function ww(e,n,t){return t.map(function(r,i){var a=n;(0,v.mf)(a)&&(a=a(r.name,i,(0,v.b$)({},e,r)));var o=(0,v.mf)(r.marker)?r.marker(r.name,i,(0,v.b$)({},e,r)):r.marker,s=(0,v.b$)({},e,a,o);return Jp(s),r.marker=s,r})}(h,f,a.items):Qp(this.view,t,r,h,f),x=(0,v.U2)(a,"title");x&&(x=(0,v.b$)({text:i?co(i):""},x));var M=(0,v.U2)(a,"maxWidthRatio"),C=(0,v.U2)(a,"maxHeightRatio"),S=this.getCategoryLegendSizeCfg(p,M,C);S.container=s,S.layout=p,S.items=m,S.title=x,S.animateOption=xa,S.pageNavigator=(0,v.b$)({},d,y);var b=this.mergeLegendCfg(S,a,l);b.reversed&&b.items.reverse();var E=(0,v.U2)(b,"maxItemWidth");return E&&E<=1&&(b.maxItemWidth=this.view.viewBBox.width*E),b},n.prototype.mergeLegendCfg=function(t,r,i){var a=i.split("-")[0],o=qp(this.view.getTheme(),a);return(0,v.b$)({},o,t,r)},n.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},n.prototype.getComponentById=function(t){return(0,v.sE)(this.components,function(r){return r.id===t})},n.prototype.getCategoryLegendSizeCfg=function(t,r,i){void 0===r&&(r=.25),void 0===i&&(i=.25);var a=this.view.viewBBox,o=a.width,s=a.height;return"vertical"===t?{maxWidth:o*r,maxHeight:s}:{maxWidth:o,maxHeight:s*i}},n}(ma);const U3=V3;var Y3=function(e){function n(t){var r=e.call(this,t)||this;return r.onChangeFn=v.ZT,r.resetMeasure=function(){r.clear()},r.onValueChange=function(i){var a=(0,g.CR)(i,2),o=a[0],s=a[1];r.start=o,r.end=s,r.changeViewData(o,s)},r.container=r.view.getLayer(gn.FORE).addGroup(),r.onChangeFn=(0,v.P2)(r.onValueChange,20,{leading:!0}),r.width=0,r.view.on(Ue.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(Ue.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(Ue.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Ue.BEFORE_CHANGE_SIZE,this.resetMeasure)},n.prototype.init=function(){},n.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),r=t.start,i=t.end;(0,v.UM)(this.start)&&(this.start=r,this.end=i);var a=this.view.getOptions().data;this.option&&!(0,v.xb)(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},n.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var r=this.view.coordinateBBox.width,i=this.slider.component.get("padding"),a=(0,g.CR)(i,4),o=a[0],c=a[3],h=this.slider.component.getLayoutBBox(),f=new On(h.x,h.y,Math.min(h.width,r),h.height).expand(i),p=this.getMinMaxText(this.start,this.end),d=p.minText,y=p.maxText,M=(0,g.CR)(di(this.view.viewBBox,f,ue.BOTTOM),2)[1],S=(0,g.CR)(di(this.view.coordinateBBox,f,ue.BOTTOM),2)[0];this.slider.component.update((0,g.pi)((0,g.pi)({},this.getSliderCfg()),{x:S+c,y:M+o,width:this.width,start:this.start,end:this.end,minText:d,maxText:y})),this.view.viewBBox=this.view.viewBBox.cut(f,ue.BOTTOM)}},n.prototype.update=function(){this.render()},n.prototype.createSlider=function(){var t=this.getSliderCfg(),r=new DM((0,g.pi)({container:this.container},t));return r.init(),{component:r,layer:gn.FORE,direction:ue.BOTTOM,type:_n.SLIDER}},n.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var r=this.getMinMaxText(this.start,this.end),i=r.minText,a=r.maxText;t=(0,g.pi)((0,g.pi)({},t),{width:this.width,start:this.start,end:this.end,minText:i,maxText:a})}return this.slider.component.update(t),this.slider},n.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},n.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,v.Kn)(this.option)){var r=(0,g.pi)({data:this.getData()},(0,v.U2)(this.option,"trendCfg",{}));t=(0,v.b$)({},t,this.getThemeOptions(),this.option),t=(0,g.pi)((0,g.pi)({},t),{trendCfg:r})}return t.start=(0,v.uZ)(Math.min((0,v.UM)(t.start)?0:t.start,(0,v.UM)(t.end)?1:t.end),0,1),t.end=(0,v.uZ)(Math.max((0,v.UM)(t.start)?0:t.start,(0,v.UM)(t.end)?1:t.end),0,1),t},n.prototype.getData=function(){var t=this.view.getOptions().data,i=(0,g.CR)(this.view.getYScales(),1)[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(c,h){return h[s]===l[0]&&c.push(h[i.field]),c},[])}return t.map(function(c){return c[i.field]||0})},n.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,v.U2)(t,["components","slider","common"],{})},n.prototype.getMinMaxText=function(t,r){var i=this.view.getOptions().data,a=this.view.getXScale(),s=(0,v.I)(i,a.field);a.isLinear&&(s=s.sort());var l=s,c=(0,v.dp)(i);if(!a||!c)return{};var h=(0,v.dp)(l),f=Math.round(t*(h-1)),p=Math.round(r*(h-1)),d=(0,v.U2)(l,[f]),y=(0,v.U2)(l,[p]),m=this.getSliderCfg().formatter;return m&&(d=m(d,i[f],f),y=m(y,i[p],p)),{minText:d,maxText:y}},n.prototype.changeViewData=function(t,r){var i=this.view.getOptions().data,a=this.view.getXScale(),o=(0,v.dp)(i);if(a&&o){var l=(0,v.I)(i,a.field),h=this.view.getXScale().isLinear?l.sort(function(y,m){return Number(y)-Number(m)}):l,f=(0,v.dp)(h),p=Math.round(t*(f-1)),d=Math.round(r*(f-1));this.view.filter(a.field,function(y,m){var x=h.indexOf(y);return!(x>-1)||fa(x,p,d)}),this.view.render(!0)}},n.prototype.getComponents=function(){return this.slider?[this.slider]:[]},n.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},n}(ma);const H3=Y3;var W3=function(e){function n(t){var r=e.call(this,t)||this;return r.onChangeFn=v.ZT,r.resetMeasure=function(){r.clear()},r.onValueChange=function(i){var a=i.ratio,o=r.getValidScrollbarCfg().animate;r.ratio=(0,v.uZ)(a,0,1);var s=r.view.getOptions().animate;o||r.view.animate(!1),r.changeViewData(r.getScrollRange(),!0),r.view.animate(s)},r.container=r.view.getLayer(gn.FORE).addGroup(),r.onChangeFn=(0,v.P2)(r.onValueChange,20,{leading:!0}),r.trackLen=0,r.thumbLen=0,r.ratio=0,r.view.on(Ue.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(Ue.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(Ue.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Ue.BEFORE_CHANGE_SIZE,this.resetMeasure)},n.prototype.init=function(){},n.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},n.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var r=this.view.coordinateBBox.width,i=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new On(a.x,a.y,Math.min(a.width,r),a.height).expand(i),s=this.getScrollbarComponentCfg(),l=void 0,c=void 0;if(s.isHorizontal){var p=(0,g.CR)(di(this.view.viewBBox,o,ue.BOTTOM),2)[1];l=(0,g.CR)(di(this.view.coordinateBBox,o,ue.BOTTOM),2)[0],c=p}else{l=(p=(0,g.CR)(di(this.view.viewBBox,o,ue.RIGHT),2)[1],(0,g.CR)(di(this.view.viewBBox,o,ue.RIGHT),2))[0],c=p}l+=i[3],c+=i[0],this.scrollbar.component.update((0,g.pi)((0,g.pi)({},s),this.trackLen?{x:l,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}:{x:l,y:c})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?ue.BOTTOM:ue.RIGHT)}},n.prototype.update=function(){this.render()},n.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},n.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},n.prototype.setValue=function(t){this.onValueChange({ratio:t})},n.prototype.getValue=function(){return this.ratio},n.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,v.U2)(t,["components","scrollbar","common"],{})},n.prototype.getScrollbarTheme=function(t){var r=(0,v.U2)(this.view.getTheme(),["components","scrollbar"]),i=t||{},a=i.thumbHighlightColor,o=(0,g._T)(i,["thumbHighlightColor"]);return{default:(0,v.b$)({},(0,v.U2)(r,["default","style"],{}),o),hover:(0,v.b$)({},(0,v.U2)(r,["hover","style"],{}),{thumbColor:a})}},n.prototype.measureScrollbar=function(){var t=this.view.getXScale(),r=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var i=this.getScrollbarComponentCfg(),o=i.thumbLen;this.trackLen=i.trackLen,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=r},n.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,v.uZ)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},n.prototype.changeViewData=function(t,r){var i=this,a=(0,g.CR)(t,2),o=a[0],s=a[1],c="vertical"!==this.getValidScrollbarCfg().type,h=(0,v.I)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?h.sort(function(d,y){return Number(d)-Number(y)}):h,p=c?f:f.reverse();this.yScalesCfg.forEach(function(d){i.view.scale(d.field,{formatter:d.formatter,type:d.type,min:d.min,max:d.max,tickMethod:d.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(d){var y=p.indexOf(d);return!(y>-1)||fa(y,o,s)}),this.view.render(!0)},n.prototype.createScrollbar=function(){var r="vertical"!==this.getValidScrollbarCfg().type,i=new OM((0,g.pi)((0,g.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return i.init(),{component:i,layer:gn.FORE,direction:r?ue.BOTTOM:ue.RIGHT,type:_n.SCROLLBAR}},n.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),r=this.trackLen?(0,g.pi)((0,g.pi)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,g.pi)({},t);return this.scrollbar.component.update(r),this.scrollbar},n.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,r=this.getValidScrollbarCfg();return Math.floor(("vertical"!==r.type?t.width:t.height)/r.categorySize)},n.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),r=this.getScrollbarData(),i=(0,v.I)(r,t.field);return(0,v.dp)(i)},n.prototype.getScrollbarComponentCfg=function(){var t=this.view,r=t.coordinateBBox,i=t.viewBBox,a=this.getValidScrollbarCfg(),l=a.width,c=a.height,h=a.style,f="vertical"!==a.type,p=(0,g.CR)(a.padding,4),d=p[0],y=p[1],m=p[2],x=p[3],M=f?{x:r.minX+x,y:i.maxY-c-m}:{x:i.maxX-l-y,y:r.minY+d},C=this.getStep(),S=this.getCnt(),b=f?r.width-x-y:r.height-d-m,E=Math.max(b*(0,v.uZ)(C/S,0,1),20);return(0,g.pi)((0,g.pi)({},this.getThemeOptions()),{x:M.x,y:M.y,size:f?c:l,isHorizontal:f,trackLen:b,thumbLen:E,thumbOffset:0,theme:this.getScrollbarTheme(h)})},n.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,v.Kn)(this.option)&&(t=(0,g.pi)((0,g.pi)({},t),this.option)),(!(0,v.Kn)(this.option)||!this.option.padding)&&(t.padding=[0,0,0,0]),t},n.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),r=this.getValidScrollbarCfg(),i=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===r.type&&(i=(0,g.ev)([],(0,g.CR)(i),!1).reverse()),i},n}(ma);const X3=W3;var $3={fill:"#CCD6EC",opacity:.3};var Q3=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.show=function(t){var r=this.context.view,i=this.context.event,a=r.getController("tooltip").getTooltipCfg(),o=function J3(e,n,t){var r,i,a,o,s,l,c=function UC(e,n,t){var r,i,a=hu(e,n,t);try{for(var o=(0,g.XA)(e.views),s=o.next();!s.done;s=o.next())a=a.concat(hu(s.value,n,t))}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}(e,n,t);if(c.length){c=(0,v.xH)(c);try{for(var h=(0,g.XA)(c),f=h.next();!f.done;f=h.next()){var p=f.value;try{for(var d=(a=void 0,(0,g.XA)(p)),y=d.next();!y.done;y=d.next()){var m=y.value,x=m.mappingData,M=x.x,C=x.y;m.x=(0,v.kJ)(M)?M[M.length-1]:M,m.y=(0,v.kJ)(C)?C[C.length-1]:C}}catch(yt){a={error:yt}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(yt){r={error:yt}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}if(!1===t.shared&&c.length>1){var b=c[0],E=Math.abs(n.y-b[0].y);try{for(var W=(0,g.XA)(c),tt=W.next();!tt.done;tt=W.next()){var it=tt.value,wt=Math.abs(n.y-it[0].y);wt<=E&&(b=it,E=wt)}}catch(yt){s={error:yt}}finally{try{tt&&!tt.done&&(l=W.return)&&l.call(W)}finally{if(s)throw s.error}}c=[b]}return(0,v.jj)((0,v.xH)(c))}return[]}(r,{x:i.x,y:i.y},a);if(!(0,v.Xy)(o,this.items)&&(this.items=o,o.length)){var s=r.getXScale().field,l=o[0].data[s],c=[];if((0,v.S6)(r.geometries,function(Se){if("interval"===Se.type||"schema"===Se.type){var ge=Se.getElementsBy(function(Me){return Me.getData()[s]===l});c=c.concat(ge)}}),c.length){var f=r.getCoordinate(),p=c[0].shape.getCanvasBBox(),d=c[0].shape.getCanvasBBox(),y=p;(0,v.S6)(c,function(Se){var ge=Se.shape.getCanvasBBox();f.isTransposed?(ge.minYd.maxY&&(d=ge)):(ge.minXd.maxX&&(d=ge)),y.x=Math.min(ge.minX,y.minX),y.y=Math.min(ge.minY,y.minY),y.width=Math.max(ge.maxX,y.maxX)-y.x,y.height=Math.max(ge.maxY,y.maxY)-y.y});var m=r.backgroundGroup,x=r.coordinateBBox,M=void 0;if(f.isRect){var C=r.getXScale(),S=t||{},b=S.appendRatio,E=S.appendWidth;(0,v.UM)(E)&&(b=(0,v.UM)(b)?C.isLinear?0:.25:b,E=f.isTransposed?b*d.height:b*p.width);var W=void 0,tt=void 0,it=void 0,wt=void 0;f.isTransposed?(W=x.minX,tt=Math.min(d.minY,p.minY)-E,it=x.width,wt=y.height+2*E):(W=Math.min(p.minX,d.minX)-E,tt=x.minY,it=y.width+2*E,wt=x.height),M=[["M",W,tt],["L",W+it,tt],["L",W+it,tt+wt],["L",W,tt+wt],["Z"]]}else{var yt=(0,v.YM)(c),Ut=(0,v.Z$)(c),ee=so(yt.getModel(),f).startAngle,me=so(Ut.getModel(),f).endAngle,_e=f.getCenter(),ze=f.getRadius();M=oi(_e.x,_e.y,ze,ee,me,f.innerRadius*ze)}if(this.regionPath)this.regionPath.attr("path",M),this.regionPath.show();else{var fe=(0,v.U2)(t,"style",$3);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,g.pi)((0,g.pi)({},fe),{path:M})})}}}},n.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},n.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},n}(sn);const q3=Q3;var j3=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,g.ZT)(n,e),n.prototype.show=function(){var t=this.context,r=t.event,i=t.view;if(!i.isTooltipLocked()){var o=this.timeStamp,s=+new Date;if(s-o>(0,v.U2)(t.view.getOptions(),"tooltip.showDelay",16)){var c=this.location,h={x:r.x,y:r.y};(!c||!(0,v.Xy)(c,h))&&this.showTooltip(i,h),this.timeStamp=s,this.location=h}}},n.prototype.hide=function(){var t=this.context.view,r=t.getController("tooltip"),i=this.context.event;r.isCursorEntered({x:i.clientX,y:i.clientY})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},n.prototype.showTooltip=function(t,r){t.showTooltip(r)},n.prototype.hideTooltip=function(t){t.hideTooltip()},n}(sn);const fg=j3;var K3=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.showTooltip=function(t,r){var i=_r(t);(0,v.S6)(i,function(a){var o=lu(t,a,r);a.showTooltip(o)})},n.prototype.hideTooltip=function(t){var r=_r(t);(0,v.S6)(r,function(i){i.hideTooltip()})},n}(fg);const tb=K3;var eb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,g.ZT)(n,e),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},n.prototype.show=function(){var r=this.context.event,i=this.timeStamp,a=+new Date;if(a-i>16){var o=this.location,s={x:r.x,y:r.y};(!o||!(0,v.Xy)(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},n.prototype.hide=function(){this.hideTooltip(),this.location=null},n.prototype.showTooltip=function(t){var a=this.context.event.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update((0,g.pi)({title:o},t)),this.tooltip.show()}},n.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},n.prototype.renderTooltip=function(){var t,r=this.context.view,i=r.canvas,a={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},o=r.getTheme(),s=(0,v.U2)(o,["components","tooltip","domStyles"],{}),l=new bs({parent:i.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,g.pi)({},(0,v.b$)({},s,(t={},t[Nr]={"max-width":"50%"},t[Vr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},n}(sn);const nb=eb;var rb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t}return(0,g.ZT)(n,e),n.prototype.hasState=function(t){return t.hasState(this.stateName)},n.prototype.setElementState=function(t,r){t.setState(this.stateName,r)},n.prototype.setState=function(){this.setStateEnable(!0)},n.prototype.clear=function(){this.clearViewState(this.context.view)},n.prototype.clearViewState=function(t){var r=this,i=yp(t,this.stateName);(0,v.S6)(i,function(a){r.setElementState(a,!1)})},n}(sn);const $u=rb;function vg(e){return(0,v.U2)(e.get("delegateObject"),"item")}var ib=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return(0,g.ZT)(n,e),n.prototype.isItemIgnore=function(t,r){return!!this.ignoreListItemStates.filter(function(o){return r.hasState(t,o)}).length},n.prototype.setStateByComponent=function(t,r,i){var a=this.context.view,o=t.get("field"),s=Tn(a);this.setElementsStateByItem(s,o,r,i)},n.prototype.setStateByElement=function(t,r){this.setElementState(t,r)},n.prototype.isMathItem=function(t,r,i){var o=ga(this.context.view,r),s=ur(t,r);return!(0,v.UM)(s)&&i.name===o.getText(s)},n.prototype.setElementsStateByItem=function(t,r,i,a){var o=this;(0,v.S6)(t,function(s){o.isMathItem(s,r,i)&&s.setState(o.stateName,a)})},n.prototype.setStateEnable=function(t){var r=li(this.context);if(r)vp(this.context)&&this.setStateByElement(r,t);else{var i=Ii(this.context);if(ho(i)){var a=i.item,o=i.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&vg(s.fromShape)===vg(s.toShape))return;this.setStateByComponent(o,a,t)}}}},n.prototype.toggle=function(){var t=li(this.context);if(t){var r=t.hasState(this.stateName);this.setElementState(t,!r)}},n.prototype.reset=function(){this.setStateEnable(!1)},n}($u);const Ju=ib;var ab=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,g.ZT)(n,e),n.prototype.active=function(){this.setState()},n}(Ju);const ob=ab;var sb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return(0,g.ZT)(n,e),n.prototype.getColorScale=function(t,r){var i=r.geometry.getAttribute("color");return i?t.getScaleByField(i.getFields()[0]):null},n.prototype.getLinkPath=function(t,r){var a=this.context.view.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=r.shape.getCanvasBBox();return a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]]},n.prototype.addLinkShape=function(t,r,i,a){var o={opacity:.4,fill:r.shape.attr("fill")};t.addShape({type:"path",attrs:(0,g.pi)((0,g.pi)({},(0,v.b$)({},o,(0,v.mf)(a)?a(o,r):a)),{path:this.getLinkPath(r,i)})})},n.prototype.linkByElement=function(t,r){var i=this,a=this.context.view,o=this.getColorScale(a,t);if(o){var s=ur(t,o.field);if(!this.cache[s]){var l=function gC(e,n,t){return Tn(e).filter(function(i){return ur(i,n)===t})}(a,o.field,s),h=this.linkGroup.addGroup();this.cache[s]=h;var f=l.length;(0,v.S6)(l,function(p,d){d=0},r)},n}(Qu);const dg=Mb;var Cb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,g.ZT)(n,e),n.prototype.highlight=function(){this.setState()},n.prototype.setElementState=function(t,r){pg(Tn(this.context.view),function(o){return t===o},r)},n.prototype.clear=function(){ju(this.context.view)},n}(qu);const wb=Cb;var Sb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(Qu);const _b=Sb;var bb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(Ju);const Tb=bb;var Ab=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(qu);const Fb=Ab;var Eb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return(0,g.ZT)(n,e),n.prototype.getTriggerListInfo=function(){var t=Ii(this.context),r=null;return ho(t)&&(r={item:t.item,list:t.component}),r},n.prototype.getAllowComponents=function(){var t=this,i=Mp(this.context.view),a=[];return(0,v.S6)(i,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},n.prototype.hasState=function(t,r){return t.hasState(r,this.stateName)},n.prototype.clearAllComponentsState=function(){var t=this,r=this.getAllowComponents();(0,v.S6)(r,function(i){i.clearItemsState(t.stateName)})},n.prototype.allowSetStateByElement=function(t){var r=t.get("field");if(!r)return!1;if(this.cfg&&this.cfg.componentNames){var i=t.get("name");if(-1===this.cfg.componentNames.indexOf(i))return!1}var o=ga(this.context.view,r);return o&&o.isCategory},n.prototype.allowSetStateByItem=function(t,r){var i=this.ignoreItemStates;return!i.length||0===i.filter(function(o){return r.hasState(t,o)}).length},n.prototype.setStateByElement=function(t,r,i){var a=t.get("field"),s=ga(this.context.view,a),l=ur(r,a),c=s.getText(l);this.setItemsState(t,c,i)},n.prototype.setStateEnable=function(t){var r=this,i=li(this.context);if(i){var a=this.getAllowComponents();(0,v.S6)(a,function(c){r.setStateByElement(c,i,t)})}else{var o=Ii(this.context);if(ho(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},n.prototype.setItemsState=function(t,r,i){var a=this,o=t.getItems();(0,v.S6)(o,function(s){s.name===r&&a.setItemState(t,s,i)})},n.prototype.setItemState=function(t,r,i){t.setItemState(r,this.stateName,i)},n.prototype.setState=function(){this.setStateEnable(!0)},n.prototype.reset=function(){this.setStateEnable(!1)},n.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var r=t.list,i=t.item,a=this.hasState(r,i);this.setItemState(r,i,!a)}},n.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},n}(sn);const Bi=Eb;var kb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,g.ZT)(n,e),n.prototype.active=function(){this.setState()},n}(Bi);const Ib=kb;var gg="inactive",bo="inactive",Ri="active",Lb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=Ri,t.ignoreItemStates=["unchecked"],t}return(0,g.ZT)(n,e),n.prototype.setItemsState=function(t,r,i){this.setHighlightBy(t,function(a){return a.name===r},i)},n.prototype.setItemState=function(t,r,i){t.getItems(),this.setHighlightBy(t,function(o){return o===r},i)},n.prototype.setHighlightBy=function(t,r,i){var a=t.getItems();if(i)(0,v.S6)(a,function(l){r(l)?(t.hasState(l,bo)&&t.setItemState(l,bo,!1),t.setItemState(l,Ri,!0)):t.hasState(l,Ri)||t.setItemState(l,bo,!0)});else{var o=t.getItemsByState(Ri),s=!0;(0,v.S6)(o,function(l){if(!r(l))return s=!1,!1}),s?this.clear():(0,v.S6)(a,function(l){r(l)&&(t.hasState(l,Ri)&&t.setItemState(l,Ri,!1),t.setItemState(l,bo,!0))})}},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)!function Db(e){var n=e.getItems();(0,v.S6)(n,function(t){e.hasState(t,"active")&&e.setItemState(t,"active",!1),e.hasState(t,gg)&&e.setItemState(t,gg,!1)})}(t.list);else{var r=this.getAllowComponents();(0,v.S6)(r,function(i){i.clearItemsState(Ri),i.clearItemsState(bo)})}},n}(Bi);const th=Lb;var Ob=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(Bi);const Pb=Ob;var zb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return(0,g.ZT)(n,e),n.prototype.unchecked=function(){this.setState()},n}(Bi);const Bb=zb;var wa="unchecked",al="checked",Rb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=al,t}return(0,g.ZT)(n,e),n.prototype.setItemState=function(t,r,i){this.setCheckedBy(t,function(a){return a===r},i)},n.prototype.setCheckedBy=function(t,r,i){var a=t.getItems();i&&(0,v.S6)(a,function(o){r(o)?(t.hasState(o,wa)&&t.setItemState(o,wa,!1),t.setItemState(o,al,!0)):t.hasState(o,al)||t.setItemState(o,wa,!0)})},n.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var r=t.list,i=t.item;!(0,v.G)(r.getItems(),function(o){return r.hasState(o,wa)})||r.hasState(i,wa)?this.setItemState(r,i,!0):this.reset()}},n.prototype.checked=function(){this.setState()},n.prototype.reset=function(){var t=this.getAllowComponents();(0,v.S6)(t,function(r){r.clearItemsState(al),r.clearItemsState(wa)})},n}(Bi);const Nb=Rb;var Sa="unchecked",Vb=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.toggle=function(){var t,r,i,a,o,s,l,c,h=this.getTriggerListInfo();if(h?.item){var f=h.list,p=h.item,d=f.getItems(),y=d.filter(function(yt){return!f.hasState(yt,Sa)}),m=d.filter(function(yt){return f.hasState(yt,Sa)}),x=y[0];if(d.length===y.length)try{for(var M=(0,g.XA)(d),C=M.next();!C.done;C=M.next())f.setItemState(S=C.value,Sa,S.id!==p.id)}catch(yt){t={error:yt}}finally{try{C&&!C.done&&(r=M.return)&&r.call(M)}finally{if(t)throw t.error}}else if(d.length-m.length==1)if(x.id===p.id)try{for(var b=(0,g.XA)(d),E=b.next();!E.done;E=b.next())f.setItemState(S=E.value,Sa,!1)}catch(yt){i={error:yt}}finally{try{E&&!E.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}else try{for(var W=(0,g.XA)(d),tt=W.next();!tt.done;tt=W.next())f.setItemState(S=tt.value,Sa,S.id!==p.id)}catch(yt){o={error:yt}}finally{try{tt&&!tt.done&&(s=W.return)&&s.call(W)}finally{if(o)throw o.error}}else try{for(var it=(0,g.XA)(d),wt=it.next();!wt.done;wt=it.next()){var S;f.setItemState(S=wt.value,Sa,S.id!==p.id)}}catch(yt){l={error:yt}}finally{try{wt&&!wt.done&&(c=it.return)&&c.call(it)}finally{if(l)throw l.error}}}},n}(Bi);const Ub=Vb;var mg="showRadio",eh="legend-radio-tip",Yb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,g.ZT)(n,e),n.prototype.show=function(){var t=this.getTriggerListInfo();t?.item&&t.list.setItemState(t.item,mg,!0)},n.prototype.hide=function(){var t=this.getTriggerListInfo();t?.item&&t.list.setItemState(t.item,mg,!1)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},n.prototype.showTip=function(){var r=this.context.event,i=this.timeStamp,a=+new Date;if(a-i>16&&"legend-item-radio"===this.context.event.target.get("name")){var s=this.location,l={x:r.x,y:r.y};this.timeStamp=a,this.location=l,(!s||!(0,v.Xy)(s,l))&&this.showTooltip(l)}},n.prototype.hideTip=function(){this.hideTooltip(),this.location=null},n.prototype.showTooltip=function(t){var r=this.context,a=r.event.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=r.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update((0,g.pi)((0,g.pi)({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},n.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},n.prototype.renderTooltip=function(){var t,r=((t={})[Nr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[Vr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(eh)&&document.body.removeChild(document.getElementById(eh));var i=new bs({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:r,containerId:eh});i.init(),i.setCapture(!1),this.tooltip=i},n}(Bi);const Hb=Yb;var Gb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return(0,g.ZT)(n,e),n.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},n.prototype.emitEvent=function(t){var r="mask:".concat(t),a=this.context.event;this.context.view.emit(r,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},n.prototype.createMask=function(){var t=this.context.view,r=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.pi)({fill:"#C5D4EB",opacity:.3},r)})},n.prototype.getMaskPath=function(){return[]},n.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},n.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t?.maskStyle),this.emitEvent("start")},n.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},n.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),r=this.preMovePoint,i=t.x-r.x,a=t.y-r.y;(0,v.S6)(this.points,function(s){s.x+=i,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},n.prototype.updateMask=function(t){var r=(0,v.b$)({},this.getMaskAttrs(),t);this.maskShape.attr(r)},n.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},n.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},n.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},n.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},n.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},n}(sn);const nh=Gb;function xg(e){var n=(0,v.Z$)(e),t=0,r=0,i=0;if(e.length){var a=e[0];t=su(a,n)/2,r=(n.x+a.x)/2,i=(n.y+a.y)/2}return{x:r,y:i,r:t}}var Zb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return(0,g.ZT)(n,e),n.prototype.getMaskAttrs=function(){return xg(this.points)},n}(nh);const Wb=Zb;function Mg(e){return{start:(0,v.YM)(e),end:(0,v.Z$)(e)}}function Cg(e,n){return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}}var Xb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(){return Mg(this.points)},n.prototype.getMaskAttrs=function(){var t=this.getRegion();return Cg(t.start,t.end)},n}(nh);const wg=Xb;function Sg(e){e.x=(0,v.uZ)(e.x,0,1),e.y=(0,v.uZ)(e.y,0,1)}function _g(e,n,t,r){var i=null,a=null,o=r.invert((0,v.YM)(e)),s=r.invert((0,v.Z$)(e));return t&&(Sg(o),Sg(s)),"x"===n?(i=r.convert({x:o.x,y:0}),a=r.convert({x:s.x,y:1})):(i=r.convert({x:0,y:o.y}),a=r.convert({x:1,y:s.y})),{start:i,end:a}}var $b=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return _g(this.points,this.dim,this.inPlot,t)},n}(wg);const bg=$b;function rh(e){var n=[];return e.length&&((0,v.S6)(e,function(t,r){n.push(0===r?["M",t.x,t.y]:["L",t.x,t.y])}),n.push(["L",e[0].x,e[0].y])),n}function Tg(e){return{path:rh(e)}}var Jb=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getMaskPath=function(){return rh(this.points)},n.prototype.getMaskAttrs=function(){return Tg(this.points)},n.prototype.addPoint=function(){this.resize()},n}(nh);const Ag=Jb;function ih(e){return function mC(e,n){if(e.length<=2)return uo(e,!1);var t=e[0],r=[];(0,v.S6)(e,function(a){r.push(a.x),r.push(a.y)});var i=sp(r,n,null);return i.unshift(["M",t.x,t.y]),i}(e,!0)}function Fg(e){return{path:ih(e)}}var Qb=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getMaskPath=function(){return ih(this.points)},n.prototype.getMaskAttrs=function(){return Fg(this.points)},n}(Ag);const qb=Qb;var jb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return(0,g.ZT)(n,e),n.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},n.prototype.emitEvent=function(t){var r="".concat(this.maskType,":").concat(t),a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};this.context.view.emit(r,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},n.prototype.createMask=function(t){var r=this.context.view,a=this.getMaskAttrs(this.recordPoints[t]),o=r.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.pi)({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},n.prototype.getMaskPath=function(t){return[]},n.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},n.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1,this.createMask(this.recordPoints.length-1),this.updateShapesCapture(!1),this.updateMask(t?.maskStyle),this.emitEvent("start")},n.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},n.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),r=this.preMovePoint,i=t.x-r.x,a=t.y-r.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=i,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},n.prototype.updateMask=function(t){var r=this;this.recordPoints.forEach(function(i,a){var o=(0,v.b$)({},r.getMaskAttrs(i),t);r.maskShapes[a].attr(o)})},n.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},n.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},n.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},n.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},n.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},n.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},n.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach(function(r){return r.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},n.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},n.prototype.getRecordPoints=function(){var t;return(0,g.ev)([],(0,g.CR)(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},n.prototype.recordPointStart=function(){var t=this.getRecordPoints(),r=this.getCurrentPoint();this.recordPoints=(0,g.ev)((0,g.ev)([],(0,g.CR)(t),!1),[[r]],!1)},n.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),r=this.getCurrentPoint(),i=t.splice(-1,1)[0]||[];i.push(r),this.recordPoints=(0,g.ev)((0,g.ev)([],(0,g.CR)(t),!1),[i],!1)},n.prototype.recordPointClear=function(){this.recordPoints=[]},n.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(r){return r.set("capture",t)})},n.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(r){var i=r.attrs;return!(0===i.width||0===i.height||0===i.r)&&r.isHit(t.x,t.y)})},n}(sn);const ah=jb;var Kb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(t){return Mg(t)},n.prototype.getMaskAttrs=function(t){var r=this.getRegion(t);return Cg(r.start,r.end)},n}(ah);const Eg=Kb;var t4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(t){var r=this.context.view.getCoordinate();return _g(t,this.dim,this.inPlot,r)},n}(Eg);const kg=t4;var e4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=xg,t}return(0,g.ZT)(n,e),n}(ah);const n4=e4;var r4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.getMaskPath=rh,t.getMaskAttrs=Tg,t}return(0,g.ZT)(n,e),n.prototype.addPoint=function(){this.resize()},n}(ah);const Ig=r4;var a4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.getMaskPath=ih,t.getMaskAttrs=Fg,t}return(0,g.ZT)(n,e),n}(Ig);const o4=a4;var s4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},n.prototype.default=function(){this.setCursor("default")},n.prototype.pointer=function(){this.setCursor("pointer")},n.prototype.move=function(){this.setCursor("move")},n.prototype.crosshair=function(){this.setCursor("crosshair")},n.prototype.wait=function(){this.setCursor("wait")},n.prototype.help=function(){this.setCursor("help")},n.prototype.text=function(){this.setCursor("text")},n.prototype.eResize=function(){this.setCursor("e-resize")},n.prototype.wResize=function(){this.setCursor("w-resize")},n.prototype.nResize=function(){this.setCursor("n-resize")},n.prototype.sResize=function(){this.setCursor("s-resize")},n.prototype.neResize=function(){this.setCursor("ne-resize")},n.prototype.nwResize=function(){this.setCursor("nw-resize")},n.prototype.seResize=function(){this.setCursor("se-resize")},n.prototype.swResize=function(){this.setCursor("sw-resize")},n.prototype.nsResize=function(){this.setCursor("ns-resize")},n.prototype.ewResize=function(){this.setCursor("ew-resize")},n.prototype.zoomIn=function(){this.setCursor("zoom-in")},n.prototype.zoomOut=function(){this.setCursor("zoom-out")},n}(sn);const l4=s4;var c4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.filterView=function(t,r,i){var a=this;t.getScaleByField(r)&&t.filter(r,i),t.views&&t.views.length&&(0,v.S6)(t.views,function(o){a.filterView(o,r,i)})},n.prototype.filter=function(){var t=Ii(this.context);if(t){var r=this.context.view,i=t.component,a=i.get("field");if(ho(t)){if(a){var o=i.getItemsByState("unchecked"),s=ga(r,a),l=o.map(function(d){return d.name});this.filterView(r,a,l.length?function(d){var y=s.getText(d);return!l.includes(y)}:null),r.render(!0)}}else if(pp(t)){var c=i.getValue(),h=(0,g.CR)(c,2),f=h[0],p=h[1];this.filterView(r,a,function(d){return d>=f&&d<=p}),r.render(!0)}}},n}(sn);const u4=c4;function Dg(e,n,t,r){var i=Math.min(t[n],r[n]),a=Math.max(t[n],r[n]),o=(0,g.CR)(e.range,2),s=o[0],l=o[1];if(il&&(a=l),i===l&&a===l)return null;var c=e.invert(i),h=e.invert(a);if(e.isCategory){var f=e.values.indexOf(c),p=e.values.indexOf(h),d=e.values.slice(f,p+1);return function(y){return d.includes(y)}}return function(y){return y>=c&&y<=h}}var qn=function(e){return e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset",e}(qn||{}),h4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return(0,g.ZT)(n,e),n.prototype.hasDim=function(t){return this.dims.includes(t)},n.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},n.prototype.filter=function(){var t,r;if(fo(this.context)){var a=this.context.event.target.getCanvasBBox();t={x:a.x,y:a.y},r={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,r=this.context.getCurrentPoint()}if(!(Math.abs(t.x-r.x)<5||Math.abs(t.x-r.y)<5)){var o=this.context,s=o.view,c={view:s,event:o.event,dims:this.dims};s.emit(qn.BEFORE_FILTER,un.fromData(s,qn.BEFORE_FILTER,c));var h=s.getCoordinate(),f=h.invert(r),p=h.invert(t);if(this.hasDim("x")){var d=s.getXScale(),y=Dg(d,"x",f,p);this.filterView(s,d.field,y)}if(this.hasDim("y")){var m=s.getYScales()[0];y=Dg(m,"y",f,p),this.filterView(s,m.field,y)}this.reRender(s,{source:qn.FILTER}),s.emit(qn.AFTER_FILTER,un.fromData(s,qn.AFTER_FILTER,c))}},n.prototype.end=function(){this.isStarted=!1},n.prototype.reset=function(){var t=this.context.view;if(t.emit(qn.BEFORE_RESET,un.fromData(t,qn.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var r=t.getXScale();this.filterView(t,r.field,null)}if(this.hasDim("y")){var i=t.getYScales()[0];this.filterView(t,i.field,null)}this.reRender(t,{source:qn.RESET}),t.emit(qn.AFTER_RESET,un.fromData(t,qn.AFTER_RESET,{}))},n.prototype.filterView=function(t,r,i){t.filter(r,i)},n.prototype.reRender=function(t,r){t.render(!0,r)},n}(sn);const ol=h4;var f4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.filterView=function(t,r,i){var a=_r(t);(0,v.S6)(a,function(o){o.filter(r,i)})},n.prototype.reRender=function(t){var r=_r(t);(0,v.S6)(r,function(i){i.render(!0)})},n}(ol);const oh=f4;var v4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.filter=function(){var t=Ii(this.context),r=this.context.view,i=Tn(r);if(fo(this.context)){var a=ou(this.context,10);a&&(0,v.S6)(i,function(m){a.includes(m)?m.show():m.hide()})}else if(t){var o=t.component,s=o.get("field");if(ho(t)){if(s){var l=o.getItemsByState("unchecked"),c=ga(r,s),h=l.map(function(m){return m.name});(0,v.S6)(i,function(m){var x=ur(m,s),M=c.getText(x);h.indexOf(M)>=0?m.hide():m.show()})}}else if(pp(t)){var f=o.getValue(),p=(0,g.CR)(f,2),d=p[0],y=p[1];(0,v.S6)(i,function(m){var x=ur(m,s);x>=d&&x<=y?m.show():m.hide()})}}},n.prototype.clear=function(){var t=Tn(this.context.view);(0,v.S6)(t,function(r){r.show()})},n.prototype.reset=function(){this.clear()},n}(sn);const p4=v4;var d4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return(0,g.ZT)(n,e),n.prototype.filter=function(){fo(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},n.prototype.filterByRecord=function(){var t=this.context.view,r=ou(this.context,10);if(r){var i=t.getXScale().field,a=t.getYScales()[0].field,o=r.map(function(l){return l.getModel().data}),s=_r(t);(0,v.S6)(s,function(l){var c=Tn(l);(0,v.S6)(c,function(h){var f=h.getModel().data;wp(o,f,i,a)?h.show():h.hide()})})}},n.prototype.filterByBBox=function(){var t=this,i=_r(this.context.view);(0,v.S6)(i,function(a){var o=dp(t.context,a,10),s=Tn(a);o&&(0,v.S6)(s,function(l){o.includes(l)?l.show():l.hide()})})},n.prototype.reset=function(){var t=_r(this.context.view);(0,v.S6)(t,function(r){var i=Tn(r);(0,v.S6)(i,function(a){a.show()})})},n}(sn);const Lg=d4;var m4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return(0,g.ZT)(n,e),n.prototype.getButtonCfg=function(){return(0,v.b$)(this.buttonCfg,this.cfg)},n.prototype.drawButton=function(){var t=this.getButtonCfg(),r=this.context.view.foregroundGroup.addGroup({name:t.name}),a=r.addShape({type:"text",name:"button-text",attrs:(0,g.pi)({text:t.text},t.textStyle)}).getBBox(),o=fu(t.padding),s=r.addShape({type:"rect",name:"button-rect",attrs:(0,g.pi)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),r.on("mouseenter",function(){s.attr(t.activeStyle)}),r.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=r},n.prototype.resetPosition=function(){var i=this.context.view.getCoordinate().convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=an.vs(null,[["t",i.x-o.width-10,i.y+o.height+5]]);a.setMatrix(s)},n.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},n.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},n.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},n}(sn);const x4=m4;var C4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return(0,g.ZT)(n,e),n.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},n.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),r=this.context.view,i=this.context.event;this.dragStart?r.emit("drag",{target:i.target,x:i.x,y:i.y}):su(t,this.startPoint)>4&&(r.emit("dragstart",{target:i.target,x:i.x,y:i.y}),this.dragStart=!0)}},n.prototype.end=function(){if(this.dragStart){var r=this.context.event;this.context.view.emit("dragend",{target:r.target,x:r.x,y:r.y})}this.starting=!1,this.dragStart=!1},n}(sn);const w4=C4;var _4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return(0,g.ZT)(n,e),n.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},n.prototype.move=function(){if(this.starting){var t=this.startPoint,r=this.context.getCurrentPoint();if(su(t,r)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=an.vs(this.startMatrix,[["t",r.x-t.x,r.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},n.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},n.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},n}(sn);const b4=_4;var T4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return(0,g.ZT)(n,e),n.prototype.hasDim=function(t){return this.dims.includes(t)},n.prototype.getScale=function(t){var r=this.context.view;return"x"===t?r.getXScale():r.getYScales()[0]},n.prototype.resetDim=function(t){var r=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var i=this.getScale(t);r.scale(i.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},n.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},n}(sn);const zg=T4;var A4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return(0,g.ZT)(n,e),n.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0,(0,v.S6)(this.dims,function(i){var a=t.getScale(i);t.startCache[i]={min:a.min,max:a.max,values:a.values}})},n.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},n.prototype.translate=function(){var t=this;if(this.starting){var r=this.startPoint,i=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=i.invert(r),s=i.invert(a),l=s.x-o.x,c=s.y-o.y,h=this.context.view;(0,v.S6)(this.dims,function(p){t.translateDim(p,{x:-1*l,y:-1*c})}),h.render(!0)}},n.prototype.translateDim=function(t,r){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.translateLinear(t,i,r)}},n.prototype.translateLinear=function(t,r,i){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,h=i[t]*(l-s);this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:r.nice,min:s,max:l}),a.scale(r.field,{nice:!1,min:s+h,max:l+h})},n.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},n}(zg);const F4=A4;var E4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return(0,g.ZT)(n,e),n.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},n.prototype.zoom=function(t){var r=this;(0,v.S6)(this.dims,function(a){r.zoomDim(a,t)}),this.context.view.render(!0)},n.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},n.prototype.zoomDim=function(t,r){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.zoomLinear(t,i,r)}},n.prototype.zoomLinear=function(t,r,i){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:r.nice,min:r.min,max:r.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=r.min,c=r.max,h=i*s,f=l-h,p=c+h,y=(p-f)/s;p>f&&y<100&&y>.01&&a.scale(r.field,{nice:!1,min:l-h,max:c+h})},n}(zg);const k4=E4;var L4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.scroll=function(t){var r=this.context,i=r.view,a=r.event;if(i.getOptions().scrollbar){var o=t?.wheelDelta||1,s=i.getController("scrollbar"),l=i.getXScale(),c=i.getOptions().data,h=(0,v.dp)((0,v.I)(c,l.field)),f=(0,v.dp)(l.values),p=s.getValue(),y=Math.floor((h-f)*p)+(function I4(e){return e.gEvent.originalEvent.deltaY>0}(a)?o:-o),x=(0,v.uZ)(y/(h-f)+o/(h-f)/1e4,0,1);s.setValue(x)}},n}(sn);const O4=L4;var z4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.show=function(){var t=this.context,i=Ii(t).axis.cfg.title,a=i.description,o=i.text,s=i.descriptionTooltipStyle,l=t.event,c=l.x,h=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return'\n
    \n
    \n \u5b57\u6bb5\u8bf4\u660e\uff1a').concat(a,"\n
    \n
    \n ")},x:c,y:h}),this.tooltip.show()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},n.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},n.prototype.renderTooltip=function(){var t,i=this.context.view.canvas,a={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},o=new bs({parent:i.get("el").parentNode,region:a,visible:!1,containerId:"aixs-description-tooltip",domStyles:(0,g.pi)({},(0,v.b$)({},(t={},t[Nr]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[Vr]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},n}(sn);const B4=z4;function Gr(e){return e.isInPlot()}function Bg(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}(function OC(e,n){cu[(0,v.vl)(e)]=Ps(n)})("dark",Tp(Ew)),Ef("canvas",te),Ef("svg",Qt),br("Polygon",X_),br("Interval",N_),br("Schema",J_),br("Path",Lu),br("Point",G_),br("Line",U_),br("Area",E_),br("Edge",I_),br("Heatmap",L_),br("Violin",j_),po("base",Ns),po("interval",d6),po("pie",m6),po("polar",Nd),Yn("overlap",function D6(e,n,t,r){var i=new Gd;(0,v.S6)(n,function(a){for(var o=a.find(function(d){return"text"===d.get("type")}),s=o.attr(),l=s.x,c=s.y,h=!1,f=0;f<=8;f++){var p=k6(o,l,c,f);if(i.hasGap(p)){i.fillGap(p),h=!0;break}}h||a.remove(!0)}),i.destroy()}),Yn("distribute",function M6(e,n,t,r){if(e.length&&n.length){var i=e[0]?e[0].offset:0,a=n[0].get("coordinate"),o=a.getRadius(),s=a.getCenter();if(i>0){var h=2*(o+i)+28,f={start:a.start,end:a.end},p=[[],[]];e.forEach(function(d){d&&("right"===d.textAlign?p[0].push(d):p[1].push(d))}),p.forEach(function(d,y){var m=h/14;d.length>m&&(d.sort(function(x,M){return M["..percent"]-x["..percent"]}),d.splice(m,d.length-m)),d.sort(function(x,M){return x.y-M.y}),function x6(e,n,t,r,i,a){var o,s,d,l=!0,c=r.start,h=r.end,f=Math.min(c.y,h.y),p=Math.abs(c.y-h.y),y=0,m=Number.MIN_VALUE,x=n.map(function(tt){return tt.y>y&&(y=tt.y),tt.yp&&(p=y-f);l;)for(x.forEach(function(tt){var it=(Math.min.apply(m,tt.targets)+Math.max.apply(m,tt.targets))/2;tt.pos=Math.min(Math.max(m,it-tt.size/2),p-tt.size)}),l=!1,d=x.length;d--;)if(d>0){var M=x[d-1],C=x[d];M.pos+M.size>C.pos&&(M.size+=C.size,M.targets=M.targets.concat(C.targets),M.pos+M.size>p&&(M.pos=p-M.size),x.splice(d,1),l=!0)}d=0,x.forEach(function(tt){var it=f+t/2;tt.targets.forEach(function(){n[d].y=tt.pos+it,it+=t,d++})});var S={};try{for(var b=(0,g.XA)(e),E=b.next();!E.done;E=b.next()){var W=E.value;S[W.get("id")]=W}}catch(tt){o={error:tt}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}n.forEach(function(tt){var it=tt.r*tt.r,wt=Math.pow(Math.abs(tt.y-i.y),2);if(its.maxX||o.maxY>s.maxY)&&i.remove(!0)})}),Yn("limit-in-canvas",function T6(e,n,t,r){(0,v.S6)(n,function(i){var a=r.minX,o=r.minY,s=r.maxX,l=r.maxY,c=i.getCanvasBBox(),h=c.minX,f=c.minY,p=c.maxX,d=c.maxY,y=c.x,m=c.y,C=y,S=m;(hs?C=s-c.width:p>s&&(C-=p-s),f>l?S=l-c.height:d>l&&(S-=d-l),(C!==y||S!==m)&&yo(i,C-y,S-m)})}),Yn("limit-in-plot",function a3(e,n,t,r,i){if(!(n.length<=0)){var a=i?.direction||["top","right","bottom","left"],o=i?.action||"translate",s=i?.margin||0,l=n[0].get("coordinate");if(l){var c=function WM(e,n){void 0===n&&(n=0);var t=e.start,r=e.end,i=e.getWidth(),a=e.getHeight(),o=Math.min(t.x,r.x),s=Math.min(t.y,r.y);return On.fromRange(o-n,s-n,o+i+n,s+a+n)}(l,s),h=c.minX,f=c.minY,p=c.maxX,d=c.maxY;(0,v.S6)(n,function(y){var m=y.getCanvasBBox(),x=m.minX,M=m.minY,C=m.maxX,S=m.maxY,b=m.x,E=m.y,W=m.width,tt=m.height,it=b,wt=E;if(a.indexOf("left")>=0&&(x=0&&(M=0&&(x>p?it=p-W:C>p&&(it-=C-p)),a.indexOf("bottom")>=0&&(M>d?wt=d-tt:S>d&&(wt-=S-d)),it!==b||wt!==E){var yt=it-b;"translate"===o?yo(y,yt,wt-E):"ellipsis"===o?y.findAll(function(ee){return"text"===ee.get("type")}).forEach(function(ee){var me=(0,v.ei)(ee.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),_e=ee.getCanvasBBox(),ze=function(e,n,t){var a,i=Ks("...",t);a=(0,v.HD)(e)?e:(0,v.BB)(e);var l,c,o=n,s=[];if(Ks(e,t)<=n)return e;for(;l=a.substr(0,16),!((c=Ks(l,t))+i>o&&c>o);)if(s.push(l),o-=c,!(a=a.substr(16)))return s.join("");for(;l=a.substr(0,1),!((c=Ks(l,t))+i>o);)if(s.push(l),o-=c,!(a=a.substr(1)))return s.join("");return"".concat(s.join(""),"...")}(ee.attr("text"),_e.width-Math.abs(yt),me);ee.attr("text",ze)}):y.hide()}})}}}),Yn("pie-outer",function w6(e,n,t,r){var i,a,o=(0,v.hX)(e,function(it){return!(0,v.UM)(it)}),s=n[0]&&n[0].get("coordinate");if(s){var l=s.getCenter(),c=s.getRadius(),h={};try{for(var f=(0,g.XA)(n),p=f.next();!p.done;p=f.next()){var d=p.value;h[d.get("id")]=d}}catch(it){i={error:it}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}var y=(0,v.U2)(o[0],"labelHeight",14),m=(0,v.U2)(o[0],"offset",0);if(!(m<=0)){var M="right",C=(0,v.vM)(o,function(it){return it.xyt&&(it.sort(function(Ut,ee){return ee.percent-Ut.percent}),(0,v.S6)(it,function(Ut,ee){ee+1>yt&&(h[Ut.id].set("visible",!1),Ut.invisible=!0)})),Ud(it,y,tt)}),(0,v.S6)(C,function(it,wt){(0,v.S6)(it,function(yt){var Ut=wt===M,me=h[yt.id].getChildByIndex(0);if(me){var _e=c+m,ze=yt.y-l.y,Xt=Math.pow(_e,2),fe=Math.pow(ze,2),ge=Math.sqrt(Xt-fe>0?Xt-fe:0),Me=Math.abs(Math.cos(yt.angle)*_e);yt.x=Ut?l.x+Math.max(ge,Me):l.x-Math.max(ge,Me)}me&&(me.attr("y",yt.y),me.attr("x",yt.x)),function C6(e,n){var t=n.getCenter(),r=n.getRadius();if(e&&e.labelLine){var i=e.angle,a=e.offset,o=yn(t.x,t.y,r,i),s=e.x+(0,v.U2)(e,"offsetX",0)*(Math.cos(i)>0?1:-1),l=e.y+(0,v.U2)(e,"offsetY",0)*(Math.sin(i)>0?1:-1),c={x:s-4*Math.cos(i),y:l-4*Math.sin(i)},h=e.labelLine.smooth,f=[],p=c.x-t.x,y=Math.atan((c.y-t.y)/p);if(p<0&&(y+=Math.PI),!1===h){(0,v.Kn)(e.labelLine)||(e.labelLine={});var m=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&c.y>o.y&&(m=1),i>=0&&io.y&&(m=1),i>=Math.PI/2&&ic.y&&(m=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&o.y>c.y&&(m=1);var x=a/2>4?4:Math.max(a/2-1,0),M=yn(t.x,t.y,r+x,i),C=yn(t.x,t.y,r+a/2,y);f.push("M ".concat(o.x," ").concat(o.y)),f.push("L ".concat(M.x," ").concat(M.y)),f.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(0," ").concat(m," ").concat(C.x," ").concat(C.y)),f.push("L ".concat(c.x," ").concat(c.y))}else{M=yn(t.x,t.y,r+(a/2>4?4:Math.max(a/2-1,0)),i);var b=o.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",c.x+4*b,c.y,2*M.x-o.x,2*M.y-o.y,o.x,o.y]),f.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=f.join(" ")}}(yt,s)})})}}}),Yn("adjust-color",function G6(e,n,t){if(0!==t.length){var i=t[0].get("element").geometry.theme,a=i.labels||{},o=a.fillColorLight,s=a.fillColorDark;t.forEach(function(l,c){var f=n[c].find(function(M){return"text"===M.get("type")}),p=On.fromObject(l.getBBox()),d=On.fromObject(f.getCanvasBBox()),y=!p.contains(d),x=function(e){var n=ei.toRGB(e).toUpperCase();if(Qd[n])return Qd[n];var t=(0,g.CR)(ei.rgb2arr(n),3);return(299*t[0]+587*t[1]+114*t[2])/1e3<128}(l.attr("fill"));y?f.attr(i.overflowLabels.style):x?o&&f.attr("fill",o):s&&f.attr("fill",s)})}}),Yn("interval-adjust-position",function $6(e,n,t){var r;if(0!==t.length){var i=null===(r=t[0])||void 0===r?void 0:r.get("element"),a=i?.geometry;a&&"interval"===a.type&&function W6(e,n,t){return!!e.getAdjust("stack")||n.every(function(i,a){return function Z6(e,n,t){var r=e.coordinate,i=hi(n),a=On.fromObject(i.getCanvasBBox()),o=On.fromObject(t.getBBox());return r.isTransposed?o.height>=a.height:o.width>=a.width}(e,i,t[a])})}(a,n,t)&&t.forEach(function(s,l){!function X6(e,n,t){var r=e.coordinate,i=On.fromObject(t.getBBox());hi(n).attr(r.isTransposed?{x:i.minX+i.width/2,textAlign:"center"}:{y:i.minY+i.height/2,textBaseline:"middle"})}(a,n[l],s)})}}),Yn("interval-hide-overlap",function Q6(e,n,t){var r;if(0!==t.length){var i=null===(r=t[0])||void 0===r?void 0:r.get("element"),a=i?.geometry;if(a&&"interval"===a.type){var d,o=function J6(e){var t=[],r=Math.max(Math.floor(e.length/500),1);return(0,v.S6)(e,function(i,a){a%r==0?t.push(i):i.set("visible",!1)}),t}(n),l=(0,g.CR)(a.getXYFields(),1)[0],c=[],h=[],f=(0,v.vM)(o,function(x){return x.get("data")[l]}),p=(0,v.jj)((0,v.UI)(o,function(x){return x.get("data")[l]}));o.forEach(function(x){x.set("visible",!0)});var y=function(x){x&&(x.length&&h.push(x.pop()),h.push.apply(h,(0,g.ev)([],(0,g.CR)(x),!1)))};for((0,v.dp)(p)>0&&(d=p.shift(),y(f[d])),(0,v.dp)(p)>0&&(d=p.pop(),y(f[d])),(0,v.S6)(p.reverse(),function(x){y(f[x])});h.length>0;){var m=h.shift();m.get("visible")&&(dw(m,c)?m.set("visible",!1):c.push(m))}}}}),Yn("point-adjust-position",function K6(e,n,t,r,i){var a,o;if(0!==t.length){var s=null===(a=t[0])||void 0===a?void 0:a.get("element"),l=s?.geometry;if(l&&"point"===l.type){var c=(0,g.CR)(l.getXYFields(),2),h=c[0],f=c[1],p=(0,v.vM)(n,function(m){return m.get("data")[h]}),d=[],y=i&&i.offset||(null===(o=e[0])||void 0===o?void 0:o.offset)||12;(0,v.UI)((0,v.XP)(p).reverse(),function(m){for(var x=function q6(e,n){var t=e.getXYFields()[1],r=[],i=n.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,(0,g.ev)([],(0,g.CR)(i),!1)),r}(l,p[m]);x.length;){var M=x.shift(),C=hi(M);if(qd(d,M,function(E,W){return E.get("data")[h]===W.get("data")[h]&&E.get("data")[f]===W.get("data")[f]}))C.set("visible",!1);else{var b=!1;jd(d,M)&&(C.attr("y",C.attr("y")+2*y),b=jd(d,M)),b?C.set("visible",!1):d.push(M)}}})}}}),Yn("pie-spider",function b6(e,n,t,r){var i,a,o=n[0]&&n[0].get("coordinate");if(o){var s=o.getCenter(),l=o.getRadius(),c={};try{for(var h=(0,g.XA)(n),f=h.next();!f.done;f=h.next()){var p=f.value;c[p.get("id")]=p}}catch(it){i={error:it}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}var d=(0,v.U2)(e[0],"labelHeight",14),y=Math.max((0,v.U2)(e[0],"offset",0),4);(0,v.S6)(e,function(it){if(it&&(0,v.U2)(c,[it.id])){var yt=it.x>s.x||it.x===s.x&&it.y>s.y,Ut=(0,v.UM)(it.offsetX)?4:it.offsetX,ee=yn(s.x,s.y,l+4,it.angle);it.x=s.x+(yt?1:-1)*(l+(y+Ut)),it.y=ee.y}});var m=o.start,x=o.end,C="right",S=(0,v.vM)(e,function(it){return it.xb&&(b=Math.min(wt,Math.abs(m.y-x.y)))});var E={minX:m.x,maxX:x.x,minY:s.y-b/2,maxY:s.y+b/2};(0,v.S6)(S,function(it,wt){var yt=b/d;it.length>yt&&(it.sort(function(Ut,ee){return ee.percent-Ut.percent}),(0,v.S6)(it,function(Ut,ee){ee>yt&&(c[Ut.id].set("visible",!1),Ut.invisible=!0)})),Ud(it,d,E)});var W=E.minY,tt=E.maxY;(0,v.S6)(S,function(it,wt){var yt=wt===C;(0,v.S6)(it,function(Ut){var ee=(0,v.U2)(c,Ut&&[Ut.id]);if(ee){if(Ut.ytt)return void ee.set("visible",!1);var me=ee.getChildByIndex(0),_e=me.getCanvasBBox(),ze={x:yt?_e.x:_e.maxX,y:_e.y+_e.height/2};yo(me,Ut.x-ze.x,Ut.y-ze.y),Ut.labelLine&&function _6(e,n,t){var h,r=n.getCenter(),i=n.getRadius(),a={x:e.x-(t?4:-4),y:e.y},o=yn(r.x,r.y,i+4,e.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},c=yn(r.x,r.y,i,e.angle);if(a.y!==o.y){var f=t?4:-4;s.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-f),a.y0&&e.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-f))),e.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-f))),e.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.y0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,(0,g.ev)([],(0,g.CR)(i),!1)),r}(l,p[m]);x.length;){var M=x.shift(),C=hi(M);if(Kd(d,M,function(E,W){return E.get("data")[h]===W.get("data")[h]&&E.get("data")[f]===W.get("data")[f]}))C.set("visible",!1);else{var b=!1;tg(d,M)&&(C.attr("y",C.attr("y")+2*y),b=tg(d,M)),b?C.set("visible",!1):d.push(M)}}})}}}),Qn("fade-in",function o3(e,n,t){var r={fillOpacity:(0,v.UM)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,v.UM)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,v.UM)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(r,n)}),Qn("fade-out",function s3(e,n,t){e.animate({fillOpacity:0,strokeOpacity:0,opacity:0},n.duration,n.easing,function(){e.remove(!0)},n.delay)}),Qn("grow-in-x",function c3(e,n,t){Gu(e,n,t.coordinate,t.minYPoint,"x")}),Qn("grow-in-xy",function h3(e,n,t){Gu(e,n,t.coordinate,t.minYPoint,"xy")}),Qn("grow-in-y",function u3(e,n,t){Gu(e,n,t.coordinate,t.minYPoint,"y")}),Qn("scale-in-x",function p3(e,n,t){var r=e.getBBox(),a=e.get("origin").mappingData.points,o=a[0].y-a[1].y>0?r.maxX:r.minX,s=(r.minY+r.maxY)/2;e.applyToMatrix([o,s,1]);var l=an.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(l),e.animate({matrix:an.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},n)}),Qn("scale-in-y",function d3(e,n,t){var r=e.getBBox(),i=e.get("origin").mappingData,a=(r.minX+r.maxX)/2,o=i.points,s=o[0].y-o[1].y<=0?r.maxY:r.minY;e.applyToMatrix([a,s,1]);var l=an.vs(e.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);e.setMatrix(l),e.animate({matrix:an.vs(e.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},n)}),Qn("wave-in",function y3(e,n,t){var r=ru(t.coordinate,20),o=r.endState,s=e.setClip({type:r.type,attrs:r.startState});t.toAttrs&&e.attr(t.toAttrs),s.animate(o,(0,g.pi)((0,g.pi)({},n),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0),(0,v.mf)(n.callback)&&n.callback()}}))}),Qn("zoom-in",function m3(e,n,t){Zu(e,n,"zoomIn")}),Qn("zoom-out",function x3(e,n,t){Zu(e,n,"zoomOut")}),Qn("position-update",function v3(e,n,t){var r=t.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,e.attr(r),e.animate({x:i,y:a},n)}),Qn("sector-path-update",function g3(e,n,t){var r=t.toAttrs,i=t.coordinate,a=r.path||[],o=a.map(function(C){return C[0]});if(!(a.length<1)){var s=rg(a),l=s.startAngle,c=s.endAngle,h=s.radius,f=s.innerRadius,p=rg(e.attr("path")),d=p.startAngle,y=p.endAngle,m=i.getCenter(),x=l-d,M=c-y;if(0===x&&0===M)return void e.attr("path",a);e.animate(function(C){var S=d+C*x,b=y+C*M;return(0,g.pi)((0,g.pi)({},r),{path:(0,v.Xy)(o,["M","A","A","Z"])?Qv(m.x,m.y,h,S,b):oi(m.x,m.y,h,S,b,f)})},(0,g.pi)((0,g.pi)({},n),{callback:function(){e.attr("path",a),(0,v.mf)(n.callback)&&n.callback()}}))}}),Qn("path-in",function f3(e,n,t){var r=e.getTotalLength();e.attr("lineDash",[r]),e.animate(function(i){return{lineDashOffset:(1-i)*r}},n)}),da("rect",E3),da("mirror",A3),da("list",S3),da("matrix",b3),da("circle",C3),da("tree",I3),Di("axis",z3),Di("legend",U3),Di("tooltip",Pp),Di("annotation",O3),Di("slider",H3),Di("scrollbar",X3),be("tooltip",fg),be("sibling-tooltip",tb),be("ellipsis-text",nb),be("element-active",ob),be("element-single-active",pb),be("element-range-active",hb),be("element-highlight",Ku),be("element-highlight-by-x",xb),be("element-highlight-by-color",yb),be("element-single-highlight",wb),be("element-range-highlight",dg),be("element-sibling-highlight",dg,{effectSiblings:!0,effectByRecord:!0}),be("element-selected",Tb),be("element-single-selected",Fb),be("element-range-selected",_b),be("element-link-by-color",lb),be("active-region",q3),be("list-active",Ib),be("list-selected",Pb),be("list-highlight",th),be("list-unchecked",Bb),be("list-checked",Nb),be("list-focus",Ub),be("list-radio",Hb),be("legend-item-highlight",th,{componentNames:["legend"]}),be("axis-label-highlight",th,{componentNames:["axis"]}),be("axis-description",B4),be("rect-mask",wg),be("x-rect-mask",bg,{dim:"x"}),be("y-rect-mask",bg,{dim:"y"}),be("circle-mask",Wb),be("path-mask",Ag),be("smooth-path-mask",qb),be("rect-multi-mask",Eg),be("x-rect-multi-mask",kg,{dim:"x"}),be("y-rect-multi-mask",kg,{dim:"y"}),be("circle-multi-mask",n4),be("path-multi-mask",Ig),be("smooth-path-multi-mask",o4),be("cursor",l4),be("data-filter",u4),be("brush",ol),be("brush-x",ol,{dims:["x"]}),be("brush-y",ol,{dims:["y"]}),be("sibling-filter",oh),be("sibling-x-filter",oh,{dims:"x"}),be("sibling-y-filter",oh,{dims:"y"}),be("element-filter",p4),be("element-sibling-filter",Lg),be("element-sibling-filter-record",Lg,{byRecord:!0}),be("view-drag",w4),be("view-move",b4),be("scale-translate",F4),be("scale-zoom",k4),be("reset-button",x4,{name:"reset-button",text:"reset"}),be("mousewheel-scroll",O4),Oe("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Oe("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Oe("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Oe("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Oe("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Oe("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Oe("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Oe("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Oe("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Oe("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Oe("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Oe("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Oe("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gr,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gr,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gr,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Oe("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Oe("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gr,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gr,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gr,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Oe("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gr,action:"path-mask:start"},{trigger:"mousedown",isEnable:Gr,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Oe("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:Gr,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!Ls(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Oe("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Oe("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Oe("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Oe("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Oe("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Oe("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Oe("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Oe("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return Bg(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!Bg(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Oe("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Oe("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Gn=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],Tr=function(e){return e.ERROR="error",e.WARN="warn",e.INFO="log",e}(Tr||{}),Rg="AntV/G2Plot";function Ng(e){for(var n=[],t=1;t=0}),i=t.every(function(a){return(0,v.U2)(a,[n])<=0});return r?{min:0}:i?{max:0}:{}}function Vg(e,n,t,r,i){if(void 0===i&&(i=[]),!Array.isArray(e))return{nodes:[],links:[]};var a=[],o={},s=-1;return e.forEach(function(l){var c=l[n],h=l[t],f=l[r],p=Ke(l,i);o[c]||(o[c]=(0,g.pi)({id:++s,name:c},p)),o[h]||(o[h]=(0,g.pi)({id:++s,name:h},p)),a.push((0,g.pi)({source:o[c].id,target:o[h].id,value:f},p))}),{nodes:Object.values(o).sort(function(l,c){return l.id-c.id}),links:a}}function _a(e,n){var t=(0,v.hX)(e,function(r){var i=r[n];return null===i||"number"==typeof i&&!isNaN(i)});return Zr(Tr.WARN,t.length===e.length,"illegal data existed in chart data."),t}var ch,N4={}.toString,Ug=function(e,n){return N4.call(e)==="[object "+n+"]"},V4=function(e){return Ug(e,"Array")},Yg=function(e){if(!function(e){return"object"==typeof e&&null!==e}(e)||!Ug(e,"Object"))return!1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n},Hg=function(e,n,t,r){for(var i in t=t||0,r=r||5,n)if(Object.prototype.hasOwnProperty.call(n,i)){var a=n[i];a?Yg(a)?(Yg(e[i])||(e[i]={}),t0&&(t=t.map(function(r,i){return n.forEach(function(a,o){r+=n[o][i]}),r})),t}(0,v.HP)(function(e,n){void 0===n&&(n={});var t=n.fontSize,r=n.fontFamily,i=void 0===r?"sans-serif":r,a=n.fontWeight,o=n.fontStyle,s=n.fontVariant,l=function H4(){return ch||(ch=document.createElement("canvas").getContext("2d")),ch}();return l.font=[o,a,s,"".concat(t,"px"),i].join(" "),l.measureText((0,v.HD)(e)?e:"").width},function(e,n){return void 0===n&&(n={}),(0,g.ev)([e],(0,v.VO)(n),!0).join("")});function $4(e,n,t){var r=[],i=e[0],a=null;if(e.length<=2)return function Z4(e,n){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var r=1,i=e.length;r"},key:"".concat(0===l?"top":"bottom","-statistic")},Ke(s,["offsetX","offsetY","rotate","style","formatter"])))}})},J4=function(e,n,t){var r=n.statistic;[r.title,r.content].forEach(function(o){if(o){var s=(0,v.mf)(o.style)?o.style(t):o.style;e.annotation().html((0,g.pi)({position:["50%","100%"],html:function(l,c){var h=c.getCoordinate(),f=c.views[0].getCoordinate(),p=f.getCenter(),d=f.getRadius(),y=Math.max(Math.sin(f.startAngle),Math.sin(f.endAngle))*d,m=p.y+y-h.y.start-parseFloat((0,v.U2)(s,"fontSize",0)),x=h.getRadius()*h.innerRadius*2;Wg(l,(0,g.pi)({width:"".concat(x,"px"),transform:"translate(-50%, ".concat(m,"px)")},Zg(s)));var M=c.getData();if(o.customHtml)return o.customHtml(l,c,t,M);var C=o.content;return o.formatter&&(C=o.formatter(t,M)),C?(0,v.HD)(C)?C:"".concat(C):"
    "}},Ke(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function Xg(e,n){return n?(0,v.u4)(n,function(t,r,i){return t.replace(new RegExp("{\\s*".concat(i,"\\s*}"),"g"),r)},e):e}function Ye(e,n){return e.views.find(function(t){return t.id===n})}function Ao(e){var n=e.parent;return n?n.views:[]}function $g(e){return Ao(e).filter(function(n){return n!==e})}function Fo(e,n,t){void 0===t&&(t=e.geometries),e.animate("boolean"!=typeof n||n),(0,v.S6)(t,function(r){var i;i=(0,v.mf)(n)?n(r.type||r.shapeType,r)||!0:n,r.animate(i)})}function ul(){return"object"==typeof window?window?.devicePixelRatio:2}function hh(e,n){void 0===n&&(n=e);var t=document.createElement("canvas"),r=ul();return t.width=e*r,t.height=n*r,t.style.width="".concat(e,"px"),t.style.height="".concat(n,"px"),t.getContext("2d").scale(r,r),t}function fh(e,n,t,r){void 0===r&&(r=t);var i=n.backgroundColor;e.globalAlpha=n.opacity,e.fillStyle=i,e.beginPath(),e.fillRect(0,0,t,r),e.closePath()}function Jg(e,n,t){var r=e+n;return t?2*r:r}function Qg(e,n){return n?[[.25*e,.25*e],[.75*e,.75*e]]:[[.5*e,.5*e]]}function vh(e,n){var t=n*Math.PI/180;return{a:Math.cos(t)*(1/e),b:Math.sin(t)*(1/e),c:-Math.sin(t)*(1/e),d:Math.cos(t)*(1/e),e:0,f:0}}var Q4={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function q4(e,n,t,r){var i=n.size,a=n.fill,o=n.lineWidth,s=n.stroke,l=n.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=a,e.strokeStyle=s,e.lineWidth=o,e.arc(t,r,i/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}var K4={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};var nT={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function rT(e,n,t,r){var i=n.stroke,a=n.size,o=n.fill,s=n.lineWidth;e.globalAlpha=n.fillOpacity,e.strokeStyle=i,e.lineWidth=s,e.fillStyle=o,e.strokeRect(t-a/2,r-a/2,a,a),e.fillRect(t-a/2,r-a/2,a,a)}function aT(e){var r,t=e.cfg;switch(e.type){case"dot":r=function j4(e){var n=St({},Q4,e),i=n.isStagger,a=n.rotation,o=Jg(n.size,n.padding,i),s=Qg(o,i),l=hh(o,o),c=l.getContext("2d");fh(c,n,o);for(var h=0,f=s;h0&&function FT(e,n,t){(function TT(e,n,t){var r=e.view,i=e.geometry,a=e.group,o=e.options,s=e.horizontal,l=o.offset,c=o.size,h=o.arrow,f=r.getCoordinate(),p=yl(f,n)[3],d=yl(f,t)[0],y=d.y-p.y,m=d.x-p.x;if("boolean"!=typeof h){var C,x=h.headSize,M=o.spacing;s?(m-x)/2S){var W=Math.max(1,Math.ceil(S/(b/m.length))-1),tt="".concat(m.slice(0,W),"...");C.attr("text",tt)}}}}(e,n,t)}(p,d[m-1],y)})}})),r}}(t.yField,!n,!!r),function _T(e){return void 0===e&&(e=!1),function(n){var t=n.chart,i=n.options.connectedArea,a=function(){t.removeInteraction(Hi.hover),t.removeInteraction(Hi.click)};if(!e&&i){var o=i.trigger||"hover";a(),t.interaction(Hi[o],{start:yh(o,i.style)})}else a();return n}}(!t.isStack),Ui)(e)}function zT(e){var n=e.options,t=n.xField,r=n.yField,i=n.xAxis,a=n.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=!1!==a&&(0,g.pi)({position:o[a?.position||"left"]},a),l=!1!==i&&(0,g.pi)({position:o[i?.position||"bottom"]},i);return(0,g.pi)((0,g.pi)({},e),{options:(0,g.pi)((0,g.pi)({},n),{xField:r,yField:t,xAxis:s,yAxis:l})})}function BT(e){var t=e.options.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),St({},e,{options:{label:t}})}function RT(e){var n=e.options,i=n.legend;return n.seriesField?!1!==i&&(i=(0,g.pi)({position:n.isStack?"top-left":"right-top"},i||{})):i=!1,St({},e,{options:{legend:i}})}function NT(e){var t=[{type:"transpose"},{type:"reflectY"}].concat(e.options.coordinate||[]);return St({},e,{options:{coordinate:t}})}function VT(e){var t=e.options,r=t.barStyle,i=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return ml({chart:e.chart,options:(0,g.pi)((0,g.pi)({},t),{columnStyle:r,columnWidthRatio:i,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function f0(e){return ke(zT,BT,RT,Mn,NT,VT)(e)}Oe(Hi.hover,{start:yh(Hi.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Oe(Hi.click,{start:yh(Hi.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var Ch,UT=St({},Be.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),xh=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return UT},n.prototype.changeData=function(t){var r,i;this.updateOption({data:t});var o=this.chart,s=this.options,l=s.isPercent,c=s.xField,h=s.yField,f=s.xAxis,p=s.yAxis;c=(r=[h,c])[0],h=r[1],f=(i=[p,f])[0],p=i[1],mh({chart:o,options:(0,g.pi)((0,g.pi)({},s),{xField:c,yField:h,yAxis:p,xAxis:f})}),o.changeData(ko(t,c,h,c,l))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return f0},n}(Be),YT=St({},Be.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),Mh=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return YT},n.prototype.changeData=function(t){this.updateOption({data:t});var r=this.options,i=r.yField,a=r.xField,o=r.isPercent;mh({chart:this.chart,options:this.options}),this.chart.changeData(ko(t,i,a,i,o))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return ml},n}(Be),mi="$$percentage$$",xi="$$mappingValue$$",Xr="$$conversion$$",wh="$$totalPercentage$$",Io="$$x$$",Do="$$y$$",HT={appendPadding:[0,80],minSize:0,maxSize:1,meta:(Ch={},Ch[xi]={min:0,max:1,nice:!1},Ch),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},v0="CONVERSION_TAG_NAME";function Sh(e,n,t){var i=t.yField,a=t.maxSize,o=t.minSize,s=(0,v.U2)((0,v.UT)(n,i),[i]),l=(0,v.hj)(a)?a:1,c=(0,v.hj)(o)?o:0;return(0,v.UI)(e,function(h,f){var p=(h[i]||0)/s;return h[mi]=p,h[xi]=(l-c)*p+c,h[Xr]=[(0,v.U2)(e,[f-1,i]),h[i]],h})}function _h(e){return function(n){var t=n.chart,r=n.options,i=r.conversionTag,o=r.filteredData||t.getOptions().data;if(i){var s=i.formatter;o.forEach(function(l,c){if(!(c<=0||Number.isNaN(l[xi]))){var h=e(l,c,o,{top:!0,name:v0,text:{content:(0,v.mf)(s)?s(l,o):s,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:(0,g.pi)({textAlign:"start",textBaseline:"middle"},i.style)}});t.annotation().line(h)}})}return n}}function GT(e){var n=e.chart,t=e.options,r=t.data,i=void 0===r?[]:r,l=Sh(i,i,{yField:t.yField,maxSize:t.maxSize,minSize:t.minSize});return n.data(l),e}function ZT(e){var n=e.chart,t=e.options,r=t.xField,a=t.color,s=t.label,l=t.shape,c=void 0===l?"funnel":l,h=t.funnelStyle,f=t.state,p=ar(t.tooltip,[r,t.yField]),d=p.fields,y=p.formatter;return Zn({chart:n,options:{type:"interval",xField:r,yField:xi,colorField:r,tooltipFields:(0,v.kJ)(d)&&d.concat([mi,Xr]),mapping:{shape:c,tooltip:y,color:a,style:h},label:s,state:f}}),Fn(e.chart,"interval").adjust("symmetric"),e}function WT(e){return e.chart.coordinate({type:"rect",actions:e.options.isTransposed?[]:[["transpose"],["scale",1,-1]]}),e}function p0(e){var t=e.chart,r=e.options.maxSize,i=(0,v.U2)(t,["geometries","0","dataArray"],[]),a=(0,v.U2)(t,["options","data","length"]),o=(0,v.UI)(i,function(l){return(0,v.U2)(l,["0","nextPoints","0","x"])*a-.5});return _h(function(l,c,h,f){var p=r-(r-l[xi])/2;return(0,g.pi)((0,g.pi)({},f),{start:[o[c-1]||c-.5,p],end:[o[c-1]||c-.5,p+.05]})})(e),e}function d0(e){return ke(GT,ZT,WT,p0)(e)}function XT(e){var n,t=e.chart,r=e.options,i=r.data,o=r.yField;return t.data(void 0===i?[]:i),t.scale(((n={})[o]={sync:!0},n)),e}function $T(e){var t=e.options,r=t.data,i=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,c=t.tooltip,h=t.maxSize,f=t.minSize,p=t.label,d=t.funnelStyle,y=t.state;return e.chart.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:t.showFacetTitle,eachView:function(x,M){var C=l?M.rowIndex:M.columnIndex;l||x.coordinate({type:"rect",actions:[["transpose"],["scale",0===C?-1:1,-1]]});var S=Sh(M.data,r,{yField:a,maxSize:h,minSize:f});x.data(S);var b=ar(c,[i,a,s]),E=b.fields,W=b.formatter,tt=l?{offset:0===C?10:-23,position:0===C?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===C?"end":"start"}};Zn({chart:x,options:{type:"interval",xField:i,yField:xi,colorField:i,tooltipFields:(0,v.kJ)(E)&&E.concat([mi,Xr]),mapping:{shape:"funnel",tooltip:W,color:o,style:d},label:!1!==p&&St({},tt,p),state:y}})}}),e}function g0(e){var n=e.chart,t=e.index,r=e.options,i=r.conversionTag,a=r.isTransposed;((0,v.hj)(t)?[n]:n.views).forEach(function(o,s){var l=(0,v.U2)(o,["geometries","0","dataArray"],[]),c=(0,v.U2)(o,["options","data","length"]),h=(0,v.UI)(l,function(p){return(0,v.U2)(p,["0","nextPoints","0","x"])*c-.5});_h(function(p,d,y,m){return St({},m,{start:[h[d-1]||d-.5,p[xi]],end:[h[d-1]||d-.5,p[xi]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:!1!==i?(0===(t||s)?-1:1)*i.offsetX:0,style:{textAlign:0===(t||s)?"end":"start"}}})})(St({},{chart:o,options:r}))})}function JT(e){return e.chart.once("beforepaint",function(){return g0(e)}),e}function qT(e){var n=e.chart,t=e.options,r=t.data,i=void 0===r?[]:r,a=t.yField,o=(0,v.u4)(i,function(c,h){return c+(h[a]||0)},0),s=(0,v.UT)(i,a)[a],l=(0,v.UI)(i,function(c,h){var f=[],p=[];if(c[wh]=(c[a]||0)/o,h){var d=i[h-1][Io],y=i[h-1][Do];f[0]=d[3],p[0]=y[3],f[1]=d[2],p[1]=y[2]}else f[0]=-.5,p[0]=1,f[1]=.5,p[1]=1;return p[2]=p[1]-c[wh],f[2]=(p[2]+1)/4,p[3]=p[2],f[3]=-f[2],c[Io]=f,c[Do]=p,c[mi]=(c[a]||0)/s,c[Xr]=[(0,v.U2)(i,[h-1,a]),c[a]],c});return n.data(l),e}function jT(e){var n=e.chart,t=e.options,r=t.xField,a=t.color,s=t.label,l=t.funnelStyle,c=t.state,h=ar(t.tooltip,[r,t.yField]),f=h.fields,p=h.formatter;return Zn({chart:n,options:{type:"polygon",xField:Io,yField:Do,colorField:r,tooltipFields:(0,v.kJ)(f)&&f.concat([mi,Xr]),label:s,state:c,mapping:{tooltip:p,color:a,style:l}}}),e}function KT(e){return e.chart.coordinate({type:"rect",actions:e.options.isTransposed?[["transpose"],["reflect","x"]]:[]}),e}function tA(e){return _h(function(t,r,i,a){return(0,g.pi)((0,g.pi)({},a),{start:[t[Io][1],t[Do][1]],end:[t[Io][1]+.05,t[Do][1]]})})(e),e}function nA(e){var n,t=e.chart,r=e.options,i=r.data,o=r.yField;return t.data(void 0===i?[]:i),t.scale(((n={})[o]={sync:!0},n)),e}function rA(e){var t=e.options;return e.chart.facet("rect",{fields:[t.seriesField],padding:[t.isTransposed?0:32,10,0,10],showTitle:t.showFacetTitle,eachView:function(o,s){d0(St({},e,{chart:o,options:{data:s.data}}))}}),e}var aA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendering=!1,t}return(0,g.ZT)(n,e),n.prototype.change=function(t){var r=this;if(!this.rendering){var a=t.compareField,o=a?g0:p0,s=this.context.view;(0,v.UI)(t.seriesField||a?s.views:[s],function(c,h){var f=c.getController("annotation"),p=(0,v.hX)((0,v.U2)(f,["option"],[]),function(y){return y.name!==v0});f.clear(!0),(0,v.S6)(p,function(y){"object"==typeof y&&c.annotation()[y.type](y)});var d=(0,v.U2)(c,["filteredData"],c.getOptions().data);o({chart:c,index:h,options:(0,g.pi)((0,g.pi)({},t),{filteredData:Sh(d,d,t)})}),c.filterData(d),r.rendering=!0,c.render(!0)})}this.rendering=!1},n}(sn),y0="funnel-conversion-tag",bh="funnel-afterrender",m0={trigger:"afterrender",action:"".concat(y0,":change")};function oA(e){var h,n=e.options,t=n.compareField,r=n.xField,i=n.yField,o=n.funnelStyle,s=n.data,l=fl(n.locale);return(t||o)&&(h=function(f){return St({},t&&{lineWidth:1,stroke:"#fff"},(0,v.mf)(o)?o(f):o)}),St({options:{label:t?{fields:[r,i,t,mi,Xr],formatter:function(f){return"".concat(f[i])}}:{fields:[r,i,mi,Xr],offset:0,position:"middle",formatter:function(f){return"".concat(f[r]," ").concat(f[i])}},tooltip:{title:r,formatter:function(f){return{name:f[r],value:f[i]}}},conversionTag:{formatter:function(f){return"".concat(l.get(["conversionTag","label"]),": ").concat(h0.apply(void 0,f[Xr]))}}}},e,{options:{funnelStyle:h,data:(0,v.d9)(s)}})}function sA(e){var n=e.options,t=n.compareField,r=n.dynamicHeight;return n.seriesField?function iA(e){return ke(nA,rA)(e)}(e):t?function QT(e){return ke(XT,$T,JT)(e)}(e):r?function eA(e){return ke(qT,jT,KT,tA)(e)}(e):d0(e)}function lA(e){var n,t=e.options,i=t.yAxis,o=t.yField;return ke(fn(((n={})[t.xField]=t.xAxis,n[o]=i,n)))(e)}function cA(e){return e.chart.axis(!1),e}function uA(e){var r=e.options.legend;return e.chart.legend(!1!==r&&r),e}function hA(e){var n=e.chart,t=e.options,i=t.dynamicHeight;return(0,v.S6)(t.interactions,function(a){!1===a.enable?n.removeInteraction(a.type):n.interaction(a.type,a.cfg||{})}),i?n.removeInteraction(bh):n.interaction(bh,{start:[(0,g.pi)((0,g.pi)({},m0),{arg:t})]}),e}function x0(e){return ke(oA,sA,lA,cA,Mn,hA,uA,tn,$e,cn())(e)}be(y0,aA),Oe(bh,{start:[m0]});var xl,M0=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return HT},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return x0},n.prototype.setState=function(t,r,i){void 0===i&&(i=!0);var a=To(this.chart);(0,v.S6)(a,function(o){r(o.getData())&&o.setState(t,i)})},n.prototype.getStates=function(){var t=To(this.chart),r=[];return(0,v.S6)(t,function(i){var a=i.getData(),o=i.getStates();(0,v.S6)(o,function(s){r.push({data:a,state:s,geometry:i.geometry,element:i})})}),r},n.CONVERSATION_FIELD=Xr,n.PERCENT_FIELD=mi,n.TOTAL_PERCENT_FIELD=wh,n}(Be),Th="range",C0="type",$r="percent",fA="#f0f0f0",w0="indicator-view",S0="range-view",vA={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(xl={},xl[Th]={sync:"v"},xl[$r]={sync:"v",tickCount:5,tickInterval:.2},xl),animation:!1};function _0(e){var n;return[(n={},n[$r]=(0,v.uZ)(e,0,1),n)]}function b0(e,n){var t=(0,v.U2)(n,["ticks"],[]),r=(0,v.dp)(t)?(0,v.jj)(t):[0,(0,v.uZ)(e,0,1),1];return r[0]||r.shift(),function pA(e,n){return e.map(function(t,r){var i;return(i={})[Th]=t-(e[r-1]||0),i[C0]="".concat(r),i[$r]=n,i})}(r,e)}function dA(e){var n=e.chart,t=e.options,r=t.percent,i=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,c=t.axis,h=t.indicator,f=t.gaugeStyle,p=t.type,d=t.meter,y=i.color,m=i.width;if(h){var x=_0(r),M=n.createView({id:w0});M.data(x),M.point().position("".concat($r,"*1")).shape(h.shape||"gauge-indicator").customInfo({defaultColor:n.getTheme().defaultColor,indicator:h}),M.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),M.axis($r,c),M.scale($r,Ke(c,Gn))}var C=b0(r,t.range),S=n.createView({id:S0});S.data(C);var b=(0,v.HD)(y)?[y,fA]:y;return En({chart:S,options:{xField:"1",yField:Th,seriesField:C0,rawFields:[$r],isStack:!0,interval:{color:b,style:f,shape:"meter"===p?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:m,maxColumnWidth:m}}).ext.geometry.customInfo({meter:d}),S.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),e}function gA(e){var n;return ke(fn(((n={range:{min:0,max:1,maxLimit:1,minLimit:0}})[$r]={},n)))(e)}function T0(e,n){var t=e.chart,r=e.options,i=r.statistic,a=r.percent;if(t.getController("annotation").clear(!0),i){var o=i.content,s=void 0;o&&(s=St({},{content:"".concat((100*a).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),J4(t,{statistic:(0,g.pi)((0,g.pi)({},i),{content:s})},{percent:a})}return n&&t.render(!0),e}function yA(e){var r=e.options.tooltip;return e.chart.tooltip(!!r&&St({showTitle:!1,showMarkers:!1,containerTpl:'
    ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(i,a){var o=(0,v.U2)(a,[0,"data",$r],0);return"".concat((100*o).toFixed(2),"%")}},r)),e}function mA(e){return e.chart.legend(!1),e}function A0(e){return ke($e,tn,dA,gA,yA,T0,ln,cn(),mA)(e)}Qe("point","gauge-indicator",{draw:function(e,n){var t=e.customInfo,r=t.indicator,i=t.defaultColor,o=r.pointer,s=r.pin,l=n.addGroup(),c=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,g.pi)({x1:c.x,y1:c.y,x2:e.x,y2:e.y,stroke:i},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,g.pi)({x:c.x,y:c.y,stroke:i},s.style)}),l}}),Qe("interval","meter-gauge",{draw:function(e,n){var t=e.customInfo.meter,r=void 0===t?{}:t,i=r.steps,a=void 0===i?50:i,o=r.stepRatio,s=void 0===o?.5:o;a=a<1?1:a,s=(0,v.uZ)(s,0,1);var l=this.coordinate,c=l.startAngle,f=0;s>0&&s<1&&(f=(l.endAngle-c)/a/(s/(1-s)+1-1/a));for(var d=f/(1-s)*s,y=n.addGroup(),m=this.coordinate.getCenter(),x=this.coordinate.getRadius(),M=Hn.getAngle(e,this.coordinate),S=M.endAngle,b=M.startAngle;b1?l/(r-1):s.max),!t&&!r){var h=function MA(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}(o);c=l/h}var f={},p=(0,v.vM)(a,i);(0,v.xb)(p)?(0,v.S6)(a,function(y){var x=F0(y[n],c,r),M="".concat(x[0],"-").concat(x[1]);(0,v.wH)(f,M)||(f[M]={range:x,count:0}),f[M].count+=1}):Object.keys(p).forEach(function(y){(0,v.S6)(p[y],function(m){var M=F0(m[n],c,r),C="".concat(M[0],"-").concat(M[1]),S="".concat(C,"-").concat(y);(0,v.wH)(f,S)||(f[S]={range:M,count:0},f[S][i]=y),f[S].count+=1})});var d=[];return(0,v.S6)(f,function(y){d.push(y)}),d}var Ml="range",Lo="count",CA=St({},Be.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function wA(e){var n=e.chart,t=e.options,s=t.color,l=t.stackField,c=t.legend,h=t.columnStyle,f=E0(t.data,t.binField,t.binWidth,t.binNumber,l);return n.data(f),En(St({},e,{options:{xField:Ml,yField:Lo,seriesField:l,isStack:!0,interval:{color:s,style:h}}})),c&&l?n.legend(l,c):n.legend(!1),e}function SA(e){var n,t=e.options,i=t.yAxis;return ke(fn(((n={})[Ml]=t.xAxis,n[Lo]=i,n)))(e)}function _A(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis;return n.axis(Ml,!1!==r&&r),n.axis(Lo,!1!==i&&i),e}function bA(e){var r=e.options.label,i=Fn(e.chart,"interval");if(r){var a=r.callback,o=(0,g._T)(r,["callback"]);i.label({fields:[Lo],callback:a,cfg:wn(o)})}else i.label(!1);return e}function k0(e){return ke($e,jn("columnStyle"),wA,SA,_A,yi,bA,Mn,ln,tn)(e)}var TA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return CA},n.prototype.changeData=function(t){this.updateOption({data:t});var r=this.options;this.chart.changeData(E0(t,r.binField,r.binWidth,r.binNumber,r.stackField))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return k0},n}(Be),AA=St({},Be.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),FA=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.active=function(){var t=this.getView(),r=this.context.event;if(r.data){var i=r.data.items,a=t.geometries.filter(function(o){return"point"===o.type});(0,v.S6)(a,function(o){(0,v.S6)(o.elements,function(s){var l=-1!==(0,v.cx)(i,function(c){return c.data===s.data});s.setState("active",l)})})}},n.prototype.reset=function(){var r=this.getView().geometries.filter(function(i){return"point"===i.type});(0,v.S6)(r,function(i){(0,v.S6)(i.elements,function(a){a.setState("active",!1)})})},n.prototype.getView=function(){return this.context.view},n}(sn);be("marker-active",FA),Oe("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Ah=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return AA},n.prototype.changeData=function(t){this.updateOption({data:t}),gl({chart:this.chart,options:this.options}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return s0},n}(Be),I0=St({},Be.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),EA=[1,0,0,0,1,0,0,0,1];function Fh(e,n){var t=(0,g.ev)([],n||EA,!0);return Hn.transform(t,e)}var kA=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getActiveElements=function(){var t=Hn.getDelegationObject(this.context);if(t){var r=this.context.view,a=t.item,o=t.component.get("field");if(o)return r.geometries[0].elements.filter(function(l){return l.getModel().data[o]===a.value})}return[]},n.prototype.getActiveElementLabels=function(){var t=this.context.view,r=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter(function(a){return r.find(function(o){return(0,v.Xy)(o.getData(),a.get("data"))})})},n.prototype.transfrom=function(t){void 0===t&&(t=7.5);var r=this.getActiveElements(),i=this.getActiveElementLabels();r.forEach(function(a,o){var s=i[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var c=Hn.getAngle(a.getModel(),l),p=(c.startAngle+c.endAngle)/2,d=t,y=d*Math.cos(p),m=d*Math.sin(p);a.shape.setMatrix(Fh([["t",y,m]])),s.setMatrix(Fh([["t",y,m]]))}})},n.prototype.active=function(){this.transfrom()},n.prototype.reset=function(){this.transfrom(0)},n}(sn),DA=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},n.prototype.getInitialAnnotation=function(){return this.initialAnnotation},n.prototype.init=function(){var t=this,r=this.context.view;r.removeInteraction("tooltip"),r.on("afterchangesize",function(){var i=t.getAnnotations(r);t.initialAnnotation=i})},n.prototype.change=function(t){var r=this.context,i=r.view,a=r.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,v.U2)(a,["data","data"]);if(a.type.match("legend-item")){var s=Hn.getDelegationObject(this.context),l=i.getGroupedFields()[0];if(s&&l){var c=s.item;o=i.getData().find(function(d){return d[l]===c.value})}}if(o){var h=(0,v.U2)(t,"annotations",[]),f=(0,v.U2)(t,"statistic",{});i.getController("annotation").clear(!0),(0,v.S6)(h,function(d){"object"==typeof d&&i.annotation()[d.type](d)}),cl(i,{statistic:f,plotType:"pie"},o),i.render(!0)}var p=function IA(e){var t,r=e.event.target;return r&&(t=r.get("element")),t}(this.context);p&&p.shape.toFront()},n.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var i=this.getInitialAnnotation();(0,v.S6)(i,function(a){t.annotation()[a.type](a)}),t.render(!0)},n}(sn),D0="pie-statistic";function OA(e,n){var t;switch(e){case"inner":return t="-30%",(0,v.HD)(n)&&n.endsWith("%")?.01*parseFloat(n)>0?t:n:n<0?n:t;case"outer":return t=12,(0,v.HD)(n)&&n.endsWith("%")?.01*parseFloat(n)<0?t:n:n>0?n:t;default:return n}}function Cl(e,n){return(0,v.yW)(_a(e,n),function(t){return 0===t[n]})}function PA(e){var n=e.chart,t=e.options,i=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,c=_a(t.data,i);if(Cl(c,i)){var h="$$percentage$$";c=c.map(function(p){var d;return(0,g.pi)((0,g.pi)({},p),((d={})[h]=1/c.length,d))}),n.data(c),En(St({},e,{options:{xField:"1",yField:h,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}}))}else n.data(c),En(St({},e,{options:{xField:"1",yField:i,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}}));return e}function zA(e){var n,t=e.chart,r=e.options,a=r.colorField,o=St({},r.meta);return t.scale(o,((n={})[a]={type:"cat"},n)),e}function BA(e){var t=e.options;return e.chart.coordinate({type:"theta",cfg:{radius:t.radius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle}}),e}function RA(e){var n=e.chart,t=e.options,r=t.label,i=t.colorField,a=t.angleField,o=n.geometries[0];if(r){var s=r.callback,c=wn((0,g._T)(r,["callback"]));if(c.content){var h=c.content;c.content=function(y,m,x){var M=y[i],C=y[a],S=n.getScaleByField(a),b=S?.scale(C);return(0,v.mf)(h)?h((0,g.pi)((0,g.pi)({},y),{percent:b}),m,x):(0,v.HD)(h)?Xg(h,{value:C,name:M,percentage:(0,v.hj)(b)&&!(0,v.UM)(C)?"".concat((100*b).toFixed(2),"%"):null}):h}}var p=c.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[c.type]:"pie-outer",d=c.layout?(0,v.kJ)(c.layout)?c.layout:[c.layout]:[];c.layout=(p?[{type:p}]:[]).concat(d),o.label({fields:i?[a,i]:[a],callback:s,cfg:(0,g.pi)((0,g.pi)({},c),{offset:OA(c.type,c.offset),type:"pie"})})}else o.label(!1);return e}function L0(e){var n=e.innerRadius,t=e.statistic,r=e.angleField,i=e.colorField,a=e.meta,s=fl(e.locale);if(n&&t){var l=St({},I0.statistic,t),c=l.title,h=l.content;return!1!==c&&(c=St({},{formatter:function(f){var p=f?f[i]:(0,v.UM)(c.content)?s.get(["statistic","total"]):c.content;return((0,v.U2)(a,[i,"formatter"])||function(y){return y})(p)}},c)),!1!==h&&(h=St({},{formatter:function(f,p){var d=f?f[r]:function LA(e,n){var t=null;return(0,v.S6)(e,function(r){"number"==typeof r[n]&&(t+=r[n])}),t}(p,r),y=(0,v.U2)(a,[r,"formatter"])||function(m){return m};return f||(0,v.UM)(h.content)?y(d):h.content}},h)),St({},{statistic:{title:c,content:h}},e)}return e}function O0(e){var n=e.chart,r=L0(e.options),i=r.innerRadius,a=r.statistic;return n.getController("annotation").clear(!0),ke(cn())(e),i&&a&&cl(n,{statistic:a,plotType:"pie"}),e}function NA(e){var n=e.chart,t=e.options,r=t.tooltip,i=t.colorField,a=t.angleField,o=t.data;if(!1===r)n.tooltip(r);else if(n.tooltip(St({},r,{shared:!1})),Cl(o,a)){var s=(0,v.U2)(r,"fields"),l=(0,v.U2)(r,"formatter");(0,v.xb)((0,v.U2)(r,"fields"))&&(s=[i,a],l=l||function(c){return{name:c[i],value:(0,v.BB)(c[a])}}),n.geometries[0].tooltip(s.join("*"),ba(s,l))}return e}function VA(e){var n=e.chart,r=L0(e.options),a=r.statistic,o=r.annotations;return(0,v.S6)(r.interactions,function(s){var l,c;if(!1===s.enable)n.removeInteraction(s.type);else if("pie-statistic-active"===s.type){var h=[];!(null===(l=s.cfg)||void 0===l)&&l.start||(h=[{trigger:"element:mouseenter",action:"".concat(D0,":change"),arg:{statistic:a,annotations:o}}]),(0,v.S6)(null===(c=s.cfg)||void 0===c?void 0:c.start,function(f){h.push((0,g.pi)((0,g.pi)({},f),{arg:{statistic:a,annotations:o}}))}),n.interaction(s.type,St({},s.cfg,{start:h}))}else n.interaction(s.type,s.cfg||{})}),e}function P0(e){return ke(jn("pieStyle"),PA,zA,$e,BA,Vi,NA,RA,yi,O0,VA,tn)(e)}be(D0,DA),Oe("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),be("pie-legend",kA),Oe("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var Eh=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return I0},n.prototype.changeData=function(t){this.chart.emit(Ue.BEFORE_CHANGE_DATA,un.fromData(this.chart,Ue.BEFORE_CHANGE_DATA,null));var i=this.options.angleField,a=_a(this.options.data,i),o=_a(t,i);Cl(a,i)||Cl(o,i)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),O0({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(Ue.AFTER_CHANGE_DATA,un.fromData(this.chart,Ue.AFTER_CHANGE_DATA,null))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return P0},n}(Be),z0=["#FAAD14","#E8EDF3"],UA={percent:.2,color:z0,animation:{}};function kh(e){var n=(0,v.uZ)(Ni(e)?e:0,0,1);return[{current:"".concat(n),type:"current",percent:n},{current:"".concat(n),type:"target",percent:1}]}function B0(e){var n=e.chart,t=e.options,i=t.progressStyle,a=t.color,o=t.barWidthRatio;return n.data(kh(t.percent)),En(St({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:i,color:(0,v.HD)(a)?[a,z0[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}})),n.tooltip(!1),n.axis(!1),n.legend(!1),e}function YA(e){return e.chart.coordinate("rect").transpose(),e}function R0(e){return ke(B0,fn({}),YA,tn,$e,cn())(e)}var HA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return UA},n.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(kh(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return R0},n}(Be);function GA(e){var t=e.options;return e.chart.coordinate("theta",{innerRadius:t.innerRadius,radius:t.radius}),e}function N0(e,n){var t=e.chart,r=e.options,i=r.innerRadius,a=r.statistic,o=r.percent,s=r.meta;if(t.getController("annotation").clear(!0),i&&a){var l=(0,v.U2)(s,["percent","formatter"])||function(h){return"".concat((100*h).toFixed(2),"%")},c=a.content;c&&(c=St({},c,{content:(0,v.UM)(c.content)?l(o):c.content})),cl(t,{statistic:(0,g.pi)((0,g.pi)({},a),{content:c}),plotType:"ring-progress"},{percent:o})}return n&&t.render(!0),e}function V0(e){return ke(B0,fn({}),GA,N0,tn,$e,cn())(e)}var ZA={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},WA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return ZA},n.prototype.changeData=function(t){this.chart.emit(Ue.BEFORE_CHANGE_DATA,un.fromData(this.chart,Ue.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(kh(t)),N0({chart:this.chart,options:this.options},!0),this.chart.emit(Ue.AFTER_CHANGE_DATA,un.fromData(this.chart,Ue.AFTER_CHANGE_DATA,null))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return V0},n}(Be),Gi=V(9064),XA={exp:Gi.regressionExp,linear:Gi.regressionLinear,loess:Gi.regressionLoess,log:Gi.regressionLog,poly:Gi.regressionPoly,pow:Gi.regressionPow,quad:Gi.regressionQuad},JA=function(e,n){var t=n.view,r=n.options,a=r.yField,o=t.getScaleByField(r.xField),s=t.getScaleByField(a);return $4(e.map(function(c){return t.getCoordinate().convert({x:o.scale(c[0]),y:s.scale(c[1])})}),!1)},QA=function(e){var h,n=e.options,t=n.xField,r=n.yField,i=n.data,a=n.regressionLine,o=a.type,s=void 0===o?"linear":o,l=a.algorithm,c=a.equation,f=null;return l?(h=(0,v.kJ)(l)?l:l(i),f=c):f=function jA(e,n){var t,r,i,o=function(c){return Number.isFinite(c)?function(c,h){return void 0===h&&(h=4),Math.round(c*Math.pow(10,h))/Math.pow(10,h)}(c):"?"};switch(e){case"linear":return"y = ".concat(o(n.a),"x + ").concat(o(n.b),", R^2 = ").concat(o(n.rSquared));case"exp":return"y = ".concat(o(n.a),"e^(").concat(o(n.b),"x), R^2 = ").concat(o(n.rSquared));case"log":return"y = ".concat(o(n.a),"ln(x) + ").concat(o(n.b),", R^2 = ").concat(o(n.rSquared));case"quad":return"y = ".concat(o(n.a),"x^2 + ").concat(o(n.b),"x + ").concat(o(n.c),", R^2 = ").concat(o(n.rSquared));case"poly":for(var s="y = ".concat(o(null===(t=n.coefficients)||void 0===t?void 0:t[0])," + ").concat(o(null===(r=n.coefficients)||void 0===r?void 0:r[1]),"x + ").concat(o(null===(i=n.coefficients)||void 0===i?void 0:i[2]),"x^2"),l=3;l
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},d5={appendPadding:2,tooltip:(0,g.pi)({},X0),animation:{}};function g5(e){var n=e.chart,t=e.options,r=t.data,i=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o?.state,c=Zi(r);n.data(c);var h=St({},e,{options:{xField:Po,yField:Aa,area:{color:i,style:a},line:s,point:o}}),f=St({},h,{options:{tooltip:!1}}),p=St({},h,{options:{tooltip:!1,state:l}});return pl(h),Ta(f),Kn(p),n.axis(!1),n.legend(!1),e}function Fa(e){var n,t,r=e.options,i=r.xAxis,a=r.yAxis,s=Zi(r.data);return ke(fn(((n={})[Po]=i,n[Aa]=a,n),((t={})[Po]={type:"cat"},t[Aa]=sh(s,Aa),t)))(e)}function $0(e){return ke(jn("areaStyle"),g5,Fa,Mn,$e,tn,cn())(e)}var y5={appendPadding:2,tooltip:(0,g.pi)({},X0),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},m5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return y5},n.prototype.changeData=function(t){this.updateOption({data:t});var i=this.chart;Fa({chart:i,options:this.options}),i.changeData(Zi(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return $0},n}(Be);function x5(e){var n=e.chart,t=e.options,i=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=Zi(t.data);return n.data(s),En(St({},e,{options:{xField:Po,yField:Aa,widthRatio:o,interval:{style:a,color:i}}})),n.axis(!1),n.legend(!1),n.interaction("element-active"),e}function J0(e){return ke($e,jn("columnStyle"),x5,Fa,Mn,tn,cn())(e)}var C5={appendPadding:2,tooltip:(0,g.pi)({},{showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,n){return"".concat((0,v.U2)(n,[0,"data","y"],0))},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}}),animation:{}},w5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return C5},n.prototype.changeData=function(t){this.updateOption({data:t});var i=this.chart;Fa({chart:i,options:this.options}),i.changeData(Zi(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return J0},n}(Be);function S5(e){var n=e.chart,t=e.options,r=t.data,i=t.color,a=t.lineStyle,o=t.point,s=o?.state,l=Zi(r);n.data(l);var c=St({},e,{options:{xField:Po,yField:Aa,line:{color:i,style:a},point:o}}),h=St({},c,{options:{tooltip:!1,state:s}});return Ta(c),Kn(h),n.axis(!1),n.legend(!1),e}function Q0(e){return ke(S5,Fa,$e,Mn,tn,cn())(e)}var _5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return d5},n.prototype.changeData=function(t){this.updateOption({data:t});var i=this.chart;Fa({chart:i,options:this.options}),i.changeData(Zi(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Q0},n}(Be),b5={line:s0,pie:P0,column:ml,bar:f0,area:l0,gauge:A0,"tiny-line":Q0,"tiny-column":J0,"tiny-area":$0,"ring-progress":V0,progress:R0,scatter:Y0,histogram:k0,funnel:x0,stock:W0},T5={line:Ah,pie:Eh,column:Mh,bar:xh,area:gh,gauge:xA,"tiny-line":_5,"tiny-column":w5,"tiny-area":m5,"ring-progress":WA,progress:HA,scatter:Ih,histogram:TA,funnel:M0,stock:p5},A5={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Dh(e,n,t){var r=T5[e];r?(0,b5[e])({chart:n,options:St({},r.getDefaultOptions(),(0,v.U2)(A5,e,{}),t)}):console.error("could not find ".concat(e," plot"))}function F5(e){var n=e.chart,t=e.options,i=t.legend;return(0,v.S6)(t.views,function(a){var s=a.data,l=a.meta,c=a.axes,h=a.coordinate,f=a.interactions,p=a.annotations,d=a.tooltip,y=a.geometries,m=n.createView({region:a.region});m.data(s);var x={};c&&(0,v.S6)(c,function(M,C){x[C]=Ke(M,Gn)}),x=St({},l,x),m.scale(x),c?(0,v.S6)(c,function(M,C){m.axis(C,M)}):m.axis(!1),m.coordinate(h),(0,v.S6)(y,function(M){var C=Zn({chart:m,options:M}).ext,S=M.adjust;S&&C.geometry.adjust(S)}),(0,v.S6)(f,function(M){!1===M.enable?m.removeInteraction(M.type):m.interaction(M.type,M.cfg)}),(0,v.S6)(p,function(M){m.annotation()[M.type]((0,g.pi)({},M))}),"boolean"==typeof a.animation?m.animate(!1):(m.animate(!0),(0,v.S6)(m.geometries,function(M){M.animate(a.animation)})),d&&(m.interaction("tooltip"),m.tooltip(d))}),i?(0,v.S6)(i,function(a,o){n.legend(o,a)}):n.legend(!1),n.tooltip(t.tooltip),e}function E5(e){var n=e.chart,t=e.options,i=t.data,a=void 0===i?[]:i;return(0,v.S6)(t.plots,function(o){var s=o.type,l=o.region,c=o.options,h=void 0===c?{}:c,p=h.tooltip;if(o.top)Dh(s,n,(0,g.pi)((0,g.pi)({},h),{data:a}));else{var d=n.createView((0,g.pi)({region:l},Ke(h,n0)));p&&d.interaction("tooltip"),Dh(s,d,(0,g.pi)({data:a},h))}}),e}function k5(e){return e.chart.option("slider",e.options.slider),e}function I5(e){return ke(tn,F5,E5,ln,tn,$e,Mn,k5,cn())(e)}var O5=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getAssociationItems=function(t,r){var i,a=this.context.event,o=r||{},s=o.linkField,l=o.dim,c=[];if(null!==(i=a.data)&&void 0!==i&&i.data){var h=a.data.data;(0,v.S6)(t,function(f){var p,d,y=s;if("x"===l?y=f.getXScale().field:"y"===l?y=null===(p=f.getYScales().find(function(x){return x.field===y}))||void 0===p?void 0:p.field:y||(y=null===(d=f.getGroupScales()[0])||void 0===d?void 0:d.field),y){var m=(0,v.UI)(sl(f),function(x){var M=!1,C=!1,S=(0,v.kJ)(h)?(0,v.U2)(h[0],y):(0,v.U2)(h,y);return function D5(e,n){var r=e.getModel().data;return(0,v.kJ)(r)?r[0][n]:r[n]}(x,y)===S?M=!0:C=!0,{element:x,view:f,active:M,inactive:C}});c.push.apply(c,m)}})}return c},n.prototype.showTooltip=function(t){var r=$g(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},n.prototype.hideTooltip=function(){var t=$g(this.context.view);(0,v.S6)(t,function(r){r.hideTooltip()})},n.prototype.active=function(t){var r=Ao(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){a.active&&a.element.setState("active",!0)})},n.prototype.selected=function(t){var r=Ao(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){a.active&&a.element.setState("selected",!0)})},n.prototype.highlight=function(t){var r=Ao(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){a.inactive&&a.element.setState("inactive",!0)})},n.prototype.reset=function(){var t=Ao(this.context.view);(0,v.S6)(t,function(r){!function L5(e){var n=sl(e);(0,v.S6)(n,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}(r)})},n}(sn);be("association",O5),Oe("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Oe("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Oe("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Oe("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var P5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="mix",t}return(0,g.ZT)(n,e),n.prototype.getSchemaAdaptor=function(){return I5},n}(Be),zo=function(e){return e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE",e}(zo||{});Object.defineProperty(function e(){},"MultiView",{get:function(){return function z5(e,n){console.warn(e===zo.DEV?"Plot '".concat(n,"' is in DEV stage, just give us issues."):e===zo.BETA?"Plot '".concat(n,"' is in BETA stage, DO NOT use it in production env."):e===zo.STABLE?"Plot '".concat(n,"' is in STABLE stage, import it by \"import { ").concat(n," } from '@antv/g2plot'\"."):"invalid Stage type.")}(zo.STABLE,"MultiView"),P5},enumerable:!1,configurable:!0});var Ar="first-axes-view",Fr="second-axes-view",Wi="series-field-key";function q0(e,n,t,r,i){var a=[];n.forEach(function(f){r.forEach(function(p){var d,y=((d={})[e]=p[e],d[t]=f,d[f]=p[f],d);a.push(y)})});var o=Object.values((0,v.vM)(a,t)),s=o[0],l=void 0===s?[]:s,c=o[1],h=void 0===c?[]:c;return i?[l.reverse(),h.reverse()]:[l,h]}function Jr(e){return"vertical"!==e}function B5(e,n,t){var h,r=n[0],i=n[1],a=r.autoPadding,o=i.autoPadding,s=e.__axisPosition,l=s.layout,c=s.position;Jr(l)&&"top"===c&&(r.autoPadding=t.instance(a.top,0,a.bottom,a.left),i.autoPadding=t.instance(o.top,a.left,o.bottom,0)),Jr(l)&&"bottom"===c&&(r.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),i.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),Jr(l)||"bottom"!==c||(r.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,h=a.left>=o.left?a.left:o.left),i.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,h)),Jr(l)||"top"!==c||(r.autoPadding=t.instance(a.top,a.right,0,h=a.left>=o.left?a.left:o.left),i.autoPadding=t.instance(0,o.right,a.top,h))}function R5(e){var n=e.chart,t=e.options,i=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,c=t.legend,h=t.layout,f=q0(i,a,Wi,t.data,Jr(h));c?n.legend(Wi,c):!1===c&&n.legend(!1);var p,d,y=f[0],m=f[1];return Jr(h)?((p=n.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:Ar})).coordinate().transpose().reflect("x"),(d=n.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:Fr})).coordinate().transpose(),p.data(y),d.data(m)):(p=n.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:Ar}),(d=n.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:Fr})).coordinate().reflect("y"),p.data(y),d.data(m)),En(St({},e,{chart:p,options:{widthRatio:l,xField:i,yField:a[0],seriesField:Wi,interval:{color:o,style:s}}})),En(St({},e,{chart:d,options:{xField:i,yField:a[1],seriesField:Wi,widthRatio:l,interval:{color:o,style:s}}})),e}function N5(e){var n,t,r,i=e.options,a=e.chart,o=i.xAxis,s=i.yAxis,l=i.xField,c=i.yField,h=Ye(a,Ar),f=Ye(a,Fr),p={};return(0,v.XP)(i?.meta||{}).map(function(d){(0,v.U2)(i?.meta,[d,"alias"])&&(p[d]=i.meta[d].alias)}),a.scale(((n={})[Wi]={sync:!0,formatter:function(d){return(0,v.U2)(p,d,d)}},n)),fn(((t={})[l]=o,t[c[0]]=s[c[0]],t))(St({},e,{chart:h})),fn(((r={})[l]=o,r[c[1]]=s[c[1]],r))(St({},e,{chart:f})),e}function V5(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=Ye(n,Ar),c=Ye(n,Fr);return c.axis(a,"bottom"===r?.position&&(0,g.pi)((0,g.pi)({},r),{label:{formatter:function(){return""}}})),l.axis(a,!1!==r&&(0,g.pi)({position:Jr(s)?"top":"bottom"},r)),!1===i?(l.axis(o[0],!1),c.axis(o[1],!1)):(l.axis(o[0],i[o[0]]),c.axis(o[1],i[o[1]])),n.__axisPosition={position:l.getOptions().axes[a].position,layout:s},e}function U5(e){var n=e.chart;return ln(St({},e,{chart:Ye(n,Ar)})),ln(St({},e,{chart:Ye(n,Fr)})),e}function Y5(e){var n=e.chart,t=e.options,r=t.yField,i=t.yAxis;return Ui(St({},e,{chart:Ye(n,Ar),options:{yAxis:i[r[0]]}})),Ui(St({},e,{chart:Ye(n,Fr),options:{yAxis:i[r[1]]}})),e}function H5(e){var n=e.chart;return $e(St({},e,{chart:Ye(n,Ar)})),$e(St({},e,{chart:Ye(n,Fr)})),$e(e),e}function G5(e){var n=e.chart;return tn(St({},e,{chart:Ye(n,Ar)})),tn(St({},e,{chart:Ye(n,Fr)})),e}function Z5(e){var t,r,n=this,i=e.chart,a=e.options,o=a.label,s=a.yField,l=a.layout,c=Ye(i,Ar),h=Ye(i,Fr),f=Fn(c,"interval"),p=Fn(h,"interval");if(o){var d=o.callback,y=(0,g._T)(o,["callback"]);y.position||(y.position="middle"),void 0===y.offset&&(y.offset=2);var m=(0,g.pi)({},y);if(Jr(l)){var x=(null===(t=m.style)||void 0===t?void 0:t.textAlign)||("middle"===y.position?"center":"left");y.style=St({},y.style,{textAlign:x}),m.style=St({},m.style,{textAlign:{left:"right",right:"left",center:"center"}[x]})}else{var C={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof y.position?y.position=C[y.position]:"function"==typeof y.position&&(y.position=function(){for(var E=[],W=0;W1?"".concat(n,"_").concat(t):"".concat(n)}function ey(e){var t=e.xField,r=e.measureField,i=e.rangeField,a=e.targetField,o=e.layout,s=[],l=[];e.data.forEach(function(f,p){var d=[f[i]].flat();d.sort(function(x,M){return x-M}),d.forEach(function(x,M){var C,S=0===M?x:d[M]-d[M-1];s.push(((C={rKey:"".concat(i,"_").concat(M)})[t]=t?f[t]:String(p),C[i]=S,C))});var y=[f[r]].flat();y.forEach(function(x,M){var C;s.push(((C={mKey:ty(y,r,M)})[t]=t?f[t]:String(p),C[r]=x,C))});var m=[f[a]].flat();m.forEach(function(x,M){var C;s.push(((C={tKey:ty(m,a,M)})[t]=t?f[t]:String(p),C[a]=x,C))}),l.push(f[i],f[r],f[a])});var c=Math.min.apply(Math,l.flat(1/0)),h=Math.max.apply(Math,l.flat(1/0));return c=c>0?0:c,"vertical"===o&&s.reverse(),{min:c,max:h,ds:s}}function nF(e){var n=e.chart,t=e.options,r=t.bulletStyle,i=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,c=t.layout,h=t.size,f=t.label,p=ey(t),d=p.min,y=p.max;return n.data(p.ds),En(St({},e,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:(0,v.U2)(f,"range"),interval:{color:(0,v.U2)(l,"range"),style:(0,v.U2)(r,"range"),size:(0,v.U2)(h,"range")}}})),n.geometries[0].tooltip(!1),En(St({},e,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,v.U2)(f,"measure"),interval:{color:(0,v.U2)(l,"measure"),style:(0,v.U2)(r,"measure"),size:(0,v.U2)(h,"measure")}}})),Kn(St({},e,{options:{xField:s,yField:i,seriesField:"tKey",label:(0,v.U2)(f,"target"),point:{color:(0,v.U2)(l,"target"),style:(0,v.U2)(r,"target"),size:(0,v.mf)((0,v.U2)(h,"target"))?function(S){return(0,v.U2)(h,"target")(S)/2}:(0,v.U2)(h,"target")/2,shape:"horizontal"===c?"line":"hyphen"}}})),"horizontal"===c&&n.coordinate().transpose(),(0,g.pi)((0,g.pi)({},e),{ext:{data:{min:d,max:y}}})}function ny(e){var n,t,r=e.options,o=r.yAxis,s=r.targetField,l=r.rangeField,c=r.measureField,f=e.ext.data;return ke(fn(((n={})[r.xField]=r.xAxis,n[c]=o,n),((t={})[c]={min:f?.min,max:f?.max,sync:!0},t[s]={sync:"".concat(c)},t[l]={sync:"".concat(c)},t)))(e)}function rF(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,a=t.xField,o=t.measureField,l=t.targetField;return n.axis("".concat(t.rangeField),!1),n.axis("".concat(l),!1),n.axis("".concat(a),!1!==r&&r),n.axis("".concat(o),!1!==i&&i),e}function iF(e){var n=e.chart,r=e.options.legend;return n.removeInteraction("legend-filter"),n.legend(r),n.legend("rKey",!1),n.legend("mKey",!1),n.legend("tKey",!1),e}function aF(e){var t=e.options,r=t.label,i=t.measureField,a=t.targetField,o=t.rangeField,s=e.chart.geometries,l=s[0],c=s[1],h=s[2];return(0,v.U2)(r,"range")?l.label("".concat(o),(0,g.pi)({layout:[{type:"limit-in-plot"}]},wn(r.range))):l.label(!1),(0,v.U2)(r,"measure")?c.label("".concat(i),(0,g.pi)({layout:[{type:"limit-in-plot"}]},wn(r.measure))):c.label(!1),(0,v.U2)(r,"target")?h.label("".concat(a),(0,g.pi)({layout:[{type:"limit-in-plot"}]},wn(r.target))):h.label(!1),e}function oF(e){ke(nF,ny,rF,iF,$e,aF,Mn,ln,tn)(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return J5},n.prototype.changeData=function(t){this.updateOption({data:t});var r=this.options.yField,i=this.chart.views.find(function(a){return a.id===j0});i&&i.data(t),this.chart.changeData(K0(t,r))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return eF}}(Be);var sF=St({},Be.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),lF=(function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return sF},n.prototype.changeData=function(t){this.updateOption({data:t});var r=ey(this.options),o=r.ds;ny({options:this.options,ext:{data:{min:r.min,max:r.max}},chart:this.chart}),this.chart.changeData(o)},n.prototype.getSchemaAdaptor=function(){return oF},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()}}(Be),{y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null});var ry="x",iy="y",ay="name",oy="source",dF={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,n){return{offsetX:(e[0]+e[1])/2>.5?-4:4,content:n}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,v.U2)(e,[0,"data","isNode"])},formatter:function(e){var t=e.target,r=e.value;return{name:"".concat(e.source," -> ").concat(t),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function gF(e){var n=e.options,l=n.rawFields,c=void 0===l?[]:l,f=function pF(e,n){var t=function vF(e){return(0,v.f0)({},lF,e)}(e),r={},i=n.nodes,a=n.links;i.forEach(function(l){var c=t.id(l);r[c]=l}),function cF(e,n,t){(0,v.U5)(e,function(r,i){r.inEdges=n.filter(function(a){return"".concat(t.target(a))==="".concat(i)}),r.outEdges=n.filter(function(a){return"".concat(t.source(a))==="".concat(i)}),r.edges=r.outEdges.concat(r.inEdges),r.frequency=r.edges.length,r.value=0,r.inEdges.forEach(function(a){r.value+=t.targetWeight(a)}),r.outEdges.forEach(function(a){r.value+=t.sourceWeight(a)})})}(r,a,t),function uF(e,n){var r={weight:function(i,a){return a.value-i.value},frequency:function(i,a){return a.frequency-i.frequency},id:function(i,a){return"".concat(n.id(i)).localeCompare("".concat(n.id(a)))}}[n.sortBy];!r&&(0,v.mf)(n.sortBy)&&(r=n.sortBy),r&&e.sort(r)}(i,t);var o=function hF(e,n){var t=e.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(n.weight){var r=n.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*t),a=n.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(l){o+=l.value}),e.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-r),l.height=a}),e.forEach(function(l,c){for(var h=0,f=c-1;f>=0;f--)h+=e[f].width+2*i;var p=l.minX=i+h,d=l.maxX=l.minX+l.width,y=l.minY=n.y-a/2,m=l.maxY=y+a;l.x=[p,d,d,p],l.y=[y,y,m,m]})}else{var s=1/t;e.forEach(function(l,c){l.x=(c+.5)*s,l.y=n.y})}return e}(i,t),s=function fF(e,n,t){if(t.weight){var r={};(0,v.U5)(e,function(i,a){r[a]=i.value}),n.forEach(function(i){var a=t.source(i),o=t.target(i),s=e[a],l=e[o];if(s&&l){var c=r[a],h=t.sourceWeight(i),f=s.minX+(s.value-c)/s.value*s.width,p=f+h/s.value*s.width;r[a]-=h;var d=r[o],y=t.targetWeight(i),m=l.minX+(l.value-d)/l.value*l.width,x=m+y/l.value*l.width;r[o]-=y;var M=t.y;i.x=[f,p,m,x],i.y=[M,M,M,M],i.source=s,i.target=l}})}else n.forEach(function(i){var a=e[t.source(i)],o=e[t.target(i)];a&&o&&(i.x=[a.x,o.x],i.y=[a.y,o.y],i.source=a,i.target=o)});return n}(r,a,t);return{nodes:o,links:s}}({weight:!0,nodePaddingRatio:n.nodePaddingRatio,nodeWidthRatio:n.nodeWidthRatio},Vg(n.data,n.sourceField,n.targetField,n.weightField)),d=f.links,y=f.nodes.map(function(x){return(0,g.pi)((0,g.pi)({},Ke(x,(0,g.ev)(["id","x","y","name"],c,!0))),{isNode:!0})}),m=d.map(function(x){return(0,g.pi)((0,g.pi)({source:x.source.name,target:x.target.name,name:x.source.name||x.target.name},Ke(x,(0,g.ev)(["x","y","value"],c,!0))),{isNode:!1})});return(0,g.pi)((0,g.pi)({},e),{ext:(0,g.pi)((0,g.pi)({},e.ext),{chordData:{nodesData:y,edgesData:m}})})}function yF(e){var n;return e.chart.scale(((n={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[ay]={sync:"color"},n[oy]={sync:"color"},n)),e}function mF(e){return e.chart.axis(!1),e}function xF(e){return e.chart.legend(!1),e}function MF(e){return e.chart.tooltip(e.options.tooltip),e}function CF(e){return e.chart.coordinate("polar").reflect("y"),e}function wF(e){var t=e.options,r=e.ext.chordData.nodesData,i=t.nodeStyle,a=t.label,o=t.tooltip,s=e.chart.createView();return s.data(r),dl({chart:s,options:{xField:ry,yField:iy,seriesField:ay,polygon:{style:i},label:a,tooltip:o}}),e}function SF(e){var t=e.options,r=e.ext.chordData.edgesData,i=t.edgeStyle,a=t.tooltip,o=e.chart.createView();return o.data(r),t0({chart:o,options:{xField:ry,yField:iy,seriesField:oy,edge:{style:i,shape:"arc"},tooltip:a}}),e}function _F(e){var n=e.chart;return Fo(n,e.options.animation,function Y4(e){return(0,v.U2)(e,["views","length"],0)<=0?e.geometries:(0,v.u4)(e.views,function(n,t){return n.concat(t.geometries)},e.geometries)}(n)),e}function bF(e){return ke($e,gF,CF,yF,mF,xF,MF,SF,wF,ln,yi,_F)(e)}var TF=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="chord",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return dF},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return bF},n}(Be),AF=["x","y","r","name","value","path","depth"],FF={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},cy="drilldown-bread-crumb",kF={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Bo="hierarchy-data-transform-params",IF=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=kF,t}return(0,g.ZT)(n,e),n.prototype.click=function(){var t=(0,v.U2)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},n.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),r=this.breadCrumbGroup,i=r.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(i.height+10)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===a&&(o={x:t.start.x,y:t.start.y});var s=Hn.transform(null,[["t",o.x+0,o.y+i.height+5]]);r.setMatrix(s)}},n.prototype.back=function(){(0,v.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},n.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},n.prototype.drill=function(t){var r=this.context.view,i=(0,v.U2)(r,["interactions","drill-down","cfg","transformData"],function(c){return c}),a=i((0,g.pi)({data:t.data},t[Bo]));r.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:i((0,g.pi)({data:l},t[Bo]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},n.prototype.backTo=function(t){if(t&&!(t.length<=0)){var r=this.context.view,i=(0,v.Z$)(t).children;r.changeData(i),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},n.prototype.getButtonCfg=function(){var r=(0,v.U2)(this.context.view,["interactions","drill-down","cfg","drillDownConfig"]);return St(this.breadCrumbCfg,r?.breadCrumb,this.cfg)},n.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},n.prototype.drawBreadCrumbGroup=function(){var t=this,r=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:cy});var a=0;i.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(cy,"_").concat(o.name,"_text"),attrs:(0,g.pi)((0,g.pi)({text:0!==s||(0,v.UM)(r.rootText)?o.name:r.rootText},r.textStyle),{x:a,y:0})}),c=l.getBBox();if(a+=c.width+4,l.on("click",function(p){var d,y=p.target.get("id");if(y!==(null===(d=(0,v.Z$)(i))||void 0===d?void 0:d.id)){var m=i.slice(0,i.findIndex(function(x){return x.id===y})+1);t.backTo(m)}}),l.on("mouseenter",function(p){var d;p.target.get("id")!==(null===(d=(0,v.Z$)(i))||void 0===d?void 0:d.id)?l.attr(r.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(r.textStyle)}),s0&&t*t>r*r+i*i}function Oh(e,n){for(var t=0;t(l*=l)?(i=(c+l-a)/(2*c),s=Math.sqrt(Math.max(0,l/c-i*i)),t.x=e.x-i*r-s*o,t.y=e.y-i*o+s*r):(i=(c+a-l)/(2*c),s=Math.sqrt(Math.max(0,a/c-i*i)),t.x=n.x+i*r-s*o,t.y=n.y+i*o+s*r)):(t.x=n.x+t.r,t.y=n.y)}function py(e,n){var t=e.r+n.r-1e-6,r=n.x-e.x,i=n.y-e.y;return t>0&&t*t>r*r+i*i}function dy(e){var n=e._,t=e.next._,r=n.r+t.r,i=(n.x*t.r+t.x*n.r)/r,a=(n.y*t.r+t.y*n.r)/r;return i*i+a*a}function bl(e){this._=e,this.next=null,this.previous=null}function gy(e){if(!(i=(e=function DF(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(e)).length))return 0;var n,t,r,i,a,o,s,l,c,h,f;if((n=e[0]).x=0,n.y=0,!(i>1))return n.r;if(n.x=-(t=e[1]).r,t.x=n.r,t.y=0,!(i>2))return n.r+t.r;vy(t,n,r=e[2]),n=new bl(n),t=new bl(t),r=new bl(r),n.next=r.previous=t,t.next=n.previous=r,r.next=t.previous=n;t:for(s=3;s=0;)n+=t[r].value;else n=1;e.value=n}function Ia(e,n){e instanceof Map?(e=[void 0,e],void 0===n&&(n=rE)):void 0===n&&(n=nE);for(var r,a,o,s,l,t=new Da(e),i=[t];r=i.pop();)if((o=n(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new Da(o[s])),a.parent=r,a.depth=r.depth+1;return t.eachBefore(My)}function nE(e){return e.children}function rE(e){return Array.isArray(e)?e[1]:null}function iE(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function My(e){var n=0;do{e.height=n}while((e=e.parent)&&e.height<++n)}function Da(e){this.data=e,this.depth=this.height=0,this.parent=null}Da.prototype=Ia.prototype={constructor:Da,count:function UF(){return this.eachAfter(VF)},each:function YF(e,n){let t=-1;for(const r of this)e.call(n,r,++t,this);return this},eachAfter:function GF(e,n){for(var a,o,s,t=this,r=[t],i=[],l=-1;t=r.pop();)if(i.push(t),a=t.children)for(o=0,s=a.length;o=0;--a)r.push(i[a]);return this},find:function ZF(e,n){let t=-1;for(const r of this)if(e.call(n,r,++t,this))return r},sum:function WF(e){return this.eachAfter(function(n){for(var t=+e(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)t+=r[i].value;n.value=t})},sort:function XF(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})},path:function $F(e){for(var n=this,t=function JF(e,n){if(e===n)return e;var t=e.ancestors(),r=n.ancestors(),i=null;for(e=t.pop(),n=r.pop();e===n;)i=e,e=t.pop(),n=r.pop();return i}(n,e),r=[n];n!==t;)r.push(n=n.parent);for(var i=r.length;e!==t;)r.splice(i,0,e),e=e.parent;return r},ancestors:function QF(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n},descendants:function qF(){return Array.from(this)},leaves:function jF(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e},links:function KF(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n},copy:function eE(){return Ia(this).eachBefore(iE)},[Symbol.iterator]:function*tE(){var n,r,i,a,e=this,t=[e];do{for(n=t.reverse(),t=[];e=n.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i0&&c1;)h="".concat(null===(c=f.parent.data)||void 0===c?void 0:c.name," / ").concat(h),f=f.parent;if(a&&l.depth>2)return null;var p=St({},l.data,(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(l.data,i)),{path:h}),l));p.ext=t,p[Bo]={hierarchyConfig:t,rawFields:i,enableDrillDown:a},s.push(p)}),s}function _y(e,n,t){var r=uh([e,n]),i=r[0],a=r[1],o=r[2],s=r[3],h=t.width-(s+a),f=t.height-(i+o),p=Math.min(h,f),d=(h-p)/2,y=(f-p)/2;return{finalPadding:[i+y,a+d,o+y,s+d],finalSize:p<0?0:p}}function sE(e){var n=e.chart,t=Math.min(n.viewBBox.width,n.viewBBox.height);return St({options:{size:function(r){return r.r*t}}},e)}function lE(e){var n=e.options,t=e.chart,r=t.viewBBox,i=n.padding,a=n.appendPadding,o=n.drilldown,s=a;o?.enabled&&(s=uh([ll(t.appendPadding,(0,v.U2)(o,["breadCrumb","position"])),a]));var c=_y(i,s,r).finalPadding;return t.padding=c,t.appendPadding=0,e}function cE(e){var n=e.chart,t=e.options,r=n.padding,i=n.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,c=t.sizeField,h=t.rawFields,f=void 0===h?[]:h,p=t.drilldown,d=Sy({data:t.data,hierarchyConfig:t.hierarchyConfig,enableDrillDown:p?.enabled,rawFields:f});n.data(d);var m=_y(r,i,n.viewBBox).finalSize,x=function(M){return M.r*m};return c&&(x=function(M){return M[c]*m}),Kn(St({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:c,rawFields:(0,g.ev)((0,g.ev)([],AF,!0),f,!0),point:{color:a,style:s,shape:"circle",size:x}}})),e}function uE(e){return ke(fn({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function hE(e){var n=e.chart,r=e.options.tooltip;if(!1===r)n.tooltip(!1);else{var i=r;(0,v.U2)(r,"fields")||(i=St({},{customItems:function(a){return a.map(function(o){var s=(0,v.U2)(n.getOptions(),"scales"),l=(0,v.U2)(s,["name","formatter"],function(h){return h}),c=(0,v.U2)(s,["value","formatter"],function(h){return h});return(0,g.pi)((0,g.pi)({},o),{name:l(o.data.name),value:c(o.data.value)})})}},i)),n.tooltip(i)}return e}function fE(e){return e.chart.axis(!1),e}function vE(e){var n=e.drilldown,t=e.interactions,r=void 0===t?[]:t;return n?.enabled?St({},e,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:n,transformData:Sy,enableDrillDown:!0}}],!1)}):e}function pE(e){return ln({chart:e.chart,options:vE(e.options)}),e}function dE(e){return ke(jn("pointStyle"),sE,lE,$e,uE,cE,fE,Vi,hE,pE,tn,cn())(e)}function by(e){var n=(0,v.U2)(e,["event","data","data"],{});return(0,v.kJ)(n.children)&&n.children.length>0}function Ty(e){var n=e.view.getCoordinate(),t=n.innerRadius;if(t){var r=e.event,i=r.x,a=r.y,o=n.center,s=o.x,l=o.y,c=n.getRadius()*t;return Math.sqrt(Math.pow(s-i,2)+Math.pow(l-a,2))-1)||function G4(e,n,t){var r=Math.min(n,t),i=Math.max(n,t);return e>=r&&e<=i}(y,f,p)}),e.getRootView().render(!0)}};function xE(e){var n,t=e.options,r=t.geometryOptions,i=void 0===r?[]:r,a=t.xField,o=t.yField,s=(0,v.yW)(i,function(l){var c=l.geometry;return c===La.Line||void 0===c});return St({},{options:{geometryOptions:[],meta:(n={},n[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},n),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:Ey(o,t.yAxis),geometryOptions:[Fy(0,o[0],i[0]),Fy(0,o[1],i[1])],annotations:Ey(o,t.annotations)}})}function ME(e){var n,t,r=e.chart,a=e.options.geometryOptions,o={line:0,column:1};return[{type:null===(n=a[0])||void 0===n?void 0:n.geometry,id:tr},{type:null===(t=a[1])||void 0===t?void 0:t.geometry,id:er}].sort(function(l,c){return-o[l.type]+o[c.type]}).forEach(function(l){return r.createView({id:l.id})}),e}function CE(e){var n=e.chart,t=e.options,r=t.xField,i=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip;return[(0,g.pi)((0,g.pi)({},a[0]),{id:tr,data:o[0],yField:i[0]}),(0,g.pi)((0,g.pi)({},a[1]),{id:er,data:o[1],yField:i[1]})].forEach(function(c){var h=c.id,f=c.data,p=c.yField,d=Uh(c)&&c.isPercent,y=d?r0(f,p,r,p):f,m=Ye(n,h).data(y),x=d?(0,g.pi)({formatter:function(M){return{name:M[c.seriesField]||p,value:(100*Number(M[p])).toFixed(2)+"%"}}},s):s;!function mE(e){var n=e.options,t=e.chart,r=n.geometryOption,i=r.isStack,a=r.color,o=r.seriesField,s=r.groupField,l=r.isGroup,c=["xField","yField"];if(Vh(r)){Ta(St({},e,{options:(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(n,c)),r),{line:{color:r.color,style:r.lineStyle}})})),Kn(St({},e,{options:(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(n,c)),r),{point:r.point&&(0,g.pi)({color:a,shape:"circle"},r.point)})}));var h=[];l&&h.push({type:"dodge",dodgeBy:s||o,customOffset:0}),i&&h.push({type:"stack"}),h.length&&(0,v.S6)(t.geometries,function(f){f.adjust(h)})}Uh(r)&&ml(St({},e,{options:(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(n,c)),r),{widthRatio:r.columnWidthRatio,interval:(0,g.pi)((0,g.pi)({},Ke(r,["color"])),{style:r.columnStyle})})}))}({chart:m,options:{xField:r,yField:p,tooltip:x,geometryOption:c}})}),e}function wE(e){var n,t=e.chart,i=e.options.geometryOptions,a=(null===(n=t.getTheme())||void 0===n?void 0:n.colors10)||[],o=0;return t.once("beforepaint",function(){(0,v.S6)(i,function(s,l){var c=Ye(t,0===l?tr:er);if(!s.color){var h=c.getGroupScales(),f=(0,v.U2)(h,[0,"values","length"],1),p=a.slice(o,o+f).concat(0===l?[]:a);c.geometries.forEach(function(d){s.seriesField?d.color(s.seriesField,p):d.color(p[0])}),o+=f}}),t.render(!0)}),e}function SE(e){var n,t,r=e.chart,i=e.options,a=i.xAxis,o=i.yAxis,s=i.xField,l=i.yField;return fn(((n={})[s]=a,n[l[0]]=o[0],n))(St({},e,{chart:Ye(r,tr)})),fn(((t={})[s]=a,t[l[1]]=o[1],t))(St({},e,{chart:Ye(r,er)})),e}function _E(e){var n=e.chart,t=e.options,r=Ye(n,tr),i=Ye(n,er),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return n.axis(a,!1),n.axis(o[0],!1),n.axis(o[1],!1),r.axis(a,s),r.axis(o[0],ky(l[0],No.Left)),i.axis(a,!1),i.axis(o[1],ky(l[1],No.Right)),e}function bE(e){var n=e.chart,r=e.options.tooltip,i=Ye(n,tr),a=Ye(n,er);return n.tooltip(r),i.tooltip({shared:!0}),a.tooltip({shared:!0}),e}function TE(e){var n=e.chart;return ln(St({},e,{chart:Ye(n,tr)})),ln(St({},e,{chart:Ye(n,er)})),e}function AE(e){var n=e.chart,r=e.options.annotations,i=(0,v.U2)(r,[0]),a=(0,v.U2)(r,[1]);return cn(i)(St({},e,{chart:Ye(n,tr),options:{annotations:i}})),cn(a)(St({},e,{chart:Ye(n,er),options:{annotations:a}})),e}function FE(e){var n=e.chart;return $e(St({},e,{chart:Ye(n,tr)})),$e(St({},e,{chart:Ye(n,er)})),$e(e),e}function EE(e){var n=e.chart;return tn(St({},e,{chart:Ye(n,tr)})),tn(St({},e,{chart:Ye(n,er)})),e}function kE(e){var n=e.chart,r=e.options.yAxis;return Ui(St({},e,{chart:Ye(n,tr),options:{yAxis:r[0]}})),Ui(St({},e,{chart:Ye(n,er),options:{yAxis:r[1]}})),e}function IE(e){var n=e.chart,t=e.options,r=t.legend,i=t.geometryOptions,a=t.yField,o=t.data,s=Ye(n,tr),l=Ye(n,er);if(!1===r)n.legend(!1);else if((0,v.Kn)(r)&&!0===r.custom)n.legend(r);else{var c=(0,v.U2)(i,[0,"legend"],r),h=(0,v.U2)(i,[1,"legend"],r);n.once("beforepaint",function(){var f=o[0].length?Iy({view:s,geometryOption:i[0],yField:a[0],legend:c}):[],p=o[1].length?Iy({view:l,geometryOption:i[1],yField:a[1],legend:h}):[];n.legend(St({},r,{custom:!0,items:f.concat(p)}))}),i[0].seriesField&&s.legend(i[0].seriesField,c),i[1].seriesField&&l.legend(i[1].seriesField,h),n.on("legend-item:click",function(f){var p=(0,v.U2)(f,"gEvent.delegateObject",{});if(p&&p.item){var d=p.item,y=d.value,x=d.viewId;if(d.isGeometry){if((0,v.cx)(a,function(b){return b===y})>-1){var C=(0,v.U2)(Ye(n,x),"geometries");(0,v.S6)(C,function(b){b.changeVisible(!p.item.unchecked)})}}else{var S=(0,v.U2)(n.getController("legend"),"option.items",[]);(0,v.S6)(n.views,function(b){var E=b.getGroupScales();(0,v.S6)(E,function(W){W.values&&W.values.indexOf(y)>-1&&b.filter(W.field,function(tt){return!(0,v.sE)(S,function(wt){return wt.value===tt}).unchecked})}),n.render(!0)})}}})}return e}function DE(e){var n=e.chart,r=e.options.slider,i=Ye(n,tr),a=Ye(n,er);return r&&(i.option("slider",r),i.on("slider:valuechanged",function(o){var s=o.event,l=s.value;(0,v.Xy)(l,s.originValue)||Dy(a,l)}),n.once("afterpaint",function(){if(!(0,v.jn)(r)){var o=r.start,s=r.end;(o||s)&&Dy(a,[o,s])}})),e}function LE(e){return ke(xE,ME,FE,CE,SE,_E,kE,bE,TE,AE,EE,wE,IE,DE)(e)}function PE(e){var n=e.chart,t=e.options,r=t.type,i=t.data,a=t.fields,o=t.eachView,s=(0,v.CE)(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return n.data(i),n.facet(r,(0,g.pi)((0,g.pi)({},s),{fields:a,eachView:function(l,c){var h=o(l,c);if(h.geometries)!function OE(e,n){var t=n.data,r=n.coordinate,i=n.interactions,a=n.annotations,o=n.animation,s=n.tooltip,l=n.axes,c=n.meta,h=n.geometries;t&&e.data(t);var f={};l&&(0,v.S6)(l,function(p,d){f[d]=Ke(p,Gn)}),f=St({},c,f),e.scale(f),r&&e.coordinate(r),!1===l?e.axis(!1):(0,v.S6)(l,function(p,d){e.axis(d,p)}),(0,v.S6)(h,function(p){var d=Zn({chart:e,options:p}).ext,y=p.adjust;y&&d.geometry.adjust(y)}),(0,v.S6)(i,function(p){!1===p.enable?e.removeInteraction(p.type):e.interaction(p.type,p.cfg)}),(0,v.S6)(a,function(p){e.annotation()[p.type]((0,g.pi)({},p))}),Fo(e,o),s?(e.interaction("tooltip"),e.tooltip(s)):!1===s&&e.removeInteraction("tooltip")}(l,h);else{var f=h,p=f.options;p.tooltip&&l.interaction("tooltip"),Dh(f.type,l,p)}}})),e}function zE(e){var n=e.chart,t=e.options,r=t.axes,i=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,c=t.interactions,h=t.annotations,f={};return r&&(0,v.S6)(r,function(p,d){f[d]=Ke(p,Gn)}),f=St({},i,f),n.scale(f),n.coordinate(o),r?(0,v.S6)(r,function(p,d){n.axis(d,p)}):n.axis(!1),a?(n.interaction("tooltip"),n.tooltip(a)):!1===a&&n.removeInteraction("tooltip"),n.legend(l),s&&n.theme(s),(0,v.S6)(c,function(p){!1===p.enable?n.removeInteraction(p.type):n.interaction(p.type,p.cfg)}),(0,v.S6)(h,function(p){n.annotation()[p.type]((0,g.pi)({},p))}),e}function BE(e){return ke($e,PE,zE)(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}(0,g.ZT)(n,e),n.prototype.getDefaultOptions=function(){return St({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},n.prototype.getSchemaAdaptor=function(){return LE}}(Be);var RE={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};function NE(e){var n=e.chart,t=e.options,r=t.data,i=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,c=t.sizeRatio,h=t.shape,f=t.color,p=t.tooltip,d=t.heatmapStyle,y=t.meta;n.data(r);var m="polygon";"density"===i&&(m="heatmap");var x=ar(p,[a,o,s]),M=x.fields,C=x.formatter,S=1;return(c||0===c)&&(h||l?c<0||c>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):S=c:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Zn(St({},e,{options:{type:m,colorField:s,tooltipFields:M,shapeField:l||"",label:void 0,mapping:{tooltip:C,shape:h&&(l?function(b){var E=r.map(function(wt){return wt[l]}),W=y?.[l]||{},tt=W.min,it=W.max;return tt=(0,v.hj)(tt)?tt:Math.min.apply(Math,E),it=(0,v.hj)(it)?it:Math.max.apply(Math,E),[h,((0,v.U2)(b,l)-tt)/(it-tt),S]}:function(){return[h,1,S]}),color:f||s&&n.getTheme().sequenceColors.join("-"),style:d}}})),e}function VE(e){var n,t=e.options,i=t.yAxis,o=t.yField;return ke(fn(((n={})[t.xField]=t.xAxis,n[o]=i,n)))(e)}function UE(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,o=t.yField;return n.axis(t.xField,!1!==r&&r),n.axis(o,!1!==i&&i),e}function YE(e){var n=e.chart,t=e.options,r=t.legend,i=t.colorField,a=t.sizeField,o=t.sizeLegend,s=!1!==r;return i&&n.legend(i,!!s&&r),a&&n.legend(a,void 0===o?r:o),!s&&!o&&n.legend(!1),e}function HE(e){var t=e.options,r=t.label,i=t.colorField,o=Fn(e.chart,"density"===t.type?"heatmap":"polygon");if(r){if(i){var s=r.callback,l=(0,g._T)(r,["callback"]);o.label({fields:[i],callback:s,cfg:wn(l)})}}else o.label(!1);return e}function GE(e){var n,t,r=e.chart,i=e.options,o=i.reflect,s=St({actions:[]},i.coordinate??{type:"rect"});return o&&(null===(t=null===(n=s.actions)||void 0===n?void 0:n.push)||void 0===t||t.call(n,["reflect",o])),r.coordinate(s),e}function ZE(e){return ke($e,jn("heatmapStyle"),VE,GE,NE,UE,YE,Mn,HE,cn(),ln,tn,yi)(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return RE},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return BE}}(Be);var WE=St({},Be.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Qe("polygon","circle",{draw:function(e,n){var t,r,i=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),c=Math.min(s,l)/2,h=Number(e.shape[1]),f=Number(e.shape[2]),d=c*Math.sqrt(f)*Math.sqrt(h),y=(null===(t=e.style)||void 0===t?void 0:t.fill)||e.color||(null===(r=e.defaultStyle)||void 0===r?void 0:r.fill);return n.addShape("circle",{attrs:(0,g.pi)((0,g.pi)((0,g.pi)({x:i,y:a,r:d},e.defaultStyle),e.style),{fill:y})})}}),Qe("polygon","square",{draw:function(e,n){var t,r,i=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),c=Math.min(s,l),h=Number(e.shape[1]),f=Number(e.shape[2]),d=c*Math.sqrt(f)*Math.sqrt(h),y=(null===(t=e.style)||void 0===t?void 0:t.fill)||e.color||(null===(r=e.defaultStyle)||void 0===r?void 0:r.fill);return n.addShape("rect",{attrs:(0,g.pi)((0,g.pi)((0,g.pi)({x:i-d/2,y:a-d/2,width:d,height:d},e.defaultStyle),e.style),{fill:y})})}}),function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return WE},n.prototype.getSchemaAdaptor=function(){return ZE},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()}}(Be);var XE="liquid";function Ly(e){return[{percent:e,type:XE}]}function $E(e){var n=e.chart,t=e.options,r=t.percent,i=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,c=t.shapeStyle,h=t.animation;n.scale({percent:{min:0,max:1}}),n.data(Ly(r));var f=t.color||n.getTheme().defaultColor,y=En(St({},e,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:f,style:i,shape:"liquid-fill-gauge"}}})).ext.geometry,m=n.getTheme().background;return y.customInfo({percent:r,radius:a,outline:o,wave:s,shape:l,shapeStyle:c,background:m,animation:h}),n.legend(!1),n.axis(!1),n.tooltip(!1),e}function Oy(e,n){var t=e.chart,r=e.options,i=r.statistic,a=r.percent,o=r.meta;t.getController("annotation").clear(!0);var s=(0,v.U2)(o,["percent","formatter"])||function(c){return"".concat((100*c).toFixed(2),"%")},l=i.content;return l&&(l=St({},l,{content:(0,v.UM)(l.content)?s(a):l.content})),cl(t,{statistic:(0,g.pi)((0,g.pi)({},i),{content:l}),plotType:"liquid"},{percent:a}),n&&t.render(!0),e}function JE(e){return ke($e,jn("liquidStyle"),$E,Oy,fn({}),tn,ln)(e)}var QE={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"};function zy(e,n,t){return e+(n-e)*t}function KE(e,n,t,r){return 0===n?[[e+.5*t/Math.PI/2,r/2],[e+.5*t/Math.PI,r],[e+t/4,r]]:1===n?[[e+.5*t/Math.PI/2*(Math.PI-2),r],[e+.5*t/Math.PI/2*(Math.PI-1),r/2],[e+t/4,0]]:2===n?[[e+.5*t/Math.PI/2,-r/2],[e+.5*t/Math.PI,-r],[e+t/4,-r]]:[[e+.5*t/Math.PI/2*(Math.PI-2),-r],[e+.5*t/Math.PI/2*(Math.PI-1),-r/2],[e+t/4,0]]}function tk(e,n,t,r,i,a,o){for(var s=4*Math.ceil(2*e/t*4),l=[],c=r;c<2*-Math.PI;)c+=2*Math.PI;for(;c>0;)c-=2*Math.PI;var h=a-e+(c=c/Math.PI/2*t)-2*e;l.push(["M",h,n]);for(var f=0,p=0;p0){var ee=n.addGroup({name:"waves"}),me=ee.setClip({type:"path",attrs:{path:Ut}});!function ek(e,n,t,r,i,a,o,s,l,c){for(var h=i.fill,f=i.opacity,p=o.getBBox(),d=p.maxX-p.minX,y=p.maxY-p.minY,m=0;m0){var s=this.view.geometries[0],c=o[0].name,h=[];return s.dataArray.forEach(function(f){f.forEach(function(p){var y=Hn.getTooltipItems(p,s)[0];if(!i&&y&&y.name===c){var m=(0,v.UM)(a)?c:a;h.push((0,g.pi)((0,g.pi)({},y),{name:y.title,title:m}))}else i&&y&&(m=(0,v.UM)(a)?y.name||c:a,h.push((0,g.pi)((0,g.pi)({},y),{name:y.title,title:m})))})}),h}return[]},n}(Pp);Di("radar-tooltip",vk);var pk=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.init=function(){this.context.view.removeInteraction("tooltip")},n.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},n.prototype.hide=function(){this.getTooltipController().hideTooltip()},n.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},n}(sn);be("radar-tooltip",pk),Oe("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var dk=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}return(0,g.ZT)(n,e),n.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return St({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},n.prototype.getSchemaAdaptor=function(){return fk},n}(Be);function gk(e,n,t){var r=t.map(function(o){return o[n]}).filter(function(o){return void 0!==o}),i=r.length>0?Math.max.apply(Math,r):0,a=Math.abs(e)%360;return a?360*i/a:i}function mk(e){var n=e.chart,t=e.options,r=t.barStyle,i=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,c=t.yField,f=t.shape,p=_a(t.data,c);return n.data(p),En(St({},e,{options:{tooltip:a,seriesField:o,interval:{style:r,color:i,shape:f||("line"===s?"line":"intervel")},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}})),"line"===s&&Kn({chart:n,options:{xField:l,yField:c,seriesField:o,point:{shape:"circle",color:i}}}),e}function Ry(e){var n,t=e.options,r=t.yField,a=t.data,c=t.maxAngle,h=t.isStack&&!t.isGroup&&t.colorField?function yk(e,n,t){var r=[];return e.forEach(function(i){var a=r.find(function(o){return o[n]===i[n]});a?a[t]+=i[t]||null:r.push((0,g.pi)({},i))}),r}(a,t.xField,r):a,f=_a(h,r);return ke(fn(((n={})[r]={min:0,max:gk(c,r,f)},n)))(e)}function xk(e){var t=e.options;return e.chart.coordinate({type:"polar",cfg:{radius:t.radius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle}}).transpose(),e}function Mk(e){var t=e.options;return e.chart.axis(t.xField,t.xAxis),e}function Ck(e){var t=e.options,r=t.label,i=t.yField,a=Fn(e.chart,"interval");if(r){var o=r.callback,s=(0,g._T)(r,["callback"]);a.label({fields:[i],callback:o,cfg:(0,g.pi)((0,g.pi)({},wn(s)),{type:"polar"})})}else a.label(!1);return e}function wk(e){return ke(jn("barStyle"),mk,Ry,Mk,xk,ln,tn,$e,Mn,Vi,cn(),Ck)(e)}var Sk=St({},Be.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),_k=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return Sk},n.prototype.changeData=function(t){this.updateOption({data:t}),Ry({chart:this.chart,options:this.options}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return wk},n}(Be);function bk(e){var t=e.options,i=t.sectorStyle,a=t.shape,o=t.color;return e.chart.data(t.data),ke(En)(St({},e,{options:{marginRatio:1,interval:{style:i,color:o,shape:a}}})),e}function Tk(e){var t=e.options,r=t.label,i=t.xField,a=Fn(e.chart,"interval");if(!1===r)a.label(!1);else if((0,v.Kn)(r)){var o=r.callback,s=r.fields,l=(0,g._T)(r,["callback","fields"]),c=l.offset,h=l.layout;(void 0===c||c>=0)&&(h=h?(0,v.kJ)(h)?h:[h]:[],l.layout=(0,v.hX)(h,function(f){return"limit-in-shape"!==f.type}),l.layout.length||delete l.layout),a.label({fields:s||[i],callback:o,cfg:wn(l)})}else Zr(Tr.WARN,null===r,"the label option must be an Object."),a.label({fields:[i]});return e}function Ak(e){var n=e.chart,t=e.options,r=t.legend,i=t.seriesField;return!1===r?n.legend(!1):i&&n.legend(i,r),e}function Fk(e){var t=e.options;return e.chart.coordinate({type:"polar",cfg:{radius:t.radius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle}}),e}function Ek(e){var n,t=e.options,i=t.yAxis,o=t.yField;return ke(fn(((n={})[t.xField]=t.xAxis,n[o]=i,n)))(e)}function kk(e){var n=e.chart,t=e.options,i=t.yAxis,o=t.yField;return n.axis(t.xField,t.xAxis||!1),n.axis(o,i||!1),e}function Ik(e){ke(jn("sectorStyle"),bk,Ek,Tk,Fk,kk,Ak,Mn,ln,tn,$e,cn(),yi)(e)}var Dk=St({},Be.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),Lk=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return Dk},n.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Ik},n}(Be),Ny="x",Vy="y",Uy="name",Al="nodes",Fl="edges";function zk(e,n,t){if(!(0,v.kJ)(e))return[];var r=[],i=function Ok(e,n,t){var r=[];return e.forEach(function(i){var a=i[n],o=i[t];r.includes(a)||r.push(a),r.includes(o)||r.push(o)}),r}(e,n,t),a=function Pk(e,n,t,r){var i={};return n.forEach(function(a){i[a]={},n.forEach(function(o){i[a][o]=0})}),e.forEach(function(a){i[a[t]][a[r]]=1}),i}(e,i,n,t),o={};function s(l){o[l]=1,i.forEach(function(c){if(0!=a[l][c])if(1==o[c])r.push("".concat(l,"_").concat(c));else{if(-1==o[c])return;s(c)}}),o[l]=-1}return i.forEach(function(l){o[l]=0}),i.forEach(function(l){-1!=o[l]&&s(l)}),0!==r.length&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),e.filter(function(l){return r.findIndex(function(c){return c==="".concat(l[n],"_").concat(l[t])})<0})}function Bk(e){return e.target.depth}function Yh(e,n){return e.sourceLinks.length?e.depth:n-1}function El(e){return function(){return e}}function Hh(e,n){for(var t=0,r=0;rSe)throw new Error("circular link");ge=Me,Me=new Set}if(c)for(var He=Math.max(Gh(fe,function(Xe){return Xe.depth})+1,0),We=void 0,Re=0;ReSe)throw new Error("circular link");ge=Me,Me=new Set}}(fe),function W(Xt){var fe=function b(Xt){for(var fe=Xt.nodes,Se=Math.max(Gh(fe,function(xn){return xn.depth})+1,0),ge=(t-e-i)/(Se-1),Me=new Array(Se).fill(0).map(function(){return[]}),Fe=0,He=fe;Fe0){var Pa=(Xe/en-Re.y0)*fe;Re.y0+=Pa,Re.y1+=Pa,ee(Re)}}void 0===h&&Fe.sort(kl),Fe.length&&wt(Fe,Se)}}function it(Xt,fe,Se){for(var Me=Xt.length-2;Me>=0;--Me){for(var Fe=Xt[Me],He=0,We=Fe;He0){var Pa=(Xe/en-Re.y0)*fe;Re.y0+=Pa,Re.y1+=Pa,ee(Re)}}void 0===h&&Fe.sort(kl),Fe.length&&wt(Fe,Se)}}function wt(Xt,fe){var Se=Xt.length>>1,ge=Xt[Se];Ut(Xt,ge.y0-o,Se-1,fe),yt(Xt,ge.y1+o,Se+1,fe),Ut(Xt,r,Xt.length-1,fe),yt(Xt,n,0,fe)}function yt(Xt,fe,Se,ge){for(;Se1e-6&&(Me.y0+=Fe,Me.y1+=Fe),fe=Me.y1+o}}function Ut(Xt,fe,Se,ge){for(;Se>=0;--Se){var Me=Xt[Se],Fe=(Me.y1-fe)*ge;Fe>1e-6&&(Me.y0-=Fe,Me.y1-=Fe),fe=Me.y0-o}}function ee(Xt){var fe=Xt.sourceLinks;if(void 0===f){for(var ge=0,Me=Xt.targetLinks;ge "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},n.prototype.changeData=function(t){this.updateOption({data:t});var r=Wy(this.options,this.chart.width,this.chart.height),i=r.nodes,a=r.edges,o=Ye(this.chart,Al),s=Ye(this.chart,Fl);o.changeData(i),s.changeData(a)},n.prototype.getSchemaAdaptor=function(){return a8},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n}(Be),Wh="ancestor-node",Xy="value",Vo="path",l8=[Vo,Cy,zh,wy,"name","depth","height"],c8=St({},Be.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function $y(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Uo(e,n,t,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-n)/e.value;++s0)throw new Error("cycle");return l}return t.id=function(r){return arguments.length?(e=Tl(r),t):e},t.parentId=function(r){return arguments.length?(n=Tl(r),t):n},t}function _8(e,n){return e.parent===n.parent?1:2}function Xh(e){var n=e.children;return n?n[0]:e.t}function $h(e){var n=e.children;return n?n[n.length-1]:e.t}function b8(e,n,t){var r=t/(n.i-e.i);n.c-=r,n.s+=t,e.c+=r,n.z+=t,n.m+=t}function A8(e,n,t){return e.a.parent===n.parent?e.a:t}function Il(e,n){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function E8(){var e=_8,n=1,t=1,r=null;function i(c){var h=function F8(e){for(var t,i,a,o,s,n=new Il(e,0),r=[n];t=r.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=t.children[o]=new Il(a[o],o)),i.parent=t;return(n.parent=new Il(null,0)).children=[n],n}(c);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(o),r)c.eachBefore(l);else{var f=c,p=c,d=c;c.eachBefore(function(C){C.xp.x&&(p=C),C.depth>d.depth&&(d=C)});var y=f===p?1:e(f,p)/2,m=y-f.x,x=n/(p.x+y+m),M=t/(d.depth||1);c.eachBefore(function(C){C.x=(C.x+m)*x,C.y=C.depth*M})}return c}function a(c){var h=c.children,f=c.parent.children,p=c.i?f[c.i-1]:null;if(h){!function T8(e){for(var a,n=0,t=0,r=e.children,i=r.length;--i>=0;)(a=r[i]).z+=n,a.m+=n,n+=a.s+(t+=a.c)}(c);var d=(h[0].z+h[h.length-1].z)/2;p?(c.z=p.z+e(c._,p._),c.m=c.z-d):c.z=d}else p&&(c.z=p.z+e(c._,p._));c.parent.A=function s(c,h,f){if(h){for(var b,p=c,d=c,y=h,m=p.parent.children[0],x=p.m,M=d.m,C=y.m,S=m.m;y=$h(y),p=Xh(p),y&&p;)m=Xh(m),(d=$h(d)).a=c,(b=y.z+C-p.z-x+e(y._,p._))>0&&(b8(A8(y,c,f),c,b),x+=b,M+=b),C+=y.m,x+=p.m,S+=m.m,M+=d.m;y&&!$h(d)&&(d.t=y,d.m+=C-M),p&&!Xh(m)&&(m.t=p,m.m+=x-S,f=c)}return f}(c,p,c.parent.A||f[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c){c.x*=n,c.y=c.depth*t}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,n=+c[0],t=+c[1],i):r?null:[n,t]},i.nodeSize=function(c){return arguments.length?(r=!0,n=+c[0],t=+c[1],i):r?[n,t]:null},i}function Dl(e,n,t,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-t)/e.value;++sC&&(C=c),W=x*x*E,(S=Math.max(C/W,W/M))>b){x-=c;break}b=S}o.push(l={value:x,dice:d1?r:1)},t}(qy);function tm(){var e=Ky,n=!1,t=1,r=1,i=[0],a=Xi,o=Xi,s=Xi,l=Xi,c=Xi;function h(p){return p.x0=p.y0=0,p.x1=t,p.y1=r,p.eachBefore(f),i=[0],n&&p.eachBefore($y),p}function f(p){var d=i[p.depth],y=p.x0+d,m=p.y0+d,x=p.x1-d,M=p.y1-d;x=p-1){var C=a[f];return C.x0=y,C.y0=m,C.x1=x,void(C.y1=M)}for(var S=c[f],b=d/2+S,E=f+1,W=p-1;E>>1;c[tt]M-m){var yt=d?(y*wt+x*it)/d:x;h(f,E,it,y,m,yt,M),h(E,p,wt,yt,m,x,M)}else{var Ut=d?(m*wt+M*it)/d:M;h(f,E,it,y,m,x,Ut),h(E,p,wt,y,Ut,x,M)}}(0,s,e.value,n,t,r,i)}function I8(e,n,t,r,i){(1&e.depth?Dl:Uo)(e,n,t,r,i)}const D8=function e(n){function t(r,i,a,o,s){if((l=r._squarify)&&l.ratio===n)for(var l,c,h,f,d,p=-1,y=l.length,m=r.value;++p1?r:1)},t}(qy);var L8={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,n){return n.value-e.value},ratio:.5*(1+Math.sqrt(5))};function em(e,n){var r,t=(n=(0,v.f0)({},L8,n)).as;if(!(0,v.kJ)(t)||2!==t.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=Rh(n)}catch(c){console.warn(c)}var c,i=function O8(e,n){return"treemapSquarify"===e?xt[e].ratio(n):xt[e]}(n.tile,n.ratio),o=(c=e,tm().tile(i).size(n.size).round(n.round).padding(n.padding).paddingInner(n.paddingInner).paddingOuter(n.paddingOuter).paddingTop(n.paddingTop).paddingRight(n.paddingRight).paddingBottom(n.paddingBottom).paddingLeft(n.paddingLeft)(Ia(c).sum(function(h){return n.ignoreParentValue&&h.children?0:h[r]}).sort(n.sort))),s=t[0],l=t[1];return o.each(function(c){c[s]=[c.x0,c.x1,c.x1,c.x0],c[l]=[c.y1,c.y1,c.y0,c.y0],["x0","x1","y0","y1"].forEach(function(h){-1===t.indexOf(h)&&delete c[h]})}),Nh(o)}function nm(e){var t=e.colorField,r=e.rawFields,i=e.hierarchyConfig,a=void 0===i?{}:i,o=a.activeDepth,l=e.seriesField,c=e.type||"partition",h={partition:h8,treemap:em}[c](e.data,(0,g.pi)((0,g.pi)({field:l||"value"},(0,v.CE)(a,["activeDepth"])),{type:"hierarchy.".concat(c),as:["x","y"]})),f=[];return h.forEach(function(p){var d,y,m,x,M,C;if(0===p.depth||o>0&&p.depth>o)return null;for(var S=p.data.name,b=(0,g.pi)({},p);b.depth>1;)S="".concat(null===(y=b.parent.data)||void 0===y?void 0:y.name," / ").concat(S),b=b.parent;var E=(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(p.data,(0,g.ev)((0,g.ev)([],r||[],!0),[a.field],!1))),((d={})[Vo]=S,d[Wh]=b.data.name,d)),p);l&&(E[l]=p.data[l]||(null===(x=null===(m=p.parent)||void 0===m?void 0:m.data)||void 0===x?void 0:x[l])),t&&(E[t]=p.data[t]||(null===(C=null===(M=p.parent)||void 0===M?void 0:M.data)||void 0===C?void 0:C[t])),E.ext=a,E[Bo]={hierarchyConfig:a,colorField:t,rawFields:r},f.push(E)}),f}function P8(e){var f,n=e.chart,t=e.options,r=t.color,i=t.colorField,a=void 0===i?Wh:i,o=t.sunburstStyle,s=t.rawFields,l=void 0===s?[]:s,c=t.shape,h=nm(t);return n.data(h),o&&(f=function(p){return St({},{fillOpacity:Math.pow(.85,p.depth)},(0,v.mf)(o)?o(p):o)}),dl(St({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,v.jj)((0,g.ev)((0,g.ev)([],l8,!0),l,!0)),polygon:{color:r,style:f,shape:c}}})),e}function z8(e){return e.chart.axis(!1),e}function B8(e){var r=e.options.label,i=Fn(e.chart,"polygon");if(r){var a=r.fields,o=void 0===a?["name"]:a,s=r.callback,l=(0,g._T)(r,["fields","callback"]);i.label({fields:o,callback:s,cfg:wn(l)})}else i.label(!1);return e}function R8(e){var t=e.options,a=t.reflect,o=e.chart.coordinate({type:"polar",cfg:{innerRadius:t.innerRadius,radius:t.radius}});return a&&o.reflect(a),e}function N8(e){var n,t=e.options;return ke(fn({},((n={})[Xy]=(0,v.U2)(t.meta,(0,v.U2)(t.hierarchyConfig,["field"],"value")),n)))(e)}function V8(e){var n=e.chart,r=e.options.tooltip;if(!1===r)n.tooltip(!1);else{var i=r;(0,v.U2)(r,"fields")||(i=St({},{customItems:function(a){return a.map(function(o){var s=(0,v.U2)(n.getOptions(),"scales"),l=(0,v.U2)(s,[Vo,"formatter"],function(h){return h}),c=(0,v.U2)(s,[Xy,"formatter"],function(h){return h});return(0,g.pi)((0,g.pi)({},o),{name:l(o.data[Vo]),value:c(o.data.value)})})}},i)),n.tooltip(i)}return e}function U8(e){var n=e.drilldown,t=e.interactions,r=void 0===t?[]:t;return n?.enabled?St({},e,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:n,transformData:nm}}],!1)}):e}function Y8(e){var n=e.chart,t=e.options,r=t.drilldown;return ln({chart:n,options:U8(t)}),r?.enabled&&(n.appendPadding=ll(n.appendPadding,(0,v.U2)(r,["breadCrumb","position"]))),e}function H8(e){return ke($e,jn("sunburstStyle"),P8,z8,N8,Vi,R8,V8,B8,Y8,tn,cn())(e)}function rm(e,n){if((0,v.kJ)(e))return e.find(function(t){return t.type===n})}function im(e,n){var t=rm(e,n);return t&&!1!==t.enable}function Jh(e){var n=e.interactions;return(0,v.U2)(e.drilldown,"enabled")||im(n,"treemap-drill-down")}function Qh(e){var n=e.data,t=e.colorField,r=e.enableDrillDown,i=e.hierarchyConfig,a=em(n,(0,g.pi)((0,g.pi)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(0===s.depth||r&&1!==s.depth||!r&&s.children)return null;var l=s.ancestors().map(function(p){return{data:p.data,height:p.height,value:p.value}}),c=r&&(0,v.kJ)(n.path)?l.concat(n.path.slice(1)):l,h=Object.assign({},s.data,(0,g.pi)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:c},s));if(!s.data[t]&&s.parent){var f=s.ancestors().find(function(p){return p.data[t]});h[t]=f?.data[t]}else h[t]=s.data[t];h[Bo]={hierarchyConfig:i,colorField:t,enableDrillDown:r},o.push(h)}),o}function Z8(e){return St({options:{rawFields:["value"],tooltip:{fields:["name","value",e.options.colorField,"path"],formatter:function(r){return{name:r.name,value:r.value}}}}},e)}function W8(e){var n=e.chart,t=e.options,r=t.color,i=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=Qh({data:t.data,colorField:t.colorField,enableDrillDown:Jh(t),hierarchyConfig:o});return n.data(l),dl(St({},e,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:r,style:a}}})),n.coordinate().reflect("y"),e}function X8(e){return e.chart.axis(!1),e}function $8(e){var n=e.drilldown,t=e.interactions,r=void 0===t?[]:t;return Jh(e)?St({},e,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:n,transformData:Qh}}],!1)}):e}function J8(e){var n=e.chart,t=e.options,r=t.interactions,i=t.drilldown;ln({chart:n,options:$8(t)});var a=rm(r,"view-zoom");return a&&(!1!==a.enable?n.getCanvas().on("mousewheel",function(s){s.preventDefault()}):n.getCanvas().off("mousewheel")),Jh(t)&&(n.appendPadding=ll(n.appendPadding,(0,v.U2)(i,["breadCrumb","position"]))),e}function Q8(e){return ke(Z8,$e,jn("rectStyle"),W8,X8,Vi,Mn,J8,tn,cn())(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return c8},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return H8},n.SUNBURST_ANCESTOR_FIELD=Wh,n.SUNBURST_PATH_FIELD=Vo,n.NODE_ANCESTORS_FIELD=zh}(Be);var q8={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},Qr=(function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return q8},n.prototype.changeData=function(t){var r=this.options,i=r.colorField,a=r.interactions,o=r.hierarchyConfig;this.updateOption({data:t});var s=Qh({data:t,colorField:i,enableDrillDown:im(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),function G8(e){var n=e.interactions["drill-down"];n&&n.context.actions.find(function(r){return"drill-down-action"===r.name}).reset()}(this.chart)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Q8}}(Be),"id"),qh="path",j8={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ll(e){e&&e.geometries[0].elements.forEach(function(t){t.shape.toFront()})}var t7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(Is("element-active")),n7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(Is("element-highlight")),r7=Is("element-selected"),i7=Is("element-single-selected"),a7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(r7),o7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(i7);be("venn-element-active",t7),be("venn-element-highlight",n7),be("venn-element-selected",a7),be("venn-element-single-selected",o7),Oe("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Oe("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Oe("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Oe("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Oe("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Oe("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var s7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getLabelPoint=function(t,r,i){var a=t.data,l=t.customLabelInfo;return{content:t.content[i],x:a.x+l.offsetX,y:a.y+l.offsetY}},n}(Ns);po("venn",s7);const c7=Array.isArray;var Yo="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",u7=new RegExp("([a-z])["+Yo+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Yo+"]*,?["+Yo+"]*)+)","ig"),h7=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Yo+"]*,?["+Yo+"]*","ig");Math,Qe("schema","venn",{draw:function(e,n){var r=function f7(e){if(!e)return null;if(c7(e))return e;var n={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(u7,function(r,i,a){var o=[],s=i.toLowerCase();if(a.replace(h7,function(l,c){c&&o.push(+c)}),"m"===s&&o.length>2&&(t.push([i].concat(o.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===o.length&&t.push([i,o[0]]),"r"===s)t.push([i].concat(o));else for(;o.length>=n[s]&&(t.push([i].concat(o.splice(0,n[s]))),n[s]););return""}),t}(e.data[qh]),i=function S7(e){return St({},e.defaultStyle,{fill:e.color},e.style)}(e),a=n.addGroup({name:"venn-shape"});a.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},i),{path:r}),name:"venn-path"});var o=e.customInfo,c=Hn.transform(null,[["t",o.offsetX,o.offsetY]]);return a.setMatrix(c),a},getMarker:function(e){var n=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:n,fill:n,r:4}}}});var hm={normal:function(e){return e},multiply:function(e,n){return e*n/255},screen:function(e,n){return 255*(1-(1-e/255)*(1-n/255))},overlay:function(e,n){return n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255))},darken:function(e,n){return e>n?n:e},lighten:function(e,n){return e>n?e:n},dodge:function(e,n){return 255===e||(e=n/255*255/(1-e/255))>255?255:e},burn:function(e,n){return 255===n?255:0===e?0:255*(1-Math.min(1,(1-n/255)/(e/255)))}};function Ol(e){var t,n=e.replace("/s+/g","");return"string"!=typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(t=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(t=ei.rgb2arr(n).concat([1])),t.map(function(r,i){return 3===i?Number(r):0|r})):t=ei.rgb2arr(ei.toRGB(n)).concat([1])}var Er=V(9521),fm=1e-10;function tf(e,n){var o,t=function F7(e){for(var n=[],t=0;tn[t].radius+fm)return!1;return!0}(tt,e)}),i=0,a=0,s=[];if(r.length>1){var l=dm(r);for(o=0;o-1){var m=e[f.parentIndex[y]],x=Math.atan2(f.x-m.x,f.y-m.y),M=Math.atan2(h.x-m.x,h.y-m.y),C=M-x;C<0&&(C+=2*Math.PI);var S=M-C/2,b=vr(p,{x:m.x+m.radius*Math.sin(S),y:m.y+m.radius*Math.cos(S)});b>2*m.radius&&(b=2*m.radius),(null===d||d.width>b)&&(d={circle:m,width:b,p1:f,p2:h})}null!==d&&(s.push(d),i+=ef(d.circle.radius,d.width),h=f)}}else{var E=e[0];for(o=1;oMath.abs(E.radius-e[o].radius)){W=!0;break}W?i=a=0:(i=E.radius*E.radius*Math.PI,s.push({circle:E,p1:{x:E.x,y:E.y+E.radius},p2:{x:E.x-fm,y:E.y+E.radius},width:2*E.radius}))}return a/=2,n&&(n.area=i+a,n.arcArea=i,n.polygonArea=a,n.arcs=s,n.innerPoints=r,n.intersectionPoints=t),i+a}function ef(e,n){return e*e*Math.acos(1-n/e)-(e-n)*Math.sqrt(n*(2*e-n))}function vr(e,n){return Math.sqrt((e.x-n.x)*(e.x-n.x)+(e.y-n.y)*(e.y-n.y))}function vm(e,n,t){if(t>=e+n)return 0;if(t<=Math.abs(e-n))return Math.PI*Math.min(e,n)*Math.min(e,n);var i=n-(t*t-e*e+n*n)/(2*t);return ef(e,e-(t*t-n*n+e*e)/(2*t))+ef(n,i)}function pm(e,n){var t=vr(e,n),r=e.radius,i=n.radius;if(t>=r+i||t<=Math.abs(r-i))return[];var a=(r*r-i*i+t*t)/(2*t),o=Math.sqrt(r*r-a*a),s=e.x+a*(n.x-e.x)/t,l=e.y+a*(n.y-e.y)/t,c=o/t*-(n.y-e.y),h=o/t*-(n.x-e.x);return[{x:s+c,y:l-h},{x:s-c,y:l+h}]}function dm(e){for(var n={x:0,y:0},t=0;t=o&&(a=t[r],o=s)}var l=(0,Er.nelderMead)(function(p){return-1*nf({x:p[0],y:p[1]},e,n)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:l[0],y:l[1]},h=!0;for(r=0;re[r].radius){h=!1;break}for(r=0;r=Math.min(r[h].size,r[f].size)&&(c=0),i[h].push({set:f,size:l.size,weight:c}),i[f].push({set:h,size:l.size,weight:c})}var p=[];for(a in i)if(i.hasOwnProperty(a)){var d=0;for(o=0;o=8){var i=function R7(e,n){var a,t=(n=n||{}).restarts||10,r=[],i={};for(a=0;a=Math.min(n[o].size,n[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}(e,r,i),l=s.distances,c=s.constraints,h=(0,Er.norm2)(l.map(Er.norm2))/l.length;l=l.map(function(C){return C.map(function(S){return S/h})});var p,d,f=function(C,S){return function z7(e,n,t,r){var a,i=0;for(a=0;a0&&y<=f||p<0&&y>=f||(i+=2*m*m,n[2*a]+=4*m*(o-c),n[2*a+1]+=4*m*(s-h),n[2*l]+=4*m*(c-o),n[2*l+1]+=4*m*(h-s))}return i}(C,S,l,c)};for(a=0;ac?1:-1}),r=0;r0&&console.log("WARNING: area "+a+" not represented on screen")}return t}(c,s);return s.forEach(function(f){var p=f.sets,d=p.join(",");f[Qr]=d;var m=function D7(e){var n={};tf(e,n);var t=n.arcs;if(0===t.length)return"M 0 0";if(1==t.length){var r=t[0].circle;return function I7(e,n,t){var r=[],i=e-t,a=n;return r.push("M",i,a),r.push("A",t,t,0,1,0,i+2*t,a),r.push("A",t,t,0,1,0,i,a),r.join(" ")}(r.x,r.y,r.radius)}for(var i=["\nM",t[0].p2.x,t[0].p2.y],a=0;as?1:0,1,o.p1.x,o.p1.y)}return i.join(" ")}(p.map(function(M){return c[M]}));/[zZ]$/.test(m)||(m+=" Z"),f[qh]=m,(0,v.f0)(f,h[d]||{x:0,y:0})}),s}var W7=40;function mm(e,n,t){var i=e.options,a=i.blendMode,o=i.setsField,s=e.chart.getTheme(),l=s.colors10,c=s.colors20,h=t;(0,v.kJ)(h)||(h=n.filter(function(p){return 1===p[o].length}).length<=10?l:c);var f=H7(h,n,a,o);return function(p){return f.get(p)||h[0]}}function $7(e){var n=e.chart,t=e.options,r=t.legend,i=t.appendPadding,a=t.padding,o=gi(i);return!1!==r&&(o=ll(i,(0,v.U2)(r,"position"),W7)),n.appendPadding=uh([o,a]),e}function J7(e){var t=e.options.data;t||(Zr(Tr.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),t=[]);var r=t.filter(function(a){return 1===a.sets.length}).map(function(a){return a.sets[0]}),i=t.filter(function(a){return function Z7(e,n){for(var t=0;t1)throw new Error("quantiles must be between 0 and 1");return 1===n?e[e.length-1]:0===n?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function Go(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function Pl(e,n,t,r){for(t=t||0,r=r||e.length-1;r>t;){if(r-t>600){var i=r-t+1,a=n-t+1,o=Math.log(i),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(i-s)/i);a-i/2<0&&(l*=-1),Pl(e,n,Math.max(t,Math.floor(n-a*s/i+l)),Math.min(r,Math.floor(n+(i-a)*s/i+l)))}var f=e[n],p=t,d=r;for(Go(e,t,n),e[r]>f&&Go(e,t,r);pf;)d--}e[t]===f?Go(e,t,d):Go(e,++d,r),d<=n&&(t=d+1),n<=d&&(r=d-1)}}function Zo(e,n){var t=e.slice();if(Array.isArray(n)){!function cI(e,n){for(var t=[0],r=0;r0?h:f}}}})).ext.geometry.customInfo((0,g.pi)((0,g.pi)({},y),{leaderLine:s})),e}function TI(e){var n,t,r=e.options,i=r.xAxis,a=r.yAxis,o=r.xField,s=r.yField,l=r.meta,c=St({},{alias:s},(0,v.U2)(l,s));return ke(fn(((n={})[o]=i,n[s]=a,n[sr]=a,n),St({},l,((t={})[sr]=c,t[Rl]=c,t[lf]=c,t))))(e)}function AI(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,o=t.yField;return n.axis(t.xField,!1!==r&&r),!1===i?(n.axis(o,!1),n.axis(sr,!1)):(n.axis(o,i),n.axis(sr,i)),e}function FI(e){var n=e.chart,t=e.options,r=t.legend,i=t.total,a=t.risingFill,o=t.fallingFill,l=fl(t.locale);if(!1===r)n.legend(!1);else{var c=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];i&&c.push({name:i.label||"",value:"total",marker:{symbol:"square",style:St({},{r:5},(0,v.U2)(i,"style"))}}),n.legend(St({},{custom:!0,position:"top",items:c},r)),n.removeInteraction("legend-filter")}return e}function EI(e){var t=e.options,r=t.label,i=t.labelMode,a=t.xField,o=Fn(e.chart,"interval");if(r){var s=r.callback,l=(0,g._T)(r,["callback"]);o.label({fields:"absolute"===i?[lf,a]:[Rl,a],callback:s,cfg:wn(l)})}else o.label(!1);return e}function kI(e){var n=e.chart,t=e.options,r=t.tooltip,i=t.xField,a=t.yField;if(!1!==r){n.tooltip((0,g.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},r));var o=n.geometries[0];r?.formatter?o.tooltip("".concat(i,"*").concat(a),r.formatter):o.tooltip(a)}else n.tooltip(!1);return e}function II(e){return ke(_I,$e,bI,TI,AI,FI,kI,EI,yi,ln,tn,cn())(e)}Qe("interval","waterfall",{draw:function(e,n){var t=e.customInfo,r=e.points,i=e.nextPoints,a=n.addGroup(),o=this.parsePath(function CI(e){for(var n=[],t=0;t=E));)if(M.x=S+yt,M.y=b+Ut,!(M.x+M.x0<0||M.y+M.y0<0||M.x+M.x1>e[0]||M.y+M.y1>e[1])&&(!C||!HI(M,x,e[0]))&&(!C||ZI(M,C))){for(var ee=M.sprite,me=M.width>>5,_e=e[0]>>5,ze=M.x-(me<<4),Xt=127&ze,fe=32-Xt,Se=M.y1-M.y0,ge=void 0,Me=(M.y+M.y0)*_e+(ze>>5),Fe=0;Fe>>Xt:0);Me+=_e}return delete M.sprite,!0}return!1}return d.start=function(){var x=e[0],M=e[1],C=function y(x){x.width=x.height=1;var M=Math.sqrt(x.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);x.width=(Wo<<5)/M,x.height=Nl/M;var C=x.getContext("2d",{willReadFrequently:!0});return C.fillStyle=C.strokeStyle="red",C.textAlign="center",{context:C,ratio:M}}(p()),S=d.board?d.board:Im((e[0]>>5)*e[1]),b=l.length,E=[],W=l.map(function(yt,Ut,ee){return yt.text=h.call(this,yt,Ut,ee),yt.font=n.call(this,yt,Ut,ee),yt.style=f.call(this,yt,Ut,ee),yt.weight=r.call(this,yt,Ut,ee),yt.rotate=i.call(this,yt,Ut,ee),yt.size=~~t.call(this,yt,Ut,ee),yt.padding=a.call(this,yt,Ut,ee),yt}).sort(function(yt,Ut){return Ut.size-yt.size}),tt=-1,it=d.board?[{x:0,y:0},{x,y:M}]:null;return function wt(){for(var yt=Date.now();Date.now()-yt>1,Ut.y=M*(s()+.5)>>1,YI(C,Ut,W,tt),Ut.hasText&&m(S,Ut,it)&&(E.push(Ut),it?d.hasImage||GI(it,Ut):it=[{x:Ut.x+Ut.x0,y:Ut.y+Ut.y0},{x:Ut.x+Ut.x1,y:Ut.y+Ut.y1}],Ut.x-=e[0]>>1,Ut.y-=e[1]>>1)}d._tags=E,d._bounds=it}(),d},d.createMask=function(x){var M=document.createElement("canvas"),C=e[0],S=e[1];if(C&&S){var b=C>>5,E=Im((C>>5)*S);M.width=C,M.height=S;var W=M.getContext("2d");W.drawImage(x,0,0,x.width,x.height,0,0,C,S);for(var tt=W.getImageData(0,0,C,S).data,it=0;it>5)]|=tt[Ut]>=250&&tt[Ut+1]>=250&&tt[Ut+2]>=250?1<<31-wt%32:0}d.board=E,d.hasImage=!0}},d.timeInterval=function(x){c=x??1/0},d.words=function(x){l=x},d.size=function(x){e=[+x[0],+x[1]]},d.font=function(x){n=kr(x)},d.fontWeight=function(x){r=kr(x)},d.rotate=function(x){i=kr(x)},d.spiral=function(x){o=$I[x]||x},d.fontSize=function(x){t=kr(x)},d.padding=function(x){a=kr(x)},d.random=function(x){s=kr(x)},d}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,v.UM)(n[l])||t[l](n[l])}),t.words(e),n.imageMask&&t.createMask(n.imageMask);var i=t.start()._tags;i.forEach(function(l){l.x+=n.size[0]/2,l.y+=n.size[1]/2});var a=n.size,o=a[0],s=a[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:o,y:s,opacity:0}),i}(e,n=(0,v.f0)({},OI,n))}var hf=Math.PI/180,Wo=64,Nl=2048;function BI(e){return e.text}function RI(){return"serif"}function Em(){return"normal"}function NI(e){return e.value}function VI(){return 90*~~(2*Math.random())}function UI(){return 1}function YI(e,n,t,r){if(!n.sprite){var i=e.context,a=e.ratio;i.clearRect(0,0,(Wo<<5)/a,Nl/a);var o=0,s=0,l=0,c=t.length;for(--r;++r>5<<5,f=~~Math.max(Math.abs(m+x),Math.abs(m-x))}else h=h+31>>5<<5;if(f>l&&(l=f),o+h>=Wo<<5&&(o=0,s+=l,l=0),s+f>=Nl)break;i.translate((o+(h>>1))/a,(s+(f>>1))/a),n.rotate&&i.rotate(n.rotate*hf),i.fillText(n.text,0,0),n.padding&&(i.lineWidth=2*n.padding,i.strokeText(n.text,0,0)),i.restore(),n.width=h,n.height=f,n.xoff=o,n.yoff=s,n.x1=h>>1,n.y1=f>>1,n.x0=-n.x1,n.y0=-n.y1,n.hasText=!0,o+=h}for(var C=i.getImageData(0,0,(Wo<<5)/a,Nl/a).data,S=[];--r>=0;)if((n=t[r]).hasText){for(var b=(h=n.width)>>5,E=(f=n.y1-n.y0,0);E>5)]|=yt,W|=yt}W?tt=it:(n.y0++,f--,it--,s++)}n.y1=n.y0+tt,n.sprite=S.slice(0,(n.y1-n.y0)*b)}}}function HI(e,n,t){for(var h,r=e.sprite,i=e.width>>5,a=e.x-(i<<4),o=127&a,s=32-o,l=e.y1-e.y0,c=(e.y+e.y0)*(t>>=5)+(a>>5),f=0;f>>o:0))&n[c+p])return!0;c+=t}return!1}function GI(e,n){var t=e[0],r=e[1];n.x+n.x0r.x&&(r.x=n.x+n.x1),n.y+n.y1>r.y&&(r.y=n.y+n.y1)}function ZI(e,n){return e.x+e.x1>n[0].x&&e.x+e.x0n[0].y&&e.y+e.y0{class e{get marginValue(){return-this.gutter/2}constructor(t){t.attach(this,"sg",{gutter:32,col:2})}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(fD.Ri))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["sg-container"],["","sg-container",""]],hostVars:8,hostBindings:function(r,i){2&r&&(u.Udp("margin-left",i.marginValue,"px")("margin-right",i.marginValue,"px"),u.ekj("ant-row",!0)("sg__wrap",!0))},inputs:{gutter:"gutter",colInCon:["sg-container","colInCon"],col:"col"},exportAs:["sgContainer"],ngContentSelectors:Lm,decls:1,vars:0,template:function(r,i){1&r&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0})}return(0,g.gn)([(0,Vl.Rn)()],e.prototype,"gutter",void 0),(0,g.gn)([(0,Vl.Rn)(null)],e.prototype,"colInCon",void 0),(0,g.gn)([(0,Vl.Rn)(null)],e.prototype,"col",void 0),e})(),Om=(()=>{class e{get paddingValue(){return this.parent.gutter/2}constructor(t,r,i,a){if(this.ren=r,this.parent=i,this.rep=a,this.clsMap=[],this.inited=!1,this.col=null,null==i)throw new Error("[sg] must include 'sg-container' component");this.el=t.nativeElement}setClass(){const{el:t,ren:r,clsMap:i,col:a,parent:o}=this;i.forEach(l=>r.removeClass(t,l)),i.length=0;const s=o.colInCon||o.col;return i.push(...this.rep.genCls(a??s,s),"sg__item"),i.forEach(l=>r.addClass(t,l)),this}ngOnChanges(){this.inited&&this.setClass()}ngAfterViewInit(){this.setClass(),this.inited=!0}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(ff,9),u.Y36(jt.kz))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["sg"]],hostVars:4,hostBindings:function(r,i){2&r&&u.Udp("padding-left",i.paddingValue,"px")("padding-right",i.paddingValue,"px")},inputs:{col:"col"},exportAs:["sg"],features:[u.TTD],ngContentSelectors:Lm,decls:1,vars:0,template:function(r,i){1&r&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0})}return(0,g.gn)([(0,Vl.Rn)(null)],e.prototype,"col",void 0),e})(),pD=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[K.ez]})}return e})();var dD=V(2831);let gD=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[K.ez]})}return e})();const yD=function(e){return{$implicit:e}};function mD(e,n){if(1&e&&u.GkF(0,3),2&e){const t=u.oxw();u.Q6J("ngTemplateOutlet",t.nzValueTemplate)("ngTemplateOutletContext",u.VKq(2,yD,t.nzValue))}}function xD(e,n){if(1&e&&(u.TgZ(0,"span",6),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.displayInt)}}function MD(e,n){if(1&e&&(u.TgZ(0,"span",7),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.displayDecimal)}}function CD(e,n){if(1&e&&(u.ynx(0),u.YNc(1,xD,2,1,"span",4),u.YNc(2,MD,2,1,"span",5),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngIf",t.displayInt),u.xp6(1),u.Q6J("ngIf",t.displayDecimal)}}function wD(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Oqu(t.nzTitle)}}function SD(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.nzPrefix)}}function _D(e,n){if(1&e&&(u.TgZ(0,"span",6),u.YNc(1,SD,2,1,"ng-container",1),u.qZA()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzPrefix)}}function bD(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.nzSuffix)}}function TD(e,n){if(1&e&&(u.TgZ(0,"span",7),u.YNc(1,bD,2,1,"ng-container",1),u.qZA()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzSuffix)}}let AD=(()=>{class e{constructor(t){this.locale_id=t,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const t="number"==typeof this.nzValue?".":(0,K.dv)(this.locale_id,K.wE.Decimal),r=String(this.nzValue),[i,a]=r.split(t);this.displayInt=i,this.displayDecimal=a?`${t}${a}`:""}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.soG))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[u.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(r,i){1&r&&(u.TgZ(0,"span",0),u.YNc(1,mD,1,4,"ng-container",1),u.YNc(2,CD,3,2,"ng-container",2),u.qZA()),2&r&&(u.xp6(1),u.Q6J("ngIf",i.nzValueTemplate),u.xp6(1),u.Q6J("ngIf",!i.nzValueTemplate))},dependencies:[K.O5,K.tP],encapsulation:2,changeDetection:0})}return e})(),FD=(()=>{class e{constructor(t,r){this.cdr=t,this.directionality=r,this.nzValueStyle={},this.dir="ltr",this.destroy$=new $t.x}ngOnInit(){this.directionality.change?.pipe((0,Dt.R)(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.sBO),u.Y36(Q.Is,8))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-statistic"]],hostAttrs:[1,"ant-statistic"],hostVars:2,hostBindings:function(r,i){2&r&&u.ekj("ant-statistic-rtl","rtl"===i.dir)},inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:6,vars:6,consts:[[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(r,i){1&r&&(u.TgZ(0,"div",0),u.YNc(1,wD,2,1,"ng-container",1),u.qZA(),u.TgZ(2,"div",2),u.YNc(3,_D,2,1,"span",3),u._UZ(4,"nz-statistic-number",4),u.YNc(5,TD,2,1,"span",5),u.qZA()),2&r&&(u.xp6(1),u.Q6J("nzStringTemplateOutlet",i.nzTitle),u.xp6(1),u.Q6J("ngStyle",i.nzValueStyle),u.xp6(1),u.Q6J("ngIf",i.nzPrefix),u.xp6(1),u.Q6J("nzValue",i.nzValue)("nzValueTemplate",i.nzValueTemplate),u.xp6(1),u.Q6J("ngIf",i.nzSuffix))},dependencies:[K.O5,K.PC,gt.f,AD],encapsulation:2,changeDetection:0})}return e})(),ED=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[Q.vT,K.ez,dD.ud,gt.T,gD]})}return e})();var vf=V(9663);const kD=["s2t"];function ID(e,n){1&e&&(u.TgZ(0,"div",2),u._UZ(1,"nz-empty",3),u.qZA()),2&e&&(u.xp6(1),u.Q6J("nzNotFoundContent",null))}function DD(e,n){if(1&e&&(u.TgZ(0,"th"),u._uU(1),u.qZA()),2&e){const t=n.$implicit;u.xp6(1),u.Oqu(t.key)}}function LD(e,n){if(1&e&&(u.TgZ(0,"td"),u._uU(1),u.qZA()),2&e){const t=n.$implicit;u.xp6(1),u.Oqu(t.value)}}function OD(e,n){if(1&e&&(u.TgZ(0,"tr"),u.YNc(1,LD,2,1,"td",4),u.ALo(2,"keyvalue"),u.qZA()),2&e){const t=n.$implicit;u.xp6(1),u.Q6J("ngForOf",u.lcZ(2,1,t))}}function PD(e,n){if(1&e&&(u.TgZ(0,"table")(1,"tr"),u.YNc(2,DD,2,1,"th",4),u.ALo(3,"keyvalue"),u.qZA(),u.YNc(4,OD,3,3,"tr",4),u.qZA()),2&e){const t=u.oxw();u.xp6(2),u.Q6J("ngForOf",u.lcZ(3,2,t.data[0])),u.xp6(2),u.Q6J("ngForOf",t.data)}}let zD=(()=>{class e{constructor(){}ngOnInit(){}ngAfterViewInit(){}render(t){this.data=t}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-chart-table"]],viewQuery:function(r,i){if(1&r&&u.Gf(kD,5),2&r){let a;u.iGM(a=u.CRH())&&(i.chartTable=a.first)}},decls:2,vars:2,consts:[["class","flex-center-center",4,"ngIf"],[4,"ngIf"],[1,"flex-center-center"],["nzNotFoundImage","simple",3,"nzNotFoundContent"],[4,"ngFor","ngForOf"]],template:function(r,i){1&r&&(u.YNc(0,ID,2,1,"div",0),u.YNc(1,PD,5,4,"table",1)),2&r&&(u.Q6J("ngIf",!i.data||0==i.data.length),u.xp6(1),u.Q6J("ngIf",i.data&&i.data.length>0))},dependencies:[K.sg,K.O5,vf.Uo,vf._C,vf.$Z,In.p9,K.Nd],styles:["[_nghost-%COMP%] table{width:100%}[_nghost-%COMP%] table tr{transition:all .3s,height 0s}[_nghost-%COMP%] table tr td, [_nghost-%COMP%] table tr th{padding:8px;color:#000000a6;font-size:14px;line-height:1;border:1px solid #e8e8e8}[data-theme=dark] [_nghost-%COMP%] table tr td, [data-theme=dark] [_nghost-%COMP%] table tr th{color:#dcdcdc!important;color:#000000a6;font-size:14px;line-height:1;border:1px solid #333}"]})}return e})();const BD=["chartTable"],pf=function(e){return{height:e}};function RD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",5),u._UZ(2,"i",6),u.qZA(),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("id",t.chart.code)("ngStyle",u.VKq(2,pf,t.chart.height+"px"))}}const ND=function(e){return{height:e,paddingTop:"1px"}};function VD(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"erupt-iframe",10),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Akn(u.VKq(3,ND,t.chart.height+"px")),u.Q6J("url",t.src)}}function UD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",11),u._UZ(2,"erupt-chart-table",12,13),u.qZA(),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngStyle",u.VKq(2,pf,t.chart.height+"px")),u.xp6(1),u.Q6J("id",t.chart.code)}}function YD(e,n){1&e&&(u.ynx(0),u._UZ(1,"nz-empty",14),u.BQk()),2&e&&(u.xp6(1),u.Q6J("nzNotFoundContent",null))}function HD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"sg"),u._UZ(2,"nz-statistic",18),u.qZA(),u.BQk()),2&e){const t=n.$implicit,r=u.oxw(4);u.xp6(2),u.Q6J("nzValue",t[r.dataKeys[0]]||0)("nzTitle",t[r.dataKeys[1]])("nzValueStyle",r.chart.chartOption)}}function GD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",15)(2,"div",16),u.YNc(3,HD,3,3,"ng-container",17),u.qZA()(),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("id",t.chart.code),u.xp6(1),u.s9C("sg-container",t.data.length),u.xp6(1),u.Q6J("ngForOf",t.data)}}function ZD(e,n){if(1&e&&(u.ynx(0),u.YNc(1,YD,2,1,"ng-container",3),u.YNc(2,GD,4,3,"ng-container",3),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",!t.data||0==t.data.length),u.xp6(1),u.Q6J("ngIf",t.data&&t.data.length)}}function WD(e,n){1&e&&(u.ynx(0),u._UZ(1,"nz-empty",14),u.BQk()),2&e&&(u.xp6(1),u.Q6J("nzNotFoundContent",null))}function XD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",19),u.YNc(2,WD,2,1,"ng-container",3),u.qZA(),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("id",t.chart.code)("ngStyle",u.VKq(3,pf,t.chart.height+"px")),u.xp6(1),u.Q6J("ngIf",!t.data||0==t.data.length)}}function $D(e,n){if(1&e&&(u.ynx(0)(1,7),u.YNc(2,VD,2,5,"ng-container",8),u.YNc(3,UD,4,4,"ng-container",8),u.YNc(4,ZD,3,2,"ng-container",8),u.YNc(5,XD,3,5,"ng-container",9),u.BQk()()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngSwitch",t.chart.type),u.xp6(1),u.Q6J("ngSwitchCase",t.chartType.tpl),u.xp6(1),u.Q6J("ngSwitchCase",t.chartType.table),u.xp6(1),u.Q6J("ngSwitchCase",t.chartType.Number)}}function JD(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"span",24),u._uU(2," \xa0"),u._UZ(3,"nz-divider",21),u._uU(4,"\xa0 "),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("nzTooltipTitle",t.chart.remark)}}function QD(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"i",25),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.downloadChartImage())}),u.qZA(),u._uU(2," \xa0"),u._UZ(3,"nz-divider",21),u._uU(4,"\xa0 "),u.BQk()}}function qD(e,n){1&e&&u._UZ(0,"i",28),2&e&&u.Q6J("nzType","loading")}function jD(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"i",29),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3);return u.KtG(i.downloadChartData())}),u.qZA()}}function KD(e,n){if(1&e&&(u.ynx(0),u.YNc(1,qD,1,1,"i",26),u.YNc(2,jD,1,0,"i",27),u._uU(3," \xa0"),u._UZ(4,"nz-divider",21),u._uU(5,"\xa0 "),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",t.downloading),u.xp6(1),u.Q6J("ngIf",!t.downloading)}}function tL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"span",30),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.open=!1)}),u.qZA()}}function eL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"span",31),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.open=!0)}),u.qZA()}}function nL(e,n){if(1&e){const t=u.EpF();u.YNc(0,JD,5,1,"ng-container",3),u.YNc(1,QD,5,0,"ng-container",3),u.YNc(2,KD,6,2,"ng-container",3),u.TgZ(3,"i",20),u.NdJ("click",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.update(!0))}),u.qZA(),u._uU(4," \xa0"),u._UZ(5,"nz-divider",21),u._uU(6,"\xa0 "),u.YNc(7,tL,1,0,"span",22),u.YNc(8,eL,1,0,"span",23)}if(2&e){const t=u.oxw();u.Q6J("ngIf",t.chart.remark),u.xp6(1),u.Q6J("ngIf",t.plot),u.xp6(1),u.Q6J("ngIf",t.bi.export&&t.data&&t.data.length>0),u.xp6(5),u.Q6J("ngIf",t.open),u.xp6(1),u.Q6J("ngIf",!t.open)}}const rL=function(){return{padding:"0"}};let iL=(()=>{class e{constructor(t,r,i,a){this.ref=t,this.biDataService=r,this.handlerService=i,this.msg=a,this.buildDimParam=new u.vpe,this.downloading=!1,this.open=!0,this.plot=null,this.chartType=$,this.ready=!0,this.data=[],this.dataKeys=[]}ngOnInit(){this.chart.chartOption&&(this.chart.chartOption=JSON.parse(this.chart.chartOption)),this.init()}init(){let t=this.handlerService.buildDimParam(this.bi,!1);if(t){for(let r of this.bi.dimensions)if(r.notNull&&(!t||null===t[r.code]))return void(this.ready=!1);this.ready=!0,this.chart.type==$.tpl?this.src=this.biDataService.getChartTpl(this.chart.id,this.bi.code,t):(this.chart.loading=!0,this.biDataService.getBiChart(this.bi.code,this.chart.id,t).subscribe(r=>{this.chart.loading=!1,this.data=r,this.chart.type==$.Number?r[0]&&(this.dataKeys=Object.keys(r[0])):this.chart.type==$.table?this.chartTable.render(r):this.render(r)}))}}ngOnDestroy(){this.plot&&this.plot.destroy()}update(t){let r=this.handlerService.buildDimParam(this.bi,!0);r&&(this.plot?(t&&(this.chart.loading=!0),this.biDataService.getBiChart(this.bi.code,this.chart.id,r).subscribe(i=>{this.chart.loading&&(this.chart.loading=!1),this.plot.changeData(i)})):this.init())}downloadChartImage(){this.plot||this.init();let r=this.ref.nativeElement.querySelector("#"+this.chart.code).querySelector("canvas").toDataURL("image/png"),i=document.createElement("a");if("download"in i){i.style.visibility="hidden",i.href=r,i.download=this.chart.name,document.body.appendChild(i);let a=document.createEvent("MouseEvents");a.initEvent("click",!0,!0),i.dispatchEvent(a),document.body.removeChild(i)}else window.open(r)}downloadChartData(){let t=this.handlerService.buildDimParam(this.bi,!0);t&&(this.downloading=!0,this.biDataService.exportChartExcel(this.bi.code,this.chart.id,t,()=>{this.downloading=!1}))}render(t){this.plot&&(this.plot.destroy(),this.plot=null);let r=Object.keys(t[0]),i=r[0],a=r[1],o=r[2],s=r[3],l={data:t,xField:i,yField:a,slider:{},appendPadding:16,legend:{position:"bottom"}};switch(this.chart.chartOption&&Object.assign(l,this.chart.chartOption),this.chart.type){case $.Line:this.plot=new Ah(this.chart.code,Object.assign(l,{seriesField:o}));break;case $.StepLine:this.plot=new Ah(this.chart.code,Object.assign(l,{seriesField:o,stepType:"vh"}));break;case $.Bar:this.plot=new xh(this.chart.code,Object.assign(l,{seriesField:o}));break;case $.PercentStackedBar:this.plot=new xh(this.chart.code,Object.assign(l,{stackField:o,isPercent:!0,isStack:!0}));break;case $.Waterfall:this.plot=new DI(this.chart.code,Object.assign(l,{legend:!1,label:{style:{fontSize:10},layout:[{type:"interval-adjust-position"}]}}));break;case $.Column:this.plot=new Mh(this.chart.code,Object.assign(l,{isGroup:!0,seriesField:o}));break;case $.StackedColumn:this.plot=new Mh(this.chart.code,Object.assign(l,{isStack:!0,seriesField:o,slider:{}}));break;case $.Area:this.plot=new gh(this.chart.code,Object.assign(l,{seriesField:o}));break;case $.PercentageArea:this.plot=new gh(this.chart.code,Object.assign(l,{seriesField:o,isPercent:!0}));break;case $.Pie:this.plot=new Eh(this.chart.code,Object.assign(l,{angleField:a,colorField:i}));break;case $.Ring:this.plot=new Eh(this.chart.code,Object.assign(l,{angleField:a,colorField:i,innerRadius:.6,radius:1}));break;case $.Rose:this.plot=new Lk(this.chart.code,Object.assign(l,{seriesField:o,isGroup:!!o,radius:.9,label:{offset:-15},interactions:[{type:"element-active"}]}));break;case $.Funnel:this.plot=new M0(this.chart.code,Object.assign(l,{seriesField:o,appendPadding:[12,38],shape:"pyramid"}));break;case $.Radar:this.plot=new dk(this.chart.code,Object.assign(l,{seriesField:o,point:{size:2},xAxis:{line:null,tickLine:null,grid:{line:{style:{lineDash:null}}}},yAxis:{line:null,tickLine:null,grid:{line:{type:"line",style:{lineDash:null}},alternateColor:"rgba(0, 0, 0, 0.04)"}},area:{}}));break;case $.Scatter:this.plot=new Ih(this.chart.code,Object.assign(l,{colorField:o,shape:"circle",brush:{enabled:!0},yAxis:{nice:!0,line:{style:{stroke:"#aaa"}}},xAxis:{line:{style:{stroke:"#aaa"}}}}));break;case $.Bubble:this.plot=new Ih(this.chart.code,Object.assign(l,{colorField:o,sizeField:s,size:[3,36],shape:"circle",brush:{enabled:!0}}));break;case $.WordCloud:this.plot=new uD(this.chart.code,Object.assign(l,{wordField:i,weightField:a,colorField:o,interactions:[{type:"element-active"}],wordStyle:{}}));break;case $.Sankey:this.plot=new s8(this.chart.code,Object.assign(l,{sourceField:i,weightField:a,targetField:o,nodeDraggable:!0,nodeWidthRatio:.008,nodePaddingRatio:.03}));break;case $.Chord:this.plot=new TF(this.chart.code,Object.assign(l,{sourceField:i,weightField:a,targetField:o}));break;case $.RadialBar:this.plot=new _k(this.chart.code,Object.assign(l,{colorField:o,isStack:!0,maxAngle:270}))}this.plot&&this.plot.render()}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.SBq),u.Y36(et),u.Y36(ft),u.Y36(Z.dD))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-chart"]],viewQuery:function(r,i){if(1&r&&u.Gf(BD,5),2&r){let a;u.iGM(a=u.CRH())&&(i.chartTable=a.first)}},inputs:{chart:"chart",bi:"bi"},outputs:{buildDimParam:"buildDimParam"},decls:7,vars:9,consts:[[3,"nzSpinning"],["nzSize","small",2,"margin-bottom","12px",3,"nzTitle","nzBodyStyle","nzHoverable","nzExtra"],[3,"ngClass"],[4,"ngIf"],["extraTemplate",""],[2,"width","100%","display","flex","flex-direction","column","align-items","center","justify-content","center",3,"id","ngStyle"],["nz-icon","","nzType","pie-chart","nzTheme","twotone",2,"font-size","36px"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"url"],[2,"overflow","auto",3,"ngStyle"],[3,"id"],["chartTable",""],["nzNotFoundImage","simple",1,"flex-center-center",3,"nzNotFoundContent"],[2,"padding","12px","text-align","center",3,"id"],[3,"sg-container"],[4,"ngFor","ngForOf"],[2,"margin-bottom","16px",3,"nzValue","nzTitle","nzValueStyle"],[2,"width","100%",3,"id","ngStyle"],["nz-icon","","nzType","reload",3,"click"],["nzType","vertical"],["nz-icon","","nzType","down","nzTheme","outline",3,"click",4,"ngIf"],["nz-icon","","nzType","left","nzTheme","outline",3,"click",4,"ngIf"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzType","file-image","nzTheme","outline",3,"click"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","","nzType","download","nzTheme","outline",3,"click",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","download","nzTheme","outline",3,"click"],["nz-icon","","nzType","down","nzTheme","outline",3,"click"],["nz-icon","","nzType","left","nzTheme","outline",3,"click"]],template:function(r,i){if(1&r&&(u.TgZ(0,"nz-spin",0)(1,"nz-card",1)(2,"div",2),u.YNc(3,RD,3,4,"ng-container",3),u.YNc(4,$D,6,4,"ng-container",3),u.qZA()(),u.YNc(5,nL,9,5,"ng-template",null,4,u.W1O),u.qZA()),2&r){const a=u.MAs(6);u.Q6J("nzSpinning",i.chart.loading),u.xp6(1),u.Q6J("nzTitle",i.chart.name)("nzBodyStyle",u.DdM(8,rL))("nzHoverable",!0)("nzExtra",a),u.xp6(1),u.Q6J("ngClass",i.open?"card-show":"card-hide"),u.xp6(1),u.Q6J("ngIf",!i.ready),u.xp6(1),u.Q6J("ngIf",i.ready)}},dependencies:[K.mk,K.sg,K.O5,K.PC,K.RF,K.n9,K.ED,st.w,Qi.SY,F.Ls,vt.W,R.bd,O.g,hD.M,In.p9,ff,Om,FD,zD],styles:["@media (min-width: 1600px){[_nghost-%COMP%] .ant-col-xxl-2{width:16.6666666%!important}}[_nghost-%COMP%] .card-show{height:auto;transition:.5s height}[_nghost-%COMP%] .card-hide{height:0;overflow:auto;transition:.5s height}"]})}return e})();const aL=["st"],oL=["biChart"],sL=function(){return{rows:10}};function lL(e,n){1&e&&u._UZ(0,"nz-skeleton",4),2&e&&u.Q6J("nzActive",!0)("nzTitle",!0)("nzParagraph",u.DdM(3,sL))}function cL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"button",10),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.exportBiData())}),u._UZ(2,"i",11),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("nzLoading",t.downloading)("disabled",!t.biTable.data||t.biTable.data.length<=0),u.xp6(2),u.hij("",u.lcZ(4,3,"table.download")," ")}}function uL(e,n){1&e&&u._UZ(0,"nz-divider",16)}function hL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"div",20)(1,"label",21),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw().$implicit;return u.KtG(a.show=i)})("ngModelChange",function(){u.CHM(t);const i=u.oxw(5);return u.KtG(i.st.resetColumns())}),u._uU(2),u.qZA()()}if(2&e){const t=u.oxw().$implicit;u.xp6(1),u.Q6J("ngModel",t.show),u.xp6(1),u.Oqu(t.title.text)}}function fL(e,n){if(1&e&&(u.ynx(0),u.YNc(1,hL,3,2,"div",19),u.BQk()),2&e){const t=n.$implicit;u.xp6(1),u.Q6J("ngIf",t.title&&t.index)}}function vL(e,n){if(1&e&&(u.TgZ(0,"div",17),u.YNc(1,fL,2,1,"ng-container",18),u.qZA()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("ngForOf",t.st.columns)}}function pL(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"button",12),u._UZ(2,"i",13),u.qZA(),u.YNc(3,uL,1,0,"nz-divider",14),u.YNc(4,vL,2,1,"ng-template",null,15,u.W1O),u.BQk()),2&e){const t=u.MAs(5),r=u.oxw(2);u.xp6(1),u.Q6J("nzPopoverContent",t),u.xp6(2),u.Q6J("ngIf",r.bi.dimensions.length>0)}}function dL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"button",25),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3);return u.KtG(i.clearCondition())}),u._UZ(1,"i",26),u._uU(2),u.ALo(3,"translate"),u.qZA()}if(2&e){const t=u.oxw(3);u.Q6J("disabled",t.querying),u.xp6(2),u.hij("",u.lcZ(3,2,"table.reset")," ")}}function gL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.YNc(1,dL,4,4,"button",22),u.TgZ(2,"button",23),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.hideCondition=!i.hideCondition)}),u._UZ(3,"i",24),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",!t.hideCondition),u.xp6(2),u.Q6J("nzType",t.hideCondition?"caret-down":"caret-up")}}function yL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"nz-card",27)(1,"bi-dimension",28),u.NdJ("search",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.query({pageIndex:1,pageSize:i.biTable.size},!0))}),u.qZA()()}if(2&e){const t=u.oxw(2);u.Q6J("nzHoverable",!0)("hidden",t.hideCondition),u.xp6(1),u.Q6J("bi",t.bi)}}function mL(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",30),u._UZ(2,"bi-chart",31,32),u.qZA(),u.BQk()),2&e){const t=n.$implicit,r=u.oxw(3);u.xp6(1),u.Q6J("nzMd",t.grid)("nzXs",24),u.xp6(1),u.Q6J("chart",t)("bi",r.bi)}}function xL(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",29),u.ynx(2),u.YNc(3,mL,4,4,"ng-container",18),u.BQk(),u.qZA(),u.BQk()),2&e){const t=u.oxw(2);u.xp6(3),u.Q6J("ngForOf",t.bi.charts)}}function ML(e,n){1&e&&u._UZ(0,"i",38)}function CL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-card",33)(2,"nz-result",34)(3,"div",35)(4,"button",36),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.query({pageIndex:1,pageSize:i.biTable.size}))}),u._UZ(5,"i",7),u._uU(6),u.ALo(7,"translate"),u.qZA()()(),u.YNc(8,ML,1,0,"ng-template",null,37,u.W1O),u.qZA(),u.BQk()}if(2&e){const t=u.MAs(9),r=u.oxw(2);u.xp6(1),u.Q6J("nzHoverable",!0)("nzBordered",!0),u.xp6(1),u.Q6J("nzIcon",t)("nzTitle","\u8f93\u5165\u67e5\u8be2\u6761\u4ef6\uff0c\u5f00\u542f\u67e5\u8be2\u64cd\u4f5c"),u.xp6(2),u.Q6J("nzLoading",r.querying)("nzGhost",!0),u.xp6(2),u.hij("",u.lcZ(7,7,"table.query")," ")}}function wL(e,n){1&e&&(u.ynx(0),u.TgZ(1,"nz-card"),u._UZ(2,"nz-empty",39),u.qZA(),u.BQk()),2&e&&(u.xp6(2),u.Q6J("nzNotFoundContent",null))}function SL(e,n){if(1&e&&u._uU(0),2&e){const t=u.oxw(6);u.hij("\u5171",t.biTable.total,"\u6761")}}function _L(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-pagination",42),u.NdJ("nzPageSizeChange",function(i){u.CHM(t);const a=u.oxw(5);return u.KtG(a.pageSizeChange(i))})("nzPageIndexChange",function(i){u.CHM(t);const a=u.oxw(5);return u.KtG(a.pageIndexChange(i))}),u.qZA(),u.YNc(2,SL,1,1,"ng-template",null,43,u.W1O),u.BQk()}if(2&e){const t=u.MAs(3),r=u.oxw(5);u.xp6(1),u.Q6J("nzPageIndex",r.biTable.index)("nzPageSize",r.biTable.size)("nzTotal",r.biTable.total)("nzPageSizeOptions",r.biTable.page.pageSizes)("nzSize","small")("nzShowTotal",t)}}const bL=function(e){return{x:e}};function TL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"st",40,41),u.NdJ("change",function(i){u.CHM(t);const a=u.oxw(4);return u.KtG(a.biTableChange(i))}),u.qZA(),u.YNc(3,_L,4,6,"ng-container",3),u.BQk()}if(2&e){const t=u.oxw(4);u.xp6(1),u.Q6J("columns",t.columns)("data",t.biTable.data)("loading",t.querying)("ps",t.biTable.size)("page",t.biTable.page)("scroll",u.VKq(10,bL,(t.clientWidth>768?200*t.columns.length:0)+"px"))("bordered",t.settingSrv.layout.bordered)("resizable",!0)("size","small"),u.xp6(2),u.Q6J("ngIf",t.biTable.pageType==t.pageType.backend)}}function AL(e,n){if(1&e&&(u.ynx(0),u.YNc(1,wL,3,1,"ng-container",3),u.YNc(2,TL,4,12,"ng-container",3),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.columns.length<=0),u.xp6(1),u.Q6J("ngIf",t.columns&&t.columns.length>0)}}function FL(e,n){if(1&e&&(u.ynx(0),u.YNc(1,AL,3,2,"ng-container",3),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",t.bi.table)}}function EL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"div",5),u.ynx(2),u.TgZ(3,"button",6),u.NdJ("click",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.query({pageIndex:1,pageSize:i.biTable.size},!0))}),u._UZ(4,"i",7),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.BQk(),u.YNc(7,cL,5,5,"ng-container",3),u.TgZ(8,"div",8),u.YNc(9,pL,6,2,"ng-container",3),u.YNc(10,gL,4,2,"ng-container",3),u.qZA()(),u.YNc(11,yL,2,3,"nz-card",9),u.YNc(12,xL,4,1,"ng-container",3),u.YNc(13,CL,10,9,"ng-container",3),u.YNc(14,FL,2,1,"ng-container",3),u.BQk()}if(2&e){const t=u.oxw();u.xp6(3),u.Q6J("nzLoading",t.querying),u.xp6(2),u.hij("",u.lcZ(6,9,"table.query")," "),u.xp6(2),u.Q6J("ngIf",t.bi.table&&t.bi.export),u.xp6(2),u.Q6J("ngIf",t.columns&&t.columns.length>0),u.xp6(1),u.Q6J("ngIf",t.bi.dimensions.length>0),u.xp6(1),u.Q6J("ngIf",t.bi.dimensions.length>0),u.xp6(1),u.Q6J("ngIf",t.bi.charts.length>0),u.xp6(1),u.Q6J("ngIf",t.haveNotNull&&t.bi.table),u.xp6(1),u.Q6J("ngIf",!t.haveNotNull)}}const kL=[{path:"",component:(()=>{class e{constructor(t,r,i,a,o,s,l){this.dataService=t,this.route=r,this.handlerService=i,this.settingSrv=a,this.appViewService=o,this.msg=s,this.modal=l,this.haveNotNull=!1,this.querying=!1,this.clientWidth=document.body.clientWidth,this.hideCondition=!1,this.pageType=Lt,this.sort={direction:null},this.biTable={index:1,size:10,total:0,page:{show:!1}},this.columns=[],this.downloading=!1}ngOnInit(){this.router$=this.route.params.subscribe(t=>{this.timer&&clearInterval(this.timer),this.name=t.name,this.biTable.data=null,this.dataService.getBiBuild(this.name).subscribe(r=>{this.bi=r,this.appViewService.setRouterViewDesc(this.bi.remark),this.bi.pageType==Lt.front&&(this.biTable.page={show:!0,front:!0,placement:"center",showSize:!0,showQuickJumper:!0}),this.biTable.size=this.bi.pageSize,this.biTable.page.pageSizes=this.bi.pageSizeOptions;for(let i of r.dimensions)if(i.type===Tt.NUMBER_RANGE&&(i.$value=[]),(0,lt.K0)(i.defaultValue)&&(i.$value=i.defaultValue),i.notNull&&(0,lt.Ft)(i.$value))return void(this.haveNotNull=!0);this.query({pageIndex:1,pageSize:this.biTable.size}),this.bi.refreshTime&&(this.timer=setInterval(()=>{this.query({pageIndex:this.biTable.index,pageSize:this.biTable.size},!0,!1)},1e3*this.bi.refreshTime))})})}query(t,r,i=!0){let a=this.handlerService.buildDimParam(this.bi);a&&(r&&this.biCharts.forEach(o=>o.update(i)),this.bi.table&&(this.querying=!0,this.biTable.index=t.pageIndex,this.dataService.getBiData(this.bi.code,t.pageIndex,t.pageSize,this.sort.column,this.sort.direction,a).subscribe(o=>{if(this.querying=!1,this.haveNotNull=!1,this.biTable.total=o.total,this.biTable.pageType=this.bi.pageType,o.columns){let s=[];for(let l of o.columns)if(l.display){let h={title:{text:l.name,optional:" ",optionalHelp:l.remark},index:l.name,className:"text-center",iif:f=>f.show,show:!0};l.sortable&&(h.sort={key:l.name,default:this.sort.column==l.name?this.sort.direction:null}),l.type==Ft.STRING||(l.type==Ft.NUMBER?h.type="number":l.type==Ft.DATE?(h.type="date",h.width=180):l.type==Ft.DRILL&&(h.type="link",h.click=f=>{let p=this.modal.create({nzWrapClassName:"modal-lg",nzKeyboard:!0,nzMaskClosable:!1,nzStyle:{top:"30px"},nzTitle:l.name,nzContent:L,nzFooter:null});p.getContentComponent().bi=this.bi,p.getContentComponent().drillCode=l.code,p.getContentComponent().row=f})),s.push(h)}this.columns=s,this.biTable.data=o.list}else this.biTable.data=[]})))}biTableChange(t){"sort"==t.type&&(this.sort={column:t.sort.column.indexKey},t.sort.value&&(this.sort.direction=t.sort.value),this.query({pageIndex:1,pageSize:this.biTable.size}))}pageIndexChange(t){this.query({pageIndex:t,pageSize:this.biTable.size})}pageSizeChange(t){this.biTable.size=t,this.query({pageIndex:1,pageSize:t})}clearCondition(){for(let t of this.bi.dimensions)t.$value=t.type==Tt.NUMBER_RANGE||t.type==Tt.DATETIME_RANGE||t.type==Tt.DATE_RANGE?[]:null,t.$viewValue=null;this.query({pageIndex:1,pageSize:this.biTable.size})}exportBiData(){let t=this.handlerService.buildDimParam(this.bi);t&&(this.downloading=!0,this.dataService.exportExcel(this.bi.id,this.bi.code,t,()=>{this.downloading=!1}))}ngOnDestroy(){this.router$.unsubscribe(),this.timer&&clearInterval(this.timer)}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(J.gz),u.Y36(ft),u.Y36(jt.gb),u.Y36(G.O),u.Y36(Z.dD),u.Y36(Y.Sf))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-skeleton"]],viewQuery:function(r,i){if(1&r&&(u.Gf(aL,5),u.Gf(oL,5)),2&r){let a;u.iGM(a=u.CRH())&&(i.st=a.first),u.iGM(a=u.CRH())&&(i.biCharts=a)}},decls:4,vars:3,consts:[[2,"padding","16px"],[3,"nzActive","nzTitle","nzParagraph",4,"ngIf"],[3,"id"],[4,"ngIf"],[3,"nzActive","nzTitle","nzParagraph"],[2,"display","flex"],["nz-button","",1,"mb-sm",3,"nzLoading","click"],["nz-icon","","nzType","search","nzTheme","outline"],[2,"margin-left","auto"],["style","margin-bottom: 12px;margin-top: 4px","nzSize","small",3,"nzHoverable","hidden",4,"ngIf"],["nz-button","",1,"mb-sm",3,"nzLoading","disabled","click"],["nz-icon","","nzType","download","nzTheme","outline"],["nz-button","","nzType","default","nz-popover","","nzPopoverTrigger","click",1,"mb-sm","hidden-mobile",2,"padding","4px 8px",3,"nzPopoverContent"],["nz-icon","","nzType","table","nzTheme","outline"],["nzType","vertical",4,"ngIf"],["tableColumnCtrl",""],["nzType","vertical"],["nz-row","",2,"max-width","520px"],[4,"ngFor","ngForOf"],["nz-col","","nzSpan","6","style","min-width: 130px;",4,"ngIf"],["nz-col","","nzSpan","6",2,"min-width","130px"],["nz-checkbox","",2,"width","130px",3,"ngModel","ngModelChange"],["nz-button","","class","mb-sm",3,"disabled","click",4,"ngIf"],["nz-button","",1,"mb-sm",2,"padding","4px 8px",3,"click"],["nz-icon","","nzTheme","outline",3,"nzType"],["nz-button","",1,"mb-sm",3,"disabled","click"],["nz-icon","","nzType","sync","nzTheme","outline"],["nzSize","small",2,"margin-bottom","12px","margin-top","4px",3,"nzHoverable","hidden"],[3,"bi","search"],["nz-row","","nzGutter","12"],["nz-col","",3,"nzMd","nzXs"],[3,"chart","bi"],["biChart",""],[3,"nzHoverable","nzBordered"],[3,"nzIcon","nzTitle"],["nz-result-extra",""],["nz-button","","nzType","primary",1,"mb-sm",3,"nzLoading","nzGhost","click"],["icon",""],["nz-icon","","nzType","rocket","nzTheme","twotone"],["nzNotFoundImage","simple",3,"nzNotFoundContent"],[2,"margin-bottom","12px",3,"columns","data","loading","ps","page","scroll","bordered","resizable","size","change"],["st",""],["nzShowSizeChanger","","nzShowQuickJumper","",2,"text-align","center",3,"nzPageIndex","nzPageSize","nzTotal","nzPageSizeOptions","nzSize","nzShowTotal","nzPageSizeChange","nzPageIndexChange"],["totalTemplate",""]],template:function(r,i){1&r&&(u.TgZ(0,"div",0),u.YNc(1,lL,1,4,"nz-skeleton",1),u.TgZ(2,"div",2),u.YNc(3,EL,15,11,"ng-container",3),u.qZA()()),2&r&&(u.xp6(1),u.Q6J("ngIf",!i.bi),u.xp6(1),u.Q6J("id",i.name),u.xp6(1),u.Q6J("ngIf",i.bi))},dependencies:[K.sg,K.O5,D.JJ,D.On,Ht.A5,nt.ix,st.w,k.dQ,I.t3,I.SK,w.Ie,A.lU,F.Ls,R.bd,O.g,ut.dE,j.ng,Cn,Ve,In.p9,Vm,iL,wi.C],styles:["[_nghost-%COMP%] .ant-table{transition:.3s all;border-radius:0}[_nghost-%COMP%] .ant-table:hover{border-color:#00000017;box-shadow:0 2px 8px #00000017}"]})}return e})(),data:{desc:"BI",status:!0}}];let IL=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[J.Bz.forChild(kL),J.Bz]})}return e})();var DL=V(9924),LL=V(6192);let OL=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({providers:[et],imports:[K.ez,IL,DL.m,Or,In.Xo,pD,ED,hc,LL.YS]})}return e})()},9064:function(Ne,ae){!function(V){"use strict";function Vt(et,ft){return function Et(et){if(Array.isArray(et))return et}(et)||function ie(et,ft){var Ht=[],Ct=!0,vt=!1,ut=void 0;try{for(var B,_=et[Symbol.iterator]();!(Ct=(B=_.next()).done)&&(Ht.push(B.value),!ft||Ht.length!==ft);Ct=!0);}catch(dt){vt=!0,ut=dt}finally{try{!Ct&&null!=_.return&&_.return()}finally{if(vt)throw ut}}return Ht}(et,ft)||function qt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function zt(et,ft,Ht,Ct){et=et.filter(function(G,D){var nt=ft(G,D),st=Ht(G,D);return null!=nt&&isFinite(nt)&&null!=st&&isFinite(st)}),Ct&&et.sort(function(G,D){return ft(G)-ft(D)});for(var Rt,Zt,oe,vt=et.length,ut=new Float64Array(vt),_=new Float64Array(vt),B=0,dt=0,L=0;Lvt&&(Zt.splice(Y+1,0,st),L=!0)}return L}}function Bt(et,ft,Ht,Ct){var vt=Ct-et*et,ut=Math.abs(vt)<1e-24?0:(Ht-et*ft)/vt;return[ft-ut*et,ut]}function xt(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var ut=0,_=0,B=0,dt=0,Rt=0,Zt=Ht?+Ht[0]:1/0,oe=Ht?+Ht[1]:-1/0;bt(vt,et,ft,function(k,I){++ut,_+=(k-_)/ut,B+=(I-B)/ut,dt+=(k*I-dt)/ut,Rt+=(k*k-Rt)/ut,Ht||(koe&&(oe=k))});var Y=Vt(Bt(_,B,dt,Rt),2),G=Y[0],D=Y[1],nt=function(I){return D*I+G},st=[[Zt,nt(Zt)],[oe,nt(oe)]];return st.a=D,st.b=G,st.predict=nt,st.rSquared=kt(vt,et,ft,B,nt),st}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct}function K(et){et.sort(function(Ht,Ct){return Ht-Ct});var ft=et.length/2;return ft%1==0?(et[ft-1]+et[ft])/2:et[Math.floor(ft)]}function Tt(et){return(et=1-et*et*et)*et*et}function Ft(et,ft,Ht){var Ct=et[ft],vt=Ht[0],ut=Ht[1]+1;if(!(ut>=et.length))for(;ft>vt&&et[ut]-Ct<=Ct-et[vt];)Ht[0]=++vt,Ht[1]=ut,++ut}function u(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var st,k,I,w,_=Vt(zt(vt,et,ft),4),B=_[0],dt=_[1],Rt=_[2],Zt=_[3],oe=B.length,L=0,Y=0,G=0,D=0,nt=0;for(st=0;stO&&(O=Yt))});var j=G-L*L,Q=L*j-Y*Y,gt=(nt*L-D*Y)/Q,$t=(D*j-nt*Y)/Q,Dt=-gt*L,se=function(z){return gt*(z-=Rt)*z+$t*z+Dt+Zt},Kt=te(R,O,se);return Kt.a=gt,Kt.b=$t-2*gt*Rt,Kt.c=Dt-$t*Rt+gt*Rt*Rt+Zt,Kt.predict=se,Kt.rSquared=kt(vt,et,ft,A,se),Kt}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct}V.regressionExp=function Qt(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var ut=0,_=0,B=0,dt=0,Rt=0,Zt=0,oe=Ht?+Ht[0]:1/0,L=Ht?+Ht[1]:-1/0;bt(vt,et,ft,function(I,w){var A=Math.log(w),F=I*w;++ut,_+=(w-_)/ut,dt+=(F-dt)/ut,Zt+=(I*F-Zt)/ut,B+=(w*A-B)/ut,Rt+=(F*A-Rt)/ut,Ht||(IL&&(L=I))});var G=Vt(Bt(dt/_,B/_,Rt/_,Zt/_),2),D=G[0],nt=G[1];D=Math.exp(D);var st=function(w){return D*Math.exp(nt*w)},k=te(oe,L,st);return k.a=D,k.b=nt,k.predict=st,k.rSquared=kt(vt,et,ft,_,st),k}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct},V.regressionLinear=xt,V.regressionLoess=function Lt(){var et=function(ut){return ut[0]},ft=function(ut){return ut[1]},Ht=.3;function Ct(vt){for(var _=Vt(zt(vt,et,ft,!0),4),B=_[0],dt=_[1],Rt=_[2],Zt=_[3],oe=B.length,L=Math.max(2,~~(Ht*oe)),Y=new Float64Array(oe),G=new Float64Array(oe),D=new Float64Array(oe).fill(1),nt=-1;++nt<=2;){for(var st=[0,L-1],k=0;kB[A]-I?w:A]-I||1),Dt=w;Dt<=A;++Dt){var se=B[Dt],Kt=dt[Dt],Yt=Tt(Math.abs(I-se)*$t)*D[Dt],z=se*Yt;R+=Yt,O+=z,j+=Kt*Yt,Q+=Kt*z,gt+=se*z}var q=Vt(Bt(O/R,j/R,Q/R,gt/R),2);Y[k]=q[0]+q[1]*I,G[k]=Math.abs(dt[k]-Y[k]),Ft(B,k+1,st)}if(2===nt)break;var Nt=K(G);if(Math.abs(Nt)<1e-12)break;for(var Pt,_t,Ot=0;Ot=1?1e-12:(_t=1-Pt*Pt)*_t}return function lt(et,ft,Ht,Ct){for(var Rt,vt=et.length,ut=[],_=0,B=0,dt=[];_L&&(L=w))});var D=Vt(Bt(B,dt,Rt,Zt),2),nt=D[0],st=D[1],k=function(A){return st*Math.log(A)/Y+nt},I=te(oe,L,k);return I.a=st,I.b=nt,I.predict=k,I.rSquared=kt(ut,et,ft,dt,k),I}return vt.domain=function(ut){return arguments.length?(Ct=ut,vt):Ct},vt.x=function(ut){return arguments.length?(et=ut,vt):et},vt.y=function(ut){return arguments.length?(ft=ut,vt):ft},vt.base=function(ut){return arguments.length?(Ht=ut,vt):Ht},vt},V.regressionPoly=function ct(){var Ct,et=function(_){return _[0]},ft=function(_){return _[1]},Ht=3;function vt(ut){if(1===Ht){var _=xt().x(et).y(ft).domain(Ct)(ut);return _.coefficients=[_.b,_.a],delete _.a,delete _.b,_}if(2===Ht){var B=u().x(et).y(ft).domain(Ct)(ut);return B.coefficients=[B.c,B.b,B.a],delete B.a,delete B.b,delete B.c,B}var F,R,O,j,Q,Rt=Vt(zt(ut,et,ft),4),Zt=Rt[0],oe=Rt[1],L=Rt[2],Y=Rt[3],G=Zt.length,D=[],nt=[],st=Ht+1,k=0,I=0,w=Ct?+Ct[0]:1/0,A=Ct?+Ct[1]:-1/0;for(bt(ut,et,ft,function(se,Kt){++I,k+=(Kt-k)/I,Ct||(seA&&(A=se))}),F=0;FMath.abs(et[Ct][_])&&(_=vt);for(ut=Ct;ut=Ct;ut--)et[ut][vt]-=et[ut][Ct]*et[Ct][vt]/et[Ct][Ct]}for(vt=ft-1;vt>=0;--vt){for(B=0,ut=vt+1;ut=0;--ut)for(dt=1,vt[ut]+=B=ft[ut],_=1;_<=ut;++_)dt*=(ut+1-_)/_,vt[ut-_]+=B*Math.pow(Ht,_)*dt;return vt[0]+=Ct,vt}(st,gt,-L,Y),Dt.predict=$t,Dt.rSquared=kt(ut,et,ft,k,$t),Dt}return vt.domain=function(ut){return arguments.length?(Ct=ut,vt):Ct},vt.x=function(ut){return arguments.length?(et=ut,vt):et},vt.y=function(ut){return arguments.length?(ft=ut,vt):ft},vt.order=function(ut){return arguments.length?(Ht=ut,vt):Ht},vt},V.regressionPow=function jt(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var ut=0,_=0,B=0,dt=0,Rt=0,Zt=0,oe=Ht?+Ht[0]:1/0,L=Ht?+Ht[1]:-1/0;bt(vt,et,ft,function(I,w){var A=Math.log(I),F=Math.log(w);++ut,_+=(A-_)/ut,B+=(F-B)/ut,dt+=(A*F-dt)/ut,Rt+=(A*A-Rt)/ut,Zt+=(w-Zt)/ut,Ht||(IL&&(L=I))});var G=Vt(Bt(_,B,dt,Rt),2),D=G[0],nt=G[1];D=Math.exp(D);var st=function(w){return D*Math.pow(w,nt)},k=te(oe,L,st);return k.a=D,k.b=nt,k.predict=st,k.rSquared=kt(vt,et,ft,Zt,st),k}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct},V.regressionQuad=u,Object.defineProperty(V,"__esModule",{value:!0})}(ae)},1653:(Ne,ae,V)=>{"use strict";V.d(ae,{qY:()=>Qt});var Vt=function(Ft,lt,Z){if(Z||2===arguments.length)for(var Mt,u=0,ct=lt.length;u"u"&&typeof navigator<"u"&&"ReactNative"===navigator.product?new bt:typeof navigator<"u"?J(navigator.userAgent):function Lt(){return typeof process<"u"&&process.version?new ie(process.version.slice(1)):null}()}function J(Ft){var lt=function xt(Ft){return""!==Ft&&te.reduce(function(lt,Z){var u=Z[0];if(lt)return lt;var Mt=Z[1].exec(Ft);return!!Mt&&[u,Mt]},!1)}(Ft);if(!lt)return null;var Z=lt[0],u=lt[1];if("searchbot"===Z)return new zt;var ct=u[1]&&u[1].split(".").join("_").split("_").slice(0,3);ct?ct.lengthlt+Tt*Lt*Z||u>=Ct)Ht=Lt;else{if(Math.abs(Mt)<=-Ft*Z)return Lt;Mt*(Ht-ft)>=0&&(Ht=ft),ft=Lt,Ct=u}return 0}Lt=Lt||1,Tt=Tt||1e-6,Ft=Ft||.1;for(var et=0;et<10;++et){if(kt($.x,1,J.x,Lt,K),u=$.fx=xt($.x,$.fxprime),Mt=qt($.fxprime,K),u>lt+Tt*Lt*Z||et&&u>=ct)return jt(Jt,Lt,ct);if(Math.abs(Mt)<=-Ft*Z)return Lt;if(Mt>=0)return jt(Lt,Jt,u);ct=u,Jt=Lt,Lt*=2}return Lt}V.bisect=function Vt(xt,K,J,$){var Lt=($=$||{}).maxIterations||100,Tt=$.tolerance||1e-10,Ft=xt(K),lt=xt(J),Z=J-K;if(Ft*lt>0)throw"Initial bisect points must have opposite signs";if(0===Ft)return K;if(0===lt)return J;for(var u=0;u=0&&(K=ct),Math.abs(Z)=et[jt-1].fx){var Y=!1;if(_.fx>L.fx?(kt(B,1+ct,ut,-ct,L),B.fx=xt(B),B.fx=1)break;for(ft=1;ft{"use strict";V.d(ae,{WT:()=>Et});var Et=typeof Float32Array<"u"?Float32Array:Array;Math,Math,Math.hypot||(Math.hypot=function(){for(var ht=0,mt=arguments.length;mt--;)ht+=arguments[mt]*arguments[mt];return Math.sqrt(ht)})},2067:(Ne,ae,V)=>{"use strict";function mt(_,B){var dt=B[0],Rt=B[1],Zt=B[2],oe=B[3],L=B[4],Y=B[5],G=B[6],D=B[7],nt=B[8],st=nt*L-Y*D,k=-nt*oe+Y*G,I=D*oe-L*G,w=dt*st+Rt*k+Zt*I;return w?(_[0]=st*(w=1/w),_[1]=(-nt*Rt+Zt*D)*w,_[2]=(Y*Rt-Zt*L)*w,_[3]=k*w,_[4]=(nt*dt-Zt*G)*w,_[5]=(-Y*dt+Zt*oe)*w,_[6]=I*w,_[7]=(-D*dt+Rt*G)*w,_[8]=(L*dt-Rt*oe)*w,_):null}function Qt(_,B,dt){var Rt=B[0],Zt=B[1],oe=B[2],L=B[3],Y=B[4],G=B[5],D=B[6],nt=B[7],st=B[8],k=dt[0],I=dt[1],w=dt[2],A=dt[3],F=dt[4],R=dt[5],O=dt[6],j=dt[7],Q=dt[8];return _[0]=k*Rt+I*L+w*D,_[1]=k*Zt+I*Y+w*nt,_[2]=k*oe+I*G+w*st,_[3]=A*Rt+F*L+R*D,_[4]=A*Zt+F*Y+R*nt,_[5]=A*oe+F*G+R*st,_[6]=O*Rt+j*L+Q*D,_[7]=O*Zt+j*Y+Q*nt,_[8]=O*oe+j*G+Q*st,_}function $(_,B){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=1,_[5]=0,_[6]=B[0],_[7]=B[1],_[8]=1,_}function Lt(_,B){var dt=Math.sin(B),Rt=Math.cos(B);return _[0]=Rt,_[1]=dt,_[2]=0,_[3]=-dt,_[4]=Rt,_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}function Tt(_,B){return _[0]=B[0],_[1]=0,_[2]=0,_[3]=0,_[4]=B[1],_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}V.d(ae,{Jp:()=>Qt,U_:()=>mt,Us:()=>Lt,vc:()=>$,xJ:()=>Tt})},7367:(Ne,ae,V)=>{"use strict";V.d(ae,{$X:()=>ht,AK:()=>Jt,EU:()=>B,Fp:()=>K,Fv:()=>Mt,I6:()=>Zt,IH:()=>kt,TE:()=>Tt,VV:()=>xt,bA:()=>$,kE:()=>lt,kK:()=>vt,lu:()=>Y});var Vt=V(1611);function kt(w,A,F){return w[0]=A[0]+F[0],w[1]=A[1]+F[1],w}function ht(w,A,F){return w[0]=A[0]-F[0],w[1]=A[1]-F[1],w}function xt(w,A,F){return w[0]=Math.min(A[0],F[0]),w[1]=Math.min(A[1],F[1]),w}function K(w,A,F){return w[0]=Math.max(A[0],F[0]),w[1]=Math.max(A[1],F[1]),w}function $(w,A,F){return w[0]=A[0]*F,w[1]=A[1]*F,w}function Tt(w,A){return Math.hypot(A[0]-w[0],A[1]-w[1])}function lt(w){return Math.hypot(w[0],w[1])}function Mt(w,A){var F=A[0],R=A[1],O=F*F+R*R;return O>0&&(O=1/Math.sqrt(O)),w[0]=A[0]*O,w[1]=A[1]*O,w}function Jt(w,A){return w[0]*A[0]+w[1]*A[1]}function vt(w,A,F){var R=A[0],O=A[1];return w[0]=F[0]*R+F[3]*O+F[6],w[1]=F[1]*R+F[4]*O+F[7],w}function B(w,A){var F=w[0],R=w[1],O=A[0],j=A[1],Q=Math.sqrt(F*F+R*R)*Math.sqrt(O*O+j*j);return Math.acos(Math.min(Math.max(Q&&(F*O+R*j)/Q,-1),1))}function Zt(w,A){return w[0]===A[0]&&w[1]===A[1]}var Y=ht;(function Et(){var w=new Vt.WT(2);Vt.WT!=Float32Array&&(w[0]=0,w[1]=0)})()},5729:Ne=>{"use strict";var ae=Ne.exports;Ne.exports.isNumber=function(V){return"number"==typeof V},Ne.exports.findMin=function(V){if(0===V.length)return 1/0;for(var Vt=V[0],Et=1;Et{"use strict";var ie=Math.log(2),qt=Ne.exports,zt=V(5729);function bt(ht){return 1-Math.abs(ht)}Ne.exports.getUnifiedMinMax=function(ht,mt){return qt.getUnifiedMinMaxMulti([ht],mt)},Ne.exports.getUnifiedMinMaxMulti=function(ht,mt){var te=!1,Bt=!1,Qt=zt.isNumber((mt=mt||{}).width)?mt.width:2,xt=zt.isNumber(mt.size)?mt.size:50,K=zt.isNumber(mt.min)?mt.min:(te=!0,zt.findMinMulti(ht)),J=zt.isNumber(mt.max)?mt.max:(Bt=!0,zt.findMaxMulti(ht)),Lt=(J-K)/(xt-1);return te&&(K-=2*Qt*Lt),Bt&&(J+=2*Qt*Lt),{min:K,max:J}},Ne.exports.create=function(ht,mt){if(!ht||0===ht.length)return[];var te=zt.isNumber((mt=mt||{}).size)?mt.size:50,Bt=zt.isNumber(mt.width)?mt.width:2,Qt=qt.getUnifiedMinMax(ht,{size:te,width:Bt,min:mt.min,max:mt.max}),xt=Qt.min,J=Qt.max-xt,$=J/(te-1);if(0===J)return[{x:xt,y:1}];for(var Lt=[],Tt=0;Tt=Lt.length)){var Ht=Math.max(ft-Bt,0),Ct=ft,vt=Math.min(ft+Bt,Lt.length-1),ut=Ht-(ft-Bt),Rt=Z/(Z-(lt[-Bt-1+ut]||0)-(lt[-Bt-1+(ft+Bt-vt)]||0));ut>0&&(ct+=Rt*(ut-1)*u);var Zt=Math.max(0,ft-Bt+1);zt.inside(0,Lt.length-1,Zt)&&(Lt[Zt].y+=1*Rt*u),zt.inside(0,Lt.length-1,Ct+1)&&(Lt[Ct+1].y-=2*Rt*u),zt.inside(0,Lt.length-1,vt+1)&&(Lt[vt+1].y+=1*Rt*u)}});var Mt=ct,Jt=0,jt=0;return Lt.forEach(function(et){et.y=Mt+=Jt+=et.y,jt+=Mt}),jt>0&&Lt.forEach(function(et){et.y/=jt}),Lt},Ne.exports.getExpectedValueFromPdf=function(ht){if(ht&&0!==ht.length){var mt=0;return ht.forEach(function(te){mt+=te.x*te.y}),mt}},Ne.exports.getXWithLeftTailArea=function(ht,mt){if(ht&&0!==ht.length){for(var te=0,Bt=0,Qt=0;Qt=mt));Qt++);return ht[Bt].x}},Ne.exports.getPerplexity=function(ht){if(ht&&0!==ht.length){var mt=0;return ht.forEach(function(te){var Bt=Math.log(te.y);isFinite(Bt)&&(mt+=te.y*Bt)}),mt=-mt/ie,Math.pow(2,mt)}}},5818:(Ne,ae)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.SizeSensorId=ae.SensorTabIndex=ae.SensorClassName=void 0,ae.SizeSensorId="size-sensor-id",ae.SensorClassName="size-sensor-object",ae.SensorTabIndex="-1"},3371:(Ne,ae)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=void 0,ae.default=function(Et){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,qt=null;return function(){for(var zt=this,bt=arguments.length,kt=new Array(bt),ht=0;ht{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=void 0;var V=1;ae.default=function(){return"".concat(V++)}},1971:(Ne,ae,V)=>{"use strict";ae.ak=void 0;var Et=V(9308);ae.ak=function(kt,ht){var mt=(0,Et.getSensor)(kt);return mt.bind(ht),function(){mt.unbind(ht)}}},9308:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.removeSensor=ae.getSensor=ae.Sensors=void 0;var Vt=function qt(mt){return mt&&mt.__esModule?mt:{default:mt}}(V(329)),Et=V(4730),ie=V(5818),zt={};function bt(mt){mt&&zt[mt]&&delete zt[mt]}ae.Sensors=zt,ae.getSensor=function(te){var Bt=te.getAttribute(ie.SizeSensorId);if(Bt&&zt[Bt])return zt[Bt];var Qt=(0,Vt.default)();te.setAttribute(ie.SizeSensorId,Qt);var xt=(0,Et.createSensor)(te,function(){return bt(Qt)});return zt[Qt]=xt,xt},ae.removeSensor=function(te){var Bt=te.element.getAttribute(ie.SizeSensorId);te.destroy(),bt(Bt)}},4730:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.createSensor=void 0;var Vt=V(3029),Et=V(5289),ie=typeof ResizeObserver<"u"?Et.createSensor:Vt.createSensor;ae.createSensor=ie},3029:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.createSensor=void 0;var Vt=function ie(zt){return zt&&zt.__esModule?zt:{default:zt}}(V(3371)),Et=V(5818);ae.createSensor=function(bt,kt){var ht=void 0,mt=[],Bt=(0,Vt.default)(function(){mt.forEach(function(J){J(bt)})}),xt=function(){ht&&ht.parentNode&&(ht.contentDocument&&ht.contentDocument.defaultView.removeEventListener("resize",Bt),ht.parentNode.removeChild(ht),bt.removeAttribute(Et.SizeSensorId),ht=void 0,mt=[],kt&&kt())};return{element:bt,bind:function($){ht||(ht=function(){"static"===getComputedStyle(bt).position&&(bt.style.position="relative");var $=document.createElement("object");return $.onload=function(){$.contentDocument.defaultView.addEventListener("resize",Bt),Bt()},$.style.display="block",$.style.position="absolute",$.style.top="0",$.style.left="0",$.style.height="100%",$.style.width="100%",$.style.overflow="hidden",$.style.pointerEvents="none",$.style.zIndex="-1",$.style.opacity="0",$.setAttribute("class",Et.SensorClassName),$.setAttribute("tabindex",Et.SensorTabIndex),$.type="text/html",bt.appendChild($),$.data="about:blank",$}()),-1===mt.indexOf($)&&mt.push($)},destroy:xt,unbind:function($){var Lt=mt.indexOf($);-1!==Lt&&mt.splice(Lt,1),0===mt.length&&ht&&xt()}}}},5289:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.createSensor=void 0;var Vt=V(5818),Et=function ie(zt){return zt&&zt.__esModule?zt:{default:zt}}(V(3371));ae.createSensor=function(bt,kt){var ht=void 0,mt=[],te=(0,Et.default)(function(){mt.forEach(function(J){J(bt)})}),xt=function(){ht.disconnect(),mt=[],ht=void 0,bt.removeAttribute(Vt.SizeSensorId),kt&&kt()};return{element:bt,bind:function($){ht||(ht=function(){var $=new ResizeObserver(te);return $.observe(bt),te(),$}()),-1===mt.indexOf($)&&mt.push($)},destroy:xt,unbind:function($){var Lt=mt.indexOf($);-1!==Lt&&mt.splice(Lt,1),0===mt.length&&ht&&xt()}}}}}]); \ No newline at end of file +(self.webpackChunkerupt=self.webpackChunkerupt||[]).push([[830],{1120:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>ie});const ie=function(){function qt(){this._events={}}return qt.prototype.on=function(zt,bt,kt){return this._events[zt]||(this._events[zt]=[]),this._events[zt].push({callback:bt,once:!!kt}),this},qt.prototype.once=function(zt,bt){return this.on(zt,bt,!0)},qt.prototype.emit=function(zt){for(var bt=this,kt=[],ht=1;ht{"use strict";V.d(ae,{Z:()=>zt});var Vt=V(7582),Et=V(1120),ie=V(5412);const zt=function(bt){function kt(ht){var mt=bt.call(this)||this;mt.destroyed=!1;var te=mt.getDefaultCfg();return mt.cfg=(0,ie.CD)(te,ht),mt}return(0,Vt.ZT)(kt,bt),kt.prototype.getDefaultCfg=function(){return{}},kt.prototype.get=function(ht){return this.cfg[ht]},kt.prototype.set=function(ht,mt){this.cfg[ht]=mt},kt.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},kt}(Et.Z)},7281:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>pn});var te,Bt,Vt=V(7582),Et=V(1653),ie=V(5331),qt=V(5412),zt=V(6641),bt=0,kt=0,ht=0,mt=1e3,Qt=0,xt=0,K=0,J="object"==typeof performance&&performance.now?performance:Date,$="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(N){setTimeout(N,17)};function Lt(){return xt||($(Tt),xt=J.now()+K)}function Tt(){xt=0}function Ft(){this._call=this._time=this._next=null}function lt(N,P,H){var rt=new Ft;return rt.restart(N,P,H),rt}function u(){xt=(Qt=J.now())+K,bt=kt=0;try{!function Z(){Lt(),++bt;for(var P,N=te;N;)(P=xt-N._time)>=0&&N._call.call(null,P),N=N._next;--bt}()}finally{bt=0,function Mt(){for(var N,H,P=te,rt=1/0;P;)P._call?(rt>P._time&&(rt=P._time),N=P,P=P._next):(H=P._next,P._next=null,P=N?N._next=H:te=H);Bt=N,Jt(rt)}(),xt=0}}function ct(){var N=J.now(),P=N-Qt;P>mt&&(K-=P,Qt=N)}function Jt(N){bt||(kt&&(kt=clearTimeout(kt)),N-xt>24?(N<1/0&&(kt=setTimeout(u,N-J.now()-K)),ht&&(ht=clearInterval(ht))):(ht||(Qt=J.now(),ht=setInterval(ct,mt)),bt=1,$(u)))}function jt(N,P,H){N.prototype=P.prototype=H,H.constructor=N}function et(N,P){var H=Object.create(N.prototype);for(var rt in P)H[rt]=P[rt];return H}function ft(){}Ft.prototype=lt.prototype={constructor:Ft,restart:function(N,P,H){if("function"!=typeof N)throw new TypeError("callback is not a function");H=(null==H?Lt():+H)+(null==P?0:+P),!this._next&&Bt!==this&&(Bt?Bt._next=this:te=this,Bt=this),this._call=N,this._time=H,Jt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jt())}};var Ct=1/.7,vt="\\s*([+-]?\\d+)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",B=/^#([0-9a-f]{3,8})$/,dt=new RegExp(`^rgb\\(${vt},${vt},${vt}\\)$`),Rt=new RegExp(`^rgb\\(${_},${_},${_}\\)$`),Zt=new RegExp(`^rgba\\(${vt},${vt},${vt},${ut}\\)$`),oe=new RegExp(`^rgba\\(${_},${_},${_},${ut}\\)$`),L=new RegExp(`^hsl\\(${ut},${_},${_}\\)$`),Y=new RegExp(`^hsla\\(${ut},${_},${_},${ut}\\)$`),G={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function D(){return this.rgb().formatHex()}function k(){return this.rgb().formatRgb()}function I(N){var P,H;return N=(N+"").trim().toLowerCase(),(P=B.exec(N))?(H=P[1].length,P=parseInt(P[1],16),6===H?w(P):3===H?new O(P>>8&15|P>>4&240,P>>4&15|240&P,(15&P)<<4|15&P,1):8===H?A(P>>24&255,P>>16&255,P>>8&255,(255&P)/255):4===H?A(P>>12&15|P>>8&240,P>>8&15|P>>4&240,P>>4&15|240&P,((15&P)<<4|15&P)/255):null):(P=dt.exec(N))?new O(P[1],P[2],P[3],1):(P=Rt.exec(N))?new O(255*P[1]/100,255*P[2]/100,255*P[3]/100,1):(P=Zt.exec(N))?A(P[1],P[2],P[3],P[4]):(P=oe.exec(N))?A(255*P[1]/100,255*P[2]/100,255*P[3]/100,P[4]):(P=L.exec(N))?Kt(P[1],P[2]/100,P[3]/100,1):(P=Y.exec(N))?Kt(P[1],P[2]/100,P[3]/100,P[4]):G.hasOwnProperty(N)?w(G[N]):"transparent"===N?new O(NaN,NaN,NaN,0):null}function w(N){return new O(N>>16&255,N>>8&255,255&N,1)}function A(N,P,H,rt){return rt<=0&&(N=P=H=NaN),new O(N,P,H,rt)}function R(N,P,H,rt){return 1===arguments.length?function F(N){return N instanceof ft||(N=I(N)),N?new O((N=N.rgb()).r,N.g,N.b,N.opacity):new O}(N):new O(N,P,H,rt??1)}function O(N,P,H,rt){this.r=+N,this.g=+P,this.b=+H,this.opacity=+rt}function j(){return`#${se(this.r)}${se(this.g)}${se(this.b)}`}function gt(){const N=$t(this.opacity);return`${1===N?"rgb(":"rgba("}${Dt(this.r)}, ${Dt(this.g)}, ${Dt(this.b)}${1===N?")":`, ${N})`}`}function $t(N){return isNaN(N)?1:Math.max(0,Math.min(1,N))}function Dt(N){return Math.max(0,Math.min(255,Math.round(N)||0))}function se(N){return((N=Dt(N))<16?"0":"")+N.toString(16)}function Kt(N,P,H,rt){return rt<=0?N=P=H=NaN:H<=0||H>=1?N=P=NaN:P<=0&&(N=NaN),new U(N,P,H,rt)}function Yt(N){if(N instanceof U)return new U(N.h,N.s,N.l,N.opacity);if(N instanceof ft||(N=I(N)),!N)return new U;if(N instanceof U)return N;var P=(N=N.rgb()).r/255,H=N.g/255,rt=N.b/255,It=Math.min(P,H,rt),re=Math.max(P,H,rt),ve=NaN,le=re-It,Pe=(re+It)/2;return le?(ve=P===re?(H-rt)/le+6*(H0&&Pe<1?0:ve,new U(ve,le,Pe,N.opacity)}function U(N,P,H,rt){this.h=+N,this.s=+P,this.l=+H,this.opacity=+rt}function q(N){return(N=(N||0)%360)<0?N+360:N}function at(N){return Math.max(0,Math.min(1,N||0))}function At(N,P,H){return 255*(N<60?P+(H-P)*N/60:N<180?H:N<240?P+(H-P)*(240-N)/60:P)}function Nt(N,P,H,rt,It){var re=N*N,ve=re*N;return((1-3*N+3*re-ve)*P+(4-6*re+3*ve)*H+(1+3*N+3*re-3*ve)*rt+ve*It)/6}jt(ft,I,{copy(N){return Object.assign(new this.constructor,this,N)},displayable(){return this.rgb().displayable()},hex:D,formatHex:D,formatHex8:function nt(){return this.rgb().formatHex8()},formatHsl:function st(){return Yt(this).formatHsl()},formatRgb:k,toString:k}),jt(O,R,et(ft,{brighter(N){return N=null==N?Ct:Math.pow(Ct,N),new O(this.r*N,this.g*N,this.b*N,this.opacity)},darker(N){return N=null==N?.7:Math.pow(.7,N),new O(this.r*N,this.g*N,this.b*N,this.opacity)},rgb(){return this},clamp(){return new O(Dt(this.r),Dt(this.g),Dt(this.b),$t(this.opacity))},displayable(){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:j,formatHex:j,formatHex8:function Q(){return`#${se(this.r)}${se(this.g)}${se(this.b)}${se(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:gt,toString:gt})),jt(U,function z(N,P,H,rt){return 1===arguments.length?Yt(N):new U(N,P,H,rt??1)},et(ft,{brighter(N){return N=null==N?Ct:Math.pow(Ct,N),new U(this.h,this.s,this.l*N,this.opacity)},darker(N){return N=null==N?.7:Math.pow(.7,N),new U(this.h,this.s,this.l*N,this.opacity)},rgb(){var N=this.h%360+360*(this.h<0),P=isNaN(N)||isNaN(this.s)?0:this.s,H=this.l,rt=H+(H<.5?H:1-H)*P,It=2*H-rt;return new O(At(N>=240?N-240:N+120,It,rt),At(N,It,rt),At(N<120?N+240:N-120,It,rt),this.opacity)},clamp(){return new U(q(this.h),at(this.s),at(this.l),$t(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const N=$t(this.opacity);return`${1===N?"hsl(":"hsla("}${q(this.h)}, ${100*at(this.s)}%, ${100*at(this.l)}%${1===N?")":`, ${N})`}`}}));const _t=N=>()=>N;function ce(N,P){var H=P-N;return H?function ne(N,P){return function(H){return N+H*P}}(N,H):_t(isNaN(N)?P:N)}const xe=function N(P){var H=function Ce(N){return 1==(N=+N)?ce:function(P,H){return H-P?function Wt(N,P,H){return N=Math.pow(N,H),P=Math.pow(P,H)-N,H=1/H,function(rt){return Math.pow(N+rt*P,H)}}(P,H,N):_t(isNaN(P)?H:P)}}(P);function rt(It,re){var ve=H((It=R(It)).r,(re=R(re)).r),le=H(It.g,re.g),Pe=H(It.b,re.b),on=ce(It.opacity,re.opacity);return function(Sn){return It.r=ve(Sn),It.g=le(Sn),It.b=Pe(Sn),It.opacity=on(Sn),It+""}}return rt.gamma=N,rt}(1);function ye(N){return function(P){var ve,le,H=P.length,rt=new Array(H),It=new Array(H),re=new Array(H);for(ve=0;ve=1?(H=1,P-1):Math.floor(H*P),It=N[rt],re=N[rt+1];return Nt((H-rt/P)*P,rt>0?N[rt-1]:2*It-re,It,re,rtH&&(re=P.slice(H,re),le[ve]?le[ve]+=re:le[++ve]=re),(rt=rt[0])===(It=It[0])?le[ve]?le[ve]+=It:le[++ve]=It:(le[++ve]=null,Pe.push({i:ve,x:Ve(rt,It)})),H=Cn.lastIndex;return Hon.length?(Pe=vn.parsePathString(re[le]),on=vn.parsePathString(It[le]),on=vn.fillPathByDiff(on,Pe),on=vn.formatPath(on,Pe),P.fromAttrs.path=on,P.toAttrs.path=Pe):P.pathFormatted||(Pe=vn.parsePathString(re[le]),on=vn.parsePathString(It[le]),on=vn.formatPath(on,Pe),P.fromAttrs.path=on,P.toAttrs.path=Pe,P.pathFormatted=!0),rt[le]=[];for(var Sn=0;Sn0){for(var le=P.animators.length-1;le>=0;le--)if((rt=P.animators[le]).destroyed)P.removeAnimator(le);else{if(!rt.isAnimatePaused())for(var Pe=(It=rt.get("animations")).length-1;Pe>=0;Pe--)mr(rt,re=It[Pe],ve)&&(It.splice(Pe,1),re.callback&&re.callback());0===It.length&&P.removeAnimator(le)}P.canvas.get("autoDraw")||P.canvas.draw()}})},N.prototype.addAnimator=function(P){this.animators.push(P)},N.prototype.removeAnimator=function(P){this.animators.splice(P,1)},N.prototype.isAnimating=function(){return!!this.animators.length},N.prototype.stop=function(){this.timer&&this.timer.stop()},N.prototype.stopAllAnimations=function(P){void 0===P&&(P=!0),this.animators.forEach(function(H){H.stopAnimate(P)}),this.animators=[],this.canvas.draw()},N.prototype.getTime=function(){return this.current},N}();var za=V(713),Ba=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function wi(N,P,H){H.name=P,H.target=N,H.currentTarget=N,H.delegateTarget=N,N.emit(P,H)}function Na(N,P,H){if(H.bubbles){var rt=void 0,It=!1;if("mouseenter"===P?(rt=H.fromShape,It=!0):"mouseleave"===P&&(It=!0,rt=H.toShape),N.isCanvas()&&It)return;if(rt&&(0,qt.UY)(N,rt))return void(H.bubbles=!1);H.name=P,H.currentTarget=N,H.delegateTarget=N,N.emit(P,H)}}const Jo=function(){function N(P){var H=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(rt){H._triggerEvent(rt.type,rt)},this._onDocumentMove=function(rt){if(H.canvas.get("el")!==rt.target&&(H.dragging||H.currentShape)){var ve=H._getPointInfo(rt);H.dragging&&H._emitEvent("drag",rt,ve,H.draggingShape)}},this._onDocumentMouseUp=function(rt){if(H.canvas.get("el")!==rt.target&&H.dragging){var ve=H._getPointInfo(rt);H.draggingShape&&H._emitEvent("drop",rt,ve,null),H._emitEvent("dragend",rt,ve,H.draggingShape),H._afterDrag(H.draggingShape,ve,rt)}},this.canvas=P.canvas}return N.prototype.init=function(){this._bindEvents()},N.prototype._bindEvents=function(){var P=this,H=this.canvas.get("el");(0,qt.S6)(Ba,function(rt){H.addEventListener(rt,P._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},N.prototype._clearEvents=function(){var P=this,H=this.canvas.get("el");(0,qt.S6)(Ba,function(rt){H.removeEventListener(rt,P._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},N.prototype._getEventObj=function(P,H,rt,It,re,ve){var le=new za.Z(P,H);return le.fromShape=re,le.toShape=ve,le.x=rt.x,le.y=rt.y,le.clientX=rt.clientX,le.clientY=rt.clientY,le.propagationPath.push(It),le},N.prototype._getShape=function(P,H){return this.canvas.getShape(P.x,P.y,H)},N.prototype._getPointInfo=function(P){var H=this.canvas,rt=H.getClientByEvent(P),It=H.getPointByEvent(P);return{x:It.x,y:It.y,clientX:rt.x,clientY:rt.y}},N.prototype._triggerEvent=function(P,H){var rt=this._getPointInfo(H),It=this._getShape(rt,H),re=this["_on"+P],ve=!1;if(re)re.call(this,rt,It,H);else{var le=this.currentShape;"mouseenter"===P||"dragenter"===P||"mouseover"===P?(this._emitEvent(P,H,rt,null,null,It),It&&this._emitEvent(P,H,rt,It,null,It),"mouseenter"===P&&this.draggingShape&&this._emitEvent("dragenter",H,rt,null)):"mouseleave"===P||"dragleave"===P||"mouseout"===P?(ve=!0,le&&this._emitEvent(P,H,rt,le,le,null),this._emitEvent(P,H,rt,null,le,null),"mouseleave"===P&&this.draggingShape&&this._emitEvent("dragleave",H,rt,null)):this._emitEvent(P,H,rt,It,null,null)}if(ve||(this.currentShape=It),It&&!It.get("destroyed")){var Pe=this.canvas;Pe.get("el").style.cursor=It.attr("cursor")||Pe.get("cursor")}},N.prototype._onmousedown=function(P,H,rt){0===rt.button&&(this.mousedownShape=H,this.mousedownPoint=P,this.mousedownTimeStamp=rt.timeStamp),this._emitEvent("mousedown",rt,P,H,null,null)},N.prototype._emitMouseoverEvents=function(P,H,rt,It){var re=this.canvas.get("el");rt!==It&&(rt&&(this._emitEvent("mouseout",P,H,rt,rt,It),this._emitEvent("mouseleave",P,H,rt,rt,It),(!It||It.get("destroyed"))&&(re.style.cursor=this.canvas.get("cursor"))),It&&(this._emitEvent("mouseover",P,H,It,rt,It),this._emitEvent("mouseenter",P,H,It,rt,It)))},N.prototype._emitDragoverEvents=function(P,H,rt,It,re){It?(It!==rt&&(rt&&this._emitEvent("dragleave",P,H,rt,rt,It),this._emitEvent("dragenter",P,H,It,rt,It)),re||this._emitEvent("dragover",P,H,It)):rt&&this._emitEvent("dragleave",P,H,rt,rt,It),re&&this._emitEvent("dragover",P,H,It)},N.prototype._afterDrag=function(P,H,rt){P&&(P.set("capture",!0),this.draggingShape=null),this.dragging=!1;var It=this._getShape(H,rt);It!==P&&this._emitMouseoverEvents(rt,H,P,It),this.currentShape=It},N.prototype._onmouseup=function(P,H,rt){if(0===rt.button){var It=this.draggingShape;this.dragging?(It&&this._emitEvent("drop",rt,P,H),this._emitEvent("dragend",rt,P,It),this._afterDrag(It,P,rt)):(this._emitEvent("mouseup",rt,P,H),H===this.mousedownShape&&this._emitEvent("click",rt,P,H),this.mousedownShape=null,this.mousedownPoint=null)}},N.prototype._ondragover=function(P,H,rt){rt.preventDefault(),this._emitDragoverEvents(rt,P,this.currentShape,H,!0)},N.prototype._onmousemove=function(P,H,rt){var It=this.canvas,re=this.currentShape,ve=this.draggingShape;if(this.dragging)ve&&this._emitDragoverEvents(rt,P,re,H,!1),this._emitEvent("drag",rt,P,ve);else{var le=this.mousedownPoint;if(le){var Pe=this.mousedownShape,zn=le.clientX-P.clientX,xr=le.clientY-P.clientY;rt.timeStamp-this.mousedownTimeStamp>120||zn*zn+xr*xr>40?Pe&&Pe.get("draggable")?((ve=this.mousedownShape).set("capture",!1),this.draggingShape=ve,this.dragging=!0,this._emitEvent("dragstart",rt,P,ve),this.mousedownShape=null,this.mousedownPoint=null):!Pe&&It.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",rt,P,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(rt,P,re,H),this._emitEvent("mousemove",rt,P,H)):(this._emitMouseoverEvents(rt,P,re,H),this._emitEvent("mousemove",rt,P,H))}else this._emitMouseoverEvents(rt,P,re,H),this._emitEvent("mousemove",rt,P,H)}},N.prototype._emitEvent=function(P,H,rt,It,re,ve){var le=this._getEventObj(P,H,rt,It,re,ve);if(It){le.shape=It,wi(It,P,le);for(var Pe=It.getParent();Pe;)Pe.emitDelegation(P,le),le.propagationStopped||Na(Pe,P,le),le.propagationPath.push(Pe),Pe=Pe.getParent()}else wi(this.canvas,P,le)},N.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},N}();var Ki=(0,Et.qY)(),ta=Ki&&"firefox"===Ki.name;const pn=function(N){function P(H){var rt=N.call(this,H)||this;return rt.initContainer(),rt.initDom(),rt.initEvents(),rt.initTimeline(),rt}return(0,Vt.ZT)(P,N),P.prototype.getDefaultCfg=function(){var H=N.prototype.getDefaultCfg.call(this);return H.cursor="default",H.supportCSSTransform=!1,H},P.prototype.initContainer=function(){var H=this.get("container");(0,qt.HD)(H)&&(H=document.getElementById(H),this.set("container",H))},P.prototype.initDom=function(){var H=this.createDom();this.set("el",H),this.get("container").appendChild(H),this.setDOMSize(this.get("width"),this.get("height"))},P.prototype.initEvents=function(){var H=new Jo({canvas:this});H.init(),this.set("eventController",H)},P.prototype.initTimeline=function(){var H=new Qi(this);this.set("timeline",H)},P.prototype.setDOMSize=function(H,rt){var It=this.get("el");qt.jU&&(It.style.width=H+"px",It.style.height=rt+"px")},P.prototype.changeSize=function(H,rt){this.setDOMSize(H,rt),this.set("width",H),this.set("height",rt),this.onCanvasChange("changeSize")},P.prototype.getRenderer=function(){return this.get("renderer")},P.prototype.getCursor=function(){return this.get("cursor")},P.prototype.setCursor=function(H){this.set("cursor",H);var rt=this.get("el");qt.jU&&rt&&(rt.style.cursor=H)},P.prototype.getPointByEvent=function(H){if(this.get("supportCSSTransform")){if(ta&&!(0,qt.kK)(H.layerX)&&H.layerX!==H.offsetX)return{x:H.layerX,y:H.layerY};if(!(0,qt.kK)(H.offsetX))return{x:H.offsetX,y:H.offsetY}}var It=this.getClientByEvent(H);return this.getPointByClient(It.x,It.y)},P.prototype.getClientByEvent=function(H){var rt=H;return H.touches&&(rt="touchend"===H.type?H.changedTouches[0]:H.touches[0]),{x:rt.clientX,y:rt.clientY}},P.prototype.getPointByClient=function(H,rt){var re=this.get("el").getBoundingClientRect();return{x:H-re.left,y:rt-re.top}},P.prototype.getClientByPoint=function(H,rt){var re=this.get("el").getBoundingClientRect();return{x:H+re.left,y:rt+re.top}},P.prototype.draw=function(){},P.prototype.removeDom=function(){var H=this.get("el");H.parentNode.removeChild(H)},P.prototype.clearEvents=function(){this.get("eventController").destroy()},P.prototype.isCanvas=function(){return!0},P.prototype.getParent=function(){return null},P.prototype.destroy=function(){var H=this.get("timeline");this.get("destroyed")||(this.clear(),H&&H.stop(),this.clearEvents(),this.removeDom(),N.prototype.destroy.call(this))},P}(ie.Z)},5331:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>Qt});var Vt=V(7582),Et=V(8085),ie=V(5412),qt={},zt="_INDEX";function bt(xt,K){if(xt.set("canvas",K),xt.isGroup()){var J=xt.get("children");J.length&&J.forEach(function($){bt($,K)})}}function kt(xt,K){if(xt.set("timeline",K),xt.isGroup()){var J=xt.get("children");J.length&&J.forEach(function($){kt($,K)})}}const Qt=function(xt){function K(){return null!==xt&&xt.apply(this,arguments)||this}return(0,Vt.ZT)(K,xt),K.prototype.isCanvas=function(){return!1},K.prototype.getBBox=function(){var J=1/0,$=-1/0,Lt=1/0,Tt=-1/0,Ft=this.getChildren().filter(function(Z){return Z.get("visible")&&(!Z.isGroup()||Z.isGroup()&&Z.getChildren().length>0)});return Ft.length>0?(0,ie.S6)(Ft,function(Z){var u=Z.getBBox(),ct=u.minX,Mt=u.maxX,Jt=u.minY,jt=u.maxY;ct$&&($=Mt),JtTt&&(Tt=jt)}):(J=0,$=0,Lt=0,Tt=0),{x:J,y:Lt,minX:J,minY:Lt,maxX:$,maxY:Tt,width:$-J,height:Tt-Lt}},K.prototype.getCanvasBBox=function(){var J=1/0,$=-1/0,Lt=1/0,Tt=-1/0,Ft=this.getChildren().filter(function(Z){return Z.get("visible")&&(!Z.isGroup()||Z.isGroup()&&Z.getChildren().length>0)});return Ft.length>0?(0,ie.S6)(Ft,function(Z){var u=Z.getCanvasBBox(),ct=u.minX,Mt=u.maxX,Jt=u.minY,jt=u.maxY;ct$&&($=Mt),JtTt&&(Tt=jt)}):(J=0,$=0,Lt=0,Tt=0),{x:J,y:Lt,minX:J,minY:Lt,maxX:$,maxY:Tt,width:$-J,height:Tt-Lt}},K.prototype.getDefaultCfg=function(){var J=xt.prototype.getDefaultCfg.call(this);return J.children=[],J},K.prototype.onAttrChange=function(J,$,Lt){if(xt.prototype.onAttrChange.call(this,J,$,Lt),"matrix"===J){var Tt=this.getTotalMatrix();this._applyChildrenMarix(Tt)}},K.prototype.applyMatrix=function(J){var $=this.getTotalMatrix();xt.prototype.applyMatrix.call(this,J);var Lt=this.getTotalMatrix();Lt!==$&&this._applyChildrenMarix(Lt)},K.prototype._applyChildrenMarix=function(J){var $=this.getChildren();(0,ie.S6)($,function(Lt){Lt.applyMatrix(J)})},K.prototype.addShape=function(){for(var J=[],$=0;$=0;lt--){var Z=J[lt];if((0,ie.pP)(Z)&&(Z.isGroup()?Ft=Z.getShape($,Lt,Tt):Z.isHit($,Lt)&&(Ft=Z)),Ft)break}return Ft},K.prototype.add=function(J){var $=this.getCanvas(),Lt=this.getChildren(),Tt=this.get("timeline"),Ft=J.getParent();Ft&&function mt(xt,K,J){void 0===J&&(J=!0),J?K.destroy():(K.set("parent",null),K.set("canvas",null)),(0,ie.As)(xt.getChildren(),K)}(Ft,J,!1),J.set("parent",this),$&&bt(J,$),Tt&&kt(J,Tt),Lt.push(J),J.onCanvasChange("add"),this._applyElementMatrix(J)},K.prototype._applyElementMatrix=function(J){var $=this.getTotalMatrix();$&&J.applyMatrix($)},K.prototype.getChildren=function(){return this.get("children")},K.prototype.sort=function(){var J=this.getChildren();(0,ie.S6)(J,function($,Lt){return $[zt]=Lt,$}),J.sort(function te(xt){return function(K,J){var $=xt(K,J);return 0===$?K[zt]-J[zt]:$}}(function($,Lt){return $.get("zIndex")-Lt.get("zIndex")})),this.onCanvasChange("sort")},K.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var J=this.getChildren(),$=J.length-1;$>=0;$--)J[$].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},K.prototype.destroy=function(){this.get("destroyed")||(this.clear(),xt.prototype.destroy.call(this))},K.prototype.getFirst=function(){return this.getChildByIndex(0)},K.prototype.getLast=function(){var J=this.getChildren();return this.getChildByIndex(J.length-1)},K.prototype.getChildByIndex=function(J){return this.getChildren()[J]},K.prototype.getCount=function(){return this.getChildren().length},K.prototype.contain=function(J){return this.getChildren().indexOf(J)>-1},K.prototype.removeChild=function(J,$){void 0===$&&($=!0),this.contain(J)&&J.remove($)},K.prototype.findAll=function(J){var $=[],Lt=this.getChildren();return(0,ie.S6)(Lt,function(Tt){J(Tt)&&$.push(Tt),Tt.isGroup()&&($=$.concat(Tt.findAll(J)))}),$},K.prototype.find=function(J){var $=null,Lt=this.getChildren();return(0,ie.S6)(Lt,function(Tt){if(J(Tt)?$=Tt:Tt.isGroup()&&($=Tt.find(J)),$)return!1}),$},K.prototype.findById=function(J){return this.find(function($){return $.get("id")===J})},K.prototype.findByClassName=function(J){return this.find(function($){return $.get("className")===J})},K.prototype.findAllByName=function(J){return this.findAll(function($){return $.get("name")===J})},K}(Et.Z)},8085:(Ne,ae,V)=>{"use strict";V.d(ae,{Z:()=>Tt});var Vt=V(7582),Et=V(6641),ie=V(8438),qt=V(5412),zt=V(8296),bt=V(8604),kt=ie.vs,ht="matrix",mt=["zIndex","capture","visible","type"],te=["repeat"];function K(Ft,lt){var Z={},u=lt.attrs;for(var ct in Ft)Z[ct]=u[ct];return Z}const Tt=function(Ft){function lt(Z){var u=Ft.call(this,Z)||this;u.attrs={};var ct=u.getDefaultAttrs();return(0,Et.CD)(ct,Z.attrs),u.attrs=ct,u.initAttrs(ct),u.initAnimate(),u}return(0,Vt.ZT)(lt,Ft),lt.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},lt.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},lt.prototype.onCanvasChange=function(Z){},lt.prototype.initAttrs=function(Z){},lt.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},lt.prototype.isGroup=function(){return!1},lt.prototype.getParent=function(){return this.get("parent")},lt.prototype.getCanvas=function(){return this.get("canvas")},lt.prototype.attr=function(){for(var Z,u=[],ct=0;ct0?Mt=function $(Ft,lt){if(lt.onFrame)return Ft;var Z=lt.startTime,u=lt.delay,ct=lt.duration,Mt=Object.prototype.hasOwnProperty;return(0,Et.S6)(Ft,function(Jt){Z+uJt.delay&&(0,Et.S6)(lt.toAttrs,function(jt,et){Mt.call(Jt.toAttrs,et)&&(delete Jt.toAttrs[et],delete Jt.fromAttrs[et])})}),Ft}(Mt,L):ct.addAnimator(this),Mt.push(L),this.set("animations",Mt),this.set("_pause",{isPaused:!1})}},lt.prototype.stopAnimate=function(Z){var u=this;void 0===Z&&(Z=!0);var ct=this.get("animations");(0,Et.S6)(ct,function(Mt){Z&&u.attr(Mt.onFrame?Mt.onFrame(1):Mt.toAttrs),Mt.callback&&Mt.callback()}),this.set("animating",!1),this.set("animations",[])},lt.prototype.pauseAnimate=function(){var Z=this.get("timeline"),u=this.get("animations"),ct=Z.getTime();return(0,Et.S6)(u,function(Mt){Mt._paused=!0,Mt._pauseTime=ct,Mt.pauseCallback&&Mt.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:ct}),this},lt.prototype.resumeAnimate=function(){var u=this.get("timeline").getTime(),ct=this.get("animations"),Mt=this.get("_pause").pauseTime;return(0,Et.S6)(ct,function(Jt){Jt.startTime=Jt.startTime+(u-Mt),Jt._paused=!1,Jt._pauseTime=null,Jt.resumeCallback&&Jt.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",ct),this},lt.prototype.emitDelegation=function(Z,u){var jt,ct=this,Mt=u.propagationPath;this.getEvents(),"mouseenter"===Z?jt=u.fromShape:"mouseleave"===Z&&(jt=u.toShape);for(var et=function(vt){var ut=Mt[vt],_=ut.get("name");if(_){if((ut.isGroup()||ut.isCanvas&&ut.isCanvas())&&jt&&(0,qt.UY)(ut,jt))return"break";(0,Et.kJ)(_)?(0,Et.S6)(_,function(B){ct.emitDelegateEvent(ut,B,u)}):ft.emitDelegateEvent(ut,_,u)}},ft=this,Ht=0;Ht{"use strict";V.d(ae,{Z:()=>qt});var Vt=V(7582);const qt=function(zt){function bt(){return null!==zt&&zt.apply(this,arguments)||this}return(0,Vt.ZT)(bt,zt),bt.prototype.isGroup=function(){return!0},bt.prototype.isEntityGroup=function(){return!1},bt.prototype.clone=function(){for(var kt=zt.prototype.clone.call(this),ht=this.getChildren(),mt=0;mt{"use strict";V.d(ae,{Z:()=>zt});var Vt=V(7582),Et=V(8085),ie=V(8296);const zt=function(bt){function kt(ht){return bt.call(this,ht)||this}return(0,Vt.ZT)(kt,bt),kt.prototype._isInBBox=function(ht,mt){var te=this.getBBox();return te.minX<=ht&&te.maxX>=ht&&te.minY<=mt&&te.maxY>=mt},kt.prototype.afterAttrsChange=function(ht){bt.prototype.afterAttrsChange.call(this,ht),this.clearCacheBBox()},kt.prototype.getBBox=function(){var ht=this.cfg.bbox;return ht||(ht=this.calculateBBox(),this.set("bbox",ht)),ht},kt.prototype.getCanvasBBox=function(){var ht=this.cfg.canvasBBox;return ht||(ht=this.calculateCanvasBBox(),this.set("canvasBBox",ht)),ht},kt.prototype.applyMatrix=function(ht){bt.prototype.applyMatrix.call(this,ht),this.set("canvasBBox",null)},kt.prototype.calculateCanvasBBox=function(){var ht=this.getBBox(),mt=this.getTotalMatrix(),te=ht.minX,Bt=ht.minY,Qt=ht.maxX,xt=ht.maxY;if(mt){var K=(0,ie.rG)(mt,[ht.minX,ht.minY]),J=(0,ie.rG)(mt,[ht.maxX,ht.minY]),$=(0,ie.rG)(mt,[ht.minX,ht.maxY]),Lt=(0,ie.rG)(mt,[ht.maxX,ht.maxY]);te=Math.min(K[0],J[0],$[0],Lt[0]),Qt=Math.max(K[0],J[0],$[0],Lt[0]),Bt=Math.min(K[1],J[1],$[1],Lt[1]),xt=Math.max(K[1],J[1],$[1],Lt[1])}var Tt=this.attrs;if(Tt.shadowColor){var Ft=Tt.shadowBlur,lt=void 0===Ft?0:Ft,Z=Tt.shadowOffsetX,u=void 0===Z?0:Z,ct=Tt.shadowOffsetY,Mt=void 0===ct?0:ct,jt=Qt+lt+u,et=Bt-lt+Mt,ft=xt+lt+Mt;te=Math.min(te,te-lt+u),Qt=Math.max(Qt,jt),Bt=Math.min(Bt,et),xt=Math.max(xt,ft)}return{x:te,y:Bt,minX:te,minY:Bt,maxX:Qt,maxY:xt,width:Qt-te,height:xt-Bt}},kt.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},kt.prototype.isClipShape=function(){return this.get("isClipShape")},kt.prototype.isInShape=function(ht,mt){return!1},kt.prototype.isOnlyHitBox=function(){return!1},kt.prototype.isHit=function(ht,mt){var te=this.get("startArrowShape"),Bt=this.get("endArrowShape"),Qt=[ht,mt,1],xt=(Qt=this.invertFromMatrix(Qt))[0],K=Qt[1],J=this._isInBBox(xt,K);return this.isOnlyHitBox()?J:!(!J||this.isClipped(xt,K)||!(this.isInShape(xt,K)||te&&te.isHit(xt,K)||Bt&&Bt.isHit(xt,K)))},kt}(Et.Z)},3532:(Ne,ae,V)=>{"use strict";V.d(ae,{_:()=>F,C:()=>R});var Vt={};function Et(O){return+O}function ie(O){return O*O}function qt(O){return O*(2-O)}function zt(O){return((O*=2)<=1?O*O:--O*(2-O)+1)/2}function bt(O){return O*O*O}function kt(O){return--O*O*O+1}function ht(O){return((O*=2)<=1?O*O*O:(O-=2)*O*O+2)/2}V.r(Vt),V.d(Vt,{easeBack:()=>G,easeBackIn:()=>L,easeBackInOut:()=>G,easeBackOut:()=>Y,easeBounce:()=>Rt,easeBounceIn:()=>dt,easeBounceInOut:()=>Zt,easeBounceOut:()=>Rt,easeCircle:()=>Mt,easeCircleIn:()=>u,easeCircleInOut:()=>Mt,easeCircleOut:()=>ct,easeCubic:()=>ht,easeCubicIn:()=>bt,easeCubicInOut:()=>ht,easeCubicOut:()=>kt,easeElastic:()=>I,easeElasticIn:()=>k,easeElasticInOut:()=>w,easeElasticOut:()=>I,easeExp:()=>Z,easeExpIn:()=>Ft,easeExpInOut:()=>Z,easeExpOut:()=>lt,easeLinear:()=>Et,easePoly:()=>Qt,easePolyIn:()=>te,easePolyInOut:()=>Qt,easePolyOut:()=>Bt,easeQuad:()=>zt,easeQuadIn:()=>ie,easeQuadInOut:()=>zt,easeQuadOut:()=>qt,easeSin:()=>Lt,easeSinIn:()=>J,easeSinInOut:()=>Lt,easeSinOut:()=>$});var te=function O(j){function Q(gt){return Math.pow(gt,j)}return j=+j,Q.exponent=O,Q}(3),Bt=function O(j){function Q(gt){return 1-Math.pow(1-gt,j)}return j=+j,Q.exponent=O,Q}(3),Qt=function O(j){function Q(gt){return((gt*=2)<=1?Math.pow(gt,j):2-Math.pow(2-gt,j))/2}return j=+j,Q.exponent=O,Q}(3),xt=Math.PI,K=xt/2;function J(O){return 1==+O?1:1-Math.cos(O*K)}function $(O){return Math.sin(O*K)}function Lt(O){return(1-Math.cos(xt*O))/2}function Tt(O){return 1.0009775171065494*(Math.pow(2,-10*O)-.0009765625)}function Ft(O){return Tt(1-+O)}function lt(O){return 1-Tt(O)}function Z(O){return((O*=2)<=1?Tt(1-O):2-Tt(O-1))/2}function u(O){return 1-Math.sqrt(1-O*O)}function ct(O){return Math.sqrt(1- --O*O)}function Mt(O){return((O*=2)<=1?1-Math.sqrt(1-O*O):Math.sqrt(1-(O-=2)*O)+1)/2}var Jt=4/11,jt=6/11,et=8/11,ft=3/4,Ht=9/11,Ct=10/11,vt=15/16,ut=21/22,_=63/64,B=1/Jt/Jt;function dt(O){return 1-Rt(1-O)}function Rt(O){return(O=+O){"use strict";V.d(ae,{b:()=>ie,W:()=>Et});var Vt=new Map;function Et(lt,Z){Vt.set(lt,Z)}function ie(lt){return Vt.get(lt)}function qt(lt){var Z=lt.attr();return{x:Z.x,y:Z.y,width:Z.width,height:Z.height}}function zt(lt){var Z=lt.attr(),Mt=Z.r;return{x:Z.x-Mt,y:Z.y-Mt,width:2*Mt,height:2*Mt}}var bt=V(4137);function kt(lt,Z){return lt&&Z?{minX:Math.min(lt.minX,Z.minX),minY:Math.min(lt.minY,Z.minY),maxX:Math.max(lt.maxX,Z.maxX),maxY:Math.max(lt.maxY,Z.maxY)}:lt||Z}function ht(lt,Z){var u=lt.get("startArrowShape"),ct=lt.get("endArrowShape");return u&&(Z=kt(Z,u.getCanvasBBox())),ct&&(Z=kt(Z,ct.getCanvasBBox())),Z}var Bt=V(6026),xt=V(575),K=V(6641);function $(lt,Z){var u=lt.prePoint,ct=lt.currentPoint,Mt=lt.nextPoint,Jt=Math.pow(ct[0]-u[0],2)+Math.pow(ct[1]-u[1],2),jt=Math.pow(ct[0]-Mt[0],2)+Math.pow(ct[1]-Mt[1],2),et=Math.pow(u[0]-Mt[0],2)+Math.pow(u[1]-Mt[1],2),ft=Math.acos((Jt+jt-et)/(2*Math.sqrt(Jt)*Math.sqrt(jt)));if(!ft||0===Math.sin(ft)||(0,K.vQ)(ft,0))return{xExtra:0,yExtra:0};var Ht=Math.abs(Math.atan2(Mt[1]-ct[1],Mt[0]-ct[0])),Ct=Math.abs(Math.atan2(Mt[0]-ct[0],Mt[1]-ct[1]));return Ht=Ht>Math.PI/2?Math.PI-Ht:Ht,Ct=Ct>Math.PI/2?Math.PI-Ct:Ct,{xExtra:Math.cos(ft/2-Ht)*(Z/2*(1/Math.sin(ft/2)))-Z/2||0,yExtra:Math.cos(Ct-ft/2)*(Z/2*(1/Math.sin(ft/2)))-Z/2||0}}Et("rect",qt),Et("image",qt),Et("circle",zt),Et("marker",zt),Et("polyline",function mt(lt){for(var u=lt.attr().points,ct=[],Mt=[],Jt=0;Jt{"use strict";V.d(ae,{Z:()=>Et});const Et=function(){function ie(qt,zt){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=qt,this.name=qt,this.originalEvent=zt,this.timeStamp=zt.timeStamp}return ie.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},ie.prototype.stopPropagation=function(){this.propagationStopped=!0},ie.prototype.toString=function(){return"[Event (type="+this.type+")]"},ie.prototype.save=function(){},ie.prototype.restore=function(){},ie}()},659:(Ne,ae,V)=>{"use strict";V.r(ae),V.d(ae,{AbstractCanvas:()=>mt.Z,AbstractGroup:()=>te.Z,AbstractShape:()=>Bt.Z,Base:()=>ht.Z,Event:()=>kt.Z,PathUtil:()=>Vt,assembleFont:()=>xt.$O,getBBoxMethod:()=>Qt.b,getOffScreenContext:()=>$.L,getTextHeight:()=>xt.FE,invert:()=>J.U_,isAllowCapture:()=>K.pP,multiplyVec2:()=>J.rG,registerBBox:()=>Qt.W,registerEasing:()=>Lt.C,version:()=>Tt});var Vt=V(92),Et=V(7257),bt={};for(const Ft in Et)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(Ft)<0&&(bt[Ft]=()=>Et[Ft]);V.d(ae,bt);var qt=V(8355);bt={};for(const Ft in qt)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(Ft)<0&&(bt[Ft]=()=>qt[Ft]);V.d(ae,bt);var kt=V(713),ht=V(8604),mt=V(7281),te=V(289),Bt=V(7979),Qt=V(6233),xt=V(6026),K=V(5412),J=V(8296),$=V(9441),Lt=V(3532),Tt="0.5.11"},8355:()=>{},7257:()=>{},8296:(Ne,ae,V)=>{"use strict";function Vt(qt,zt){var bt=[],kt=qt[0],ht=qt[1],mt=qt[2],te=qt[3],Bt=qt[4],Qt=qt[5],xt=qt[6],K=qt[7],J=qt[8],$=zt[0],Lt=zt[1],Tt=zt[2],Ft=zt[3],lt=zt[4],Z=zt[5],u=zt[6],ct=zt[7],Mt=zt[8];return bt[0]=$*kt+Lt*te+Tt*xt,bt[1]=$*ht+Lt*Bt+Tt*K,bt[2]=$*mt+Lt*Qt+Tt*J,bt[3]=Ft*kt+lt*te+Z*xt,bt[4]=Ft*ht+lt*Bt+Z*K,bt[5]=Ft*mt+lt*Qt+Z*J,bt[6]=u*kt+ct*te+Mt*xt,bt[7]=u*ht+ct*Bt+Mt*K,bt[8]=u*mt+ct*Qt+Mt*J,bt}function Et(qt,zt){var bt=[],kt=zt[0],ht=zt[1];return bt[0]=qt[0]*kt+qt[3]*ht+qt[6],bt[1]=qt[1]*kt+qt[4]*ht+qt[7],bt}function ie(qt){var zt=[],bt=qt[0],kt=qt[1],ht=qt[2],mt=qt[3],te=qt[4],Bt=qt[5],Qt=qt[6],xt=qt[7],K=qt[8],J=K*te-Bt*xt,$=-K*mt+Bt*Qt,Lt=xt*mt-te*Qt,Tt=bt*J+kt*$+ht*Lt;return Tt?(zt[0]=J*(Tt=1/Tt),zt[1]=(-K*kt+ht*xt)*Tt,zt[2]=(Bt*kt-ht*te)*Tt,zt[3]=$*Tt,zt[4]=(K*bt-ht*Qt)*Tt,zt[5]=(-Bt*bt+ht*mt)*Tt,zt[6]=Lt*Tt,zt[7]=(-xt*bt+kt*Qt)*Tt,zt[8]=(te*bt-kt*mt)*Tt,zt):null}V.d(ae,{U_:()=>ie,rG:()=>Et,xq:()=>Vt})},9441:(Ne,ae,V)=>{"use strict";V.d(ae,{L:()=>Et});var Vt=null;function Et(){if(!Vt){var ie=document.createElement("canvas");ie.width=1,ie.height=1,Vt=ie.getContext("2d")}return Vt}},92:(Ne,ae,V)=>{"use strict";V.r(ae),V.d(ae,{catmullRomToBezier:()=>bt,fillPath:()=>vt,fillPathByDiff:()=>dt,formatPath:()=>oe,intersection:()=>et,parsePathArray:()=>K,parsePathString:()=>zt,pathToAbsolute:()=>ht,pathToCurve:()=>Qt,rectPath:()=>lt});var Vt=V(6641),Et="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",ie=new RegExp("([a-z])["+Et+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Et+"]*,?["+Et+"]*)+)","ig"),qt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Et+"]*,?["+Et+"]*","ig"),zt=function(L){if(!L)return null;if((0,Vt.kJ)(L))return L;var Y={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},G=[];return String(L).replace(ie,function(D,nt,st){var k=[],I=nt.toLowerCase();if(st.replace(qt,function(w,A){A&&k.push(+A)}),"m"===I&&k.length>2&&(G.push([nt].concat(k.splice(0,2))),I="l",nt="m"===nt?"l":"L"),"o"===I&&1===k.length&&G.push([nt,k[0]]),"r"===I)G.push([nt].concat(k));else for(;k.length>=Y[I]&&(G.push([nt].concat(k.splice(0,Y[I]))),Y[I]););return L}),G},bt=function(L,Y){for(var G=[],D=0,nt=L.length;nt-2*!Y>D;D+=2){var st=[{x:+L[D-2],y:+L[D-1]},{x:+L[D],y:+L[D+1]},{x:+L[D+2],y:+L[D+3]},{x:+L[D+4],y:+L[D+5]}];Y?D?nt-4===D?st[3]={x:+L[0],y:+L[1]}:nt-2===D&&(st[2]={x:+L[0],y:+L[1]},st[3]={x:+L[2],y:+L[3]}):st[0]={x:+L[nt-2],y:+L[nt-1]}:nt-4===D?st[3]=st[2]:D||(st[0]={x:+L[D],y:+L[D+1]}),G.push(["C",(6*st[1].x-st[0].x+st[2].x)/6,(6*st[1].y-st[0].y+st[2].y)/6,(st[1].x+6*st[2].x-st[3].x)/6,(st[1].y+6*st[2].y-st[3].y)/6,st[2].x,st[2].y])}return G},kt=function(L,Y,G,D,nt){var st=[];if(null===nt&&null===D&&(D=G),L=+L,Y=+Y,G=+G,D=+D,null!==nt){var k=Math.PI/180,I=L+G*Math.cos(-D*k),w=L+G*Math.cos(-nt*k);st=[["M",I,Y+G*Math.sin(-D*k)],["A",G,G,0,+(nt-D>180),0,w,Y+G*Math.sin(-nt*k)]]}else st=[["M",L,Y],["m",0,-D],["a",G,D,0,1,1,0,2*D],["a",G,D,0,1,1,0,-2*D],["z"]];return st},ht=function(L){if(!(L=zt(L))||!L.length)return[["M",0,0]];var I,w,Y=[],G=0,D=0,nt=0,st=0,k=0;"M"===L[0][0]&&(nt=G=+L[0][1],st=D=+L[0][2],k++,Y[0]=["M",G,D]);for(var A=3===L.length&&"M"===L[0][0]&&"R"===L[1][0].toUpperCase()&&"Z"===L[2][0].toUpperCase(),F=void 0,R=void 0,O=k,j=L.length;O1&&(G*=z=Math.sqrt(z),D*=z);var U=G*G,q=D*D,at=(st===k?-1:1)*Math.sqrt(Math.abs((U*q-U*Yt*Yt-q*Kt*Kt)/(U*Yt*Yt+q*Kt*Kt)));$t=at*G*Yt/D+(L+I)/2,Dt=at*-D*Kt/G+(Y+w)/2,Q=Math.asin(((Y-Dt)/D).toFixed(9)),gt=Math.asin(((w-Dt)/D).toFixed(9)),Q=L<$t?Math.PI-Q:Q,gt=I<$t?Math.PI-gt:gt,Q<0&&(Q=2*Math.PI+Q),gt<0&&(gt=2*Math.PI+gt),k&&Q>gt&&(Q-=2*Math.PI),!k&>>Q&&(gt-=2*Math.PI)}var At=gt-Q;if(Math.abs(At)>F){var Nt=gt,Ot=I,Pt=w;gt=Q+F*(k&>>Q?1:-1),I=$t+G*Math.cos(gt),w=Dt+D*Math.sin(gt),O=Bt(I,w,G,D,nt,0,k,Ot,Pt,[gt,Nt,$t,Dt])}At=gt-Q;var _t=Math.cos(Q),ne=Math.sin(Q),Wt=Math.cos(gt),de=Math.sin(gt),Ce=Math.tan(At/4),ce=4/3*G*Ce,xe=4/3*D*Ce,ye=[L,Y],we=[L+ce*ne,Y-xe*_t],he=[I+ce*de,w-xe*Wt],Te=[I,w];if(we[0]=2*ye[0]-we[0],we[1]=2*ye[1]-we[1],A)return[we,he,Te].concat(O);for(var Ie=[],Ae=0,De=(O=[we,he,Te].concat(O).join().split(",")).length;Ae7){Kt[Yt].shift();for(var z=Kt[Yt];z.length;)k[Yt]="A",D&&(I[Yt]="A"),Kt.splice(Yt++,0,["C"].concat(z.splice(0,6)));Kt.splice(Yt,1),F=Math.max(G.length,D&&D.length||0)}},j=function(Kt,Yt,z,U,q){Kt&&Yt&&"M"===Kt[q][0]&&"M"!==Yt[q][0]&&(Yt.splice(q,0,["M",U.x,U.y]),z.bx=0,z.by=0,z.x=Kt[q][1],z.y=Kt[q][2],F=Math.max(G.length,D&&D.length||0))};F=Math.max(G.length,D&&D.length||0);for(var Q=0;Q1?1:w<0?0:w)/2,R=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],O=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],j=0,Q=0;Q<12;Q++){var gt=A*R[Q]+A,$t=J(gt,L,G,nt,k),Dt=J(gt,Y,D,st,I);j+=O[Q]*Math.sqrt($t*$t+Dt*Dt)}return A*j},Lt=function(L,Y,G,D,nt,st,k,I){for(var F,R,O,j,w=[],A=[[],[]],Q=0;Q<2;++Q)if(0===Q?(R=6*L-12*G+6*nt,F=-3*L+9*G-9*nt+3*k,O=3*G-3*L):(R=6*Y-12*D+6*st,F=-3*Y+9*D-9*st+3*I,O=3*D-3*Y),Math.abs(F)<1e-12){if(Math.abs(R)<1e-12)continue;(j=-O/R)>0&&j<1&&w.push(j)}else{var gt=R*R-4*O*F,$t=Math.sqrt(gt);if(!(gt<0)){var Dt=(-R+$t)/(2*F);Dt>0&&Dt<1&&w.push(Dt);var se=(-R-$t)/(2*F);se>0&&se<1&&w.push(se)}}for(var z,Kt=w.length,Yt=Kt;Kt--;)A[0][Kt]=(z=1-(j=w[Kt]))*z*z*L+3*z*z*j*G+3*z*j*j*nt+j*j*j*k,A[1][Kt]=z*z*z*Y+3*z*z*j*D+3*z*j*j*st+j*j*j*I;return A[0][Yt]=L,A[1][Yt]=Y,A[0][Yt+1]=k,A[1][Yt+1]=I,A[0].length=A[1].length=Yt+2,{min:{x:Math.min.apply(0,A[0]),y:Math.min.apply(0,A[1])},max:{x:Math.max.apply(0,A[0]),y:Math.max.apply(0,A[1])}}},Tt=function(L,Y,G,D,nt,st,k,I){if(!(Math.max(L,G)Math.max(nt,k)||Math.max(Y,D)Math.max(st,I))){var F=(L-G)*(st-I)-(Y-D)*(nt-k);if(F){var R=((L*D-Y*G)*(nt-k)-(L-G)*(nt*I-st*k))/F,O=((L*D-Y*G)*(st-I)-(Y-D)*(nt*I-st*k))/F,j=+R.toFixed(2),Q=+O.toFixed(2);if(!(j<+Math.min(L,G).toFixed(2)||j>+Math.max(L,G).toFixed(2)||j<+Math.min(nt,k).toFixed(2)||j>+Math.max(nt,k).toFixed(2)||Q<+Math.min(Y,D).toFixed(2)||Q>+Math.max(Y,D).toFixed(2)||Q<+Math.min(st,I).toFixed(2)||Q>+Math.max(st,I).toFixed(2)))return{x:R,y:O}}}},Ft=function(L,Y,G){return Y>=L.x&&Y<=L.x+L.width&&G>=L.y&&G<=L.y+L.height},lt=function(L,Y,G,D,nt){if(nt)return[["M",+L+ +nt,Y],["l",G-2*nt,0],["a",nt,nt,0,0,1,nt,nt],["l",0,D-2*nt],["a",nt,nt,0,0,1,-nt,nt],["l",2*nt-G,0],["a",nt,nt,0,0,1,-nt,-nt],["l",0,2*nt-D],["a",nt,nt,0,0,1,nt,-nt],["z"]];var st=[["M",L,Y],["l",G,0],["l",0,D],["l",-G,0],["z"]];return st.parsePathArray=K,st},Z=function(L,Y,G,D){return null===L&&(L=Y=G=D=0),null===Y&&(Y=L.y,G=L.width,D=L.height,L=L.x),{x:L,y:Y,width:G,w:G,height:D,h:D,x2:L+G,y2:Y+D,cx:L+G/2,cy:Y+D/2,r1:Math.min(G,D)/2,r2:Math.max(G,D)/2,r0:Math.sqrt(G*G+D*D)/2,path:lt(L,Y,G,D),vb:[L,Y,G,D].join(" ")}},ct=function(L,Y,G,D,nt,st,k,I){(0,Vt.kJ)(L)||(L=[L,Y,G,D,nt,st,k,I]);var w=Lt.apply(null,L);return Z(w.min.x,w.min.y,w.max.x-w.min.x,w.max.y-w.min.y)},Mt=function(L,Y,G,D,nt,st,k,I,w){var A=1-w,F=Math.pow(A,3),R=Math.pow(A,2),O=w*w,j=O*w,$t=L+2*w*(G-L)+O*(nt-2*G+L),Dt=Y+2*w*(D-Y)+O*(st-2*D+Y),se=G+2*w*(nt-G)+O*(k-2*nt+G),Kt=D+2*w*(st-D)+O*(I-2*st+D);return{x:F*L+3*R*w*G+3*A*w*w*nt+j*k,y:F*Y+3*R*w*D+3*A*w*w*st+j*I,m:{x:$t,y:Dt},n:{x:se,y:Kt},start:{x:A*L+w*G,y:A*Y+w*D},end:{x:A*nt+w*k,y:A*st+w*I},alpha:90-180*Math.atan2($t-se,Dt-Kt)/Math.PI}},Jt=function(L,Y,G){if(!function(L,Y){return L=Z(L),Y=Z(Y),Ft(Y,L.x,L.y)||Ft(Y,L.x2,L.y)||Ft(Y,L.x,L.y2)||Ft(Y,L.x2,L.y2)||Ft(L,Y.x,Y.y)||Ft(L,Y.x2,Y.y)||Ft(L,Y.x,Y.y2)||Ft(L,Y.x2,Y.y2)||(L.xY.x||Y.xL.x)&&(L.yY.y||Y.yL.y)}(ct(L),ct(Y)))return G?0:[];for(var I=~~($.apply(0,L)/8),w=~~($.apply(0,Y)/8),A=[],F=[],R={},O=G?0:[],j=0;j=0&&q<=1&&at>=0&&at<=1&&(G?O+=1:O.push({x:U.x,y:U.y,t1:q,t2:at}))}}return O},et=function(L,Y){return function(L,Y,G){L=Qt(L),Y=Qt(Y);for(var D,nt,st,k,I,w,A,F,R,O,j=[],Q=0,gt=L.length;Q=3&&(3===R.length&&O.push("Q"),O=O.concat(R[1])),2===R.length&&O.push("L"),O.concat(R[R.length-1])})}(L,Y,G));else{var nt=[].concat(L);"M"===nt[0]&&(nt[0]="L");for(var st=0;st<=G-1;st++)D.push(nt)}return D}(L[R],L[R+1],F))},[]);return w.unshift(L[0]),("Z"===Y[D]||"z"===Y[D])&&w.push("Z"),w},ut=function(L,Y){if(L.length!==Y.length)return!1;var G=!0;return(0,Vt.S6)(L,function(D,nt){if(D!==Y[nt])return G=!1,!1}),G};function _(L,Y,G){var D=null,nt=G;return Y=0;w--)k=st[w].index,"add"===st[w].type?L.splice(k,0,[].concat(L[k])):L.splice(k,1)}var R=nt-(D=L.length);if(D0)){L[D]=Y[D];break}G=Rt(G,L[D-1],1)}L[D]=["Q"].concat(G.reduce(function(nt,st){return nt.concat(st)},[]));break;case"T":L[D]=["T"].concat(G[0]);break;case"C":if(G.length<3){if(!(D>0)){L[D]=Y[D];break}G=Rt(G,L[D-1],2)}L[D]=["C"].concat(G.reduce(function(nt,st){return nt.concat(st)},[]));break;case"S":if(G.length<2){if(!(D>0)){L[D]=Y[D];break}G=Rt(G,L[D-1],1)}L[D]=["S"].concat(G.reduce(function(nt,st){return nt.concat(st)},[]));break;default:L[D]=Y[D]}return L}},6026:(Ne,ae,V)=>{"use strict";V.d(ae,{$O:()=>bt,FE:()=>ie,mY:()=>zt});var Vt=V(5412),Et=V(9441);function ie(kt,ht,mt){var te=1;if((0,Vt.HD)(kt)&&(te=kt.split("\n").length),te>1){var Bt=function qt(kt,ht){return ht?ht-kt:.14*kt}(ht,mt);return ht*te+Bt*(te-1)}return ht}function zt(kt,ht){var mt=(0,Et.L)(),te=0;if((0,Vt.kK)(kt)||""===kt)return te;if(mt.save(),mt.font=ht,(0,Vt.HD)(kt)&&kt.includes("\n")){var Bt=kt.split("\n");(0,Vt.S6)(Bt,function(Qt){var xt=mt.measureText(Qt).width;te{"use strict";V.d(ae,{As:()=>Et,CD:()=>Vt.CD,HD:()=>Vt.HD,Kn:()=>Vt.Kn,S6:()=>Vt.S6,UY:()=>qt,jC:()=>Vt.jC,jU:()=>ie,kK:()=>Vt.UM,mf:()=>Vt.mf,pP:()=>zt});var Vt=V(6641);function Et(bt,kt){var ht=bt.indexOf(kt);-1!==ht&&bt.splice(ht,1)}var ie=typeof window<"u"&&typeof window.document<"u";function qt(bt,kt){if(bt.isCanvas())return!0;for(var ht=kt.getParent(),mt=!1;ht;){if(ht===bt){mt=!0;break}ht=ht.getParent()}return mt}function zt(bt){return bt.cfg.visible&&bt.cfg.capture}},4137:(Ne,ae,V)=>{"use strict";V.d(ae,{wN:()=>Rt,Ll:()=>Mt,x1:()=>mt,aH:()=>D,lD:()=>Tt,Zr:()=>Vt});var Vt={};V.r(Vt),V.d(Vt,{distance:()=>ie,getBBoxByArray:()=>zt,getBBoxRange:()=>bt,isNumberEqual:()=>qt,piMod:()=>kt});var Et=V(6641);function ie(k,I,w,A){var F=k-w,R=I-A;return Math.sqrt(F*F+R*R)}function qt(k,I){return Math.abs(k-I)<.001}function zt(k,I){var w=(0,Et.VV)(k),A=(0,Et.VV)(I);return{x:w,y:A,width:(0,Et.Fp)(k)-w,height:(0,Et.Fp)(I)-A}}function bt(k,I,w,A){return{minX:(0,Et.VV)([k,w]),maxX:(0,Et.Fp)([k,w]),minY:(0,Et.VV)([I,A]),maxY:(0,Et.Fp)([I,A])}}function kt(k){return(k+2*Math.PI)%(2*Math.PI)}var ht=V(7367);const mt={box:function(k,I,w,A){return zt([k,w],[I,A])},length:function(k,I,w,A){return ie(k,I,w,A)},pointAt:function(k,I,w,A,F){return{x:(1-F)*k+F*w,y:(1-F)*I+F*A}},pointDistance:function(k,I,w,A,F,R){var O=(w-k)*(F-k)+(A-I)*(R-I);return O<0?ie(k,I,F,R):O>(w-k)*(w-k)+(A-I)*(A-I)?ie(w,A,F,R):this.pointToLine(k,I,w,A,F,R)},pointToLine:function(k,I,w,A,F,R){var O=[w-k,A-I];if(ht.I6(O,[0,0]))return Math.sqrt((F-k)*(F-k)+(R-I)*(R-I));var j=[-O[1],O[0]];return ht.Fv(j,j),Math.abs(ht.AK([F-k,R-I],j))},tangentAngle:function(k,I,w,A){return Math.atan2(A-I,w-k)}};function Bt(k,I,w,A,F,R){var O,j=1/0,Q=[w,A],gt=20;R&&R>200&&(gt=R/10);for(var $t=1/gt,Dt=$t/10,se=0;se<=gt;se++){var Kt=se*$t,Yt=[F.apply(null,k.concat([Kt])),F.apply(null,I.concat([Kt]))];(z=ie(Q[0],Q[1],Yt[0],Yt[1]))=0&&z=0?[F]:[]}function J(k,I,w,A){return 2*(1-A)*(I-k)+2*A*(w-I)}function $(k,I,w,A,F,R,O){var j=xt(k,w,F,O),Q=xt(I,A,R,O),gt=mt.pointAt(k,I,w,A,O),$t=mt.pointAt(w,A,F,R,O);return[[k,I,gt.x,gt.y,j,Q],[j,Q,$t.x,$t.y,F,R]]}function Lt(k,I,w,A,F,R,O){if(0===O)return(ie(k,I,w,A)+ie(w,A,F,R)+ie(k,I,F,R))/2;var j=$(k,I,w,A,F,R,.5),Q=j[0],gt=j[1];return Q.push(O-1),gt.push(O-1),Lt.apply(null,Q)+Lt.apply(null,gt)}const Tt={box:function(k,I,w,A,F,R){var O=K(k,w,F)[0],j=K(I,A,R)[0],Q=[k,F],gt=[I,R];return void 0!==O&&Q.push(xt(k,w,F,O)),void 0!==j&>.push(xt(I,A,R,j)),zt(Q,gt)},length:function(k,I,w,A,F,R){return Lt(k,I,w,A,F,R,3)},nearestPoint:function(k,I,w,A,F,R,O,j){return Bt([k,w,F],[I,A,R],O,j,xt)},pointDistance:function(k,I,w,A,F,R,O,j){var Q=this.nearestPoint(k,I,w,A,F,R,O,j);return ie(Q.x,Q.y,O,j)},interpolationAt:xt,pointAt:function(k,I,w,A,F,R,O){return{x:xt(k,w,F,O),y:xt(I,A,R,O)}},divide:function(k,I,w,A,F,R,O){return $(k,I,w,A,F,R,O)},tangentAngle:function(k,I,w,A,F,R,O){var j=J(k,w,F,O),Q=J(I,A,R,O);return kt(Math.atan2(Q,j))}};function Ft(k,I,w,A,F){var R=1-F;return R*R*R*k+3*I*F*R*R+3*w*F*F*R+A*F*F*F}function lt(k,I,w,A,F){var R=1-F;return 3*(R*R*(I-k)+2*R*F*(w-I)+F*F*(A-w))}function Z(k,I,w,A){var Q,gt,$t,F=-3*k+9*I-9*w+3*A,R=6*k-12*I+6*w,O=3*I-3*k,j=[];if(qt(F,0))qt(R,0)||(Q=-O/R)>=0&&Q<=1&&j.push(Q);else{var Dt=R*R-4*F*O;qt(Dt,0)?j.push(-R/(2*F)):Dt>0&&(gt=(-R-($t=Math.sqrt(Dt)))/(2*F),(Q=(-R+$t)/(2*F))>=0&&Q<=1&&j.push(Q),gt>=0&><=1&&j.push(gt))}return j}function u(k,I,w,A,F,R,O,j,Q){var gt=Ft(k,w,F,O,Q),$t=Ft(I,A,R,j,Q),Dt=mt.pointAt(k,I,w,A,Q),se=mt.pointAt(w,A,F,R,Q),Kt=mt.pointAt(F,R,O,j,Q),Yt=mt.pointAt(Dt.x,Dt.y,se.x,se.y,Q),z=mt.pointAt(se.x,se.y,Kt.x,Kt.y,Q);return[[k,I,Dt.x,Dt.y,Yt.x,Yt.y,gt,$t],[gt,$t,z.x,z.y,Kt.x,Kt.y,O,j]]}function ct(k,I,w,A,F,R,O,j,Q){if(0===Q)return function Qt(k,I){for(var w=0,A=k.length,F=0;F0?w:-1*w}function vt(k,I,w,A,F,R){return w*Math.cos(F)*Math.cos(R)-A*Math.sin(F)*Math.sin(R)+k}function ut(k,I,w,A,F,R){return w*Math.sin(F)*Math.cos(R)+A*Math.cos(F)*Math.sin(R)+I}function B(k,I,w){return{x:k*Math.cos(w),y:I*Math.sin(w)}}function dt(k,I,w){var A=Math.cos(w),F=Math.sin(w);return[k*A-I*F,k*F+I*A]}const Rt={box:function(k,I,w,A,F,R,O){for(var j=function Ht(k,I,w){return Math.atan(-I/k*Math.tan(w))}(w,A,F),Q=1/0,gt=-1/0,$t=[R,O],Dt=2*-Math.PI;Dt<=2*Math.PI;Dt+=Math.PI){var se=j+Dt;Rgt&&(gt=Kt)}var Yt=function Ct(k,I,w){return Math.atan(I/(k*Math.tan(w)))}(w,A,F),z=1/0,U=-1/0,q=[R,O];for(Dt=2*-Math.PI;Dt<=2*Math.PI;Dt+=Math.PI){var at=Yt+Dt;RU&&(U=At)}return{x:Q,y:z,width:gt-Q,height:U-z}},length:function(k,I,w,A,F,R,O){},nearestPoint:function(k,I,w,A,F,R,O,j,Q){var gt=dt(j-k,Q-I,-F),se=function(k,I,w,A,F,R){var O=w,j=A;if(0===O||0===j)return{x:k,y:I};for(var z,U,Q=F-k,gt=R-I,$t=Math.abs(Q),Dt=Math.abs(gt),se=O*O,Kt=j*j,Yt=Math.PI/4,q=0;q<4;q++){z=O*Math.cos(Yt),U=j*Math.sin(Yt);var at=(se-Kt)*Math.pow(Math.cos(Yt),3)/O,At=(Kt-se)*Math.pow(Math.sin(Yt),3)/j,Nt=z-at,Ot=U-At,Pt=$t-at,_t=Dt-At,ne=Math.hypot(Ot,Nt),Wt=Math.hypot(_t,Pt);Yt+=ne*Math.asin((Nt*_t-Ot*Pt)/(ne*Wt))/Math.sqrt(se+Kt-z*z-U*U),Yt=Math.min(Math.PI/2,Math.max(0,Yt))}return{x:k+Jt(z,Q),y:I+Jt(U,gt)}}(0,0,w,A,gt[0],gt[1]),Kt=function _(k,I,w,A){return(Math.atan2(A*k,w*I)+2*Math.PI)%(2*Math.PI)}(w,A,se.x,se.y);KtO&&(se=B(w,A,O));var Yt=dt(se.x,se.y,F);return{x:Yt[0]+k,y:Yt[1]+I}},pointDistance:function(k,I,w,A,F,R,O,j,Q){var gt=this.nearestPoint(k,I,w,A,j,Q);return ie(gt.x,gt.y,j,Q)},pointAt:function(k,I,w,A,F,R,O,j){var Q=(O-R)*j+R;return{x:vt(k,0,w,A,F,Q),y:ut(0,I,w,A,F,Q)}},tangentAngle:function(k,I,w,A,F,R,O,j){var Q=(O-R)*j+R,gt=function et(k,I,w,A,F,R,O,j){return-1*w*Math.cos(F)*Math.sin(j)-A*Math.sin(F)*Math.cos(j)}(0,0,w,A,F,0,0,Q),$t=function ft(k,I,w,A,F,R,O,j){return-1*w*Math.sin(F)*Math.sin(j)+A*Math.cos(F)*Math.cos(j)}(0,0,w,A,F,0,0,Q);return kt(Math.atan2($t,gt))}};function Zt(k){for(var I=0,w=[],A=0;A1||I<0||k.length<2)return null;var w=Zt(k),A=w.segments,F=w.totalLength;if(0===F)return{x:k[0][0],y:k[0][1]};for(var R=0,O=null,j=0;j=R&&I<=R+Dt){O=mt.pointAt(gt[0],gt[1],$t[0],$t[1],(I-R)/Dt);break}R+=Dt}return O}(k,I)},pointDistance:function(k,I,w){return function G(k,I,w){for(var A=1/0,F=0;F1||I<0||k.length<2)return 0;for(var w=Zt(k),A=w.segments,F=w.totalLength,R=0,O=0,j=0;j=R&&I<=R+Dt){O=Math.atan2($t[1]-gt[1],$t[0]-gt[0]);break}R+=Dt}return O}(k,I)}}},8438:(Ne,ae,V)=>{"use strict";V.d(ae,{Dg:()=>mt,lh:()=>zt,m$:()=>ie,vs:()=>kt,zu:()=>qt});var Vt=V(2067),Et=V(7367);function ie(Bt,Qt,xt){var K=[0,0,0,0,0,0,0,0,0];return Vt.vc(K,xt),Vt.Jp(Bt,K,Qt)}function qt(Bt,Qt,xt){var K=[0,0,0,0,0,0,0,0,0];return Vt.Us(K,xt),Vt.Jp(Bt,K,Qt)}function zt(Bt,Qt,xt){var K=[0,0,0,0,0,0,0,0,0];return Vt.xJ(K,xt),Vt.Jp(Bt,K,Qt)}function bt(Bt,Qt,xt){return Vt.Jp(Bt,xt,Qt)}function kt(Bt,Qt){for(var xt=Bt?[].concat(Bt):[1,0,0,0,1,0,0,0,1],K=0,J=Qt.length;K=0;return xt?J?2*Math.PI-K:K:J?K:2*Math.PI-K}},575:(Ne,ae,V)=>{"use strict";V.d(ae,{e9:()=>mt,Wq:()=>Yt,tr:()=>$,wb:()=>Ft,zx:()=>A});var Vt=V(6641),Et=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,ie=/[^\s\,]+/gi;const zt=function qt(z){var U=z||[];return(0,Vt.kJ)(U)?U:(0,Vt.HD)(U)?(U=U.match(Et),(0,Vt.S6)(U,function(q,at){if((q=q.match(ie))[0].length>1){var At=q[0].charAt(0);q.splice(1,0,q[0].substr(1)),q[0]=At}(0,Vt.S6)(q,function(Nt,Ot){isNaN(Nt)||(q[Ot]=+Nt)}),U[at]=q}),U):void 0};var bt=V(7367);const mt=function ht(z,U,q){void 0===U&&(U=!1),void 0===q&&(q=[[0,0],[1,1]]);for(var at=!!U,At=[],Nt=0,Ot=z.length;Nt2&&(q.push([At].concat(Ot.splice(0,2))),Pt="l",At="m"===At?"l":"L"),"o"===Pt&&1===Ot.length&&q.push([At,Ot[0]]),"r"===Pt)q.push([At].concat(Ot));else for(;Ot.length>=U[Pt]&&(q.push([At].concat(Ot.splice(0,U[Pt]))),U[Pt]););return""}),q}var Lt=/[a-z]/;function Tt(z,U){return[U[0]+(U[0]-z[0]),U[1]+(U[1]-z[1])]}function Ft(z){var U=$(z);if(!U||!U.length)return[["M",0,0]];for(var q=!1,at=0;at=0){q=!0;break}if(!q)return U;var Nt=[],Ot=0,Pt=0,_t=0,ne=0,Wt=0,ce=U[0];("M"===ce[0]||"m"===ce[0])&&(_t=Ot=+ce[1],ne=Pt=+ce[2],Wt++,Nt[0]=["M",Ot,Pt]),at=Wt;for(var xe=U.length;at1&&(q*=Math.sqrt(ce),at*=Math.sqrt(ce));var xe=q*q*(Ce*Ce)+at*at*(de*de),ye=xe?Math.sqrt((q*q*(at*at)-xe)/xe):1;Nt===Ot&&(ye*=-1),isNaN(ye)&&(ye=0);var we=at?ye*q*Ce/at:0,he=q?ye*-at*de/q:0,Te=(Pt+ne)/2+Math.cos(At)*we-Math.sin(At)*he,Ie=(_t+Wt)/2+Math.sin(At)*we+Math.cos(At)*he,Ae=[(de-we)/q,(Ce-he)/at],De=[(-1*de-we)/q,(-1*Ce-he)/at],Ge=st([1,0],Ae),Ve=st(Ae,De);return nt(Ae,De)<=-1&&(Ve=Math.PI),nt(Ae,De)>=1&&(Ve=0),0===Ot&&Ve>0&&(Ve-=2*Math.PI),1===Ot&&Ve<0&&(Ve+=2*Math.PI),{cx:Te,cy:Ie,rx:k(z,[ne,Wt])?0:q,ry:k(z,[ne,Wt])?0:at,startAngle:Ge,endAngle:Ge+Ve,xRotation:At,arcFlag:Nt,sweepFlag:Ot}}function w(z,U){return[U[0]+(U[0]-z[0]),U[1]+(U[1]-z[1])]}function A(z){for(var U=[],q=null,at=null,At=null,Nt=0,Ot=(z=zt(z)).length,Pt=0;Pt0!=R(Pt[1]-q)>0&&R(U-(q-Ot[1])*(Ot[0]-Pt[0])/(Ot[1]-Pt[1])-Ot[0])<0&&(at=!at)}return at}var Q=function(z,U,q){return z>=U&&z<=q};function $t(z){for(var U=[],q=z.length,at=0;at1){var Ot=z[0],Pt=z[q-1];U.push({from:{x:Pt[0],y:Pt[1]},to:{x:Ot[0],y:Ot[1]}})}return U}function se(z){var U=z.map(function(at){return at[0]}),q=z.map(function(at){return at[1]});return{minX:Math.min.apply(null,U),maxX:Math.max.apply(null,U),minY:Math.min.apply(null,q),maxY:Math.max.apply(null,q)}}function Yt(z,U){if(z.length<2||U.length<2)return!1;if(!function Kt(z,U){return!(U.minX>z.maxX||U.maxXz.maxY||U.maxY.001*(Ot_x*Ot_x+Ot_y*Ot_y)*(Pt_x*Pt_x+Pt_y*Pt_y)){var ce=(Nt_x*Pt_y-Nt_y*Pt_x)/_t,xe=(Nt_x*Ot_y-Nt_y*Ot_x)/_t;Q(ce,0,1)&&Q(xe,0,1)&&(Ce={x:z.x+ce*Ot_x,y:z.y+ce*Ot_y})}return Ce}(at.from,at.to,U.from,U.to))return q=!0,!1}),q}(Nt,_t))return Pt=!0,!1}),Pt}},6641:(Ne,ae,V)=>{"use strict";V.d(ae,{Ct:()=>Sc,f0:()=>es,uZ:()=>Ie,VS:()=>$l,d9:()=>Jl,FX:()=>qt,Ds:()=>ql,b$:()=>tc,e5:()=>ht,S6:()=>Tt,yW:()=>Nt,hX:()=>bt,sE:()=>ft,cx:()=>Ct,Wx:()=>ut,ri:()=>De,xH:()=>B,U5:()=>Va,U2:()=>uc,Lo:()=>Cc,rx:()=>Y,ru:()=>Ce,vM:()=>Wt,Ms:()=>de,wH:()=>ji,YM:()=>Kt,q9:()=>qt,cq:()=>nc,kJ:()=>J,jn:()=>xr,J_:()=>Wn,kK:()=>Wl,xb:()=>ac,Xy:()=>oc,mf:()=>Qt,BD:()=>u,UM:()=>K,Ft:()=>Ul,hj:()=>Ve,vQ:()=>gr,Kn:()=>$,PO:()=>jt,HD:()=>Q,P9:()=>Bt,o8:()=>Gl,XP:()=>lt,Z$:()=>Yt,vl:()=>P,UI:()=>cc,Q8:()=>ts,Fp:()=>Zt,UT:()=>Kr,HP:()=>qo,VV:()=>oe,F:()=>Qi,CD:()=>es,wQ:()=>zr,ZT:()=>mc,CE:()=>pc,ei:()=>vc,u4:()=>R,Od:()=>j,U7:()=>Xl,t8:()=>hc,dp:()=>xc,G:()=>Pt,MR:()=>$t,ng:()=>rt,P2:()=>dc,qo:()=>gc,c$:()=>Na,BB:()=>pn,jj:()=>Dt,EL:()=>yc,jC:()=>re,VO:()=>ta,I:()=>se});const Et=function(T){return null!==T&&"function"!=typeof T&&isFinite(T.length)},qt=function(T,X){return!!Et(T)&&T.indexOf(X)>-1},bt=function(T,X){if(!Et(T))return T;for(var ot=[],pt=0;ptpe[qe])return 1;if(Gt[qe]ot?ot:T},De=function(T,X){var ot=X.toString(),pt=ot.indexOf(".");if(-1===pt)return Math.round(T);var Gt=ot.substr(pt+1).length;return Gt>20&&(Gt=20),parseFloat(T.toFixed(Gt))},Ve=function(T){return Bt(T,"Number")};var vn=1e-5;function gr(T,X,ot){return void 0===ot&&(ot=vn),Math.abs(T-X)pt&&(ot=pe,pt=Ee)}return ot}},Qi=function(T,X){if(J(T)){for(var ot,pt=1/0,Gt=0;GtX?(pt&&(clearTimeout(pt),pt=null),qe=Xn,Ee=T.apply(Gt,pe),pt||(Gt=pe=null)):!pt&&!1!==ot.trailing&&(pt=setTimeout(Dn,Za)),Ee};return Bn.cancel=function(){clearTimeout(pt),qe=0,pt=Gt=pe=null},Bn},gc=function(T){return Et(T)?Array.prototype.slice.call(T):[]};var ia={};const yc=function(T){return ia[T=T||"g"]?ia[T]+=1:ia[T]=1,T+ia[T]},mc=function(){};function xc(T){return K(T)?0:Et(T)?T.length:Object.keys(T).length}var aa,Mc=V(7582);const oa=qo(function(T,X){void 0===X&&(X={});var ot=X.fontSize,pt=X.fontFamily,Gt=X.fontWeight,pe=X.fontStyle,Ee=X.fontVariant;return aa||(aa=document.createElement("canvas").getContext("2d")),aa.font=[pe,Ee,Gt,ot+"px",pt].join(" "),aa.measureText(Q(T)?T:"").width},function(T,X){return void 0===X&&(X={}),(0,Mc.pr)([T],ta(X)).join("")}),Cc=function(T,X,ot,pt){void 0===pt&&(pt="...");var Bn,Xn,pe=oa(pt,ot),Ee=Q(T)?T:pn(T),qe=X,Dn=[];if(oa(T,ot)<=X)return T;for(;Bn=Ee.substr(0,16),!((Xn=oa(Bn,ot))+pe>qe&&Xn>qe);)if(Dn.push(Bn),qe-=Xn,!(Ee=Ee.substr(16)))return Dn.join("");for(;Bn=Ee.substr(0,1),!((Xn=oa(Bn,ot))+pe>qe);)if(Dn.push(Bn),qe-=Xn,!(Ee=Ee.substr(1)))return Dn.join("");return""+Dn.join("")+pt},Sc=function(){function T(){this.map={}}return T.prototype.has=function(X){return void 0!==this.map[X]},T.prototype.get=function(X,ot){var pt=this.map[X];return void 0===pt?ot:pt},T.prototype.set=function(X,ot){this.map[X]=ot},T.prototype.clear=function(){this.map={}},T.prototype.delete=function(X){delete this.map[X]},T.prototype.size=function(){return Object.keys(this.map).length},T}()},3830:(Ne,ae,V)=>{"use strict";V.r(ae),V.d(ae,{BiModule:()=>OL});var Vt={};V.r(Vt),V.d(Vt,{assign:()=>ii,default:()=>av,defaultI18n:()=>Lc,format:()=>rv,parse:()=>iv,setGlobalDateI18n:()=>Jf,setGlobalDateMasks:()=>nv});var Et={};V.r(Et),V.d(Et,{Arc:()=>c2,DataMarker:()=>d2,DataRegion:()=>y2,Html:()=>F2,Image:()=>v2,Line:()=>a2,Region:()=>h2,RegionFilter:()=>x2,Shape:()=>C2,Text:()=>s2});var ie={};V.r(ie),V.d(ie,{ellipsisHead:()=>I2,ellipsisMiddle:()=>D2,ellipsisTail:()=>Dv,getDefault:()=>k2});var qt={};V.r(qt),V.d(qt,{equidistance:()=>Pv,equidistanceWithReverseBoth:()=>R2,getDefault:()=>O2,reserveBoth:()=>B2,reserveFirst:()=>P2,reserveLast:()=>z2});var zt={};V.r(zt),V.d(zt,{fixedAngle:()=>Bv,getDefault:()=>V2,unfixedAngle:()=>U2});var bt={};V.r(bt),V.d(bt,{autoEllipsis:()=>ie,autoHide:()=>qt,autoRotate:()=>zt});var kt={};V.r(kt),V.d(kt,{Base:()=>$c,Circle:()=>J2,Html:()=>j2,Line:()=>Rv});var ht={};V.r(ht),V.d(ht,{CONTAINER_CLASS:()=>Nr,CROSSHAIR_X:()=>tu,CROSSHAIR_Y:()=>eu,LIST_CLASS:()=>oo,LIST_ITEM_CLASS:()=>Cs,MARKER_CLASS:()=>ws,NAME_CLASS:()=>Hv,TITLE_CLASS:()=>Vr,VALUE_CLASS:()=>Ss});var mt={};V.r(mt),V.d(mt,{Base:()=>fr,Circle:()=>$w,Ellipse:()=>Qw,Image:()=>jw,Line:()=>tS,Marker:()=>rS,Path:()=>ku,Polygon:()=>fS,Polyline:()=>pS,Rect:()=>mS,Text:()=>MS});var te={};V.r(te),V.d(te,{Canvas:()=>SS,Group:()=>Fu,Shape:()=>mt,getArcParams:()=>Ys,version:()=>_S});var Bt={};V.r(Bt),V.d(Bt,{Base:()=>ir,Circle:()=>kS,Dom:()=>DS,Ellipse:()=>OS,Image:()=>zS,Line:()=>RS,Marker:()=>VS,Path:()=>YS,Polygon:()=>GS,Polyline:()=>WS,Rect:()=>qS,Text:()=>r_});var Qt={};V.r(Qt),V.d(Qt,{Canvas:()=>__,Group:()=>Du,Shape:()=>Bt,version:()=>b_});var xt={};V.r(xt),V.d(xt,{cluster:()=>x8,hierarchy:()=>Ia,pack:()=>yy,packEnclose:()=>uy,packSiblings:()=>BF,partition:()=>Jy,stratify:()=>S8,tree:()=>E8,treemap:()=>tm,treemapBinary:()=>k8,treemapDice:()=>Uo,treemapResquarify:()=>D8,treemapSlice:()=>Dl,treemapSliceDice:()=>I8,treemapSquarify:()=>Ky});var K=V(6814),J=V(2787),$=function(e){return e.Number="Number",e.Line="Line",e.StepLine="StepLine",e.Bar="Bar",e.PercentStackedBar="PercentStackedBar",e.Area="Area",e.PercentageArea="PercentageArea",e.Column="Column",e.Waterfall="Waterfall",e.StackedColumn="StackedColumn",e.Pie="Pie",e.Ring="Ring",e.Rose="Rose",e.Scatter="Scatter",e.Radar="Radar",e.WordCloud="WordCloud",e.Funnel="Funnel",e.Bubble="Bubble",e.Sankey="Sankey",e.RadialBar="RadialBar",e.Chord="Chord",e.tpl="tpl",e.table="table",e}($||{}),Lt=function(e){return e.backend="backend",e.front="front",e.none="none",e}(Lt||{}),Tt=function(e){return e.INPUT="INPUT",e.TAG="TAG",e.NUMBER="NUMBER",e.NUMBER_RANGE="NUMBER_RANGE",e.DATE="DATE",e.DATE_RANGE="DATE_RANGE",e.DATETIME="DATETIME",e.DATETIME_RANGE="DATETIME_RANGE",e.TIME="TIME",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR",e.REFERENCE="REFERENCE",e.REFERENCE_CASCADE="REFERENCE_CASCADE",e.REFERENCE_MULTI="REFERENCE_MULTI",e.REFERENCE_TREE_RADIO="REFERENCE_TREE_RADIO",e.REFERENCE_TREE_MULTI="REFERENCE_TREE_MULTI",e.REFERENCE_RADIO="REFERENCE_RADIO",e.REFERENCE_CHECKBOX="REFERENCE_CHECKBOX",e}(Tt||{}),Ft=function(e){return e.STRING="string",e.NUMBER="number",e.DATE="date",e.DRILL="drill",e}(Ft||{}),lt=V(2867),Z=V(3460),u=V(5879),ct=V(1152),Mt=V(1877),Jt=V(7955),jt=V(7776);let et=(()=>{class e{constructor(t,r,i){this._http=t,this.menuSrv=r,this.tokenService=i}getBiBuild(t){return this._http.get(ct.zP.bi+"/"+t,null,{observe:"body",headers:{erupt:t}})}getBiData(t,r,i,a,o,s){let l={index:r,size:i};return a&&o&&(l.sort=a,l.direction=o?"ascend"===o:null),this._http.post(ct.zP.bi+"/data/"+t,s,l,{headers:{erupt:t}})}getBiDrillData(t,r,i,a,o){return this._http.post(ct.zP.bi+"/drill/data/"+t+"/"+r,o,{pageIndex:i,pageSize:a},{headers:{erupt:t}})}getBiChart(t,r,i){return this._http.post(ct.zP.bi+"/"+t+"/chart/"+r,i,null,{headers:{erupt:t}})}getBiReference(t,r,i){return this._http.post(ct.zP.bi+"/"+t+"/reference/"+r,i||{},null,{headers:{erupt:t}})}exportExcel_bak(t,r,i){Mt.D.postExcelFile(ct.zP.bi+"/"+r+"/excel/"+t,{condition:encodeURIComponent(JSON.stringify(i)),[Mt.D.PARAM_ERUPT]:r,[Mt.D.PARAM_TOKEN]:this.tokenService.get().token})}exportExcel(t,r,i,a){this._http.post(ct.zP.bi+"/"+r+"/excel/"+t,i,null,{responseType:"arraybuffer",observe:"events",headers:{erupt:r}}).subscribe(o=>{4===o.type&&((0,lt.Sv)(o),a())},()=>{a()})}exportChartExcel(t,r,i,a){this._http.post(ct.zP.bi+"/"+t+"/export/chart/"+r,i,null,{responseType:"arraybuffer",observe:"events",headers:{erupt:t}}).subscribe(o=>{4===o.type&&((0,lt.Sv)(o),a())},()=>{a()})}getChartTpl(t,r,i){return ct.zP.bi+"/"+r+"/custom-chart/"+t+"?_token="+this.tokenService.get().token+"&_t="+(new Date).getTime()+"&_erupt="+r+"&condition="+encodeURIComponent(JSON.stringify(i))}static#t=this.\u0275fac=function(r){return new(r||e)(u.LFG(jt.lP),u.LFG(jt.hl),u.LFG(Jt.T))};static#e=this.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ft=(()=>{class e{constructor(t){this.msg=t,this.datePipe=new K.uU("zh-cn")}buildDimParam(t,r=!0,i=!1){let a={};for(let o of t.dimensions){let s=o.$value;if(s)switch(o.type){case Tt.DATE_RANGE:s[0]=this.datePipe.transform(s[0],"yyyy-MM-dd 00:00:00"),s[1]=this.datePipe.transform(s[1],"yyyy-MM-dd 23:59:59");break;case Tt.DATETIME_RANGE:s[0]=this.datePipe.transform(s[0],"yyyy-MM-dd HH:mm:ss"),s[1]=this.datePipe.transform(s[1],"yyyy-MM-dd HH:mm:ss");break;case Tt.DATE:s=this.datePipe.transform(s,"yyyy-MM-dd");break;case Tt.DATETIME:s=this.datePipe.transform(s,"yyyy-MM-dd HH:mm:ss");break;case Tt.TIME:s=this.datePipe.transform(s,"HH:mm:ss");break;case Tt.YEAR:s=this.datePipe.transform(s,"yyyy");break;case Tt.MONTH:s=this.datePipe.transform(s,"yyyy-MM");break;case Tt.WEEK:s=this.datePipe.transform(s,"yyyy-ww")}if(o.notNull&&!o.$value&&(r&&this.msg.error(o.title+"\u5fc5\u586b"),!i)||o.notNull&&Array.isArray(o.$value)&&!o.$value[0]&&!o.$value[1]&&(r&&this.msg.error(o.title+"\u5fc5\u586b"),!i))return null;a[o.code]=Array.isArray(s)&&0==s.length?null:s||null}return a}static#t=this.\u0275fac=function(r){return new(r||e)(u.LFG(Z.dD))};static#e=this.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ht=V(6990),Ct=V(6976),vt=V(2669),ut=V(2274);const _=["st"];function B(e,n){if(1&e&&u._uU(0),2&e){const t=u.oxw(2);u.hij("\u5171",t.biTable.total,"\u6761")}}const dt=function(e){return{x:e}};function Rt(e,n){if(1&e){const t=u.EpF();u.ynx(0),u._UZ(1,"st",2,3),u.TgZ(3,"nz-pagination",4),u.NdJ("nzPageSizeChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.pageSizeChange(i))})("nzPageIndexChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.pageIndexChange(i))}),u.qZA(),u.YNc(4,B,1,1,"ng-template",null,5,u.W1O),u.BQk()}if(2&e){const t=u.MAs(5),r=u.oxw();u.xp6(1),u.Q6J("columns",r.biTable.columns)("data",r.biTable.data)("ps",r.biTable.size)("page",r.biTable.page)("scroll",u.VKq(13,dt,(r.clientWidth>768?150*r.biTable.columns.length:0)+"px"))("bordered",r.settingSrv.layout.bordered)("size","small"),u.xp6(2),u.Q6J("nzPageIndex",r.biTable.index)("nzPageSize",r.biTable.size)("nzTotal",r.biTable.total)("nzPageSizeOptions",r.bi.pageSizeOptions)("nzSize","small")("nzShowTotal",t)}}const Zt=function(){return[]};function oe(e,n){1&e&&(u.ynx(0),u._UZ(1,"nz-list",6),u.BQk()),2&e&&(u.xp6(1),u.Q6J("nzDataSource",u.DdM(1,Zt)))}let L=(()=>{class e{constructor(t,r,i,a,o){this.dataService=t,this.route=r,this.handlerService=i,this.settingSrv=a,this.msg=o,this.querying=!1,this.clientWidth=document.body.clientWidth,this.biTable={index:1,size:10,total:0,page:{show:!1}}}ngOnInit(){this.biTable.size=this.bi.pageSize,this.query(1,this.bi.pageSize)}query(t,r){this.querying=!0,this.dataService.getBiDrillData(this.bi.code,this.drillCode.toString(),t,r,this.row).subscribe(i=>{if(this.querying=!1,this.biTable.total=i.total,this.biTable.columns=[],i.columns){for(let a of i.columns)a.display&&this.biTable.columns.push({title:a.name,index:a.name,className:"text-center",width:a.width});this.biTable.data=i.list}else this.biTable.data=[]})}pageIndexChange(t){this.query(t,this.biTable.size)}pageSizeChange(t){this.biTable.size=t,this.query(1,t)}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(J.gz),u.Y36(ft),u.Y36(jt.gb),u.Y36(Z.dD))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-drill"]],viewQuery:function(r,i){if(1&r&&u.Gf(_,5),2&r){let a;u.iGM(a=u.CRH())&&(i.st=a.first)}},inputs:{bi:"bi",drillCode:"drillCode",row:"row"},decls:3,vars:3,consts:[[2,"width","100%","text-align","center","min-height","80px",3,"nzSpinning"],[4,"ngIf"],[2,"margin-bottom","12px",3,"columns","data","ps","page","scroll","bordered","size"],["st",""],["nzShowSizeChanger","","nzShowQuickJumper","",2,"text-align","center",3,"nzPageIndex","nzPageSize","nzTotal","nzPageSizeOptions","nzSize","nzShowTotal","nzPageSizeChange","nzPageIndexChange"],["totalTemplate",""],[3,"nzDataSource"]],template:function(r,i){1&r&&(u.TgZ(0,"nz-spin",0),u.YNc(1,Rt,6,15,"ng-container",1),u.YNc(2,oe,2,2,"ng-container",1),u.qZA()),2&r&&(u.Q6J("nzSpinning",i.querying),u.xp6(1),u.Q6J("ngIf",i.biTable.columns&&i.biTable.columns.length>0),u.xp6(1),u.Q6J("ngIf",!i.biTable.columns||0==i.biTable.columns.length))},dependencies:[K.O5,Ht.A5,Ct.n_,vt.W,ut.dE],encapsulation:2})}return e})();var Y=V(1221),G=V(9682),D=V(95),nt=V(2840),st=V(855),k=V(1958),I=V(2920),w=V(2612),A=V(7417),F=V(551),R=V(2962),O=V(6987),j=V(4139),Q=V(9388),gt=V(8324),$t=V(8645),Dt=V(9773);function se(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"span",6),u.BQk()),2&e){const t=n.$implicit;u.xp6(1),u.Q6J("nzType",t)}}function Kt(e,n){if(1&e&&(u.ynx(0),u.YNc(1,se,2,1,"ng-container",5),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.icon)}}function Yt(e,n){1&e&&u.Hsn(0,1,["*ngIf","!icon"])}function z(e,n){if(1&e&&(u.ynx(0),u.YNc(1,Kt,2,1,"ng-container",2),u.YNc(2,Yt,1,0,"ng-content",2),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngIf",t.icon),u.xp6(1),u.Q6J("ngIf",!t.icon)}}function U(e,n){if(1&e&&(u.TgZ(0,"div",8),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.hij(" ",t.nzTitle," ")}}function q(e,n){if(1&e&&(u.ynx(0),u.YNc(1,U,2,1,"div",7),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzTitle)}}function at(e,n){1&e&&u.Hsn(0,2,["*ngIf","!nzTitle"])}function At(e,n){if(1&e&&(u.TgZ(0,"div",10),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.hij(" ",t.nzSubTitle," ")}}function Nt(e,n){if(1&e&&(u.ynx(0),u.YNc(1,At,2,1,"div",9),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzSubTitle)}}function Ot(e,n){1&e&&u.Hsn(0,3,["*ngIf","!nzSubTitle"])}function Pt(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.hij(" ",t.nzExtra," ")}}function _t(e,n){if(1&e&&(u.TgZ(0,"div",11),u.YNc(1,Pt,2,1,"ng-container",5),u.qZA()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzExtra)}}function ne(e,n){1&e&&u.Hsn(0,4,["*ngIf","!nzExtra"])}function Wt(e,n){1&e&&u._UZ(0,"nz-result-not-found")}function de(e,n){1&e&&u._UZ(0,"nz-result-server-error")}function Ce(e,n){1&e&&u._UZ(0,"nz-result-unauthorized")}function ce(e,n){if(1&e&&(u.ynx(0,12),u.YNc(1,Wt,1,0,"nz-result-not-found",13),u.YNc(2,de,1,0,"nz-result-server-error",13),u.YNc(3,Ce,1,0,"nz-result-unauthorized",13),u.BQk()),2&e){const t=u.oxw();u.Q6J("ngSwitch",t.nzStatus),u.xp6(1),u.Q6J("ngSwitchCase","404"),u.xp6(1),u.Q6J("ngSwitchCase","500"),u.xp6(1),u.Q6J("ngSwitchCase","403")}}const xe=[[["nz-result-content"],["","nz-result-content",""]],[["","nz-result-icon",""]],[["div","nz-result-title",""]],[["div","nz-result-subtitle",""]],[["div","nz-result-extra",""]]],ye=["nz-result-content, [nz-result-content]","[nz-result-icon]","div[nz-result-title]","div[nz-result-subtitle]","div[nz-result-extra]"];let we=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result-not-found"]],exportAs:["nzResultNotFound"],decls:62,vars:0,consts:[["width","252","height","294"],["d","M0 .387h251.772v251.772H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .012)"],["fill","#fff"],["d","M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321","fill","#E4EBF7","mask","url(#b)"],["d","M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66","fill","#FFF"],["d","M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788","stroke","#FFF","strokeWidth","2"],["d","M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175","fill","#FFF"],["d","M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932","fill","#FFF"],["d","M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011","par","","stroke","#FFF","strokeWidth","2"],["d","M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382","fill","#FFF"],["d","M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"],["d","M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742","fill","#FFF"],["d","M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48","fill","#1890FF"],["d","M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894","fill","#FFF"],["d","M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88","fill","#FFB594"],["d","M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624","fill","#FFC6A0"],["d","M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682","fill","#FFF"],["d","M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573","fill","#CBD1D1"],["d","M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z","fill","#2B0849"],["d","M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558","fill","#A4AABA"],["d","M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z","fill","#CBD1D1"],["d","M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062","fill","#2B0849"],["d","M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15","fill","#A4AABA"],["d","M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165","fill","#7BB2F9"],["d","M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M107.275 222.1s2.773-1.11 6.102-3.884","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038","fill","#192064"],["d","M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81","fill","#FFF"],["d","M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642","fill","#192064"],["d","M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268","fill","#FFC6A0"],["d","M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456","fill","#FFC6A0"],["d","M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z","fill","#520038"],["d","M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254","fill","#552950"],["stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round","d","M110.13 74.84l-.896 1.61-.298 4.357h-2.228"],["d","M110.846 74.481s1.79-.716 2.506.537","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.287 72.93s1.83 1.113 4.137.954","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M129.405 122.865s-5.272 7.403-9.422 10.768","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M119.306 107.329s.452 4.366-2.127 32.062","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01","fill","#F2D7AD"],["d","M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92","fill","#F4D19D"],["d","M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z","fill","#F2D7AD"],["fill","#CC9B6E","d","M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"],["d","M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83","fill","#F4D19D"],["fill","#CC9B6E","d","M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"],["fill","#CC9B6E","d","M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"],["d","M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238","fill","#FFC6A0"],["d","M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647","fill","#5BA02E"],["d","M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647","fill","#92C110"],["d","M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187","fill","#F2D7AD"],["d","M88.979 89.48s7.776 5.384 16.6 2.842","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"]],template:function(r,i){1&r&&(u.O4$(),u.TgZ(0,"svg",0)(1,"defs"),u._UZ(2,"path",1),u.qZA(),u.TgZ(3,"g",2)(4,"g",3),u._UZ(5,"mask",4)(6,"path",5),u.qZA(),u._UZ(7,"path",6)(8,"path",7)(9,"path",8)(10,"path",9)(11,"path",10)(12,"path",11)(13,"path",12)(14,"path",13)(15,"path",14)(16,"path",15)(17,"path",16)(18,"path",17)(19,"path",18)(20,"path",19)(21,"path",20)(22,"path",21)(23,"path",22)(24,"path",23)(25,"path",24)(26,"path",25)(27,"path",26)(28,"path",27)(29,"path",28)(30,"path",29)(31,"path",30)(32,"path",31)(33,"path",32)(34,"path",33)(35,"path",34)(36,"path",35)(37,"path",36)(38,"path",37)(39,"path",38)(40,"path",39)(41,"path",40)(42,"path",41)(43,"path",42)(44,"path",43)(45,"path",44)(46,"path",45)(47,"path",46)(48,"path",47)(49,"path",48)(50,"path",49)(51,"path",50)(52,"path",51)(53,"path",52)(54,"path",53)(55,"path",54)(56,"path",55)(57,"path",56)(58,"path",57)(59,"path",58)(60,"path",59)(61,"path",60),u.qZA()())},encapsulation:2,changeDetection:0})}return e})(),he=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result-server-error"]],exportAs:["nzResultServerError"],decls:69,vars:0,consts:[["width","254","height","294"],["d","M0 .335h253.49v253.49H0z"],["d","M0 293.665h253.49V.401H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .067)"],["fill","#fff"],["d","M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134","fill","#E4EBF7","mask","url(#b)"],["d","M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671","fill","#FFF"],["d","M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861","stroke","#FFF","strokeWidth","2"],["d","M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238","fill","#FFF"],["d","M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775","fill","#FFF"],["d","M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68","fill","#FF603B"],["d","M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733","fill","#FFF"],["d","M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487","fill","#FFB594"],["d","M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235","fill","#FFF"],["d","M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246","fill","#FFB594"],["d","M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508","fill","#FFC6A0"],["d","M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z","fill","#520038"],["d","M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26","fill","#552950"],["stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round","d","M99.206 73.644l-.9 1.62-.3 4.38h-2.24"],["d","M99.926 73.284s1.8-.72 2.52.54","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68","stroke","#DB836E","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.326 71.724s1.84 1.12 4.16.96","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954","stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round"],["d","M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044","stroke","#E4EBF7","strokeWidth","1.136","strokeLinecap","round","strokeLinejoin","round"],["d","M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583","fill","#FFF"],["d","M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75","fill","#FFC6A0"],["d","M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713","fill","#FFC6A0"],["d","M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16","fill","#FFC6A0"],["d","M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575","fill","#FFF"],["d","M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47","fill","#CBD1D1"],["d","M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z","fill","#2B0849"],["d","M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671","fill","#A4AABA"],["d","M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z","fill","#CBD1D1"],["d","M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162","fill","#2B0849"],["d","M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156","fill","#A4AABA"],["d","M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69","fill","#7BB2F9"],["d","M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M96.973 219.373s2.882-1.153 6.34-4.034","stroke","#648BD8","strokeWidth","1.032","strokeLinecap","round","strokeLinejoin","round"],["d","M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62","fill","#192064"],["d","M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843","fill","#FFF"],["d","M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668","fill","#192064"],["d","M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69","fill","#FFC6A0"],["d","M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593","stroke","#DB836E","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594","fill","#FFC6A0"],["d","M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M109.278 112.533s3.38-3.613 7.575-4.662","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M107.375 123.006s9.697-2.745 11.445-.88","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955","stroke","#BFCDDD","strokeWidth","2","strokeLinecap","round","strokeLinejoin","round"],["d","M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01","fill","#A3B4C6"],["d","M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813","fill","#A3B4C6"],["fill","#A3B4C6","mask","url(#d)","d","M154.098 190.096h70.513v-84.617h-70.513z"],["d","M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208","fill","#BFCDDD","mask","url(#d)"],["d","M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209","fill","#BFCDDD","mask","url(#d)"],["d","M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751","stroke","#7C90A5","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407","fill","#BFCDDD","mask","url(#d)"],["d","M177.259 207.217v11.52M201.05 207.217v11.52","stroke","#A3B4C6","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422","fill","#5BA02E","mask","url(#d)"],["d","M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423","fill","#92C110","mask","url(#d)"],["d","M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209","fill","#F2D7AD","mask","url(#d)"]],template:function(r,i){1&r&&(u.O4$(),u.TgZ(0,"svg",0)(1,"defs"),u._UZ(2,"path",1)(3,"path",2),u.qZA(),u.TgZ(4,"g",3)(5,"g",4),u._UZ(6,"mask",5)(7,"path",6),u.qZA(),u._UZ(8,"path",7)(9,"path",8)(10,"path",9)(11,"path",10)(12,"path",11)(13,"path",12)(14,"path",13)(15,"path",14)(16,"path",15)(17,"path",16)(18,"path",17)(19,"path",18)(20,"path",19)(21,"path",20)(22,"path",21)(23,"path",22)(24,"path",23)(25,"path",24)(26,"path",25)(27,"path",26)(28,"path",27)(29,"path",28)(30,"path",29)(31,"path",30)(32,"path",31)(33,"path",32)(34,"path",33)(35,"path",34)(36,"path",35)(37,"path",36)(38,"path",37)(39,"path",38)(40,"path",39)(41,"path",40)(42,"path",41)(43,"path",42)(44,"path",43)(45,"path",44)(46,"path",45)(47,"path",46)(48,"path",47)(49,"path",48)(50,"path",49)(51,"path",50)(52,"path",51)(53,"path",52)(54,"path",53)(55,"path",54)(56,"path",55)(57,"mask",5)(58,"path",56)(59,"path",57)(60,"path",58)(61,"path",59)(62,"path",60)(63,"path",61)(64,"path",62)(65,"path",63)(66,"path",64)(67,"path",65)(68,"path",66),u.qZA()())},encapsulation:2,changeDetection:0})}return e})(),Te=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result-unauthorized"]],exportAs:["nzResultUnauthorized"],decls:56,vars:0,consts:[["width","251","height","294"],["fill","none","fillRule","evenodd"],["d","M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023","fill","#E4EBF7"],["d","M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65","fill","#FFF"],["d","M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73","stroke","#FFF","strokeWidth","2"],["d","M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126","fill","#FFF"],["d","M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873","fill","#FFF"],["d","M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36","stroke","#FFF","strokeWidth","2"],["d","M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375","fill","#FFF"],["d","M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"],["d","M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321","fill","#A26EF4"],["d","M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734","fill","#FFF"],["d","M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717","fill","#FFF"],["d","M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61","fill","#5BA02E"],["d","M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611","fill","#92C110"],["d","M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17","fill","#F2D7AD"],["d","M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085","fill","#FFF"],["d","M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233","fill","#FFC6A0"],["d","M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367","fill","#FFB594"],["d","M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95","fill","#FFC6A0"],["d","M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929","fill","#FFF"],["d","M78.18 94.656s.911 7.41-4.914 13.078","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437","stroke","#E4EBF7","strokeWidth",".932","strokeLinecap","round","strokeLinejoin","round"],["d","M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z","fill","#FFC6A0"],["d","M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91","fill","#FFB594"],["d","M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103","fill","#5C2552"],["d","M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145","fill","#FFC6A0"],["stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round","d","M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"],["d","M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32","fill","#552950"],["d","M91.132 86.786s5.269 4.957 12.679 2.327","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25","fill","#DB836E"],["d","M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073","stroke","#5C2552","strokeWidth","1.526","strokeLinecap","round","strokeLinejoin","round"],["d","M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M66.508 86.763s-1.598 8.83-6.697 14.078","stroke","#E4EBF7","strokeWidth","1.114","strokeLinecap","round","strokeLinejoin","round"],["d","M128.31 87.934s3.013 4.121 4.06 11.785","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M64.09 84.816s-6.03 9.912-13.607 9.903","stroke","#DB836E","strokeWidth",".795","strokeLinecap","round","strokeLinejoin","round"],["d","M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73","fill","#FFC6A0"],["d","M130.532 85.488s4.588 5.757 11.619 6.214","stroke","#DB836E","strokeWidth",".75","strokeLinecap","round","strokeLinejoin","round"],["d","M121.708 105.73s-.393 8.564-1.34 13.612","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M115.784 161.512s-3.57-1.488-2.678-7.14","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68","fill","#CBD1D1"],["d","M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z","fill","#2B0849"],["d","M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62","fill","#A4AABA"],["d","M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z","fill","#CBD1D1"],["d","M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078","fill","#2B0849"],["d","M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15","fill","#A4AABA"],["d","M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954","fill","#7BB2F9"],["d","M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M108.459 220.905s2.759-1.104 6.07-3.863","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017","fill","#192064"],["d","M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806","fill","#FFF"],["d","M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64","fill","#192064"],["d","M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"]],template:function(r,i){1&r&&(u.O4$(),u.TgZ(0,"svg",0)(1,"g",1),u._UZ(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"path",18)(19,"path",19)(20,"path",20)(21,"path",21)(22,"path",22)(23,"path",23)(24,"path",24)(25,"path",25)(26,"path",26)(27,"path",27)(28,"path",28)(29,"path",29)(30,"path",30)(31,"path",31)(32,"path",32)(33,"path",33)(34,"path",34)(35,"path",35)(36,"path",36)(37,"path",37)(38,"path",38)(39,"path",39)(40,"path",40)(41,"path",41)(42,"path",42)(43,"path",43)(44,"path",44)(45,"path",45)(46,"path",46)(47,"path",47)(48,"path",48)(49,"path",49)(50,"path",50)(51,"path",51)(52,"path",52)(53,"path",53)(54,"path",54)(55,"path",55),u.qZA()())},encapsulation:2,changeDetection:0})}return e})(),Ve=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=u.lG2({type:e,selectors:[["div","nz-result-extra",""]],hostAttrs:[1,"ant-result-extra"],exportAs:["nzResultExtra"]})}return e})();const hn={success:"check-circle",error:"close-circle",info:"exclamation-circle",warning:"warning"},kn=["404","500","403"];let Cn=(()=>{class e{constructor(t,r){this.cdr=t,this.directionality=r,this.nzStatus="info",this.isException=!1,this.dir="ltr",this.destroy$=new $t.x}ngOnInit(){this.directionality.change?.pipe((0,Dt.R)(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(){this.setStatusIcon()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusIcon(){const t=this.nzIcon;this.isException=-1!==kn.indexOf(this.nzStatus),this.icon=t?"string"==typeof t&&hn[t]||t:this.isException?void 0:hn[this.nzStatus]}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.sBO),u.Y36(Q.Is,8))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-result"]],hostAttrs:[1,"ant-result"],hostVars:10,hostBindings:function(r,i){2&r&&u.ekj("ant-result-success","success"===i.nzStatus)("ant-result-error","error"===i.nzStatus)("ant-result-info","info"===i.nzStatus)("ant-result-warning","warning"===i.nzStatus)("ant-result-rtl","rtl"===i.dir)},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",nzStatus:"nzStatus",nzSubTitle:"nzSubTitle",nzExtra:"nzExtra"},exportAs:["nzResult"],features:[u.TTD],ngContentSelectors:ye,decls:11,vars:8,consts:[[1,"ant-result-icon"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","ant-result-extra",4,"ngIf"],["exceptionTpl",""],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","fill",3,"nzType"],["class","ant-result-title",4,"nzStringTemplateOutlet"],[1,"ant-result-title"],["class","ant-result-subtitle",4,"nzStringTemplateOutlet"],[1,"ant-result-subtitle"],[1,"ant-result-extra"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(r,i){if(1&r&&(u.F$t(xe),u.TgZ(0,"div",0),u.YNc(1,z,3,2,"ng-container",1),u.qZA(),u.YNc(2,q,2,1,"ng-container",2),u.YNc(3,at,1,0,"ng-content",2),u.YNc(4,Nt,2,1,"ng-container",2),u.YNc(5,Ot,1,0,"ng-content",2),u.Hsn(6),u.YNc(7,_t,2,1,"div",3),u.YNc(8,ne,1,0,"ng-content",2),u.YNc(9,ce,4,4,"ng-template",null,4,u.W1O)),2&r){const a=u.MAs(10);u.xp6(1),u.Q6J("ngIf",!i.isException)("ngIfElse",a),u.xp6(1),u.Q6J("ngIf",i.nzTitle),u.xp6(1),u.Q6J("ngIf",!i.nzTitle),u.xp6(1),u.Q6J("ngIf",i.nzSubTitle),u.xp6(1),u.Q6J("ngIf",!i.nzSubTitle),u.xp6(2),u.Q6J("ngIf",i.nzExtra),u.xp6(1),u.Q6J("ngIf",!i.nzExtra)}},dependencies:[K.O5,K.RF,K.n9,gt.f,F.Ls,we,he,Te],encapsulation:2,changeDetection:0})}return e})(),Or=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[Q.vT,K.ez,gt.T,F.PV]})}return e})();var In=V(804),dr=V(9601),vn=V(824),gr=V(4263);const yr=["tree"];function Pr(e,n){1&e&&u._UZ(0,"i",7)}let jr=(()=>{class e{constructor(t,r){this.dataService=t,this.handlerService=r,this.loading=!1}ngOnInit(){this.multiple=this.dimension.type===Tt.REFERENCE_MULTI||this.dimension.type===Tt.REFERENCE_TREE_MULTI;let t=this.dimension.type==Tt.REFERENCE_TREE_MULTI||this.dimension.type==Tt.REFERENCE_TREE_RADIO;this.loading=!0,this.dataService.getBiReference(this.code,this.dimension.id,this.handlerService.buildDimParam(this.bi,!1,!0)).subscribe(r=>{if(r){if(t)this.data=this.recursiveTree(r,null);else{let i=[];r.forEach(a=>{i.push({isLeaf:!0,key:a.id,title:a.title})}),this.data=i}if(this.multiple&&(this.data=[{key:null,title:"\u5168\u90e8",expanded:!0,children:this.data,all:!0}]),this.dimension.$value)switch(this.dimension.type){case Tt.REFERENCE:this.data.forEach(i=>{i.key==this.dimension.$value&&(i.selected=!0)});break;case Tt.REFERENCE_MULTI:this.data[0].children.forEach(i=>{-1!=this.dimension.$value.indexOf(i.key)&&(i.checked=!0)});break;case Tt.REFERENCE_TREE_RADIO:this.findAllNode(this.data).forEach(i=>{i.key==this.dimension.$value&&(i.selected=!0)});break;case Tt.REFERENCE_TREE_MULTI:this.findAllNode(this.data).forEach(i=>{-1!=this.dimension.$value.indexOf(i.key)&&(i.checked=!0)})}}else this.data=[];this.loading=!1})}recursiveTree(t,r){let i=[];return t.forEach(a=>{if(a.pid==r){let o={key:a.id,title:a.title,expanded:!0,children:this.recursiveTree(t,a.id)};o.isLeaf=!o.children.length,i.push(o)}}),i}confirmNodeChecked(){if(this.multiple){let t=this.tree.getCheckedNodeList(),r=[],i=[];t.forEach(a=>{a.origin.key&&(i.push(a.origin.key),r.push(a.origin.title))}),this.dimension.$value=i.length+1===this.findAllNode(this.data).length?[]:i,this.dimension.$viewValue=r.join(" | ")}else this.tree.getSelectedNodeList().length>0&&(this.dimension.$viewValue=this.tree.getSelectedNodeList()[0].title,this.dimension.$value=this.tree.getSelectedNodeList()[0].key)}findAllNode(t,r=[]){return t.forEach(i=>{i.children&&this.findAllNode(i.children,r),r.push(i)}),r}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(ft))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-reference-select"]],viewQuery:function(r,i){if(1&r&&u.Gf(yr,5),2&r){let a;u.iGM(a=u.CRH())&&(i.tree=a.first)}},inputs:{dimension:"dimension",code:"code",bi:"bi"},decls:9,vars:9,consts:[[3,"nzSpinning"],[1,"mb-sm",2,"width","100%",3,"nzSuffix"],["type","text","nz-input","","placeholder","Search",3,"ngModel","ngModelChange"],["searchSuffixIcon",""],[2,"max-height","450px","min-height","300px","overflow","auto"],["nzDraggable","",1,"tree-container",3,"nzCheckStrictly","nzCheckable","nzShowLine","nzHideUnMatched","nzData","nzSearchValue"],["tree",""],["nz-icon","","nzType","search"]],template:function(r,i){if(1&r&&(u.TgZ(0,"nz-spin",0)(1,"nz-input-group",1)(2,"input",2),u.NdJ("ngModelChange",function(o){return i.searchValue=o}),u.qZA()(),u.YNc(3,Pr,1,0,"ng-template",null,3,u.W1O),u._UZ(5,"br"),u.TgZ(6,"div",4),u._UZ(7,"nz-tree",5,6),u.qZA()()),2&r){const a=u.MAs(4);u.Q6J("nzSpinning",i.loading),u.xp6(1),u.Q6J("nzSuffix",a),u.xp6(1),u.Q6J("ngModel",i.searchValue),u.xp6(5),u.Q6J("nzCheckStrictly",!1)("nzCheckable",i.multiple)("nzShowLine",!0)("nzHideUnMatched",!0)("nzData",i.data)("nzSearchValue",i.searchValue)}},dependencies:[D.Fj,D.JJ,D.On,st.w,F.Ls,vn.Zp,vn.gB,vn.ke,vt.W,gr.Hc],encapsulation:2})}return e})();var mr=V(6676),Kr=V(899),Qi=V(6109),za=V(9691),zr=V(2682),qi=V(47),$o=V(8373),Ba=V(3599),Ra=V(7907),wi=V(7929);function Na(e,n){1&e&&(u.TgZ(0,"label",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.Q6J("nzValue",null),u.xp6(1),u.Oqu(u.lcZ(2,2,"global.check_none")))}function Va(e,n){if(1&e&&(u.TgZ(0,"label",6),u._uU(1),u.qZA()),2&e){const t=n.$implicit;u.Q6J("nzValue",t.id),u.xp6(1),u.Oqu(t.title)}}function Jo(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-radio-group",3),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.dim.$value=i)}),u.YNc(2,Na,3,4,"label",4),u.YNc(3,Va,2,2,"label",5),u.qZA(),u.BQk()}if(2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngModel",t.dim.$value)("name",t.dim.code),u.xp6(1),u.Q6J("ngIf",!t.dim.notNull),u.xp6(1),u.Q6J("ngForOf",t.data)}}function ji(e,n){if(1&e&&(u.TgZ(0,"label",10),u._uU(1),u.qZA()),2&e){const t=n.$implicit,r=u.oxw(2);u.Q6J("nzChecked",r.dim.$viewValue)("nzValue",t.id),u.xp6(1),u.Oqu(t.title)}}function Ki(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"label",7),u.NdJ("nzCheckedChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.dim.$viewValue=i)})("nzCheckedChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.checkedChangeAll(i))}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"nz-checkbox-wrapper",8),u.NdJ("nzOnChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.checkedChange(i))}),u.YNc(5,ji,2,3,"label",9),u.qZA(),u.BQk()}if(2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzChecked",t.dim.$viewValue),u.xp6(1),u.Oqu(u.lcZ(3,3,"global.check_all")),u.xp6(3),u.Q6J("ngForOf",t.data)}}let ta=(()=>{class e{constructor(t){this.dataService=t,this.dimType=Tt}ngOnInit(){this.loading=!0,this.dataService.getBiReference(this.bi.code,this.dim.id,null).subscribe(t=>{this.data=t,this.loading=!1})}checkedChange(t){this.dim.$value=t}checkedChangeAll(t){this.dim.$viewValue=t,this.dim.$value=[]}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-bi-choice"]],inputs:{dim:"dim",bi:"bi"},decls:4,vars:4,consts:[[3,"nzSpinning"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngModel","name","ngModelChange"],["nz-radio","",3,"nzValue",4,"ngIf"],["nz-radio","",3,"nzValue",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue"],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[3,"nzOnChange"],["nz-checkbox","",3,"nzChecked","nzValue",4,"ngFor","ngForOf"],["nz-checkbox","",3,"nzChecked","nzValue"]],template:function(r,i){1&r&&(u.TgZ(0,"nz-spin",0),u.ynx(1,1),u.YNc(2,Jo,4,4,"ng-container",2),u.YNc(3,Ki,6,5,"ng-container",2),u.BQk(),u.qZA()),2&r&&(u.Q6J("nzSpinning",i.loading),u.xp6(1),u.Q6J("ngSwitch",i.dim.type),u.xp6(1),u.Q6J("ngSwitchCase",i.dimType.REFERENCE_RADIO),u.xp6(1),u.Q6J("ngSwitchCase",i.dimType.REFERENCE_CHECKBOX))},dependencies:[K.sg,K.O5,K.RF,K.n9,D.JJ,D.On,w.Ie,w.EZ,Ra.Of,Ra.Dg,vt.W,wi.C],styles:["label[nz-radio][_ngcontent-%COMP%]{min-width:120px;margin-right:0;line-height:32px}label[nz-checkbox][_ngcontent-%COMP%]{min-width:120px;line-height:32px;margin-left:0}"]})}return e})();var g=V(7582),pn=V(6028),N=V(3651),P=V(5619),H=V(7715),rt=V(2096),It=V(5592),re=V(2438),ve=V(6232),le=V(4716),Pe=V(3997),on=V(2460),Sn=V(7398),zn=V(7921),xr=V(4664),Br=V(4194),Wn=V(874),ea=V(5448),Ua=V(9087),lr=V(7754),Qo=V(4267),Ul=V(2131),Ya=V(331),na=V(883);const Yl=["nz-cascader-option",""];function xf(e,n){}const Mf=function(e,n){return{$implicit:e,index:n}};function Hl(e,n){if(1&e&&(u.ynx(0),u.YNc(1,xf,0,0,"ng-template",3),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngTemplateOutlet",t.optionTemplate)("ngTemplateOutletContext",u.WLB(2,Mf,t.option,t.columnIndex))}}function Gl(e,n){if(1&e&&(u._UZ(0,"div",4),u.ALo(1,"nzHighlight")),2&e){const t=u.oxw();u.Q6J("innerHTML",u.gM2(1,1,t.optionLabel,t.highlightText,"g","ant-cascader-menu-item-keyword"),u.oJD)}}function Zl(e,n){1&e&&u._UZ(0,"span",8)}function Wl(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"span",10),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("nzType",t.expandIcon)}}function Xl(e,n){if(1&e&&u.YNc(0,Wl,2,1,"ng-container",9),2&e){const t=u.oxw(2);u.Q6J("nzStringTemplateOutlet",t.expandIcon)}}function $l(e,n){if(1&e&&(u.TgZ(0,"div",5),u.YNc(1,Zl,1,0,"span",6),u.YNc(2,Xl,1,1,"ng-template",null,7,u.W1O),u.qZA()),2&e){const t=u.MAs(3),r=u.oxw();u.xp6(1),u.Q6J("ngIf",r.option.loading)("ngIfElse",t)}}const Cf=["selectContainer"],wf=["input"],Ha=["menu"];function Jl(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Oqu(t.labelRenderText)}}function Ql(e,n){}function ql(e,n){if(1&e&&u.YNc(0,Ql,0,0,"ng-template",16),2&e){const t=u.oxw(3);u.Q6J("ngTemplateOutlet",t.nzLabelRender)("ngTemplateOutletContext",t.labelRenderContext)}}function qo(e,n){if(1&e&&(u.TgZ(0,"span",13),u.YNc(1,Jl,2,1,"ng-container",14),u.YNc(2,ql,1,2,"ng-template",null,15,u.W1O),u.qZA()),2&e){const t=u.MAs(3),r=u.oxw(2);u.Q6J("title",r.labelRenderText),u.xp6(1),u.Q6J("ngIf",!r.isLabelRenderTemplate)("ngIfElse",t)}}function jl(e,n){if(1&e&&(u.TgZ(0,"span",17),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.Udp("visibility",t.inputValue?"hidden":"visible"),u.xp6(1),u.Oqu(t.showPlaceholder?t.nzPlaceHolder||(null==t.locale?null:t.locale.placeholder):null)}}function jo(e,n){if(1&e&&u._UZ(0,"span",22),2&e){const t=u.oxw(3);u.ekj("ant-cascader-picker-arrow-expand",t.menuVisible),u.Q6J("nzType",t.nzSuffixIcon)}}function Kl(e,n){1&e&&u._UZ(0,"span",23)}function tc(e,n){if(1&e&&u._UZ(0,"nz-form-item-feedback-icon",24),2&e){const t=u.oxw(3);u.Q6J("status",t.status)}}function Sf(e,n){if(1&e&&(u.TgZ(0,"span",18),u.YNc(1,jo,1,3,"span",19),u.YNc(2,Kl,1,0,"span",20),u.YNc(3,tc,1,1,"nz-form-item-feedback-icon",21),u.qZA()),2&e){const t=u.oxw(2);u.ekj("ant-select-arrow-loading",t.isLoading),u.xp6(1),u.Q6J("ngIf",!t.isLoading),u.xp6(1),u.Q6J("ngIf",t.isLoading),u.xp6(1),u.Q6J("ngIf",t.hasFeedback&&!!t.status)}}function _f(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"span",25)(1,"span",26),u.NdJ("click",function(i){u.CHM(t);const a=u.oxw(2);return u.KtG(a.clearSelection(i))}),u.qZA()()}}function ec(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"div",4,5)(3,"span",6)(4,"input",7,8),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.inputValue=i)})("blur",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.handleInputBlur())})("focus",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.handleInputFocus())}),u.qZA()(),u.YNc(6,qo,4,3,"span",9),u.YNc(7,jl,2,3,"span",10),u.qZA(),u.YNc(8,Sf,4,5,"span",11),u.YNc(9,_f,2,0,"span",12),u.BQk()}if(2&e){const t=u.oxw();u.xp6(4),u.Udp("opacity",t.nzShowSearch?"":"0"),u.Q6J("readonly",!t.nzShowSearch)("disabled",t.nzDisabled)("ngModel",t.inputValue),u.uIk("autoComplete","off")("expanded",t.menuVisible)("autofocus",t.nzAutoFocus?"autofocus":null),u.xp6(2),u.Q6J("ngIf",t.showLabelRender),u.xp6(1),u.Q6J("ngIf",!t.showLabelRender),u.xp6(1),u.Q6J("ngIf",t.nzShowArrow),u.xp6(1),u.Q6J("ngIf",t.clearIconVisible)}}function nc(e,n){if(1&e&&(u.TgZ(0,"ul",32)(1,"li",33),u._UZ(2,"nz-embed-empty",34),u.qZA()()),2&e){const t=u.oxw(2);u.Udp("width",t.dropdownWidthStyle)("height",t.dropdownHeightStyle),u.xp6(2),u.Q6J("nzComponentName","cascader")("specificContent",t.nzNotFoundContent)}}function rc(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"li",38),u.NdJ("mouseenter",function(i){const o=u.CHM(t).$implicit,s=u.oxw().index,l=u.oxw(3);return u.KtG(l.onOptionMouseEnter(o,s,i))})("mouseleave",function(i){const o=u.CHM(t).$implicit,s=u.oxw().index,l=u.oxw(3);return u.KtG(l.onOptionMouseLeave(o,s,i))})("click",function(i){const o=u.CHM(t).$implicit,s=u.oxw().index,l=u.oxw(3);return u.KtG(l.onOptionClick(o,s,i))}),u.qZA()}if(2&e){const t=n.$implicit,r=u.oxw().index,i=u.oxw(3);u.Q6J("expandIcon",i.nzExpandIcon)("columnIndex",r)("nzLabelProperty",i.nzLabelProperty)("optionTemplate",i.nzOptionRender)("activated",i.isOptionActivated(t,r))("highlightText",i.inSearchingMode?i.inputValue:"")("option",t)("dir",i.dir)}}function ic(e,n){if(1&e&&(u.TgZ(0,"ul",36),u.YNc(1,rc,1,8,"li",37),u.qZA()),2&e){const t=n.$implicit,r=u.oxw(3);u.Udp("height",r.dropdownHeightStyle)("width",r.dropdownWidthStyle),u.Q6J("ngClass",r.menuColumnCls),u.xp6(1),u.Q6J("ngForOf",t)}}function ac(e,n){if(1&e&&u.YNc(0,ic,2,6,"ul",35),2&e){const t=u.oxw(2);u.Q6J("ngForOf",t.cascaderService.columns)}}function Ga(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"div",27),u.NdJ("mouseenter",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.onTriggerMouseEnter())})("mouseleave",function(i){u.CHM(t);const a=u.oxw();return u.KtG(a.onTriggerMouseLeave(i))}),u.TgZ(1,"div",28,29),u.YNc(3,nc,3,6,"ul",30),u.YNc(4,ac,1,1,"ng-template",null,31,u.W1O),u.qZA()()}if(2&e){const t=u.MAs(5),r=u.oxw();u.ekj("ant-cascader-dropdown-rtl","rtl"===r.dir),u.Q6J("@slideMotion","enter")("@.disabled",!(null==r.noAnimation||!r.noAnimation.nzNoAnimation))("nzNoAnimation",null==r.noAnimation?null:r.noAnimation.nzNoAnimation),u.xp6(1),u.ekj("ant-cascader-rtl","rtl"===r.dir)("ant-cascader-menus-hidden",!r.menuVisible)("ant-cascader-menu-empty",r.shouldShowEmpty),u.Q6J("ngClass",r.menuCls)("ngStyle",r.nzMenuStyle),u.xp6(2),u.Q6J("ngIf",r.shouldShowEmpty)("ngIfElse",t)}}const oc=["*"];function sc(e){return"boolean"!=typeof e}let Ko=(()=>{class e{constructor(t,r){this.cdr=t,this.optionTemplate=null,this.activated=!1,this.nzLabelProperty="label",this.expandIcon="",this.dir="ltr",this.nativeElement=r.nativeElement}ngOnInit(){""===this.expandIcon&&"rtl"===this.dir?this.expandIcon="left":""===this.expandIcon&&(this.expandIcon="right")}get optionLabel(){return this.option[this.nzLabelProperty]}markForCheck(){this.cdr.markForCheck()}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.sBO),u.Y36(u.SBq))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["","nz-cascader-option",""]],hostAttrs:[1,"ant-cascader-menu-item","ant-cascader-menu-item-expanded"],hostVars:7,hostBindings:function(r,i){2&r&&(u.uIk("title",i.option.title||i.optionLabel),u.ekj("ant-cascader-menu-item-active",i.activated)("ant-cascader-menu-item-expand",!i.option.isLeaf)("ant-cascader-menu-item-disabled",i.option.disabled))},inputs:{optionTemplate:"optionTemplate",option:"option",activated:"activated",highlightText:"highlightText",nzLabelProperty:"nzLabelProperty",columnIndex:"columnIndex",expandIcon:"expandIcon",dir:"dir"},exportAs:["nzCascaderOption"],attrs:Yl,decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["defaultOptionTemplate",""],["class","ant-cascader-menu-item-expand-icon",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-cascader-menu-item-content",3,"innerHTML"],[1,"ant-cascader-menu-item-expand-icon"],["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["icon",""],["nz-icon","","nzType","loading"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(r,i){if(1&r&&(u.YNc(0,Hl,2,5,"ng-container",0),u.YNc(1,Gl,2,6,"ng-template",null,1,u.W1O),u.YNc(3,$l,4,2,"div",2)),2&r){const a=u.MAs(2);u.Q6J("ngIf",i.optionTemplate)("ngIfElse",a),u.xp6(3),u.Q6J("ngIf",!i.option.isLeaf||(null==i.option.children?null:i.option.children.length)||i.option.loading)}},dependencies:[K.O5,K.tP,gt.f,F.Ls,Qo.U],encapsulation:2,changeDetection:0})}return e})(),ts=(()=>{class e{constructor(){this.activatedOptions=[],this.columns=[],this.inSearchingMode=!1,this.selectedOptions=[],this.values=[],this.$loading=new P.X(!1),this.$redraw=new $t.x,this.$optionSelected=new $t.x,this.$quitSearching=new $t.x,this.columnsSnapshot=[[]],this.activatedOptionsSnapshot=[]}get nzOptions(){return this.columns[0]}ngOnDestroy(){this.$redraw.complete(),this.$quitSearching.complete(),this.$optionSelected.complete(),this.$loading.complete()}syncOptions(t=!1){const r=this.values,i=r&&r.length,a=r.length-1,o=s=>{const l=()=>{const c=r[s];if(!(0,lr.DX)(c))return void this.$redraw.next();const h=this.findOptionWithValue(s,r[s])||("object"==typeof c?c:{[`${this.cascaderComponent.nzValueProperty}`]:c,[`${this.cascaderComponent.nzLabelProperty}`]:c});this.setOptionActivated(h,s,!1,!1),s{this.$quitSearching.next(),this.$redraw.next(),this.inSearchingMode=!1,this.columns=[...this.columnsSnapshot],this.activatedOptions=[...this.selectedOptions]},200)}prepareSearchOptions(t){const r=[],i=[],o=this.cascaderComponent.nzShowSearch,s=sc(o)&&o.filter?o.filter:(f,p)=>p.some(d=>{const y=this.getOptionLabel(d);return!!y&&-1!==y.indexOf(f)}),l=sc(o)&&o.sorter?o.sorter:null,c=(f,p=!1)=>{i.push(f);const d=Array.from(i);if(s(t,d)){const m={disabled:p||f.disabled,isLeaf:!0,path:d,[this.cascaderComponent.nzLabelProperty]:d.map(x=>this.getOptionLabel(x)).join(" / ")};r.push(m)}i.pop()},h=(f,p=!1)=>{const d=p||f.disabled;i.push(f),f.children.forEach(y=>{y.parent||(y.parent=f),y.isLeaf||h(y,d),(y.isLeaf||!y.children||!y.children.length)&&c(y,d)}),i.pop()};this.columnsSnapshot.length?(this.columnsSnapshot[0].forEach(f=>function lc(e){return e.isLeaf||!e.children||!e.children.length}(f)?c(f):h(f)),l&&r.sort((f,p)=>l(f.path,p.path,t)),this.columns=[r],this.$redraw.next()):this.columns=[[]]}toggleSearchingMode(t){this.inSearchingMode=t,t?(this.activatedOptionsSnapshot=[...this.activatedOptions],this.activatedOptions=[],this.selectedOptions=[],this.$redraw.next()):(this.activatedOptions=[...this.activatedOptionsSnapshot],this.selectedOptions=[...this.activatedOptions],this.columns=[...this.columnsSnapshot],this.syncOptions(),this.$redraw.next())}clear(){this.values=[],this.selectedOptions=[],this.activatedOptions=[],this.dropBehindColumns(0),this.$redraw.next(),this.$optionSelected.next(null)}getOptionLabel(t){return t[this.cascaderComponent.nzLabelProperty||"label"]}getOptionValue(t){return t[this.cascaderComponent.nzValueProperty||"value"]}setColumnData(t,r,i){(0,lr.cO)(this.columns[r],t)||(t.forEach(o=>o.parent=i),this.columns[r]=t,this.dropBehindColumns(r))}trackAncestorActivatedOptions(t){for(let r=t-1;r>=0;r--)this.activatedOptions[r]||(this.activatedOptions[r]=this.activatedOptions[r+1].parent)}dropBehindActivatedOptions(t){this.activatedOptions=this.activatedOptions.splice(0,t+1)}dropBehindColumns(t){t{t.loading=!1,this.$loading.next(!1),this.$redraw.next()})).subscribe({next:()=>{t.children&&this.setColumnData(t.children,r+1,t),i?.()},error:()=>{t.isLeaf=!0,a?.()}}))}isLoaded(t){return this.columns[t]&&this.columns[t].length>0}findOptionWithValue(t,r){const i=this.columns[t];if(i){const a="object"==typeof r?this.getOptionValue(r):r;return i.find(o=>a===this.getOptionValue(o))}return null}prepareEmitValue(){this.values=this.selectedOptions.map(t=>this.getOptionValue(t))}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac})}return e})();const ra="cascader",es=e=>e.join(" / ");let uc=(()=>{class e{set input(t){this.input$.next(t)}get input(){return this.input$.getValue()}get nzOptions(){return this.cascaderService.nzOptions}set nzOptions(t){this.cascaderService.withOptions(t)}get inSearchingMode(){return this.cascaderService.inSearchingMode}set inputValue(t){this.inputString=t,this.toggleSearchingMode(!!t)}get inputValue(){return this.inputString}get menuCls(){return{[`${this.nzMenuClassName}`]:!!this.nzMenuClassName}}get menuColumnCls(){return{[`${this.nzColumnClassName}`]:!!this.nzColumnClassName}}get hasInput(){return!!this.inputValue}get hasValue(){return this.cascaderService.values&&this.cascaderService.values.length>0}get showLabelRender(){return this.hasValue}get showPlaceholder(){return!(this.hasInput||this.hasValue)}get clearIconVisible(){return this.nzAllowClear&&!this.nzDisabled&&(this.hasValue||this.hasInput)}get isLabelRenderTemplate(){return!!this.nzLabelRender}constructor(t,r,i,a,o,s,l,c,h,f,p,d){this.cascaderService=t,this.nzConfigService=r,this.ngZone=i,this.cdr=a,this.i18nService=o,this.destroy$=s,this.elementRef=l,this.renderer=c,this.directionality=h,this.noAnimation=f,this.nzFormStatusService=p,this.nzFormNoStatusService=d,this._nzModuleName=ra,this.input$=new P.X(void 0),this.nzOptionRender=null,this.nzShowInput=!0,this.nzShowArrow=!0,this.nzAllowClear=!0,this.nzAutoFocus=!1,this.nzChangeOnSelect=!1,this.nzDisabled=!1,this.nzExpandTrigger="click",this.nzValueProperty="value",this.nzLabelRender=null,this.nzLabelProperty="label",this.nzSize="default",this.nzBackdrop=!1,this.nzShowSearch=!1,this.nzPlaceHolder="",this.nzMenuStyle=null,this.nzMouseEnterDelay=150,this.nzMouseLeaveDelay=150,this.nzStatus="",this.nzTriggerAction=["click"],this.nzSuffixIcon="down",this.nzExpandIcon="",this.nzVisibleChange=new u.vpe,this.nzSelectionChange=new u.vpe,this.nzSelect=new u.vpe,this.nzClear=new u.vpe,this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1,this.shouldShowEmpty=!1,this.menuVisible=!1,this.isLoading=!1,this.labelRenderContext={},this.onChange=Function.prototype,this.onTouched=Function.prototype,this.positions=[...ea.n$],this.dropdownHeightStyle="",this.isFocused=!1,this.dir="ltr",this.inputString="",this.isOpening=!1,this.delayMenuTimer=null,this.delaySelectTimer=null,this.isNzDisableFirstChange=!0,this.el=l.nativeElement,this.cascaderService.withComponent(this),this.renderer.addClass(this.elementRef.nativeElement,"ant-select"),this.renderer.addClass(this.elementRef.nativeElement,"ant-cascader")}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,Pe.x)((r,i)=>r.status===i.status&&r.hasFeedback===i.hasFeedback),(0,on.M)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,rt.of)(!1)),(0,Sn.U)(([{status:r,hasFeedback:i},a])=>({status:a?"":r,hasFeedback:i})),(0,Dt.R)(this.destroy$)).subscribe(({status:r,hasFeedback:i})=>{this.setStatusStyles(r,i)});const t=this.cascaderService;t.$redraw.pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.checkChildren(),this.setDisplayLabel(),this.cdr.detectChanges(),this.reposition(),this.setDropdownStyles()}),t.$loading.pipe((0,Dt.R)(this.destroy$)).subscribe(r=>{this.isLoading=r}),t.$optionSelected.pipe((0,Dt.R)(this.destroy$)).subscribe(r=>{if(r){const{option:i,index:a}=r;(i.isLeaf||this.nzChangeOnSelect&&"hover"===this.nzExpandTrigger)&&this.delaySetMenuVisible(!1),this.onChange(this.cascaderService.values),this.nzSelectionChange.emit(this.cascaderService.selectedOptions),this.nzSelect.emit({option:i,index:a}),this.cdr.markForCheck()}else this.onChange([]),this.nzSelect.emit(null),this.nzSelectionChange.emit([])}),t.$quitSearching.pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.inputString="",this.dropdownWidthStyle=""}),this.i18nService.localeChange.pipe((0,zn.O)(),(0,Dt.R)(this.destroy$)).subscribe(()=>{this.setLocale()}),this.nzConfigService.getConfigChangeEventForComponent(ra).pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change.pipe((0,Dt.R)(this.destroy$)).subscribe(()=>{this.dir=this.directionality.value,t.$redraw.next()}),this.setupChangeListener(),this.setupKeydownListener()}ngOnChanges(t){const{nzStatus:r}=t;r&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.clearDelayMenuTimer(),this.clearDelaySelectTimer()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}writeValue(t){this.cascaderService.values=(0,lr.qo)(t),this.cascaderService.syncOptions(!0)}delaySetMenuVisible(t,r=100,i=!1){this.clearDelayMenuTimer(),r?(t&&i&&(this.isOpening=!0),this.delayMenuTimer=setTimeout(()=>{this.setMenuVisible(t),this.cdr.detectChanges(),this.clearDelayMenuTimer(),t&&setTimeout(()=>{this.isOpening=!1},100)},r)):this.setMenuVisible(t)}setMenuVisible(t){this.nzDisabled||this.menuVisible===t||(t&&(this.cascaderService.syncOptions(),this.scrollToActivatedOptions()),t||(this.inputValue=""),this.menuVisible=t,this.nzVisibleChange.emit(t),this.cdr.detectChanges())}clearDelayMenuTimer(){this.delayMenuTimer&&(clearTimeout(this.delayMenuTimer),this.delayMenuTimer=null)}clearSelection(t){t&&(t.preventDefault(),t.stopPropagation()),this.labelRenderText="",this.labelRenderContext={},this.inputValue="",this.setMenuVisible(!1),this.cascaderService.clear(),this.nzClear.emit()}getSubmitValue(){return this.cascaderService.selectedOptions.map(t=>this.cascaderService.getOptionValue(t))}focus(){this.isFocused||((this.input?.nativeElement||this.el).focus(),this.isFocused=!0)}blur(){this.isFocused&&((this.input?.nativeElement||this.el).blur(),this.isFocused=!1)}handleInputBlur(){this.menuVisible?this.focus():this.blur()}handleInputFocus(){this.focus()}onTriggerClick(){this.nzDisabled||(this.nzShowSearch&&this.focus(),this.isActionTrigger("click")&&this.delaySetMenuVisible(!this.menuVisible,100),this.onTouched())}onTriggerMouseEnter(){this.nzDisabled||!this.isActionTrigger("hover")||this.delaySetMenuVisible(!0,this.nzMouseEnterDelay,!0)}onTriggerMouseLeave(t){if(this.nzDisabled||!this.menuVisible||this.isOpening||!this.isActionTrigger("hover"))return void t.preventDefault();const r=t.relatedTarget,a=this.menu&&this.menu.nativeElement;this.el.contains(r)||a&&a.contains(r)||this.delaySetMenuVisible(!1,this.nzMouseLeaveDelay)}onOptionMouseEnter(t,r,i){i.preventDefault(),"hover"===this.nzExpandTrigger&&(t.isLeaf?this.cascaderService.setOptionDeactivatedSinceColumn(r):this.delaySetOptionActivated(t,r,!1))}onOptionMouseLeave(t,r,i){i.preventDefault(),"hover"===this.nzExpandTrigger&&!t.isLeaf&&this.clearDelaySelectTimer()}onOptionClick(t,r,i){i&&i.preventDefault(),(!t||!t.disabled)&&(this.el.focus(),this.inSearchingMode?this.cascaderService.setSearchOptionSelected(t):this.cascaderService.setOptionActivated(t,r,!0))}onClickOutside(t){this.el.contains(t.target)||this.closeMenu()}isActionTrigger(t){return"string"==typeof this.nzTriggerAction?this.nzTriggerAction===t:-1!==this.nzTriggerAction.indexOf(t)}onEnter(){const t=Math.max(this.cascaderService.activatedOptions.length-1,0),r=this.cascaderService.activatedOptions[t];r&&!r.disabled&&(this.inSearchingMode?this.cascaderService.setSearchOptionSelected(r):this.cascaderService.setOptionActivated(r,t,!0))}moveUpOrDown(t){const r=Math.max(this.cascaderService.activatedOptions.length-1,0),i=this.cascaderService.activatedOptions[r],a=this.cascaderService.columns[r]||[],o=a.length;let s=-1;for(s=i?a.indexOf(i):t?o:-1;s=t?s-1:s+1,!(s<0||s>=o);){const l=a[s];if(l&&!l.disabled){this.cascaderService.setOptionActivated(l,r);break}}}moveLeft(){const t=this.cascaderService.activatedOptions;t.length&&t.pop()}moveRight(){const t=this.cascaderService.activatedOptions.length,r=this.cascaderService.columns[t];if(r&&r.length){const i=r.find(a=>!a.disabled);i&&this.cascaderService.setOptionActivated(i,t)}}clearDelaySelectTimer(){this.delaySelectTimer&&(clearTimeout(this.delaySelectTimer),this.delaySelectTimer=null)}delaySetOptionActivated(t,r,i){this.clearDelaySelectTimer(),this.delaySelectTimer=setTimeout(()=>{this.cascaderService.setOptionActivated(t,r,i),this.delaySelectTimer=null},150)}toggleSearchingMode(t){this.inSearchingMode!==t&&this.cascaderService.toggleSearchingMode(t),this.inSearchingMode&&this.cascaderService.prepareSearchOptions(this.inputValue)}isOptionActivated(t,r){return this.cascaderService.activatedOptions[r]===t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.closeMenu()}closeMenu(){this.blur(),this.clearDelayMenuTimer(),this.setMenuVisible(!1)}reposition(){this.overlay&&this.overlay.overlayRef&&this.menuVisible&&Promise.resolve().then(()=>{this.overlay.overlayRef.updatePosition(),this.cdr.markForCheck()})}checkChildren(){this.cascaderItems&&this.cascaderItems.forEach(t=>t.markForCheck())}setDisplayLabel(){const t=this.cascaderService.selectedOptions,r=t.map(i=>this.cascaderService.getOptionLabel(i));this.isLabelRenderTemplate&&(this.labelRenderContext={labels:r,selectedOptions:t}),this.labelRenderText=es.call(this,r)}setDropdownStyles(){const t=this.cascaderService.columns[0];this.shouldShowEmpty=this.inSearchingMode&&(!t||!t.length)||!(this.nzOptions&&this.nzOptions.length)&&!this.nzLoadData,this.dropdownHeightStyle=this.shouldShowEmpty?"auto":"",this.input&&(this.dropdownWidthStyle=this.inSearchingMode||this.shouldShowEmpty?`${this.selectContainer.nativeElement.offsetWidth}px`:"")}setStatusStyles(t,r){this.status=t,this.hasFeedback=r,this.cdr.markForCheck(),this.statusCls=(0,lr.Zu)(this.prefixCls,t,r),Object.keys(this.statusCls).forEach(i=>{this.statusCls[i]?this.renderer.addClass(this.elementRef.nativeElement,i):this.renderer.removeClass(this.elementRef.nativeElement,i)})}setLocale(){this.locale=this.i18nService.getLocaleData("global"),this.cdr.markForCheck()}scrollToActivatedOptions(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.cascaderItems.toArray().filter(t=>t.activated).forEach(t=>{t.nativeElement.scrollIntoView({block:"start",inline:"nearest"})})})})}setupChangeListener(){this.input$.pipe((0,xr.w)(t=>t?new It.y(r=>this.ngZone.runOutsideAngular(()=>(0,re.R)(t.nativeElement,"change").subscribe(r))):ve.E),(0,Dt.R)(this.destroy$)).subscribe(t=>t.stopPropagation())}setupKeydownListener(){this.ngZone.runOutsideAngular(()=>{(0,re.R)(this.el,"keydown").pipe((0,Dt.R)(this.destroy$)).subscribe(t=>{const r=t.keyCode;if(r===pn.JH||r===pn.LH||r===pn.oh||r===pn.SV||r===pn.K5||r===pn.ZH||r===pn.hY){if(!this.menuVisible&&r!==pn.ZH&&r!==pn.hY)return this.ngZone.run(()=>this.setMenuVisible(!0));this.inSearchingMode&&(r===pn.ZH||r===pn.oh||r===pn.SV)||this.menuVisible&&(t.preventDefault(),this.ngZone.run(()=>{r===pn.JH?this.moveUpOrDown(!1):r===pn.LH?this.moveUpOrDown(!0):r===pn.oh?this.moveLeft():r===pn.SV?this.moveRight():r===pn.K5&&this.onEnter(),this.cdr.markForCheck()}))}})})}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(ts),u.Y36(Wn.jY),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(Ul.wi),u.Y36(Ua.kn),u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(Q.Is,8),u.Y36(Ya.P,9),u.Y36(na.kH,8),u.Y36(na.yW,8))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-cascader"],["","nz-cascader",""]],viewQuery:function(r,i){if(1&r&&(u.Gf(Cf,5),u.Gf(wf,5),u.Gf(Ha,5),u.Gf(N.pI,5),u.Gf(Ko,5)),2&r){let a;u.iGM(a=u.CRH())&&(i.selectContainer=a.first),u.iGM(a=u.CRH())&&(i.input=a.first),u.iGM(a=u.CRH())&&(i.menu=a.first),u.iGM(a=u.CRH())&&(i.overlay=a.first),u.iGM(a=u.CRH())&&(i.cascaderItems=a)}},hostVars:23,hostBindings:function(r,i){1&r&&u.NdJ("click",function(){return i.onTriggerClick()})("mouseenter",function(){return i.onTriggerMouseEnter()})("mouseleave",function(o){return i.onTriggerMouseLeave(o)}),2&r&&(u.uIk("tabIndex","0"),u.ekj("ant-select-in-form-item",!!i.nzFormStatusService)("ant-select-lg","large"===i.nzSize)("ant-select-sm","small"===i.nzSize)("ant-select-allow-clear",i.nzAllowClear)("ant-select-show-arrow",i.nzShowArrow)("ant-select-show-search",!!i.nzShowSearch)("ant-select-disabled",i.nzDisabled)("ant-select-open",i.menuVisible)("ant-select-focused",i.isFocused)("ant-select-single",!0)("ant-select-rtl","rtl"===i.dir))},inputs:{nzOptionRender:"nzOptionRender",nzShowInput:"nzShowInput",nzShowArrow:"nzShowArrow",nzAllowClear:"nzAllowClear",nzAutoFocus:"nzAutoFocus",nzChangeOnSelect:"nzChangeOnSelect",nzDisabled:"nzDisabled",nzColumnClassName:"nzColumnClassName",nzExpandTrigger:"nzExpandTrigger",nzValueProperty:"nzValueProperty",nzLabelRender:"nzLabelRender",nzLabelProperty:"nzLabelProperty",nzNotFoundContent:"nzNotFoundContent",nzSize:"nzSize",nzBackdrop:"nzBackdrop",nzShowSearch:"nzShowSearch",nzPlaceHolder:"nzPlaceHolder",nzMenuClassName:"nzMenuClassName",nzMenuStyle:"nzMenuStyle",nzMouseEnterDelay:"nzMouseEnterDelay",nzMouseLeaveDelay:"nzMouseLeaveDelay",nzStatus:"nzStatus",nzTriggerAction:"nzTriggerAction",nzChangeOn:"nzChangeOn",nzLoadData:"nzLoadData",nzSuffixIcon:"nzSuffixIcon",nzExpandIcon:"nzExpandIcon",nzOptions:"nzOptions"},outputs:{nzVisibleChange:"nzVisibleChange",nzSelectionChange:"nzSelectionChange",nzSelect:"nzSelect",nzClear:"nzClear"},exportAs:["nzCascader"],features:[u._Bn([{provide:D.JU,useExisting:(0,u.Gpc)(()=>e),multi:!0},ts,Ua.kn]),u.TTD],ngContentSelectors:oc,decls:6,vars:6,consts:[["cdkOverlayOrigin",""],["origin","cdkOverlayOrigin","trigger",""],[4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayOpen","overlayOutsideClick","detach"],[1,"ant-select-selector"],["selectContainer",""],[1,"ant-select-selection-search"],["type","search",1,"ant-select-selection-search-input",3,"readonly","disabled","ngModel","ngModelChange","blur","focus"],["input",""],["class","ant-select-selection-item",3,"title",4,"ngIf"],["class","ant-select-selection-placeholder",3,"visibility",4,"ngIf"],["class","ant-select-arrow",3,"ant-select-arrow-loading",4,"ngIf"],["class","ant-select-clear",4,"ngIf"],[1,"ant-select-selection-item",3,"title"],[4,"ngIf","ngIfElse"],["labelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-select-selection-placeholder"],[1,"ant-select-arrow"],["nz-icon","",3,"nzType","ant-cascader-picker-arrow-expand",4,"ngIf"],["nz-icon","","nzType","loading",4,"ngIf"],[3,"status",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","loading"],[3,"status"],[1,"ant-select-clear"],["nz-icon","","nzType","close-circle","nzTheme","fill",3,"click"],[1,"ant-select-dropdown","ant-cascader-dropdown","ant-select-dropdown-placement-bottomLeft",3,"nzNoAnimation","mouseenter","mouseleave"],[1,"ant-cascader-menus",3,"ngClass","ngStyle"],["menu",""],["class","ant-cascader-menu",3,"width","height",4,"ngIf","ngIfElse"],["hasOptionsTemplate",""],[1,"ant-cascader-menu"],[1,"ant-cascader-menu-item","ant-cascader-menu-item-disabled"],[1,"ant-cascader-menu-item-content",3,"nzComponentName","specificContent"],["class","ant-cascader-menu","role","menuitemcheckbox",3,"ngClass","height","width",4,"ngFor","ngForOf"],["role","menuitemcheckbox",1,"ant-cascader-menu",3,"ngClass"],["nz-cascader-option","",3,"expandIcon","columnIndex","nzLabelProperty","optionTemplate","activated","highlightText","option","dir","mouseenter","mouseleave","click",4,"ngFor","ngForOf"],["nz-cascader-option","",3,"expandIcon","columnIndex","nzLabelProperty","optionTemplate","activated","highlightText","option","dir","mouseenter","mouseleave","click"]],template:function(r,i){if(1&r&&(u.F$t(),u.TgZ(0,"div",0,1),u.YNc(3,ec,10,12,"ng-container",2),u.Hsn(4),u.qZA(),u.YNc(5,Ga,6,15,"ng-template",3),u.NdJ("overlayOutsideClick",function(o){return i.onClickOutside(o)})("detach",function(){return i.closeMenu()})),2&r){const a=u.MAs(1);u.xp6(3),u.Q6J("ngIf",i.nzShowInput),u.xp6(2),u.Q6J("cdkConnectedOverlayHasBackdrop",i.nzBackdrop)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayPositions",i.positions)("cdkConnectedOverlayTransformOriginOn",".ant-cascader-dropdown")("cdkConnectedOverlayOpen",i.menuVisible)}},dependencies:[Q.Lv,K.mk,K.sg,K.O5,K.tP,K.PC,D.Fj,D.JJ,D.On,N.pI,N.xu,In.gB,F.Ls,Ya.P,ea.hQ,na.w_,Ko],encapsulation:2,data:{animation:[Br.mF]},changeDetection:0})}return(0,g.gn)([(0,lr.yF)()],e.prototype,"nzShowInput",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzShowArrow",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzAllowClear",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzAutoFocus",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzChangeOnSelect",void 0),(0,g.gn)([(0,lr.yF)()],e.prototype,"nzDisabled",void 0),(0,g.gn)([(0,Wn.oS)()],e.prototype,"nzSize",void 0),(0,g.gn)([(0,Wn.oS)()],e.prototype,"nzBackdrop",void 0),e})(),hc=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[Q.vT,K.ez,D.u5,N.U8,gt.T,In.Xo,Qo.C,F.PV,vn.o7,Ya.g,ea.e4,na.mJ]})}return e})(),fc=(()=>{class e{constructor(t,r,i){this.dataService=t,this.handlerService=r,this.i18nService=i,this.loading=!1}fanyi(t){return this.i18nService.fanyi("")}ngOnInit(){this.loading=!0,this.dataService.getBiReference(this.bi.code,this.dim.id,this.handlerService.buildDimParam(this.bi,!1,!0)).subscribe(t=>{this.data=this.recursiveTree(t,null),this.data.forEach(r=>{r.key==this.dim.$value&&(r.selected=!0)}),this.loading=!1})}recursiveTree(t,r){let i=[];return t.forEach(a=>{if(a.pid==r){let o={value:a.id,label:a.title,children:this.recursiveTree(t,a.id)};o.isLeaf=!o.children.length,i.push(o)}}),i}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(ft),u.Y36(Kr.t$))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-bi-cascade"]],inputs:{dim:"dim",bi:"bi"},decls:2,vars:6,consts:[[3,"nzSpinning"],[2,"width","100%",3,"ngModel","nzChangeOnSelect","nzShowSearch","nzNotFoundContent","nzOptions","ngModelChange"]],template:function(r,i){1&r&&(u.TgZ(0,"nz-spin",0)(1,"nz-cascader",1),u.NdJ("ngModelChange",function(o){return i.dim.$value=o}),u.qZA()()),2&r&&(u.Q6J("nzSpinning",i.loading),u.xp6(1),u.Q6J("ngModel",i.dim.$value)("nzChangeOnSelect",!0)("nzShowSearch",!0)("nzNotFoundContent",i.fanyi("global.no_data"))("nzOptions",i.data))},dependencies:[D.JJ,D.On,vt.W,uc],encapsulation:2})}return e})();const vc=["*"];let pc=(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-search-se"]],inputs:{dimension:"dimension"},ngContentSelectors:vc,decls:9,vars:3,consts:[[2,"display","flex","margin","4px 0"],[2,"display","flex","justify-content","flex-end"],[1,"ellipsis",2,"line-height","32px","width","90px","text-align","left"],[2,"color","#f00"],[2,"margin","0 3px",3,"title"],[2,"flex","1","width","100%"]],template:function(r,i){1&r&&(u.F$t(),u.TgZ(0,"div",0)(1,"div",1)(2,"label",2)(3,"span",3),u._uU(4),u.qZA(),u.TgZ(5,"span",4),u._uU(6),u.qZA()()(),u.TgZ(7,"div",5),u.Hsn(8),u.qZA()()),2&r&&(u.xp6(4),u.Oqu(i.dimension.notNull?"*":""),u.xp6(1),u.Q6J("title",i.dimension.title),u.xp6(1),u.hij("",i.dimension.title," : \xa0"))}})}return e})();function dc(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",6)(2,"bi-search-se",7),u._UZ(3,"erupt-bi-choice",8),u.qZA()(),u.BQk()),2&e){const t=u.oxw().$implicit,r=u.oxw();u.xp6(1),u.Q6J("nzXs",24),u.xp6(1),u.Q6J("dimension",t),u.xp6(1),u.Q6J("dim",t)("bi",r.bi)}}function gc(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",9)(2,"bi-search-se",7),u._UZ(3,"erupt-bi-choice",8),u.qZA()(),u.BQk()),2&e){const t=u.oxw().$implicit,r=u.oxw();u.xp6(2),u.Q6J("dimension",t),u.xp6(1),u.Q6J("dim",t)("bi",r.bi)}}function ia(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-select",12),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("nzMode","tags")("ngModel",t.$value)("name",t.code)}}function yc(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"i",17),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(4).$implicit;return u.KtG(i.$value=null)}),u.qZA()}}function mc(e,n){if(1&e&&u.YNc(0,yc,1,0,"i",16),2&e){const t=u.oxw(3).$implicit;u.Q6J("ngIf",t.$value)}}function xc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",13)(2,"input",14),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)})("keydown",function(i){u.CHM(t);const a=u.oxw(3);return u.KtG(a.enterEvent(i))}),u.qZA()(),u.YNc(3,mc,1,1,"ng-template",null,15,u.W1O),u.BQk()}if(2&e){const t=u.MAs(4),r=u.oxw(2).$implicit;u.xp6(1),u.Q6J("nzSuffix",t),u.xp6(1),u.Q6J("ngModel",r.$value)("name",r.code)("required",r.notNull)}}function Mc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-number",18),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)})("keydown",function(i){u.CHM(t);const a=u.oxw(3);return u.KtG(a.enterEvent(i))}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function aa(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",19)(2,"nz-input-number",20),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value[0]=i)}),u.qZA(),u._UZ(3,"input",21),u.TgZ(4,"nz-input-number",20),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value[1]=i)}),u.qZA()(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(2),u.Q6J("ngModel",t.$value[0])("name",t.code),u.xp6(2),u.Q6J("ngModel",t.$value[1])("name",t.code)}}function oa(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"i",23),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3).$implicit,a=u.oxw();return u.KtG(a.clearRef(i))}),u.qZA(),u.BQk()}}function Cc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"i",24),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA(),u.BQk()}}function wc(e,n){if(1&e&&(u.YNc(0,oa,2,0,"ng-container",22),u.YNc(1,Cc,2,0,"ng-container",22)),2&e){const t=u.oxw(2).$implicit;u.Q6J("ngIf",t.$value),u.xp6(1),u.Q6J("ngIf",!t.$value)}}function Sc(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function T(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function X(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function ot(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-input-group",25)(2,"input",26),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2).$implicit,a=u.oxw();return u.KtG(a.ref(i))}),u.qZA()(),u.BQk()}if(2&e){u.oxw();const t=u.MAs(10),r=u.oxw().$implicit;u.xp6(1),u.Q6J("nzAddOnAfter",t),u.xp6(1),u.Q6J("required",r.notNull)("readOnly",!0)("value",r.$viewValue||null)("name",r.code)}}function pt(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"erupt-bi-cascade",8),u.BQk()),2&e){const t=u.oxw(2).$implicit,r=u.oxw();u.xp6(1),u.Q6J("dim",t)("bi",r.bi)}}function Gt(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-date-picker",27),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function pe(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-range-picker",28),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngModel",t.$value)("nzRanges",r.dateRanges)("name",t.code)}}function Ee(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-time-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function qe(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-date-picker",30),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Dn(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-range-picker",31),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)("nzRanges",r.dateRanges)}}function Bn(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-week-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Xn(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-month-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Za(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-year-picker",29),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw(2).$implicit;return u.KtG(a.$value=i)}),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2).$implicit;u.xp6(1),u.Q6J("ngModel",t.$value)("name",t.code)}}function Rm(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",10)(2,"bi-search-se",7),u.ynx(3,3),u.YNc(4,ia,2,3,"ng-container",4),u.YNc(5,xc,5,4,"ng-container",4),u.YNc(6,Mc,2,2,"ng-container",4),u.YNc(7,aa,5,4,"ng-container",4),u.ynx(8),u.YNc(9,wc,2,2,"ng-template",null,11,u.W1O),u.YNc(11,Sc,3,5,"ng-container",4),u.YNc(12,T,3,5,"ng-container",4),u.YNc(13,X,3,5,"ng-container",4),u.YNc(14,ot,3,5,"ng-container",4),u.BQk(),u.YNc(15,pt,2,2,"ng-container",4),u.YNc(16,Gt,2,2,"ng-container",4),u.YNc(17,pe,2,3,"ng-container",4),u.YNc(18,Ee,2,2,"ng-container",4),u.YNc(19,qe,2,2,"ng-container",4),u.YNc(20,Dn,2,3,"ng-container",4),u.YNc(21,Bn,2,2,"ng-container",4),u.YNc(22,Xn,2,2,"ng-container",4),u.YNc(23,Za,2,2,"ng-container",4),u.BQk(),u.qZA()(),u.BQk()),2&e){const t=u.oxw().$implicit,r=u.oxw();u.xp6(1),u.Q6J("nzXs",r.col.xs)("nzSm",r.col.sm)("nzMd",r.col.md)("nzLg",r.col.lg)("nzXl",r.col.xl)("nzXXl",r.col.xxl),u.xp6(1),u.Q6J("dimension",t),u.xp6(1),u.Q6J("ngSwitch",t.type),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.TAG),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.INPUT),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.NUMBER),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.NUMBER_RANGE),u.xp6(4),u.Q6J("ngSwitchCase",r.dimType.REFERENCE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_MULTI),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_TREE_MULTI),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_TREE_RADIO),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_CASCADE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATE_RANGE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.TIME),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATETIME),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.DATETIME_RANGE),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.WEEK),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.MONTH),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.YEAR)}}function Nm(e,n){if(1&e&&(u.ynx(0)(1,3),u.YNc(2,dc,4,4,"ng-container",4),u.YNc(3,gc,4,3,"ng-container",4),u.YNc(4,Rm,24,25,"ng-container",5),u.BQk()()),2&e){const t=n.$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngSwitch",t.type),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_RADIO),u.xp6(1),u.Q6J("ngSwitchCase",r.dimType.REFERENCE_CHECKBOX)}}let Vm=(()=>{class e{constructor(t,r){this.modal=t,this.i18n=r,this.search=new u.vpe,this.col=dr.l[3],this.dimType=Tt,this.dateRanges={},this.datePipe=new K.uU("zh-cn")}ngOnInit(){this.dateRanges={[this.i18n.fanyi("global.today")]:[this.datePipe.transform(new Date,"yyyy-MM-dd 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.last_7_day")]:[this.datePipe.transform(mr().add(-7,"day").toDate(),"yyyy-MM-dd 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.last_30_day")]:[this.datePipe.transform(mr().add(-30,"day").toDate(),"yyyy-MM-dd 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.this_month")]:[this.datePipe.transform(mr().toDate(),"yyyy-MM-01 00:00:00"),this.datePipe.transform(new Date,"yyyy-MM-dd 23:59:59")],[this.i18n.fanyi("global.date.last_month")]:[this.datePipe.transform(mr().add(-1,"month").toDate(),"yyyy-MM-01 00:00:00"),this.datePipe.transform(mr().add(-1,"month").endOf("month").toDate(),"yyyy-MM-dd 23:59:59")]}}enterEvent(t){13===t.which&&this.search.emit()}ref(t){let r=this.modal.create({nzWrapClassName:"modal-xs",nzKeyboard:!0,nzStyle:{top:"30px"},nzTitle:t.title,nzContent:jr,nzOnOk:i=>{i.confirmNodeChecked()}});Object.assign(r.getContentComponent(),{dimension:t,code:this.bi.code,bi:this.bi})}clearRef(t){t.$viewValue=null,t.$value=null}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(Y.Sf),u.Y36(Kr.t$))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-dimension"]],inputs:{bi:"bi"},outputs:{search:"search"},decls:3,vars:2,consts:[["nz-form","","nzLayout","horizontal"],["nz-row","",3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-col","",3,"nzXs"],[3,"dimension"],[3,"dim","bi"],["nz-col",""],["nz-col","",3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],["refBtn",""],[2,"width","100%",3,"nzMode","ngModel","name","ngModelChange"],[1,"erupt-input",3,"nzSuffix"],["nz-input","","autocomplete","off",1,"full-width",3,"ngModel","name","required","ngModelChange","keydown"],["suffixTemplate",""],["nz-icon","","nz-tooltip","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nz-tooltip","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],[1,"full-width",3,"ngModel","name","ngModelChange","keydown"],[1,"erupt-input",2,"display","flex","align-items","center"],[2,"width","45%",3,"ngModel","name","ngModelChange"],["disabled","","nz-input","","placeholder","~",2,"width","30px","border-left","0","border-right","0","pointer-events","none"],[4,"ngIf"],["nz-icon","","nzType","close-circle","theme","fill",1,"point",3,"click"],["nz-icon","","nzType","database","theme","fill",1,"point",3,"click"],[1,"full-width",3,"nzAddOnAfter"],["nz-input","","autocomplete","off",3,"required","readOnly","value","name","click"],["nzShowToday","",1,"full-width",3,"ngModel","name","ngModelChange"],["nzShowToday","",1,"full-width",3,"ngModel","nzRanges","name","ngModelChange"],[1,"full-width",3,"ngModel","name","ngModelChange"],["nzShowTime","","nzShowToday","",1,"full-width",3,"ngModel","name","ngModelChange"],["nzShowToday","","nzShowTime","",1,"full-width",3,"ngModel","name","nzRanges","ngModelChange"]],template:function(r,i){1&r&&(u.TgZ(0,"form",0)(1,"div",1),u.YNc(2,Nm,5,3,"ng-container",2),u.qZA()()),2&r&&(u.xp6(1),u.Q6J("nzGutter",16),u.xp6(1),u.Q6J("ngForOf",i.bi.dimensions))},dependencies:[K.sg,K.O5,K.RF,K.n9,K.ED,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.On,D.F,st.w,I.t3,I.SK,Qi.SY,za.Vq,F.Ls,vn.Zp,vn.gB,vn.ke,zr.uw,zr.wS,zr.Xv,zr.Mq,zr.mr,qi.m4,$o._V,Ba.Lr,ta,fc,pc],styles:["[_nghost-%COMP%] nz-input-group{width:100%}[_nghost-%COMP%] se{width:100%}[_nghost-%COMP%] se .ant-form-item-label{width:auto!important;text-overflow:ellipsis;white-space:nowrap;max-width:150px;min-width:65px}"]})}return e})();var Wa,bc,kf,Tc,v=V(6641),gn=function(e){return e.FORE="fore",e.MID="mid",e.BG="bg",e}(gn||{}),ue=function(e){return e.TOP="top",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.RIGHT="right",e.RIGHT_TOP="right-top",e.RIGHT_BOTTOM="right-bottom",e.LEFT="left",e.LEFT_TOP="left-top",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.RADIUS="radius",e.CIRCLE="circle",e.NONE="none",e}(ue||{}),_n=function(e){return e.AXIS="axis",e.GRID="grid",e.LEGEND="legend",e.TOOLTIP="tooltip",e.ANNOTATION="annotation",e.SLIDER="slider",e.SCROLLBAR="scrollbar",e.OTHER="other",e}(_n||{}),Ue=function(e){return e.BEFORE_RENDER="beforerender",e.AFTER_RENDER="afterrender",e.BEFORE_PAINT="beforepaint",e.AFTER_PAINT="afterpaint",e.BEFORE_CHANGE_DATA="beforechangedata",e.AFTER_CHANGE_DATA="afterchangedata",e.BEFORE_CLEAR="beforeclear",e.AFTER_CLEAR="afterclear",e.BEFORE_DESTROY="beforedestroy",e.BEFORE_CHANGE_SIZE="beforechangesize",e.AFTER_CHANGE_SIZE="afterchangesize",e}(Ue||{}),Si=function(e){return e.BEFORE_DRAW_ANIMATE="beforeanimate",e.AFTER_DRAW_ANIMATE="afteranimate",e.BEFORE_RENDER_LABEL="beforerenderlabel",e.AFTER_RENDER_LABEL="afterrenderlabel",e}(Si||{}),$n=function(e){return e.MOUSE_ENTER="plot:mouseenter",e.MOUSE_DOWN="plot:mousedown",e.MOUSE_MOVE="plot:mousemove",e.MOUSE_UP="plot:mouseup",e.MOUSE_LEAVE="plot:mouseleave",e.TOUCH_START="plot:touchstart",e.TOUCH_MOVE="plot:touchmove",e.TOUCH_END="plot:touchend",e.TOUCH_CANCEL="plot:touchcancel",e.CLICK="plot:click",e.DBLCLICK="plot:dblclick",e.CONTEXTMENU="plot:contextmenu",e.LEAVE="plot:leave",e.ENTER="plot:enter",e}($n||{}),_c=function(e){return e.ACTIVE="active",e.INACTIVE="inactive",e.SELECTED="selected",e.DEFAULT="default",e}(_c||{}),la=["color","shape","size"],nn="_origin",Ff={};function Ef(e,n){Ff[e]=n}function ti(e){Wa||function Ym(){Wa=document.createElement("table"),bc=document.createElement("tr"),kf=/^\s*<(\w+|!)[^>]*>/,Tc={tr:document.createElement("tbody"),tbody:Wa,thead:Wa,tfoot:Wa,td:bc,th:bc,"*":document.createElement("div")}}();var n=kf.test(e)&&RegExp.$1;(!n||!(n in Tc))&&(n="*");var t=Tc[n];e="string"==typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,t.innerHTML=""+e;var r=t.childNodes[0];return r&&t.contains(r)&&t.removeChild(r),r}function Ln(e,n){if(e)for(var t in n)n.hasOwnProperty(t)&&(e.style[t]=n[t]);return e}function If(e){return"number"==typeof e&&!isNaN(e)}function Df(e,n,t,r){var i=t,a=r;if(n){var o=function Hm(e){var n=getComputedStyle(e);return{width:(e.clientWidth||parseInt(n.width,10))-parseInt(n.paddingLeft,10)-parseInt(n.paddingRight,10),height:(e.clientHeight||parseInt(n.height,10))-parseInt(n.paddingTop,10)-parseInt(n.paddingBottom,10)}}(e);i=o.width?o.width:i,a=o.height?o.height:a}return{width:Math.max(If(i)?i:1,1),height:Math.max(If(a)?a:1,1)}}var Lf=V(1120),Zm=function(e){function n(t){var r=e.call(this)||this;r.destroyed=!1;var i=t.visible;return r.visible=void 0===i||i,r}return(0,g.ZT)(n,e),n.prototype.show=function(){this.visible||this.changeVisible(!0)},n.prototype.hide=function(){this.visible&&this.changeVisible(!1)},n.prototype.destroy=function(){this.off(),this.destroyed=!0},n.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},n}(Lf.Z);const Ac=Zm;var bn=V(659),Jm=function(){function e(n){var t=n.xField,r=n.yField,i=n.adjustNames,o=n.dimValuesMap;this.adjustNames=void 0===i?["x","y"]:i,this.xField=t,this.yField=r,this.dimValuesMap=o}return e.prototype.isAdjust=function(n){return this.adjustNames.indexOf(n)>=0},e.prototype.getAdjustRange=function(n,t,r){var s,l,i=this.yField,a=r.indexOf(t),o=r.length;return!i&&this.isAdjust("y")?(s=0,l=1):o>1?(s=r[0===a?0:a-1],l=r[a===o-1?o-1:a+1],0!==a?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-r[o-2])/2):(s=0===t?0:t-.5,l=0===t?1:t+.5),{pre:s,next:l}},e.prototype.adjustData=function(n,t){var r=this,i=this.getDimValues(t);v.S6(n,function(a,o){v.S6(i,function(s,l){r.adjustDim(l,s,a,o)})})},e.prototype.groupData=function(n,t){return v.S6(n,function(r){void 0===r[t]&&(r[t]=0)}),v.vM(n,t)},e.prototype.adjustDim=function(n,t,r,i){},e.prototype.getDimValues=function(n){var r=this.xField,i=this.yField,a=v.f0({},this.dimValuesMap),o=[];return r&&this.isAdjust("x")&&o.push(r),i&&this.isAdjust("y")&&o.push(i),o.forEach(function(l){a&&a[l]||(a[l]=v.I(n,l).sort(function(c,h){return c-h}))}),!i&&this.isAdjust("y")&&(a.y=[0,1]),a},e}();const ns=Jm;var Pf={},zf=function(e){return Pf[e.toLowerCase()]},rs=function(e,n){if(zf(e))throw new Error("Adjust type '"+e+"' existed.");Pf[e.toLowerCase()]=n},Fc=function(e,n){return(Fc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])})(e,n)};function is(e,n){function t(){this.constructor=e}Fc(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Mr=function(){return Mr=Object.assign||function(n){for(var t,r=1,i=arguments.length;r=0)d=h+this.getIntervalOnlyOffset(i,r);else if(!v.UM(c)&&v.UM(l)&&c>=0)d=h+this.getDodgeOnlyOffset(i,r);else if(!v.UM(l)&&!v.UM(c)&&l>=0&&c>=0)d=h+this.getIntervalAndDodgeOffset(i,r);else{var m=p*o/i,x=s*m;d=(h+f)/2+(.5*(p-i*m-(i-1)*x)+((r+1)*m+r*x)-.5*m-.5*p)}return d},n.prototype.getIntervalOnlyOffset=function(t,r){var i=this,a=i.defaultSize,s=i.xDimensionLegenth,l=i.groupNum,h=i.maxColumnWidth,f=i.minColumnWidth,p=i.columnWidthRatio,d=i.intervalPadding/s,y=(1-(l-1)*d)/l*i.dodgeRatio/(t-1),m=((1-d*(l-1))/l-y*(t-1))/t;return m=v.UM(p)?m:1/l/t*p,v.UM(h)||(m=Math.min(m,h/s)),v.UM(f)||(m=Math.max(m,f/s)),((.5+r)*(m=a?a/s:m)+r*(y=((1-(l-1)*d)/l-t*m)/(t-1))+.5*d)*l-d/2},n.prototype.getDodgeOnlyOffset=function(t,r){var i=this,a=i.defaultSize,s=i.xDimensionLegenth,l=i.groupNum,h=i.maxColumnWidth,f=i.minColumnWidth,p=i.columnWidthRatio,d=i.dodgePadding/s,y=1*i.marginRatio/(l-1),m=((1-y*(l-1))/l-d*(t-1))/t;return m=p?1/l/t*p:m,v.UM(h)||(m=Math.min(m,h/s)),v.UM(f)||(m=Math.max(m,f/s)),((.5+r)*(m=a?a/s:m)+r*d+.5*(y=(1-(m*t+d*(t-1))*l)/(l-1)))*l-y/2},n.prototype.getIntervalAndDodgeOffset=function(t,r){var i=this,s=i.xDimensionLegenth,l=i.groupNum,c=i.intervalPadding/s,h=i.dodgePadding/s;return((.5+r)*(((1-c*(l-1))/l-h*(t-1))/t)+r*h+.5*c)*l-c/2},n.prototype.getDistribution=function(t){var i=this.cacheMap,a=i[t];return a||(a={},v.S6(this.adjustDataArray,function(o,s){var l=v.I(o,t);l.length||l.push(0),v.S6(l,function(c){a[c]||(a[c]=[]),a[c].push(s)})}),i[t]=a),a},n}(ns);const jm=qm;var t1=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return is(n,e),n.prototype.process=function(t){var r=v.d9(t),i=v.xH(r);return this.adjustData(r,i),r},n.prototype.adjustDim=function(t,r,i){var a=this,o=this.groupData(i,t);return v.S6(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),r)})},n.prototype.getAdjustOffset=function(t){var r=t.pre,i=t.next,a=.05*(i-r);return function Km(e,n){return(n-e)*Math.random()+e}(r+a,i-a)},n.prototype.adjustGroup=function(t,r,i,a){var o=this,s=this.getAdjustRange(r,i,a);return v.S6(t,function(l){l[r]=o.getAdjustOffset(s)}),t},n}(ns);const e1=t1;var Ec=v.Ct,n1=function(e){function n(t){var r=e.call(this,t)||this,i=t.adjustNames,o=t.height,s=void 0===o?NaN:o,l=t.size,c=void 0===l?10:l,h=t.reverseOrder,f=void 0!==h&&h;return r.adjustNames=void 0===i?["y"]:i,r.height=s,r.size=c,r.reverseOrder=f,r}return is(n,e),n.prototype.process=function(t){var a=this.reverseOrder,o=this.yField?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},n.prototype.reverse=function(t){return t.slice(0).reverse()},n.prototype.processStack=function(t){var r=this,i=r.xField,a=r.yField,s=r.reverseOrder?this.reverse(t):t,l=new Ec,c=new Ec;return s.map(function(h){return h.map(function(f){var p,d=v.U2(f,i,0),y=v.U2(f,[a]),m=d.toString();if(y=v.kJ(y)?y[1]:y,!v.UM(y)){var x=y>=0?l:c;x.has(m)||x.set(m,0);var M=x.get(m),C=y+M;return x.set(m,C),Mr(Mr({},f),((p={})[a]=[M,C],p))}return f})})},n.prototype.processOneDimStack=function(t){var r=this,i=this,a=i.xField,o=i.height,c=i.reverseOrder?this.reverse(t):t,h=new Ec;return c.map(function(f){return f.map(function(p){var d,m=p[a],x=2*r.size/o;h.has(m)||h.set(m,x/2);var M=h.get(m);return h.set(m,M+x),Mr(Mr({},p),((d={}).y=M,d))})})},n}(ns);const r1=n1;var i1=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return is(n,e),n.prototype.process=function(t){var r=v.xH(t),a=this.xField,o=this.yField,s=this.getXValuesMaxMap(r),l=Math.max.apply(Math,Object.keys(s).map(function(c){return s[c]}));return v.UI(t,function(c){return v.UI(c,function(h){var f,p,d=h[o],y=h[a];if(v.kJ(d)){var m=(l-s[y])/2;return Mr(Mr({},h),((f={})[o]=v.UI(d,function(M){return m+M}),f))}var x=(l-d)/2;return Mr(Mr({},h),((p={})[o]=[x,d+x],p))})})},n.prototype.getXValuesMaxMap=function(t){var r=this,a=this.xField,o=this.yField,s=v.vM(t,function(l){return l[a]});return v.Q8(s,function(l){return r.getDimMaxValue(l,o)})},n.prototype.getDimMaxValue=function(t,r){var i=v.UI(t,function(o){return v.U2(o,r,[])}),a=v.xH(i);return Math.max.apply(Math,a)},n}(ns);const a1=i1;rs("Dodge",jm),rs("Jitter",e1),rs("Stack",r1),rs("Symmetric",a1);var Rf=function(e,n){return(0,v.HD)(n)?n:e.invert(e.scale(n))},o1=function(){function e(n){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(n)}return e.prototype.mapping=function(){for(var n=this,t=[],r=0;r1?1:Number(n),r=e.length-1,i=Math.floor(r*t),a=r*t-i,o=e[i],s=i===r?o:e[i+1];return Nf([kc(o,s,a,0),kc(o,s,a,1),kc(o,s,a,2)])}(t,r)}},toRGB:(0,v.HP)(Uf),toCSSGradient:function(e){if(function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)}(e)){var n,t=void 0;if("l"===e[0])t=(r=l1.exec(e))[2],n="linear-gradient("+(+r[1]+90)+"deg, ";else if("r"===e[0]){var r;n="radial-gradient(",t=(r=c1.exec(e))[4]}var a=t.match(u1);return(0,v.S6)(a,function(o,s){var l=o.split(":");n+=l[1]+" "+100*l[0]+"%",s!==a.length-1&&(n+=", ")}),n+=")"}return e}};var g1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="color",r.names=["color"],(0,v.HD)(r.values)&&(r.linear=!0),r.gradient=ei.gradient(r.values),r}return(0,g.ZT)(n,e),n.prototype.getLinearValue=function(t){return this.gradient(t)},n}(Xa);const y1=g1;var m1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="opacity",r.names=["opacity"],r}return(0,g.ZT)(n,e),n}(Xa);const x1=m1;var M1=function(e){function n(t){var r=e.call(this,t)||this;return r.names=["x","y"],r.type="position",r}return(0,g.ZT)(n,e),n.prototype.mapping=function(t,r){var i=this.scales,a=i[0],o=i[1];return(0,v.UM)(t)||(0,v.UM)(r)?[]:[(0,v.kJ)(t)?t.map(function(s){return a.scale(s)}):a.scale(t),(0,v.kJ)(r)?r.map(function(s){return o.scale(s)}):o.scale(r)]},n}(Xa);const C1=M1;var w1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="shape",r.names=["shape"],r}return(0,g.ZT)(n,e),n.prototype.getLinearValue=function(t){var r=Math.round((this.values.length-1)*t);return this.values[r]},n}(Xa);const S1=w1;var _1=function(e){function n(t){var r=e.call(this,t)||this;return r.type="size",r.names=["size"],r}return(0,g.ZT)(n,e),n}(Xa);const b1=_1;var Yf={};function Cr(e,n){Yf[e]=n}var A1=function(){function e(n){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=n,this.initCfg(),this.init()}return e.prototype.translate=function(n){return n},e.prototype.change=function(n){(0,v.f0)(this.__cfg__,n),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var n=this;return(0,v.UI)(this.ticks,function(t,r){return(0,v.Kn)(t)?t:{text:n.getText(t,r),tickValue:t,value:n.scale(t)}})},e.prototype.getText=function(n,t){var r=this.formatter,i=r?r(n,t):n;return(0,v.UM)(i)||!(0,v.mf)(i.toString)?"":i.toString()},e.prototype.getConfig=function(n){return this.__cfg__[n]},e.prototype.init=function(){(0,v.f0)(this,this.__cfg__),this.setDomain(),(0,v.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var n=this.tickMethod,t=[];if((0,v.HD)(n)){var r=function T1(e){return Yf[e]}(n);if(!r)throw new Error("There is no method to to calculate ticks!");t=r(this)}else(0,v.mf)(n)&&(t=n(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(n,t,r){return(0,v.hj)(n)?(n-t)/(r-t):NaN},e.prototype.calcValue=function(n,t,r){return t+n*(r-t)},e}();const Dc=A1;var F1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return(0,g.ZT)(n,e),n.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[a]},n.prototype.getText=function(t){for(var r=[],i=1;i1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},n}(Dc);const ss=F1;var Hf=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ni="\\d\\d?",ri="\\d\\d",$a="[^\\s]+",Gf=/\[([^]*?)\]/gm;function Zf(e,n){for(var t=[],r=0,i=e.length;r-1?i:null}};function ii(e){for(var n=[],t=1;t3?0:(e-e%10!=10?1:0)*e%10]}},ls=ii({},Lc),Jf=function(e){return ls=ii(ls,e)},Qf=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Rn=function(e,n){for(void 0===n&&(n=2),e=String(e);e.length0?"-":"+")+Rn(100*Math.floor(Math.abs(n)/60)+Math.abs(n)%60,4)},Z:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+Rn(Math.floor(Math.abs(n)/60),2)+":"+Rn(Math.abs(n)%60,2)}},qf=function(e){return+e-1},jf=[null,ni],Kf=[null,$a],tv=["isPm",$a,function(e,n){var t=e.toLowerCase();return t===n.amPm[0]?0:t===n.amPm[1]?1:null}],ev=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var n=(e+"").match(/([+-]|\d\d)/gi);if(n){var t=60*+n[1]+parseInt(n[2],10);return"+"===n[0]?t:-t}return 0}],O1={D:["day",ni],DD:["day",ri],Do:["day",ni+$a,function(e){return parseInt(e,10)}],M:["month",ni,qf],MM:["month",ri,qf],YY:["year",ri,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",ni,void 0,"isPm"],hh:["hour",ri,void 0,"isPm"],H:["hour",ni],HH:["hour",ri],m:["minute",ni],mm:["minute",ri],s:["second",ni],ss:["second",ri],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",ri,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:jf,dd:jf,ddd:Kf,dddd:Kf,MMM:["month",$a,Wf("monthNamesShort")],MMMM:["month",$a,Wf("monthNames")],a:tv,A:tv,ZZ:ev,Z:ev},cs={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"},nv=function(e){return ii(cs,e)},rv=function(e,n,t){if(void 0===n&&(n=cs.default),void 0===t&&(t={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var r=[];n=(n=cs[n]||n).replace(Gf,function(a,o){return r.push(o),"@@@"});var i=ii(ii({},ls),t);return(n=n.replace(Hf,function(a){return L1[a](e,i)})).replace(/@@@/g,function(){return r.shift()})};function iv(e,n,t){if(void 0===t&&(t={}),"string"!=typeof n)throw new Error("Invalid format in fecha parse");if(n=cs[n]||n,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=n.replace(Gf,function(b,E){return o.push(Qf(E)),"@@@"}),l={},c={};s=Qf(s).replace(Hf,function(b){var E=O1[b],W=E[0],tt=E[1],it=E[3];if(l[W])throw new Error("Invalid format. "+W+" specified twice in format");return l[W]=!0,it&&(c[it]=!0),a.push(E),"("+tt+")"}),Object.keys(c).forEach(function(b){if(!l[b])throw new Error("Invalid format. "+b+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var M,h=e.match(new RegExp(s,"i"));if(!h)return null;for(var f=ii(ii({},ls),t),p=1;p11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return M}const av={format:rv,parse:iv,defaultI18n:Lc,setGlobalDateI18n:Jf,setGlobalDateMasks:nv};function sv(e,n){return(Vt.format||av.format)(e,n)}function us(e){return(0,v.HD)(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),(0,v.J_)(e)&&(e=e.getTime()),e}var cr=1e3,_i=6e4,bi=60*_i,Rr=24*bi,Ja=31*Rr,lv=365*Rr,Qa=[["HH:mm:ss",cr],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",_i],["HH:mm",10*_i],["HH:mm",30*_i],["HH",bi],["HH",6*bi],["HH",12*bi],["YYYY-MM-DD",Rr],["YYYY-MM-DD",4*Rr],["YYYY-WW",7*Rr],["YYYY-MM",Ja],["YYYY-MM",4*Ja],["YYYY-MM",6*Ja],["YYYY",380*Rr]];var R1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeCat",t}return(0,g.ZT)(n,e),n.prototype.translate=function(t){t=us(t);var r=this.values.indexOf(t);return-1===r&&(r=(0,v.hj)(t)&&t-1){var a=this.values[i],o=this.formatter;return o?o(a,r):sv(a,this.mask)}return t},n.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},n.prototype.setDomain=function(){var t=this.values;(0,v.S6)(t,function(r,i){t[i]=us(r)}),t.sort(function(r,i){return r-i}),e.prototype.setDomain.call(this)},n}(ss);const N1=R1;var V1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return(0,g.ZT)(n,e),n.prototype.scale=function(t){if((0,v.UM)(t))return NaN;var r=this.rangeMin(),i=this.rangeMax();return this.max===this.min?r:r+this.getScalePercent(t)*(i-r)},n.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,r=(0,v.YM)(t),i=(0,v.Z$)(t);rthis.max&&(this.max=i),(0,v.UM)(this.minLimit)||(this.min=r),(0,v.UM)(this.maxLimit)||(this.max=i)},n.prototype.setDomain=function(){var t=(0,v.rx)(this.values),r=t.min,i=t.max;(0,v.UM)(this.min)&&(this.min=r),(0,v.UM)(this.max)&&(this.max=i),this.min>this.max&&(this.min=r,this.max=i)},n.prototype.calculateTicks=function(){var t=this,r=e.prototype.calculateTicks.call(this);return this.nice||(r=(0,v.hX)(r,function(i){return i>=t.min&&i<=t.max})),r},n.prototype.getScalePercent=function(t){var i=this.min;return(t-i)/(this.max-i)},n.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},n}(Dc);const hs=V1;var U1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return(0,g.ZT)(n,e),n.prototype.invert=function(t){var r=this.getInvertPercent(t);return this.min+r*(this.max-this.min)},n.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},n}(hs);const fs=U1;function ai(e,n){var t=Math.E;return n>=0?Math.pow(t,Math.log(n)/e):-1*Math.pow(t,Math.log(-n)/e)}function nr(e,n){return 1===e?1:Math.log(n)/Math.log(e)}function cv(e,n,t){(0,v.UM)(t)&&(t=Math.max.apply(null,e));var r=t;return(0,v.S6)(e,function(i){i>0&&i1&&(r=1),r}var Y1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t}return(0,g.ZT)(n,e),n.prototype.invert=function(t){var s,r=this.base,i=nr(r,this.max),a=this.rangeMin(),o=this.rangeMax()-a,l=this.positiveMin;if(l){if(0===t)return 0;var c=1/(i-(s=nr(r,l/r)))*o;if(t=0?1:-1;return Math.pow(s,i)*l},n.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},n.prototype.getScalePercent=function(t){var r=this.max,i=this.min;if(r===i)return 0;var a=this.exponent;return(ai(a,t)-ai(a,i))/(ai(a,r)-ai(a,i))},n}(hs);const Z1=G1;var W1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="time",t}return(0,g.ZT)(n,e),n.prototype.getText=function(t,r){var i=this.translate(t),a=this.formatter;return a?a(i,r):sv(i,this.mask)},n.prototype.scale=function(t){var r=t;return((0,v.HD)(r)||(0,v.J_)(r))&&(r=this.translate(r)),e.prototype.scale.call(this,r)},n.prototype.translate=function(t){return us(t)},n.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},n.prototype.setDomain=function(){var t=this.values,r=this.getConfig("min"),i=this.getConfig("max");if((!(0,v.UM)(r)||!(0,v.hj)(r))&&(this.min=this.translate(this.min)),(!(0,v.UM)(i)||!(0,v.hj)(i))&&(this.max=this.translate(this.max)),t&&t.length){var a=[],o=1/0,s=o,l=0;(0,v.S6)(t,function(c){var h=us(c);if(isNaN(h))throw new TypeError("Invalid Time: "+c+" in time scale!");o>h?(s=o,o=h):s>h&&(s=h),l1&&(this.minTickInterval=s-o),(0,v.UM)(r)&&(this.min=o),(0,v.UM)(i)&&(this.max=l)}},n}(fs);const X1=W1;var $1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantize",t}return(0,g.ZT)(n,e),n.prototype.invert=function(t){var r=this.ticks,i=r.length,a=this.getInvertPercent(t),o=Math.floor(a*(i-1));if(o>=i-1)return(0,v.Z$)(r);if(o<0)return(0,v.YM)(r);var s=r[o],c=o/(i-1);return s+(a-c)/((o+1)/(i-1)-c)*(r[o+1]-s)},n.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},n.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,v.Z$)(t)!==this.max&&t.push(this.max),(0,v.YM)(t)!==this.min&&t.unshift(this.min)),t},n.prototype.getScalePercent=function(t){var r=this.ticks;if(t<(0,v.YM)(r))return 0;if(t>(0,v.Z$)(r))return 1;var i=0;return(0,v.S6)(r,function(a,o){if(!(t>=a))return!1;i=o}),i/(r.length-1)},n}(hs);const hv=$1;var J1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantile",t}return(0,g.ZT)(n,e),n.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},n}(hv);const Q1=J1;var fv={};function Oc(e){return fv[e]}function wr(e,n){if(Oc(e))throw new Error("type '"+e+"' existed.");fv[e]=n}var q1=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return(0,g.ZT)(n,e),n.prototype.calculateTicks=function(){return this.values},n.prototype.scale=function(t){return this.values[0]!==t&&(0,v.hj)(t)?t:this.range[0]},n.prototype.invert=function(t){var r=this.range;return tr[1]?NaN:this.values[0]},n}(Dc);const j1=q1;function vv(e){var n=e.values,t=e.tickInterval,r=e.tickCount,i=e.showLast;if((0,v.hj)(t)){var a=(0,v.hX)(n,function(y,m){return m%t==0}),o=(0,v.Z$)(n);return i&&(0,v.Z$)(a)!==o&&a.push(o),a}var s=n.length,l=e.min,c=e.max;if((0,v.UM)(l)&&(l=0),(0,v.UM)(c)&&(c=n.length-1),!(0,v.hj)(r)||r>=s)return n.slice(l,c+1);if(r<=0||c<=0)return[];for(var h=1===r?s:Math.floor(s/(r-1)),f=[],p=l,d=0;d=c);d++)p=Math.min(l+d*h,c),f.push(d===r-1&&i?n[c]:n[p]);return f}var pv=Math.sqrt(50),dv=Math.sqrt(10),gv=Math.sqrt(2),tx=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(n){return n?(this._domain=Array.from(n,Number),this):this._domain.slice()},e.prototype.nice=function(n){var t,r;void 0===n&&(n=5);var c,i=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o];return l0?c=vs(s=Math.floor(s/c)*c,l=Math.ceil(l/c)*c,n):c<0&&(c=vs(s=Math.ceil(s*c)/c,l=Math.floor(l*c)/c,n)),c>0?(i[a]=Math.floor(s/c)*c,i[o]=Math.ceil(l/c)*c,this.domain(i)):c<0&&(i[a]=Math.ceil(s*c)/c,i[o]=Math.floor(l*c)/c,this.domain(i)),this},e.prototype.ticks=function(n){return void 0===n&&(n=5),function ex(e,n,t){var r,a,o,s,i=-1;if(t=+t,(e=+e)===(n=+n)&&t>0)return[e];if((r=n0)for(e=Math.ceil(e/s),n=Math.floor(n/s),o=new Array(a=Math.ceil(n-e+1));++i=0?(a>=pv?10:a>=dv?5:a>=gv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=pv?10:a>=dv?5:a>=gv?2:1)}function yv(e,n,t){return("ceil"===t?Math.ceil(e/n):"floor"===t?Math.floor(e/n):Math.round(e/n))*n}function zc(e,n,t){var r=yv(e,t,"floor"),i=yv(n,t,"ceil");r=(0,v.ri)(r,t),i=(0,v.ri)(i,t);for(var a=[],o=Math.max((i-r)/(Math.pow(2,12)-1),t),s=r;s<=i;s+=o){var l=(0,v.ri)(s,o);a.push(l)}return{min:r,max:i,ticks:a}}function Bc(e,n,t){var r,i=e.minLimit,a=e.maxLimit,o=e.min,s=e.max,l=e.tickCount,c=void 0===l?5:l,h=(0,v.UM)(i)?(0,v.UM)(n)?o:n:i,f=(0,v.UM)(a)?(0,v.UM)(t)?s:t:a;if(h>f&&(f=(r=[h,f])[0],h=r[1]),c<=2)return[h,f];for(var p=(f-h)/(c-1),d=[],y=0;y=0&&(l=1),1-s/(o-1)-t+l}function sx(e,n,t){var r=(0,v.dp)(n);return 1-(0,v.cq)(n,e)/(r-1)-t+1}function lx(e,n,t,r,i,a){var o=(e-1)/(a-i),s=(n-1)/(Math.max(a,r)-Math.min(t,i));return 2-Math.max(o/s,s/o)}function cx(e,n){return e>=n?2-(e-1)/(n-1):1}function ux(e,n,t,r){var i=n-e;return 1-.5*(Math.pow(n-r,2)+Math.pow(e-t,2))/Math.pow(.1*i,2)}function hx(e,n,t){var r=n-e;return t>r?1-Math.pow((t-r)/2,2)/Math.pow(.1*r,2):1}function xv(e,n,t){if(void 0===t&&(t=5),e===n)return{max:n,min:e,ticks:[e]};var r=t<0?0:Math.round(t);if(0===r)return{max:n,min:e,ticks:[]};var s=(n-e)/r,l=Math.pow(10,Math.floor(Math.log10(s))),c=l;2*l-s<1.5*(s-c)&&5*l-s<2.75*(s-(c=2*l))&&10*l-s<1.5*(s-(c=5*l))&&(c=10*l);for(var h=Math.ceil(n/c),f=Math.floor(e/c),p=Math.max(h*c,n),d=Math.min(f*c,e),y=Math.floor((p-d)/c)+1,m=new Array(y),x=0;x1e148){var l=(n-e)/(s=t||5);return{min:e,max:n,ticks:Array(s).fill(null).map(function(Fe,He){return Ti(e+l*He)})}}for(var c={score:-2,lmin:0,lmax:0,lstep:0},h=1;h<1/0;){for(var f=0;fc.score&&(!r||it<=e&&wt>=n)&&(c.lmin=it,c.lmax=wt,c.lstep=yt,c.score=ze)}M+=1}y+=1}}h+=1}var Xt=Ti(c.lmax),fe=Ti(c.lmin),Se=Ti(c.lstep),ge=Math.floor(function ax(e){return Math.round(1e12*e)/1e12}((Xt-fe)/Se))+1,Me=new Array(ge);for(Me[0]=Ti(fe),f=1;f>>1;e(n[s])>t?o=s:a=s+1}return a}}(function(o){return o[1]})(Qa,r)-1,a=Qa[i];return i<0?a=Qa[0]:i>=Qa.length&&(a=(0,v.Z$)(Qa)),a}(n,t,a)[1])/a;s>1&&(i*=Math.ceil(s)),r&&ilv)for(var l=ps(t),c=Math.ceil(a/lv),h=s;h<=l+c;h+=c)o.push(wx(h));else if(a>Ja){var f=Math.ceil(a/Ja),p=Rc(n),d=function Sx(e,n){var t=ps(e),r=ps(n),i=Rc(e);return 12*(r-t)+(Rc(n)-i)%12}(n,t);for(h=0;h<=d+f;h+=f)o.push(_x(s,h+p))}else if(a>Rr){var m=(y=new Date(n)).getFullYear(),x=y.getMonth(),M=y.getDate(),C=Math.ceil(a/Rr),S=function bx(e,n){return Math.ceil((n-e)/Rr)}(n,t);for(h=0;hbi){m=(y=new Date(n)).getFullYear(),x=y.getMonth(),C=y.getDate();var y,b=y.getHours(),E=Math.ceil(a/bi),W=function Tx(e,n){return Math.ceil((n-e)/bi)}(n,t);for(h=0;h<=W+E;h+=E)o.push(new Date(m,x,C,b+h).getTime())}else if(a>_i){var tt=function Ax(e,n){return Math.ceil((n-e)/6e4)}(n,t),it=Math.ceil(a/_i);for(h=0;h<=tt+it;h+=it)o.push(n+h*_i)}else{var wt=a;wt=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o}),Cr("log",function dx(e){var o,n=e.base,t=e.tickCount,r=e.min,i=e.max,a=e.values,s=nr(n,i);if(r>0)o=Math.floor(nr(n,r));else{var l=cv(a,n,i);o=Math.floor(nr(n,l))}for(var h=Math.ceil((s-o)/t),f=[],p=o;p=0?1:-1;return Math.pow(o,n)*s})}),Cr("quantile",function mx(e){var n=e.tickCount,t=e.values;if(!t||!t.length)return[];for(var r=t.slice().sort(function(s,l){return s-l}),i=[],a=0;a=0&&this.radius<=1&&(r*=this.radius),this.d=Math.floor(r*(1-this.innerRadius)/t),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*r,end:this.innerRadius*r+.99*this.d}},n.prototype.convertPoint=function(t){var r,i=t.x,a=t.y;this.isTransposed&&(i=(r=[a,i])[0],a=r[1]);var o=this.convertDim(i,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},n.prototype.invertPoint=function(t){var r,i=this.d+this.y.start,a=Le.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=an.Dg(a,[1,0],!0),s=o*this.a;Le.kE(a)this.width/r?{x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*(s=this.width/r)*i}:{x:this.center.x-(.5-a)*(s=this.height/i)*r,y:this.center.y-(.5-o)*this.height},this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},n.prototype.getRadius=function(){return this.polarRadius},n.prototype.convertPoint=function(t){var r,i=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(a=(r=[o,a])[0],o=r[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:i.x+Math.cos(a)*o,y:i.y+Math.sin(a)*o}},n.prototype.invertPoint=function(t){var r,i=this.getCenter(),a=[t.x-i.x,t.y-i.y],s=this.startAngle,l=this.endAngle;this.isReflect("x")&&(s=(r=[l,s])[0],l=r[1]);var c=[1,0,0,0,1,0,0,0,1];an.zu(c,c,s);var h=[1,0,0];ja(h,h,c);var p=an.Dg([h[0],h[1]],a,l0?y:-y;var m=this.invertDim(d,"y"),x={x:0,y:0};return x.x=this.isTransposed?m:y,x.y=this.isTransposed?y:m,x},n.prototype.getCenter=function(){return this.circleCenter},n.prototype.getOneBox=function(){var t=this.startAngle,r=this.endAngle;if(Math.abs(r-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var i=[0,Math.cos(t),Math.cos(r)],a=[0,Math.sin(t),Math.sin(r)],o=Math.min(t,r);o=0;r--)e.removeChild(n[r])}function Ka(e){var n=e.start,t=e.end,r=Math.min(n.x,t.x),i=Math.min(n.y,t.y),a=Math.max(n.x,t.x),o=Math.max(n.y,t.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function to(e,n,t,r){var i=e+t,a=n+r;return{x:e,y:n,width:t,height:r,minX:e,minY:n,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function Fi(e,n,t){return(1-t)*e+n*t}function ca(e,n,t){return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}}var ms=function(e,n,t){return void 0===t&&(t=Math.pow(Number.EPSILON,.5)),[e,n].includes(1/0)?Math.abs(e)===Math.abs(n):Math.abs(e-n)0?(0,v.S6)(l,function(c){if(c.get("visible")){if(c.isGroup()&&0===c.get("children").length)return!0;var h=Fv(c),f=c.applyToMatrix([h.minX,h.minY,1]),p=c.applyToMatrix([h.minX,h.maxY,1]),d=c.applyToMatrix([h.maxX,h.minY,1]),y=c.applyToMatrix([h.maxX,h.maxY,1]),m=Math.min(f[0],p[0],d[0],y[0]),x=Math.max(f[0],p[0],d[0],y[0]),M=Math.min(f[1],p[1],d[1],y[1]),C=Math.max(f[1],p[1],d[1],y[1]);ma&&(a=x),Ms&&(s=C)}}):(i=0,a=0,o=0,s=0),r=to(i,o,a-i,s-o)}else r=e.getBBox();return t?function Gx(e,n){var t=Math.max(e.minX,n.minX),r=Math.max(e.minY,n.minY);return to(t,r,Math.min(e.maxX,n.maxX)-t,Math.min(e.maxY,n.maxY)-r)}(r,t):r}function Nn(e){return e+"px"}function Ev(e,n,t,r){var i=function Hx(e,n){var t=n.x-e.x,r=n.y-e.y;return Math.sqrt(t*t+r*r)}(e,n),a=r/i,o=0;return"start"===t?o=0-a:"end"===t&&(o=1+a),{x:Fi(e.x,n.x,o),y:Fi(e.y,n.y,o)}}var Wx={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},Xx=function(e){function n(t){var r=e.call(this,t)||this;return r.initCfg(),r}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},n.prototype.clear=function(){},n.prototype.update=function(t){var r=this,i=this.get("defaultCfg")||{};(0,v.S6)(t,function(a,o){var l=a;r.get(o)!==a&&((0,v.Kn)(a)&&i[o]&&(l=(0,v.b$)({},i[o],a)),r.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},n.prototype.updateInner=function(t){},n.prototype.afterUpdate=function(t){(0,v.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,v.wH)(t,"capture")&&this.setCapture(t.capture)},n.prototype.getLayoutBBox=function(){return this.getBBox()},n.prototype.getLocationType=function(){return this.get("locationType")},n.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},n.prototype.setOffset=function(t,r){this.update({offsetX:t,offsetY:r})},n.prototype.setLocation=function(t){var r=(0,g.pi)({},t);this.update(r)},n.prototype.getLocation=function(){var t=this,r={},i=this.get("locationType");return(0,v.S6)(Wx[i],function(o){r[o]=t.get(o)}),r},n.prototype.isList=function(){return!1},n.prototype.isSlider=function(){return!1},n.prototype.init=function(){},n.prototype.initCfg=function(){var t=this,r=this.get("defaultCfg");(0,v.S6)(r,function(i,a){var o=t.get(a);if((0,v.Kn)(o)){var s=(0,v.b$)({},i,o);t.set(a,s)}})},n}(bn.Base);const kv=Xx;var Ei="update_status",$x=["visible","tip","delegateObject"],Jx=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Qx=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},n.prototype.remove=function(){this.clear(),this.get("group").remove()},n.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},n.prototype.getChildComponentById=function(t){var r=this.getElementById(t);return r&&r.get("component")},n.prototype.getElementById=function(t){return this.get("shapesMap")[t]},n.prototype.getElementByLocalId=function(t){var r=this.getElementId(t);return this.getElementById(r)},n.prototype.getElementsByName=function(t){var r=[];return(0,v.S6)(this.get("shapesMap"),function(i){i.get("name")===t&&r.push(i)}),r},n.prototype.getContainer=function(){return this.get("container")},n.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},n.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var r=this.get("group");this.updateElements(t,r),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},n.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},n.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},n.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},n.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},n.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},n.prototype.getLayoutBBox=function(){var t=this.get("group"),r=this.getInnerLayoutBBox(),i=t.getTotalMatrix();return i&&(r=function Vx(e,n){var t=gs(e,[n.minX,n.minY]),r=gs(e,[n.maxX,n.minY]),i=gs(e,[n.minX,n.maxY]),a=gs(e,[n.maxX,n.maxY]),o=Math.min(t[0],r[0],i[0],a[0]),s=Math.max(t[0],r[0],i[0],a[0]),l=Math.min(t[1],r[1],i[1],a[1]),c=Math.max(t[1],r[1],i[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:c,width:s-o,height:c-l}}(i,r)),r},n.prototype.on=function(t,r,i){return this.get("group").on(t,r,i),this},n.prototype.off=function(t,r){var i=this.get("group");return i&&i.off(t,r),this},n.prototype.emit=function(t,r){this.get("group").emit(t,r)},n.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},n.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},n.prototype.delegateEmit=function(t,r){var i=this.get("group");r.target=i,i.emit(t,r),bv(i,t,r)},n.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},n.prototype.applyOffset=function(){var t=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:r})},n.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},n.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Fv(t)),t},n.prototype.addGroup=function(t,r){this.appendDelegateObject(t,r);var i=t.addGroup(r);return this.get("isRegister")&&this.registerElement(i),i},n.prototype.addShape=function(t,r){this.appendDelegateObject(t,r);var i=t.addShape(r);return this.get("isRegister")&&this.registerElement(i),i},n.prototype.addComponent=function(t,r){var i=r.id,a=r.component,o=(0,g._T)(r,["id","component"]),s=new a((0,g.pi)((0,g.pi)({},o),{id:i,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},n.prototype.initEvent=function(){},n.prototype.removeEvent=function(){this.get("group").off()},n.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},n.prototype.registerElement=function(t){var r=t.get("id");this.get("shapesMap")[r]=t},n.prototype.unregisterElement=function(t){var r=t.get("id");delete this.get("shapesMap")[r]},n.prototype.moveElementTo=function(t,r){var i=Vc(r);t.attr("matrix",i)},n.prototype.addAnimation=function(t,r,i){var a=r.attr("opacity");(0,v.UM)(a)&&(a=1),r.attr("opacity",0),r.animate({opacity:a},i)},n.prototype.removeAnimation=function(t,r,i){r.animate({opacity:0},i)},n.prototype.updateAnimation=function(t,r,i,a){r.animate(i,a)},n.prototype.updateElements=function(t,r){var l,i=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,v.S6)(s,function(c){var h=c.get("id"),f=i.getElementById(h),p=c.get("name");if(f)if(c.get("isComponent")){var d=c.get("component"),y=f.get("component"),m=(0,v.ei)(d.cfg,(0,v.e5)((0,v.XP)(d.cfg),Jx));y.update(m),f.set(Ei,"update")}else{var x=i.getReplaceAttrs(f,c);a&&o.update?i.updateAnimation(p,f,x,o.update):f.attr(x),c.isGroup()&&i.updateElements(c,f),(0,v.S6)($x,function(b){f.set(b,c.get(b))}),function Zx(e,n){if(e.getClip()||n.getClip()){var t=n.getClip();if(!t)return void e.setClip(null);var r={type:t.get("type"),attrs:t.attr()};e.setClip(r)}}(f,c),l=f,f.set(Ei,"update")}else{r.add(c);var M=r.getChildren();if(M.splice(M.length-1,1),l){var C=M.indexOf(l);M.splice(C+1,0,c)}else M.unshift(c);if(i.registerElement(c),c.set(Ei,"add"),c.get("isComponent")?(d=c.get("component")).set("container",r):c.isGroup()&&i.registerNewGroup(c),l=c,a){var S=i.get("isInit")?o.appear:o.enter;S&&i.addAnimation(p,c,S)}}})},n.prototype.clearUpdateStatus=function(t){var r=t.getChildren();(0,v.S6)(r,function(i){i.set(Ei,null)})},n.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},n.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},n.prototype.appendDelegateObject=function(t,r){var i=t.get("delegateObject");r.delegateObject||(r.delegateObject={}),(0,v.CD)(r.delegateObject,i)},n.prototype.getReplaceAttrs=function(t,r){var i=t.attr(),a=r.attr();return(0,v.S6)(i,function(o,s){void 0===a[s]&&(a[s]=void 0)}),a},n.prototype.registerNewGroup=function(t){var r=this,i=t.getChildren();(0,v.S6)(i,function(a){r.registerElement(a),a.set(Ei,"add"),a.isGroup()&&r.registerNewGroup(a)})},n.prototype.deleteElements=function(){var t=this,r=this.get("shapesMap"),i=[];(0,v.S6)(r,function(s,l){!s.get(Ei)||s.destroyed?i.push([l,s]):s.set(Ei,null)});var a=this.get("animate"),o=this.get("animateOption");(0,v.S6)(i,function(s){var l=s[0],c=s[1];if(!c.destroyed){var h=c.get("name");if(a&&o.leave){var f=(0,v.CD)({callback:function(){t.removeElement(c)}},o.leave);t.removeAnimation(h,c,f)}else t.removeElement(c)}delete r[l]})},n.prototype.removeElement=function(t){if(t.get("isGroup")){var r=t.get("component");r&&r.destroy()}t.remove()},n}(kv);const An=Qx;var Hc="\u2026";function ki(e,n){return e.charCodeAt(n)>0&&e.charCodeAt(n)<128?1:2}var Kx="\u2026",t2=2,e2=400;function Gc(e){if(e.length>e2)return function n2(e){for(var n=e.map(function(l){var c=l.attr("text");return(0,v.UM)(c)?"":""+c}),t=0,r=0,i=0;i=19968&&s<=40869?2:1}a>t&&(t=a,r=i)}return e[r].getBBox().width}(e);var n=0;return(0,v.S6)(e,function(t){var i=t.getBBox().width;n=0?function jx(e,n,t){void 0===t&&(t="tail");var r=e.length,i="";if("tail"===t){for(var a=0,o=0;a1||a<0)&&(a=1),{x:Fi(t.x,r.x,a),y:Fi(t.y,r.y,a)}},n.prototype.renderLabel=function(t){var r=this.get("text"),i=this.get("start"),a=this.get("end"),s=r.content,l=r.style,c=r.offsetX,h=r.offsetY,f=r.autoRotate,p=r.maxLength,d=r.autoEllipsis,y=r.ellipsisPosition,m=r.background,x=r.isVertical,M=void 0!==x&&x,C=this.getLabelPoint(i,a,r.position),S=C.x+c,b=C.y+h,E={id:this.getElementId("line-text"),name:"annotation-line-text",x:S,y:b,content:s,style:l,maxLength:p,autoEllipsis:d,ellipsisPosition:y,background:m,isVertical:M};if(f){var W=[a.x-i.x,a.y-i.y];E.rotate=Math.atan2(W[1],W[0])}xs(t,E)},n}(An);const a2=i2;var o2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Ze.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Ze.fontFamily}}})},n.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},n.prototype.renderInner=function(t){var r=this.getLocation(),i=r.x,a=r.y,o=this.get("content"),s=this.get("style");xs(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:i,y:a,content:o,style:s,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},n.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var r=this.getLocation(),i=r.x,a=r.y,o=this.get("rotate");Uc(t,i,a),Av(t,o,i,a)}},n}(An);const s2=o2;var l2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},n.prototype.renderInner=function(t){this.renderArc(t)},n.prototype.getArcPath=function(){var t=this.getLocation(),r=t.center,i=t.radius,a=t.startAngle,o=t.endAngle,s=ca(r,i,a),l=ca(r,i,o),c=o-a>Math.PI?1:0,h=[["M",s.x,s.y]];if(o-a==2*Math.PI){var f=ca(r,i,a+Math.PI);h.push(["A",i,i,0,c,1,f.x,f.y]),h.push(["A",i,i,0,c,1,l.x,l.y])}else h.push(["A",i,i,0,c,1,l.x,l.y]);return h},n.prototype.renderArc=function(t){var r=this.getArcPath(),i=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,g.pi)({path:r},i)})},n}(An);const c2=l2;var u2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Ze.regionColor,opacity:.4}}})},n.prototype.renderInner=function(t){this.renderRegion(t)},n.prototype.renderRegion=function(t){var r=this.get("start"),i=this.get("end"),a=this.get("style"),o=Ka({start:r,end:i});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.pi)({x:o.x,y:o.y,width:o.width,height:o.height},a)})},n}(An);const h2=u2;var f2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},n.prototype.renderInner=function(t){this.renderImage(t)},n.prototype.getImageAttrs=function(){var t=this.get("start"),r=this.get("end"),i=this.get("style"),a=Ka({start:t,end:r}),o=this.get("src");return(0,g.pi)({x:a.x,y:a.y,img:o,width:a.width,height:a.height},i)},n.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},n}(An);const v2=f2;var p2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Ze.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Ze.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Ze.fontFamily}}}})},n.prototype.renderInner=function(t){(0,v.U2)(this.get("line"),"display")&&this.renderLine(t),(0,v.U2)(this.get("text"),"display")&&this.renderText(t),(0,v.U2)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},n.prototype.renderPoint=function(t){var r=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:r})},n.prototype.renderLine=function(t){var r=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:r})},n.prototype.renderText=function(t){var r=this.getShapeAttrs().text,i=r.x,a=r.y,o=r.text,s=(0,g._T)(r,["x","y","text"]),l=this.get("text"),c=l.background,h=l.maxLength,f=l.autoEllipsis,p=l.isVertival,d=l.ellipsisPosition;xs(t,{x:i,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:c,maxLength:h,autoEllipsis:f,isVertival:p,ellipsisPosition:d})},n.prototype.autoAdjust=function(t){var r=this.get("direction"),i=this.get("x"),a=this.get("y"),o=(0,v.U2)(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),c=l.minX,h=l.maxX,f=l.minY,p=l.maxY,d=t.findById(this.getElementId("text-group")),y=t.findById(this.getElementId("text")),m=t.findById(this.getElementId("line"));if(s&&d){var x=d.attr("x"),M=d.attr("y"),C=y.getCanvasBBox(),S=C.width,b=C.height,E=0,W=0;if(i+c<=s.minX)if("leftward"===r)E=1;else{var tt=s.minX-(i+c);x=d.attr("x")+tt}else i+h>=s.maxX&&("rightward"===r?E=-1:(tt=i+h-s.maxX,x=d.attr("x")-tt));E&&(m&&m.attr("path",[["M",0,0],["L",o*E,0]]),x=(o+2+S)*E),a+f<=s.minY?"upward"===r?W=1:(tt=s.minY-(a+f),M=d.attr("y")+tt):a+p>=s.maxY&&("downward"===r?W=-1:(tt=a+p-s.maxY,M=d.attr("y")-tt)),W&&(m&&m.attr("path",[["M",0,0],["L",0,o*W]]),M=(o+2+b)*W),(x!==d.attr("x")||M!==d.attr("y"))&&Uc(d,x,M)}},n.prototype.getShapeAttrs=function(){var t=(0,v.U2)(this.get("line"),"display"),r=(0,v.U2)(this.get("point"),"style",{}),i=(0,v.U2)(this.get("line"),"style",{}),a=(0,v.U2)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,v.U2)(this.get("line"),"length",0):0,l=0,c=0,h="top",f="start";switch(o){case"upward":c=-1,h="bottom";break;case"downward":c=1,h="top";break;case"leftward":l=-1,f="end";break;case"rightward":l=1,f="start"}return{point:(0,g.pi)({x:0,y:0},r),line:(0,g.pi)({path:[["M",0,0],["L",s*l,s*c]]},i),text:(0,g.pi)({x:(s+2)*l,y:(s+2)*c,text:(0,v.U2)(this.get("text"),"content",""),textBaseline:h,textAlign:f},a)}},n}(An);const d2=p2;var g2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Ze.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Ze.textColor,fontFamily:Ze.fontFamily}}}})},n.prototype.renderInner=function(t){var r=(0,v.U2)(this.get("region"),"style",{}),a=((0,v.U2)(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var s=function Yx(e){var n=e.map(function(s){return s.x}),t=e.map(function(s){return s.y}),r=Math.min.apply(Math,n),i=Math.min.apply(Math,t),a=Math.max.apply(Math,n),o=Math.max.apply(Math,t);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}(o),l=[];l.push(["M",o[0].x,s.minY-a]),o.forEach(function(h){l.push(["L",h.x,h.y])}),l.push(["L",o[o.length-1].x,o[o.length-1].y-a]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.pi)({path:l},r)}),xs(t,(0,g.pi)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-a},this.get("text")))}},n}(An);const y2=g2;var m2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},n.prototype.renderInner=function(t){var r=this,i=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,v.S6)(this.get("shapes"),function(l,c){var h=l.get("type"),f=(0,v.d9)(l.attr());r.adjustShapeAttrs(f),r.addShape(o,{id:r.getElementId("shape-"+h+"-"+c),capture:!1,type:h,attrs:f})});var s=Ka({start:i,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},n.prototype.adjustShapeAttrs=function(t){var r=this.get("color");t.fill&&(t.fill=t.fillStyle=r),t.stroke=t.strokeStyle=r},n}(An);const x2=m2;var M2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"shape",draw:v.ZT})},n.prototype.renderInner=function(t){var r=this.get("render");(0,v.mf)(r)&&r(t)},n}(An);const C2=M2;function Vn(e,n,t){var r;try{r=window.getComputedStyle?window.getComputedStyle(e,null)[n]:e.style[n]}catch{}finally{r=void 0===r?t:r}return r}var T2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},n.prototype.getContainer=function(){return this.get("container")},n.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},n.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},n.prototype.setCapture=function(t){this.getContainer().style.pointerEvents=t?"auto":"none",this.set("capture",t)},n.prototype.getBBox=function(){var t=this.getContainer();return to(parseFloat(t.style.left)||0,parseFloat(t.style.top)||0,t.clientWidth,t.clientHeight)},n.prototype.clear=function(){Yc(this.get("container"))},n.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},n.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},n.prototype.initCapture=function(){this.setCapture(this.get("capture"))},n.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},n.prototype.initDom=function(){},n.prototype.initContainer=function(){var t=this.get("container");if((0,v.UM)(t)){t=this.createDom();var r=this.get("parent");(0,v.HD)(r)&&(r=document.getElementById(r),this.set("parent",r)),r.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,v.HD)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},n.prototype.resetStyles=function(){var t=this.get("domStyles"),r=this.get("defaultStyles");t=t?(0,v.b$)({},r,t):r,this.set("domStyles",t)},n.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var r=this.getContainer();this.applyChildrenStyles(r,t);var i=this.get("containerClassName");i&&function Ux(e,n){return!!e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))}(r,i)&&Ln(r,t[i])}},n.prototype.applyChildrenStyles=function(t,r){(0,v.S6)(r,function(i,a){var o=t.getElementsByClassName(a);(0,v.S6)(o,function(s){Ln(s,i)})})},n.prototype.applyStyle=function(t,r){Ln(r,this.get("domStyles")[t])},n.prototype.createDom=function(){return ti(this.get("containerTpl"))},n.prototype.initEvent=function(){},n.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},n.prototype.removeEvent=function(){},n.prototype.updateInner=function(t){(0,v.wH)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},n.prototype.resetPosition=function(){},n}(kv);const Zc=T2;var A2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},n.prototype.render=function(){var t=this.getContainer(),r=this.get("html");Yc(t);var i=(0,v.mf)(r)?r(t):r;if((0,v.kK)(i))t.appendChild(i);else if((0,v.HD)(i)||(0,v.hj)(i)){var a=ti(""+i);a&&t.appendChild(a)}this.resetPosition()},n.prototype.resetPosition=function(){var t=this.getContainer(),r=this.getLocation(),i=r.x,a=r.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),c=this.get("offsetY"),h=function S2(e,n){var t=function w2(e,n){var t=Vn(e,"width",n);return"auto"===t&&(t=e.offsetWidth),parseFloat(t)}(e,n),r=parseFloat(Vn(e,"borderLeftWidth"))||0,i=parseFloat(Vn(e,"paddingLeft"))||0,a=parseFloat(Vn(e,"paddingRight"))||0,o=parseFloat(Vn(e,"borderRightWidth"))||0,s=parseFloat(Vn(e,"marginRight"))||0;return t+r+o+i+a+(parseFloat(Vn(e,"marginLeft"))||0)+s}(t),f=function b2(e,n){var t=function _2(e,n){var t=Vn(e,"height",n);return"auto"===t&&(t=e.offsetHeight),parseFloat(t)}(e,n),r=parseFloat(Vn(e,"borderTopWidth"))||0,i=parseFloat(Vn(e,"paddingTop"))||0,a=parseFloat(Vn(e,"paddingBottom"))||0;return t+r+(parseFloat(Vn(e,"borderBottomWidth"))||0)+i+a+(parseFloat(Vn(e,"marginTop"))||0)+(parseFloat(Vn(e,"marginBottom"))||0)}(t),p={x:i,y:a};"middle"===o?p.x-=Math.round(h/2):"right"===o&&(p.x-=Math.round(h)),"middle"===s?p.y-=Math.round(f/2):"bottom"===s&&(p.y-=Math.round(f)),l&&(p.x+=l),c&&(p.y+=c),Ln(t,{position:"absolute",left:p.x+"px",top:p.y+"px",zIndex:this.get("zIndex")})},n}(Zc);const F2=A2;function no(e,n,t){var r=n+"Style",i=null;return(0,v.S6)(t,function(a,o){e[o]&&a[r]&&(i||(i={}),(0,v.CD)(i,a[r]))}),i}var E2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Ze.lineColor}},tickLine:{style:{lineWidth:1,stroke:Ze.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Ze.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Ze.textColor,fontFamily:Ze.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Ze.textColor,textBaseline:"middle",fontFamily:Ze.fontFamily,textAlign:"center"},iconStyle:{fill:Ze.descriptionIconFill,stroke:Ze.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Ze.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},n.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},n.prototype.isList=function(){return!0},n.prototype.getItems=function(){return this.get("ticks")},n.prototype.setItems=function(t){this.update({ticks:t})},n.prototype.updateItem=function(t,r){(0,v.CD)(t,r),this.clear(),this.render()},n.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},n.prototype.setItemState=function(t,r,i){t[r]=i,this.updateTickStates(t)},n.prototype.hasState=function(t,r){return!!t[r]},n.prototype.getItemStates=function(t){var r=this.get("tickStates"),i=[];return(0,v.S6)(r,function(a,o){t[o]&&i.push(o)}),i},n.prototype.clearItemsState=function(t){var r=this,i=this.getItemsByState(t);(0,v.S6)(i,function(a){r.setItemState(a,t,!1)})},n.prototype.getItemsByState=function(t){var r=this,i=this.getItems();return(0,v.hX)(i,function(a){return r.hasState(a,t)})},n.prototype.getSidePoint=function(t,r){var a=this.getSideVector(r,t);return{x:t.x+a[0],y:t.y+a[1]}},n.prototype.getTextAnchor=function(t){var r;return(0,v.vQ)(t[0],0)?r="center":t[0]>0?r="start":t[0]<0&&(r="end"),r},n.prototype.getTextBaseline=function(t){var r;return(0,v.vQ)(t[1],0)?r="middle":t[1]>0?r="top":t[1]<0&&(r="bottom"),r},n.prototype.processOverlap=function(t){},n.prototype.drawLine=function(t){var r=this.getLinePath(),i=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,v.CD)({path:r},i.style)})},n.prototype.getTickLineItems=function(t){var r=this,i=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1;return t.length>=2&&(l=t[1].value-t[0].value),(0,v.S6)(t,function(h){var f=h.point;o||(f=r.getTickPoint(h.value-l/2));var p=r.getSidePoint(f,s);i.push({startPoint:f,tickValue:h.value,endPoint:p,tickId:h.id,id:"tickline-"+h.id})}),i},n.prototype.getSubTickLineItems=function(t){var r=[],i=this.get("subTickLine"),a=i.count,o=t.length;if(o>=2)for(var s=0;s0){var i=(0,v.dp)(r);if(i>t.threshold){var a=Math.ceil(i/t.threshold),o=r.filter(function(s,l){return l%a==0});this.set("ticks",o),this.set("originalTicks",r)}}},n.prototype.getLabelAttrs=function(t,r,i){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,c=a.rotate,h=a.formatter,f=this.getSidePoint(t.point,o),p=this.getSideVector(o,f),d=h?h(t.name,t,r):t.name,y=a.style;y=(0,v.mf)(y)?(0,v.U2)(this.get("theme"),["label","style"],{}):y;var m=(0,v.CD)({x:f.x+s,y:f.y+l,text:d,textAlign:this.getTextAnchor(p),textBaseline:this.getTextBaseline(p)},y);return c&&(m.matrix=Ai(f,c)),m},n.prototype.drawLabels=function(t){var r=this,i=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,v.S6)(i,function(p,d){r.addShape(a,{type:"text",name:"axis-label",id:r.getElementId("label-"+p.id),attrs:r.getLabelAttrs(p,d,i),delegateObject:{tick:p,item:p,index:d}})}),this.processOverlap(a);var o=a.getChildren(),s=(0,v.U2)(this.get("theme"),["label","style"],{}),l=this.get("label"),c=l.style,h=l.formatter;if((0,v.mf)(c)){var f=o.map(function(p){return(0,v.U2)(p.get("delegateObject"),"tick")});(0,v.S6)(o,function(p,d){var y=p.get("delegateObject").tick,m=h?h(y.name,y,d):y.name,x=(0,v.CD)({},s,c(m,d,f));p.attr(x)})}},n.prototype.getTitleAttrs=function(){var t=this.get("title"),r=t.style,i=t.position,a=t.offset,o=t.spacing,s=void 0===o?0:o,l=t.autoRotate,c=r.fontSize,h=.5;"start"===i?h=0:"end"===i&&(h=1);var f=this.getTickPoint(h),p=this.getSidePoint(f,a||s+c/2),d=(0,v.CD)({x:p.x,y:p.y,text:t.text},r),y=t.rotate,m=y;if((0,v.UM)(y)&&l){var x=this.getAxisVector(f);m=an.Dg(x,[1,0],!0)}if(m){var C=Ai(p,m);d.matrix=C}return d},n.prototype.drawTitle=function(t){var r,i=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:i});null!==(r=this.get("title"))&&void 0!==r&&r.description&&this.drawDescriptionIcon(t,a,i.matrix)},n.prototype.drawDescriptionIcon=function(t,r,i){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=r.getBBox(),s=o.maxX,l=o.maxY,c=o.height,h=this.get("title").iconStyle,p=c/2,d=p/6,y=s+4,m=l-c/2,x=[y+p,m-p],M=x[0],C=x[1],S=[M+p,C+p],b=S[0],E=S[1],W=[M,E+p],tt=W[0],it=W[1],wt=[y,C+p],yt=wt[0],Ut=wt[1],ee=[y+p,m-c/4],me=ee[0],_e=ee[1],ze=[me,_e+d],Xt=ze[0],fe=ze[1],Se=[Xt,fe+d],ge=Se[0],Me=Se[1],Fe=[ge,Me+3*p/4],He=Fe[0],We=Fe[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,g.pi)({path:[["M",M,C],["A",p,p,0,0,1,b,E],["A",p,p,0,0,1,tt,it],["A",p,p,0,0,1,yt,Ut],["A",p,p,0,0,1,M,C],["M",me,_e],["L",Xt,fe],["M",ge,Me],["L",He,We]],lineWidth:d,matrix:i},h)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:y,y:m-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:i,cursor:"pointer"}})},n.prototype.applyTickStates=function(t,r){if(this.getItemStates(t).length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=r.findById(o);if(s){var l=no(t,"label",a);l&&s.attr(l)}var c=this.getElementId("tickline-"+t.id),h=r.findById(c);if(h){var f=no(t,"tickLine",a);f&&h.attr(f)}}},n.prototype.updateTickStates=function(t){var r=this.getItemStates(t),i=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(r.length){if(o){var c=no(t,"label",i);c&&o.attr(c)}if(l){var h=no(t,"tickLine",i);h&&l.attr(h)}}else o&&o.attr(a.style),l&&l.attr(s.style)},n}(An);const Iv=E2;function Wc(e,n,t,r){var i=n.getChildren(),a=!1;return(0,v.S6)(i,function(o){var s=eo(e,o,t,r);a=a||s}),a}function k2(){return Dv}function I2(e,n,t){return Wc(e,n,t,"head")}function Dv(e,n,t){return Wc(e,n,t,"tail")}function D2(e,n,t){return Wc(e,n,t,"middle")}function Lv(e){var n=function L2(e){var n=e.attr("matrix");return n&&1!==n[0]}(e)?function Nx(e){var t=[0,0,0];return ja(t,[1,0,0],e),Math.atan2(t[1],t[0])}(e.attr("matrix")):0;return n%360}function Xc(e,n,t,r){var i=!1,a=Lv(n),o=Math.abs(e?t.attr("y")-n.attr("y"):t.attr("x")-n.attr("x")),s=(e?t.attr("y")>n.attr("y"):t.attr("x")>n.attr("x"))?n.getBBox():t.getBBox();if(e){var l=Math.abs(Math.cos(a));i=ms(l,0,Math.PI/180)?s.width+r>o:s.height/l+r>o}else l=Math.abs(Math.sin(a)),i=ms(l,0,Math.PI/180)?s.width+r>o:s.height/l+r>o;return i}function ro(e,n,t,r){var i=r?.minGap||0,a=n.getChildren().slice().filter(function(y){return y.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,c=a[0],h=1;h1){p=Math.ceil(p);for(var m=0;m2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),ro(e,n,!1,r)&&(a=!0)),s.get("visible")||(s.show(),ro(e,n,!0,r)&&(a=!0))}return a}function zv(e,n,t,r){var i=n.getChildren();if(!i.length||!e&&i.length<2)return!1;var a=Gc(i),o=!1;return(o=e?!!t&&a>t:a>Math.abs(i[1].attr("x")-i[0].attr("x")))&&function N2(e,n){(0,v.S6)(e,function(t){var a=Ai({x:t.attr("x"),y:t.attr("y")},n);t.attr("matrix",a)})}(i,r(t,a)),o}function V2(){return Bv}function Bv(e,n,t,r){return zv(e,n,t,function(){return(0,v.hj)(r)?r:e?Ze.verticalAxisRotate:Ze.horizontalAxisRotate})}function U2(e,n,t){return zv(e,n,t,function(r,i){if(!r)return e?Ze.verticalAxisRotate:Ze.horizontalAxisRotate;if(e)return-Math.acos(r/i);var a=0;return(r>i||(a=Math.asin(r/i))>Math.PI/4)&&(a=Math.PI/4),a})}var Y2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},n.prototype.getLinePath=function(){var t=this.get("start"),r=this.get("end"),i=[];return i.push(["M",t.x,t.y]),i.push(["L",r.x,r.y]),i},n.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),r=this.get("end"),i=e.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,r.x,i.x),o=Math.min(t.y,r.y,i.y),s=Math.max(t.x,r.x,i.maxX),l=Math.max(t.y,r.y,i.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},n.prototype.isVertical=function(){var t=this.get("start"),r=this.get("end");return(0,v.vQ)(t.x,r.x)},n.prototype.isHorizontal=function(){var t=this.get("start"),r=this.get("end");return(0,v.vQ)(t.y,r.y)},n.prototype.getTickPoint=function(t){var i=this.get("start"),a=this.get("end");return{x:i.x+(a.x-i.x)*t,y:i.y+(a.y-i.y)*t}},n.prototype.getSideVector=function(t){var r=this.getAxisVector(),i=Le.Fv([0,0],r),a=this.get("verticalFactor");return Le.bA([0,0],[i[1],-1*i[0]],t*a)},n.prototype.getAxisVector=function(){var t=this.get("start"),r=this.get("end");return[r.x-t.x,r.y-t.y]},n.prototype.processOverlap=function(t){var r=this,i=this.isVertical(),a=this.isHorizontal();if(i||a){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),c=o.offset,h=l,f=0,p=0;s&&(f=s.style.fontSize,p=s.spacing),h&&(h=h-c-p-f);var d=this.get("overlapOrder");if((0,v.S6)(d,function(x){o[x]&&r.canProcessOverlap(x)&&r.autoProcessOverlap(x,o[x],t,h)}),s&&(0,v.UM)(s.offset)){var y=t.getCanvasBBox();s.offset=c+(i?y.width:y.height)+p+f/2}}},n.prototype.canProcessOverlap=function(t){var r=this.get("label");return"autoRotate"!==t||(0,v.UM)(r.rotate)},n.prototype.autoProcessOverlap=function(t,r,i,a){var o=this,s=this.isVertical(),l=!1,c=bt[t];if(!0===r?(this.get("label"),l=c.getDefault()(s,i,a)):(0,v.mf)(r)?l=r(s,i,a):(0,v.Kn)(r)?c[r.type]&&(l=c[r.type](s,i,a,r.cfg)):c[r]&&(l=c[r](s,i,a)),"autoRotate"===t){if(l){var p=i.getChildren(),d=this.get("verticalFactor");(0,v.S6)(p,function(m){"center"===m.attr("textAlign")&&m.attr("textAlign",d>0?"end":"start")})}}else if("autoHide"===t){var y=i.getChildren().slice(0);(0,v.S6)(y,function(m){m.get("visible")||(o.get("isRegister")&&o.unregisterElement(m),m.remove())})}},n}(Iv);const H2=Y2;var G2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},n.prototype.getLinePath=function(){var t=this.get("center"),r=t.x,i=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),c=[];if(Math.abs(l-s)===2*Math.PI)c=[["M",r,i-o],["A",a,o,0,1,1,r,i+o],["A",a,o,0,1,1,r,i-o],["Z"]];else{var h=this.getCirclePoint(s),f=this.getCirclePoint(l),p=Math.abs(l-s)>Math.PI?1:0;c=[["M",r,i],["L",h.x,h.y],["A",a,o,0,p,s>l?0:1,f.x,f.y],["L",r,i]]}return c},n.prototype.getTickPoint=function(t){var r=this.get("startAngle"),i=this.get("endAngle");return this.getCirclePoint(r+(i-r)*t)},n.prototype.getSideVector=function(t,r){var i=this.get("center"),a=[r.x-i.x,r.y-i.y],o=this.get("verticalFactor"),s=Le.kE(a);return Le.bA(a,a,o*t/s),a},n.prototype.getAxisVector=function(t){var r=this.get("center"),i=[t.x-r.x,t.y-r.y];return[i[1],-1*i[0]]},n.prototype.getCirclePoint=function(t,r){var i=this.get("center");return r=r||this.get("radius"),{x:i.x+Math.cos(t)*r,y:i.y+Math.sin(t)*r}},n.prototype.canProcessOverlap=function(t){var r=this.get("label");return"autoRotate"!==t||(0,v.UM)(r.rotate)},n.prototype.processOverlap=function(t){var r=this,i=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=i.offset,l=o,c=0,h=0;a&&(c=a.style.fontSize,h=a.spacing),l&&(l=l-s-h-c);var f=this.get("overlapOrder");if((0,v.S6)(f,function(d){i[d]&&r.canProcessOverlap(d)&&r.autoProcessOverlap(d,i[d],t,l)}),a&&(0,v.UM)(a.offset)){var p=t.getCanvasBBox().height;a.offset=s+p+h+c/2}},n.prototype.autoProcessOverlap=function(t,r,i,a){var o=this,s=!1,l=bt[t];if(a>0&&(!0===r?s=l.getDefault()(!1,i,a):(0,v.mf)(r)?s=r(!1,i,a):(0,v.Kn)(r)?l[r.type]&&(s=l[r.type](!1,i,a,r.cfg)):l[r]&&(s=l[r](!1,i,a))),"autoRotate"===t){if(s){var h=i.getChildren(),f=this.get("verticalFactor");(0,v.S6)(h,function(d){"center"===d.attr("textAlign")&&d.attr("textAlign",f>0?"end":"start")})}}else if("autoHide"===t){var p=i.getChildren().slice(0);(0,v.S6)(p,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},n}(Iv);const Z2=G2;var W2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Ze.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Ze.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Ze.fontFamily}},textBackground:{padding:5,style:{stroke:Ze.lineColor}}}})},n.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},n.prototype.renderText=function(t){var r=this.get("text"),i=r.style,a=r.autoRotate,o=r.content;if(!(0,v.UM)(o)){var s=this.getTextPoint(),l=null;a&&(l=Ai(s,this.getRotateAngle())),this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,g.pi)((0,g.pi)((0,g.pi)({},s),{text:o,matrix:l}),i)})}},n.prototype.renderLine=function(t){var r=this.getLinePath(),a=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,g.pi)({path:r},a)})},n.prototype.renderBackground=function(t){var r=this.getElementId("text"),i=t.findById(r),a=this.get("textBackground");if(a&&i){var o=i.getBBox(),s=ys(a.padding),l=a.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,g.pi)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:i.attr("matrix")},l)}).toBack()}},n}(An);const $c=W2;var X2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},n.prototype.getRotateAngle=function(){var t=this.getLocation(),r=t.start,i=t.end,a=this.get("text").position,o=Math.atan2(i.y-r.y,i.x-r.x);return"start"===a?o-Math.PI/2:o+Math.PI/2},n.prototype.getTextPoint=function(){var t=this.getLocation(),r=t.start,i=t.end,a=this.get("text");return Ev(r,i,a.position,a.offset)},n.prototype.getLinePath=function(){var t=this.getLocation(),r=t.start,i=t.end;return[["M",r.x,r.y],["L",i.x,i.y]]},n}($c);const Rv=X2;var $2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},n.prototype.getRotateAngle=function(){var t=this.getLocation(),r=t.startAngle,i=t.endAngle;return"start"===this.get("text").position?r+Math.PI/2:i-Math.PI/2},n.prototype.getTextPoint=function(){var t=this.get("text"),r=t.position,i=t.offset,a=this.getLocation(),o=a.center,s=a.radius,h="start"===r?a.startAngle:a.endAngle,f=this.getRotateAngle()-Math.PI,p=ca(o,s,h),d=Math.cos(f)*i,y=Math.sin(f)*i;return{x:p.x+d,y:p.y+y}},n.prototype.getLinePath=function(){var t=this.getLocation(),r=t.center,i=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a==2*Math.PI){var l=r.x,c=r.y;s=[["M",l,c-i],["A",i,i,0,1,1,l,c+i],["A",i,i,0,1,1,l,c-i],["Z"]]}else{var h=ca(r,i,a),f=ca(r,i,o),p=Math.abs(o-a)>Math.PI?1:0;s=[["M",h.x,h.y],["A",i,i,0,p,a>o?0:1,f.x,f.y]]}return s},n}($c);const J2=$2;var ao,io="g2-crosshair",Jc=io+"-line",Qc=io+"-text";const Q2=((ao={})[""+io]={position:"relative"},ao[""+Jc]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},ao[""+Qc]={position:"absolute",color:Ze.textColor,fontFamily:Ze.fontFamily},ao);var q2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:io,defaultStyles:Q2,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},n.prototype.render=function(){this.resetText(),this.resetPosition()},n.prototype.initCrossHair=function(){var t=this.getContainer(),i=ti(this.get("crosshairTpl"));t.appendChild(i),this.applyStyle(Jc,i),this.set("crosshairEl",i)},n.prototype.getTextPoint=function(){var t=this.getLocation(),r=t.start,i=t.end,a=this.get("text");return Ev(r,i,a.position,a.offset)},n.prototype.resetText=function(){var t=this.get("text"),r=this.get("textEl");if(t){var i=t.content;if(!r){var a=this.getContainer();r=ti((0,v.ng)(this.get("textTpl"),t)),a.appendChild(r),this.applyStyle(Qc,r),this.set("textEl",r)}r.innerHTML=i}else r&&r.remove()},n.prototype.isVertical=function(t,r){return t.x===r.x},n.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var r=this.get("start"),i=this.get("end"),a=Math.min(r.x,i.x),o=Math.min(r.y,i.y);this.isVertical(r,i)?Ln(t,{width:"1px",height:Nn(Math.abs(i.y-r.y))}):Ln(t,{height:"1px",width:Nn(Math.abs(i.x-r.x))}),Ln(t,{top:Nn(o),left:Nn(a)}),this.alignText()},n.prototype.alignText=function(){var t=this.get("textEl");if(t){var r=this.get("text").align,i=t.clientWidth,a=this.getTextPoint();switch(r){case"center":a.x=a.x-i/2;break;case"right":a.x=a.x-i}Ln(t,{top:Nn(a.y),left:Nn(a.x)})}},n.prototype.updateInner=function(t){(0,v.wH)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},n}(Zc);const j2=q2;var K2=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Ze.lineColor}}}})},n.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},n.prototype.renderInner=function(t){this.drawGrid(t)},n.prototype.getAlternatePath=function(t,r){var i=this.getGridPath(t),a=r.slice(0).reverse(),o=this.getGridPath(a,!0);return this.get("closed")?i=i.concat(o):(o[0][0]="L",(i=i.concat(o)).push(["Z"])),i},n.prototype.getPathStyle=function(){return this.get("line").style},n.prototype.drawGrid=function(t){var r=this,i=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;(0,v.S6)(a,function(l,c){var h=l.id||c;if(i){var f=r.getPathStyle();f=(0,v.mf)(f)?f(l,c,a):f;var p=r.getElementId("line-"+h),d=r.getGridPath(l.points);r.addShape(t,{type:"path",name:"grid-line",id:p,attrs:(0,v.CD)({path:d},f)})}if(o&&c>0){var y=r.getElementId("region-"+h),m=c%2==0;(0,v.HD)(o)?m&&r.drawAlternateRegion(y,t,s.points,l.points,o):r.drawAlternateRegion(y,t,s.points,l.points,m?o[1]:o[0])}s=l})},n.prototype.drawAlternateRegion=function(t,r,i,a,o){var s=this.getAlternatePath(i,a);this.addShape(r,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},n}(An);const Nv=K2;var eM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"circle",center:null,closed:!0})},n.prototype.getGridPath=function(t,r){var i=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if("circle"===i){var s=this.get("center"),l=t[0],c=function tM(e,n,t,r){var i=t-e,a=r-n;return Math.sqrt(i*i+a*a)}(s.x,s.y,l.x,l.y),h=r?0:1;a?(o.push(["M",s.x,s.y-c]),o.push(["A",c,c,0,0,h,s.x,s.y+c]),o.push(["A",c,c,0,0,h,s.x,s.y-c]),o.push(["Z"])):(0,v.S6)(t,function(f,p){o.push(0===p?["M",f.x,f.y]:["A",c,c,0,0,h,f.x,f.y])})}else(0,v.S6)(t,function(f,p){o.push(0===p?["M",f.x,f.y]:["L",f.x,f.y])}),a&&o.push(["Z"]);return o},n}(Nv);const nM=eM;var rM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"line"})},n.prototype.getGridPath=function(t){var r=[];return(0,v.S6)(t,function(i,a){r.push(0===a?["M",i.x,i.y]:["L",i.x,i.y])}),r},n}(Nv);const iM=rM;var aM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},n.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),r=this.get("maxWidth"),i=this.get("maxHeight"),a=t.width,o=t.height;return r&&(a=Math.min(a,r)),i&&(o=Math.min(o,i)),to(t.minX,t.minY,a,o)},n.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},n.prototype.resetLocation=function(){var t=this.get("x"),r=this.get("y"),i=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+i,y:r+a})},n.prototype.applyOffset=function(){this.resetLocation()},n.prototype.getDrawPoint=function(){return this.get("currentPoint")},n.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},n.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},n.prototype.drawBackground=function(t){var r=this.get("background"),i=t.getBBox(),a=ys(r.padding),o=(0,g.pi)({x:0,y:0,width:i.width+a[1]+a[3],height:i.height+a[0]+a[2]},r.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},n.prototype.drawTitle=function(t){var r=this.get("currentPoint"),i=this.get("title"),a=i.spacing,o=i.style,s=i.text,c=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,g.pi)({text:s,x:r.x,y:r.y},o)}).getBBox();this.set("currentPoint",{x:r.x,y:c.maxY+a})},n.prototype.resetDraw=function(){var t=this.get("background"),r={x:0,y:0};if(t){var i=ys(t.padding);r.x=i[3],r.y=i[0]}this.set("currentPoint",r)},n}(An);const Vv=aM;var qc={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Ms={fill:Ze.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Ze.fontFamily,fontWeight:"normal",lineHeight:12},jc="navigation-arrow-right",Kc="navigation-arrow-left",Uv={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},oM=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var r=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var i=t.getCurrentNavigationMatrix();t.get("animate")?r.animate({matrix:i},100):r.attr({matrix:i})}},t.onNavigationAfter=function(){var r=t.getElementByLocalId("item-group");if(t.currentPageIndexx&&(x=tt),"horizontal"===d?(M&&Mc}(ee,M))&&(1===C&&(S=M.x+p,i.moveElementTo(m,{x:yt,y:M.y+d/2-x.height/2-x.minY})),C+=1,M.x=a,M.y+=wt),i.moveElementTo(ee,M),ee.getParent().setClip({type:"rect",attrs:{x:M.x,y:M.y,width:_e+p,height:d}}),M.x+=_e+p})}else{(0,v.S6)(l,function(ee){var me=ee.getBBox();me.width>b&&(b=me.width)}),E=b,b+=p,c&&(b=Math.min(c,b),E=Math.min(c,E)),this.pageWidth=b,this.pageHeight=h-Math.max(x.height,d+W);var Ut=Math.floor(this.pageHeight/(d+W));(0,v.S6)(l,function(ee,me){0!==me&&me%Ut==0&&(C+=1,M.x+=b,M.y=o),i.moveElementTo(ee,M),ee.getParent().setClip({type:"rect",attrs:{x:M.x,y:M.y,width:b,height:d}}),M.y+=d+W}),this.totalPagesCnt=C,this.moveElementTo(m,{x:a+E/2-x.width/2-x.minX,y:h-x.height-x.minY})}this.pageHeight&&this.pageWidth&&r.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt="horizontal"===s&&this.get("maxRow")?Math.ceil(C/this.get("maxRow")):C,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(m),r.attr("matrix",this.getCurrentNavigationMatrix())},n.prototype.drawNavigation=function(t,r,i,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,v.U2)(a.marker,"style",{}),c=l.size,h=void 0===c?12:c,f=(0,g._T)(l,["size"]),p=this.drawArrow(s,o,Kc,"horizontal"===r?"up":"left",h,f);p.on("click",this.onNavigationBack);var d=p.getBBox();o.x+=d.width+2;var m=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,g.pi)({x:o.x,y:o.y+h/2,text:i,textBaseline:"middle"},(0,v.U2)(a.text,"style"))}).getBBox();return o.x+=m.width+2,this.drawArrow(s,o,jc,"horizontal"===r?"down":"right",h,f).on("click",this.onNavigationAfter),s},n.prototype.updateNavigation=function(t){var i=(0,v.b$)({},qc,this.get("pageNavigator")).marker.style,a=i.fill,o=i.opacity,s=i.inactiveFill,l=i.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,h=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),f=t?t.findById(this.getElementId(Kc)):this.getElementByLocalId(Kc),p=t?t.findById(this.getElementId(jc)):this.getElementByLocalId(jc);h.attr("text",c),f.attr("opacity",1===this.currentPageIndex?l:o),f.attr("fill",1===this.currentPageIndex?s:a),f.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),p.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),p.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),p.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=f.getBBox().maxX+2;h.attr("x",d),d+=h.getBBox().width+2,this.updateArrowPath(p,{x:d,y:0})},n.prototype.drawArrow=function(t,r,i,a,o,s){var l=r.x,c=r.y,h=this.addShape(t,{type:"path",id:this.getElementId(i),name:i,attrs:(0,g.pi)({size:o,direction:a,path:[["M",l+o/2,c],["L",l,c+o],["L",l+o,c+o],["Z"]],cursor:"pointer"},s)});return h.attr("matrix",Ai({x:l+o/2,y:c+o/2},Uv[a])),h},n.prototype.updateArrowPath=function(t,r){var i=r.x,a=r.y,o=t.attr(),s=o.size,c=Ai({x:i+s/2,y:a+s/2},Uv[o.direction]);t.attr("path",[["M",i+s/2,a],["L",i,a+s],["L",i+s,a+s],["Z"]]),t.attr("matrix",c)},n.prototype.getCurrentNavigationMatrix=function(){var t=this,r=t.currentPageIndex,i=t.pageWidth,a=t.pageHeight;return Vc("horizontal"===this.get("layout")?{x:0,y:a*(1-r)}:{x:i*(1-r),y:0})},n.prototype.applyItemStates=function(t,r){if(this.getItemStates(t).length>0){var o=r.getChildren(),s=this.get("itemStates");(0,v.S6)(o,function(l){var h=l.get("name").split("-")[2],f=no(t,h,s);f&&(l.attr(f),"marker"===h&&(!l.get("isStroke")||!l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},n.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),r=this.get("maxItemWidth");return r?t&&(r=t<=r?t:r):t&&(r=t),r},n}(Vv);const sM=oM;var cM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Ze.textColor,textBaseline:"middle",fontFamily:Ze.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Ze.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},n.prototype.isSlider=function(){return!0},n.prototype.getValue=function(){return this.getCurrentValue()},n.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},n.prototype.setRange=function(t,r){this.update({min:t,max:r})},n.prototype.setValue=function(t){var r=this.getValue();this.set("value",t);var i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),this.delegateEmit("valuechanged",{originValue:r,value:t})},n.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},n.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},n.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},n.prototype.bindHandlersEvent=function(t){var r=this;t.on("legend-handler-min:drag",function(i){var a=r.getValueByCanvasPoint(i.x,i.y),s=r.getCurrentValue()[1];sa&&(s=a),r.setValue([s,a])})},n.prototype.bindRailEvent=function(t){},n.prototype.bindTrackEvent=function(t){var r=this,i=null;t.on("legend-track:dragstart",function(a){i={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(i){var o=r.getValueByCanvasPoint(i.x,i.y),s=r.getValueByCanvasPoint(a.x,a.y),l=r.getCurrentValue(),c=l[1]-l[0],h=r.getRange(),f=s-o;f<0?r.setValue(l[0]+f>h.min?[l[0]+f,l[1]+f]:[h.min,h.min+c]):f>0&&r.setValue(f>0&&l[1]+fo&&(f=o),f0&&this.changeRailLength(a,s,i[s]-d)}},n.prototype.changeRailLength=function(t,r,i){var o,a=t.getBBox();o="height"===r?this.getRailPath(a.x,a.y,a.width,i):this.getRailPath(a.x,a.y,i,a.height),t.attr("path",o)},n.prototype.changeRailPosition=function(t,r,i){var a=t.getBBox(),o=this.getRailPath(r,i,a.width,a.height);t.attr("path",o)},n.prototype.fixedHorizontal=function(t,r,i,a){var o=this.get("label"),s=o.align,l=o.spacing,c=i.getBBox(),h=t.getBBox(),f=r.getBBox(),p=c.height;this.fitRailLength(h,f,c,i),c=i.getBBox(),"rail"===s?(t.attr({x:a.x,y:a.y+p/2}),this.changeRailPosition(i,a.x+h.width+l,a.y),r.attr({x:a.x+h.width+c.width+2*l,y:a.y+p/2})):"top"===s?(t.attr({x:a.x,y:a.y}),r.attr({x:a.x+c.width,y:a.y}),this.changeRailPosition(i,a.x,a.y+h.height+l)):(this.changeRailPosition(i,a.x,a.y),t.attr({x:a.x,y:a.y+c.height+l}),r.attr({x:a.x+c.width,y:a.y+c.height+l}))},n.prototype.fixedVertail=function(t,r,i,a){var o=this.get("label"),s=o.align,l=o.spacing,c=i.getBBox(),h=t.getBBox(),f=r.getBBox();if(this.fitRailLength(h,f,c,i),c=i.getBBox(),"rail"===s)t.attr({x:a.x,y:a.y}),this.changeRailPosition(i,a.x,a.y+h.height+l),r.attr({x:a.x,y:a.y+h.height+c.height+2*l});else if("right"===s)t.attr({x:a.x+c.width+l,y:a.y}),this.changeRailPosition(i,a.x,a.y),r.attr({x:a.x+c.width+l,y:a.y+c.height});else{var p=Math.max(h.width,f.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(i,a.x+p+l,a.y),r.attr({x:a.x,y:a.y+c.height})}},n}(Vv);const uM=cM;var Sr,Nr="g2-tooltip",Vr="g2-tooltip-title",oo="g2-tooltip-list",Cs="g2-tooltip-list-item",ws="g2-tooltip-marker",Ss="g2-tooltip-value",Hv="g2-tooltip-name",tu="g2-tooltip-crosshair-x",eu="g2-tooltip-crosshair-y";const hM=((Sr={})[""+Nr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Ze.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},Sr[""+Vr]={marginBottom:"4px"},Sr[""+oo]={margin:"0px",listStyleType:"none",padding:"0px"},Sr[""+Cs]={listStyleType:"none",marginBottom:"4px"},Sr[""+ws]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},Sr[""+Ss]={display:"inline-block",float:"right",marginLeft:"30px"},Sr[""+tu]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Sr[""+eu]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Sr);var gM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
      ',itemTpl:'
    • \n \n {name}:\n {value}\n
    • ',xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:Nr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:hM})},n.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},n.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},n.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),Ln(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},n.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),Ln(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},n.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},n.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},n.prototype.setCrossHairsVisible=function(t){var r=t?"":"none",i=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");i&&Ln(i,{display:r}),a&&Ln(a,{display:r})},n.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},n.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(function dM(e,n){var t=!1;return(0,v.S6)(n,function(r){if((0,v.wH)(e,r))return t=!0,!1}),t}(t,["title","showTitle"])&&this.resetTitle(),(0,v.wH)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},n.prototype.initDom=function(){this.cacheDoms()},n.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},n.prototype.resetPosition=function(){var y,t=this.get("x"),r=this.get("y"),i=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),c=this.get("region"),h=this.getContainer(),f=this.getBBox(),p=f.width,d=f.height;c&&(y=Ka(c));var m=function pM(e,n,t,r,i,a,o){var s=function vM(e,n,t,r,i,a){var o=e,s=n;switch(a){case"left":o=e-r-t,s=n-i/2;break;case"right":o=e+t,s=n-i/2;break;case"top":o=e-r/2,s=n-i-t;break;case"bottom":o=e-r/2,s=n+t;break;default:o=e+t,s=n-i-t}return{x:o,y:s}}(e,n,t,r,i,a);if(o){var l=function fM(e,n,t,r,i){return{left:ei.x+i.width,top:ni.y+i.height}}(s.x,s.y,r,i,o);"auto"===a?(l.right&&(s.x=Math.max(0,e-r-t)),l.top&&(s.y=Math.max(0,n-i-t))):"top"===a||"bottom"===a?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-r),"top"===a&&l.top&&(s.y=n+t),"bottom"===a&&l.bottom&&(s.y=n-i-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-i),"left"===a&&l.left&&(s.x=e+t),"right"===a&&l.right&&(s.x=e-r-t))}return s}(t,r,i,p,d,l,y);Ln(h,{left:Nn(m.x+o),top:Nn(m.y+s)}),this.resetCrosshairs()},n.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),r=this.get("parent"),i=this.get("container");i&&i.parentNode===r?r.replaceChild(t,i):r.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},n.prototype.getHtmlContentNode=function(){var t,r=this.get("customContent");if(r){var i=r(this.get("title"),this.get("items"));t=(0,v.kK)(i)?i:ti(i)}return t},n.prototype.cacheDoms=function(){var t=this.getContainer(),r=t.getElementsByClassName(Vr)[0],i=t.getElementsByClassName(oo)[0];this.set("titleDom",r),this.set("listDom",i)},n.prototype.resetTitle=function(){var t=this.get("title"),r=this.get("showTitle");this.setTitle(r&&t?t:"")},n.prototype.setTitle=function(t){var r=this.get("titleDom");r&&(r.innerText=t)},n.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),r=this.get("crosshairs");if(t&&r){var i=Ka(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");"x"===r?(this.resetCrosshair("x",i),o&&(o.remove(),this.set("yCrosshairDom",null))):"y"===r?(this.resetCrosshair("y",i),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},n.prototype.resetCrosshair=function(t,r){var i=this.checkCrosshair(t),a=this.get(t);Ln(i,"x"===t?{left:Nn(a),top:Nn(r.y),height:Nn(r.height)}:{top:Nn(a),left:Nn(r.x),width:Nn(r.width)})},n.prototype.checkCrosshair=function(t){var r=t+"CrosshairDom",i=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=ht[a],s=this.get(r),l=this.get("parent");return s||(s=ti(this.get(i)),this.applyStyle(o,s),l.appendChild(s),this.set(r,s)),s},n.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),r=this.get("itemTpl"),i=this.get("listDom");i&&((0,v.S6)(t,function(a){var o=ei.toCSSGradient(a.color),s=(0,g.pi)((0,g.pi)({},a),{color:o}),c=ti((0,v.ng)(r,s));i.appendChild(c)}),this.applyChildrenStyles(i,this.get("domStyles")))},n.prototype.clearItemDoms=function(){this.get("listDom")&&Yc(this.get("listDom"))},n.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");t&&t.remove(),r&&r.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},n}(Zc);const yM=gM;var mM={opacity:0},xM={stroke:"#C5C5C5",strokeOpacity:.85},MM={fill:"#CACED4",opacity:.85},ua=V(575);function Gv(e){return function CM(e){return(0,v.UI)(e,function(n,t){return[0===t?"M":"L",n[0],n[1]]})}(e)}var TM=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:mM,lineStyle:xM,areaStyle:MM})},n.prototype.renderInner=function(t){var r=this.cfg,i=r.width,a=r.height,o=r.data,s=r.smooth,l=r.isArea,c=r.backgroundStyle,h=r.lineStyle,f=r.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.pi)({x:0,y:0,width:i,height:a},c)});var p=function SM(e,n,t,r){void 0===r&&(r=!0);var i=new fs({values:e}),a=new ss({values:(0,v.UI)(e,function(s,l){return l})}),o=(0,v.UI)(e,function(s,l){return[a.scale(l)*n,t-i.scale(s)*t]});return r?function wM(e){if(e.length<=2)return Gv(e);var n=[];(0,v.S6)(e,function(o){(0,v.Xy)(o,n.slice(n.length-2))||n.push(o[0],o[1])});var t=(0,ua.e9)(n,!1),r=(0,v.YM)(e);return t.unshift(["M",r[0],r[1]]),t}(o):Gv(o)}(o,i,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,g.pi)({path:p},h)}),l){var d=function bM(e,n,t,r){var i=(0,g.pr)(e),a=function _M(e,n){var t=new fs({values:e}),r=t.max<0?t.max:Math.max(0,t.min);return n-t.scale(r)*n}(r,t);return i.push(["L",n,a]),i.push(["L",0,a]),i.push(["Z"]),i}(p,i,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,g.pi)({path:d},f)})}},n.prototype.applyOffset=function(){var t=this.cfg,r=t.x,i=t.y;this.moveElementTo(this.get("group"),{x:r,y:i})},n}(An),Zv={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},Wv=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:Zv})},n.prototype.renderInner=function(t){var r=this.cfg,i=r.width,a=r.height,o=r.style,s=o.fill,l=o.stroke,c=o.radius,h=o.opacity,f=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:a,fill:s,stroke:l,radius:c,opacity:h,cursor:f}});var p=1/3*i,d=2/3*i,y=1/4*a,m=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:p,y1:y,x2:p,y2:m,stroke:l,cursor:f}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:y,x2:d,y2:m,stroke:l,cursor:f}})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var r=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",r),t.draw()}),this.get("group").on("mouseleave",function(){var r=t.get("style").fill;t.getElementByLocalId("background").attr("fill",r),t.draw()})},n.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},n}(An),AM={fill:"#416180",opacity:.05},FM={fill:"#5B8FF9",opacity:.15,cursor:"move"},EM={width:10,height:24},kM={textBaseline:"middle",fill:"#000",opacity:.45},DM=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(r){return function(i){t.currentTarget=r;var a=i.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=(0,v.U2)(a,"touches.0.pageX",a.pageX),t.prevY=(0,v.U2)(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(r){var i=t.cfg.width,a=[t.get("start"),t.get("end")];r.stopPropagation(),r.preventDefault();var o=(0,v.U2)(r,"touches.0.pageX",r.pageX),s=(0,v.U2)(r,"touches.0.pageY",r.pageY),c=t.adjustOffsetRange((o-t.prevX)/i);t.updateStartEnd(c),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit("sliderchange",[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var r=t.getContainerDOM();r&&(r.removeEventListener("mousemove",t.onMouseMove),r.removeEventListener("mouseup",t.onMouseUp),r.removeEventListener("mouseleave",t.onMouseUp),r.removeEventListener("touchmove",t.onMouseMove),r.removeEventListener("touchend",t.onMouseUp),r.removeEventListener("touchcancel",t.onMouseUp))},t}return(0,g.ZT)(n,e),n.prototype.setRange=function(t,r){this.set("minLimit",t),this.set("maxLimit",r);var i=this.get("start"),a=this.get("end"),o=(0,v.uZ)(i,t,r),s=(0,v.uZ)(a,t,r);!this.get("isInit")&&(i!==o||a!==s)&&this.setValue([o,s])},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var r=this.getRange();if((0,v.kJ)(t)&&2===t.length){var i=[this.get("start"),this.get("end")];this.update({start:(0,v.uZ)(t[0],r.min,r.max),end:(0,v.uZ)(t[1],r.min,r.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,value:t})}},n.prototype.getValue=function(){return[this.get("start"),this.get("end")]},n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:AM,foregroundStyle:FM,handlerStyle:EM,textStyle:kM}})},n.prototype.update=function(t){var r=t.start,i=t.end,a=(0,g.pi)({},t);(0,v.UM)(r)||(a.start=(0,v.uZ)(r,0,1)),(0,v.UM)(i)||(a.end=(0,v.uZ)(i,0,1)),e.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},n.prototype.init=function(){this.set("start",(0,v.uZ)(this.get("start"),0,1)),this.set("end",(0,v.uZ)(this.get("end"),0,1)),e.prototype.init.call(this)},n.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},n.prototype.renderInner=function(t){var r=this.cfg,o=r.width,s=r.height,l=r.trendCfg,c=void 0===l?{}:l,h=r.minText,f=r.maxText,p=r.backgroundStyle,d=void 0===p?{}:p,y=r.foregroundStyle,m=void 0===y?{}:y,x=r.textStyle,M=void 0===x?{}:x,C=(0,v.b$)({},Zv,this.cfg.handlerStyle);(0,v.dp)((0,v.U2)(c,"data"))&&(this.trend=this.addComponent(t,(0,g.pi)({component:TM,id:this.getElementId("trend"),x:0,y:0,width:o,height:s},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.pi)({x:0,y:0,width:o,height:s},d)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,g.pi)({y:s/2,textAlign:"right",text:h,silent:!1},M)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,g.pi)({y:s/2,textAlign:"left",text:f,silent:!1},M)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,g.pi)({y:0,height:s},m)});var it=(0,v.U2)(C,"width",10),wt=(0,v.U2)(C,"height",24);this.minHandler=this.addComponent(t,{component:Wv,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(s-wt)/2,width:it,height:wt,cursor:"ew-resize",style:C}),this.maxHandler=this.addComponent(t,{component:Wv,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(s-wt)/2,width:it,height:wt,cursor:"ew-resize",style:C})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.updateUI=function(t,r,i){var a=this.cfg,l=a.width,c=a.minText,h=a.maxText,f=a.handlerStyle,d=a.start*l,y=a.end*l;this.trend&&(this.trend.update({width:l,height:a.height}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",d),t.attr("width",y-d);var m=(0,v.U2)(f,"width",10);r.attr("text",c),i.attr("text",h);var x=this._dodgeText([d,y],r,i),M=x[0],C=x[1];this.minHandler&&(this.minHandler.update({x:d-m/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,v.S6)(M,function(S,b){return r.attr(b,S)}),this.maxHandler&&(this.maxHandler.update({x:y-m/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,v.S6)(C,function(S,b){return i.attr(b,S)})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var r=t.findById(this.getElementId("foreground"));r.on("mousedown",this.onMouseDown("foreground")),r.on("touchstart",this.onMouseDown("foreground"))},n.prototype.adjustOffsetRange=function(t){var r=this.cfg,i=r.start,a=r.end;switch(this.currentTarget){case"minHandler":var o=0-i,s=1-i;return Math.min(s,Math.max(o,t));case"maxHandler":return o=0-a,s=1-a,Math.min(s,Math.max(o,t));case"foreground":return o=0-i,s=1-a,Math.min(s,Math.max(o,t))}},n.prototype.updateStartEnd=function(t){var r=this.cfg,i=r.start,a=r.end;switch(this.currentTarget){case"minHandler":i+=t;break;case"maxHandler":a+=t;break;case"foreground":i+=t,a+=t}this.set("start",i),this.set("end",a)},n.prototype._dodgeText=function(t,r,i){var a,o,s=this.cfg,c=s.width,f=(0,v.U2)(s.handlerStyle,"width",10),p=t[0],d=t[1],y=!1;p>d&&(p=(a=[d,p])[0],d=a[1],r=(o=[i,r])[0],i=o[1],y=!0);var m=r.getBBox(),x=i.getBBox(),M=m.width>p-2?{x:p+f/2+2,textAlign:"left"}:{x:p-f/2-2,textAlign:"right"},C=x.width>c-d-2?{x:d-f/2-2,textAlign:"right"}:{x:d+f/2+2,textAlign:"left"};return y?[C,M]:[M,C]},n.prototype.draw=function(){var t=this.get("container"),r=t&&t.get("canvas");r&&r.draw()},n.prototype.getContainerDOM=function(){var t=this.get("container"),r=t&&t.get("canvas");return r&&r.get("container")},n}(An);function ha(e,n,t){if(e){if("function"==typeof e.addEventListener)return e.addEventListener(n,t,!1),{remove:function(){e.removeEventListener(n,t,!1)}};if("function"==typeof e.attachEvent)return e.attachEvent("on"+n,t),{remove:function(){e.detachEvent("on"+n,t)}}}}var nu={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},OM=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.clearEvents=v.ZT,t.onStartEvent=function(r){return function(i){t.isMobile=r,i.originalEvent.preventDefault();var a=r?(0,v.U2)(i.originalEvent,"touches.0.clientX"):i.clientX,o=r?(0,v.U2)(i.originalEvent,"touches.0.clientY"):i.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var r=t.getContainerDOM(),i=[];i=t.isMobile?[ha(r,"touchmove",t.onMouseMove),ha(r,"touchend",t.onMouseUp),ha(r,"touchcancel",t.onMouseUp)]:[ha(r,"mousemove",t.onMouseMove),ha(r,"mouseup",t.onMouseUp),ha(r,"mouseleave",t.onMouseUp)],t.clearEvents=function(){i.forEach(function(a){a.remove()})}},t.onMouseMove=function(r){var i=t.cfg,a=i.isHorizontal,o=i.thumbOffset;r.preventDefault();var s=t.isMobile?(0,v.U2)(r,"touches.0.clientX"):r.clientX,l=t.isMobile?(0,v.U2)(r,"touches.0.clientY"):r.clientY,c=a?s:l,h=c-t.startPos;t.startPos=c,t.updateThumbOffset(o+h)},t.onMouseUp=function(r){r.preventDefault(),t.clearEvents()},t.onTrackClick=function(r){var i=t.cfg,a=i.isHorizontal,o=i.x,s=i.y,l=i.thumbLen,h=t.getContainerDOM().getBoundingClientRect(),y=t.validateRange(a?r.clientX-h.left-o-l/2:r.clientY-h.top-s-l/2);t.updateThumbOffset(y)},t.onThumbMouseOver=function(){var r=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",r),t.draw()},t.onThumbMouseOut=function(){var r=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",r),t.draw()},t}return(0,g.ZT)(n,e),n.prototype.setRange=function(t,r){this.set("minLimit",t),this.set("maxLimit",r);var i=this.getValue(),a=(0,v.uZ)(i,t,r);i!==a&&!this.get("isInit")&&this.setValue(a)},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var r=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,v.uZ)(t,r.min,r.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},n.prototype.getValue=function(){return(0,v.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.pi)((0,g.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:nu})},n.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.renderTrackShape=function(t){var r=this.cfg,i=r.trackLen,a=r.theme,s=(0,v.b$)({},nu,void 0===a?{default:{}}:a).default,l=s.lineCap,c=s.trackColor,f=(0,v.U2)(this.cfg,"size",s.size),p=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:i-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:i-f/2,lineWidth:f,stroke:c,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:p})},n.prototype.renderThumbShape=function(t){var r=this.cfg,i=r.thumbOffset,a=r.thumbLen,s=(0,v.b$)({},nu,r.theme).default,c=s.lineCap,h=s.thumbColor,f=(0,v.U2)(this.cfg,"size",s.size),p=this.get("isHorizontal")?{x1:i+f/2,y1:f/2,x2:i+a-f/2,y2:f/2,lineWidth:f,stroke:h,lineCap:c,cursor:"default"}:{x1:f/2,y1:i+f/2,x2:f/2,y2:i+a-f/2,lineWidth:f,stroke:h,lineCap:c,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:p})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var i=t.findById(this.getElementId("thumb"));i.on("mouseover",this.onThumbMouseOver),i.on("mouseout",this.onThumbMouseOut)},n.prototype.getContainerDOM=function(){var t=this.get("container"),r=t&&t.get("canvas");return r&&r.get("container")},n.prototype.validateRange=function(t){var r=this.cfg,i=r.thumbLen,a=r.trackLen,o=t;return t+i>a?o=a-i:t+ia.x?a.x:n,t=ta.y?a.y:r,i=i=r&&e<=i}function Un(e,n){return"object"==typeof e&&n.forEach(function(t){delete e[t]}),e}function si(e,n,t){var r,i;void 0===n&&(n=[]),void 0===t&&(t=new Map);try{for(var a=(0,g.XA)(e),o=a.next();!o.done;o=a.next()){var s=o.value;t.has(s)||(n.push(s),t.set(s,!0))}}catch(l){r={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return n}var On=function(){function e(n,t,r,i){void 0===n&&(n=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=n,this.y=t,this.height=i,this.width=r}return e.fromRange=function(n,t,r,i){return new e(n,t,r-n,i-t)},e.fromObject=function(n){return new e(n.minX,n.minY,n.width,n.height)},Object.defineProperty(e.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(n){return this.x===n.x&&this.y===n.y&&this.width===n.width&&this.height===n.height},e.prototype.contains=function(n){return n.minX>=this.minX&&n.maxX<=this.maxX&&n.minY>=this.minY&&n.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var n=[],t=0;tn.minX&&this.minYn.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(n){return n.x>=this.minX&&n.x<=this.maxX&&n.y>=this.minY&&n.y<=this.maxY},e}();function lo(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var n=e.convert({x:0,y:0}),t=e.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function Ts(e,n){var t=e.getCenter();return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function va(e,n){var t=e.getCenter();return Math.atan2(n.y-t.y,n.x-t.x)}function ru(e,n){void 0===n&&(n=0);var t=e.start,r=e.end,i=e.getWidth(),a=e.getHeight();if(e.isPolar){var o=e.startAngle,s=e.endAngle,l=e.getCenter(),c=e.getRadius();return{type:"path",startState:{path:oi(l.x,l.y,c+n,o,o)},endState:function(f){return{path:oi(l.x,l.y,c+n,o,(s-o)*f+o)}},attrs:{path:oi(l.x,l.y,c+n,o,s)}}}return{type:"rect",startState:{x:t.x-n,y:r.y-n,width:e.isTransposed?i+2*n:0,height:e.isTransposed?0:a+2*n},endState:e.isTransposed?{height:a+2*n}:{width:i+2*n},attrs:{x:t.x-n,y:r.y-n,width:i+2*n,height:a+2*n}}}var XM=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function jv(e,n,t,r){return void 0===n&&(n={}),n.type?n.type:"identity"!==e.type&&la.includes(t)&&["interval"].includes(r)||e.isCategory?"cat":e.type}function co(e){return e.alias||e.field}function Kv(e,n,t){var a,i=e.values.length;if(1===i)a=[.5,1];else{var s=0;a=function GM(e){return!!e.isPolar&&e.endAngle-e.startAngle==2*Math.PI}(n)?n.isTransposed?[(s=1/i*(0,v.U2)(t,"widthRatio.multiplePie",1/1.3))/2,1-s/2]:[0,1-1/i]:[s=1/i/2,1-s]}return a}function qM(e){var n=e.values.filter(function(t){return!(0,v.UM)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,g.ev)((0,g.ev)([],(0,g.CR)(n),!1),[(0,v.UM)(e.max)?-1/0:e.max],!1))}function As(e,n){var t={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?t=function jM(e){var n,t;switch(e){case ue.TOP:n={x:0,y:1},t={x:1,y:1};break;case ue.RIGHT:n={x:1,y:0},t={x:1,y:1};break;case ue.BOTTOM:n={x:0,y:0},t={x:1,y:0};break;case ue.LEFT:n={x:0,y:0},t={x:0,y:1};break;default:n=t={x:0,y:0}}return{start:n,end:t}}(n):e.isPolar&&(t=function KM(e){var n,t;return e.isTransposed?(n={x:0,y:0},t={x:1,y:0}):(n={x:0,y:0},t={x:0,y:1}),{start:n,end:t}}(e));var i=t.end;return{start:e.convert(t.start),end:e.convert(i)}}function tp(e){return e.start.x===e.end.x}function ep(e,n){var t=e.start,r=e.end;return tp(e)?(t.y-r.y)*(n.x-t.x)>0?1:-1:(r.x-t.x)*(t.y-n.y)>0?-1:1}function Fs(e,n){var t=(0,v.U2)(e,["components","axis"],{});return(0,v.b$)({},(0,v.U2)(t,["common"],{}),(0,v.b$)({},(0,v.U2)(t,[n],{})))}function np(e,n,t){var r=(0,v.U2)(e,["components","axis"],{});return(0,v.b$)({},(0,v.U2)(r,["common","title"],{}),(0,v.b$)({},(0,v.U2)(r,[n,"title"],{})),t)}function iu(e){var n=e.x,t=e.y,r=e.circleCenter,i=t.start>t.end,a=e.convert(e.isTransposed?{x:i?0:1,y:0}:{x:0,y:i?0:1}),o=[a.x-r.x,a.y-r.y],s=[1,0],l=a.y>r.y?Le.EU(o,s):-1*Le.EU(o,s),c=l+(n.end-n.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:l,endAngle:c}}function Es(e,n){return(0,v.jn)(e)?!1!==e&&{}:(0,v.U2)(e,[n])}function rp(e,n){return(0,v.U2)(e,"position",n)}function ip(e,n){return(0,v.U2)(n,["title","text"],co(e))}var pa=function(){function e(n,t){this.destroyed=!1,this.facets=[],this.view=n,this.cfg=(0,v.b$)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var n=this.view.getData();this.facets=this.generateFacets(n)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(n){var r=n.data,i=n.padding,o=this.view.createView({region:n.region,padding:void 0===i?this.cfg.padding:i});o.data(r||[]),n.view=o,this.beforeEachView(o,n);var s=this.cfg.eachView;return s&&s(o,n),this.afterEachView(o,n),o},e.prototype.createContainer=function(){return this.view.getLayer(gn.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var n=this;return this.facets.map(function(t){return n.facetToView(t)})},e.prototype.clearFacetViews=function(){var n=this;(0,v.S6)(this.facets,function(t){t.view&&(n.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var n=this.view.viewBBox,t=n.width,r=n.height;return this.cfg.spacing.map(function(a,o){return(0,v.hj)(a)?a/(0===o?t:r):parseFloat(a)/100})},e.prototype.getFieldValues=function(n,t){var r=[],i={};return(0,v.S6)(n,function(a){var o=a[t];!(0,v.UM)(o)&&!i[o]&&(r.push(o),i[o]=!0)}),r},e.prototype.getRegion=function(n,t,r,i){var a=(0,g.CR)(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(0===t?1:t)-o,c=(1+s)/(0===n?1:n)-s,h={x:(l+o)*r,y:(c+s)*i};return{start:h,end:{x:h.x+l,y:h.y+c}}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(n,t){var r=n.getOptions(),a=n.geometries;if("rect"===(0,v.U2)(r.coordinate,"type","rect")&&a.length){(0,v.UM)(r.axes)&&(r.axes={});var s=r.axes,l=(0,g.CR)(a[0].getXYFields(),2),c=l[0],h=l[1],f=Es(s,c),p=Es(s,h);!1!==f&&(r.axes[c]=this.getXAxisOption(c,s,f,t)),!1!==p&&(r.axes[h]=this.getYAxisOption(h,s,p,t))}},e.prototype.getFacetDataFilter=function(n){return function(t){return(0,v.yW)(n,function(r){var i=r.field,a=r.value;return!(!(0,v.UM)(a)&&i)||t[i]===a})}},e}(),ap={},da=function(e,n){ap[(0,v.vl)(e)]=n},eC=function(){function e(n,t){this.context=n,this.cfg=t,n.addAction(this)}return e.prototype.applyCfg=function(n){(0,v.f0)(this,n)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}();const sn=eC;var nC=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.execute=function(){this.callback&&this.callback(this.context)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},n}(sn);const rC=nC;var ks={};function Is(e){return(0,v.U2)(ks[e],"ActionClass")}function be(e,n,t){ks[e]={ActionClass:n,cfg:t}}function aC(e,n){var t=new rC(n);return t.callback=e,t.name="callback",t}function au(e,n){for(var t=[e[0]],r=1,i=e.length;r0&&i>0&&(r>=n||i>=n)}function up(e,n){var t=e.getCanvasBBox();return cp(e,n)?t:null}function hp(e,n){return e.event.maskShapes.map(function(r){return up(r,n)}).filter(function(r){return!!r})}function fp(e,n){return cp(e,n)?e.attr("path"):null}function li(e){var t,r=e.event.target;return r&&(t=r.get("element")),t}function Ii(e){var r,t=e.event.target;return t&&(r=t.get("delegateObject")),r}function vp(e){var n=e.event.gEvent;return!(n&&n.fromShape&&n.toShape&&n.fromShape.get("element")===n.toShape.get("element"))}function ho(e){return e&&e.component&&e.component.isList()}function pp(e){return e&&e.component&&e.component.isSlider()}function fo(e){var t=e.event.target;return t&&"mask"===t?.get("name")||Ls(e)}function Ls(e){var n;return"multi-mask"===(null===(n=e.event.target)||void 0===n?void 0:n.get("name"))}function ou(e,n){var t=e.event.target;if(Ls(e))return function pC(e,n){if("path"===e.event.target.get("type")){var r=function vC(e,n){return e.event.maskShapes.map(function(r){return fp(r,n)})}(e,n);return r.length>0?r.flatMap(function(a){return xp(e.view,a)}):null}var i=hp(e,n);return i.length>0?i.flatMap(function(a){return Os(e.view,a)}):null}(e,n);if("path"===t.get("type")){var r=function fC(e,n){return fp(e.event.target,n)}(e,n);return r?xp(e.view,r):void 0}var i=lp(e,n);return i?Os(e.view,i):null}function dp(e,n,t){if(Ls(e))return function dC(e,n,t){var r=hp(e,t);return r.length>0?r.flatMap(function(i){return gp(i,e,n)}):null}(e,n,t);var r=lp(e,t);return r?gp(r,e,n):null}function gp(e,n,t){var r=n.view,i=lu(r,t,{x:e.x,y:e.y}),a=lu(r,t,{x:e.maxX,y:e.maxY});return Os(t,{minX:i.x,minY:i.y,maxX:a.x,maxY:a.y})}function Tn(e){var t=[];return(0,v.S6)(e.geometries,function(r){t=t.concat(r.elements)}),e.views&&e.views.length&&(0,v.S6)(e.views,function(r){t=t.concat(Tn(r))}),t}function yp(e,n){var r=[];return(0,v.S6)(e.geometries,function(i){var a=i.getElementsBy(function(o){return o.hasState(n)});r=r.concat(a)}),r}function ur(e,n){var r=e.getModel().data;return(0,v.kJ)(r)?r[0][n]:r[n]}function Os(e,n){var t=Tn(e),r=[];return(0,v.S6)(t,function(i){var o=i.shape.getCanvasBBox();(function yC(e,n){return!(n.minX>e.maxX||n.maxXe.maxY||n.maxY=n.x&&e.y<=n.y&&e.maxY>n.y}function _r(e){var n=e.parent,t=null;return n&&(t=n.views.filter(function(r){return r!==e})),t}function lu(e,n,t){var r=function xC(e,n){return e.getCoordinate().invert(n)}(e,t);return n.getCoordinate().convert(r)}function wp(e,n,t,r){var i=!1;return(0,v.S6)(e,function(a){if(a[t]===n[t]&&a[r]===n[r])return i=!0,!1}),i}function ga(e,n){var t=e.getScaleByField(n);return!t&&e.views&&(0,v.S6)(e.views,function(r){if(t=ga(r,n))return!1}),t}var MC=function(){function e(n){this.actions=[],this.event=null,this.cacheMap={},this.view=n}return e.prototype.cache=function(){for(var n=[],t=0;t=0&&t.splice(r,1)},e.prototype.getCurrentPoint=function(){var n=this.event;return n?n.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(n.clientX,n.clientY):{x:n.x,y:n.y}:null},e.prototype.getCurrentShape=function(){return(0,v.U2)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var n=this.getCurrentPoint();return!!n&&this.view.isPointInPlot(n)},e.prototype.isInShape=function(n){var t=this.getCurrentShape();return!!t&&t.get("name")===n},e.prototype.isInComponent=function(n){var t=Mp(this.view),r=this.getCurrentPoint();return!!r&&!!t.find(function(i){var a=i.getBBox();return n?i.get("name")===n&&Cp(a,r):Cp(a,r)})},e.prototype.destroy=function(){(0,v.S6)(this.actions.slice(),function(n){n.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}();const CC=MC;var wC=function(){function e(n,t){this.view=n,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();function Sp(e,n,t){var r=e.split(":"),i=r[0],a=n.getAction(i)||function iC(e,n){var t=ks[e],r=null;return t&&((r=new(0,t.ActionClass)(n,t.cfg)).name=e,r.init()),r}(i,n);if(!a)throw new Error("There is no action named ".concat(i));return{action:a,methodName:r[1],arg:t}}function _p(e){var n=e.action,t=e.methodName,r=e.arg;if(!n[t])throw new Error("Action(".concat(n.name,") doesn't have a method called ").concat(t));n[t](r)}var _C=function(e){function n(t,r){var i=e.call(this,t,r)||this;return i.callbackCaches={},i.emitCaches={},i.steps=r,i}return(0,g.ZT)(n,e),n.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},n.prototype.initEvents=function(){var t=this;(0,v.S6)(this.steps,function(r,i){(0,v.S6)(r,function(a){var o=t.getActionCallback(i,a);o&&t.bindEvent(a.trigger,o)})})},n.prototype.clearEvents=function(){var t=this;(0,v.S6)(this.steps,function(r,i){(0,v.S6)(r,function(a){var o=t.getActionCallback(i,a);o&&t.offEvent(a.trigger,o)})})},n.prototype.initContext=function(){var r=new CC(this.view);this.context=r,(0,v.S6)(this.steps,function(a){(0,v.S6)(a,function(o){if((0,v.mf)(o.action))o.actionObject={action:aC(o.action,r),methodName:"execute"};else if((0,v.HD)(o.action))o.actionObject=Sp(o.action,r,o.arg);else if((0,v.kJ)(o.action)){var s=o.action,l=(0,v.kJ)(o.arg)?o.arg:[o.arg];o.actionObject=[],(0,v.S6)(s,function(c,h){o.actionObject.push(Sp(c,r,l[h]))})}})})},n.prototype.isAllowStep=function(t){var r=this.currentStepName;if(r===t||"showEnable"===t)return!0;if("processing"===t)return"start"===r;if("start"===t)return"processing"!==r;if("end"===t)return"processing"===r||"start"===r;if("rollback"===t){if(this.steps.end)return"end"===r;if("start"===r)return!0}return!1},n.prototype.isAllowExecute=function(t,r){if(this.isAllowStep(t)){var i=this.getKey(t,r);return(!r.once||!this.emitCaches[i])&&(!r.isEnable||r.isEnable(this.context))}return!1},n.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},n.prototype.afterExecute=function(t,r){"showEnable"!==t&&this.currentStepName!==t&&this.enterStep(t);var i=this.getKey(t,r);this.emitCaches[i]=!0},n.prototype.getKey=function(t,r){return t+r.trigger+r.action},n.prototype.getActionCallback=function(t,r){var i=this,a=this.context,o=this.callbackCaches,s=r.actionObject;if(r.action&&s){var l=this.getKey(t,r);if(!o[l]){var c=function(h){a.event=h,i.isAllowExecute(t,r)?((0,v.kJ)(s)?(0,v.S6)(s,function(f){a.event=h,_p(f)}):(a.event=h,_p(s)),i.afterExecute(t,r),r.callback&&(a.event=h,r.callback(a))):a.event=null};o[l]=r.debounce?(0,v.Ds)(c,r.debounce.wait,r.debounce.immediate):r.throttle?(0,v.P2)(c,r.throttle.wait,{leading:r.throttle.leading,trailing:r.throttle.trailing}):c}return o[l]}return null},n.prototype.bindEvent=function(t,r){var i=t.split(":");"window"===i[0]?window.addEventListener(i[1],r):"document"===i[0]?document.addEventListener(i[1],r):this.view.on(t,r)},n.prototype.offEvent=function(t,r){var i=t.split(":");"window"===i[0]?window.removeEventListener(i[1],r):"document"===i[0]?document.removeEventListener(i[1],r):this.view.off(t,r)},n}(wC);const bC=_C;var bp={};function Oe(e,n){bp[(0,v.vl)(e)]=n}function Tp(e){var n,t={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},r=function FC(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}(e),i=function EC(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=so(a.getModel(),o),h=(s.startAngle+s.endAngle)/2,p=7.5*Math.cos(h),d=7.5*Math.sin(h);return{matrix:an.vs(null,[["t",p,d]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,g.pi)((0,g.pi)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,g.pi)((0,g.pi)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,g.pi)((0,g.pi)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,g.pi)((0,g.pi)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,g.pi)((0,g.pi)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,g.pi)((0,g.pi)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,g.pi)((0,g.pi)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,g.pi)((0,g.pi)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,v.b$)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,v.b$)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(n={},n["".concat(Nr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},n["".concat(Vr)]={marginBottom:"12px",marginTop:"12px"},n["".concat(oo)]={margin:0,listStyleType:"none",padding:0},n["".concat(Cs)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},n["".concat(ws)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},n["".concat(Ss)]={display:"inline-block",float:"right",marginLeft:"30px"},n)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var je_65="#595959",je_25="#BFBFBF",kC=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],IC=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],DC=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ap=function(e){void 0===e&&(e={});var n=e.paletteQualitative10,t=void 0===n?kC:n,r=e.paletteQualitative20,a=e.brandColor,o=void 0===a?t[0]:a;return(0,g.pi)((0,g.pi)({},{backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:void 0===r?IC:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:DC,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:je_25,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:je_65,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:"#D9D9D9",axisTickLineBorderColor:je_25,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:"#D9D9D9",axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:"#8C8C8C",axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:"#D9D9D9",axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:"#8C8C8C",legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:je_65,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:"#000",legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:"#000",legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:"#8C8C8C",legendPageNavigatorTextFontSize:12,sliderRailFillColor:"#D9D9D9",sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:"#8C8C8C",sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:"#F0F0F0",sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:je_25,annotationArcBorderColor:"#D9D9D9",annotationArcBorder:1,annotationLineBorderColor:je_25,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:je_65,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:"#000",annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:je_25,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:je_65,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:je_65,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:"#FFFFFF",innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:je_65,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:"#FFFFFF",overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:je_25,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:"#FFFFFF",pointBorderOpacity:1,pointActiveBorderColor:"#000",pointSelectedBorder:2,pointSelectedBorderColor:"#000",pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:"#FFFFFF",hollowPointActiveBorder:1,hollowPointActiveBorderColor:"#000",hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:"#000",hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:"#000",hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:"#000",hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:"#000",intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:"#000",intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:"#FFFFFF",hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:"#000",hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:"#000",hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),e)};function Ps(e){var n=e.styleSheet,t=void 0===n?{}:n,r=(0,g._T)(e,["styleSheet"]),i=Ap(t);return(0,v.b$)({},Tp(i),r)}Ap();var cu={default:Ps({})};function vo(e){return(0,v.U2)(cu,(0,v.vl)(e),cu.default)}function Fp(e,n,t){var r=t.translate(e),i=t.translate(n);return(0,v.vQ)(r,i)}function Ep(e,n,t){var r=t.coordinate,i=t.getYScale(),a=i.field,o=r.invert(n),s=i.invert(o.y);return(0,v.sE)(e,function(c){var h=c[nn];return h[a][0]<=s&&h[a][1]>=s})||e[e.length-1]}var zC=(0,v.HP)(function(e){if(e.isCategory)return 1;for(var n=e.values,t=n.length,r=e.translate(n[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(t-1)});function kp(e){var n,t,i,r=function RC(e){var n=(0,v.VO)(e.attributes);return(0,v.hX)(n,function(t){return(0,v.FX)(la,t.type)})}(e);try{for(var a=(0,g.XA)(r),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear&&"cat"!==jv(l,(0,v.U2)(e.scaleDefs,l.field),s.type,e.type)){i=l;break}}}catch(d){n={error:d}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}var f=e.getXScale(),p=e.getYScale();return i||p||f}function Ip(e,n,t){if(0===n.length)return null;var r=t.type,i=t.getXScale(),a=t.getYScale(),o=i.field,s=a.field,l=null;if("heatmap"===r||"point"===r){for(var h=t.coordinate.invert(e),f=i.invert(h.x),p=a.invert(h.y),d=1/0,y=0;y(1+a)/2&&(l=o),r.translate(r.invert(l))}(e,t),E=C[nn][o],tt=S[nn][o],it=a.isLinear&&(0,v.kJ)(C[nn][s]);if((0,v.kJ)(E)){for(y=0;y=b){if(!it){l=wt;break}(0,v.kJ)(l)||(l=[]),l.push(wt)}(0,v.kJ)(l)&&(l=Ep(l,e,t))}else{var yt=void 0;if(i.isLinear||"timeCat"===i.type){if((b>i.translate(tt)||bi.max||bMath.abs(i.translate(yt[nn][o])-b)&&(S=yt)}var ze=zC(t.getXScale());return!l&&Math.abs(i.translate(S[nn][o])-b)<=ze/2&&(l=S),l}function uu(e,n,t,r){var i,a;void 0===t&&(t=""),void 0===r&&(r=!1);var f,p,o=e[nn],s=function BC(e,n,t){var i=n.getAttribute("position").getFields(),a=n.scales,o=(0,v.mf)(t)||!t?i[0]:t,s=a[o],l=s?s.getText(e[o]):e[o]||o;return(0,v.mf)(t)?t(l,e):l}(o,n,t),l=n.tooltipOption,c=n.theme.defaultColor,h=[];function d(wt,yt){(r||!(0,v.UM)(yt)&&""!==yt)&&h.push({title:s,data:o,mappingData:e,name:wt,value:yt,color:e.color||c,marker:!0})}if((0,v.Kn)(l)){var y=l.fields,m=l.callback;if(m){var x=y.map(function(wt){return e[nn][wt]}),M=m.apply(void 0,(0,g.ev)([],(0,g.CR)(x),!1)),C=(0,g.pi)({data:e[nn],mappingData:e,title:s,color:e.color||c,marker:!0},M);h.push(C)}else{var S=n.scales;try{for(var b=(0,g.XA)(y),E=b.next();!E.done;E=b.next()){var W=E.value;if(!(0,v.UM)(o[W])){var tt=S[W];d(f=co(tt),p=tt.getText(o[W]))}}}catch(wt){i={error:wt}}finally{try{E&&!E.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}}}else{var it=kp(n);p=function NC(e,n){var r=e[n.field];return(0,v.kJ)(r)?r.map(function(a){return n.getText(a)}).join("-"):n.getText(r)}(o,it),f=function VC(e,n){var t,r=n.getGroupScales();return r.length&&(t=r[0]),t?t.getText(e[t.field]):co(kp(n))}(o,n),d(f,p)}return h}function Dp(e,n,t,r){var i,a,o=r.showNil,s=[],l=e.dataArray;if(!(0,v.xb)(l)){e.sort(l);try{for(var c=(0,g.XA)(l),h=c.next();!h.done;h=c.next()){var p=Ip(n,h.value,e);if(p){var d=e.getElementId(p);if("heatmap"===e.type||e.elementsMap[d].visible){var m=uu(p,e,t,o);m.length&&s.push(m)}}}}catch(x){i={error:x}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}}return s}function Lp(e,n,t,r){var i=r.showNil,a=[],s=e.container.getShape(n.x,n.y);if(s&&s.get("visible")&&s.get("origin")){var c=uu(s.get("origin").mappingData,e,t,i);c.length&&a.push(c)}return a}function hu(e,n,t){var r,i,a=[],o=e.geometries,s=t.shared,l=t.title,c=t.reversed;try{for(var h=(0,g.XA)(o),f=h.next();!f.done;f=h.next()){var p=f.value;if(p.visible&&!1!==p.tooltipOption){var d=p.type,y=void 0;(y=["point","edge","polygon"].includes(d)?Lp(p,n,l,t):["area","line","path","heatmap"].includes(d)||!1!==s?Dp(p,n,l,t):Lp(p,n,l,t)).length&&(c&&y.reverse(),a.push(y))}}}catch(m){r={error:m}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return a}function fu(e){void 0===e&&(e=0);var n=(0,v.kJ)(e)?e:[e];switch(n.length){case 0:n=[0,0,0,0];break;case 1:n=new Array(4).fill(n[0]);break;case 2:n=(0,g.ev)((0,g.ev)([],(0,g.CR)(n),!1),(0,g.CR)(n),!1);break;case 3:n=(0,g.ev)((0,g.ev)([],(0,g.CR)(n),!1),[n[1]],!1);break;default:n=n.slice(0,4)}return n}var zs={};function Di(e,n){zs[e]=n}function GC(e){return zs[e]}var ZC=function(){function e(n){this.option=this.wrapperOption(n)}return e.prototype.update=function(n){return this.option=this.wrapperOption(n),this},e.prototype.hasAction=function(n){return(0,v.G)(this.option.actions,function(r){return r[0]===n})},e.prototype.create=function(n,t){var r=this.option,i=r.type,o="theta"===i,s=(0,g.pi)({start:n,end:t},r.cfg),l=function(e){return _v[e.toLowerCase()]}(o?"polar":i);return this.coordinate=new l(s),this.coordinate.type=i,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(n,t){return this.coordinate.update({start:n,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(n){return this.option.actions.push(["rotate",n]),this},e.prototype.reflect=function(n){return this.option.actions.push(["reflect",n]),this},e.prototype.scale=function(n,t){return this.option.actions.push(["scale",n,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(n){return(0,g.pi)({type:"rect",actions:[],cfg:{}},n)},e.prototype.execActions=function(n){var t=this;(0,v.S6)(this.option.actions,function(i){var a,o=(0,g.CR)(i),s=o[0],l=o.slice(1);((0,v.UM)(n)||n.includes(s))&&(a=t.coordinate)[s].apply(a,(0,g.ev)([],(0,g.CR)(l),!1))})},e}();const WC=ZC;var XC=function(){function e(n,t,r){this.view=n,this.gEvent=t,this.data=r,this.type=t.type}return e.fromData=function(n,t,r){return new e(n,new bn.Event(t,{}),r)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}();const un=XC;function $C(e){var n=e.getController("axis"),t=e.getController("legend"),r=e.getController("annotation");[n,e.getController("slider"),e.getController("scrollbar"),t,r].forEach(function(o){o&&o.layout()})}var JC=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(n,t,r,i){var a=r,o=this.getScaleMeta(i);if(0===t.length&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=(0,v.b$)(l,o.scaleDef,r)}var c=function JM(e,n,t){var r=n||[];if((0,v.hj)(e)||(0,v.UM)((0,v.Wx)(r,e))&&(0,v.xb)(t))return new(Oc("identity"))({field:e.toString(),values:[e]});var a=(0,v.I)(r,e),o=(0,v.U2)(t,"type",function $M(e){var n="linear";return XM.test(e)?n="timeCat":(0,v.HD)(e)&&(n="cat"),n}(a[0]));return new(Oc(o))((0,g.pi)({field:e,values:a},t))}(n,t,a);return this.cacheScale(c,r,i),c},e.prototype.sync=function(n,t){var r=this;this.syncScales.forEach(function(i,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];(0,v.S6)(i,function(c){var h=r.getScale(c);s=(0,v.hj)(h.max)?Math.max(s,h.max):s,o=(0,v.hj)(h.min)?Math.min(o,h.min):o,(0,v.S6)(h.values,function(f){l.includes(f)||l.push(f)})}),(0,v.S6)(i,function(c){var h=r.getScale(c);if(h.isContinuous)h.change({min:o,max:s,values:l});else if(h.isCategory){var f=h.range,p=r.getScaleMeta(c);l&&!(0,v.U2)(p,["scaleDef","range"])&&(f=Kv((0,v.b$)({},h,{values:l}),n,t)),h.change({values:l,range:f})}})})},e.prototype.cacheScale=function(n,t,r){var i=this.getScaleMeta(r);i&&i.scale.type===n.type?(function QM(e,n){if("identity"!==e.type&&"identity"!==n.type){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);e.change(t)}}(i.scale,n),i.scaleDef=t):this.scales.set(r,i={key:r,scale:n,scaleDef:t});var a=this.getSyncKey(i);if(i.syncKey=a,this.removeFromSyncScales(r),a){var o=this.syncScales.get(a);o||this.syncScales.set(a,o=[]),o.push(r)}},e.prototype.getScale=function(n){var t=this.getScaleMeta(n);if(!t){var r=(0,v.Z$)(n.split("-")),i=this.syncScales.get(r);i&&i.length&&(t=this.getScaleMeta(i[0]))}return t&&t.scale},e.prototype.deleteScale=function(n){var t=this.getScaleMeta(n);if(t){var i=this.syncScales.get(t.syncKey);if(i&&i.length){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}}this.scales.delete(n)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(n){var t=this;this.syncScales.forEach(function(r,i){var a=r.indexOf(n);if(-1!==a)return r.splice(a,1),0===r.length&&t.syncScales.delete(i),!1})},e.prototype.getSyncKey=function(n){var i=n.scale.field,a=(0,v.U2)(n.scaleDef,["sync"]);return!0===a?i:!1===a?void 0:a},e.prototype.getScaleMeta=function(n){return this.scales.get(n)},e}(),Bs=function(){function e(n,t,r,i){void 0===n&&(n=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),this.top=n,this.right=t,this.bottom=r,this.left=i}return e.instance=function(n,t,r,i){return void 0===n&&(n=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0),new e(n,t,r,i)},e.prototype.max=function(n){var t=(0,g.CR)(n,4),i=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,t[0]),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(n){var t=(0,g.CR)(n,4),i=t[1],a=t[2],o=t[3];return this.top+=t[0],this.right+=i,this.bottom+=a,this.left+=o,this},e.prototype.inc=function(n,t){var r=n.width,i=n.height;switch(t){case ue.TOP:case ue.TOP_LEFT:case ue.TOP_RIGHT:this.top+=i;break;case ue.RIGHT:case ue.RIGHT_TOP:case ue.RIGHT_BOTTOM:this.right+=r;break;case ue.BOTTOM:case ue.BOTTOM_LEFT:case ue.BOTTOM_RIGHT:this.bottom+=i;break;case ue.LEFT:case ue.LEFT_TOP:case ue.LEFT_BOTTOM:this.left+=r}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,g.ev)([void 0],(0,g.CR)(this.getPadding()),!1)))},e}();function qC(e,n,t){var r=t.instance();n.forEach(function(i){i.autoPadding=r.max(i.autoPadding.getPadding())})}var Op=function(e){function n(t){var r=e.call(this,{visible:t.visible})||this;r.views=[],r.geometries=[],r.controllers=[],r.interactions={},r.limitInPlot=!1,r.options={data:[],animate:!0},r.usedControllers=function HC(){return Object.keys(zs)}(),r.scalePool=new JC,r.layoutFunc=$C,r.isPreMouseInPlot=!1,r.isDataChanged=!1,r.isCoordinateChanged=!1,r.createdScaleKeys=new Map,r.onCanvasEvent=function(S){var b=S.name;if(!b.includes(":")){var E=r.createViewEvent(S);r.doPlotEvent(E),r.emit(b,E)}},r.onDelegateEvents=function(S){var b=S.name;if(b.includes(":")){var E=r.createViewEvent(S);r.emit(b,E)}};var i=t.id,a=void 0===i?(0,v.EL)("view"):i,s=t.canvas,l=t.backgroundGroup,c=t.middleGroup,h=t.foregroundGroup,f=t.region,p=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=t.padding,y=t.appendPadding,m=t.theme,x=t.options,M=t.limitInPlot,C=t.syncViewPadding;return r.parent=t.parent,r.canvas=s,r.backgroundGroup=l,r.middleGroup=c,r.foregroundGroup=h,r.region=p,r.padding=d,r.appendPadding=y,r.options=(0,g.pi)((0,g.pi)({},r.options),x),r.limitInPlot=M,r.id=a,r.syncViewPadding=C,r.themeObject=(0,v.Kn)(m)?(0,v.b$)({},vo("default"),Ps(m)):vo(m),r.init(),r}return(0,g.ZT)(n,e),n.prototype.setLayout=function(t){this.layoutFunc=t},n.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},n.prototype.render=function(t,r){void 0===t&&(t=!1),this.emit(Ue.BEFORE_RENDER,un.fromData(this,Ue.BEFORE_RENDER,r)),this.paint(t),this.emit(Ue.AFTER_RENDER,un.fromData(this,Ue.AFTER_RENDER,r)),!1===this.visible&&this.changeVisible(!1)},n.prototype.clear=function(){var t=this;this.emit(Ue.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var r=this.geometries,i=0;i');yt.appendChild(Ut);var ee=Df(yt,l,a,o),me=function Um(e){var n=Ff[e];if(!n)throw new Error("G engine '".concat(e,"' is not exist, please register it at first."));return n}(p),_e=new me.Canvas((0,g.pi)({container:Ut,pixelRatio:d,localRefresh:m,supportCSSTransform:S},ee));return(r=e.call(this,{parent:null,canvas:_e,backgroundGroup:_e.addGroup({zIndex:1}),middleGroup:_e.addGroup({zIndex:2}),foregroundGroup:_e.addGroup({zIndex:3}),padding:c,appendPadding:h,visible:M,options:W,limitInPlot:tt,theme:it,syncViewPadding:wt})||this).onResize=(0,v.Ds)(function(){r.forceFit()},300),r.ele=yt,r.canvas=_e,r.width=ee.width,r.height=ee.height,r.autoFit=l,r.localRefresh=m,r.renderer=p,r.wrapperElement=Ut,r.updateCanvasStyle(),r.bindAutoFit(),r.initDefaultInteractions(E),r}return(0,g.ZT)(n,e),n.prototype.initDefaultInteractions=function(t){var r=this;(0,v.S6)(t,function(i){r.interaction(i)})},n.prototype.aria=function(t){var r="aria-label";!1===t?this.ele.removeAttribute(r):this.ele.setAttribute(r,t.label)},n.prototype.changeSize=function(t,r){return this.width===t&&this.height===r||(this.emit(Ue.BEFORE_CHANGE_SIZE),this.width=t,this.height=r,this.canvas.changeSize(t,r),this.render(!0),this.emit(Ue.AFTER_CHANGE_SIZE)),this},n.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),function Gm(e){var n=e.parentNode;n&&n.removeChild(e)}(this.wrapperElement),this.wrapperElement=null},n.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},n.prototype.forceFit=function(){if(!this.destroyed){var t=Df(this.ele,!0,this.width,this.height);this.changeSize(t.width,t.height)}},n.prototype.updateCanvasStyle=function(){Ln(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},n.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},n.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},n}(Op);const KC=jC;var ma=function(){function e(n){this.visible=!0,this.components=[],this.view=n}return e.prototype.clear=function(n){(0,v.S6)(this.components,function(t){t.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(n){this.visible!==n&&(this.components.forEach(function(t){n?t.component.show():t.component.hide()}),this.visible=n)},e}(),ew=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},n.prototype.render=function(){},n.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var r=this.view,i=this.getTooltipItems(t);if(!i.length)return void this.hideTooltip();var a=this.getTitle(i),o={x:i[0].x,y:i[0].y};r.emit("tooltip:show",un.fromData(r,"tooltip:show",(0,g.pi)({items:i,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,c=s.showMarkers,h=s.showCrosshairs,f=s.showContent,p=s.marker,d=this.items;if((0,v.Xy)(this.title,a)&&(0,v.Xy)(d,i)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(r.emit("tooltip:change",un.fromData(r,"tooltip:change",(0,g.pi)({items:i,title:a},t))),((0,v.mf)(f)?f(i):f)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,v.CD)({},s,{items:this.getItemsAfterProcess(i),title:a},l?t:{})),this.tooltip.show()),c&&this.renderTooltipMarkers(i,p)),this.items=i,this.title=a,h){var m=(0,v.U2)(s,["crosshairs","follow"],!1);this.renderCrosshairs(m?t:o,s)}}},n.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var r=this.tooltipMarkersGroup;r&&r.hide();var i=this.xCrosshair,a=this.yCrosshair;i&&i.hide(),a&&a.hide();var o=this.tooltip;o&&o.hide(),this.view.emit("tooltip:hide",un.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},n.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},n.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},n.prototype.isTooltipLocked=function(){return this.isLocked},n.prototype.clear=function(){var t=this,r=t.tooltip,i=t.xCrosshair,a=t.yCrosshair,o=t.tooltipMarkersGroup;r&&(r.hide(),r.clear()),i&&i.clear(),a&&a.clear(),o&&o.clear(),r?.get("customContent")&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},n.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},n.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},n.prototype.changeVisible=function(t){if(this.visible!==t){var r=this,i=r.tooltip,a=r.tooltipMarkersGroup,o=r.xCrosshair,s=r.yCrosshair;t?(i&&i.show(),a&&a.show(),o&&o.show(),s&&s.show()):(i&&i.hide(),a&&a.hide(),o&&o.hide(),s&&s.hide()),this.visible=t}},n.prototype.getTooltipItems=function(t){var r,i,a,o,s,l,c=this.findItemsFromView(this.view,t);if(c.length){c=(0,v.xH)(c);try{for(var h=(0,g.XA)(c),f=h.next();!f.done;f=h.next()){var p=f.value;try{for(var d=(a=void 0,(0,g.XA)(p)),y=d.next();!y.done;y=d.next()){var m=y.value,x=m.mappingData,M=x.x,C=x.y;m.x=(0,v.kJ)(M)?M[M.length-1]:M,m.y=(0,v.kJ)(C)?C[C.length-1]:C}}catch(yt){a={error:yt}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(yt){r={error:yt}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}if(!1===this.getTooltipCfg().shared&&c.length>1){var b=c[0],E=Math.abs(t.y-b[0].y);try{for(var W=(0,g.XA)(c),tt=W.next();!tt.done;tt=W.next()){var it=tt.value,wt=Math.abs(t.y-it[0].y);wt<=E&&(b=it,E=wt)}}catch(yt){s={error:yt}}finally{try{tt&&!tt.done&&(l=W.return)&&l.call(W)}finally{if(s)throw s.error}}c=[b]}return function tw(e){for(var n=[],t=function(i){var a=e[i];(0,v.sE)(n,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title})||n.push(a)},r=0;r'+s+"":s}})},n.prototype.getTitle=function(t){var r=t[0].title||t[0].name;return this.title=r,r},n.prototype.renderTooltip=function(){var t=this.view.getCanvas(),r={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},i=this.getTooltipCfg(),a=new bs((0,g.pi)((0,g.pi)({parent:t.get("el").parentNode,region:r},i),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},n.prototype.renderTooltipMarkers=function(t,r){var i,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var c=(0,g.XA)(t),h=c.next();!h.done;h=c.next()){var f=h.value,p=f.x,d=f.y;if(l||o?.getClip()){var y=ru(s.getCoordinate()),m=y.type,x=y.attrs;o?.setClip({type:m,attrs:x})}else o?.setClip(void 0);var M=this.view.getTheme(),C=(0,v.U2)(M,["components","tooltip","marker"],{}),S=(0,g.pi)((0,g.pi)({fill:f.color,symbol:"circle",shadowColor:f.color},(0,v.mf)(r)?(0,g.pi)((0,g.pi)({},C),r(f)):r),{x:p,y:d});o.addShape("marker",{attrs:S})}}catch(b){i={error:b}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}},n.prototype.renderCrosshairs=function(t,r){var i=(0,v.U2)(r,["crosshairs","type"],"x");"x"===i?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,r)):"y"===i?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,r)):"xy"===i&&(this.renderXCrosshairs(t,r),this.renderYCrosshairs(t,r))},n.prototype.renderXCrosshairs=function(t,r){var a,o,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect)i.isTransposed?(a={x:i.start.x,y:t.y},o={x:i.end.x,y:t.y}):(a={x:t.x,y:i.end.y},o={x:t.x,y:i.start.y});else{var s=va(i,t),l=i.getCenter(),c=i.getRadius();o=yn(l.x,l.y,c,s),a=l}var h=(0,v.b$)({start:a,end:o,container:this.getTooltipCrosshairsGroup()},(0,v.U2)(r,"crosshairs",{}),this.getCrosshairsText("x",t,r));delete h.type;var f=this.xCrosshair;f?f.update(h):(f=new Rv(h)).init(),f.render(),f.show(),this.xCrosshair=f},n.prototype.renderYCrosshairs=function(t,r){var a,o,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect){var s=void 0,l=void 0;i.isTransposed?(s={x:t.x,y:i.end.y},l={x:t.x,y:i.start.y}):(s={x:i.start.x,y:t.y},l={x:i.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:i.getCenter(),radius:Ts(i,t),startAngle:i.startAngle,endAngle:i.endAngle},o="Circle";delete(a=(0,v.b$)({container:this.getTooltipCrosshairsGroup()},a,(0,v.U2)(r,"crosshairs",{}),this.getCrosshairsText("y",t,r))).type;var c=this.yCrosshair;c?i.isRect&&"circle"===c.get("type")||!i.isRect&&"line"===c.get("type")?(c=new kt[o](a)).init():c.update(a):(c=new kt[o](a)).init(),c.render(),c.show(),this.yCrosshair=c},n.prototype.getCrosshairsText=function(t,r,i){var a=(0,v.U2)(i,["crosshairs","text"]),o=(0,v.U2)(i,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),c=s[0],h=l.getXScale(),f=l.getYScales()[0],p=void 0,d=void 0;if(o){var y=this.view.getCoordinate().invert(r);p=h.invert(y.x),d=f.invert(y.y)}else p=c.data[h.field],d=c.data[f.field];var m="x"===t?p:d;return(0,v.mf)(a)?a=a(t,m,s,r):a.content=m,{text:a}}},n.prototype.getGuideGroup=function(){return this.guideGroup||(this.guideGroup=this.view.foregroundGroup.addGroup({name:"tooltipGuide",capture:!1})),this.guideGroup},n.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},n.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},n.prototype.findItemsFromView=function(t,r){var i,a;if(!1===t.getOptions().tooltip)return[];var s=hu(t,r,this.getTooltipCfg());try{for(var l=(0,g.XA)(t.views),c=l.next();!c.done;c=l.next())s=s.concat(this.findItemsFromView(c.value,r))}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return s},n.prototype.getViewWithGeometry=function(t){var r=this;return t.geometries.length?t:(0,v.sE)(t.views,function(i){return r.getViewWithGeometry(i)})},n.prototype.getItemsAfterProcess=function(t){return(this.getTooltipCfg().customItems||function(a){return a})(t)},n}(ma);const Pp=ew;var zp={};function Bp(e){return zp[e.toLowerCase()]}function Qn(e,n){zp[e.toLowerCase()]=n}var xa={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},nw={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Rp={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var n;return e.isRect?n=e.isTransposed?"grow-in-x":"grow-in-y":(n="grow-in-xy",e.isPolar&&e.isTransposed&&(n="wave-in")),{animation:n}},schema:function(e){return{animation:e.isRect?e.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Np(e,n,t){var r=nw[e];return r&&((0,v.mf)(r)&&(r=r(n)),r=(0,v.b$)({},xa,r),t)?r[t]:r}function Ma(e,n,t){var r=(0,v.U2)(e.get("origin"),"data",nn),i=n.animation,a=function rw(e,n){return{delay:(0,v.mf)(e.delay)?e.delay(n):e.delay,easing:(0,v.mf)(e.easing)?e.easing(n):e.easing,duration:(0,v.mf)(e.duration)?e.duration(n):e.duration,callback:e.callback,repeat:e.repeat}}(n,r);if(i){var o=Bp(i);o&&o(e,a,t)}else e.animate(t.toAttrs,a)}var vu="element-background",aw=function(e){function n(t){var r=e.call(this,t)||this;r.labelShape=[],r.states=[];var a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,c=void 0===l||l;return r.shapeFactory=t.shapeFactory,r.container=a,r.offscreenGroup=o,r.visible=c,r.elementIndex=s,r}return(0,g.ZT)(n,e),n.prototype.draw=function(t,r){void 0===r&&(r=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,r),!1===this.visible&&this.changeVisible(!1)},n.prototype.update=function(t){var i=this.shapeFactory,a=this.shape;if(a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=i.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},n.prototype.destroy=function(){var r=this.shapeFactory,i=this.shape;if(i){var a=this.getAnimateCfg("leave");a?Ma(i,a,{coordinate:r.coordinate,toAttrs:(0,g.pi)({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},n.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(r){r.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(r){r.hide()}))},n.prototype.setState=function(t,r){var i=this,a=i.states,o=i.shapeFactory,s=i.model,l=i.shape,c=i.shapeType,h=a.indexOf(t);if(r){if(h>-1)return;a.push(t),("active"===t||"selected"===t)&&l?.toFront()}else{if(-1===h)return;if(a.splice(h,1),"active"===t||"selected"===t){var f=this.geometry,y=f.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;f.sortZIndex?l.setZIndex(y):l.set("zIndex",y)}}var m=o.drawShape(c,s,this.getOffscreenGroup());this.syncShapeStyle(l,m,a.length?a:["reset"],null),m.remove(!0);var x={state:t,stateStatus:r,element:this,target:this.container};this.container.emit("statechange",x),bv(this.shape,"statechange",x)},n.prototype.clearStates=function(){var t=this;(0,v.S6)(this.states,function(i){t.setState(i,!1)}),this.states=[]},n.prototype.hasState=function(t){return this.states.includes(t)},n.prototype.getStates=function(){return this.states},n.prototype.getData=function(){return this.data},n.prototype.getModel=function(){return this.model},n.prototype.getBBox=function(){var r=this.shape,i=this.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return r&&(a=r.getCanvasBBox()),i&&i.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},n.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,a=t.shapeFactory;this.statesStyle=(0,v.b$)({},a.theme[t.shapeType]||a.theme[a.defaultShapeType],t.geometry.stateOption)}return this.statesStyle},n.prototype.getStateStyle=function(t,r){var i=this.getStatesStyle(),a=(0,v.U2)(i,[t,"style"],{}),o=a[r]||a;return(0,v.mf)(o)?o(this):o},n.prototype.getAnimateCfg=function(t){var r=this,i=this.animate;if(i){var a=i[t];return a&&(0,g.pi)((0,g.pi)({},a),{callback:function(){var o;(0,v.mf)(a.callback)&&a.callback(),null===(o=r.geometry)||void 0===o||o.emit(Si.AFTER_DRAW_ANIMATE)}})}return null},n.prototype.drawShape=function(t,r){var i;void 0===r&&(r=!1);var a=this,o=a.shapeFactory;if(this.shape=o.drawShape(a.shapeType,t,a.container),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?(0,v.HD)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=this.getAnimateCfg(r?"enter":"appear");f&&(null===(i=this.geometry)||void 0===i||i.emit(Si.BEFORE_DRAW_ANIMATE),Ma(this.shape,f,{coordinate:o.coordinate,toAttrs:(0,g.pi)({},this.shape.attr())}))}},n.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},n.prototype.setShapeInfo=function(t,r){var i=this;t.cfg.origin=r,t.cfg.element=this,t.isGroup()&&t.get("children").forEach(function(o){i.setShapeInfo(o,r)})},n.prototype.syncShapeStyle=function(t,r,i,a,o){var l,s=this;if(void 0===i&&(i=[]),void 0===o&&(o=0),t&&r){var c=t.get("clipShape"),h=r.get("clipShape");if(this.syncShapeStyle(c,h,i,a),t.isGroup())for(var f=t.get("children"),p=r.get("children"),d=0;d=o[c]?1:0,p=h>Math.PI?1:0,d=t.convert(s),y=Ts(t,d);if(y>=.5)if(h===2*Math.PI){var x=t.convert({x:(s.x+o.x)/2,y:(s.y+o.y)/2});l.push(["A",y,y,0,p,f,x.x,x.y]),l.push(["A",y,y,0,p,f,d.x,d.y])}else l.push(["A",y,y,0,p,f,d.x,d.y]);return l}(r,i,e)):t.push(au(s,e));break;case"a":t.push(op(s,e));break;default:t.push(s)}}),function lC(e){(0,v.S6)(e,function(n,t){if("a"===n[0].toLowerCase()){var i=e[t-1],a=e[t+1];a&&"a"===a[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&a&&"l"===a[0].toLowerCase()&&(a[0]="M")}})}(t),t}(n,t):function uC(e,n){var t=[];return(0,v.S6)(n,function(r){switch(r[0].toLowerCase()){case"m":case"l":case"c":t.push(au(r,e));break;case"a":t.push(op(r,e));break;default:t.push(r)}}),t}(n,t),t},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var n=this.coordinate;return e.map(function(t){return n.convert(t)})},draw:function(e,n){}},pu={};function ci(e,n){var t=(0,v.jC)(e),r=(0,g.pi)((0,g.pi)((0,g.pi)({},lw),n),{geometryType:e});return pu[t]=r,r}function Qe(e,n,t){var r=(0,v.jC)(e),i=pu[r],a=(0,g.pi)((0,g.pi)({},cw),t);return i[n]=a,a}function Hp(e){var n=(0,v.jC)(e);return pu[n]}function Gp(e,n){return(0,v.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(t){return!(0,v.Xy)(e[t],n[t])})}function go(e){return(0,v.kJ)(e)?e:e.split("*")}function Zp(e,n){for(var t=[],r=[],i=[],a=new Map,o=0;o=0?r:i<=0?i:0},n.prototype.createAttrOption=function(t,r,i){if((0,v.UM)(r)||(0,v.Kn)(r))(0,v.Kn)(r)&&(0,v.Xy)(Object.keys(r),["values"])?(0,v.t8)(this.attributeOption,t,{fields:r.values}):(0,v.t8)(this.attributeOption,t,r);else{var a={};(0,v.hj)(r)?a.values=[r]:a.fields=go(r),i&&((0,v.mf)(i)?a.callback=i:a.values=i),(0,v.t8)(this.attributeOption,t,a)}},n.prototype.initAttributes=function(){var t=this,r=this,i=r.attributes,a=r.attributeOption,o=r.theme,s=r.shapeType;this.groupScales=[];var l={},c=function(p){if(a.hasOwnProperty(p)){var d=a[p];if(!d)return{value:void 0};var y=(0,g.pi)({},d),m=y.callback,x=y.values,M=y.fields,S=(void 0===M?[]:M).map(function(E){var W=t.scales[E];return!l[E]&&la.includes(p)&&"cat"===jv(W,(0,v.U2)(t.scaleDefs,E),p,t.type)&&(t.groupScales.push(W),l[E]=!0),W});y.scales=S,"position"!==p&&1===S.length&&"identity"===S[0].type?y.values=S[0].values:!m&&!x&&("size"===p?y.values=o.sizes:"shape"===p?y.values=o.shapes[s]||[]:"color"===p&&(y.values=S.length?S[0].values.length<=10?o.colors10:o.colors20:o.colors10));var b=Cv(p);i[p]=new b(y)}};for(var h in a){var f=c(h);if("object"==typeof f)return f.value}},n.prototype.processData=function(t){var r,i;this.hasSorted=!1;for(var o=this.getAttribute("position").scales.filter(function(tt){return tt.isCategory}),s=this.groupData(t),l=[],c=0,h=s.length;cs&&(s=f)}var p=this.scaleDefs,d={};ot.max&&!(0,v.U2)(p,[a,"max"])&&(d.max=s),t.change(d)},n.prototype.beforeMapping=function(t){var r=t;if(this.sortable&&this.sort(r),this.generatePoints)for(var i=0,a=r.length;i1)for(var p=0;p0})}function Xp(e,n,t){var r=t.data,i=t.origin,a=t.animateCfg,o=t.coordinate,s=(0,v.U2)(a,"update");e.set("data",r),e.set("origin",i),e.set("animateCfg",a),e.set("coordinate",o),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach(function(l,c){var h=n.getChildByIndex(c);if(h){l.set("data",r),l.set("origin",i),l.set("animateCfg",a),l.set("coordinate",o);var f=qv(l,h);s?Ma(l,s,{toAttrs:f,coordinate:o}):l.attr(f),h.isGroup()&&Xp(l,h,t)}else e.removeChild(l),l.remove(!0)}),(0,v.S6)(n.getChildren(),function(l,c){c>=e.getCount()&&(l.destroyed||e.add(l))})}var gw=function(){function e(n){this.shapesMap={};var r=n.container;this.layout=n.layout,this.container=r}return e.prototype.render=function(n,t,r){return void 0===r&&(r=!1),(0,g.mG)(this,void 0,void 0,function(){var i,a,o,s,l,c,h,f,p=this;return(0,g.Jh)(this,function(d){switch(d.label){case 0:if(i={},a=this.createOffscreenGroup(),!n.length)return[3,2];try{for(o=(0,g.XA)(n),s=o.next();!s.done;s=o.next())(l=s.value)&&(i[l.id]=this.renderLabel(l,a))}catch(y){h={error:y}}finally{try{s&&!s.done&&(f=o.return)&&f.call(o)}finally{if(h)throw h.error}}return[4,this.doLayout(n,t,i)];case 1:d.sent(),this.renderLabelLine(n,i),this.renderLabelBackground(n,i),this.adjustLabel(n,i),d.label=2;case 2:return c=this.shapesMap,(0,v.S6)(i,function(y,m){if(y.destroyed)delete i[m];else{if(c[m]){var x=y.get("data"),M=y.get("origin"),C=y.get("coordinate"),S=y.get("animateCfg"),b=c[m];Xp(b,i[m],{data:x,origin:M,animateCfg:S,coordinate:C}),i[m]=b}else{if(p.container.destroyed)return;p.container.add(y);var E=(0,v.U2)(y.get("animateCfg"),r?"enter":"appear");E&&Ma(y,E,{toAttrs:(0,g.pi)({},y.attr()),coordinate:y.get("coordinate")})}delete c[m]}}),(0,v.S6)(c,function(y){var m=(0,v.U2)(y.get("animateCfg"),"leave");m?Ma(y,m,{toAttrs:null,coordinate:y.get("coordinate")}):y.remove(!0)}),this.shapesMap=i,a.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(n,t){var d,o=n.mappingData,s=n.coordinate,l=n.animate,c=n.content,f={id:n.id,elementId:n.elementId,capture:n.capture,data:n.data,origin:(0,g.pi)((0,g.pi)({},o),{data:o[nn]}),coordinate:s},p=t.addGroup((0,g.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,v.b$)({},this.animate,l)},f));if(c.isGroup&&c.isGroup()||c.isShape&&c.isShape()){var y=c.getCanvasBBox(),m=y.width,x=y.height,M=(0,v.U2)(n,"textAlign","left"),C=n.x;"center"===M?C-=m/2:("right"===M||"end"===M)&&(C-=m),yo(c,C,n.y-x/2),d=c,p.add(c)}else{var b=(0,v.U2)(n,["style","fill"]);d=p.addShape("text",(0,g.pi)({attrs:(0,g.pi)((0,g.pi)({x:n.x,y:n.y,textAlign:n.textAlign,textBaseline:(0,v.U2)(n,"textBaseline","middle"),text:n.content},n.style),{fill:(0,v.Ft)(b)?n.color:b})},f))}return n.rotate&&du(d,n.rotate),p},e.prototype.doLayout=function(n,t,r){return(0,g.mG)(this,void 0,void 0,function(){var i,a=this;return(0,g.Jh)(this,function(o){switch(o.label){case 0:return this.layout?(i=(0,v.kJ)(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map(function(s){var l=function sw(e){return Yp[e.toLowerCase()]}((0,v.U2)(s,"type",""));if(l){var c=[],h=[];return(0,v.S6)(r,function(f,p){c.push(f),h.push(t[f.get("elementId")])}),l(n,c,h,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(n,t){(0,v.S6)(n,function(r){var i=(0,v.U2)(r,"coordinate");if(r&&i){var a=i.getCenter(),o=i.getRadius();if(r.labelLine){var s=(0,v.U2)(r,"labelLine",{}),l=r.id,c=s.path;if(!c){var h=yn(a.x,a.y,o,r.angle);c=[["M",h.x,h.y],["L",r.x,r.y]]}var f=t[l];f.destroyed||f.addShape("path",{capture:!1,attrs:(0,g.pi)({path:c,stroke:r.color?r.color:(0,v.U2)(r,["style","fill"],"#000"),fill:null},s.style),id:l,origin:r.mappingData,data:r.data,coordinate:r.coordinate})}}})},e.prototype.renderLabelBackground=function(n,t){(0,v.S6)(n,function(r){var i=(0,v.U2)(r,"coordinate"),a=(0,v.U2)(r,"background");if(a&&i){var o=r.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var c=Wp(s,r,a.padding),h=c.rotation,f=(0,g._T)(c,["rotation"]),p=s.addShape("rect",{attrs:(0,g.pi)((0,g.pi)({},f),a.style||{}),id:o,origin:r.mappingData,data:r.data,coordinate:r.coordinate});if(p.setZIndex(-1),h){var d=l.getMatrix();p.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},e.prototype.adjustLabel=function(n,t){(0,v.S6)(n,function(r){if(r){var a=t[r.id];if(!a.destroyed){var o=a.findAll(function(s){return"path"!==s.get("type")});(0,v.S6)(o,function(s){s&&(r.offsetX&&s.attr("x",s.attr("x")+r.offsetX),r.offsetY&&s.attr("y",s.attr("y")+r.offsetY))})}}})},e}();const yw=gw;function $p(e){var n=0;return(0,v.S6)(e,function(t){n+=t}),n/e.length}var mw=function(){function e(n){this.geometry=n}return e.prototype.getLabelItems=function(n){var t=this,r=[],i=this.getLabelCfgs(n);return(0,v.S6)(n,function(a,o){var s=i[o];if(!s||(0,v.UM)(a.x)||(0,v.UM)(a.y))r.push(null);else{var l=(0,v.kJ)(s.content)?s.content:[s.content];s.content=l;var c=l.length;(0,v.S6)(l,function(h,f){if((0,v.UM)(h)||""===h)r.push(null);else{var p=(0,g.pi)((0,g.pi)({},s),t.getLabelPoint(s,a,f));p.textAlign||(p.textAlign=t.getLabelAlign(p,f,c)),p.offset<=0&&(p.labelLine=null),r.push(p)}})}}),r},e.prototype.render=function(n,t){return void 0===t&&(t=!1),(0,g.mG)(this,void 0,void 0,function(){var r,i,a;return(0,g.Jh)(this,function(o){switch(o.label){case 0:return r=this.getLabelItems(n),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(r,a,t)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var n=this.labelsRenderer;n&&n.clear()},e.prototype.destroy=function(){var n=this.labelsRenderer;n&&n.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(n,t){var r=this.geometry,i=r.type,a=r.theme;return"polygon"===i||"interval"===i&&"middle"===t||n<0&&!["line","point","path"].includes(i)?(0,v.U2)(a,"innerLabels",{}):(0,v.U2)(a,"labels",{})},e.prototype.getThemedLabelCfg=function(n){var t=this.geometry,r=this.getDefaultLabelCfg(),i=t.type,a=t.theme;return"polygon"===i||n.offset<0&&!["line","point","path"].includes(i)?(0,v.b$)({},r,a.innerLabels,n):(0,v.b$)({},r,a.labels,n)},e.prototype.setLabelPosition=function(n,t,r,i){},e.prototype.getLabelOffset=function(n){var t=this.getCoordinate(),r=this.getOffsetVector(n);return t.isTransposed?r[0]:r[1]},e.prototype.getLabelOffsetPoint=function(n,t,r){var i=n.offset,o=this.getCoordinate().isTransposed,l=o?1:-1,c={x:0,y:0};return c[o?"x":"y"]=t>0||1===r?i*l:i*l*-1,c},e.prototype.getLabelPoint=function(n,t,r){var i=this.getCoordinate(),a=n.content.length;function o(x,M,C){void 0===C&&(C=!1);var S=x;return(0,v.kJ)(S)&&(S=1===n.content.length?C?$p(S):S.length<=2?S[x.length-1]:$p(S):S[M]),S}var s={content:n.content[r],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=(0,v.kJ)(t.shape)?t.shape[0]:t.shape,c="funnel"===l||"pyramid"===l;if("polygon"===this.geometry.type){var h=function UM(e,n){if((0,v.hj)(e)&&(0,v.hj)(n))return[e,n];if($v(e)||$v(n))return[Jv(e),Jv(n)];for(var a,s,t=-1,r=0,i=0,o=e.length-1,l=0;++t1&&0===t&&("right"===i?i="left":"left"===i&&(i="right"))}return i},e.prototype.getLabelId=function(n){var t=this.geometry,r=t.type,i=t.getXScale(),a=t.getYScale(),o=n[nn],s=t.getElementId(n);return"line"===r||"area"===r?s+=" ".concat(o[i.field]):"path"===r&&(s+=" ".concat(o[i.field],"-").concat(o[a.field])),s},e.prototype.getLabelsRenderer=function(){var n=this.geometry,i=n.canvasRegion,a=n.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new yw({container:n.labelsContainer,layout:(0,v.U2)(n.labelOption,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=i,s.animate=!!a&&Np("label",o),s},e.prototype.getLabelCfgs=function(n){var t=this,r=this.geometry,i=r.labelOption,a=r.scales,o=r.coordinate,l=i.fields,c=i.callback,h=i.cfg,f=l.map(function(d){return a[d]}),p=[];return(0,v.S6)(n,function(d,y){var M,m=d[nn],x=t.getLabelText(m,f);if(c){var C=l.map(function(tt){return m[tt]});if(M=c.apply(void 0,(0,g.ev)([],(0,g.CR)(C),!1)),(0,v.UM)(M))return void p.push(null)}var S=(0,g.pi)((0,g.pi)({id:t.getLabelId(d),elementId:t.geometry.getElementId(d),data:m,mappingData:d,coordinate:o},h),M);(0,v.mf)(S.position)&&(S.position=S.position(m,d,y));var b=t.getLabelOffset(S.offset||0),E=t.getDefaultLabelCfg(b,S.position);(S=(0,v.b$)({},E,S)).offset=t.getLabelOffset(S.offset||0);var W=S.content;(0,v.mf)(W)?S.content=W(m,d,y):(0,v.o8)(W)&&(S.content=x[0]),p.push(S)}),p},e.prototype.getLabelText=function(n,t){var r=[];return(0,v.S6)(t,function(i){var a=n[i.field];a=(0,v.kJ)(a)?a.map(function(o){return i.getText(o)}):i.getText(a),(0,v.UM)(a)||""===a?r.push(null):r.push(a)}),r},e.prototype.getOffsetVector=function(n){void 0===n&&(n=0);var t=this.getCoordinate(),r=0;return(0,v.hj)(n)&&(r=n),t.isTransposed?t.applyMatrix(r,0):t.applyMatrix(0,r)},e.prototype.getGeometryShapes=function(){var n=this.geometry,t={};return(0,v.S6)(n.elementsMap,function(r,i){t[i]=r.shape}),(0,v.S6)(n.getOffscreenGroup().getChildren(),function(r){var i=n.getElementId(r.get("origin").mappingData);t[i]=r}),t},e}();const Ns=mw;function gu(e,n,t){if(!e)return t;var r;if(e.callback&&e.callback.length>1){var i=Array(e.callback.length-1).fill("");r=e.mapping.apply(e,(0,g.ev)([n],(0,g.CR)(i),!1)).join("")}else r=e.mapping(n).join("");return r||t}var Li={hexagon:function(e,n,t){var r=t/2*Math.sqrt(3);return[["M",e,n-t],["L",e+r,n-t/2],["L",e+r,n+t/2],["L",e,n+t],["L",e-r,n+t/2],["L",e-r,n-t/2],["Z"]]},bowtie:function(e,n,t){var r=t-1.5;return[["M",e-t,n-r],["L",e+t,n+r],["L",e+t,n-r],["L",e-t,n+r],["Z"]]},cross:function(e,n,t){return[["M",e-t,n-t],["L",e+t,n+t],["M",e+t,n-t],["L",e-t,n+t]]},tick:function(e,n,t){return[["M",e-t/2,n-t],["L",e+t/2,n-t],["M",e,n-t],["L",e,n+t],["M",e-t/2,n+t],["L",e+t/2,n+t]]},plus:function(e,n,t){return[["M",e-t,n],["L",e+t,n],["M",e,n-t],["L",e,n+t]]},hyphen:function(e,n,t){return[["M",e-t,n],["L",e+t,n]]},line:function(e,n,t){return[["M",e,n-t],["L",e,n+t]]}},xw=["line","cross","tick","plus","hyphen"];function Jp(e){var n=e.symbol;(0,v.HD)(n)&&Li[n]&&(e.symbol=Li[n])}function yu(e){return e.startsWith(ue.LEFT)||e.startsWith(ue.RIGHT)?"vertical":"horizontal"}function Qp(e,n,t,r,i){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=n.getAttribute("color"),l=n.getAttribute("shape"),c=e.getTheme().defaultColor,h=n.coordinate.isPolar;return a.getTicks().map(function(f,p){var d,x=f.text,M=a.invert(f.value),C=0===e.filterFieldData(o,[(d={},d[o]=M,d)]).length;(0,v.S6)(e.views,function(tt){var it;tt.filterFieldData(o,[(it={},it[o]=M,it)]).length||(C=!0)});var S=gu(s,M,c),b=gu(l,M,"point"),E=n.getShapeMarker(b,{color:S,isInPolar:h}),W=i;return(0,v.mf)(W)&&(W=W(x,p,(0,g.pi)({name:x,value:M},(0,v.b$)({},r,E)))),function Cw(e,n){var t=e.symbol;if((0,v.HD)(t)&&-1!==xw.indexOf(t)){var r=(0,v.U2)(e,"style",{}),i=(0,v.U2)(r,"lineWidth",1);e.style=(0,v.b$)({},e.style,{lineWidth:i,stroke:r.stroke||r.fill||n,fill:null})}}(E=(0,v.b$)({},r,E,Un((0,g.pi)({},W),["style"])),S),W&&W.style&&(E.style=function Mw(e,n){return(0,v.mf)(n)?n(e):(0,v.b$)({},e,n)}(E.style,W.style)),Jp(E),{id:M,name:x,value:M,marker:E,unchecked:C}})}return[]}function qp(e,n){var t=(0,v.U2)(e,["components","legend"],{});return(0,v.b$)({},(0,v.U2)(t,["common"],{}),(0,v.b$)({},(0,v.U2)(t,[n],{})))}function mu(e){return!e&&(null==e||isNaN(e))}function jp(e){if((0,v.kJ)(e))return mu(e[1].y);var n=e.y;return(0,v.kJ)(n)?mu(n[0]):mu(n)}function Vs(e,n,t){if(void 0===n&&(n=!1),void 0===t&&(t=!0),!e.length||1===e.length&&!t)return[];if(n){for(var r=[],i=0,a=e.length;i=e&&i<=e+t&&a>=n&&a<=n+r}function mo(e,n){return!(n.minX>e.maxX||n.maxXe.maxY||n.maxY=0&&i<.5*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):.5*Math.PI<=i&&i1&&(t*=Math.sqrt(d),r*=Math.sqrt(d));var y=t*t*(p*p)+r*r*(f*f),m=y?Math.sqrt((t*t*(r*r)-y)/y):1;a===o&&(m*=-1),isNaN(m)&&(m=0);var x=r?m*t*p/r:0,M=t?m*-r*f/t:0,C=(s+c)/2+Math.cos(i)*x-Math.sin(i)*M,S=(l+h)/2+Math.sin(i)*x+Math.cos(i)*M,b=[(f-x)/t,(p-M)/r],E=[(-1*f-x)/t,(-1*p-M)/r],W=ld([1,0],b),tt=ld(b,E);return Cu(b,E)<=-1&&(tt=Math.PI),Cu(b,E)>=1&&(tt=0),0===o&&tt>0&&(tt-=2*Math.PI),1===o&&tt<0&&(tt+=2*Math.PI),{cx:C,cy:S,rx:ad(e,[c,h])?0:t,ry:ad(e,[c,h])?0:r,startAngle:W,endAngle:W+tt,xRotation:i,arcFlag:a,sweepFlag:o}}var Hs=Math.sin,Gs=Math.cos,wu=Math.atan2,Zs=Math.PI;function cd(e,n,t,r,i,a,o){var s=n.stroke,l=n.lineWidth,f=wu(r-a,t-i),p=new ku({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Gs(Zs/6)+","+10*Hs(Zs/6)+" L0,0 L"+10*Gs(Zs/6)+",-"+10*Hs(Zs/6),stroke:s,lineWidth:l}});p.translate(i,a),p.rotateAtPoint(i,a,f),e.set(o?"startArrowShape":"endArrowShape",p)}function ud(e,n,t,r,i,a,o){var c=n.stroke,h=n.lineWidth,f=o?n.startArrow:n.endArrow,p=f.d,d=f.fill,y=f.stroke,m=f.lineWidth,x=(0,g._T)(f,["d","fill","stroke","lineWidth"]),S=wu(r-a,t-i);p&&(i-=Gs(S)*p,a-=Hs(S)*p);var b=new ku({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,g.pi)((0,g.pi)({},x),{stroke:y||c,lineWidth:m||h,fill:d})});b.translate(i,a),b.rotateAtPoint(i,a,S),e.set(o?"startArrowShape":"endArrowShape",b)}function Pi(e,n,t,r,i){var a=wu(r-n,t-e);return{dx:Gs(a)*i,dy:Hs(a)*i}}function Su(e,n,t,r,i,a){"object"==typeof n.startArrow?ud(e,n,t,r,i,a,!0):n.startArrow?cd(e,n,t,r,i,a,!0):e.set("startArrowShape",null)}function _u(e,n,t,r,i,a){"object"==typeof n.endArrow?ud(e,n,t,r,i,a,!1):n.endArrow?cd(e,n,t,r,i,a,!1):e.set("startArrowShape",null)}var hd={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Ca(e,n){var t=n.attr();for(var r in t){var i=t[r],a=hd[r]?hd[r]:r;"matrix"===a&&i?e.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===a&&e.setLineDash?(0,v.kJ)(i)&&e.setLineDash(i):("strokeStyle"===a||"fillStyle"===a?i=Rw(e,n,i):"globalAlpha"===a&&(i*=e.globalAlpha),e[a]=i)}}function bu(e,n,t){for(var r=0;rE?b:E,Ut=b>E?1:b/E,ee=b>E?E/b:1;n.translate(C,S),n.rotate(it),n.scale(Ut,ee),n.arc(0,0,yt,W,tt,1-wt),n.scale(1/Ut,1/ee),n.rotate(-it),n.translate(-C,-S)}break;case"Z":n.closePath()}if("Z"===p)s=l;else{var me=f.length;s=[f[me-2],f[me-1]]}}}}function pd(e,n){var t=e.get("canvas");t&&("remove"===n&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(t.refreshElement(e,n,t),t.get("autoDraw")&&t.draw())))}var Zw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.onCanvasChange=function(t){pd(this,t)},n.prototype.getShapeBase=function(){return mt},n.prototype.getGroupBase=function(){return n},n.prototype._applyClip=function(t,r){r&&(t.save(),Ca(t,r),r.createPath(t),t.restore(),t.clip(),r._afterDraw())},n.prototype.cacheCanvasBBox=function(){var r=[],i=[];(0,v.S6)(this.cfg.children,function(p){var d=p.cfg.cacheCanvasBBox;d&&p.cfg.isInView&&(r.push(d.minX,d.maxX),i.push(d.minY,d.maxY))});var a=null;if(r.length){var o=(0,v.VV)(r),s=(0,v.Fp)(r),l=(0,v.VV)(i),c=(0,v.Fp)(i);a={minX:o,minY:l,x:o,y:l,maxX:s,maxY:c,width:s-o,height:c-l};var h=this.cfg.canvas;if(h){var f=h.getViewRange();this.set("isInView",mo(a,f))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",a)},n.prototype.draw=function(t,r){var i=this.cfg.children;i.length&&(!r||this.cfg.refresh)&&(t.save(),Ca(t,this),this._applyClip(t,this.getClip()),bu(t,i,r),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},n.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},n}(bn.AbstractGroup);const Fu=Zw;var Ww=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},n.prototype.getShapeBase=function(){return mt},n.prototype.getGroupBase=function(){return Fu},n.prototype.onCanvasChange=function(t){pd(this,t)},n.prototype.calculateBBox=function(){var t=this.get("type"),r=this.getHitLineWidth(),a=(0,bn.getBBoxMethod)(t)(this),o=r/2,s=a.x-o,l=a.y-o;return{x:s,minX:s,y:l,minY:l,width:a.width+r,height:a.height+r,maxX:a.x+a.width+o,maxY:a.y+a.height+o}},n.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},n.prototype.isStroke=function(){return!!this.attrs.stroke},n.prototype._applyClip=function(t,r){r&&(t.save(),Ca(t,r),r.createPath(t),t.restore(),t.clip(),r._afterDraw())},n.prototype.draw=function(t,r){var i=this.cfg.clipShape;if(r){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!mo(r,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Ca(t,this),this._applyClip(t,i),this.drawPath(t),t.restore(),this._afterDraw()},n.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},n.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var r=this.getCanvasBBox(),i=mo(r,t);this.set("isInView",i),this.set("cacheCanvasBBox",i?r:null)}},n.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},n.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},n.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},n.prototype.fill=function(t){t.fill()},n.prototype.stroke=function(t){t.stroke()},n.prototype.strokeAndFill=function(t){var r=this.attrs,i=r.lineWidth,a=r.opacity,o=r.strokeOpacity,s=r.fillOpacity;this.isFill()&&((0,v.UM)(s)||1===s?this.fill(t):(t.globalAlpha=s,this.fill(t),t.globalAlpha=a)),this.isStroke()&&i>0&&(!(0,v.UM)(o)&&1!==o&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},n.prototype.createPath=function(t){},n.prototype.afterDrawPath=function(t){},n.prototype.isInShape=function(t,r){var i=this.isStroke(),a=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,r,i,a,o)},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){return!1},n.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},n}(bn.AbstractShape);const fr=Ww;var Xw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,r:0})},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),h=s.r,f=o/2,p=id(s.x,s.y,t,r);return a&&i?p<=h+f:a?p<=h:!!i&&p>=h-f&&p<=h+f},n.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.r;t.beginPath(),t.arc(i,a,o,0,2*Math.PI,!1),t.closePath()},n}(fr);const $w=Xw;function Ws(e,n,t,r){return e/(t*t)+n/(r*r)}var Jw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,rx:0,ry:0})},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),l=o/2,c=s.x,h=s.y,f=s.rx,p=s.ry,d=(t-c)*(t-c),y=(r-h)*(r-h);return a&&i?Ws(d,y,f+l,p+l)<=1:a?Ws(d,y,f,p)<=1:!!i&&Ws(d,y,f-l,p-l)>=1&&Ws(d,y,f+l,p+l)<=1},n.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.rx,s=r.ry;if(t.beginPath(),t.ellipse)t.ellipse(i,a,o,s,0,0,2*Math.PI,!1);else{var l=o>s?o:s,c=o>s?1:o/s,h=o>s?s/o:1;t.save(),t.translate(i,a),t.scale(c,h),t.arc(0,0,l,0,2*Math.PI),t.restore(),t.closePath()}},n}(fr);const Qw=Jw;function dd(e){return e instanceof HTMLElement&&(0,v.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var qw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0})},n.prototype.initAttrs=function(t){this._setImage(t.img)},n.prototype.isStroke=function(){return!1},n.prototype.isOnlyHitBox=function(){return!0},n.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},n.prototype._setImage=function(t){var r=this,i=this.attrs;if((0,v.HD)(t)){var a=new Image;a.onload=function(){if(r.destroyed)return!1;r.attr("img",a),r.set("loading",!1),r._afterLoading();var o=r.get("callback");o&&o.call(r)},a.crossOrigin="Anonymous",a.src=t,this.set("loading",!0)}else t instanceof Image?(i.width||(i.width=t.width),i.height||(i.height=t.height)):dd(t)&&(i.width||(i.width=Number(t.getAttribute("width"))),i.height||Number(t.getAttribute("height")))},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),"img"===t&&this._setImage(r)},n.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var r=this.attr(),i=r.x,a=r.y,o=r.width,s=r.height,l=r.sx,c=r.sy,h=r.swidth,f=r.sheight,p=r.img;(p instanceof Image||dd(p))&&((0,v.UM)(l)||(0,v.UM)(c)||(0,v.UM)(h)||(0,v.UM)(f)?t.drawImage(p,i,a,o,s):t.drawImage(p,l,c,h,f,i,a,o,s))},n}(fr);const jw=qw;var Pn=V(4137);function vi(e,n,t,r,i,a,o){var s=Math.min(e,t),l=Math.max(e,t),c=Math.min(n,r),h=Math.max(n,r),f=i/2;return a>=s-f&&a<=l+f&&o>=c-f&&o<=h+f&&Pn.x1.pointToLine(e,n,t,r,a,o)<=i/2}var Kw=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},n.prototype.initAttrs=function(t){this.setArrow()},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),this.setArrow()},n.prototype.setArrow=function(){var t=this.attr(),r=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.endArrow;t.startArrow&&Su(this,t,a,o,r,i),l&&_u(this,t,r,i,a,o)},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){if(!i||!o)return!1;var s=this.attr();return vi(s.x1,s.y1,s.x2,s.y2,o,t,r)},n.prototype.createPath=function(t){var r=this.attr(),i=r.x1,a=r.y1,o=r.x2,s=r.y2,l=r.startArrow,c=r.endArrow,h={dx:0,dy:0},f={dx:0,dy:0};l&&l.d&&(h=Pi(i,a,o,s,r.startArrow.d)),c&&c.d&&(f=Pi(i,a,o,s,r.endArrow.d)),t.beginPath(),t.moveTo(i+h.dx,a+h.dy),t.lineTo(o-f.dx,s-f.dy)},n.prototype.afterDrawPath=function(t){var r=this.get("startArrowShape"),i=this.get("endArrowShape");r&&r.draw(t),i&&i.draw(t)},n.prototype.getTotalLength=function(){var t=this.attr();return Pn.x1.length(t.x1,t.y1,t.x2,t.y2)},n.prototype.getPoint=function(t){var r=this.attr();return Pn.x1.pointAt(r.x1,r.y1,r.x2,r.y2,t)},n}(fr);const tS=Kw;var eS={circle:function(e,n,t){return[["M",e-t,n],["A",t,t,0,1,0,e+t,n],["A",t,t,0,1,0,e-t,n]]},square:function(e,n,t){return[["M",e-t,n-t],["L",e+t,n-t],["L",e+t,n+t],["L",e-t,n+t],["Z"]]},diamond:function(e,n,t){return[["M",e-t,n],["L",e,n-t],["L",e+t,n],["L",e,n+t],["Z"]]},triangle:function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n+r],["L",e,n-r],["L",e+t,n+r],["Z"]]},"triangle-down":function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n-r],["L",e+t,n-r],["L",e,n+r],["Z"]]}},nS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.initAttrs=function(t){this._resetParamsCache()},n.prototype._resetParamsCache=function(){this.set("paramsCache",{})},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},n.prototype.isOnlyHitBox=function(){return!0},n.prototype._getR=function(t){return(0,v.UM)(t.r)?t.radius:t.r},n.prototype._getPath=function(){var s,l,t=this.attr(),r=t.x,i=t.y,a=t.symbol||"circle",o=this._getR(t);if((0,v.mf)(a))l=(s=a)(r,i,o),l=(0,ua.wb)(l);else{if(!(s=n.Symbols[a]))return console.warn(a+" marker is not supported."),null;l=s(r,i,o)}return l},n.prototype.createPath=function(t){vd(this,t,{path:this._getPath()},this.get("paramsCache"))},n.Symbols=eS,n}(fr);const rS=nS;function gd(e,n,t){var r=(0,bn.getOffScreenContext)();return e.createPath(r),r.isPointInPath(n,t)}var iS=1e-6;function Eu(e){return Math.abs(e)0!=Eu(s[1]-t)>0&&Eu(n-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function xo(e,n,t,r,i,a,o,s){var l=(Math.atan2(s-n,o-e)+2*Math.PI)%(2*Math.PI);if(li)return!1;var c={x:e+t*Math.cos(l),y:n+t*Math.sin(l)};return id(c.x,c.y,o,s)<=a/2}var oS=an.vs;const Xs=(0,g.pi)({hasArc:function sS(e){for(var n=!1,t=e.length,r=0;r0&&r.push(i),{polygons:t,polylines:r}},isPointInStroke:function lS(e,n,t,r,i){for(var a=!1,o=n/2,s=0;sS?C:S;ja(tt,tt,oS(null,[["t",-m.cx,-m.cy],["r",-m.xRotation],["s",1/(C>S?1:C/S),1/(C>S?S/C:1)]])),a=xo(0,0,it,b,E,n,tt[0],tt[1])}if(a)break}}return a}},bn.PathUtil);function md(e,n,t){for(var r=!1,i=0;i=h[0]&&t<=h[1]&&(i=(t-h[0])/(h[1]-h[0]),a=f)});var s=o[a];if((0,v.UM)(s)||(0,v.UM)(a))return null;var l=s.length,c=o[a+1];return Pn.Ll.pointAt(s[l-2],s[l-1],c[1],c[2],c[3],c[4],c[5],c[6],i)},n.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Xs.pathToCurve(t))},n.prototype._setTcache=function(){var a,o,s,l,t=0,r=0,i=[],c=this.get("curve");if(c){if((0,v.S6)(c,function(h,f){l=h.length,(s=c[f+1])&&(t+=Pn.Ll.length(h[l-2],h[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),0===t)return void this.set("tCache",[]);(0,v.S6)(c,function(h,f){l=h.length,(s=c[f+1])&&((a=[])[0]=r/t,o=Pn.Ll.length(h[l-2],h[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),a[1]=(r+=o||0)/t,i.push(a))}),this.set("tCache",i)}},n.prototype.getStartTangent=function(){var r,t=this.getSegments();if(t.length>1){var i=t[0].currentPoint,a=t[1].currentPoint,o=t[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},n.prototype.getEndTangent=function(){var i,t=this.getSegments(),r=t.length;if(r>1){var a=t[r-2].currentPoint,o=t[r-1].currentPoint,s=t[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},n}(fr);const ku=uS;function xd(e,n,t,r,i){var a=e.length;if(a<2)return!1;for(var o=0;o=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Pn.x1.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],a)},n.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var r=this.getTotalLength();if(!(r<=0)){var o,s,i=0,a=[];(0,v.S6)(t,function(l,c){t[c+1]&&((o=[])[0]=i/r,s=Pn.x1.length(l[0],l[1],t[c+1][0],t[c+1][1]),o[1]=(i+=s)/r,a.push(o))}),this.set("tCache",a)}}},n.prototype.getStartTangent=function(){var t=this.attr().points,r=[];return r.push([t[1][0],t[1][1]]),r.push([t[0][0],t[0][1]]),r},n.prototype.getEndTangent=function(){var t=this.attr().points,r=t.length-1,i=[];return i.push([t[r-1][0],t[r-1][1]]),i.push([t[r][0],t[r][1]]),i},n}(fr);const pS=vS;var yS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},n.prototype.isInStrokeOrPath=function(t,r,i,a,o){var s=this.attr(),l=s.x,c=s.y,h=s.width,f=s.height,p=s.radius;if(p){var y=!1;return i&&(y=function gS(e,n,t,r,i,a,o,s){return vi(e+i,n,e+t-i,n,a,o,s)||vi(e+t,n+i,e+t,n+r-i,a,o,s)||vi(e+t-i,n+r,e+i,n+r,a,o,s)||vi(e,n+r-i,e,n+i,a,o,s)||xo(e+t-i,n+i,i,1.5*Math.PI,2*Math.PI,a,o,s)||xo(e+t-i,n+r-i,i,0,.5*Math.PI,a,o,s)||xo(e+i,n+r-i,i,.5*Math.PI,Math.PI,a,o,s)||xo(e+i,n+i,i,Math.PI,1.5*Math.PI,a,o,s)}(l,c,h,f,p,o,t,r)),!y&&a&&(y=gd(this,t,r)),y}var d=o/2;return a&&i?Oi(l-d,c-d,h+d,f+d,t,r):a?Oi(l,c,h,f,t,r):i?function dS(e,n,t,r,i,a,o){var s=i/2;return Oi(e-s,n-s,t,i,a,o)||Oi(e+t-s,n-s,i,r,a,o)||Oi(e+s,n+r-s,t,i,a,o)||Oi(e-s,n+s,i,r,a,o)}(l,c,h,f,o,t,r):void 0},n.prototype.createPath=function(t){var r=this.attr(),i=r.x,a=r.y,o=r.width,s=r.height,l=r.radius;if(t.beginPath(),0===l)t.rect(i,a,o,s);else{var c=function Nw(e){var n=0,t=0,r=0,i=0;return(0,v.kJ)(e)?1===e.length?n=t=r=i=e[0]:2===e.length?(n=r=e[0],t=i=e[1]):3===e.length?(n=e[0],t=i=e[1],r=e[2]):(n=e[0],t=e[1],r=e[2],i=e[3]):n=t=r=i=e,[n,t,r,i]}(l),h=c[0],f=c[1],p=c[2],d=c[3];t.moveTo(i+h,a),t.lineTo(i+o-f,a),0!==f&&t.arc(i+o-f,a+f,f,-Math.PI/2,0),t.lineTo(i+o,a+s-p),0!==p&&t.arc(i+o-p,a+s-p,p,0,Math.PI/2),t.lineTo(i+d,a+s),0!==d&&t.arc(i+d,a+s-d,d,Math.PI/2,Math.PI),t.lineTo(i,a+h),0!==h&&t.arc(i+h,a+h,h,Math.PI,1.5*Math.PI),t.closePath()}},n}(fr);const mS=yS;var xS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},n.prototype.isOnlyHitBox=function(){return!0},n.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},n.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,bn.assembleFont)(t)},n.prototype._setText=function(t){var r=null;(0,v.HD)(t)&&-1!==t.indexOf("\n")&&(r=t.split("\n")),this.set("textArr",r)},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(r)},n.prototype._getSpaceingY=function(){var t=this.attrs,r=t.lineHeight,i=1*t.fontSize;return r?r-i:.14*i},n.prototype._drawTextArr=function(t,r,i){var p,a=this.attrs,o=a.textBaseline,s=a.x,l=a.y,c=1*a.fontSize,h=this._getSpaceingY(),f=(0,bn.getTextHeight)(a.text,a.fontSize,a.lineHeight);(0,v.S6)(r,function(d,y){p=l+y*(h+c)-f+c,"middle"===o&&(p+=f-c-(f-c)/2),"top"===o&&(p+=f-c),(0,v.UM)(d)||(i?t.fillText(d,s,p):t.strokeText(d,s,p))})},n.prototype._drawText=function(t,r){var i=this.attr(),a=i.x,o=i.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,r);else{var l=i.text;(0,v.UM)(l)||(r?t.fillText(l,a,o):t.strokeText(l,a,o))}},n.prototype.strokeAndFill=function(t){var r=this.attrs,i=r.lineWidth,a=r.opacity,o=r.strokeOpacity,s=r.fillOpacity;this.isStroke()&&i>0&&(!(0,v.UM)(o)&&1!==o&&(t.globalAlpha=a),this.stroke(t)),this.isFill()&&((0,v.UM)(s)||1===s?this.fill(t):(t.globalAlpha=s,this.fill(t),t.globalAlpha=a)),this.afterDrawPath(t)},n.prototype.fill=function(t){this._drawText(t,!0)},n.prototype.stroke=function(t){this._drawText(t,!1)},n}(fr);const MS=xS;function Md(e,n,t){var r=e.getTotalMatrix();if(r){var i=function CS(e,n){if(n){var t=(0,bn.invert)(n);return(0,bn.multiplyVec2)(t,e)}return e}([n,t,1],r);return[i[0],i[1]]}return[n,t]}function Cd(e,n,t){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,bn.isAllowCapture)(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var r=Md(e,n,t);if(e.isClipped(r[0],r[1]))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return n>=o.minX&&n<=o.maxX&&t>=o.minY&&t<=o.maxY}function wd(e,n,t){if(!Cd(e,n,t))return null;for(var r=null,i=e.getChildren(),o=i.length-1;o>=0;o--){var s=i[o];if(s.isGroup())r=wd(s,n,t);else if(Cd(s,n,t)){var l=s,c=Md(s,n,t);l.isInShape(c[0],c[1])&&(r=s)}if(r)break}return r}var wS=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},n.prototype.onCanvasChange=function(t){("attr"===t||"sort"===t||"changeSize"===t)&&(this.set("refreshElements",[this]),this.draw())},n.prototype.getShapeBase=function(){return mt},n.prototype.getGroupBase=function(){return Fu},n.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||function kw(){return window?window.devicePixelRatio:1}();return t>=1?Math.ceil(t):1},n.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},n.prototype.createDom=function(){var t=document.createElement("canvas"),r=t.getContext("2d");return this.set("context",r),t},n.prototype.setDOMSize=function(t,r){e.prototype.setDOMSize.call(this,t,r);var i=this.get("context"),a=this.get("el"),o=this.getPixelRatio();a.width=o*t,a.height=o*r,o>1&&i.scale(o,o)},n.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),r=this.get("el");t.clearRect(0,0,r.width,r.height)},n.prototype.getShape=function(t,r){return this.get("quickHit")?wd(this,t,r):e.prototype.getShape.call(this,t,r,null)},n.prototype._getRefreshRegion=function(){var i,t=this.get("refreshElements"),r=this.getViewRange();return t.length&&t[0]===this?i=r:(i=function Hw(e){if(!e.length)return null;var n=[],t=[],r=[],i=[];return(0,v.S6)(e,function(a){var o=function Yw(e){var n;if(e.destroyed)n=e._cacheCanvasBBox;else{var t=e.get("cacheCanvasBBox"),r=t&&!(!t.width||!t.height),i=e.getCanvasBBox(),a=i&&!(!i.width||!i.height);r&&a?n=function Iw(e,n){return e&&n?{minX:Math.min(e.minX,n.minX),minY:Math.min(e.minY,n.minY),maxX:Math.max(e.maxX,n.maxX),maxY:Math.max(e.maxY,n.maxY)}:e||n}(t,i):r?n=t:a&&(n=i)}return n}(a);o&&(n.push(o.minX),t.push(o.minY),r.push(o.maxX),i.push(o.maxY))}),{minX:(0,v.VV)(n),minY:(0,v.VV)(t),maxX:(0,v.Fp)(r),maxY:(0,v.Fp)(i)}}(t),i&&(i.minX=Math.floor(i.minX),i.minY=Math.floor(i.minY),i.maxX=Math.ceil(i.maxX),i.maxY=Math.ceil(i.maxY),i.maxY+=1,this.get("clipView")&&(i=function Gw(e,n){return e&&n&&mo(e,n)?{minX:Math.max(e.minX,n.minX),minY:Math.max(e.minY,n.minY),maxX:Math.min(e.maxX,n.maxX),maxY:Math.min(e.maxY,n.maxY)}:null}(i,r)))),i},n.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},n.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,v.VS)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},n.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},n.prototype._drawAll=function(){var t=this.get("context"),r=this.get("el"),i=this.getChildren();t.clearRect(0,0,r.width,r.height),Ca(t,this),bu(t,i),this.set("refreshElements",[])},n.prototype._drawRegion=function(){var t=this.get("context"),r=this.get("refreshElements"),i=this.getChildren(),a=this._getRefreshRegion();a?(t.clearRect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.save(),t.beginPath(),t.rect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.clip(),Ca(t,this),Vw(this,i,a),bu(t,i,a),t.restore()):r.length&&fd(r),(0,v.S6)(r,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},n.prototype._startDraw=function(){var t=this,r=this.get("drawFrame");r||(r=(0,v.U7)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)}),this.set("drawFrame",r))},n.prototype.skipDraw=function(){},n.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},n}(bn.AbstractCanvas);const SS=wS;var _S="0.5.12",Iu={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Je={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function rr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Sd(e){var n=Iu[e.type],t=e.getParent();if(!n)throw new Error("the type "+e.type+" is not supported by svg");var r=rr(n);if(e.get("id")&&(r.id=e.get("id")),e.set("el",r),e.set("attrs",{}),t){var i=t.get("el");i||(i=t.createDom(),t.set("el",i)),i.appendChild(r)}return r}function _d(e,n){var t=e.get("el"),r=(0,v.qo)(t.children).sort(n),i=document.createDocumentFragment();r.forEach(function(a){i.appendChild(a)}),t.appendChild(i)}function Mo(e){var n=e.attr().matrix;if(n){for(var t=e.cfg.el,r=[],i=0;i<9;i+=3)r.push(n[i]+","+n[i+1]);-1===(r=r.join(",")).indexOf("NaN")?t.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",n)}}function Co(e,n){var t=e.getClip(),r=e.get("el");if(t){if(t&&!r.hasAttribute("clip-path")){Sd(t),t.createPath(n);var i=n.addClip(t);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function bd(e,n){n.forEach(function(t){t.draw(e)})}function Td(e,n){var t=e.get("canvas");if(t&&t.get("autoDraw")){var r=t.get("context"),i=e.getParent(),a=i?i.getChildren():[t],o=e.get("el");if("remove"===n)if(e.get("isClipShape")){var l=o&&o.parentNode,c=l&&l.parentNode;l&&c&&c.removeChild(l)}else o&&o.parentNode&&o.parentNode.removeChild(o);else if("show"===n)o.setAttribute("visibility","visible");else if("hide"===n)o.setAttribute("visibility","hidden");else if("zIndex"===n)!function bS(e,n){var t=e.parentNode,r=Array.from(t.childNodes).filter(function(s){return 1===s.nodeType&&"defs"!==s.nodeName.toLowerCase()}),i=r[n],a=r.indexOf(e);if(i){if(a>n)t.insertBefore(e,i);else if(a0&&(r?"stroke"in i?this._setColor(t,"stroke",s):"strokeStyle"in i&&this._setColor(t,"stroke",l):this._setColor(t,"stroke",s||l),h&&p.setAttribute(Je.strokeOpacity,h),f&&p.setAttribute(Je.lineWidth,f))},n.prototype._setColor=function(t,r,i){var a=this.get("el");if(i)if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i))(o=t.find("gradient",i))||(o=t.addGradient(i)),a.setAttribute(Je[r],"url(#"+o+")");else if(/^[p,P]{1}[\s]*\(/.test(i)){var o;(o=t.find("pattern",i))||(o=t.addPattern(i)),a.setAttribute(Je[r],"url(#"+o+")")}else a.setAttribute(Je[r],i);else a.setAttribute(Je[r],"none")},n.prototype.shadow=function(t,r){var i=this.attr(),a=r||i;(a.shadowOffsetX||a.shadowOffsetY||a.shadowBlur||a.shadowColor)&&function TS(e,n){var t=e.cfg.el,r=e.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=n.find("filter",i);a||(a=n.addShadow(i)),t.setAttribute("filter","url(#"+a+")")}else t.removeAttribute("filter")}(this,t)},n.prototype.transform=function(t){var r=this.attr();(t||r).matrix&&Mo(this)},n.prototype.isInShape=function(t,r){return this.isPointInPath(t,r)},n.prototype.isPointInPath=function(t,r){var i=this.get("el"),o=this.get("canvas").get("el").getBoundingClientRect(),c=document.elementFromPoint(t+o.left,r+o.top);return!(!c||!c.isEqualNode(i))},n.prototype.getHitLineWidth=function(){var t=this.attrs,r=t.lineWidth,i=t.lineAppendWidth;return this.isStroke()?r+i:0},n}(bn.AbstractShape);const ir=FS;var ES=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,r:0})},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"x"===s||"y"===s?a.setAttribute("c"+s,o):Je[s]&&a.setAttribute(Je[s],o)})},n}(ir);const kS=ES;var IS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return(0,g.ZT)(n,e),n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");if((0,v.S6)(r||i,function(c,h){Je[h]&&a.setAttribute(Je[h],c)}),"function"==typeof i.html){var o=i.html.call(this,i);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,l=s.length-1;l>=0;l--)a.removeChild(s[l]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=i.html},n}(ir);const DS=IS;var LS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,rx:0,ry:0})},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"x"===s||"y"===s?a.setAttribute("c"+s,o):Je[s]&&a.setAttribute(Je[s],o)})},n}(ir);const OS=LS;var PS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");(0,v.S6)(r||a,function(s,l){"img"===l?i._setImage(a.img):Je[l]&&o.setAttribute(Je[l],s)})},n.prototype.setAttr=function(t,r){this.attrs[t]=r,"img"===t&&this._setImage(r)},n.prototype._setImage=function(t){var r=this.attr(),i=this.get("el");if((0,v.HD)(t))i.setAttribute("href",t);else if(t instanceof window.Image)r.width||(i.setAttribute("width",t.width),this.attr("width",t.width)),r.height||(i.setAttribute("height",t.height),this.attr("height",t.height)),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,v.HD)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+t.width),a.setAttribute("height",""+t.height),a.getContext("2d").putImageData(t,0,0),r.width||(i.setAttribute("width",""+t.width),this.attr("width",t.width)),r.height||(i.setAttribute("height",""+t.height),this.attr("height",t.height)),i.setAttribute("href",a.toDataURL())}},n}(ir);const zS=PS;var BS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){if("startArrow"===s||"endArrow"===s)if(o){var l=(0,v.Kn)(o)?t.addArrow(i,Je[s]):t.getDefaultArrow(i,Je[s]);a.setAttribute(Je[s],"url(#"+l+")")}else a.removeAttribute(Je[s]);else Je[s]&&a.setAttribute(Je[s],o)})},n.prototype.getTotalLength=function(){var t=this.attr();return Pn.x1.length(t.x1,t.y1,t.x2,t.y2)},n.prototype.getPoint=function(t){var r=this.attr();return Pn.x1.pointAt(r.x1,r.y1,r.x2,r.y2,t)},n}(ir);const RS=BS;var $s={circle:function(e,n,t){return[["M",e,n],["m",-t,0],["a",t,t,0,1,0,2*t,0],["a",t,t,0,1,0,2*-t,0]]},square:function(e,n,t){return[["M",e-t,n-t],["L",e+t,n-t],["L",e+t,n+t],["L",e-t,n+t],["Z"]]},diamond:function(e,n,t){return[["M",e-t,n],["L",e,n-t],["L",e+t,n],["L",e,n+t],["Z"]]},triangle:function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n+r],["L",e,n-r],["L",e+t,n+r],["z"]]},triangleDown:function(e,n,t){var r=t*Math.sin(.3333333333333333*Math.PI);return[["M",e-t,n-r],["L",e+t,n-r],["L",e,n+r],["Z"]]}};const Ad={get:function(e){return $s[e]},register:function(e,n){$s[e]=n},remove:function(e){delete $s[e]},getAll:function(){return $s}};var NS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},n.prototype._assembleMarker=function(){var t=this._getPath();return(0,v.kJ)(t)?t.map(function(r){return r.join(" ")}).join(""):t},n.prototype._getPath=function(){var s,t=this.attr(),r=t.x,i=t.y,a=t.r||t.radius,o=t.symbol||"circle";return(s=(0,v.mf)(o)?o:Ad.get(o))?s(r,i,a):(console.warn(s+" symbol is not exist."),null)},n.symbolsFactory=Ad,n}(ir);const VS=NS;var US=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{startArrow:!1,endArrow:!1})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");(0,v.S6)(r||a,function(s,l){if("path"===l&&(0,v.kJ)(s))o.setAttribute("d",i._formatPath(s));else if("startArrow"===l||"endArrow"===l)if(s){var c=(0,v.Kn)(s)?t.addArrow(a,Je[l]):t.getDefaultArrow(a,Je[l]);o.setAttribute(Je[l],"url(#"+c+")")}else o.removeAttribute(Je[l]);else Je[l]&&o.setAttribute(Je[l],s)})},n.prototype._formatPath=function(t){var r=t.map(function(i){return i.join(" ")}).join("");return~r.indexOf("NaN")?"":r},n.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},n.prototype.getPoint=function(t){var r=this.get("el"),i=this.getTotalLength();if(0===i)return null;var a=r?r.getPointAtLength(t*i):null;return a?{x:a.x,y:a.y}:null},n}(ir);const YS=US;var HS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"points"===s&&(0,v.kJ)(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Je[s]&&a.setAttribute(Je[s],o)})},n}(ir);const GS=HS;var ZS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{startArrow:!1,endArrow:!1})},n.prototype.onAttrChange=function(t,r,i){e.prototype.onAttrChange.call(this,t,r,i),-1!==["points"].indexOf(t)&&this._resetCache()},n.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},n.prototype.createPath=function(t,r){var i=this.attr(),a=this.get("el");(0,v.S6)(r||i,function(o,s){"points"===s&&(0,v.kJ)(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):Je[s]&&a.setAttribute(Je[s],o)})},n.prototype.getTotalLength=function(){var t=this.attr().points,r=this.get("totalLength");return(0,v.UM)(r)?(this.set("totalLength",Pn.aH.length(t)),this.get("totalLength")):r},n.prototype.getPoint=function(t){var a,o,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,v.S6)(i,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),Pn.x1.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],a)},n.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var r=this.getTotalLength();if(!(r<=0)){var o,s,i=0,a=[];(0,v.S6)(t,function(l,c){t[c+1]&&((o=[])[0]=i/r,s=Pn.x1.length(l[0],l[1],t[c+1][0],t[c+1][1]),o[1]=(i+=s)/r,a.push(o))}),this.set("tCache",a)}}},n.prototype.getStartTangent=function(){var t=this.attr().points,r=[];return r.push([t[1][0],t[1][1]]),r.push([t[0][0],t[0][1]]),r},n.prototype.getEndTangent=function(){var t=this.attr().points,r=t.length-1,i=[];return i.push([t[r-1][0],t[r-1][1]]),i.push([t[r][0],t[r][1]]),i},n}(ir);const WS=ZS;var QS=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el"),s=!1,l=["x","y","width","height","radius"];(0,v.S6)(r||a,function(c,h){-1===l.indexOf(h)||s?-1===l.indexOf(h)&&Je[h]&&o.setAttribute(Je[h],c):(o.setAttribute("d",i._assembleRect(a)),s=!0)})},n.prototype._assembleRect=function(t){var r=t.x,i=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+r+","+i+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var l=function JS(e){var n=0,t=0,r=0,i=0;return(0,v.kJ)(e)?1===e.length?n=t=r=i=e[0]:2===e.length?(n=r=e[0],t=i=e[1]):3===e.length?(n=e[0],t=i=e[1],r=e[2]):(n=e[0],t=e[1],r=e[2],i=e[3]):n=t=r=i=e,{r1:n,r2:t,r3:r,r4:i}}(s);return(0,v.kJ)(s)?1===s.length?l.r1=l.r2=l.r3=l.r4=s[0]:2===s.length?(l.r1=l.r3=s[0],l.r2=l.r4=s[1]):3===s.length?(l.r1=s[0],l.r2=l.r4=s[1],l.r3=s[2]):(l.r1=s[0],l.r2=s[1],l.r3=s[2],l.r4=s[3]):l.r1=l.r2=l.r3=l.r4=s,[["M "+(r+l.r1)+","+i],["l "+(a-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-a)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},n}(ir);const qS=QS;var jS=V(1653),KS={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},t_={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},e_={left:"left",start:"left",center:"middle",right:"end",end:"end"},n_=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return(0,g.ZT)(n,e),n.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,g.pi)((0,g.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},n.prototype.createPath=function(t,r){var i=this,a=this.attr(),o=this.get("el");this._setFont(),(0,v.S6)(r||a,function(s,l){"text"===l?i._setText(""+s):"matrix"===l&&s?Mo(i):Je[l]&&o.setAttribute(Je[l],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},n.prototype._setFont=function(){var t=this.get("el"),r=this.attr(),i=r.textBaseline,a=r.textAlign,o=(0,jS.qY)();o&&"firefox"===o.name?t.setAttribute("dominant-baseline",t_[i]||"alphabetic"):t.setAttribute("alignment-baseline",KS[i]||"baseline"),t.setAttribute("text-anchor",e_[a]||"left")},n.prototype._setText=function(t){var r=this.get("el"),i=this.attr(),a=i.x,o=i.textBaseline,s=void 0===o?"bottom":o;if(t)if(~t.indexOf("\n")){var l=t.split("\n"),c=l.length-1,h="";(0,v.S6)(l,function(f,p){0===p?"alphabetic"===s?h+=''+f+"":"top"===s?h+=''+f+"":"middle"===s?h+=''+f+"":"bottom"===s?h+=''+f+"":"hanging"===s&&(h+=''+f+""):h+=''+f+""}),r.innerHTML=h}else r.innerHTML=t;else r.innerHTML=""},n}(ir);const r_=n_;var i_=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a_=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o_=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Ed(e){var n=e.match(o_);if(!n)return"";var t="";return n.sort(function(r,i){return r=r.split(":"),i=i.split(":"),Number(r[0])-Number(i[0])}),(0,v.S6)(n,function(r){r=r.split(":"),t+=''}),t}var c_=function(){function e(n){this.cfg={};var t=null,r=(0,v.EL)("gradient_");return"l"===n.toLowerCase()[0]?function s_(e,n){var a,o,t=i_.exec(e),r=(0,v.wQ)((0,v.c$)(parseFloat(t[1])),2*Math.PI),i=t[2];r>=0&&r<.5*Math.PI?(a={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=r&&r'},e}();const p_=v_;var d_=function(){function e(n,t){this.cfg={};var r=rr("marker"),i=(0,v.EL)("marker_");r.setAttribute("id",i);var a=rr("path");a.setAttribute("stroke",n.stroke||"none"),a.setAttribute("fill",n.fill||"none"),r.appendChild(a),r.setAttribute("overflow","visible"),r.setAttribute("orient","auto-start-reverse"),this.el=r,this.child=a,this.id=i;var o=n["marker-start"===t?"startArrow":"endArrow"];return this.stroke=n.stroke||"#000",!0===o?this._setDefaultPath(t,a):(this.cfg=o,this._setMarker(n.lineWidth,a)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(n,t){var r=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),r.setAttribute("refX",""+10*Math.cos(Math.PI/6)),r.setAttribute("refY","5")},e.prototype._setMarker=function(n,t){var r=this.el,i=this.cfg.path,a=this.cfg.d;(0,v.kJ)(i)&&(i=i.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",i),r.appendChild(t),a&&r.setAttribute("refX",""+a/n)},e.prototype.update=function(n){var t=this.child;t.attr?t.attr("fill",n):t.setAttribute("fill",n)},e}();const kd=d_;var g_=function(){function e(n){this.type="clip",this.cfg={};var t=rr("clipPath");return this.el=t,this.id=(0,v.EL)("clip_"),t.id=this.id,t.appendChild(n.cfg.el),this.cfg=n,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var n=this.el;n.parentNode.removeChild(n)},e}();const y_=g_;var m_=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,x_=function(){function e(n){this.cfg={};var t=rr("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var r=rr("image");t.appendChild(r);var i=(0,v.EL)("pattern_");t.id=i,this.el=t,this.id=i,this.cfg=n;var o=m_.exec(n)[2];r.setAttribute("href",o);var s=new Image;function l(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o,s.complete?l():(s.onload=l,s.src=s.src),this}return e.prototype.match=function(n,t){return this.cfg===t},e}();const M_=x_;var C_=function(){function e(n){var t=rr("defs"),r=(0,v.EL)("defs_");t.id=r,n.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=n}return e.prototype.find=function(n,t){for(var r=this.children,i=null,a=0;a0&&(d[0][0]="L")),a=a.concat(d)}),a.push(["Z"])}return a}function Js(e,n,t,r,i){for(var a=dn(e,n,!n,"lineWidth"),s=e.isInCircle,h=Vs(e.points,e.connectNulls,e.showSinglePoint),f=[],p=0,d=h.length;po&&(o=l),l=r[0]}));var x=this.scales[y];try{for(var M=(0,g.XA)(t),C=M.next();!C.done;C=M.next()){var S=C.value,b=this.getDrawCfg(S),E=b.x,W=b.y,tt=x.scale(S[nn][y]);this.drawGrayScaleBlurredCircle(E-c.x,W-h.y,i+a,tt,m)}}catch(yt){o={error:yt}}finally{try{C&&!C.done&&(s=M.return)&&s.call(M)}finally{if(o)throw o.error}}var it=m.getImageData(0,0,f,p);this.clearShadowCanvasCtx(),this.colorize(it),m.putImageData(it,0,0);var wt=this.getImageShape();wt.attr("x",c.x),wt.attr("y",h.y),wt.attr("width",f),wt.attr("height",p),wt.attr("img",m.canvas),wt.set("origin",this.getShapeInfo(t))},n.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),r=this.coordinate;return Math.min(r.getWidth()/(4*t.scales[0].ticks.length),r.getHeight()/(4*t.scales[1].ticks.length))},n.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},n.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},n.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},n.prototype.drawGrayScaleBlurredCircle=function(t,r,i,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-i,r-i)},n.prototype.colorize=function(t){for(var r=this.getAttribute("color"),i=t.data,a=this.paletteCache,o=3;on&&(r=n-(t=t?n/(1+r/t):0)),i+a>n&&(a=n-(i=i?n/(1+a/i):0)),[t||0,r||0,i||0,a||0]}function Ld(e,n,t){var r=[];if(t.isRect){var i=t.isTransposed?{x:t.start.x,y:n[0].y}:{x:n[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:n[2].y}:{x:n[3].x,y:t.end.y},o=(0,v.U2)(e,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(n[0].y-n[2].y):n[2].x-n[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),c=(0,g.CR)(Dd(o,Math.min(s,l)),4),h=c[0],f=c[1],p=c[2],d=c[3],y=t.isTransposed&&t.isReflect("y"),m=y?0:1,x=function(W){return y?-W:W};r.push(["M",i.x,a.y+x(h)]),0!==h&&r.push(["A",h,h,0,0,m,i.x+h,a.y]),r.push(["L",a.x-f,a.y]),0!==f&&r.push(["A",f,f,0,0,m,a.x,a.y+x(f)]),r.push(["L",a.x,i.y-x(p)]),0!==p&&r.push(["A",p,p,0,0,m,a.x-p,i.y]),r.push(["L",i.x+d,i.y]),0!==d&&r.push(["A",d,d,0,0,m,i.x,i.y-x(d)])}else r.push(["M",i.x,i.y]),r.push(["L",a.x,i.y]),r.push(["L",a.x,a.y]),r.push(["L",i.x,a.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(t.isPolar){var M=t.getCenter(),C=so(e,t),S=C.startAngle,b=C.endAngle;if("theta"===t.type||t.isTransposed){var E=function(it){return Math.pow(it,2)};h=Math.sqrt(E(M.x-n[0].x)+E(M.y-n[0].y)),f=Math.sqrt(E(M.x-n[2].x)+E(M.y-n[2].y)),r=oi(M.x,M.y,h,t.startAngle,t.endAngle,f)}else r=oi(M.x,M.y,t.getRadius(),S,b)}return r}function Od(e,n,t){var r=[];return(0,v.UM)(n)?t?r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",n[1].x,n[1].y],["L",n[0].x,n[0].y],["Z"]),r}function wo(e,n){return[n,e]}function zu(e){var n=e.theme,t=e.coordinate,r=e.getXScale(),i=r.values,a=e.beforeMappingData,o=i.length,s=lo(e.coordinate),l=e.intervalPadding,c=e.dodgePadding,h=e.maxColumnWidth||n.maxColumnWidth,f=e.minColumnWidth||n.minColumnWidth,p=e.columnWidthRatio||n.columnWidthRatio,d=e.multiplePieWidthRatio||n.multiplePieWidthRatio,y=e.roseWidthRatio||n.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var m=function z_(e,n){var t=e.length,r=e;(0,v.HD)(r[0])&&(r=e.map(function(s){return n.translate(s)}));for(var i=r[1]-r[0],a=2;ao&&(i=o)}return i}(i,r);i.length>(o=(r.max-r.min)/m)&&(o=i.length)}var x=r.range,M=1/o,C=1;if(t.isPolar?C=t.isTransposed&&o>1?d:y:(r.isLinear&&(M*=x[1]-x[0]),C=p),!(0,v.UM)(l)&&l>=0?M=(1-l/s*(o-1))/o:M*=C,e.getAdjust("dodge")){var W=function B_(e,n){if(n){var t=(0,v.xH)(e);return(0,v.I)(t,n).length}return e.length}(a,e.getAdjust("dodge").dodgeBy);!(0,v.UM)(c)&&c>=0?M=(M-c/s*(W-1))/W:(!(0,v.UM)(l)&&l>=0&&(M*=C),M/=W),M=M>=0?M:0}if(!(0,v.UM)(h)&&h>=0){var it=h/s;M>it&&(M=it)}if(!(0,v.UM)(f)&&f>=0){var wt=f/s;M0&&!(0,v.U2)(r,[i,"min"])&&t.change({min:0}),o<=0&&!(0,v.U2)(r,[i,"max"])&&t.change({max:0}))}},n.prototype.getDrawCfg=function(t){var r=e.prototype.getDrawCfg.call(this,t);return r.background=this.background,r},n}(ui);const N_=R_;var V_=function(e){function n(t){var r=e.call(this,t)||this;r.type="line";var i=t.sortable;return r.sortable=void 0!==i&&i,r}return(0,g.ZT)(n,e),n}(Lu);const U_=V_;var Pd=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function Bu(e,n,t,r,i){var a,o,s=dn(n,i,!i,"r"),l=e.parsePoints(n.points),c=l[0];if(n.isStack)c=l[1];else if(l.length>1){var h=t.addGroup();try{for(var f=(0,g.XA)(l),p=f.next();!p.done;p=f.next()){var d=p.value;h.addShape({type:"marker",attrs:(0,g.pi)((0,g.pi)((0,g.pi)({},s),{symbol:Li[r]||r}),d)})}}catch(y){a={error:y}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return h}return t.addShape({type:"marker",attrs:(0,g.pi)((0,g.pi)((0,g.pi)({},s),{symbol:Li[r]||r}),c)})}ci("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return xu(e)}}),(0,v.S6)(Pd,function(e){Qe("point","hollow-".concat(e),{draw:function(n,t){return Bu(this,n,t,e,!0)},getMarker:function(n){return{symbol:Li[e]||e,style:{r:4.5,stroke:n.color,fill:null}}}})});var H_=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return(0,g.ZT)(n,e),n.prototype.getDrawCfg=function(t){var r=e.prototype.getDrawCfg.call(this,t);return(0,g.pi)((0,g.pi)({},r),{isStack:!!this.getAdjust("stack")})},n}(ui);const G_=H_;ci("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(e){var n=[];return(0,v.S6)(e.x,function(t,r){n.push({x:t,y:e.y[r]})}),n}}),Qe("polygon","polygon",{draw:function(e,n){if(!(0,v.xb)(e.points)){var t=dn(e,!0,!0),r=this.parsePath(function Z_(e){for(var n=e[0],t=1,r=[["M",n.x,n.y]];t2?"weight":"normal";if(e.isInCircle){var o={x:0,y:1};return"normal"===i?a=function K_(e,n,t){var r=Nu(n,t),i=[["M",e.x,e.y]];return i.push(r),i}(r[0],r[1],o):(t.fill=t.stroke,a=function t6(e,n){var t=Nu(e[1],n),r=Nu(e[3],n),i=[["M",e[0].x,e[0].y]];return i.push(r),i.push(["L",e[3].x,e[3].y]),i.push(["L",e[2].x,e[2].y]),i.push(t),i.push(["L",e[1].x,e[1].y]),i.push(["L",e[0].x,e[0].y]),i.push(["Z"]),i}(r,o)),a=this.parsePath(a),n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:a})})}if("normal"===i)return a=Qv(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:a})});var s=Ru(r[1],r[3]),l=Ru(r[2],r[0]);return a=this.parsePath(a=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]]),t.fill=t.stroke,n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:a})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),Qe("edge","smooth",{draw:function(e,n){var t=dn(e,!0,!1,"lineWidth"),r=e.points,i=this.parsePath(function e6(e,n){var t=Ru(e,n),r=[["M",e.x,e.y]];return r.push(t),r}(r[0],r[1]));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var Qs=1/3;Qe("edge","vhv",{draw:function(e,n){var t=dn(e,!0,!1,"lineWidth"),r=e.points,i=this.parsePath(function n6(e,n){var t=[];t.push({x:e.x,y:e.y*(1-Qs)+n.y*Qs}),t.push({x:n.x,y:e.y*(1-Qs)+n.y*Qs}),t.push(n);var r=[["M",e.x,e.y]];return(0,v.S6)(t,function(i){r.push(["L",i.x,i.y])}),r}(r[0],r[1]));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),Qe("interval","funnel",{getPoints:function(e){return e.size=2*e.size,Ou(e)},draw:function(e,n){var t=dn(e,!1,!0),r=this.parsePath(Od(e.points,e.nextPoints,!1));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),Qe("interval","hollow-rect",{draw:function(e,n){var t=dn(e,!0,!1),r=n,i=e?.background;if(i){r=n.addGroup();var a=ed(e),o=Ld(e,this.parsePoints(e.points),this.coordinate);r.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},a),{path:o}),capture:!1,zIndex:-1,name:vu})}var s=this.parsePath(Pu(e.points)),l=r.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:s}),name:"interval"});return i?r:l},getMarker:function(e){var n=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,stroke:n,fill:null}}:{symbol:"square",style:{r:4,stroke:n,fill:null}}}}),Qe("interval","line",{getPoints:function(e){return function r6(e){var n=e.x,t=e.y,r=e.y0;return(0,v.kJ)(t)?t.map(function(i,a){return{x:(0,v.kJ)(n)?n[a]:n,y:i}}):[{x:n,y:r},{x:n,y:t}]}(e)},draw:function(e,n){var t=dn(e,!0,!1,"lineWidth"),r=Un((0,g.pi)({},t),["fill"]),i=this.parsePath(Pu(e.points,!1));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},r),{path:i}),name:"interval"})},getMarker:function(e){return{symbol:function(t,r,i){return[["M",t,r-i],["L",t,r+i]]},style:{r:5,stroke:e.color}}}}),Qe("interval","pyramid",{getPoints:function(e){return e.size=2*e.size,Ou(e)},draw:function(e,n){var t=dn(e,!1,!0),r=this.parsePath(Od(e.points,e.nextPoints,!0));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),Qe("interval","tick",{getPoints:function(e){return function i6(e){var n,o,s,t=e.x,r=e.y,i=e.y0,a=e.size;(0,v.kJ)(r)?(o=(n=(0,g.CR)(r,2))[0],s=n[1]):(o=i,s=r);var l=t+a/2,c=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:c,y:o},{x:l,y:o},{x:c,y:s},{x:l,y:s}]}(e)},draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(function a6(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(t,r,i){return[["M",t-i/2,r-i],["L",t+i/2,r-i],["M",t,r-i],["L",t,r+i],["M",t-i/2,r+i],["L",t+i/2,r+i]]},style:{r:5,stroke:e.color}}}});function zd(e){var n=(0,v.kJ)(e)?e:[e],t=n[0],r=n[n.length-1],i=n.length>1?n[1]:t;return{min:t,max:r,min1:i,max1:n.length>3?n[3]:r,median:n.length>2?n[2]:i}}function Bd(e,n,t){var i,r=t/2;if((0,v.kJ)(n)){var a=zd(n),f=e-r,p=e+r;i=[[f,s=a.max],[p,s],[e,s],[e,h=a.max1],[f,c=a.min1],[f,h],[p,h],[p,c],[e,c],[e,o=a.min],[f,o],[p,o],[f,l=a.median],[p,l]]}else{n=(0,v.UM)(n)?.5:n;var o,s,l,c,h,d=zd(e),y=n-r,m=n+r;i=[[o=d.min,y],[o,m],[o,n],[c=d.min1,n],[c,y],[c,m],[h=d.max1,m],[h,y],[h,n],[s=d.max,n],[s,y],[s,m],[l=d.median,y],[l,m]]}return i.map(function(x){return{x:x[0],y:x[1]}})}function Rd(e,n,t){var r=function h6(e){var t=((0,v.kJ)(e)?e:[e]).sort(function(r,i){return i-r});return function YM(e,n,t){if((0,v.HD)(e))return e.padEnd(n,t);if((0,v.kJ)(e)){var r=e.length;if(r1){var s=n.addGroup();try{for(var l=(0,g.XA)(a),c=l.next();!c.done;c=l.next()){var h=c.value;s.addShape("image",{attrs:{x:h.x-i/2,y:h.y-i,width:i,height:i,img:e.shape[1]}})}}catch(f){t={error:f}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return s}return n.addShape("image",{attrs:{x:o.x-i/2,y:o.y-i,width:i,height:i,img:e.shape[1]}})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),(0,v.S6)(Pd,function(e){Qe("point",e,{draw:function(n,t){return Bu(this,n,t,e,!1)},getMarker:function(n){return{symbol:Li[e]||e,style:{r:4.5,fill:n.color}}}})}),Qe("schema","box",{getPoints:function(e){return Bd(e.x,e.y,e.size)},draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(function u6(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r,name:"schema"})})},getMarker:function(e){return{symbol:function(t,r,i){var o=Bd(t,[r-6,r-3,r,r+3,r+6],i);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:e.color}}}}),Qe("schema","candle",{getPoints:function(e){return Rd(e.x,e.y,e.size)},draw:function(e,n){var t=dn(e,!0,!0),r=this.parsePath(function f6(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r,name:"schema"})})},getMarker:function(e){var n=e.color;return{symbol:function(t,r,i){var o=Rd(t,[r+7.5,r+3,r-3,r-7.5],i);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:n,fill:n,r:6}}}}),Qe("polygon","square",{draw:function(e,n){if(!(0,v.xb)(e.points)){var t=dn(e,!0,!0),r=this.parsePoints(e.points);return n.addShape("rect",{attrs:(0,g.pi)((0,g.pi)({},t),v6(r,e.size)),name:"polygon"})}},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),Qe("violin","smooth",{draw:function(e,n){var t=dn(e,!0,!0),r=this.parsePath(td(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{stroke:null,r:4,fill:e.color}}}}),Qe("violin","hollow",{draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(Kp(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}}),Qe("violin","hollow-smooth",{draw:function(e,n){var t=dn(e,!0,!1),r=this.parsePath(td(e.points));return n.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},t),{path:r})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}});var p6=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getLabelValueDir=function(t){var i=t.points;return i[0].y<=i[2].y?1:-1},n.prototype.getLabelOffsetPoint=function(t,r,i,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,r,i),l=this.getCoordinate(),h=l.isTransposed?"x":"y",f=this.getLabelValueDir(t.mappingData);return s=(0,g.pi)((0,g.pi)({},s),((o={})[h]=s[h]*f,o)),l.isReflect("x")&&(s=(0,g.pi)((0,g.pi)({},s),{x:-1*s.x})),l.isReflect("y")&&(s=(0,g.pi)((0,g.pi)({},s),{y:-1*s.y})),s},n.prototype.getThemedLabelCfg=function(t){var r=this.geometry,i=this.getDefaultLabelCfg();return(0,v.b$)({},i,r.theme.labels,"middle"===t.position?{offset:0}:{},t)},n.prototype.setLabelPosition=function(t,r,i,a){var p,d,y,m,o=this.getCoordinate(),s=o.isTransposed,l=r.points,c=o.convert(l[0]),h=o.convert(l[2]),f=this.getLabelValueDir(r),x=(0,v.kJ)(r.shape)?r.shape[0]:r.shape;if("funnel"===x||"pyramid"===x){var M=(0,v.U2)(r,"nextPoints"),C=(0,v.U2)(r,"points");if(M){var S=o.convert(C[0]),b=o.convert(C[1]),E=o.convert(M[0]),W=o.convert(M[1]);s?(p=Math.min(E.y,S.y),y=Math.max(E.y,S.y),d=(b.x+W.x)/2,m=(S.x+E.x)/2):(p=Math.min((b.y+W.y)/2,(S.y+E.y)/2),y=Math.max((b.y+W.y)/2,(S.y+E.y)/2),d=W.x,m=S.x)}else p=Math.min(h.y,c.y),y=Math.max(h.y,c.y),d=h.x,m=c.x}else p=Math.min(h.y,c.y),y=Math.max(h.y,c.y),d=h.x,m=c.x;switch(a){case"right":t.x=d,t.y=(p+y)/2,t.textAlign=(0,v.U2)(t,"textAlign",f>0?"left":"right");break;case"left":t.x=m,t.y=(p+y)/2,t.textAlign=(0,v.U2)(t,"textAlign",f>0?"left":"right");break;case"bottom":s&&(t.x=(d+m)/2),t.y=y,t.textAlign=(0,v.U2)(t,"textAlign","center"),t.textBaseline=(0,v.U2)(t,"textBaseline",f>0?"bottom":"top");break;case"middle":s&&(t.x=(d+m)/2),t.y=(p+y)/2,t.textAlign=(0,v.U2)(t,"textAlign","center"),t.textBaseline=(0,v.U2)(t,"textBaseline","middle");break;case"top":s&&(t.x=(d+m)/2),t.y=p,t.textAlign=(0,v.U2)(t,"textAlign","center"),t.textBaseline=(0,v.U2)(t,"textBaseline",f>0?"bottom":"top")}},n}(Ns);const d6=p6;var qs=Math.PI/2,g6=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getLabelOffset=function(t){var r=this.getCoordinate(),i=0;if((0,v.hj)(t))i=t;else if((0,v.HD)(t)&&-1!==t.indexOf("%")){var a=r.getRadius();r.innerRadius>0&&(a*=1-r.innerRadius),i=.01*parseFloat(t)*a}return i},n.prototype.getLabelItems=function(t){var r=e.prototype.getLabelItems.call(this,t),i=this.geometry.getYScale();return(0,v.UI)(r,function(a){if(a&&i){var o=i.scale((0,v.U2)(a.data,i.field));return(0,g.pi)((0,g.pi)({},a),{percent:o})}return a})},n.prototype.getLabelAlign=function(t){var i,r=this.getCoordinate();if(t.labelEmit)i=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(r.isTransposed){var a=r.getCenter(),o=t.offset;i=Math.abs(t.x-a.x)<1?"center":t.angle>Math.PI||t.angle<=0?o>0?"left":"right":o>0?"right":"left"}else i="center";return i},n.prototype.getLabelPoint=function(t,r,i){var o,a=1,s=t.content[i];this.isToMiddle(r)?o=this.getMiddlePoint(r.points):(1===t.content.length&&0===i?i=1:0===i&&(a=-1),o=this.getArcPoint(r,i));var l=t.offset*a,c=this.getPointAngle(o),h=t.labelEmit,f=this.getCirclePoint(c,l,o,h);return 0===f.r?f.content="":(f.content=s,f.angle=c,f.color=r.color),f.rotate=t.autoRotate?this.getLabelRotate(c,l,h):t.rotate,f.start={x:o.x,y:o.y},f},n.prototype.getArcPoint=function(t,r){return void 0===r&&(r=0),(0,v.kJ)(t.x)||(0,v.kJ)(t.y)?{x:(0,v.kJ)(t.x)?t.x[r]:t.x,y:(0,v.kJ)(t.y)?t.y[r]:t.y}:{x:t.x,y:t.y}},n.prototype.getPointAngle=function(t){return va(this.getCoordinate(),t)},n.prototype.getCirclePoint=function(t,r,i,a){var o=this.getCoordinate(),s=o.getCenter(),l=Ts(o,i);if(0===l)return(0,g.pi)((0,g.pi)({},s),{r:l});var c=t;return o.isTransposed&&l>r&&!a?c=t+2*Math.asin(r/(2*l)):l+=r,{x:s.x+l*Math.cos(c),y:s.y+l*Math.sin(c),r:l}},n.prototype.getLabelRotate=function(t,r,i){var a=t+qs;return i&&(a-=qs),a&&(a>qs?a-=Math.PI:a<-qs&&(a+=Math.PI)),a},n.prototype.getMiddlePoint=function(t){var r=this.getCoordinate(),i=t.length,a={x:0,y:0};return(0,v.S6)(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=i,a.y/=i,a=r.convert(a)},n.prototype.isToMiddle=function(t){return t.x.length>2},n}(Ns);const Nd=g6;var y6=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return(0,g.ZT)(n,e),n.prototype.getDefaultLabelCfg=function(t,r){var i=e.prototype.getDefaultLabelCfg.call(this,t,r);return(0,v.b$)({},i,(0,v.U2)(this.geometry.theme,"pieLabels",{}))},n.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},n.prototype.getLabelRotate=function(t,r,i){var a;return r<0&&((a=t)>Math.PI/2&&(a-=Math.PI),a<-Math.PI/2&&(a+=Math.PI)),a},n.prototype.getLabelAlign=function(t){var a,i=this.getCoordinate().getCenter();return a=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right",t.offset<=0&&(a="right"===a?"left":"right"),a},n.prototype.getArcPoint=function(t){return t},n.prototype.getPointAngle=function(t){var o,r=this.getCoordinate(),i={x:(0,v.kJ)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:(0,v.kJ)(t.x)?t.x[1]:t.x,y:t.y[1]},s=va(r,i);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=va(r,a);s>=l&&(l+=2*Math.PI),o=s+(l-s)/2}return o},n.prototype.getCirclePoint=function(t,r){var i=this.getCoordinate(),a=i.getCenter(),o=i.getRadius()+r;return(0,g.pi)((0,g.pi)({},yn(a.x,a.y,o,t)),{angle:t,r:o})},n}(Nd);const m6=y6;function Ud(e,n,t){var r=e.filter(function(y){return!y.invisible});r.sort(function(y,m){return y.y-m.y});var l,i=!0,a=t.minY,s=Math.abs(a-t.maxY),c=0,h=Number.MIN_VALUE,f=r.map(function(y){return y.y>c&&(c=y.y),y.ys&&(s=c-a);i;)for(f.forEach(function(y){var m=(Math.min.apply(h,y.targets)+Math.max.apply(h,y.targets))/2;y.pos=Math.min(Math.max(h,m-y.size/2),s-y.size),y.pos=Math.max(0,y.pos)}),i=!1,l=f.length;l--;)if(l>0){var p=f[l-1],d=f[l];p.pos+p.size>d.pos&&(p.size+=d.size,p.targets=p.targets.concat(d.targets),p.pos+p.size>s&&(p.pos=s-p.size),f.splice(l,1),i=!0)}l=0,f.forEach(function(y){var m=a+n/2;y.targets.forEach(function(){r[l].y=y.pos+m,m+=n,l++})})}var Gd=function(){function e(n){void 0===n&&(n={}),this.bitmap={};var t=n.xGap,i=n.yGap,a=void 0===i?8:i;this.xGap=void 0===t?1:t,this.yGap=a}return e.prototype.hasGap=function(n){for(var t=!0,r=this.bitmap,i=Math.round(n.minX),a=Math.round(n.maxX),o=Math.round(n.minY),s=Math.round(n.maxY),l=i;l<=a;l+=1)if(r[l]){if(l===i||l===a){for(var c=o;c<=s;c++)if(r[l][c]){t=!1;break}}else if(r[l][o]||r[l][s]){t=!1;break}}else r[l]={};return t},e.prototype.fillGap=function(n){for(var t=this.bitmap,r=Math.round(n.minX),i=Math.round(n.maxX),a=Math.round(n.minY),o=Math.round(n.maxY),s=r;s<=i;s+=1)t[s]||(t[s]={});for(s=r;s<=i;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(1!==this.yGap)for(s=a;s<=o;s+=1)t[r][s]=!0,t[i][s]=!0;if(1!==this.xGap)for(s=r;s<=i;s+=1)t[s][a]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function k6(e,n,t,r){var i=e.getCanvasBBox(),a=i.width,o=i.height,s={x:n,y:t,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return e.attr(s),e.getCanvasBBox()}function Zd(e){if(e.length>4)return[];var n=function(i,a){return[a.x-i.x,a.y-i.y]};return[n(e[0],e[1]),n(e[1],e[2])]}function js(e,n,t){void 0===n&&(n=0),void 0===t&&(t={x:0,y:0});var r=e.x,i=e.y;return{x:(r-t.x)*Math.cos(-n)+(i-t.y)*Math.sin(-n)+t.x,y:(t.x-r)*Math.sin(-n)+(i-t.y)*Math.cos(-n)+t.y}}function Wd(e){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],t=e.rotation;return t?[js(n[0],t,n[0]),js(n[1],t,n[0]),js(n[2],t,n[0]),js(n[3],t,n[0])]:n}function Xd(e,n){if(e.length>4)return{min:0,max:0};var t=[];return e.forEach(function(r){t.push(function L6(e,n){return(e[0]||0)*(n[0]||0)+(e[1]||0)*(n[1]||0)+(e[2]||0)*(n[2]||0)}([r.x,r.y],n))}),{min:Math.min.apply(Math,(0,g.ev)([],(0,g.CR)(t),!1)),max:Math.max.apply(Math,(0,g.ev)([],(0,g.CR)(t),!1))}}function O6(e,n){return e.max>n.min&&e.mine.x+e.width+t||n.x+n.widthe.y+e.height+t||n.y+n.heightS.x+S.width+E||b.x+b.widthS.y+S.height+E||b.y+b.height"u")){var n;try{n=new Blob([e.toString()],{type:"application/javascript"})}catch{(n=new window.BlobBuilder).append(e.toString()),n=n.getBlob()}return new R6(URL.createObjectURL(n))}}(U6),Qd={"#5B8FF9":!0};function qd(e,n,t){return e.some(function(r){return t(r,n)})}function jd(e,n){return qd(e,n,function(t,r){var i=hi(t),a=hi(r);return function j6(e,n,t){return void 0===t&&(t=0),Math.max(0,Math.min(e.x+e.width+t,n.x+n.width+t)-Math.max(e.x-t,n.x-t))*Math.max(0,Math.min(e.y+e.height+t,n.y+n.height+t)-Math.max(e.y-t,n.y-t))}(i.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function Kd(e,n,t){return e.some(function(r){return t(r,n)})}function tg(e,n){return Kd(e,n,function(t,r){var i=hi(t),a=hi(r);return function e3(e,n,t){return void 0===t&&(t=0),Math.max(0,Math.min(e.x+e.width+t,n.x+n.width+t)-Math.max(e.x-t,n.x-t))*Math.max(0,Math.min(e.y+e.height+t,n.y+n.height+t)-Math.max(e.y-t,n.y-t))}(i.getCanvasBBox(),a.getCanvasBBox(),2)>0})}var Ks=(0,v.HP)(function(e,n){void 0===n&&(n={});var t=n.fontSize,r=n.fontFamily,i=n.fontWeight,a=n.fontStyle,o=n.fontVariant,s=function r3(){return Hu||(Hu=document.createElement("canvas").getContext("2d")),Hu}();return s.font=[a,o,i,"".concat(t,"px"),r].join(" "),s.measureText((0,v.HD)(e)?e:"").width},function(e,n){return void 0===n&&(n={}),(0,g.ev)([e],(0,g.CR)((0,v.VO)(n)),!1).join("")});function Gu(e,n,t,r,i){var c,h,a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight();"y"===i?(c=a.x+s/2,h=r.ya.x?r.x:a.x,h=a.y+l/2):"xy"===i&&(t.isPolar?(c=t.getCenter().x,h=t.getCenter().y):(c=(a.x+o.x)/2,h=(a.y+o.y)/2));var f=function l3(e,n,t){var r,i=(0,g.CR)(n,2),a=i[0],o=i[1];return e.applyToMatrix([a,o,1]),"x"===t?(e.setMatrix(an.vs(e.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),r=an.vs(e.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===t?(e.setMatrix(an.vs(e.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),r=an.vs(e.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===t&&(e.setMatrix(an.vs(e.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),r=an.vs(e.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),r}(e,[c,h],i);e.animate({matrix:f},n)}function eg(e,n){var t,r=Ys(e,n),i=r.startAngle,a=r.endAngle;return!(0,v.vQ)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!(0,v.vQ)(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===n[5]&&(i=(t=(0,g.CR)([a,i],2))[0],a=t[1]),(0,v.vQ)(i,1.5*Math.PI)&&(i=-.5*Math.PI),(0,v.vQ)(a,-.5*Math.PI)&&!(0,v.vQ)(i,a)&&(a=1.5*Math.PI),{startAngle:i,endAngle:a}}function ng(e){var n;return"M"===e[0]||"L"===e[0]?n=[e[1],e[2]]:("a"===e[0]||"A"===e[0]||"C"===e[0])&&(n=[e[e.length-2],e[e.length-1]]),n}function rg(e){var n,t,r,i=e.filter(function(S){return"A"===S[0]||"a"===S[0]});if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=i[0],o=i.length>1?i[1]:i[0],s=e.indexOf(a),l=e.indexOf(o),c=ng(e[s-1]),h=ng(e[l-1]),f=eg(c,a),p=f.startAngle,d=f.endAngle,y=eg(h,o),m=y.startAngle,x=y.endAngle;(0,v.vQ)(p,m)&&(0,v.vQ)(d,x)?(t=p,r=d):(t=Math.min(p,m),r=Math.max(d,x));var M=a[1],C=i[i.length-1][1];return M=0;c--){var h=this.getFacetsByLevel(t,c);try{for(var f=(r=void 0,(0,g.XA)(h)),p=f.next();!p.done;p=f.next()){var d=p.value;this.isLeaf(d)||(d.originColIndex=d.columnIndex,d.columnIndex=this.getRegionIndex(d.children),d.columnValuesLength=o.length)}}catch(y){r={error:y}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}},n.prototype.getFacetsByLevel=function(t,r){var i=[];return t.forEach(function(a){a.rowIndex===r&&i.push(a)}),i},n.prototype.getRegionIndex=function(t){var r=t[0];return(t[t.length-1].columnIndex-r.columnIndex)/2+r.columnIndex},n.prototype.isLeaf=function(t){return!t.children||!t.children.length},n.prototype.getRows=function(){return this.cfg.fields.length+1},n.prototype.getChildFacets=function(t,r,i){var a=this,o=this.cfg.fields;if(!(o.length=d){var x=i.parsePosition([y[l],y[s.field]]);x&&p.push(x)}if(y[l]===f)return!1}),p},n.prototype.parsePercentPosition=function(t){var r=parseFloat(t[0])/100,i=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l_x=Math.min(o.x,s.x),l_y=Math.min(o.y,s.y);return{x:a.getWidth()*r+l_x,y:a.getHeight()*i+l_y}},n.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),r=t.start,i=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(r.x,i.x),y:Math.min(r.y,i.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},n.prototype.getAnnotationCfg=function(t,r,i){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if((0,v.UM)(r))return null;var h=r.end,f=r.position,p=this.parsePosition(r.start),d=this.parsePosition(h),y=this.parsePosition(f);if(["arc","image","line","region","regionFilter"].includes(t)&&(!p||!d))return null;if(["text","dataMarker","html"].includes(t)&&!y)return null;if("arc"===t){var C=(0,g._T)(r,["start","end"]),S=va(o,p),b=va(o,d);S>b&&(b=2*Math.PI+b),l=(0,g.pi)((0,g.pi)({},C),{center:o.getCenter(),radius:Ts(o,p),startAngle:S,endAngle:b})}else if("image"===t)C=(0,g._T)(r,["start","end"]),l=(0,g.pi)((0,g.pi)({},C),{start:p,end:d,src:r.src});else if("line"===t)C=(0,g._T)(r,["start","end"]),l=(0,g.pi)((0,g.pi)({},C),{start:p,end:d,text:(0,v.U2)(r,"text",null)});else if("region"===t)C=(0,g._T)(r,["start","end"]),l=(0,g.pi)((0,g.pi)({},C),{start:p,end:d});else if("text"===t){var _e=this.view.getData(),fe=r.content,Se=(C=(0,g._T)(r,["position","content"]),fe);(0,v.mf)(fe)&&(Se=fe(_e)),l=(0,g.pi)((0,g.pi)((0,g.pi)({},y),C),{content:Se})}else if("dataMarker"===t){var Fe=r.point,He=r.line,We=r.text,Re=r.autoAdjust,Xe=r.direction;C=(0,g._T)(r,["position","point","line","text","autoAdjust","direction"]),l=(0,g.pi)((0,g.pi)((0,g.pi)({},C),y),{coordinateBBox:this.getCoordinateBBox(),point:Fe,line:He,text:We,autoAdjust:Re,direction:Xe})}else if("dataRegion"===t){var mn=r.start,xn=r.end,Ir=r.region,Ji=(We=r.text,r.lineLength);C=(0,g._T)(r,["start","end","region","text","lineLength"]),l=(0,g.pi)((0,g.pi)({},C),{points:this.getRegionPoints(mn,xn),region:Ir,text:We,lineLength:Ji})}else if("regionFilter"===t){var Pm=r.apply,PL=r.color,zm=(C=(0,g._T)(r,["start","end","apply","color"]),[]),df=function(Dr){Dr&&(Dr.isGroup()?Dr.getChildren().forEach(function(Xo){return df(Xo)}):zm.push(Dr))};(0,v.S6)(this.view.geometries,function(Dr){Pm?(0,v.FX)(Pm,Dr.type)&&(0,v.S6)(Dr.elements,function(Xo){df(Xo.shape)}):(0,v.S6)(Dr.elements,function(Xo){df(Xo.shape)})}),l=(0,g.pi)((0,g.pi)({},C),{color:PL,shapes:zm,start:p,end:d})}else if("shape"===t){var BL=r.render,gf=(0,g._T)(r,["render"]);l=(0,g.pi)((0,g.pi)({},gf),{render:function(VL){if((0,v.mf)(r.render))return BL(VL,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var mf=r.html;gf=(0,g._T)(r,["html","position"]),l=(0,g.pi)((0,g.pi)((0,g.pi)({},gf),y),{parent:s.get("el").parentNode,html:function(Dr){return(0,v.mf)(mf)?mf(Dr,a.view):mf}})}var Ci=(0,v.b$)({},i,(0,g.pi)((0,g.pi)({},l),{top:r.top,style:r.style,offsetX:r.offsetX,offsetY:r.offsetY}));return"html"!==t&&(Ci.container=this.getComponentContainer(Ci)),Ci.animate=this.view.getOptions().animate&&Ci.animate&&(0,v.U2)(r,"animate",Ci.animate),Ci.animateOption=(0,v.b$)({},xa,Ci.animateOption,r.animateOption),Ci},n.prototype.isTop=function(t){return(0,v.U2)(t,"top",!0)},n.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},n.prototype.getAnnotationTheme=function(t){return(0,v.U2)(this.view.getTheme(),["components","annotation",t],{})},n.prototype.updateOrCreate=function(t){var r=this.cache.get(this.getCacheKey(t));if(r){var i=t.type,a=this.getAnnotationTheme(i),o=this.getAnnotationCfg(i,t,a);o&&Un(o,["container"]),r.component.update((0,g.pi)((0,g.pi)({},o||{}),{visible:!!o})),(0,v.q9)(el,t.type)&&r.component.render()}else(r=this.createAnnotation(t))&&(r.component.init(),(0,v.q9)(el,t.type)&&r.component.render());return r},n.prototype.syncCache=function(t){var r=this,i=new Map(this.cache);return t.forEach(function(a,o){i.set(o,a)}),i.forEach(function(a,o){(0,v.sE)(r.option,function(s){return o===r.getCacheKey(s)})||(a.component.destroy(),i.delete(o))}),i},n.prototype.getCacheKey=function(t){return t},n}(ma);const O3=L3;function ag(e,n){var t=(0,v.b$)({},(0,v.U2)(e,["components","axis","common"]),(0,v.U2)(e,["components","axis",n]));return(0,v.U2)(t,["grid"],{})}function nl(e,n,t,r){var i=[],a=n.getTicks();return e.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var c=s.value;if(r)i.push({points:[e.convert("y"===t?{x:0,y:c}:{x:c,y:0}),e.convert("y"===t?{x:1,y:c}:{x:c,y:1})]});else if(l){var f=(o.value+c)/2;i.push({points:[e.convert("y"===t?{x:0,y:f}:{x:f,y:0}),e.convert("y"===t?{x:1,y:f}:{x:f,y:1})]})}return s},a[0]),i}function Xu(e,n,t,r,i){var a=n.values.length,o=[],s=t.getTicks();return s.reduce(function(l,c){var f=c.value,p=((l?l.value:c.value)+f)/2;return o.push("x"===i?{points:[e.convert({x:r?f:p,y:0}),e.convert({x:r?f:p,y:1})]}:{points:(0,v.UI)(Array(a+1),function(d,y){return e.convert({x:y/a,y:r?f:p})})}),c},s[0]),o}function og(e,n){var t=(0,v.U2)(n,"grid");if(null===t)return!1;var r=(0,v.U2)(e,"grid");return!(void 0===t&&null===r)}var pi=["container"],sg=(0,g.pi)((0,g.pi)({},xa),{appear:null}),P3=function(e){function n(t){var r=e.call(this,t)||this;return r.cache=new Map,r.gridContainer=r.view.getLayer(gn.BG).addGroup(),r.gridForeContainer=r.view.getLayer(gn.FORE).addGroup(),r.axisContainer=r.view.getLayer(gn.BG).addGroup(),r.axisForeContainer=r.view.getLayer(gn.FORE).addGroup(),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.render=function(){this.update()},n.prototype.layout=function(){var t=this,r=this.view.getCoordinate();(0,v.S6)(this.getComponents(),function(i){var p,a=i.component,o=i.direction,s=i.type,l=i.extra,c=l.dim,h=l.scale,f=l.alignTick;s===_n.AXIS?r.isPolar?"x"===c?p=r.isTransposed?As(r,o):iu(r):"y"===c&&(p=r.isTransposed?iu(r):As(r,o)):p=As(r,o):s===_n.GRID&&(p=r.isPolar?{items:r.isTransposed?"x"===c?Xu(r,t.view.getYScales()[0],h,f,c):nl(r,h,c,f):"x"===c?nl(r,h,c,f):Xu(r,t.view.getXScale(),h,f,c),center:t.view.getCoordinate().getCenter()}:{items:nl(r,h,c,f)}),a.update(p)})},n.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var r=new Map;this.cache.forEach(function(i,a){t.has(a)?r.set(a,i):i.component.destroy()}),this.cache=r},n.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},n.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(r){t.push(r)}),t},n.prototype.updateXAxes=function(t){var r=this.view.getXScale();if(r&&!r.isIdentity){var i=Es(this.option,r.field);if(!1!==i){var a=rp(i,ue.BOTTOM),o=gn.BG,s="x",l=this.view.getCoordinate(),c=this.getId("axis",r.field),h=this.getId("grid",r.field);if(l.isRect)(f=this.cache.get(c))?(Un(p=this.getLineAxisCfg(r,i,a),pi),f.component.update(p),t.set(c,f)):(f=this.createLineAxis(r,i,o,a,s),this.cache.set(c,f),t.set(c,f)),(d=this.cache.get(h))?(Un(p=this.getLineGridCfg(r,i,a,s),pi),d.component.update(p),t.set(h,d)):(d=this.createLineGrid(r,i,o,a,s))&&(this.cache.set(h,d),t.set(h,d));else if(l.isPolar){var f,d;if(f=this.cache.get(c))Un(p=l.isTransposed?this.getLineAxisCfg(r,i,ue.RADIUS):this.getCircleAxisCfg(r,i,a),pi),f.component.update(p),t.set(c,f);else{if(l.isTransposed){if((0,v.o8)(i))return;f=this.createLineAxis(r,i,o,ue.RADIUS,s)}else f=this.createCircleAxis(r,i,o,a,s);this.cache.set(c,f),t.set(c,f)}if(d=this.cache.get(h)){var p;Un(p=l.isTransposed?this.getCircleGridCfg(r,i,ue.RADIUS,s):this.getLineGridCfg(r,i,ue.CIRCLE,s),pi),d.component.update(p),t.set(h,d)}else{if(l.isTransposed){if((0,v.o8)(i))return;d=this.createCircleGrid(r,i,o,ue.RADIUS,s)}else d=this.createLineGrid(r,i,o,ue.CIRCLE,s);d&&(this.cache.set(h,d),t.set(h,d))}}}}},n.prototype.updateYAxes=function(t){var r=this,i=this.view.getYScales();(0,v.S6)(i,function(a,o){if(a&&!a.isIdentity){var s=a.field,l=Es(r.option,s);if(!1!==l){var c=gn.BG,h="y",f=r.getId("axis",s),p=r.getId("grid",s),d=r.view.getCoordinate();if(d.isRect){var y=rp(l,0===o?ue.LEFT:ue.RIGHT);(m=r.cache.get(f))?(Un(x=r.getLineAxisCfg(a,l,y),pi),m.component.update(x),t.set(f,m)):(m=r.createLineAxis(a,l,c,y,h),r.cache.set(f,m),t.set(f,m)),(M=r.cache.get(p))?(Un(x=r.getLineGridCfg(a,l,y,h),pi),M.component.update(x),t.set(p,M)):(M=r.createLineGrid(a,l,c,y,h))&&(r.cache.set(p,M),t.set(p,M))}else if(d.isPolar){var m,M;if(m=r.cache.get(f))Un(x=d.isTransposed?r.getCircleAxisCfg(a,l,ue.CIRCLE):r.getLineAxisCfg(a,l,ue.RADIUS),pi),m.component.update(x),t.set(f,m);else{if(d.isTransposed){if((0,v.o8)(l))return;m=r.createCircleAxis(a,l,c,ue.CIRCLE,h)}else m=r.createLineAxis(a,l,c,ue.RADIUS,h);r.cache.set(f,m),t.set(f,m)}if(M=r.cache.get(p)){var x;Un(x=d.isTransposed?r.getLineGridCfg(a,l,ue.CIRCLE,h):r.getCircleGridCfg(a,l,ue.RADIUS,h),pi),M.component.update(x),t.set(p,M)}else{if(d.isTransposed){if((0,v.o8)(l))return;M=r.createLineGrid(a,l,c,ue.CIRCLE,h)}else M=r.createCircleGrid(a,l,c,ue.RADIUS,h);M&&(r.cache.set(p,M),t.set(p,M))}}}}})},n.prototype.createLineAxis=function(t,r,i,a,o){var s={component:new PM(this.getLineAxisCfg(t,r,a)),layer:i,direction:a===ue.RADIUS?ue.NONE:a,type:_n.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},n.prototype.createLineGrid=function(t,r,i,a,o){var s=this.getLineGridCfg(t,r,a,o);if(s){var l={component:new BM(s),layer:i,direction:ue.NONE,type:_n.GRID,extra:{dim:o,scale:t,alignTick:(0,v.U2)(s,"alignTick",!0)}};return l.component.init(),l}},n.prototype.createCircleAxis=function(t,r,i,a,o){var s={component:new zM(this.getCircleAxisCfg(t,r,a)),layer:i,direction:a,type:_n.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},n.prototype.createCircleGrid=function(t,r,i,a,o){var s=this.getCircleGridCfg(t,r,a,o);if(s){var l={component:new RM(s),layer:i,direction:ue.NONE,type:_n.GRID,extra:{dim:o,scale:t,alignTick:(0,v.U2)(s,"alignTick",!0)}};return l.component.init(),l}},n.prototype.getLineAxisCfg=function(t,r,i){var a=(0,v.U2)(r,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=As(o,i),l=ip(t,r),c=Fs(this.view.getTheme(),i),h=(0,v.U2)(r,["title"])?(0,v.b$)({title:{style:{text:l}}},{title:np(this.view.getTheme(),i,r.title)},r):r,f=(0,v.b$)((0,g.pi)((0,g.pi)({container:a},s),{ticks:t.getTicks().map(function(S){return{id:"".concat(S.tickValue),name:S.text,value:S.value}}),verticalFactor:o.isPolar?-1*ep(s,o.getCenter()):ep(s,o.getCenter()),theme:c}),c,h),p=this.getAnimateCfg(f),d=p.animate;f.animateOption=p.animateOption,f.animate=d;var m=tp(s),x=(0,v.U2)(f,"verticalLimitLength",m?1/3:.5);if(x<=1){var M=this.view.getCanvas().get("width"),C=this.view.getCanvas().get("height");f.verticalLimitLength=x*(m?M:C)}return f},n.prototype.getLineGridCfg=function(t,r,i,a){if(og(Fs(this.view.getTheme(),i),r)){var o=ag(this.view.getTheme(),i),s=(0,v.b$)({container:(0,v.U2)(r,["top"])?this.gridForeContainer:this.gridContainer},o,(0,v.U2)(r,"grid"),this.getAnimateCfg(r));return s.items=nl(this.view.getCoordinate(),t,a,(0,v.U2)(s,"alignTick",!0)),s}},n.prototype.getCircleAxisCfg=function(t,r,i){var a=(0,v.U2)(r,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(m){return{id:"".concat(m.tickValue),name:m.text,value:m.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===2*Math.PI&&s.length&&(s[s.length-1].name="");var l=ip(t,r),c=Fs(this.view.getTheme(),ue.CIRCLE),h=(0,v.U2)(r,["title"])?(0,v.b$)({title:{style:{text:l}}},{title:np(this.view.getTheme(),i,r.title)},r):r,f=(0,v.b$)((0,g.pi)((0,g.pi)({container:a},iu(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:c}),c,h),p=this.getAnimateCfg(f),y=p.animateOption;return f.animate=p.animate,f.animateOption=y,f},n.prototype.getCircleGridCfg=function(t,r,i,a){if(og(Fs(this.view.getTheme(),i),r)){var o=ag(this.view.getTheme(),ue.RADIUS),s=(0,v.b$)({container:(0,v.U2)(r,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,v.U2)(r,"grid"),this.getAnimateCfg(r)),l=(0,v.U2)(s,"alignTick",!0),c="x"===a?this.view.getYScales()[0]:this.view.getXScale();return s.items=Xu(this.view.getCoordinate(),c,t,l,a),s}},n.prototype.getId=function(t,r){var i=this.view.getCoordinate();return"".concat(t,"-").concat(r,"-").concat(i.type)},n.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,v.U2)(t,"animate"),animateOption:t&&t.animateOption?(0,v.b$)({},sg,t.animateOption):sg}},n}(ma);const z3=P3;function di(e,n,t){return t===ue.TOP?[e.minX+e.width/2-n.width/2,e.minY]:t===ue.BOTTOM?[e.minX+e.width/2-n.width/2,e.maxY-n.height]:t===ue.LEFT?[e.minX,e.minY+e.height/2-n.height/2]:t===ue.RIGHT?[e.maxX-n.width,e.minY+e.height/2-n.height/2]:t===ue.TOP_LEFT||t===ue.LEFT_TOP?[e.tl.x,e.tl.y]:t===ue.TOP_RIGHT||t===ue.RIGHT_TOP?[e.tr.x-n.width,e.tr.y]:t===ue.BOTTOM_LEFT||t===ue.LEFT_BOTTOM?[e.bl.x,e.bl.y-n.height]:t===ue.BOTTOM_RIGHT||t===ue.RIGHT_BOTTOM?[e.br.x-n.width,e.br.y-n.height]:[0,0]}function ug(e,n){return(0,v.jn)(e)?!1!==e&&{}:(0,v.U2)(e,[n],e)}function rl(e){return(0,v.U2)(e,"position",ue.BOTTOM)}var V3=function(e){function n(t){var r=e.call(this,t)||this;return r.container=r.view.getLayer(gn.FORE).addGroup(),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.render=function(){this.update()},n.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,v.S6)(this.components,function(r){var i=r.component,a=r.direction,o=yu(a),s=i.get("maxWidthRatio"),l=i.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(o,s,l),h=i.get("maxWidth"),f=i.get("maxHeight");i.update({maxWidth:Math.min(c.maxWidth,h||0),maxHeight:Math.min(c.maxHeight,f||0)});var p=i.get("padding"),d=i.getLayoutBBox(),y=new On(d.x,d.y,d.width,d.height).expand(p),m=(0,g.CR)(di(t.view.viewBBox,y,a),2),x=m[0],M=m[1],C=(0,g.CR)(di(t.layoutBBox,y,a),2),S=C[0],b=C[1],E=0,W=0;a.startsWith("top")||a.startsWith("bottom")?(E=x,W=b):(E=S,W=M),i.setLocation({x:E+p[3],y:W+p[0]}),t.layoutBBox=t.layoutBBox.cut(y,a)})},n.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var r={};if((0,v.U2)(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Un(s,["container"]),o.component.update(s),r[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var c=gn.FORE,h=rl(this.option);this.components.push({id:a,component:l,layer:c,direction:h,type:_n.LEGEND,extra:void 0}),r[a]=!0}}}else this.loopLegends(function(p,d,y){var m=t.getId(y.field),x=t.getComponentById(m);if(x){var M=void 0,C=ug(t.option,y.field);!1!==C&&((0,v.U2)(C,"custom")?M=t.getCategoryCfg(p,d,y,C,!0):y.isLinear?M=t.getContinuousCfg(p,d,y,C):y.isCategory&&(M=t.getCategoryCfg(p,d,y,C))),M&&(Un(M,["container"]),x.direction=rl(C),x.component.update(M),r[m]=!0)}else{var S=t.createFieldLegend(p,d,y);S&&(S.component.init(),t.components.push(S),r[m]=!0)}});var f=[];(0,v.S6)(this.getComponents(),function(p){r[p.id]?f.push(p):p.component.destroy()}),this.components=f},n.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},n.prototype.getGeometries=function(t){var r=this,i=t.geometries;return(0,v.S6)(t.views,function(a){i=i.concat(r.getGeometries(a))}),i},n.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var i=this.getGeometries(this.view),a={};(0,v.S6)(i,function(o){var s=o.getGroupAttributes();(0,v.S6)(s,function(l){var c=l.getScale(l.type);!c||"identity"===c.type||a[c.field]||(t(o,l,c),a[c.field]=!0)})})}},n.prototype.createFieldLegend=function(t,r,i){var a,o=ug(this.option,i.field),s=gn.FORE,l=rl(o);if(!1!==o&&((0,v.U2)(o,"custom")?a=this.createCustomLegend(t,r,i,o):i.isLinear?a=this.createContinuousLegend(t,r,i,o):i.isCategory&&(a=this.createCategoryLegend(t,r,i,o))),a)return a.set("field",i.field),{id:this.getId(i.field),component:a,layer:s,direction:l,type:_n.LEGEND,extra:{scale:i}}},n.prototype.createCustomLegend=function(t,r,i,a){var o=this.getCategoryCfg(t,r,i,a,!0);return new Xv(o)},n.prototype.createContinuousLegend=function(t,r,i,a){var o=this.getContinuousCfg(t,r,i,Un(a,["value"]));return new NM(o)},n.prototype.createCategoryLegend=function(t,r,i,a){var o=this.getCategoryCfg(t,r,i,a);return new Xv(o)},n.prototype.getContinuousCfg=function(t,r,i,a){var o=i.getTicks(),s=(0,v.sE)(o,function(m){return 0===m.value}),l=(0,v.sE)(o,function(m){return 1===m.value}),c=o.map(function(m){var x=m.value,M=m.tickValue,C=r.mapping(i.invert(x)).join("");return{value:M,attrValue:C,color:C,scaleValue:x}});s||c.push({value:i.min,attrValue:r.mapping(i.invert(0)).join(""),color:r.mapping(i.invert(0)).join(""),scaleValue:0}),l||c.push({value:i.max,attrValue:r.mapping(i.invert(1)).join(""),color:r.mapping(i.invert(1)).join(""),scaleValue:1}),c.sort(function(m,x){return m.value-x.value});var h={min:(0,v.YM)(c).value,max:(0,v.Z$)(c).value,colors:[],rail:{type:r.type},track:{}};"size"===r.type&&(h.track={style:{fill:"size"===r.type?this.view.getTheme().defaultColor:void 0}}),"color"===r.type&&(h.colors=c.map(function(m){return m.attrValue}));var f=this.container,d=yu(rl(a)),y=(0,v.U2)(a,"title");return y&&(y=(0,v.b$)({text:co(i)},y)),h.container=f,h.layout=d,h.title=y,h.animateOption=xa,this.mergeLegendCfg(h,a,"continuous")},n.prototype.getCategoryCfg=function(t,r,i,a,o){var s=this.container,l=(0,v.U2)(a,"position",ue.BOTTOM),c=qp(this.view.getTheme(),l),h=(0,v.U2)(c,["marker"]),f=(0,v.U2)(a,"marker"),p=yu(l),d=(0,v.U2)(c,["pageNavigator"]),y=(0,v.U2)(a,"pageNavigator"),m=o?function ww(e,n,t){return t.map(function(r,i){var a=n;(0,v.mf)(a)&&(a=a(r.name,i,(0,v.b$)({},e,r)));var o=(0,v.mf)(r.marker)?r.marker(r.name,i,(0,v.b$)({},e,r)):r.marker,s=(0,v.b$)({},e,a,o);return Jp(s),r.marker=s,r})}(h,f,a.items):Qp(this.view,t,r,h,f),x=(0,v.U2)(a,"title");x&&(x=(0,v.b$)({text:i?co(i):""},x));var M=(0,v.U2)(a,"maxWidthRatio"),C=(0,v.U2)(a,"maxHeightRatio"),S=this.getCategoryLegendSizeCfg(p,M,C);S.container=s,S.layout=p,S.items=m,S.title=x,S.animateOption=xa,S.pageNavigator=(0,v.b$)({},d,y);var b=this.mergeLegendCfg(S,a,l);b.reversed&&b.items.reverse();var E=(0,v.U2)(b,"maxItemWidth");return E&&E<=1&&(b.maxItemWidth=this.view.viewBBox.width*E),b},n.prototype.mergeLegendCfg=function(t,r,i){var a=i.split("-")[0],o=qp(this.view.getTheme(),a);return(0,v.b$)({},o,t,r)},n.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},n.prototype.getComponentById=function(t){return(0,v.sE)(this.components,function(r){return r.id===t})},n.prototype.getCategoryLegendSizeCfg=function(t,r,i){void 0===r&&(r=.25),void 0===i&&(i=.25);var a=this.view.viewBBox,o=a.width,s=a.height;return"vertical"===t?{maxWidth:o*r,maxHeight:s}:{maxWidth:o,maxHeight:s*i}},n}(ma);const U3=V3;var Y3=function(e){function n(t){var r=e.call(this,t)||this;return r.onChangeFn=v.ZT,r.resetMeasure=function(){r.clear()},r.onValueChange=function(i){var a=(0,g.CR)(i,2),o=a[0],s=a[1];r.start=o,r.end=s,r.changeViewData(o,s)},r.container=r.view.getLayer(gn.FORE).addGroup(),r.onChangeFn=(0,v.P2)(r.onValueChange,20,{leading:!0}),r.width=0,r.view.on(Ue.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(Ue.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(Ue.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Ue.BEFORE_CHANGE_SIZE,this.resetMeasure)},n.prototype.init=function(){},n.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),r=t.start,i=t.end;(0,v.UM)(this.start)&&(this.start=r,this.end=i);var a=this.view.getOptions().data;this.option&&!(0,v.xb)(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},n.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var r=this.view.coordinateBBox.width,i=this.slider.component.get("padding"),a=(0,g.CR)(i,4),o=a[0],c=a[3],h=this.slider.component.getLayoutBBox(),f=new On(h.x,h.y,Math.min(h.width,r),h.height).expand(i),p=this.getMinMaxText(this.start,this.end),d=p.minText,y=p.maxText,M=(0,g.CR)(di(this.view.viewBBox,f,ue.BOTTOM),2)[1],S=(0,g.CR)(di(this.view.coordinateBBox,f,ue.BOTTOM),2)[0];this.slider.component.update((0,g.pi)((0,g.pi)({},this.getSliderCfg()),{x:S+c,y:M+o,width:this.width,start:this.start,end:this.end,minText:d,maxText:y})),this.view.viewBBox=this.view.viewBBox.cut(f,ue.BOTTOM)}},n.prototype.update=function(){this.render()},n.prototype.createSlider=function(){var t=this.getSliderCfg(),r=new DM((0,g.pi)({container:this.container},t));return r.init(),{component:r,layer:gn.FORE,direction:ue.BOTTOM,type:_n.SLIDER}},n.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var r=this.getMinMaxText(this.start,this.end),i=r.minText,a=r.maxText;t=(0,g.pi)((0,g.pi)({},t),{width:this.width,start:this.start,end:this.end,minText:i,maxText:a})}return this.slider.component.update(t),this.slider},n.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},n.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,v.Kn)(this.option)){var r=(0,g.pi)({data:this.getData()},(0,v.U2)(this.option,"trendCfg",{}));t=(0,v.b$)({},t,this.getThemeOptions(),this.option),t=(0,g.pi)((0,g.pi)({},t),{trendCfg:r})}return t.start=(0,v.uZ)(Math.min((0,v.UM)(t.start)?0:t.start,(0,v.UM)(t.end)?1:t.end),0,1),t.end=(0,v.uZ)(Math.max((0,v.UM)(t.start)?0:t.start,(0,v.UM)(t.end)?1:t.end),0,1),t},n.prototype.getData=function(){var t=this.view.getOptions().data,i=(0,g.CR)(this.view.getYScales(),1)[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(c,h){return h[s]===l[0]&&c.push(h[i.field]),c},[])}return t.map(function(c){return c[i.field]||0})},n.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,v.U2)(t,["components","slider","common"],{})},n.prototype.getMinMaxText=function(t,r){var i=this.view.getOptions().data,a=this.view.getXScale(),s=(0,v.I)(i,a.field);a.isLinear&&(s=s.sort());var l=s,c=(0,v.dp)(i);if(!a||!c)return{};var h=(0,v.dp)(l),f=Math.round(t*(h-1)),p=Math.round(r*(h-1)),d=(0,v.U2)(l,[f]),y=(0,v.U2)(l,[p]),m=this.getSliderCfg().formatter;return m&&(d=m(d,i[f],f),y=m(y,i[p],p)),{minText:d,maxText:y}},n.prototype.changeViewData=function(t,r){var i=this.view.getOptions().data,a=this.view.getXScale(),o=(0,v.dp)(i);if(a&&o){var l=(0,v.I)(i,a.field),h=this.view.getXScale().isLinear?l.sort(function(y,m){return Number(y)-Number(m)}):l,f=(0,v.dp)(h),p=Math.round(t*(f-1)),d=Math.round(r*(f-1));this.view.filter(a.field,function(y,m){var x=h.indexOf(y);return!(x>-1)||fa(x,p,d)}),this.view.render(!0)}},n.prototype.getComponents=function(){return this.slider?[this.slider]:[]},n.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},n}(ma);const H3=Y3;var W3=function(e){function n(t){var r=e.call(this,t)||this;return r.onChangeFn=v.ZT,r.resetMeasure=function(){r.clear()},r.onValueChange=function(i){var a=i.ratio,o=r.getValidScrollbarCfg().animate;r.ratio=(0,v.uZ)(a,0,1);var s=r.view.getOptions().animate;o||r.view.animate(!1),r.changeViewData(r.getScrollRange(),!0),r.view.animate(s)},r.container=r.view.getLayer(gn.FORE).addGroup(),r.onChangeFn=(0,v.P2)(r.onValueChange,20,{leading:!0}),r.trackLen=0,r.thumbLen=0,r.ratio=0,r.view.on(Ue.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(Ue.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return(0,g.ZT)(n,e),Object.defineProperty(n.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(Ue.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Ue.BEFORE_CHANGE_SIZE,this.resetMeasure)},n.prototype.init=function(){},n.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},n.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var r=this.view.coordinateBBox.width,i=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new On(a.x,a.y,Math.min(a.width,r),a.height).expand(i),s=this.getScrollbarComponentCfg(),l=void 0,c=void 0;if(s.isHorizontal){var p=(0,g.CR)(di(this.view.viewBBox,o,ue.BOTTOM),2)[1];l=(0,g.CR)(di(this.view.coordinateBBox,o,ue.BOTTOM),2)[0],c=p}else{l=(p=(0,g.CR)(di(this.view.viewBBox,o,ue.RIGHT),2)[1],(0,g.CR)(di(this.view.viewBBox,o,ue.RIGHT),2))[0],c=p}l+=i[3],c+=i[0],this.scrollbar.component.update((0,g.pi)((0,g.pi)({},s),this.trackLen?{x:l,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}:{x:l,y:c})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?ue.BOTTOM:ue.RIGHT)}},n.prototype.update=function(){this.render()},n.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},n.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},n.prototype.setValue=function(t){this.onValueChange({ratio:t})},n.prototype.getValue=function(){return this.ratio},n.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,v.U2)(t,["components","scrollbar","common"],{})},n.prototype.getScrollbarTheme=function(t){var r=(0,v.U2)(this.view.getTheme(),["components","scrollbar"]),i=t||{},a=i.thumbHighlightColor,o=(0,g._T)(i,["thumbHighlightColor"]);return{default:(0,v.b$)({},(0,v.U2)(r,["default","style"],{}),o),hover:(0,v.b$)({},(0,v.U2)(r,["hover","style"],{}),{thumbColor:a})}},n.prototype.measureScrollbar=function(){var t=this.view.getXScale(),r=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var i=this.getScrollbarComponentCfg(),o=i.thumbLen;this.trackLen=i.trackLen,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=r},n.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,v.uZ)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},n.prototype.changeViewData=function(t,r){var i=this,a=(0,g.CR)(t,2),o=a[0],s=a[1],c="vertical"!==this.getValidScrollbarCfg().type,h=(0,v.I)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?h.sort(function(d,y){return Number(d)-Number(y)}):h,p=c?f:f.reverse();this.yScalesCfg.forEach(function(d){i.view.scale(d.field,{formatter:d.formatter,type:d.type,min:d.min,max:d.max,tickMethod:d.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(d){var y=p.indexOf(d);return!(y>-1)||fa(y,o,s)}),this.view.render(!0)},n.prototype.createScrollbar=function(){var r="vertical"!==this.getValidScrollbarCfg().type,i=new OM((0,g.pi)((0,g.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return i.init(),{component:i,layer:gn.FORE,direction:r?ue.BOTTOM:ue.RIGHT,type:_n.SCROLLBAR}},n.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),r=this.trackLen?(0,g.pi)((0,g.pi)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,g.pi)({},t);return this.scrollbar.component.update(r),this.scrollbar},n.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,r=this.getValidScrollbarCfg();return Math.floor(("vertical"!==r.type?t.width:t.height)/r.categorySize)},n.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),r=this.getScrollbarData(),i=(0,v.I)(r,t.field);return(0,v.dp)(i)},n.prototype.getScrollbarComponentCfg=function(){var t=this.view,r=t.coordinateBBox,i=t.viewBBox,a=this.getValidScrollbarCfg(),l=a.width,c=a.height,h=a.style,f="vertical"!==a.type,p=(0,g.CR)(a.padding,4),d=p[0],y=p[1],m=p[2],x=p[3],M=f?{x:r.minX+x,y:i.maxY-c-m}:{x:i.maxX-l-y,y:r.minY+d},C=this.getStep(),S=this.getCnt(),b=f?r.width-x-y:r.height-d-m,E=Math.max(b*(0,v.uZ)(C/S,0,1),20);return(0,g.pi)((0,g.pi)({},this.getThemeOptions()),{x:M.x,y:M.y,size:f?c:l,isHorizontal:f,trackLen:b,thumbLen:E,thumbOffset:0,theme:this.getScrollbarTheme(h)})},n.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,v.Kn)(this.option)&&(t=(0,g.pi)((0,g.pi)({},t),this.option)),(!(0,v.Kn)(this.option)||!this.option.padding)&&(t.padding=[0,0,0,0]),t},n.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),r=this.getValidScrollbarCfg(),i=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===r.type&&(i=(0,g.ev)([],(0,g.CR)(i),!1).reverse()),i},n}(ma);const X3=W3;var $3={fill:"#CCD6EC",opacity:.3};var Q3=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.show=function(t){var r=this.context.view,i=this.context.event,a=r.getController("tooltip").getTooltipCfg(),o=function J3(e,n,t){var r,i,a,o,s,l,c=function UC(e,n,t){var r,i,a=hu(e,n,t);try{for(var o=(0,g.XA)(e.views),s=o.next();!s.done;s=o.next())a=a.concat(hu(s.value,n,t))}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}(e,n,t);if(c.length){c=(0,v.xH)(c);try{for(var h=(0,g.XA)(c),f=h.next();!f.done;f=h.next()){var p=f.value;try{for(var d=(a=void 0,(0,g.XA)(p)),y=d.next();!y.done;y=d.next()){var m=y.value,x=m.mappingData,M=x.x,C=x.y;m.x=(0,v.kJ)(M)?M[M.length-1]:M,m.y=(0,v.kJ)(C)?C[C.length-1]:C}}catch(yt){a={error:yt}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(yt){r={error:yt}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}if(!1===t.shared&&c.length>1){var b=c[0],E=Math.abs(n.y-b[0].y);try{for(var W=(0,g.XA)(c),tt=W.next();!tt.done;tt=W.next()){var it=tt.value,wt=Math.abs(n.y-it[0].y);wt<=E&&(b=it,E=wt)}}catch(yt){s={error:yt}}finally{try{tt&&!tt.done&&(l=W.return)&&l.call(W)}finally{if(s)throw s.error}}c=[b]}return(0,v.jj)((0,v.xH)(c))}return[]}(r,{x:i.x,y:i.y},a);if(!(0,v.Xy)(o,this.items)&&(this.items=o,o.length)){var s=r.getXScale().field,l=o[0].data[s],c=[];if((0,v.S6)(r.geometries,function(Se){if("interval"===Se.type||"schema"===Se.type){var ge=Se.getElementsBy(function(Me){return Me.getData()[s]===l});c=c.concat(ge)}}),c.length){var f=r.getCoordinate(),p=c[0].shape.getCanvasBBox(),d=c[0].shape.getCanvasBBox(),y=p;(0,v.S6)(c,function(Se){var ge=Se.shape.getCanvasBBox();f.isTransposed?(ge.minYd.maxY&&(d=ge)):(ge.minXd.maxX&&(d=ge)),y.x=Math.min(ge.minX,y.minX),y.y=Math.min(ge.minY,y.minY),y.width=Math.max(ge.maxX,y.maxX)-y.x,y.height=Math.max(ge.maxY,y.maxY)-y.y});var m=r.backgroundGroup,x=r.coordinateBBox,M=void 0;if(f.isRect){var C=r.getXScale(),S=t||{},b=S.appendRatio,E=S.appendWidth;(0,v.UM)(E)&&(b=(0,v.UM)(b)?C.isLinear?0:.25:b,E=f.isTransposed?b*d.height:b*p.width);var W=void 0,tt=void 0,it=void 0,wt=void 0;f.isTransposed?(W=x.minX,tt=Math.min(d.minY,p.minY)-E,it=x.width,wt=y.height+2*E):(W=Math.min(p.minX,d.minX)-E,tt=x.minY,it=y.width+2*E,wt=x.height),M=[["M",W,tt],["L",W+it,tt],["L",W+it,tt+wt],["L",W,tt+wt],["Z"]]}else{var yt=(0,v.YM)(c),Ut=(0,v.Z$)(c),ee=so(yt.getModel(),f).startAngle,me=so(Ut.getModel(),f).endAngle,_e=f.getCenter(),ze=f.getRadius();M=oi(_e.x,_e.y,ze,ee,me,f.innerRadius*ze)}if(this.regionPath)this.regionPath.attr("path",M),this.regionPath.show();else{var fe=(0,v.U2)(t,"style",$3);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,g.pi)((0,g.pi)({},fe),{path:M})})}}}},n.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},n.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},n}(sn);const q3=Q3;var j3=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,g.ZT)(n,e),n.prototype.show=function(){var t=this.context,r=t.event,i=t.view;if(!i.isTooltipLocked()){var o=this.timeStamp,s=+new Date;if(s-o>(0,v.U2)(t.view.getOptions(),"tooltip.showDelay",16)){var c=this.location,h={x:r.x,y:r.y};(!c||!(0,v.Xy)(c,h))&&this.showTooltip(i,h),this.timeStamp=s,this.location=h}}},n.prototype.hide=function(){var t=this.context.view,r=t.getController("tooltip"),i=this.context.event;r.isCursorEntered({x:i.clientX,y:i.clientY})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},n.prototype.showTooltip=function(t,r){t.showTooltip(r)},n.prototype.hideTooltip=function(t){t.hideTooltip()},n}(sn);const fg=j3;var K3=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.showTooltip=function(t,r){var i=_r(t);(0,v.S6)(i,function(a){var o=lu(t,a,r);a.showTooltip(o)})},n.prototype.hideTooltip=function(t){var r=_r(t);(0,v.S6)(r,function(i){i.hideTooltip()})},n}(fg);const tb=K3;var eb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,g.ZT)(n,e),n.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},n.prototype.show=function(){var r=this.context.event,i=this.timeStamp,a=+new Date;if(a-i>16){var o=this.location,s={x:r.x,y:r.y};(!o||!(0,v.Xy)(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},n.prototype.hide=function(){this.hideTooltip(),this.location=null},n.prototype.showTooltip=function(t){var a=this.context.event.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update((0,g.pi)({title:o},t)),this.tooltip.show()}},n.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},n.prototype.renderTooltip=function(){var t,r=this.context.view,i=r.canvas,a={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},o=r.getTheme(),s=(0,v.U2)(o,["components","tooltip","domStyles"],{}),l=new bs({parent:i.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,g.pi)({},(0,v.b$)({},s,(t={},t[Nr]={"max-width":"50%"},t[Vr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},n}(sn);const nb=eb;var rb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t}return(0,g.ZT)(n,e),n.prototype.hasState=function(t){return t.hasState(this.stateName)},n.prototype.setElementState=function(t,r){t.setState(this.stateName,r)},n.prototype.setState=function(){this.setStateEnable(!0)},n.prototype.clear=function(){this.clearViewState(this.context.view)},n.prototype.clearViewState=function(t){var r=this,i=yp(t,this.stateName);(0,v.S6)(i,function(a){r.setElementState(a,!1)})},n}(sn);const $u=rb;function vg(e){return(0,v.U2)(e.get("delegateObject"),"item")}var ib=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return(0,g.ZT)(n,e),n.prototype.isItemIgnore=function(t,r){return!!this.ignoreListItemStates.filter(function(o){return r.hasState(t,o)}).length},n.prototype.setStateByComponent=function(t,r,i){var a=this.context.view,o=t.get("field"),s=Tn(a);this.setElementsStateByItem(s,o,r,i)},n.prototype.setStateByElement=function(t,r){this.setElementState(t,r)},n.prototype.isMathItem=function(t,r,i){var o=ga(this.context.view,r),s=ur(t,r);return!(0,v.UM)(s)&&i.name===o.getText(s)},n.prototype.setElementsStateByItem=function(t,r,i,a){var o=this;(0,v.S6)(t,function(s){o.isMathItem(s,r,i)&&s.setState(o.stateName,a)})},n.prototype.setStateEnable=function(t){var r=li(this.context);if(r)vp(this.context)&&this.setStateByElement(r,t);else{var i=Ii(this.context);if(ho(i)){var a=i.item,o=i.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&vg(s.fromShape)===vg(s.toShape))return;this.setStateByComponent(o,a,t)}}}},n.prototype.toggle=function(){var t=li(this.context);if(t){var r=t.hasState(this.stateName);this.setElementState(t,!r)}},n.prototype.reset=function(){this.setStateEnable(!1)},n}($u);const Ju=ib;var ab=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,g.ZT)(n,e),n.prototype.active=function(){this.setState()},n}(Ju);const ob=ab;var sb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return(0,g.ZT)(n,e),n.prototype.getColorScale=function(t,r){var i=r.geometry.getAttribute("color");return i?t.getScaleByField(i.getFields()[0]):null},n.prototype.getLinkPath=function(t,r){var a=this.context.view.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=r.shape.getCanvasBBox();return a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]]},n.prototype.addLinkShape=function(t,r,i,a){var o={opacity:.4,fill:r.shape.attr("fill")};t.addShape({type:"path",attrs:(0,g.pi)((0,g.pi)({},(0,v.b$)({},o,(0,v.mf)(a)?a(o,r):a)),{path:this.getLinkPath(r,i)})})},n.prototype.linkByElement=function(t,r){var i=this,a=this.context.view,o=this.getColorScale(a,t);if(o){var s=ur(t,o.field);if(!this.cache[s]){var l=function gC(e,n,t){return Tn(e).filter(function(i){return ur(i,n)===t})}(a,o.field,s),h=this.linkGroup.addGroup();this.cache[s]=h;var f=l.length;(0,v.S6)(l,function(p,d){d=0},r)},n}(Qu);const dg=Mb;var Cb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,g.ZT)(n,e),n.prototype.highlight=function(){this.setState()},n.prototype.setElementState=function(t,r){pg(Tn(this.context.view),function(o){return t===o},r)},n.prototype.clear=function(){ju(this.context.view)},n}(qu);const wb=Cb;var Sb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(Qu);const _b=Sb;var bb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(Ju);const Tb=bb;var Ab=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(qu);const Fb=Ab;var Eb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return(0,g.ZT)(n,e),n.prototype.getTriggerListInfo=function(){var t=Ii(this.context),r=null;return ho(t)&&(r={item:t.item,list:t.component}),r},n.prototype.getAllowComponents=function(){var t=this,i=Mp(this.context.view),a=[];return(0,v.S6)(i,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},n.prototype.hasState=function(t,r){return t.hasState(r,this.stateName)},n.prototype.clearAllComponentsState=function(){var t=this,r=this.getAllowComponents();(0,v.S6)(r,function(i){i.clearItemsState(t.stateName)})},n.prototype.allowSetStateByElement=function(t){var r=t.get("field");if(!r)return!1;if(this.cfg&&this.cfg.componentNames){var i=t.get("name");if(-1===this.cfg.componentNames.indexOf(i))return!1}var o=ga(this.context.view,r);return o&&o.isCategory},n.prototype.allowSetStateByItem=function(t,r){var i=this.ignoreItemStates;return!i.length||0===i.filter(function(o){return r.hasState(t,o)}).length},n.prototype.setStateByElement=function(t,r,i){var a=t.get("field"),s=ga(this.context.view,a),l=ur(r,a),c=s.getText(l);this.setItemsState(t,c,i)},n.prototype.setStateEnable=function(t){var r=this,i=li(this.context);if(i){var a=this.getAllowComponents();(0,v.S6)(a,function(c){r.setStateByElement(c,i,t)})}else{var o=Ii(this.context);if(ho(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},n.prototype.setItemsState=function(t,r,i){var a=this,o=t.getItems();(0,v.S6)(o,function(s){s.name===r&&a.setItemState(t,s,i)})},n.prototype.setItemState=function(t,r,i){t.setItemState(r,this.stateName,i)},n.prototype.setState=function(){this.setStateEnable(!0)},n.prototype.reset=function(){this.setStateEnable(!1)},n.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var r=t.list,i=t.item,a=this.hasState(r,i);this.setItemState(r,i,!a)}},n.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},n}(sn);const Bi=Eb;var kb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,g.ZT)(n,e),n.prototype.active=function(){this.setState()},n}(Bi);const Ib=kb;var gg="inactive",bo="inactive",Ri="active",Lb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=Ri,t.ignoreItemStates=["unchecked"],t}return(0,g.ZT)(n,e),n.prototype.setItemsState=function(t,r,i){this.setHighlightBy(t,function(a){return a.name===r},i)},n.prototype.setItemState=function(t,r,i){t.getItems(),this.setHighlightBy(t,function(o){return o===r},i)},n.prototype.setHighlightBy=function(t,r,i){var a=t.getItems();if(i)(0,v.S6)(a,function(l){r(l)?(t.hasState(l,bo)&&t.setItemState(l,bo,!1),t.setItemState(l,Ri,!0)):t.hasState(l,Ri)||t.setItemState(l,bo,!0)});else{var o=t.getItemsByState(Ri),s=!0;(0,v.S6)(o,function(l){if(!r(l))return s=!1,!1}),s?this.clear():(0,v.S6)(a,function(l){r(l)&&(t.hasState(l,Ri)&&t.setItemState(l,Ri,!1),t.setItemState(l,bo,!0))})}},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)!function Db(e){var n=e.getItems();(0,v.S6)(n,function(t){e.hasState(t,"active")&&e.setItemState(t,"active",!1),e.hasState(t,gg)&&e.setItemState(t,gg,!1)})}(t.list);else{var r=this.getAllowComponents();(0,v.S6)(r,function(i){i.clearItemsState(Ri),i.clearItemsState(bo)})}},n}(Bi);const th=Lb;var Ob=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,g.ZT)(n,e),n.prototype.selected=function(){this.setState()},n}(Bi);const Pb=Ob;var zb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return(0,g.ZT)(n,e),n.prototype.unchecked=function(){this.setState()},n}(Bi);const Bb=zb;var wa="unchecked",al="checked",Rb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=al,t}return(0,g.ZT)(n,e),n.prototype.setItemState=function(t,r,i){this.setCheckedBy(t,function(a){return a===r},i)},n.prototype.setCheckedBy=function(t,r,i){var a=t.getItems();i&&(0,v.S6)(a,function(o){r(o)?(t.hasState(o,wa)&&t.setItemState(o,wa,!1),t.setItemState(o,al,!0)):t.hasState(o,al)||t.setItemState(o,wa,!0)})},n.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var r=t.list,i=t.item;!(0,v.G)(r.getItems(),function(o){return r.hasState(o,wa)})||r.hasState(i,wa)?this.setItemState(r,i,!0):this.reset()}},n.prototype.checked=function(){this.setState()},n.prototype.reset=function(){var t=this.getAllowComponents();(0,v.S6)(t,function(r){r.clearItemsState(al),r.clearItemsState(wa)})},n}(Bi);const Nb=Rb;var Sa="unchecked",Vb=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.toggle=function(){var t,r,i,a,o,s,l,c,h=this.getTriggerListInfo();if(h?.item){var f=h.list,p=h.item,d=f.getItems(),y=d.filter(function(yt){return!f.hasState(yt,Sa)}),m=d.filter(function(yt){return f.hasState(yt,Sa)}),x=y[0];if(d.length===y.length)try{for(var M=(0,g.XA)(d),C=M.next();!C.done;C=M.next())f.setItemState(S=C.value,Sa,S.id!==p.id)}catch(yt){t={error:yt}}finally{try{C&&!C.done&&(r=M.return)&&r.call(M)}finally{if(t)throw t.error}}else if(d.length-m.length==1)if(x.id===p.id)try{for(var b=(0,g.XA)(d),E=b.next();!E.done;E=b.next())f.setItemState(S=E.value,Sa,!1)}catch(yt){i={error:yt}}finally{try{E&&!E.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}else try{for(var W=(0,g.XA)(d),tt=W.next();!tt.done;tt=W.next())f.setItemState(S=tt.value,Sa,S.id!==p.id)}catch(yt){o={error:yt}}finally{try{tt&&!tt.done&&(s=W.return)&&s.call(W)}finally{if(o)throw o.error}}else try{for(var it=(0,g.XA)(d),wt=it.next();!wt.done;wt=it.next()){var S;f.setItemState(S=wt.value,Sa,S.id!==p.id)}}catch(yt){l={error:yt}}finally{try{wt&&!wt.done&&(c=it.return)&&c.call(it)}finally{if(l)throw l.error}}}},n}(Bi);const Ub=Vb;var mg="showRadio",eh="legend-radio-tip",Yb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,g.ZT)(n,e),n.prototype.show=function(){var t=this.getTriggerListInfo();t?.item&&t.list.setItemState(t.item,mg,!0)},n.prototype.hide=function(){var t=this.getTriggerListInfo();t?.item&&t.list.setItemState(t.item,mg,!1)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},n.prototype.showTip=function(){var r=this.context.event,i=this.timeStamp,a=+new Date;if(a-i>16&&"legend-item-radio"===this.context.event.target.get("name")){var s=this.location,l={x:r.x,y:r.y};this.timeStamp=a,this.location=l,(!s||!(0,v.Xy)(s,l))&&this.showTooltip(l)}},n.prototype.hideTip=function(){this.hideTooltip(),this.location=null},n.prototype.showTooltip=function(t){var r=this.context,a=r.event.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=r.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update((0,g.pi)((0,g.pi)({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},n.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},n.prototype.renderTooltip=function(){var t,r=((t={})[Nr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[Vr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(eh)&&document.body.removeChild(document.getElementById(eh));var i=new bs({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:r,containerId:eh});i.init(),i.setCapture(!1),this.tooltip=i},n}(Bi);const Hb=Yb;var Gb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return(0,g.ZT)(n,e),n.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},n.prototype.emitEvent=function(t){var r="mask:".concat(t),a=this.context.event;this.context.view.emit(r,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},n.prototype.createMask=function(){var t=this.context.view,r=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.pi)({fill:"#C5D4EB",opacity:.3},r)})},n.prototype.getMaskPath=function(){return[]},n.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},n.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t?.maskStyle),this.emitEvent("start")},n.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},n.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),r=this.preMovePoint,i=t.x-r.x,a=t.y-r.y;(0,v.S6)(this.points,function(s){s.x+=i,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},n.prototype.updateMask=function(t){var r=(0,v.b$)({},this.getMaskAttrs(),t);this.maskShape.attr(r)},n.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},n.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},n.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},n.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},n.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},n}(sn);const nh=Gb;function xg(e){var n=(0,v.Z$)(e),t=0,r=0,i=0;if(e.length){var a=e[0];t=su(a,n)/2,r=(n.x+a.x)/2,i=(n.y+a.y)/2}return{x:r,y:i,r:t}}var Zb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return(0,g.ZT)(n,e),n.prototype.getMaskAttrs=function(){return xg(this.points)},n}(nh);const Wb=Zb;function Mg(e){return{start:(0,v.YM)(e),end:(0,v.Z$)(e)}}function Cg(e,n){return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}}var Xb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(){return Mg(this.points)},n.prototype.getMaskAttrs=function(){var t=this.getRegion();return Cg(t.start,t.end)},n}(nh);const wg=Xb;function Sg(e){e.x=(0,v.uZ)(e.x,0,1),e.y=(0,v.uZ)(e.y,0,1)}function _g(e,n,t,r){var i=null,a=null,o=r.invert((0,v.YM)(e)),s=r.invert((0,v.Z$)(e));return t&&(Sg(o),Sg(s)),"x"===n?(i=r.convert({x:o.x,y:0}),a=r.convert({x:s.x,y:1})):(i=r.convert({x:0,y:o.y}),a=r.convert({x:1,y:s.y})),{start:i,end:a}}var $b=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return _g(this.points,this.dim,this.inPlot,t)},n}(wg);const bg=$b;function rh(e){var n=[];return e.length&&((0,v.S6)(e,function(t,r){n.push(0===r?["M",t.x,t.y]:["L",t.x,t.y])}),n.push(["L",e[0].x,e[0].y])),n}function Tg(e){return{path:rh(e)}}var Jb=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getMaskPath=function(){return rh(this.points)},n.prototype.getMaskAttrs=function(){return Tg(this.points)},n.prototype.addPoint=function(){this.resize()},n}(nh);const Ag=Jb;function ih(e){return function mC(e,n){if(e.length<=2)return uo(e,!1);var t=e[0],r=[];(0,v.S6)(e,function(a){r.push(a.x),r.push(a.y)});var i=sp(r,n,null);return i.unshift(["M",t.x,t.y]),i}(e,!0)}function Fg(e){return{path:ih(e)}}var Qb=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getMaskPath=function(){return ih(this.points)},n.prototype.getMaskAttrs=function(){return Fg(this.points)},n}(Ag);const qb=Qb;var jb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return(0,g.ZT)(n,e),n.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},n.prototype.emitEvent=function(t){var r="".concat(this.maskType,":").concat(t),a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};this.context.view.emit(r,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},n.prototype.createMask=function(t){var r=this.context.view,a=this.getMaskAttrs(this.recordPoints[t]),o=r.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.pi)({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},n.prototype.getMaskPath=function(t){return[]},n.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},n.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1,this.createMask(this.recordPoints.length-1),this.updateShapesCapture(!1),this.updateMask(t?.maskStyle),this.emitEvent("start")},n.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},n.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),r=this.preMovePoint,i=t.x-r.x,a=t.y-r.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=i,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},n.prototype.updateMask=function(t){var r=this;this.recordPoints.forEach(function(i,a){var o=(0,v.b$)({},r.getMaskAttrs(i),t);r.maskShapes[a].attr(o)})},n.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},n.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},n.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},n.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},n.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},n.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},n.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach(function(r){return r.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},n.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},n.prototype.getRecordPoints=function(){var t;return(0,g.ev)([],(0,g.CR)(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},n.prototype.recordPointStart=function(){var t=this.getRecordPoints(),r=this.getCurrentPoint();this.recordPoints=(0,g.ev)((0,g.ev)([],(0,g.CR)(t),!1),[[r]],!1)},n.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),r=this.getCurrentPoint(),i=t.splice(-1,1)[0]||[];i.push(r),this.recordPoints=(0,g.ev)((0,g.ev)([],(0,g.CR)(t),!1),[i],!1)},n.prototype.recordPointClear=function(){this.recordPoints=[]},n.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(r){return r.set("capture",t)})},n.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(r){var i=r.attrs;return!(0===i.width||0===i.height||0===i.r)&&r.isHit(t.x,t.y)})},n}(sn);const ah=jb;var Kb=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(t){return Mg(t)},n.prototype.getMaskAttrs=function(t){var r=this.getRegion(t);return Cg(r.start,r.end)},n}(ah);const Eg=Kb;var t4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,g.ZT)(n,e),n.prototype.getRegion=function(t){var r=this.context.view.getCoordinate();return _g(t,this.dim,this.inPlot,r)},n}(Eg);const kg=t4;var e4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=xg,t}return(0,g.ZT)(n,e),n}(ah);const n4=e4;var r4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.getMaskPath=rh,t.getMaskAttrs=Tg,t}return(0,g.ZT)(n,e),n.prototype.addPoint=function(){this.resize()},n}(ah);const Ig=r4;var a4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.getMaskPath=ih,t.getMaskAttrs=Fg,t}return(0,g.ZT)(n,e),n}(Ig);const o4=a4;var s4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},n.prototype.default=function(){this.setCursor("default")},n.prototype.pointer=function(){this.setCursor("pointer")},n.prototype.move=function(){this.setCursor("move")},n.prototype.crosshair=function(){this.setCursor("crosshair")},n.prototype.wait=function(){this.setCursor("wait")},n.prototype.help=function(){this.setCursor("help")},n.prototype.text=function(){this.setCursor("text")},n.prototype.eResize=function(){this.setCursor("e-resize")},n.prototype.wResize=function(){this.setCursor("w-resize")},n.prototype.nResize=function(){this.setCursor("n-resize")},n.prototype.sResize=function(){this.setCursor("s-resize")},n.prototype.neResize=function(){this.setCursor("ne-resize")},n.prototype.nwResize=function(){this.setCursor("nw-resize")},n.prototype.seResize=function(){this.setCursor("se-resize")},n.prototype.swResize=function(){this.setCursor("sw-resize")},n.prototype.nsResize=function(){this.setCursor("ns-resize")},n.prototype.ewResize=function(){this.setCursor("ew-resize")},n.prototype.zoomIn=function(){this.setCursor("zoom-in")},n.prototype.zoomOut=function(){this.setCursor("zoom-out")},n}(sn);const l4=s4;var c4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.filterView=function(t,r,i){var a=this;t.getScaleByField(r)&&t.filter(r,i),t.views&&t.views.length&&(0,v.S6)(t.views,function(o){a.filterView(o,r,i)})},n.prototype.filter=function(){var t=Ii(this.context);if(t){var r=this.context.view,i=t.component,a=i.get("field");if(ho(t)){if(a){var o=i.getItemsByState("unchecked"),s=ga(r,a),l=o.map(function(d){return d.name});this.filterView(r,a,l.length?function(d){var y=s.getText(d);return!l.includes(y)}:null),r.render(!0)}}else if(pp(t)){var c=i.getValue(),h=(0,g.CR)(c,2),f=h[0],p=h[1];this.filterView(r,a,function(d){return d>=f&&d<=p}),r.render(!0)}}},n}(sn);const u4=c4;function Dg(e,n,t,r){var i=Math.min(t[n],r[n]),a=Math.max(t[n],r[n]),o=(0,g.CR)(e.range,2),s=o[0],l=o[1];if(il&&(a=l),i===l&&a===l)return null;var c=e.invert(i),h=e.invert(a);if(e.isCategory){var f=e.values.indexOf(c),p=e.values.indexOf(h),d=e.values.slice(f,p+1);return function(y){return d.includes(y)}}return function(y){return y>=c&&y<=h}}var qn=function(e){return e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset",e}(qn||{}),h4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return(0,g.ZT)(n,e),n.prototype.hasDim=function(t){return this.dims.includes(t)},n.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},n.prototype.filter=function(){var t,r;if(fo(this.context)){var a=this.context.event.target.getCanvasBBox();t={x:a.x,y:a.y},r={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,r=this.context.getCurrentPoint()}if(!(Math.abs(t.x-r.x)<5||Math.abs(t.x-r.y)<5)){var o=this.context,s=o.view,c={view:s,event:o.event,dims:this.dims};s.emit(qn.BEFORE_FILTER,un.fromData(s,qn.BEFORE_FILTER,c));var h=s.getCoordinate(),f=h.invert(r),p=h.invert(t);if(this.hasDim("x")){var d=s.getXScale(),y=Dg(d,"x",f,p);this.filterView(s,d.field,y)}if(this.hasDim("y")){var m=s.getYScales()[0];y=Dg(m,"y",f,p),this.filterView(s,m.field,y)}this.reRender(s,{source:qn.FILTER}),s.emit(qn.AFTER_FILTER,un.fromData(s,qn.AFTER_FILTER,c))}},n.prototype.end=function(){this.isStarted=!1},n.prototype.reset=function(){var t=this.context.view;if(t.emit(qn.BEFORE_RESET,un.fromData(t,qn.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var r=t.getXScale();this.filterView(t,r.field,null)}if(this.hasDim("y")){var i=t.getYScales()[0];this.filterView(t,i.field,null)}this.reRender(t,{source:qn.RESET}),t.emit(qn.AFTER_RESET,un.fromData(t,qn.AFTER_RESET,{}))},n.prototype.filterView=function(t,r,i){t.filter(r,i)},n.prototype.reRender=function(t,r){t.render(!0,r)},n}(sn);const ol=h4;var f4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.filterView=function(t,r,i){var a=_r(t);(0,v.S6)(a,function(o){o.filter(r,i)})},n.prototype.reRender=function(t){var r=_r(t);(0,v.S6)(r,function(i){i.render(!0)})},n}(ol);const oh=f4;var v4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.filter=function(){var t=Ii(this.context),r=this.context.view,i=Tn(r);if(fo(this.context)){var a=ou(this.context,10);a&&(0,v.S6)(i,function(m){a.includes(m)?m.show():m.hide()})}else if(t){var o=t.component,s=o.get("field");if(ho(t)){if(s){var l=o.getItemsByState("unchecked"),c=ga(r,s),h=l.map(function(m){return m.name});(0,v.S6)(i,function(m){var x=ur(m,s),M=c.getText(x);h.indexOf(M)>=0?m.hide():m.show()})}}else if(pp(t)){var f=o.getValue(),p=(0,g.CR)(f,2),d=p[0],y=p[1];(0,v.S6)(i,function(m){var x=ur(m,s);x>=d&&x<=y?m.show():m.hide()})}}},n.prototype.clear=function(){var t=Tn(this.context.view);(0,v.S6)(t,function(r){r.show()})},n.prototype.reset=function(){this.clear()},n}(sn);const p4=v4;var d4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return(0,g.ZT)(n,e),n.prototype.filter=function(){fo(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},n.prototype.filterByRecord=function(){var t=this.context.view,r=ou(this.context,10);if(r){var i=t.getXScale().field,a=t.getYScales()[0].field,o=r.map(function(l){return l.getModel().data}),s=_r(t);(0,v.S6)(s,function(l){var c=Tn(l);(0,v.S6)(c,function(h){var f=h.getModel().data;wp(o,f,i,a)?h.show():h.hide()})})}},n.prototype.filterByBBox=function(){var t=this,i=_r(this.context.view);(0,v.S6)(i,function(a){var o=dp(t.context,a,10),s=Tn(a);o&&(0,v.S6)(s,function(l){o.includes(l)?l.show():l.hide()})})},n.prototype.reset=function(){var t=_r(this.context.view);(0,v.S6)(t,function(r){var i=Tn(r);(0,v.S6)(i,function(a){a.show()})})},n}(sn);const Lg=d4;var m4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return(0,g.ZT)(n,e),n.prototype.getButtonCfg=function(){return(0,v.b$)(this.buttonCfg,this.cfg)},n.prototype.drawButton=function(){var t=this.getButtonCfg(),r=this.context.view.foregroundGroup.addGroup({name:t.name}),a=r.addShape({type:"text",name:"button-text",attrs:(0,g.pi)({text:t.text},t.textStyle)}).getBBox(),o=fu(t.padding),s=r.addShape({type:"rect",name:"button-rect",attrs:(0,g.pi)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),r.on("mouseenter",function(){s.attr(t.activeStyle)}),r.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=r},n.prototype.resetPosition=function(){var i=this.context.view.getCoordinate().convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=an.vs(null,[["t",i.x-o.width-10,i.y+o.height+5]]);a.setMatrix(s)},n.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},n.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},n.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},n}(sn);const x4=m4;var C4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return(0,g.ZT)(n,e),n.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},n.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),r=this.context.view,i=this.context.event;this.dragStart?r.emit("drag",{target:i.target,x:i.x,y:i.y}):su(t,this.startPoint)>4&&(r.emit("dragstart",{target:i.target,x:i.x,y:i.y}),this.dragStart=!0)}},n.prototype.end=function(){if(this.dragStart){var r=this.context.event;this.context.view.emit("dragend",{target:r.target,x:r.x,y:r.y})}this.starting=!1,this.dragStart=!1},n}(sn);const w4=C4;var _4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return(0,g.ZT)(n,e),n.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},n.prototype.move=function(){if(this.starting){var t=this.startPoint,r=this.context.getCurrentPoint();if(su(t,r)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=an.vs(this.startMatrix,[["t",r.x-t.x,r.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},n.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},n.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},n}(sn);const b4=_4;var T4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return(0,g.ZT)(n,e),n.prototype.hasDim=function(t){return this.dims.includes(t)},n.prototype.getScale=function(t){var r=this.context.view;return"x"===t?r.getXScale():r.getYScales()[0]},n.prototype.resetDim=function(t){var r=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var i=this.getScale(t);r.scale(i.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},n.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},n}(sn);const zg=T4;var A4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return(0,g.ZT)(n,e),n.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0,(0,v.S6)(this.dims,function(i){var a=t.getScale(i);t.startCache[i]={min:a.min,max:a.max,values:a.values}})},n.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},n.prototype.translate=function(){var t=this;if(this.starting){var r=this.startPoint,i=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=i.invert(r),s=i.invert(a),l=s.x-o.x,c=s.y-o.y,h=this.context.view;(0,v.S6)(this.dims,function(p){t.translateDim(p,{x:-1*l,y:-1*c})}),h.render(!0)}},n.prototype.translateDim=function(t,r){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.translateLinear(t,i,r)}},n.prototype.translateLinear=function(t,r,i){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,h=i[t]*(l-s);this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:r.nice,min:s,max:l}),a.scale(r.field,{nice:!1,min:s+h,max:l+h})},n.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},n}(zg);const F4=A4;var E4=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return(0,g.ZT)(n,e),n.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},n.prototype.zoom=function(t){var r=this;(0,v.S6)(this.dims,function(a){r.zoomDim(a,t)}),this.context.view.render(!0)},n.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},n.prototype.zoomDim=function(t,r){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.zoomLinear(t,i,r)}},n.prototype.zoomLinear=function(t,r,i){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:r.nice,min:r.min,max:r.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=r.min,c=r.max,h=i*s,f=l-h,p=c+h,y=(p-f)/s;p>f&&y<100&&y>.01&&a.scale(r.field,{nice:!1,min:l-h,max:c+h})},n}(zg);const k4=E4;var L4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.scroll=function(t){var r=this.context,i=r.view,a=r.event;if(i.getOptions().scrollbar){var o=t?.wheelDelta||1,s=i.getController("scrollbar"),l=i.getXScale(),c=i.getOptions().data,h=(0,v.dp)((0,v.I)(c,l.field)),f=(0,v.dp)(l.values),p=s.getValue(),y=Math.floor((h-f)*p)+(function I4(e){return e.gEvent.originalEvent.deltaY>0}(a)?o:-o),x=(0,v.uZ)(y/(h-f)+o/(h-f)/1e4,0,1);s.setValue(x)}},n}(sn);const O4=L4;var z4=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.show=function(){var t=this.context,i=Ii(t).axis.cfg.title,a=i.description,o=i.text,s=i.descriptionTooltipStyle,l=t.event,c=l.x,h=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return'\n
      \n
      \n \u5b57\u6bb5\u8bf4\u660e\uff1a').concat(a,"\n
      \n
      \n ")},x:c,y:h}),this.tooltip.show()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},n.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},n.prototype.renderTooltip=function(){var t,i=this.context.view.canvas,a={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},o=new bs({parent:i.get("el").parentNode,region:a,visible:!1,containerId:"aixs-description-tooltip",domStyles:(0,g.pi)({},(0,v.b$)({},(t={},t[Nr]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[Vr]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},n}(sn);const B4=z4;function Gr(e){return e.isInPlot()}function Bg(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}(function OC(e,n){cu[(0,v.vl)(e)]=Ps(n)})("dark",Tp(Ew)),Ef("canvas",te),Ef("svg",Qt),br("Polygon",X_),br("Interval",N_),br("Schema",J_),br("Path",Lu),br("Point",G_),br("Line",U_),br("Area",E_),br("Edge",I_),br("Heatmap",L_),br("Violin",j_),po("base",Ns),po("interval",d6),po("pie",m6),po("polar",Nd),Yn("overlap",function D6(e,n,t,r){var i=new Gd;(0,v.S6)(n,function(a){for(var o=a.find(function(d){return"text"===d.get("type")}),s=o.attr(),l=s.x,c=s.y,h=!1,f=0;f<=8;f++){var p=k6(o,l,c,f);if(i.hasGap(p)){i.fillGap(p),h=!0;break}}h||a.remove(!0)}),i.destroy()}),Yn("distribute",function M6(e,n,t,r){if(e.length&&n.length){var i=e[0]?e[0].offset:0,a=n[0].get("coordinate"),o=a.getRadius(),s=a.getCenter();if(i>0){var h=2*(o+i)+28,f={start:a.start,end:a.end},p=[[],[]];e.forEach(function(d){d&&("right"===d.textAlign?p[0].push(d):p[1].push(d))}),p.forEach(function(d,y){var m=h/14;d.length>m&&(d.sort(function(x,M){return M["..percent"]-x["..percent"]}),d.splice(m,d.length-m)),d.sort(function(x,M){return x.y-M.y}),function x6(e,n,t,r,i,a){var o,s,d,l=!0,c=r.start,h=r.end,f=Math.min(c.y,h.y),p=Math.abs(c.y-h.y),y=0,m=Number.MIN_VALUE,x=n.map(function(tt){return tt.y>y&&(y=tt.y),tt.yp&&(p=y-f);l;)for(x.forEach(function(tt){var it=(Math.min.apply(m,tt.targets)+Math.max.apply(m,tt.targets))/2;tt.pos=Math.min(Math.max(m,it-tt.size/2),p-tt.size)}),l=!1,d=x.length;d--;)if(d>0){var M=x[d-1],C=x[d];M.pos+M.size>C.pos&&(M.size+=C.size,M.targets=M.targets.concat(C.targets),M.pos+M.size>p&&(M.pos=p-M.size),x.splice(d,1),l=!0)}d=0,x.forEach(function(tt){var it=f+t/2;tt.targets.forEach(function(){n[d].y=tt.pos+it,it+=t,d++})});var S={};try{for(var b=(0,g.XA)(e),E=b.next();!E.done;E=b.next()){var W=E.value;S[W.get("id")]=W}}catch(tt){o={error:tt}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}n.forEach(function(tt){var it=tt.r*tt.r,wt=Math.pow(Math.abs(tt.y-i.y),2);if(its.maxX||o.maxY>s.maxY)&&i.remove(!0)})}),Yn("limit-in-canvas",function T6(e,n,t,r){(0,v.S6)(n,function(i){var a=r.minX,o=r.minY,s=r.maxX,l=r.maxY,c=i.getCanvasBBox(),h=c.minX,f=c.minY,p=c.maxX,d=c.maxY,y=c.x,m=c.y,C=y,S=m;(hs?C=s-c.width:p>s&&(C-=p-s),f>l?S=l-c.height:d>l&&(S-=d-l),(C!==y||S!==m)&&yo(i,C-y,S-m)})}),Yn("limit-in-plot",function a3(e,n,t,r,i){if(!(n.length<=0)){var a=i?.direction||["top","right","bottom","left"],o=i?.action||"translate",s=i?.margin||0,l=n[0].get("coordinate");if(l){var c=function WM(e,n){void 0===n&&(n=0);var t=e.start,r=e.end,i=e.getWidth(),a=e.getHeight(),o=Math.min(t.x,r.x),s=Math.min(t.y,r.y);return On.fromRange(o-n,s-n,o+i+n,s+a+n)}(l,s),h=c.minX,f=c.minY,p=c.maxX,d=c.maxY;(0,v.S6)(n,function(y){var m=y.getCanvasBBox(),x=m.minX,M=m.minY,C=m.maxX,S=m.maxY,b=m.x,E=m.y,W=m.width,tt=m.height,it=b,wt=E;if(a.indexOf("left")>=0&&(x=0&&(M=0&&(x>p?it=p-W:C>p&&(it-=C-p)),a.indexOf("bottom")>=0&&(M>d?wt=d-tt:S>d&&(wt-=S-d)),it!==b||wt!==E){var yt=it-b;"translate"===o?yo(y,yt,wt-E):"ellipsis"===o?y.findAll(function(ee){return"text"===ee.get("type")}).forEach(function(ee){var me=(0,v.ei)(ee.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),_e=ee.getCanvasBBox(),ze=function(e,n,t){var a,i=Ks("...",t);a=(0,v.HD)(e)?e:(0,v.BB)(e);var l,c,o=n,s=[];if(Ks(e,t)<=n)return e;for(;l=a.substr(0,16),!((c=Ks(l,t))+i>o&&c>o);)if(s.push(l),o-=c,!(a=a.substr(16)))return s.join("");for(;l=a.substr(0,1),!((c=Ks(l,t))+i>o);)if(s.push(l),o-=c,!(a=a.substr(1)))return s.join("");return"".concat(s.join(""),"...")}(ee.attr("text"),_e.width-Math.abs(yt),me);ee.attr("text",ze)}):y.hide()}})}}}),Yn("pie-outer",function w6(e,n,t,r){var i,a,o=(0,v.hX)(e,function(it){return!(0,v.UM)(it)}),s=n[0]&&n[0].get("coordinate");if(s){var l=s.getCenter(),c=s.getRadius(),h={};try{for(var f=(0,g.XA)(n),p=f.next();!p.done;p=f.next()){var d=p.value;h[d.get("id")]=d}}catch(it){i={error:it}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}var y=(0,v.U2)(o[0],"labelHeight",14),m=(0,v.U2)(o[0],"offset",0);if(!(m<=0)){var M="right",C=(0,v.vM)(o,function(it){return it.xyt&&(it.sort(function(Ut,ee){return ee.percent-Ut.percent}),(0,v.S6)(it,function(Ut,ee){ee+1>yt&&(h[Ut.id].set("visible",!1),Ut.invisible=!0)})),Ud(it,y,tt)}),(0,v.S6)(C,function(it,wt){(0,v.S6)(it,function(yt){var Ut=wt===M,me=h[yt.id].getChildByIndex(0);if(me){var _e=c+m,ze=yt.y-l.y,Xt=Math.pow(_e,2),fe=Math.pow(ze,2),ge=Math.sqrt(Xt-fe>0?Xt-fe:0),Me=Math.abs(Math.cos(yt.angle)*_e);yt.x=Ut?l.x+Math.max(ge,Me):l.x-Math.max(ge,Me)}me&&(me.attr("y",yt.y),me.attr("x",yt.x)),function C6(e,n){var t=n.getCenter(),r=n.getRadius();if(e&&e.labelLine){var i=e.angle,a=e.offset,o=yn(t.x,t.y,r,i),s=e.x+(0,v.U2)(e,"offsetX",0)*(Math.cos(i)>0?1:-1),l=e.y+(0,v.U2)(e,"offsetY",0)*(Math.sin(i)>0?1:-1),c={x:s-4*Math.cos(i),y:l-4*Math.sin(i)},h=e.labelLine.smooth,f=[],p=c.x-t.x,y=Math.atan((c.y-t.y)/p);if(p<0&&(y+=Math.PI),!1===h){(0,v.Kn)(e.labelLine)||(e.labelLine={});var m=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&c.y>o.y&&(m=1),i>=0&&io.y&&(m=1),i>=Math.PI/2&&ic.y&&(m=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&o.y>c.y&&(m=1);var x=a/2>4?4:Math.max(a/2-1,0),M=yn(t.x,t.y,r+x,i),C=yn(t.x,t.y,r+a/2,y);f.push("M ".concat(o.x," ").concat(o.y)),f.push("L ".concat(M.x," ").concat(M.y)),f.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(0," ").concat(m," ").concat(C.x," ").concat(C.y)),f.push("L ".concat(c.x," ").concat(c.y))}else{M=yn(t.x,t.y,r+(a/2>4?4:Math.max(a/2-1,0)),i);var b=o.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",c.x+4*b,c.y,2*M.x-o.x,2*M.y-o.y,o.x,o.y]),f.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=f.join(" ")}}(yt,s)})})}}}),Yn("adjust-color",function G6(e,n,t){if(0!==t.length){var i=t[0].get("element").geometry.theme,a=i.labels||{},o=a.fillColorLight,s=a.fillColorDark;t.forEach(function(l,c){var f=n[c].find(function(M){return"text"===M.get("type")}),p=On.fromObject(l.getBBox()),d=On.fromObject(f.getCanvasBBox()),y=!p.contains(d),x=function(e){var n=ei.toRGB(e).toUpperCase();if(Qd[n])return Qd[n];var t=(0,g.CR)(ei.rgb2arr(n),3);return(299*t[0]+587*t[1]+114*t[2])/1e3<128}(l.attr("fill"));y?f.attr(i.overflowLabels.style):x?o&&f.attr("fill",o):s&&f.attr("fill",s)})}}),Yn("interval-adjust-position",function $6(e,n,t){var r;if(0!==t.length){var i=null===(r=t[0])||void 0===r?void 0:r.get("element"),a=i?.geometry;a&&"interval"===a.type&&function W6(e,n,t){return!!e.getAdjust("stack")||n.every(function(i,a){return function Z6(e,n,t){var r=e.coordinate,i=hi(n),a=On.fromObject(i.getCanvasBBox()),o=On.fromObject(t.getBBox());return r.isTransposed?o.height>=a.height:o.width>=a.width}(e,i,t[a])})}(a,n,t)&&t.forEach(function(s,l){!function X6(e,n,t){var r=e.coordinate,i=On.fromObject(t.getBBox());hi(n).attr(r.isTransposed?{x:i.minX+i.width/2,textAlign:"center"}:{y:i.minY+i.height/2,textBaseline:"middle"})}(a,n[l],s)})}}),Yn("interval-hide-overlap",function Q6(e,n,t){var r;if(0!==t.length){var i=null===(r=t[0])||void 0===r?void 0:r.get("element"),a=i?.geometry;if(a&&"interval"===a.type){var d,o=function J6(e){var t=[],r=Math.max(Math.floor(e.length/500),1);return(0,v.S6)(e,function(i,a){a%r==0?t.push(i):i.set("visible",!1)}),t}(n),l=(0,g.CR)(a.getXYFields(),1)[0],c=[],h=[],f=(0,v.vM)(o,function(x){return x.get("data")[l]}),p=(0,v.jj)((0,v.UI)(o,function(x){return x.get("data")[l]}));o.forEach(function(x){x.set("visible",!0)});var y=function(x){x&&(x.length&&h.push(x.pop()),h.push.apply(h,(0,g.ev)([],(0,g.CR)(x),!1)))};for((0,v.dp)(p)>0&&(d=p.shift(),y(f[d])),(0,v.dp)(p)>0&&(d=p.pop(),y(f[d])),(0,v.S6)(p.reverse(),function(x){y(f[x])});h.length>0;){var m=h.shift();m.get("visible")&&(dw(m,c)?m.set("visible",!1):c.push(m))}}}}),Yn("point-adjust-position",function K6(e,n,t,r,i){var a,o;if(0!==t.length){var s=null===(a=t[0])||void 0===a?void 0:a.get("element"),l=s?.geometry;if(l&&"point"===l.type){var c=(0,g.CR)(l.getXYFields(),2),h=c[0],f=c[1],p=(0,v.vM)(n,function(m){return m.get("data")[h]}),d=[],y=i&&i.offset||(null===(o=e[0])||void 0===o?void 0:o.offset)||12;(0,v.UI)((0,v.XP)(p).reverse(),function(m){for(var x=function q6(e,n){var t=e.getXYFields()[1],r=[],i=n.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,(0,g.ev)([],(0,g.CR)(i),!1)),r}(l,p[m]);x.length;){var M=x.shift(),C=hi(M);if(qd(d,M,function(E,W){return E.get("data")[h]===W.get("data")[h]&&E.get("data")[f]===W.get("data")[f]}))C.set("visible",!1);else{var b=!1;jd(d,M)&&(C.attr("y",C.attr("y")+2*y),b=jd(d,M)),b?C.set("visible",!1):d.push(M)}}})}}}),Yn("pie-spider",function b6(e,n,t,r){var i,a,o=n[0]&&n[0].get("coordinate");if(o){var s=o.getCenter(),l=o.getRadius(),c={};try{for(var h=(0,g.XA)(n),f=h.next();!f.done;f=h.next()){var p=f.value;c[p.get("id")]=p}}catch(it){i={error:it}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}var d=(0,v.U2)(e[0],"labelHeight",14),y=Math.max((0,v.U2)(e[0],"offset",0),4);(0,v.S6)(e,function(it){if(it&&(0,v.U2)(c,[it.id])){var yt=it.x>s.x||it.x===s.x&&it.y>s.y,Ut=(0,v.UM)(it.offsetX)?4:it.offsetX,ee=yn(s.x,s.y,l+4,it.angle);it.x=s.x+(yt?1:-1)*(l+(y+Ut)),it.y=ee.y}});var m=o.start,x=o.end,C="right",S=(0,v.vM)(e,function(it){return it.xb&&(b=Math.min(wt,Math.abs(m.y-x.y)))});var E={minX:m.x,maxX:x.x,minY:s.y-b/2,maxY:s.y+b/2};(0,v.S6)(S,function(it,wt){var yt=b/d;it.length>yt&&(it.sort(function(Ut,ee){return ee.percent-Ut.percent}),(0,v.S6)(it,function(Ut,ee){ee>yt&&(c[Ut.id].set("visible",!1),Ut.invisible=!0)})),Ud(it,d,E)});var W=E.minY,tt=E.maxY;(0,v.S6)(S,function(it,wt){var yt=wt===C;(0,v.S6)(it,function(Ut){var ee=(0,v.U2)(c,Ut&&[Ut.id]);if(ee){if(Ut.ytt)return void ee.set("visible",!1);var me=ee.getChildByIndex(0),_e=me.getCanvasBBox(),ze={x:yt?_e.x:_e.maxX,y:_e.y+_e.height/2};yo(me,Ut.x-ze.x,Ut.y-ze.y),Ut.labelLine&&function _6(e,n,t){var h,r=n.getCenter(),i=n.getRadius(),a={x:e.x-(t?4:-4),y:e.y},o=yn(r.x,r.y,i+4,e.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},c=yn(r.x,r.y,i,e.angle);if(a.y!==o.y){var f=t?4:-4;s.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-f),a.y0&&e.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-f))),e.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-f))),e.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.y0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,(0,g.ev)([],(0,g.CR)(i),!1)),r}(l,p[m]);x.length;){var M=x.shift(),C=hi(M);if(Kd(d,M,function(E,W){return E.get("data")[h]===W.get("data")[h]&&E.get("data")[f]===W.get("data")[f]}))C.set("visible",!1);else{var b=!1;tg(d,M)&&(C.attr("y",C.attr("y")+2*y),b=tg(d,M)),b?C.set("visible",!1):d.push(M)}}})}}}),Qn("fade-in",function o3(e,n,t){var r={fillOpacity:(0,v.UM)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,v.UM)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,v.UM)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(r,n)}),Qn("fade-out",function s3(e,n,t){e.animate({fillOpacity:0,strokeOpacity:0,opacity:0},n.duration,n.easing,function(){e.remove(!0)},n.delay)}),Qn("grow-in-x",function c3(e,n,t){Gu(e,n,t.coordinate,t.minYPoint,"x")}),Qn("grow-in-xy",function h3(e,n,t){Gu(e,n,t.coordinate,t.minYPoint,"xy")}),Qn("grow-in-y",function u3(e,n,t){Gu(e,n,t.coordinate,t.minYPoint,"y")}),Qn("scale-in-x",function p3(e,n,t){var r=e.getBBox(),a=e.get("origin").mappingData.points,o=a[0].y-a[1].y>0?r.maxX:r.minX,s=(r.minY+r.maxY)/2;e.applyToMatrix([o,s,1]);var l=an.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(l),e.animate({matrix:an.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},n)}),Qn("scale-in-y",function d3(e,n,t){var r=e.getBBox(),i=e.get("origin").mappingData,a=(r.minX+r.maxX)/2,o=i.points,s=o[0].y-o[1].y<=0?r.maxY:r.minY;e.applyToMatrix([a,s,1]);var l=an.vs(e.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);e.setMatrix(l),e.animate({matrix:an.vs(e.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},n)}),Qn("wave-in",function y3(e,n,t){var r=ru(t.coordinate,20),o=r.endState,s=e.setClip({type:r.type,attrs:r.startState});t.toAttrs&&e.attr(t.toAttrs),s.animate(o,(0,g.pi)((0,g.pi)({},n),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0),(0,v.mf)(n.callback)&&n.callback()}}))}),Qn("zoom-in",function m3(e,n,t){Zu(e,n,"zoomIn")}),Qn("zoom-out",function x3(e,n,t){Zu(e,n,"zoomOut")}),Qn("position-update",function v3(e,n,t){var r=t.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,e.attr(r),e.animate({x:i,y:a},n)}),Qn("sector-path-update",function g3(e,n,t){var r=t.toAttrs,i=t.coordinate,a=r.path||[],o=a.map(function(C){return C[0]});if(!(a.length<1)){var s=rg(a),l=s.startAngle,c=s.endAngle,h=s.radius,f=s.innerRadius,p=rg(e.attr("path")),d=p.startAngle,y=p.endAngle,m=i.getCenter(),x=l-d,M=c-y;if(0===x&&0===M)return void e.attr("path",a);e.animate(function(C){var S=d+C*x,b=y+C*M;return(0,g.pi)((0,g.pi)({},r),{path:(0,v.Xy)(o,["M","A","A","Z"])?Qv(m.x,m.y,h,S,b):oi(m.x,m.y,h,S,b,f)})},(0,g.pi)((0,g.pi)({},n),{callback:function(){e.attr("path",a),(0,v.mf)(n.callback)&&n.callback()}}))}}),Qn("path-in",function f3(e,n,t){var r=e.getTotalLength();e.attr("lineDash",[r]),e.animate(function(i){return{lineDashOffset:(1-i)*r}},n)}),da("rect",E3),da("mirror",A3),da("list",S3),da("matrix",b3),da("circle",C3),da("tree",I3),Di("axis",z3),Di("legend",U3),Di("tooltip",Pp),Di("annotation",O3),Di("slider",H3),Di("scrollbar",X3),be("tooltip",fg),be("sibling-tooltip",tb),be("ellipsis-text",nb),be("element-active",ob),be("element-single-active",pb),be("element-range-active",hb),be("element-highlight",Ku),be("element-highlight-by-x",xb),be("element-highlight-by-color",yb),be("element-single-highlight",wb),be("element-range-highlight",dg),be("element-sibling-highlight",dg,{effectSiblings:!0,effectByRecord:!0}),be("element-selected",Tb),be("element-single-selected",Fb),be("element-range-selected",_b),be("element-link-by-color",lb),be("active-region",q3),be("list-active",Ib),be("list-selected",Pb),be("list-highlight",th),be("list-unchecked",Bb),be("list-checked",Nb),be("list-focus",Ub),be("list-radio",Hb),be("legend-item-highlight",th,{componentNames:["legend"]}),be("axis-label-highlight",th,{componentNames:["axis"]}),be("axis-description",B4),be("rect-mask",wg),be("x-rect-mask",bg,{dim:"x"}),be("y-rect-mask",bg,{dim:"y"}),be("circle-mask",Wb),be("path-mask",Ag),be("smooth-path-mask",qb),be("rect-multi-mask",Eg),be("x-rect-multi-mask",kg,{dim:"x"}),be("y-rect-multi-mask",kg,{dim:"y"}),be("circle-multi-mask",n4),be("path-multi-mask",Ig),be("smooth-path-multi-mask",o4),be("cursor",l4),be("data-filter",u4),be("brush",ol),be("brush-x",ol,{dims:["x"]}),be("brush-y",ol,{dims:["y"]}),be("sibling-filter",oh),be("sibling-x-filter",oh,{dims:"x"}),be("sibling-y-filter",oh,{dims:"y"}),be("element-filter",p4),be("element-sibling-filter",Lg),be("element-sibling-filter-record",Lg,{byRecord:!0}),be("view-drag",w4),be("view-move",b4),be("scale-translate",F4),be("scale-zoom",k4),be("reset-button",x4,{name:"reset-button",text:"reset"}),be("mousewheel-scroll",O4),Oe("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Oe("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Oe("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Oe("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Oe("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Oe("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Oe("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Oe("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Oe("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Oe("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Oe("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Oe("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Oe("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gr,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gr,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gr,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Oe("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Oe("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gr,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gr,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gr,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Oe("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gr,action:"path-mask:start"},{trigger:"mousedown",isEnable:Gr,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Oe("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:Gr,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!Ls(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Oe("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Oe("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Oe("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Oe("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Oe("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Oe("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Oe("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Oe("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return Bg(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!Bg(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Oe("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Oe("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Gn=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],Tr=function(e){return e.ERROR="error",e.WARN="warn",e.INFO="log",e}(Tr||{}),Rg="AntV/G2Plot";function Ng(e){for(var n=[],t=1;t=0}),i=t.every(function(a){return(0,v.U2)(a,[n])<=0});return r?{min:0}:i?{max:0}:{}}function Vg(e,n,t,r,i){if(void 0===i&&(i=[]),!Array.isArray(e))return{nodes:[],links:[]};var a=[],o={},s=-1;return e.forEach(function(l){var c=l[n],h=l[t],f=l[r],p=Ke(l,i);o[c]||(o[c]=(0,g.pi)({id:++s,name:c},p)),o[h]||(o[h]=(0,g.pi)({id:++s,name:h},p)),a.push((0,g.pi)({source:o[c].id,target:o[h].id,value:f},p))}),{nodes:Object.values(o).sort(function(l,c){return l.id-c.id}),links:a}}function _a(e,n){var t=(0,v.hX)(e,function(r){var i=r[n];return null===i||"number"==typeof i&&!isNaN(i)});return Zr(Tr.WARN,t.length===e.length,"illegal data existed in chart data."),t}var ch,N4={}.toString,Ug=function(e,n){return N4.call(e)==="[object "+n+"]"},V4=function(e){return Ug(e,"Array")},Yg=function(e){if(!function(e){return"object"==typeof e&&null!==e}(e)||!Ug(e,"Object"))return!1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n},Hg=function(e,n,t,r){for(var i in t=t||0,r=r||5,n)if(Object.prototype.hasOwnProperty.call(n,i)){var a=n[i];a?Yg(a)?(Yg(e[i])||(e[i]={}),t0&&(t=t.map(function(r,i){return n.forEach(function(a,o){r+=n[o][i]}),r})),t}(0,v.HP)(function(e,n){void 0===n&&(n={});var t=n.fontSize,r=n.fontFamily,i=void 0===r?"sans-serif":r,a=n.fontWeight,o=n.fontStyle,s=n.fontVariant,l=function H4(){return ch||(ch=document.createElement("canvas").getContext("2d")),ch}();return l.font=[o,a,s,"".concat(t,"px"),i].join(" "),l.measureText((0,v.HD)(e)?e:"").width},function(e,n){return void 0===n&&(n={}),(0,g.ev)([e],(0,v.VO)(n),!0).join("")});function $4(e,n,t){var r=[],i=e[0],a=null;if(e.length<=2)return function Z4(e,n){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var r=1,i=e.length;r"},key:"".concat(0===l?"top":"bottom","-statistic")},Ke(s,["offsetX","offsetY","rotate","style","formatter"])))}})},J4=function(e,n,t){var r=n.statistic;[r.title,r.content].forEach(function(o){if(o){var s=(0,v.mf)(o.style)?o.style(t):o.style;e.annotation().html((0,g.pi)({position:["50%","100%"],html:function(l,c){var h=c.getCoordinate(),f=c.views[0].getCoordinate(),p=f.getCenter(),d=f.getRadius(),y=Math.max(Math.sin(f.startAngle),Math.sin(f.endAngle))*d,m=p.y+y-h.y.start-parseFloat((0,v.U2)(s,"fontSize",0)),x=h.getRadius()*h.innerRadius*2;Wg(l,(0,g.pi)({width:"".concat(x,"px"),transform:"translate(-50%, ".concat(m,"px)")},Zg(s)));var M=c.getData();if(o.customHtml)return o.customHtml(l,c,t,M);var C=o.content;return o.formatter&&(C=o.formatter(t,M)),C?(0,v.HD)(C)?C:"".concat(C):"
      "}},Ke(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function Xg(e,n){return n?(0,v.u4)(n,function(t,r,i){return t.replace(new RegExp("{\\s*".concat(i,"\\s*}"),"g"),r)},e):e}function Ye(e,n){return e.views.find(function(t){return t.id===n})}function Ao(e){var n=e.parent;return n?n.views:[]}function $g(e){return Ao(e).filter(function(n){return n!==e})}function Fo(e,n,t){void 0===t&&(t=e.geometries),e.animate("boolean"!=typeof n||n),(0,v.S6)(t,function(r){var i;i=(0,v.mf)(n)?n(r.type||r.shapeType,r)||!0:n,r.animate(i)})}function ul(){return"object"==typeof window?window?.devicePixelRatio:2}function hh(e,n){void 0===n&&(n=e);var t=document.createElement("canvas"),r=ul();return t.width=e*r,t.height=n*r,t.style.width="".concat(e,"px"),t.style.height="".concat(n,"px"),t.getContext("2d").scale(r,r),t}function fh(e,n,t,r){void 0===r&&(r=t);var i=n.backgroundColor;e.globalAlpha=n.opacity,e.fillStyle=i,e.beginPath(),e.fillRect(0,0,t,r),e.closePath()}function Jg(e,n,t){var r=e+n;return t?2*r:r}function Qg(e,n){return n?[[.25*e,.25*e],[.75*e,.75*e]]:[[.5*e,.5*e]]}function vh(e,n){var t=n*Math.PI/180;return{a:Math.cos(t)*(1/e),b:Math.sin(t)*(1/e),c:-Math.sin(t)*(1/e),d:Math.cos(t)*(1/e),e:0,f:0}}var Q4={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function q4(e,n,t,r){var i=n.size,a=n.fill,o=n.lineWidth,s=n.stroke,l=n.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=a,e.strokeStyle=s,e.lineWidth=o,e.arc(t,r,i/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}var K4={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};var nT={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function rT(e,n,t,r){var i=n.stroke,a=n.size,o=n.fill,s=n.lineWidth;e.globalAlpha=n.fillOpacity,e.strokeStyle=i,e.lineWidth=s,e.fillStyle=o,e.strokeRect(t-a/2,r-a/2,a,a),e.fillRect(t-a/2,r-a/2,a,a)}function aT(e){var r,t=e.cfg;switch(e.type){case"dot":r=function j4(e){var n=St({},Q4,e),i=n.isStagger,a=n.rotation,o=Jg(n.size,n.padding,i),s=Qg(o,i),l=hh(o,o),c=l.getContext("2d");fh(c,n,o);for(var h=0,f=s;h0&&function FT(e,n,t){(function TT(e,n,t){var r=e.view,i=e.geometry,a=e.group,o=e.options,s=e.horizontal,l=o.offset,c=o.size,h=o.arrow,f=r.getCoordinate(),p=yl(f,n)[3],d=yl(f,t)[0],y=d.y-p.y,m=d.x-p.x;if("boolean"!=typeof h){var C,x=h.headSize,M=o.spacing;s?(m-x)/2S){var W=Math.max(1,Math.ceil(S/(b/m.length))-1),tt="".concat(m.slice(0,W),"...");C.attr("text",tt)}}}}(e,n,t)}(p,d[m-1],y)})}})),r}}(t.yField,!n,!!r),function _T(e){return void 0===e&&(e=!1),function(n){var t=n.chart,i=n.options.connectedArea,a=function(){t.removeInteraction(Hi.hover),t.removeInteraction(Hi.click)};if(!e&&i){var o=i.trigger||"hover";a(),t.interaction(Hi[o],{start:yh(o,i.style)})}else a();return n}}(!t.isStack),Ui)(e)}function zT(e){var n=e.options,t=n.xField,r=n.yField,i=n.xAxis,a=n.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=!1!==a&&(0,g.pi)({position:o[a?.position||"left"]},a),l=!1!==i&&(0,g.pi)({position:o[i?.position||"bottom"]},i);return(0,g.pi)((0,g.pi)({},e),{options:(0,g.pi)((0,g.pi)({},n),{xField:r,yField:t,xAxis:s,yAxis:l})})}function BT(e){var t=e.options.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),St({},e,{options:{label:t}})}function RT(e){var n=e.options,i=n.legend;return n.seriesField?!1!==i&&(i=(0,g.pi)({position:n.isStack?"top-left":"right-top"},i||{})):i=!1,St({},e,{options:{legend:i}})}function NT(e){var t=[{type:"transpose"},{type:"reflectY"}].concat(e.options.coordinate||[]);return St({},e,{options:{coordinate:t}})}function VT(e){var t=e.options,r=t.barStyle,i=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return ml({chart:e.chart,options:(0,g.pi)((0,g.pi)({},t),{columnStyle:r,columnWidthRatio:i,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function f0(e){return ke(zT,BT,RT,Mn,NT,VT)(e)}Oe(Hi.hover,{start:yh(Hi.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Oe(Hi.click,{start:yh(Hi.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var Ch,UT=St({},Be.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),xh=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return UT},n.prototype.changeData=function(t){var r,i;this.updateOption({data:t});var o=this.chart,s=this.options,l=s.isPercent,c=s.xField,h=s.yField,f=s.xAxis,p=s.yAxis;c=(r=[h,c])[0],h=r[1],f=(i=[p,f])[0],p=i[1],mh({chart:o,options:(0,g.pi)((0,g.pi)({},s),{xField:c,yField:h,yAxis:p,xAxis:f})}),o.changeData(ko(t,c,h,c,l))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return f0},n}(Be),YT=St({},Be.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),Mh=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return YT},n.prototype.changeData=function(t){this.updateOption({data:t});var r=this.options,i=r.yField,a=r.xField,o=r.isPercent;mh({chart:this.chart,options:this.options}),this.chart.changeData(ko(t,i,a,i,o))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return ml},n}(Be),mi="$$percentage$$",xi="$$mappingValue$$",Xr="$$conversion$$",wh="$$totalPercentage$$",Io="$$x$$",Do="$$y$$",HT={appendPadding:[0,80],minSize:0,maxSize:1,meta:(Ch={},Ch[xi]={min:0,max:1,nice:!1},Ch),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},v0="CONVERSION_TAG_NAME";function Sh(e,n,t){var i=t.yField,a=t.maxSize,o=t.minSize,s=(0,v.U2)((0,v.UT)(n,i),[i]),l=(0,v.hj)(a)?a:1,c=(0,v.hj)(o)?o:0;return(0,v.UI)(e,function(h,f){var p=(h[i]||0)/s;return h[mi]=p,h[xi]=(l-c)*p+c,h[Xr]=[(0,v.U2)(e,[f-1,i]),h[i]],h})}function _h(e){return function(n){var t=n.chart,r=n.options,i=r.conversionTag,o=r.filteredData||t.getOptions().data;if(i){var s=i.formatter;o.forEach(function(l,c){if(!(c<=0||Number.isNaN(l[xi]))){var h=e(l,c,o,{top:!0,name:v0,text:{content:(0,v.mf)(s)?s(l,o):s,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:(0,g.pi)({textAlign:"start",textBaseline:"middle"},i.style)}});t.annotation().line(h)}})}return n}}function GT(e){var n=e.chart,t=e.options,r=t.data,i=void 0===r?[]:r,l=Sh(i,i,{yField:t.yField,maxSize:t.maxSize,minSize:t.minSize});return n.data(l),e}function ZT(e){var n=e.chart,t=e.options,r=t.xField,a=t.color,s=t.label,l=t.shape,c=void 0===l?"funnel":l,h=t.funnelStyle,f=t.state,p=ar(t.tooltip,[r,t.yField]),d=p.fields,y=p.formatter;return Zn({chart:n,options:{type:"interval",xField:r,yField:xi,colorField:r,tooltipFields:(0,v.kJ)(d)&&d.concat([mi,Xr]),mapping:{shape:c,tooltip:y,color:a,style:h},label:s,state:f}}),Fn(e.chart,"interval").adjust("symmetric"),e}function WT(e){return e.chart.coordinate({type:"rect",actions:e.options.isTransposed?[]:[["transpose"],["scale",1,-1]]}),e}function p0(e){var t=e.chart,r=e.options.maxSize,i=(0,v.U2)(t,["geometries","0","dataArray"],[]),a=(0,v.U2)(t,["options","data","length"]),o=(0,v.UI)(i,function(l){return(0,v.U2)(l,["0","nextPoints","0","x"])*a-.5});return _h(function(l,c,h,f){var p=r-(r-l[xi])/2;return(0,g.pi)((0,g.pi)({},f),{start:[o[c-1]||c-.5,p],end:[o[c-1]||c-.5,p+.05]})})(e),e}function d0(e){return ke(GT,ZT,WT,p0)(e)}function XT(e){var n,t=e.chart,r=e.options,i=r.data,o=r.yField;return t.data(void 0===i?[]:i),t.scale(((n={})[o]={sync:!0},n)),e}function $T(e){var t=e.options,r=t.data,i=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,c=t.tooltip,h=t.maxSize,f=t.minSize,p=t.label,d=t.funnelStyle,y=t.state;return e.chart.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:t.showFacetTitle,eachView:function(x,M){var C=l?M.rowIndex:M.columnIndex;l||x.coordinate({type:"rect",actions:[["transpose"],["scale",0===C?-1:1,-1]]});var S=Sh(M.data,r,{yField:a,maxSize:h,minSize:f});x.data(S);var b=ar(c,[i,a,s]),E=b.fields,W=b.formatter,tt=l?{offset:0===C?10:-23,position:0===C?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===C?"end":"start"}};Zn({chart:x,options:{type:"interval",xField:i,yField:xi,colorField:i,tooltipFields:(0,v.kJ)(E)&&E.concat([mi,Xr]),mapping:{shape:"funnel",tooltip:W,color:o,style:d},label:!1!==p&&St({},tt,p),state:y}})}}),e}function g0(e){var n=e.chart,t=e.index,r=e.options,i=r.conversionTag,a=r.isTransposed;((0,v.hj)(t)?[n]:n.views).forEach(function(o,s){var l=(0,v.U2)(o,["geometries","0","dataArray"],[]),c=(0,v.U2)(o,["options","data","length"]),h=(0,v.UI)(l,function(p){return(0,v.U2)(p,["0","nextPoints","0","x"])*c-.5});_h(function(p,d,y,m){return St({},m,{start:[h[d-1]||d-.5,p[xi]],end:[h[d-1]||d-.5,p[xi]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:!1!==i?(0===(t||s)?-1:1)*i.offsetX:0,style:{textAlign:0===(t||s)?"end":"start"}}})})(St({},{chart:o,options:r}))})}function JT(e){return e.chart.once("beforepaint",function(){return g0(e)}),e}function qT(e){var n=e.chart,t=e.options,r=t.data,i=void 0===r?[]:r,a=t.yField,o=(0,v.u4)(i,function(c,h){return c+(h[a]||0)},0),s=(0,v.UT)(i,a)[a],l=(0,v.UI)(i,function(c,h){var f=[],p=[];if(c[wh]=(c[a]||0)/o,h){var d=i[h-1][Io],y=i[h-1][Do];f[0]=d[3],p[0]=y[3],f[1]=d[2],p[1]=y[2]}else f[0]=-.5,p[0]=1,f[1]=.5,p[1]=1;return p[2]=p[1]-c[wh],f[2]=(p[2]+1)/4,p[3]=p[2],f[3]=-f[2],c[Io]=f,c[Do]=p,c[mi]=(c[a]||0)/s,c[Xr]=[(0,v.U2)(i,[h-1,a]),c[a]],c});return n.data(l),e}function jT(e){var n=e.chart,t=e.options,r=t.xField,a=t.color,s=t.label,l=t.funnelStyle,c=t.state,h=ar(t.tooltip,[r,t.yField]),f=h.fields,p=h.formatter;return Zn({chart:n,options:{type:"polygon",xField:Io,yField:Do,colorField:r,tooltipFields:(0,v.kJ)(f)&&f.concat([mi,Xr]),label:s,state:c,mapping:{tooltip:p,color:a,style:l}}}),e}function KT(e){return e.chart.coordinate({type:"rect",actions:e.options.isTransposed?[["transpose"],["reflect","x"]]:[]}),e}function tA(e){return _h(function(t,r,i,a){return(0,g.pi)((0,g.pi)({},a),{start:[t[Io][1],t[Do][1]],end:[t[Io][1]+.05,t[Do][1]]})})(e),e}function nA(e){var n,t=e.chart,r=e.options,i=r.data,o=r.yField;return t.data(void 0===i?[]:i),t.scale(((n={})[o]={sync:!0},n)),e}function rA(e){var t=e.options;return e.chart.facet("rect",{fields:[t.seriesField],padding:[t.isTransposed?0:32,10,0,10],showTitle:t.showFacetTitle,eachView:function(o,s){d0(St({},e,{chart:o,options:{data:s.data}}))}}),e}var aA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendering=!1,t}return(0,g.ZT)(n,e),n.prototype.change=function(t){var r=this;if(!this.rendering){var a=t.compareField,o=a?g0:p0,s=this.context.view;(0,v.UI)(t.seriesField||a?s.views:[s],function(c,h){var f=c.getController("annotation"),p=(0,v.hX)((0,v.U2)(f,["option"],[]),function(y){return y.name!==v0});f.clear(!0),(0,v.S6)(p,function(y){"object"==typeof y&&c.annotation()[y.type](y)});var d=(0,v.U2)(c,["filteredData"],c.getOptions().data);o({chart:c,index:h,options:(0,g.pi)((0,g.pi)({},t),{filteredData:Sh(d,d,t)})}),c.filterData(d),r.rendering=!0,c.render(!0)})}this.rendering=!1},n}(sn),y0="funnel-conversion-tag",bh="funnel-afterrender",m0={trigger:"afterrender",action:"".concat(y0,":change")};function oA(e){var h,n=e.options,t=n.compareField,r=n.xField,i=n.yField,o=n.funnelStyle,s=n.data,l=fl(n.locale);return(t||o)&&(h=function(f){return St({},t&&{lineWidth:1,stroke:"#fff"},(0,v.mf)(o)?o(f):o)}),St({options:{label:t?{fields:[r,i,t,mi,Xr],formatter:function(f){return"".concat(f[i])}}:{fields:[r,i,mi,Xr],offset:0,position:"middle",formatter:function(f){return"".concat(f[r]," ").concat(f[i])}},tooltip:{title:r,formatter:function(f){return{name:f[r],value:f[i]}}},conversionTag:{formatter:function(f){return"".concat(l.get(["conversionTag","label"]),": ").concat(h0.apply(void 0,f[Xr]))}}}},e,{options:{funnelStyle:h,data:(0,v.d9)(s)}})}function sA(e){var n=e.options,t=n.compareField,r=n.dynamicHeight;return n.seriesField?function iA(e){return ke(nA,rA)(e)}(e):t?function QT(e){return ke(XT,$T,JT)(e)}(e):r?function eA(e){return ke(qT,jT,KT,tA)(e)}(e):d0(e)}function lA(e){var n,t=e.options,i=t.yAxis,o=t.yField;return ke(fn(((n={})[t.xField]=t.xAxis,n[o]=i,n)))(e)}function cA(e){return e.chart.axis(!1),e}function uA(e){var r=e.options.legend;return e.chart.legend(!1!==r&&r),e}function hA(e){var n=e.chart,t=e.options,i=t.dynamicHeight;return(0,v.S6)(t.interactions,function(a){!1===a.enable?n.removeInteraction(a.type):n.interaction(a.type,a.cfg||{})}),i?n.removeInteraction(bh):n.interaction(bh,{start:[(0,g.pi)((0,g.pi)({},m0),{arg:t})]}),e}function x0(e){return ke(oA,sA,lA,cA,Mn,hA,uA,tn,$e,cn())(e)}be(y0,aA),Oe(bh,{start:[m0]});var xl,M0=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return HT},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return x0},n.prototype.setState=function(t,r,i){void 0===i&&(i=!0);var a=To(this.chart);(0,v.S6)(a,function(o){r(o.getData())&&o.setState(t,i)})},n.prototype.getStates=function(){var t=To(this.chart),r=[];return(0,v.S6)(t,function(i){var a=i.getData(),o=i.getStates();(0,v.S6)(o,function(s){r.push({data:a,state:s,geometry:i.geometry,element:i})})}),r},n.CONVERSATION_FIELD=Xr,n.PERCENT_FIELD=mi,n.TOTAL_PERCENT_FIELD=wh,n}(Be),Th="range",C0="type",$r="percent",fA="#f0f0f0",w0="indicator-view",S0="range-view",vA={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(xl={},xl[Th]={sync:"v"},xl[$r]={sync:"v",tickCount:5,tickInterval:.2},xl),animation:!1};function _0(e){var n;return[(n={},n[$r]=(0,v.uZ)(e,0,1),n)]}function b0(e,n){var t=(0,v.U2)(n,["ticks"],[]),r=(0,v.dp)(t)?(0,v.jj)(t):[0,(0,v.uZ)(e,0,1),1];return r[0]||r.shift(),function pA(e,n){return e.map(function(t,r){var i;return(i={})[Th]=t-(e[r-1]||0),i[C0]="".concat(r),i[$r]=n,i})}(r,e)}function dA(e){var n=e.chart,t=e.options,r=t.percent,i=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,c=t.axis,h=t.indicator,f=t.gaugeStyle,p=t.type,d=t.meter,y=i.color,m=i.width;if(h){var x=_0(r),M=n.createView({id:w0});M.data(x),M.point().position("".concat($r,"*1")).shape(h.shape||"gauge-indicator").customInfo({defaultColor:n.getTheme().defaultColor,indicator:h}),M.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),M.axis($r,c),M.scale($r,Ke(c,Gn))}var C=b0(r,t.range),S=n.createView({id:S0});S.data(C);var b=(0,v.HD)(y)?[y,fA]:y;return En({chart:S,options:{xField:"1",yField:Th,seriesField:C0,rawFields:[$r],isStack:!0,interval:{color:b,style:f,shape:"meter"===p?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:m,maxColumnWidth:m}}).ext.geometry.customInfo({meter:d}),S.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),e}function gA(e){var n;return ke(fn(((n={range:{min:0,max:1,maxLimit:1,minLimit:0}})[$r]={},n)))(e)}function T0(e,n){var t=e.chart,r=e.options,i=r.statistic,a=r.percent;if(t.getController("annotation").clear(!0),i){var o=i.content,s=void 0;o&&(s=St({},{content:"".concat((100*a).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),J4(t,{statistic:(0,g.pi)((0,g.pi)({},i),{content:s})},{percent:a})}return n&&t.render(!0),e}function yA(e){var r=e.options.tooltip;return e.chart.tooltip(!!r&&St({showTitle:!1,showMarkers:!1,containerTpl:'
      ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(i,a){var o=(0,v.U2)(a,[0,"data",$r],0);return"".concat((100*o).toFixed(2),"%")}},r)),e}function mA(e){return e.chart.legend(!1),e}function A0(e){return ke($e,tn,dA,gA,yA,T0,ln,cn(),mA)(e)}Qe("point","gauge-indicator",{draw:function(e,n){var t=e.customInfo,r=t.indicator,i=t.defaultColor,o=r.pointer,s=r.pin,l=n.addGroup(),c=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,g.pi)({x1:c.x,y1:c.y,x2:e.x,y2:e.y,stroke:i},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,g.pi)({x:c.x,y:c.y,stroke:i},s.style)}),l}}),Qe("interval","meter-gauge",{draw:function(e,n){var t=e.customInfo.meter,r=void 0===t?{}:t,i=r.steps,a=void 0===i?50:i,o=r.stepRatio,s=void 0===o?.5:o;a=a<1?1:a,s=(0,v.uZ)(s,0,1);var l=this.coordinate,c=l.startAngle,f=0;s>0&&s<1&&(f=(l.endAngle-c)/a/(s/(1-s)+1-1/a));for(var d=f/(1-s)*s,y=n.addGroup(),m=this.coordinate.getCenter(),x=this.coordinate.getRadius(),M=Hn.getAngle(e,this.coordinate),S=M.endAngle,b=M.startAngle;b1?l/(r-1):s.max),!t&&!r){var h=function MA(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}(o);c=l/h}var f={},p=(0,v.vM)(a,i);(0,v.xb)(p)?(0,v.S6)(a,function(y){var x=F0(y[n],c,r),M="".concat(x[0],"-").concat(x[1]);(0,v.wH)(f,M)||(f[M]={range:x,count:0}),f[M].count+=1}):Object.keys(p).forEach(function(y){(0,v.S6)(p[y],function(m){var M=F0(m[n],c,r),C="".concat(M[0],"-").concat(M[1]),S="".concat(C,"-").concat(y);(0,v.wH)(f,S)||(f[S]={range:M,count:0},f[S][i]=y),f[S].count+=1})});var d=[];return(0,v.S6)(f,function(y){d.push(y)}),d}var Ml="range",Lo="count",CA=St({},Be.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function wA(e){var n=e.chart,t=e.options,s=t.color,l=t.stackField,c=t.legend,h=t.columnStyle,f=E0(t.data,t.binField,t.binWidth,t.binNumber,l);return n.data(f),En(St({},e,{options:{xField:Ml,yField:Lo,seriesField:l,isStack:!0,interval:{color:s,style:h}}})),c&&l?n.legend(l,c):n.legend(!1),e}function SA(e){var n,t=e.options,i=t.yAxis;return ke(fn(((n={})[Ml]=t.xAxis,n[Lo]=i,n)))(e)}function _A(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis;return n.axis(Ml,!1!==r&&r),n.axis(Lo,!1!==i&&i),e}function bA(e){var r=e.options.label,i=Fn(e.chart,"interval");if(r){var a=r.callback,o=(0,g._T)(r,["callback"]);i.label({fields:[Lo],callback:a,cfg:wn(o)})}else i.label(!1);return e}function k0(e){return ke($e,jn("columnStyle"),wA,SA,_A,yi,bA,Mn,ln,tn)(e)}var TA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return CA},n.prototype.changeData=function(t){this.updateOption({data:t});var r=this.options;this.chart.changeData(E0(t,r.binField,r.binWidth,r.binNumber,r.stackField))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return k0},n}(Be),AA=St({},Be.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),FA=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.active=function(){var t=this.getView(),r=this.context.event;if(r.data){var i=r.data.items,a=t.geometries.filter(function(o){return"point"===o.type});(0,v.S6)(a,function(o){(0,v.S6)(o.elements,function(s){var l=-1!==(0,v.cx)(i,function(c){return c.data===s.data});s.setState("active",l)})})}},n.prototype.reset=function(){var r=this.getView().geometries.filter(function(i){return"point"===i.type});(0,v.S6)(r,function(i){(0,v.S6)(i.elements,function(a){a.setState("active",!1)})})},n.prototype.getView=function(){return this.context.view},n}(sn);be("marker-active",FA),Oe("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Ah=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return AA},n.prototype.changeData=function(t){this.updateOption({data:t}),gl({chart:this.chart,options:this.options}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return s0},n}(Be),I0=St({},Be.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),EA=[1,0,0,0,1,0,0,0,1];function Fh(e,n){var t=(0,g.ev)([],n||EA,!0);return Hn.transform(t,e)}var kA=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getActiveElements=function(){var t=Hn.getDelegationObject(this.context);if(t){var r=this.context.view,a=t.item,o=t.component.get("field");if(o)return r.geometries[0].elements.filter(function(l){return l.getModel().data[o]===a.value})}return[]},n.prototype.getActiveElementLabels=function(){var t=this.context.view,r=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter(function(a){return r.find(function(o){return(0,v.Xy)(o.getData(),a.get("data"))})})},n.prototype.transfrom=function(t){void 0===t&&(t=7.5);var r=this.getActiveElements(),i=this.getActiveElementLabels();r.forEach(function(a,o){var s=i[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var c=Hn.getAngle(a.getModel(),l),p=(c.startAngle+c.endAngle)/2,d=t,y=d*Math.cos(p),m=d*Math.sin(p);a.shape.setMatrix(Fh([["t",y,m]])),s.setMatrix(Fh([["t",y,m]]))}})},n.prototype.active=function(){this.transfrom()},n.prototype.reset=function(){this.transfrom(0)},n}(sn),DA=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},n.prototype.getInitialAnnotation=function(){return this.initialAnnotation},n.prototype.init=function(){var t=this,r=this.context.view;r.removeInteraction("tooltip"),r.on("afterchangesize",function(){var i=t.getAnnotations(r);t.initialAnnotation=i})},n.prototype.change=function(t){var r=this.context,i=r.view,a=r.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,v.U2)(a,["data","data"]);if(a.type.match("legend-item")){var s=Hn.getDelegationObject(this.context),l=i.getGroupedFields()[0];if(s&&l){var c=s.item;o=i.getData().find(function(d){return d[l]===c.value})}}if(o){var h=(0,v.U2)(t,"annotations",[]),f=(0,v.U2)(t,"statistic",{});i.getController("annotation").clear(!0),(0,v.S6)(h,function(d){"object"==typeof d&&i.annotation()[d.type](d)}),cl(i,{statistic:f,plotType:"pie"},o),i.render(!0)}var p=function IA(e){var t,r=e.event.target;return r&&(t=r.get("element")),t}(this.context);p&&p.shape.toFront()},n.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var i=this.getInitialAnnotation();(0,v.S6)(i,function(a){t.annotation()[a.type](a)}),t.render(!0)},n}(sn),D0="pie-statistic";function OA(e,n){var t;switch(e){case"inner":return t="-30%",(0,v.HD)(n)&&n.endsWith("%")?.01*parseFloat(n)>0?t:n:n<0?n:t;case"outer":return t=12,(0,v.HD)(n)&&n.endsWith("%")?.01*parseFloat(n)<0?t:n:n>0?n:t;default:return n}}function Cl(e,n){return(0,v.yW)(_a(e,n),function(t){return 0===t[n]})}function PA(e){var n=e.chart,t=e.options,i=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,c=_a(t.data,i);if(Cl(c,i)){var h="$$percentage$$";c=c.map(function(p){var d;return(0,g.pi)((0,g.pi)({},p),((d={})[h]=1/c.length,d))}),n.data(c),En(St({},e,{options:{xField:"1",yField:h,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}}))}else n.data(c),En(St({},e,{options:{xField:"1",yField:i,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}}));return e}function zA(e){var n,t=e.chart,r=e.options,a=r.colorField,o=St({},r.meta);return t.scale(o,((n={})[a]={type:"cat"},n)),e}function BA(e){var t=e.options;return e.chart.coordinate({type:"theta",cfg:{radius:t.radius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle}}),e}function RA(e){var n=e.chart,t=e.options,r=t.label,i=t.colorField,a=t.angleField,o=n.geometries[0];if(r){var s=r.callback,c=wn((0,g._T)(r,["callback"]));if(c.content){var h=c.content;c.content=function(y,m,x){var M=y[i],C=y[a],S=n.getScaleByField(a),b=S?.scale(C);return(0,v.mf)(h)?h((0,g.pi)((0,g.pi)({},y),{percent:b}),m,x):(0,v.HD)(h)?Xg(h,{value:C,name:M,percentage:(0,v.hj)(b)&&!(0,v.UM)(C)?"".concat((100*b).toFixed(2),"%"):null}):h}}var p=c.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[c.type]:"pie-outer",d=c.layout?(0,v.kJ)(c.layout)?c.layout:[c.layout]:[];c.layout=(p?[{type:p}]:[]).concat(d),o.label({fields:i?[a,i]:[a],callback:s,cfg:(0,g.pi)((0,g.pi)({},c),{offset:OA(c.type,c.offset),type:"pie"})})}else o.label(!1);return e}function L0(e){var n=e.innerRadius,t=e.statistic,r=e.angleField,i=e.colorField,a=e.meta,s=fl(e.locale);if(n&&t){var l=St({},I0.statistic,t),c=l.title,h=l.content;return!1!==c&&(c=St({},{formatter:function(f){var p=f?f[i]:(0,v.UM)(c.content)?s.get(["statistic","total"]):c.content;return((0,v.U2)(a,[i,"formatter"])||function(y){return y})(p)}},c)),!1!==h&&(h=St({},{formatter:function(f,p){var d=f?f[r]:function LA(e,n){var t=null;return(0,v.S6)(e,function(r){"number"==typeof r[n]&&(t+=r[n])}),t}(p,r),y=(0,v.U2)(a,[r,"formatter"])||function(m){return m};return f||(0,v.UM)(h.content)?y(d):h.content}},h)),St({},{statistic:{title:c,content:h}},e)}return e}function O0(e){var n=e.chart,r=L0(e.options),i=r.innerRadius,a=r.statistic;return n.getController("annotation").clear(!0),ke(cn())(e),i&&a&&cl(n,{statistic:a,plotType:"pie"}),e}function NA(e){var n=e.chart,t=e.options,r=t.tooltip,i=t.colorField,a=t.angleField,o=t.data;if(!1===r)n.tooltip(r);else if(n.tooltip(St({},r,{shared:!1})),Cl(o,a)){var s=(0,v.U2)(r,"fields"),l=(0,v.U2)(r,"formatter");(0,v.xb)((0,v.U2)(r,"fields"))&&(s=[i,a],l=l||function(c){return{name:c[i],value:(0,v.BB)(c[a])}}),n.geometries[0].tooltip(s.join("*"),ba(s,l))}return e}function VA(e){var n=e.chart,r=L0(e.options),a=r.statistic,o=r.annotations;return(0,v.S6)(r.interactions,function(s){var l,c;if(!1===s.enable)n.removeInteraction(s.type);else if("pie-statistic-active"===s.type){var h=[];!(null===(l=s.cfg)||void 0===l)&&l.start||(h=[{trigger:"element:mouseenter",action:"".concat(D0,":change"),arg:{statistic:a,annotations:o}}]),(0,v.S6)(null===(c=s.cfg)||void 0===c?void 0:c.start,function(f){h.push((0,g.pi)((0,g.pi)({},f),{arg:{statistic:a,annotations:o}}))}),n.interaction(s.type,St({},s.cfg,{start:h}))}else n.interaction(s.type,s.cfg||{})}),e}function P0(e){return ke(jn("pieStyle"),PA,zA,$e,BA,Vi,NA,RA,yi,O0,VA,tn)(e)}be(D0,DA),Oe("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),be("pie-legend",kA),Oe("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var Eh=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return I0},n.prototype.changeData=function(t){this.chart.emit(Ue.BEFORE_CHANGE_DATA,un.fromData(this.chart,Ue.BEFORE_CHANGE_DATA,null));var i=this.options.angleField,a=_a(this.options.data,i),o=_a(t,i);Cl(a,i)||Cl(o,i)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),O0({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(Ue.AFTER_CHANGE_DATA,un.fromData(this.chart,Ue.AFTER_CHANGE_DATA,null))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return P0},n}(Be),z0=["#FAAD14","#E8EDF3"],UA={percent:.2,color:z0,animation:{}};function kh(e){var n=(0,v.uZ)(Ni(e)?e:0,0,1);return[{current:"".concat(n),type:"current",percent:n},{current:"".concat(n),type:"target",percent:1}]}function B0(e){var n=e.chart,t=e.options,i=t.progressStyle,a=t.color,o=t.barWidthRatio;return n.data(kh(t.percent)),En(St({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:i,color:(0,v.HD)(a)?[a,z0[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}})),n.tooltip(!1),n.axis(!1),n.legend(!1),e}function YA(e){return e.chart.coordinate("rect").transpose(),e}function R0(e){return ke(B0,fn({}),YA,tn,$e,cn())(e)}var HA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return UA},n.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(kh(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return R0},n}(Be);function GA(e){var t=e.options;return e.chart.coordinate("theta",{innerRadius:t.innerRadius,radius:t.radius}),e}function N0(e,n){var t=e.chart,r=e.options,i=r.innerRadius,a=r.statistic,o=r.percent,s=r.meta;if(t.getController("annotation").clear(!0),i&&a){var l=(0,v.U2)(s,["percent","formatter"])||function(h){return"".concat((100*h).toFixed(2),"%")},c=a.content;c&&(c=St({},c,{content:(0,v.UM)(c.content)?l(o):c.content})),cl(t,{statistic:(0,g.pi)((0,g.pi)({},a),{content:c}),plotType:"ring-progress"},{percent:o})}return n&&t.render(!0),e}function V0(e){return ke(B0,fn({}),GA,N0,tn,$e,cn())(e)}var ZA={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},WA=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return ZA},n.prototype.changeData=function(t){this.chart.emit(Ue.BEFORE_CHANGE_DATA,un.fromData(this.chart,Ue.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(kh(t)),N0({chart:this.chart,options:this.options},!0),this.chart.emit(Ue.AFTER_CHANGE_DATA,un.fromData(this.chart,Ue.AFTER_CHANGE_DATA,null))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return V0},n}(Be),Gi=V(9064),XA={exp:Gi.regressionExp,linear:Gi.regressionLinear,loess:Gi.regressionLoess,log:Gi.regressionLog,poly:Gi.regressionPoly,pow:Gi.regressionPow,quad:Gi.regressionQuad},JA=function(e,n){var t=n.view,r=n.options,a=r.yField,o=t.getScaleByField(r.xField),s=t.getScaleByField(a);return $4(e.map(function(c){return t.getCoordinate().convert({x:o.scale(c[0]),y:s.scale(c[1])})}),!1)},QA=function(e){var h,n=e.options,t=n.xField,r=n.yField,i=n.data,a=n.regressionLine,o=a.type,s=void 0===o?"linear":o,l=a.algorithm,c=a.equation,f=null;return l?(h=(0,v.kJ)(l)?l:l(i),f=c):f=function jA(e,n){var t,r,i,o=function(c){return Number.isFinite(c)?function(c,h){return void 0===h&&(h=4),Math.round(c*Math.pow(10,h))/Math.pow(10,h)}(c):"?"};switch(e){case"linear":return"y = ".concat(o(n.a),"x + ").concat(o(n.b),", R^2 = ").concat(o(n.rSquared));case"exp":return"y = ".concat(o(n.a),"e^(").concat(o(n.b),"x), R^2 = ").concat(o(n.rSquared));case"log":return"y = ".concat(o(n.a),"ln(x) + ").concat(o(n.b),", R^2 = ").concat(o(n.rSquared));case"quad":return"y = ".concat(o(n.a),"x^2 + ").concat(o(n.b),"x + ").concat(o(n.c),", R^2 = ").concat(o(n.rSquared));case"poly":for(var s="y = ".concat(o(null===(t=n.coefficients)||void 0===t?void 0:t[0])," + ").concat(o(null===(r=n.coefficients)||void 0===r?void 0:r[1]),"x + ").concat(o(null===(i=n.coefficients)||void 0===i?void 0:i[2]),"x^2"),l=3;l
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},d5={appendPadding:2,tooltip:(0,g.pi)({},X0),animation:{}};function g5(e){var n=e.chart,t=e.options,r=t.data,i=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o?.state,c=Zi(r);n.data(c);var h=St({},e,{options:{xField:Po,yField:Aa,area:{color:i,style:a},line:s,point:o}}),f=St({},h,{options:{tooltip:!1}}),p=St({},h,{options:{tooltip:!1,state:l}});return pl(h),Ta(f),Kn(p),n.axis(!1),n.legend(!1),e}function Fa(e){var n,t,r=e.options,i=r.xAxis,a=r.yAxis,s=Zi(r.data);return ke(fn(((n={})[Po]=i,n[Aa]=a,n),((t={})[Po]={type:"cat"},t[Aa]=sh(s,Aa),t)))(e)}function $0(e){return ke(jn("areaStyle"),g5,Fa,Mn,$e,tn,cn())(e)}var y5={appendPadding:2,tooltip:(0,g.pi)({},X0),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},m5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return y5},n.prototype.changeData=function(t){this.updateOption({data:t});var i=this.chart;Fa({chart:i,options:this.options}),i.changeData(Zi(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return $0},n}(Be);function x5(e){var n=e.chart,t=e.options,i=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=Zi(t.data);return n.data(s),En(St({},e,{options:{xField:Po,yField:Aa,widthRatio:o,interval:{style:a,color:i}}})),n.axis(!1),n.legend(!1),n.interaction("element-active"),e}function J0(e){return ke($e,jn("columnStyle"),x5,Fa,Mn,tn,cn())(e)}var C5={appendPadding:2,tooltip:(0,g.pi)({},{showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,n){return"".concat((0,v.U2)(n,[0,"data","y"],0))},containerTpl:'
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}}),animation:{}},w5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return C5},n.prototype.changeData=function(t){this.updateOption({data:t});var i=this.chart;Fa({chart:i,options:this.options}),i.changeData(Zi(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return J0},n}(Be);function S5(e){var n=e.chart,t=e.options,r=t.data,i=t.color,a=t.lineStyle,o=t.point,s=o?.state,l=Zi(r);n.data(l);var c=St({},e,{options:{xField:Po,yField:Aa,line:{color:i,style:a},point:o}}),h=St({},c,{options:{tooltip:!1,state:s}});return Ta(c),Kn(h),n.axis(!1),n.legend(!1),e}function Q0(e){return ke(S5,Fa,$e,Mn,tn,cn())(e)}var _5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return d5},n.prototype.changeData=function(t){this.updateOption({data:t});var i=this.chart;Fa({chart:i,options:this.options}),i.changeData(Zi(t))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Q0},n}(Be),b5={line:s0,pie:P0,column:ml,bar:f0,area:l0,gauge:A0,"tiny-line":Q0,"tiny-column":J0,"tiny-area":$0,"ring-progress":V0,progress:R0,scatter:Y0,histogram:k0,funnel:x0,stock:W0},T5={line:Ah,pie:Eh,column:Mh,bar:xh,area:gh,gauge:xA,"tiny-line":_5,"tiny-column":w5,"tiny-area":m5,"ring-progress":WA,progress:HA,scatter:Ih,histogram:TA,funnel:M0,stock:p5},A5={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Dh(e,n,t){var r=T5[e];r?(0,b5[e])({chart:n,options:St({},r.getDefaultOptions(),(0,v.U2)(A5,e,{}),t)}):console.error("could not find ".concat(e," plot"))}function F5(e){var n=e.chart,t=e.options,i=t.legend;return(0,v.S6)(t.views,function(a){var s=a.data,l=a.meta,c=a.axes,h=a.coordinate,f=a.interactions,p=a.annotations,d=a.tooltip,y=a.geometries,m=n.createView({region:a.region});m.data(s);var x={};c&&(0,v.S6)(c,function(M,C){x[C]=Ke(M,Gn)}),x=St({},l,x),m.scale(x),c?(0,v.S6)(c,function(M,C){m.axis(C,M)}):m.axis(!1),m.coordinate(h),(0,v.S6)(y,function(M){var C=Zn({chart:m,options:M}).ext,S=M.adjust;S&&C.geometry.adjust(S)}),(0,v.S6)(f,function(M){!1===M.enable?m.removeInteraction(M.type):m.interaction(M.type,M.cfg)}),(0,v.S6)(p,function(M){m.annotation()[M.type]((0,g.pi)({},M))}),"boolean"==typeof a.animation?m.animate(!1):(m.animate(!0),(0,v.S6)(m.geometries,function(M){M.animate(a.animation)})),d&&(m.interaction("tooltip"),m.tooltip(d))}),i?(0,v.S6)(i,function(a,o){n.legend(o,a)}):n.legend(!1),n.tooltip(t.tooltip),e}function E5(e){var n=e.chart,t=e.options,i=t.data,a=void 0===i?[]:i;return(0,v.S6)(t.plots,function(o){var s=o.type,l=o.region,c=o.options,h=void 0===c?{}:c,p=h.tooltip;if(o.top)Dh(s,n,(0,g.pi)((0,g.pi)({},h),{data:a}));else{var d=n.createView((0,g.pi)({region:l},Ke(h,n0)));p&&d.interaction("tooltip"),Dh(s,d,(0,g.pi)({data:a},h))}}),e}function k5(e){return e.chart.option("slider",e.options.slider),e}function I5(e){return ke(tn,F5,E5,ln,tn,$e,Mn,k5,cn())(e)}var O5=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getAssociationItems=function(t,r){var i,a=this.context.event,o=r||{},s=o.linkField,l=o.dim,c=[];if(null!==(i=a.data)&&void 0!==i&&i.data){var h=a.data.data;(0,v.S6)(t,function(f){var p,d,y=s;if("x"===l?y=f.getXScale().field:"y"===l?y=null===(p=f.getYScales().find(function(x){return x.field===y}))||void 0===p?void 0:p.field:y||(y=null===(d=f.getGroupScales()[0])||void 0===d?void 0:d.field),y){var m=(0,v.UI)(sl(f),function(x){var M=!1,C=!1,S=(0,v.kJ)(h)?(0,v.U2)(h[0],y):(0,v.U2)(h,y);return function D5(e,n){var r=e.getModel().data;return(0,v.kJ)(r)?r[0][n]:r[n]}(x,y)===S?M=!0:C=!0,{element:x,view:f,active:M,inactive:C}});c.push.apply(c,m)}})}return c},n.prototype.showTooltip=function(t){var r=$g(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},n.prototype.hideTooltip=function(){var t=$g(this.context.view);(0,v.S6)(t,function(r){r.hideTooltip()})},n.prototype.active=function(t){var r=Ao(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){a.active&&a.element.setState("active",!0)})},n.prototype.selected=function(t){var r=Ao(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){a.active&&a.element.setState("selected",!0)})},n.prototype.highlight=function(t){var r=Ao(this.context.view),i=this.getAssociationItems(r,t);(0,v.S6)(i,function(a){a.inactive&&a.element.setState("inactive",!0)})},n.prototype.reset=function(){var t=Ao(this.context.view);(0,v.S6)(t,function(r){!function L5(e){var n=sl(e);(0,v.S6)(n,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}(r)})},n}(sn);be("association",O5),Oe("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Oe("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Oe("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Oe("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var P5=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="mix",t}return(0,g.ZT)(n,e),n.prototype.getSchemaAdaptor=function(){return I5},n}(Be),zo=function(e){return e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE",e}(zo||{});Object.defineProperty(function e(){},"MultiView",{get:function(){return function z5(e,n){console.warn(e===zo.DEV?"Plot '".concat(n,"' is in DEV stage, just give us issues."):e===zo.BETA?"Plot '".concat(n,"' is in BETA stage, DO NOT use it in production env."):e===zo.STABLE?"Plot '".concat(n,"' is in STABLE stage, import it by \"import { ").concat(n," } from '@antv/g2plot'\"."):"invalid Stage type.")}(zo.STABLE,"MultiView"),P5},enumerable:!1,configurable:!0});var Ar="first-axes-view",Fr="second-axes-view",Wi="series-field-key";function q0(e,n,t,r,i){var a=[];n.forEach(function(f){r.forEach(function(p){var d,y=((d={})[e]=p[e],d[t]=f,d[f]=p[f],d);a.push(y)})});var o=Object.values((0,v.vM)(a,t)),s=o[0],l=void 0===s?[]:s,c=o[1],h=void 0===c?[]:c;return i?[l.reverse(),h.reverse()]:[l,h]}function Jr(e){return"vertical"!==e}function B5(e,n,t){var h,r=n[0],i=n[1],a=r.autoPadding,o=i.autoPadding,s=e.__axisPosition,l=s.layout,c=s.position;Jr(l)&&"top"===c&&(r.autoPadding=t.instance(a.top,0,a.bottom,a.left),i.autoPadding=t.instance(o.top,a.left,o.bottom,0)),Jr(l)&&"bottom"===c&&(r.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),i.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),Jr(l)||"bottom"!==c||(r.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,h=a.left>=o.left?a.left:o.left),i.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,h)),Jr(l)||"top"!==c||(r.autoPadding=t.instance(a.top,a.right,0,h=a.left>=o.left?a.left:o.left),i.autoPadding=t.instance(0,o.right,a.top,h))}function R5(e){var n=e.chart,t=e.options,i=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,c=t.legend,h=t.layout,f=q0(i,a,Wi,t.data,Jr(h));c?n.legend(Wi,c):!1===c&&n.legend(!1);var p,d,y=f[0],m=f[1];return Jr(h)?((p=n.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:Ar})).coordinate().transpose().reflect("x"),(d=n.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:Fr})).coordinate().transpose(),p.data(y),d.data(m)):(p=n.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:Ar}),(d=n.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:Fr})).coordinate().reflect("y"),p.data(y),d.data(m)),En(St({},e,{chart:p,options:{widthRatio:l,xField:i,yField:a[0],seriesField:Wi,interval:{color:o,style:s}}})),En(St({},e,{chart:d,options:{xField:i,yField:a[1],seriesField:Wi,widthRatio:l,interval:{color:o,style:s}}})),e}function N5(e){var n,t,r,i=e.options,a=e.chart,o=i.xAxis,s=i.yAxis,l=i.xField,c=i.yField,h=Ye(a,Ar),f=Ye(a,Fr),p={};return(0,v.XP)(i?.meta||{}).map(function(d){(0,v.U2)(i?.meta,[d,"alias"])&&(p[d]=i.meta[d].alias)}),a.scale(((n={})[Wi]={sync:!0,formatter:function(d){return(0,v.U2)(p,d,d)}},n)),fn(((t={})[l]=o,t[c[0]]=s[c[0]],t))(St({},e,{chart:h})),fn(((r={})[l]=o,r[c[1]]=s[c[1]],r))(St({},e,{chart:f})),e}function V5(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=Ye(n,Ar),c=Ye(n,Fr);return c.axis(a,"bottom"===r?.position&&(0,g.pi)((0,g.pi)({},r),{label:{formatter:function(){return""}}})),l.axis(a,!1!==r&&(0,g.pi)({position:Jr(s)?"top":"bottom"},r)),!1===i?(l.axis(o[0],!1),c.axis(o[1],!1)):(l.axis(o[0],i[o[0]]),c.axis(o[1],i[o[1]])),n.__axisPosition={position:l.getOptions().axes[a].position,layout:s},e}function U5(e){var n=e.chart;return ln(St({},e,{chart:Ye(n,Ar)})),ln(St({},e,{chart:Ye(n,Fr)})),e}function Y5(e){var n=e.chart,t=e.options,r=t.yField,i=t.yAxis;return Ui(St({},e,{chart:Ye(n,Ar),options:{yAxis:i[r[0]]}})),Ui(St({},e,{chart:Ye(n,Fr),options:{yAxis:i[r[1]]}})),e}function H5(e){var n=e.chart;return $e(St({},e,{chart:Ye(n,Ar)})),$e(St({},e,{chart:Ye(n,Fr)})),$e(e),e}function G5(e){var n=e.chart;return tn(St({},e,{chart:Ye(n,Ar)})),tn(St({},e,{chart:Ye(n,Fr)})),e}function Z5(e){var t,r,n=this,i=e.chart,a=e.options,o=a.label,s=a.yField,l=a.layout,c=Ye(i,Ar),h=Ye(i,Fr),f=Fn(c,"interval"),p=Fn(h,"interval");if(o){var d=o.callback,y=(0,g._T)(o,["callback"]);y.position||(y.position="middle"),void 0===y.offset&&(y.offset=2);var m=(0,g.pi)({},y);if(Jr(l)){var x=(null===(t=m.style)||void 0===t?void 0:t.textAlign)||("middle"===y.position?"center":"left");y.style=St({},y.style,{textAlign:x}),m.style=St({},m.style,{textAlign:{left:"right",right:"left",center:"center"}[x]})}else{var C={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof y.position?y.position=C[y.position]:"function"==typeof y.position&&(y.position=function(){for(var E=[],W=0;W1?"".concat(n,"_").concat(t):"".concat(n)}function ey(e){var t=e.xField,r=e.measureField,i=e.rangeField,a=e.targetField,o=e.layout,s=[],l=[];e.data.forEach(function(f,p){var d=[f[i]].flat();d.sort(function(x,M){return x-M}),d.forEach(function(x,M){var C,S=0===M?x:d[M]-d[M-1];s.push(((C={rKey:"".concat(i,"_").concat(M)})[t]=t?f[t]:String(p),C[i]=S,C))});var y=[f[r]].flat();y.forEach(function(x,M){var C;s.push(((C={mKey:ty(y,r,M)})[t]=t?f[t]:String(p),C[r]=x,C))});var m=[f[a]].flat();m.forEach(function(x,M){var C;s.push(((C={tKey:ty(m,a,M)})[t]=t?f[t]:String(p),C[a]=x,C))}),l.push(f[i],f[r],f[a])});var c=Math.min.apply(Math,l.flat(1/0)),h=Math.max.apply(Math,l.flat(1/0));return c=c>0?0:c,"vertical"===o&&s.reverse(),{min:c,max:h,ds:s}}function nF(e){var n=e.chart,t=e.options,r=t.bulletStyle,i=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,c=t.layout,h=t.size,f=t.label,p=ey(t),d=p.min,y=p.max;return n.data(p.ds),En(St({},e,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:(0,v.U2)(f,"range"),interval:{color:(0,v.U2)(l,"range"),style:(0,v.U2)(r,"range"),size:(0,v.U2)(h,"range")}}})),n.geometries[0].tooltip(!1),En(St({},e,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,v.U2)(f,"measure"),interval:{color:(0,v.U2)(l,"measure"),style:(0,v.U2)(r,"measure"),size:(0,v.U2)(h,"measure")}}})),Kn(St({},e,{options:{xField:s,yField:i,seriesField:"tKey",label:(0,v.U2)(f,"target"),point:{color:(0,v.U2)(l,"target"),style:(0,v.U2)(r,"target"),size:(0,v.mf)((0,v.U2)(h,"target"))?function(S){return(0,v.U2)(h,"target")(S)/2}:(0,v.U2)(h,"target")/2,shape:"horizontal"===c?"line":"hyphen"}}})),"horizontal"===c&&n.coordinate().transpose(),(0,g.pi)((0,g.pi)({},e),{ext:{data:{min:d,max:y}}})}function ny(e){var n,t,r=e.options,o=r.yAxis,s=r.targetField,l=r.rangeField,c=r.measureField,f=e.ext.data;return ke(fn(((n={})[r.xField]=r.xAxis,n[c]=o,n),((t={})[c]={min:f?.min,max:f?.max,sync:!0},t[s]={sync:"".concat(c)},t[l]={sync:"".concat(c)},t)))(e)}function rF(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,a=t.xField,o=t.measureField,l=t.targetField;return n.axis("".concat(t.rangeField),!1),n.axis("".concat(l),!1),n.axis("".concat(a),!1!==r&&r),n.axis("".concat(o),!1!==i&&i),e}function iF(e){var n=e.chart,r=e.options.legend;return n.removeInteraction("legend-filter"),n.legend(r),n.legend("rKey",!1),n.legend("mKey",!1),n.legend("tKey",!1),e}function aF(e){var t=e.options,r=t.label,i=t.measureField,a=t.targetField,o=t.rangeField,s=e.chart.geometries,l=s[0],c=s[1],h=s[2];return(0,v.U2)(r,"range")?l.label("".concat(o),(0,g.pi)({layout:[{type:"limit-in-plot"}]},wn(r.range))):l.label(!1),(0,v.U2)(r,"measure")?c.label("".concat(i),(0,g.pi)({layout:[{type:"limit-in-plot"}]},wn(r.measure))):c.label(!1),(0,v.U2)(r,"target")?h.label("".concat(a),(0,g.pi)({layout:[{type:"limit-in-plot"}]},wn(r.target))):h.label(!1),e}function oF(e){ke(nF,ny,rF,iF,$e,aF,Mn,ln,tn)(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return J5},n.prototype.changeData=function(t){this.updateOption({data:t});var r=this.options.yField,i=this.chart.views.find(function(a){return a.id===j0});i&&i.data(t),this.chart.changeData(K0(t,r))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return eF}}(Be);var sF=St({},Be.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),lF=(function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return sF},n.prototype.changeData=function(t){this.updateOption({data:t});var r=ey(this.options),o=r.ds;ny({options:this.options,ext:{data:{min:r.min,max:r.max}},chart:this.chart}),this.chart.changeData(o)},n.prototype.getSchemaAdaptor=function(){return oF},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()}}(Be),{y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null});var ry="x",iy="y",ay="name",oy="source",dF={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,n){return{offsetX:(e[0]+e[1])/2>.5?-4:4,content:n}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,v.U2)(e,[0,"data","isNode"])},formatter:function(e){var t=e.target,r=e.value;return{name:"".concat(e.source," -> ").concat(t),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function gF(e){var n=e.options,l=n.rawFields,c=void 0===l?[]:l,f=function pF(e,n){var t=function vF(e){return(0,v.f0)({},lF,e)}(e),r={},i=n.nodes,a=n.links;i.forEach(function(l){var c=t.id(l);r[c]=l}),function cF(e,n,t){(0,v.U5)(e,function(r,i){r.inEdges=n.filter(function(a){return"".concat(t.target(a))==="".concat(i)}),r.outEdges=n.filter(function(a){return"".concat(t.source(a))==="".concat(i)}),r.edges=r.outEdges.concat(r.inEdges),r.frequency=r.edges.length,r.value=0,r.inEdges.forEach(function(a){r.value+=t.targetWeight(a)}),r.outEdges.forEach(function(a){r.value+=t.sourceWeight(a)})})}(r,a,t),function uF(e,n){var r={weight:function(i,a){return a.value-i.value},frequency:function(i,a){return a.frequency-i.frequency},id:function(i,a){return"".concat(n.id(i)).localeCompare("".concat(n.id(a)))}}[n.sortBy];!r&&(0,v.mf)(n.sortBy)&&(r=n.sortBy),r&&e.sort(r)}(i,t);var o=function hF(e,n){var t=e.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(n.weight){var r=n.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*t),a=n.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(l){o+=l.value}),e.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-r),l.height=a}),e.forEach(function(l,c){for(var h=0,f=c-1;f>=0;f--)h+=e[f].width+2*i;var p=l.minX=i+h,d=l.maxX=l.minX+l.width,y=l.minY=n.y-a/2,m=l.maxY=y+a;l.x=[p,d,d,p],l.y=[y,y,m,m]})}else{var s=1/t;e.forEach(function(l,c){l.x=(c+.5)*s,l.y=n.y})}return e}(i,t),s=function fF(e,n,t){if(t.weight){var r={};(0,v.U5)(e,function(i,a){r[a]=i.value}),n.forEach(function(i){var a=t.source(i),o=t.target(i),s=e[a],l=e[o];if(s&&l){var c=r[a],h=t.sourceWeight(i),f=s.minX+(s.value-c)/s.value*s.width,p=f+h/s.value*s.width;r[a]-=h;var d=r[o],y=t.targetWeight(i),m=l.minX+(l.value-d)/l.value*l.width,x=m+y/l.value*l.width;r[o]-=y;var M=t.y;i.x=[f,p,m,x],i.y=[M,M,M,M],i.source=s,i.target=l}})}else n.forEach(function(i){var a=e[t.source(i)],o=e[t.target(i)];a&&o&&(i.x=[a.x,o.x],i.y=[a.y,o.y],i.source=a,i.target=o)});return n}(r,a,t);return{nodes:o,links:s}}({weight:!0,nodePaddingRatio:n.nodePaddingRatio,nodeWidthRatio:n.nodeWidthRatio},Vg(n.data,n.sourceField,n.targetField,n.weightField)),d=f.links,y=f.nodes.map(function(x){return(0,g.pi)((0,g.pi)({},Ke(x,(0,g.ev)(["id","x","y","name"],c,!0))),{isNode:!0})}),m=d.map(function(x){return(0,g.pi)((0,g.pi)({source:x.source.name,target:x.target.name,name:x.source.name||x.target.name},Ke(x,(0,g.ev)(["x","y","value"],c,!0))),{isNode:!1})});return(0,g.pi)((0,g.pi)({},e),{ext:(0,g.pi)((0,g.pi)({},e.ext),{chordData:{nodesData:y,edgesData:m}})})}function yF(e){var n;return e.chart.scale(((n={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[ay]={sync:"color"},n[oy]={sync:"color"},n)),e}function mF(e){return e.chart.axis(!1),e}function xF(e){return e.chart.legend(!1),e}function MF(e){return e.chart.tooltip(e.options.tooltip),e}function CF(e){return e.chart.coordinate("polar").reflect("y"),e}function wF(e){var t=e.options,r=e.ext.chordData.nodesData,i=t.nodeStyle,a=t.label,o=t.tooltip,s=e.chart.createView();return s.data(r),dl({chart:s,options:{xField:ry,yField:iy,seriesField:ay,polygon:{style:i},label:a,tooltip:o}}),e}function SF(e){var t=e.options,r=e.ext.chordData.edgesData,i=t.edgeStyle,a=t.tooltip,o=e.chart.createView();return o.data(r),t0({chart:o,options:{xField:ry,yField:iy,seriesField:oy,edge:{style:i,shape:"arc"},tooltip:a}}),e}function _F(e){var n=e.chart;return Fo(n,e.options.animation,function Y4(e){return(0,v.U2)(e,["views","length"],0)<=0?e.geometries:(0,v.u4)(e.views,function(n,t){return n.concat(t.geometries)},e.geometries)}(n)),e}function bF(e){return ke($e,gF,CF,yF,mF,xF,MF,SF,wF,ln,yi,_F)(e)}var TF=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="chord",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return dF},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return bF},n}(Be),AF=["x","y","r","name","value","path","depth"],FF={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},cy="drilldown-bread-crumb",kF={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Bo="hierarchy-data-transform-params",IF=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=kF,t}return(0,g.ZT)(n,e),n.prototype.click=function(){var t=(0,v.U2)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},n.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),r=this.breadCrumbGroup,i=r.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(i.height+10)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===a&&(o={x:t.start.x,y:t.start.y});var s=Hn.transform(null,[["t",o.x+0,o.y+i.height+5]]);r.setMatrix(s)}},n.prototype.back=function(){(0,v.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},n.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},n.prototype.drill=function(t){var r=this.context.view,i=(0,v.U2)(r,["interactions","drill-down","cfg","transformData"],function(c){return c}),a=i((0,g.pi)({data:t.data},t[Bo]));r.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:i((0,g.pi)({data:l},t[Bo]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},n.prototype.backTo=function(t){if(t&&!(t.length<=0)){var r=this.context.view,i=(0,v.Z$)(t).children;r.changeData(i),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},n.prototype.getButtonCfg=function(){var r=(0,v.U2)(this.context.view,["interactions","drill-down","cfg","drillDownConfig"]);return St(this.breadCrumbCfg,r?.breadCrumb,this.cfg)},n.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},n.prototype.drawBreadCrumbGroup=function(){var t=this,r=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:cy});var a=0;i.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(cy,"_").concat(o.name,"_text"),attrs:(0,g.pi)((0,g.pi)({text:0!==s||(0,v.UM)(r.rootText)?o.name:r.rootText},r.textStyle),{x:a,y:0})}),c=l.getBBox();if(a+=c.width+4,l.on("click",function(p){var d,y=p.target.get("id");if(y!==(null===(d=(0,v.Z$)(i))||void 0===d?void 0:d.id)){var m=i.slice(0,i.findIndex(function(x){return x.id===y})+1);t.backTo(m)}}),l.on("mouseenter",function(p){var d;p.target.get("id")!==(null===(d=(0,v.Z$)(i))||void 0===d?void 0:d.id)?l.attr(r.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(r.textStyle)}),s0&&t*t>r*r+i*i}function Oh(e,n){for(var t=0;t(l*=l)?(i=(c+l-a)/(2*c),s=Math.sqrt(Math.max(0,l/c-i*i)),t.x=e.x-i*r-s*o,t.y=e.y-i*o+s*r):(i=(c+a-l)/(2*c),s=Math.sqrt(Math.max(0,a/c-i*i)),t.x=n.x+i*r-s*o,t.y=n.y+i*o+s*r)):(t.x=n.x+t.r,t.y=n.y)}function py(e,n){var t=e.r+n.r-1e-6,r=n.x-e.x,i=n.y-e.y;return t>0&&t*t>r*r+i*i}function dy(e){var n=e._,t=e.next._,r=n.r+t.r,i=(n.x*t.r+t.x*n.r)/r,a=(n.y*t.r+t.y*n.r)/r;return i*i+a*a}function bl(e){this._=e,this.next=null,this.previous=null}function gy(e){if(!(i=(e=function DF(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(e)).length))return 0;var n,t,r,i,a,o,s,l,c,h,f;if((n=e[0]).x=0,n.y=0,!(i>1))return n.r;if(n.x=-(t=e[1]).r,t.x=n.r,t.y=0,!(i>2))return n.r+t.r;vy(t,n,r=e[2]),n=new bl(n),t=new bl(t),r=new bl(r),n.next=r.previous=t,t.next=n.previous=r,r.next=t.previous=n;t:for(s=3;s=0;)n+=t[r].value;else n=1;e.value=n}function Ia(e,n){e instanceof Map?(e=[void 0,e],void 0===n&&(n=rE)):void 0===n&&(n=nE);for(var r,a,o,s,l,t=new Da(e),i=[t];r=i.pop();)if((o=n(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new Da(o[s])),a.parent=r,a.depth=r.depth+1;return t.eachBefore(My)}function nE(e){return e.children}function rE(e){return Array.isArray(e)?e[1]:null}function iE(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function My(e){var n=0;do{e.height=n}while((e=e.parent)&&e.height<++n)}function Da(e){this.data=e,this.depth=this.height=0,this.parent=null}Da.prototype=Ia.prototype={constructor:Da,count:function UF(){return this.eachAfter(VF)},each:function YF(e,n){let t=-1;for(const r of this)e.call(n,r,++t,this);return this},eachAfter:function GF(e,n){for(var a,o,s,t=this,r=[t],i=[],l=-1;t=r.pop();)if(i.push(t),a=t.children)for(o=0,s=a.length;o=0;--a)r.push(i[a]);return this},find:function ZF(e,n){let t=-1;for(const r of this)if(e.call(n,r,++t,this))return r},sum:function WF(e){return this.eachAfter(function(n){for(var t=+e(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)t+=r[i].value;n.value=t})},sort:function XF(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})},path:function $F(e){for(var n=this,t=function JF(e,n){if(e===n)return e;var t=e.ancestors(),r=n.ancestors(),i=null;for(e=t.pop(),n=r.pop();e===n;)i=e,e=t.pop(),n=r.pop();return i}(n,e),r=[n];n!==t;)r.push(n=n.parent);for(var i=r.length;e!==t;)r.splice(i,0,e),e=e.parent;return r},ancestors:function QF(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n},descendants:function qF(){return Array.from(this)},leaves:function jF(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e},links:function KF(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n},copy:function eE(){return Ia(this).eachBefore(iE)},[Symbol.iterator]:function*tE(){var n,r,i,a,e=this,t=[e];do{for(n=t.reverse(),t=[];e=n.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i0&&c1;)h="".concat(null===(c=f.parent.data)||void 0===c?void 0:c.name," / ").concat(h),f=f.parent;if(a&&l.depth>2)return null;var p=St({},l.data,(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(l.data,i)),{path:h}),l));p.ext=t,p[Bo]={hierarchyConfig:t,rawFields:i,enableDrillDown:a},s.push(p)}),s}function _y(e,n,t){var r=uh([e,n]),i=r[0],a=r[1],o=r[2],s=r[3],h=t.width-(s+a),f=t.height-(i+o),p=Math.min(h,f),d=(h-p)/2,y=(f-p)/2;return{finalPadding:[i+y,a+d,o+y,s+d],finalSize:p<0?0:p}}function sE(e){var n=e.chart,t=Math.min(n.viewBBox.width,n.viewBBox.height);return St({options:{size:function(r){return r.r*t}}},e)}function lE(e){var n=e.options,t=e.chart,r=t.viewBBox,i=n.padding,a=n.appendPadding,o=n.drilldown,s=a;o?.enabled&&(s=uh([ll(t.appendPadding,(0,v.U2)(o,["breadCrumb","position"])),a]));var c=_y(i,s,r).finalPadding;return t.padding=c,t.appendPadding=0,e}function cE(e){var n=e.chart,t=e.options,r=n.padding,i=n.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,c=t.sizeField,h=t.rawFields,f=void 0===h?[]:h,p=t.drilldown,d=Sy({data:t.data,hierarchyConfig:t.hierarchyConfig,enableDrillDown:p?.enabled,rawFields:f});n.data(d);var m=_y(r,i,n.viewBBox).finalSize,x=function(M){return M.r*m};return c&&(x=function(M){return M[c]*m}),Kn(St({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:c,rawFields:(0,g.ev)((0,g.ev)([],AF,!0),f,!0),point:{color:a,style:s,shape:"circle",size:x}}})),e}function uE(e){return ke(fn({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function hE(e){var n=e.chart,r=e.options.tooltip;if(!1===r)n.tooltip(!1);else{var i=r;(0,v.U2)(r,"fields")||(i=St({},{customItems:function(a){return a.map(function(o){var s=(0,v.U2)(n.getOptions(),"scales"),l=(0,v.U2)(s,["name","formatter"],function(h){return h}),c=(0,v.U2)(s,["value","formatter"],function(h){return h});return(0,g.pi)((0,g.pi)({},o),{name:l(o.data.name),value:c(o.data.value)})})}},i)),n.tooltip(i)}return e}function fE(e){return e.chart.axis(!1),e}function vE(e){var n=e.drilldown,t=e.interactions,r=void 0===t?[]:t;return n?.enabled?St({},e,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:n,transformData:Sy,enableDrillDown:!0}}],!1)}):e}function pE(e){return ln({chart:e.chart,options:vE(e.options)}),e}function dE(e){return ke(jn("pointStyle"),sE,lE,$e,uE,cE,fE,Vi,hE,pE,tn,cn())(e)}function by(e){var n=(0,v.U2)(e,["event","data","data"],{});return(0,v.kJ)(n.children)&&n.children.length>0}function Ty(e){var n=e.view.getCoordinate(),t=n.innerRadius;if(t){var r=e.event,i=r.x,a=r.y,o=n.center,s=o.x,l=o.y,c=n.getRadius()*t;return Math.sqrt(Math.pow(s-i,2)+Math.pow(l-a,2))-1)||function G4(e,n,t){var r=Math.min(n,t),i=Math.max(n,t);return e>=r&&e<=i}(y,f,p)}),e.getRootView().render(!0)}};function xE(e){var n,t=e.options,r=t.geometryOptions,i=void 0===r?[]:r,a=t.xField,o=t.yField,s=(0,v.yW)(i,function(l){var c=l.geometry;return c===La.Line||void 0===c});return St({},{options:{geometryOptions:[],meta:(n={},n[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},n),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:Ey(o,t.yAxis),geometryOptions:[Fy(0,o[0],i[0]),Fy(0,o[1],i[1])],annotations:Ey(o,t.annotations)}})}function ME(e){var n,t,r=e.chart,a=e.options.geometryOptions,o={line:0,column:1};return[{type:null===(n=a[0])||void 0===n?void 0:n.geometry,id:tr},{type:null===(t=a[1])||void 0===t?void 0:t.geometry,id:er}].sort(function(l,c){return-o[l.type]+o[c.type]}).forEach(function(l){return r.createView({id:l.id})}),e}function CE(e){var n=e.chart,t=e.options,r=t.xField,i=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip;return[(0,g.pi)((0,g.pi)({},a[0]),{id:tr,data:o[0],yField:i[0]}),(0,g.pi)((0,g.pi)({},a[1]),{id:er,data:o[1],yField:i[1]})].forEach(function(c){var h=c.id,f=c.data,p=c.yField,d=Uh(c)&&c.isPercent,y=d?r0(f,p,r,p):f,m=Ye(n,h).data(y),x=d?(0,g.pi)({formatter:function(M){return{name:M[c.seriesField]||p,value:(100*Number(M[p])).toFixed(2)+"%"}}},s):s;!function mE(e){var n=e.options,t=e.chart,r=n.geometryOption,i=r.isStack,a=r.color,o=r.seriesField,s=r.groupField,l=r.isGroup,c=["xField","yField"];if(Vh(r)){Ta(St({},e,{options:(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(n,c)),r),{line:{color:r.color,style:r.lineStyle}})})),Kn(St({},e,{options:(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(n,c)),r),{point:r.point&&(0,g.pi)({color:a,shape:"circle"},r.point)})}));var h=[];l&&h.push({type:"dodge",dodgeBy:s||o,customOffset:0}),i&&h.push({type:"stack"}),h.length&&(0,v.S6)(t.geometries,function(f){f.adjust(h)})}Uh(r)&&ml(St({},e,{options:(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(n,c)),r),{widthRatio:r.columnWidthRatio,interval:(0,g.pi)((0,g.pi)({},Ke(r,["color"])),{style:r.columnStyle})})}))}({chart:m,options:{xField:r,yField:p,tooltip:x,geometryOption:c}})}),e}function wE(e){var n,t=e.chart,i=e.options.geometryOptions,a=(null===(n=t.getTheme())||void 0===n?void 0:n.colors10)||[],o=0;return t.once("beforepaint",function(){(0,v.S6)(i,function(s,l){var c=Ye(t,0===l?tr:er);if(!s.color){var h=c.getGroupScales(),f=(0,v.U2)(h,[0,"values","length"],1),p=a.slice(o,o+f).concat(0===l?[]:a);c.geometries.forEach(function(d){s.seriesField?d.color(s.seriesField,p):d.color(p[0])}),o+=f}}),t.render(!0)}),e}function SE(e){var n,t,r=e.chart,i=e.options,a=i.xAxis,o=i.yAxis,s=i.xField,l=i.yField;return fn(((n={})[s]=a,n[l[0]]=o[0],n))(St({},e,{chart:Ye(r,tr)})),fn(((t={})[s]=a,t[l[1]]=o[1],t))(St({},e,{chart:Ye(r,er)})),e}function _E(e){var n=e.chart,t=e.options,r=Ye(n,tr),i=Ye(n,er),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return n.axis(a,!1),n.axis(o[0],!1),n.axis(o[1],!1),r.axis(a,s),r.axis(o[0],ky(l[0],No.Left)),i.axis(a,!1),i.axis(o[1],ky(l[1],No.Right)),e}function bE(e){var n=e.chart,r=e.options.tooltip,i=Ye(n,tr),a=Ye(n,er);return n.tooltip(r),i.tooltip({shared:!0}),a.tooltip({shared:!0}),e}function TE(e){var n=e.chart;return ln(St({},e,{chart:Ye(n,tr)})),ln(St({},e,{chart:Ye(n,er)})),e}function AE(e){var n=e.chart,r=e.options.annotations,i=(0,v.U2)(r,[0]),a=(0,v.U2)(r,[1]);return cn(i)(St({},e,{chart:Ye(n,tr),options:{annotations:i}})),cn(a)(St({},e,{chart:Ye(n,er),options:{annotations:a}})),e}function FE(e){var n=e.chart;return $e(St({},e,{chart:Ye(n,tr)})),$e(St({},e,{chart:Ye(n,er)})),$e(e),e}function EE(e){var n=e.chart;return tn(St({},e,{chart:Ye(n,tr)})),tn(St({},e,{chart:Ye(n,er)})),e}function kE(e){var n=e.chart,r=e.options.yAxis;return Ui(St({},e,{chart:Ye(n,tr),options:{yAxis:r[0]}})),Ui(St({},e,{chart:Ye(n,er),options:{yAxis:r[1]}})),e}function IE(e){var n=e.chart,t=e.options,r=t.legend,i=t.geometryOptions,a=t.yField,o=t.data,s=Ye(n,tr),l=Ye(n,er);if(!1===r)n.legend(!1);else if((0,v.Kn)(r)&&!0===r.custom)n.legend(r);else{var c=(0,v.U2)(i,[0,"legend"],r),h=(0,v.U2)(i,[1,"legend"],r);n.once("beforepaint",function(){var f=o[0].length?Iy({view:s,geometryOption:i[0],yField:a[0],legend:c}):[],p=o[1].length?Iy({view:l,geometryOption:i[1],yField:a[1],legend:h}):[];n.legend(St({},r,{custom:!0,items:f.concat(p)}))}),i[0].seriesField&&s.legend(i[0].seriesField,c),i[1].seriesField&&l.legend(i[1].seriesField,h),n.on("legend-item:click",function(f){var p=(0,v.U2)(f,"gEvent.delegateObject",{});if(p&&p.item){var d=p.item,y=d.value,x=d.viewId;if(d.isGeometry){if((0,v.cx)(a,function(b){return b===y})>-1){var C=(0,v.U2)(Ye(n,x),"geometries");(0,v.S6)(C,function(b){b.changeVisible(!p.item.unchecked)})}}else{var S=(0,v.U2)(n.getController("legend"),"option.items",[]);(0,v.S6)(n.views,function(b){var E=b.getGroupScales();(0,v.S6)(E,function(W){W.values&&W.values.indexOf(y)>-1&&b.filter(W.field,function(tt){return!(0,v.sE)(S,function(wt){return wt.value===tt}).unchecked})}),n.render(!0)})}}})}return e}function DE(e){var n=e.chart,r=e.options.slider,i=Ye(n,tr),a=Ye(n,er);return r&&(i.option("slider",r),i.on("slider:valuechanged",function(o){var s=o.event,l=s.value;(0,v.Xy)(l,s.originValue)||Dy(a,l)}),n.once("afterpaint",function(){if(!(0,v.jn)(r)){var o=r.start,s=r.end;(o||s)&&Dy(a,[o,s])}})),e}function LE(e){return ke(xE,ME,FE,CE,SE,_E,kE,bE,TE,AE,EE,wE,IE,DE)(e)}function PE(e){var n=e.chart,t=e.options,r=t.type,i=t.data,a=t.fields,o=t.eachView,s=(0,v.CE)(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return n.data(i),n.facet(r,(0,g.pi)((0,g.pi)({},s),{fields:a,eachView:function(l,c){var h=o(l,c);if(h.geometries)!function OE(e,n){var t=n.data,r=n.coordinate,i=n.interactions,a=n.annotations,o=n.animation,s=n.tooltip,l=n.axes,c=n.meta,h=n.geometries;t&&e.data(t);var f={};l&&(0,v.S6)(l,function(p,d){f[d]=Ke(p,Gn)}),f=St({},c,f),e.scale(f),r&&e.coordinate(r),!1===l?e.axis(!1):(0,v.S6)(l,function(p,d){e.axis(d,p)}),(0,v.S6)(h,function(p){var d=Zn({chart:e,options:p}).ext,y=p.adjust;y&&d.geometry.adjust(y)}),(0,v.S6)(i,function(p){!1===p.enable?e.removeInteraction(p.type):e.interaction(p.type,p.cfg)}),(0,v.S6)(a,function(p){e.annotation()[p.type]((0,g.pi)({},p))}),Fo(e,o),s?(e.interaction("tooltip"),e.tooltip(s)):!1===s&&e.removeInteraction("tooltip")}(l,h);else{var f=h,p=f.options;p.tooltip&&l.interaction("tooltip"),Dh(f.type,l,p)}}})),e}function zE(e){var n=e.chart,t=e.options,r=t.axes,i=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,c=t.interactions,h=t.annotations,f={};return r&&(0,v.S6)(r,function(p,d){f[d]=Ke(p,Gn)}),f=St({},i,f),n.scale(f),n.coordinate(o),r?(0,v.S6)(r,function(p,d){n.axis(d,p)}):n.axis(!1),a?(n.interaction("tooltip"),n.tooltip(a)):!1===a&&n.removeInteraction("tooltip"),n.legend(l),s&&n.theme(s),(0,v.S6)(c,function(p){!1===p.enable?n.removeInteraction(p.type):n.interaction(p.type,p.cfg)}),(0,v.S6)(h,function(p){n.annotation()[p.type]((0,g.pi)({},p))}),e}function BE(e){return ke($e,PE,zE)(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}(0,g.ZT)(n,e),n.prototype.getDefaultOptions=function(){return St({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},n.prototype.getSchemaAdaptor=function(){return LE}}(Be);var RE={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};function NE(e){var n=e.chart,t=e.options,r=t.data,i=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,c=t.sizeRatio,h=t.shape,f=t.color,p=t.tooltip,d=t.heatmapStyle,y=t.meta;n.data(r);var m="polygon";"density"===i&&(m="heatmap");var x=ar(p,[a,o,s]),M=x.fields,C=x.formatter,S=1;return(c||0===c)&&(h||l?c<0||c>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):S=c:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Zn(St({},e,{options:{type:m,colorField:s,tooltipFields:M,shapeField:l||"",label:void 0,mapping:{tooltip:C,shape:h&&(l?function(b){var E=r.map(function(wt){return wt[l]}),W=y?.[l]||{},tt=W.min,it=W.max;return tt=(0,v.hj)(tt)?tt:Math.min.apply(Math,E),it=(0,v.hj)(it)?it:Math.max.apply(Math,E),[h,((0,v.U2)(b,l)-tt)/(it-tt),S]}:function(){return[h,1,S]}),color:f||s&&n.getTheme().sequenceColors.join("-"),style:d}}})),e}function VE(e){var n,t=e.options,i=t.yAxis,o=t.yField;return ke(fn(((n={})[t.xField]=t.xAxis,n[o]=i,n)))(e)}function UE(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,o=t.yField;return n.axis(t.xField,!1!==r&&r),n.axis(o,!1!==i&&i),e}function YE(e){var n=e.chart,t=e.options,r=t.legend,i=t.colorField,a=t.sizeField,o=t.sizeLegend,s=!1!==r;return i&&n.legend(i,!!s&&r),a&&n.legend(a,void 0===o?r:o),!s&&!o&&n.legend(!1),e}function HE(e){var t=e.options,r=t.label,i=t.colorField,o=Fn(e.chart,"density"===t.type?"heatmap":"polygon");if(r){if(i){var s=r.callback,l=(0,g._T)(r,["callback"]);o.label({fields:[i],callback:s,cfg:wn(l)})}}else o.label(!1);return e}function GE(e){var n,t,r=e.chart,i=e.options,o=i.reflect,s=St({actions:[]},i.coordinate??{type:"rect"});return o&&(null===(t=null===(n=s.actions)||void 0===n?void 0:n.push)||void 0===t||t.call(n,["reflect",o])),r.coordinate(s),e}function ZE(e){return ke($e,jn("heatmapStyle"),VE,GE,NE,UE,YE,Mn,HE,cn(),ln,tn,yi)(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return RE},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return BE}}(Be);var WE=St({},Be.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Qe("polygon","circle",{draw:function(e,n){var t,r,i=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),c=Math.min(s,l)/2,h=Number(e.shape[1]),f=Number(e.shape[2]),d=c*Math.sqrt(f)*Math.sqrt(h),y=(null===(t=e.style)||void 0===t?void 0:t.fill)||e.color||(null===(r=e.defaultStyle)||void 0===r?void 0:r.fill);return n.addShape("circle",{attrs:(0,g.pi)((0,g.pi)((0,g.pi)({x:i,y:a,r:d},e.defaultStyle),e.style),{fill:y})})}}),Qe("polygon","square",{draw:function(e,n){var t,r,i=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),c=Math.min(s,l),h=Number(e.shape[1]),f=Number(e.shape[2]),d=c*Math.sqrt(f)*Math.sqrt(h),y=(null===(t=e.style)||void 0===t?void 0:t.fill)||e.color||(null===(r=e.defaultStyle)||void 0===r?void 0:r.fill);return n.addShape("rect",{attrs:(0,g.pi)((0,g.pi)((0,g.pi)({x:i-d/2,y:a-d/2,width:d,height:d},e.defaultStyle),e.style),{fill:y})})}}),function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return WE},n.prototype.getSchemaAdaptor=function(){return ZE},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()}}(Be);var XE="liquid";function Ly(e){return[{percent:e,type:XE}]}function $E(e){var n=e.chart,t=e.options,r=t.percent,i=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,c=t.shapeStyle,h=t.animation;n.scale({percent:{min:0,max:1}}),n.data(Ly(r));var f=t.color||n.getTheme().defaultColor,y=En(St({},e,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:f,style:i,shape:"liquid-fill-gauge"}}})).ext.geometry,m=n.getTheme().background;return y.customInfo({percent:r,radius:a,outline:o,wave:s,shape:l,shapeStyle:c,background:m,animation:h}),n.legend(!1),n.axis(!1),n.tooltip(!1),e}function Oy(e,n){var t=e.chart,r=e.options,i=r.statistic,a=r.percent,o=r.meta;t.getController("annotation").clear(!0);var s=(0,v.U2)(o,["percent","formatter"])||function(c){return"".concat((100*c).toFixed(2),"%")},l=i.content;return l&&(l=St({},l,{content:(0,v.UM)(l.content)?s(a):l.content})),cl(t,{statistic:(0,g.pi)((0,g.pi)({},i),{content:l}),plotType:"liquid"},{percent:a}),n&&t.render(!0),e}function JE(e){return ke($e,jn("liquidStyle"),$E,Oy,fn({}),tn,ln)(e)}var QE={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"};function zy(e,n,t){return e+(n-e)*t}function KE(e,n,t,r){return 0===n?[[e+.5*t/Math.PI/2,r/2],[e+.5*t/Math.PI,r],[e+t/4,r]]:1===n?[[e+.5*t/Math.PI/2*(Math.PI-2),r],[e+.5*t/Math.PI/2*(Math.PI-1),r/2],[e+t/4,0]]:2===n?[[e+.5*t/Math.PI/2,-r/2],[e+.5*t/Math.PI,-r],[e+t/4,-r]]:[[e+.5*t/Math.PI/2*(Math.PI-2),-r],[e+.5*t/Math.PI/2*(Math.PI-1),-r/2],[e+t/4,0]]}function tk(e,n,t,r,i,a,o){for(var s=4*Math.ceil(2*e/t*4),l=[],c=r;c<2*-Math.PI;)c+=2*Math.PI;for(;c>0;)c-=2*Math.PI;var h=a-e+(c=c/Math.PI/2*t)-2*e;l.push(["M",h,n]);for(var f=0,p=0;p0){var ee=n.addGroup({name:"waves"}),me=ee.setClip({type:"path",attrs:{path:Ut}});!function ek(e,n,t,r,i,a,o,s,l,c){for(var h=i.fill,f=i.opacity,p=o.getBBox(),d=p.maxX-p.minX,y=p.maxY-p.minY,m=0;m0){var s=this.view.geometries[0],c=o[0].name,h=[];return s.dataArray.forEach(function(f){f.forEach(function(p){var y=Hn.getTooltipItems(p,s)[0];if(!i&&y&&y.name===c){var m=(0,v.UM)(a)?c:a;h.push((0,g.pi)((0,g.pi)({},y),{name:y.title,title:m}))}else i&&y&&(m=(0,v.UM)(a)?y.name||c:a,h.push((0,g.pi)((0,g.pi)({},y),{name:y.title,title:m})))})}),h}return[]},n}(Pp);Di("radar-tooltip",vk);var pk=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.init=function(){this.context.view.removeInteraction("tooltip")},n.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},n.prototype.hide=function(){this.getTooltipController().hideTooltip()},n.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},n}(sn);be("radar-tooltip",pk),Oe("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var dk=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}return(0,g.ZT)(n,e),n.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return St({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},n.prototype.getSchemaAdaptor=function(){return fk},n}(Be);function gk(e,n,t){var r=t.map(function(o){return o[n]}).filter(function(o){return void 0!==o}),i=r.length>0?Math.max.apply(Math,r):0,a=Math.abs(e)%360;return a?360*i/a:i}function mk(e){var n=e.chart,t=e.options,r=t.barStyle,i=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,c=t.yField,f=t.shape,p=_a(t.data,c);return n.data(p),En(St({},e,{options:{tooltip:a,seriesField:o,interval:{style:r,color:i,shape:f||("line"===s?"line":"intervel")},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}})),"line"===s&&Kn({chart:n,options:{xField:l,yField:c,seriesField:o,point:{shape:"circle",color:i}}}),e}function Ry(e){var n,t=e.options,r=t.yField,a=t.data,c=t.maxAngle,h=t.isStack&&!t.isGroup&&t.colorField?function yk(e,n,t){var r=[];return e.forEach(function(i){var a=r.find(function(o){return o[n]===i[n]});a?a[t]+=i[t]||null:r.push((0,g.pi)({},i))}),r}(a,t.xField,r):a,f=_a(h,r);return ke(fn(((n={})[r]={min:0,max:gk(c,r,f)},n)))(e)}function xk(e){var t=e.options;return e.chart.coordinate({type:"polar",cfg:{radius:t.radius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle}}).transpose(),e}function Mk(e){var t=e.options;return e.chart.axis(t.xField,t.xAxis),e}function Ck(e){var t=e.options,r=t.label,i=t.yField,a=Fn(e.chart,"interval");if(r){var o=r.callback,s=(0,g._T)(r,["callback"]);a.label({fields:[i],callback:o,cfg:(0,g.pi)((0,g.pi)({},wn(s)),{type:"polar"})})}else a.label(!1);return e}function wk(e){return ke(jn("barStyle"),mk,Ry,Mk,xk,ln,tn,$e,Mn,Vi,cn(),Ck)(e)}var Sk=St({},Be.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),_k=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return Sk},n.prototype.changeData=function(t){this.updateOption({data:t}),Ry({chart:this.chart,options:this.options}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return wk},n}(Be);function bk(e){var t=e.options,i=t.sectorStyle,a=t.shape,o=t.color;return e.chart.data(t.data),ke(En)(St({},e,{options:{marginRatio:1,interval:{style:i,color:o,shape:a}}})),e}function Tk(e){var t=e.options,r=t.label,i=t.xField,a=Fn(e.chart,"interval");if(!1===r)a.label(!1);else if((0,v.Kn)(r)){var o=r.callback,s=r.fields,l=(0,g._T)(r,["callback","fields"]),c=l.offset,h=l.layout;(void 0===c||c>=0)&&(h=h?(0,v.kJ)(h)?h:[h]:[],l.layout=(0,v.hX)(h,function(f){return"limit-in-shape"!==f.type}),l.layout.length||delete l.layout),a.label({fields:s||[i],callback:o,cfg:wn(l)})}else Zr(Tr.WARN,null===r,"the label option must be an Object."),a.label({fields:[i]});return e}function Ak(e){var n=e.chart,t=e.options,r=t.legend,i=t.seriesField;return!1===r?n.legend(!1):i&&n.legend(i,r),e}function Fk(e){var t=e.options;return e.chart.coordinate({type:"polar",cfg:{radius:t.radius,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle}}),e}function Ek(e){var n,t=e.options,i=t.yAxis,o=t.yField;return ke(fn(((n={})[t.xField]=t.xAxis,n[o]=i,n)))(e)}function kk(e){var n=e.chart,t=e.options,i=t.yAxis,o=t.yField;return n.axis(t.xField,t.xAxis||!1),n.axis(o,i||!1),e}function Ik(e){ke(jn("sectorStyle"),bk,Ek,Tk,Fk,kk,Ak,Mn,ln,tn,$e,cn(),yi)(e)}var Dk=St({},Be.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),Lk=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}return(0,g.ZT)(n,e),n.getDefaultOptions=function(){return Dk},n.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Ik},n}(Be),Ny="x",Vy="y",Uy="name",Al="nodes",Fl="edges";function zk(e,n,t){if(!(0,v.kJ)(e))return[];var r=[],i=function Ok(e,n,t){var r=[];return e.forEach(function(i){var a=i[n],o=i[t];r.includes(a)||r.push(a),r.includes(o)||r.push(o)}),r}(e,n,t),a=function Pk(e,n,t,r){var i={};return n.forEach(function(a){i[a]={},n.forEach(function(o){i[a][o]=0})}),e.forEach(function(a){i[a[t]][a[r]]=1}),i}(e,i,n,t),o={};function s(l){o[l]=1,i.forEach(function(c){if(0!=a[l][c])if(1==o[c])r.push("".concat(l,"_").concat(c));else{if(-1==o[c])return;s(c)}}),o[l]=-1}return i.forEach(function(l){o[l]=0}),i.forEach(function(l){-1!=o[l]&&s(l)}),0!==r.length&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),e.filter(function(l){return r.findIndex(function(c){return c==="".concat(l[n],"_").concat(l[t])})<0})}function Bk(e){return e.target.depth}function Yh(e,n){return e.sourceLinks.length?e.depth:n-1}function El(e){return function(){return e}}function Hh(e,n){for(var t=0,r=0;rSe)throw new Error("circular link");ge=Me,Me=new Set}if(c)for(var He=Math.max(Gh(fe,function(Xe){return Xe.depth})+1,0),We=void 0,Re=0;ReSe)throw new Error("circular link");ge=Me,Me=new Set}}(fe),function W(Xt){var fe=function b(Xt){for(var fe=Xt.nodes,Se=Math.max(Gh(fe,function(xn){return xn.depth})+1,0),ge=(t-e-i)/(Se-1),Me=new Array(Se).fill(0).map(function(){return[]}),Fe=0,He=fe;Fe0){var Pa=(Xe/en-Re.y0)*fe;Re.y0+=Pa,Re.y1+=Pa,ee(Re)}}void 0===h&&Fe.sort(kl),Fe.length&&wt(Fe,Se)}}function it(Xt,fe,Se){for(var Me=Xt.length-2;Me>=0;--Me){for(var Fe=Xt[Me],He=0,We=Fe;He0){var Pa=(Xe/en-Re.y0)*fe;Re.y0+=Pa,Re.y1+=Pa,ee(Re)}}void 0===h&&Fe.sort(kl),Fe.length&&wt(Fe,Se)}}function wt(Xt,fe){var Se=Xt.length>>1,ge=Xt[Se];Ut(Xt,ge.y0-o,Se-1,fe),yt(Xt,ge.y1+o,Se+1,fe),Ut(Xt,r,Xt.length-1,fe),yt(Xt,n,0,fe)}function yt(Xt,fe,Se,ge){for(;Se1e-6&&(Me.y0+=Fe,Me.y1+=Fe),fe=Me.y1+o}}function Ut(Xt,fe,Se,ge){for(;Se>=0;--Se){var Me=Xt[Se],Fe=(Me.y1-fe)*ge;Fe>1e-6&&(Me.y0-=Fe,Me.y1-=Fe),fe=Me.y0-o}}function ee(Xt){var fe=Xt.sourceLinks;if(void 0===f){for(var ge=0,Me=Xt.targetLinks;ge "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},n.prototype.changeData=function(t){this.updateOption({data:t});var r=Wy(this.options,this.chart.width,this.chart.height),i=r.nodes,a=r.edges,o=Ye(this.chart,Al),s=Ye(this.chart,Fl);o.changeData(i),s.changeData(a)},n.prototype.getSchemaAdaptor=function(){return a8},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n}(Be),Wh="ancestor-node",Xy="value",Vo="path",l8=[Vo,Cy,zh,wy,"name","depth","height"],c8=St({},Be.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function $y(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Uo(e,n,t,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-n)/e.value;++s0)throw new Error("cycle");return l}return t.id=function(r){return arguments.length?(e=Tl(r),t):e},t.parentId=function(r){return arguments.length?(n=Tl(r),t):n},t}function _8(e,n){return e.parent===n.parent?1:2}function Xh(e){var n=e.children;return n?n[0]:e.t}function $h(e){var n=e.children;return n?n[n.length-1]:e.t}function b8(e,n,t){var r=t/(n.i-e.i);n.c-=r,n.s+=t,e.c+=r,n.z+=t,n.m+=t}function A8(e,n,t){return e.a.parent===n.parent?e.a:t}function Il(e,n){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function E8(){var e=_8,n=1,t=1,r=null;function i(c){var h=function F8(e){for(var t,i,a,o,s,n=new Il(e,0),r=[n];t=r.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=t.children[o]=new Il(a[o],o)),i.parent=t;return(n.parent=new Il(null,0)).children=[n],n}(c);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(o),r)c.eachBefore(l);else{var f=c,p=c,d=c;c.eachBefore(function(C){C.xp.x&&(p=C),C.depth>d.depth&&(d=C)});var y=f===p?1:e(f,p)/2,m=y-f.x,x=n/(p.x+y+m),M=t/(d.depth||1);c.eachBefore(function(C){C.x=(C.x+m)*x,C.y=C.depth*M})}return c}function a(c){var h=c.children,f=c.parent.children,p=c.i?f[c.i-1]:null;if(h){!function T8(e){for(var a,n=0,t=0,r=e.children,i=r.length;--i>=0;)(a=r[i]).z+=n,a.m+=n,n+=a.s+(t+=a.c)}(c);var d=(h[0].z+h[h.length-1].z)/2;p?(c.z=p.z+e(c._,p._),c.m=c.z-d):c.z=d}else p&&(c.z=p.z+e(c._,p._));c.parent.A=function s(c,h,f){if(h){for(var b,p=c,d=c,y=h,m=p.parent.children[0],x=p.m,M=d.m,C=y.m,S=m.m;y=$h(y),p=Xh(p),y&&p;)m=Xh(m),(d=$h(d)).a=c,(b=y.z+C-p.z-x+e(y._,p._))>0&&(b8(A8(y,c,f),c,b),x+=b,M+=b),C+=y.m,x+=p.m,S+=m.m,M+=d.m;y&&!$h(d)&&(d.t=y,d.m+=C-M),p&&!Xh(m)&&(m.t=p,m.m+=x-S,f=c)}return f}(c,p,c.parent.A||f[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c){c.x*=n,c.y=c.depth*t}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,n=+c[0],t=+c[1],i):r?null:[n,t]},i.nodeSize=function(c){return arguments.length?(r=!0,n=+c[0],t=+c[1],i):r?[n,t]:null},i}function Dl(e,n,t,r,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-t)/e.value;++sC&&(C=c),W=x*x*E,(S=Math.max(C/W,W/M))>b){x-=c;break}b=S}o.push(l={value:x,dice:d1?r:1)},t}(qy);function tm(){var e=Ky,n=!1,t=1,r=1,i=[0],a=Xi,o=Xi,s=Xi,l=Xi,c=Xi;function h(p){return p.x0=p.y0=0,p.x1=t,p.y1=r,p.eachBefore(f),i=[0],n&&p.eachBefore($y),p}function f(p){var d=i[p.depth],y=p.x0+d,m=p.y0+d,x=p.x1-d,M=p.y1-d;x=p-1){var C=a[f];return C.x0=y,C.y0=m,C.x1=x,void(C.y1=M)}for(var S=c[f],b=d/2+S,E=f+1,W=p-1;E>>1;c[tt]M-m){var yt=d?(y*wt+x*it)/d:x;h(f,E,it,y,m,yt,M),h(E,p,wt,yt,m,x,M)}else{var Ut=d?(m*wt+M*it)/d:M;h(f,E,it,y,m,x,Ut),h(E,p,wt,y,Ut,x,M)}}(0,s,e.value,n,t,r,i)}function I8(e,n,t,r,i){(1&e.depth?Dl:Uo)(e,n,t,r,i)}const D8=function e(n){function t(r,i,a,o,s){if((l=r._squarify)&&l.ratio===n)for(var l,c,h,f,d,p=-1,y=l.length,m=r.value;++p1?r:1)},t}(qy);var L8={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,n){return n.value-e.value},ratio:.5*(1+Math.sqrt(5))};function em(e,n){var r,t=(n=(0,v.f0)({},L8,n)).as;if(!(0,v.kJ)(t)||2!==t.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=Rh(n)}catch(c){console.warn(c)}var c,i=function O8(e,n){return"treemapSquarify"===e?xt[e].ratio(n):xt[e]}(n.tile,n.ratio),o=(c=e,tm().tile(i).size(n.size).round(n.round).padding(n.padding).paddingInner(n.paddingInner).paddingOuter(n.paddingOuter).paddingTop(n.paddingTop).paddingRight(n.paddingRight).paddingBottom(n.paddingBottom).paddingLeft(n.paddingLeft)(Ia(c).sum(function(h){return n.ignoreParentValue&&h.children?0:h[r]}).sort(n.sort))),s=t[0],l=t[1];return o.each(function(c){c[s]=[c.x0,c.x1,c.x1,c.x0],c[l]=[c.y1,c.y1,c.y0,c.y0],["x0","x1","y0","y1"].forEach(function(h){-1===t.indexOf(h)&&delete c[h]})}),Nh(o)}function nm(e){var t=e.colorField,r=e.rawFields,i=e.hierarchyConfig,a=void 0===i?{}:i,o=a.activeDepth,l=e.seriesField,c=e.type||"partition",h={partition:h8,treemap:em}[c](e.data,(0,g.pi)((0,g.pi)({field:l||"value"},(0,v.CE)(a,["activeDepth"])),{type:"hierarchy.".concat(c),as:["x","y"]})),f=[];return h.forEach(function(p){var d,y,m,x,M,C;if(0===p.depth||o>0&&p.depth>o)return null;for(var S=p.data.name,b=(0,g.pi)({},p);b.depth>1;)S="".concat(null===(y=b.parent.data)||void 0===y?void 0:y.name," / ").concat(S),b=b.parent;var E=(0,g.pi)((0,g.pi)((0,g.pi)({},Ke(p.data,(0,g.ev)((0,g.ev)([],r||[],!0),[a.field],!1))),((d={})[Vo]=S,d[Wh]=b.data.name,d)),p);l&&(E[l]=p.data[l]||(null===(x=null===(m=p.parent)||void 0===m?void 0:m.data)||void 0===x?void 0:x[l])),t&&(E[t]=p.data[t]||(null===(C=null===(M=p.parent)||void 0===M?void 0:M.data)||void 0===C?void 0:C[t])),E.ext=a,E[Bo]={hierarchyConfig:a,colorField:t,rawFields:r},f.push(E)}),f}function P8(e){var f,n=e.chart,t=e.options,r=t.color,i=t.colorField,a=void 0===i?Wh:i,o=t.sunburstStyle,s=t.rawFields,l=void 0===s?[]:s,c=t.shape,h=nm(t);return n.data(h),o&&(f=function(p){return St({},{fillOpacity:Math.pow(.85,p.depth)},(0,v.mf)(o)?o(p):o)}),dl(St({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,v.jj)((0,g.ev)((0,g.ev)([],l8,!0),l,!0)),polygon:{color:r,style:f,shape:c}}})),e}function z8(e){return e.chart.axis(!1),e}function B8(e){var r=e.options.label,i=Fn(e.chart,"polygon");if(r){var a=r.fields,o=void 0===a?["name"]:a,s=r.callback,l=(0,g._T)(r,["fields","callback"]);i.label({fields:o,callback:s,cfg:wn(l)})}else i.label(!1);return e}function R8(e){var t=e.options,a=t.reflect,o=e.chart.coordinate({type:"polar",cfg:{innerRadius:t.innerRadius,radius:t.radius}});return a&&o.reflect(a),e}function N8(e){var n,t=e.options;return ke(fn({},((n={})[Xy]=(0,v.U2)(t.meta,(0,v.U2)(t.hierarchyConfig,["field"],"value")),n)))(e)}function V8(e){var n=e.chart,r=e.options.tooltip;if(!1===r)n.tooltip(!1);else{var i=r;(0,v.U2)(r,"fields")||(i=St({},{customItems:function(a){return a.map(function(o){var s=(0,v.U2)(n.getOptions(),"scales"),l=(0,v.U2)(s,[Vo,"formatter"],function(h){return h}),c=(0,v.U2)(s,[Xy,"formatter"],function(h){return h});return(0,g.pi)((0,g.pi)({},o),{name:l(o.data[Vo]),value:c(o.data.value)})})}},i)),n.tooltip(i)}return e}function U8(e){var n=e.drilldown,t=e.interactions,r=void 0===t?[]:t;return n?.enabled?St({},e,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:n,transformData:nm}}],!1)}):e}function Y8(e){var n=e.chart,t=e.options,r=t.drilldown;return ln({chart:n,options:U8(t)}),r?.enabled&&(n.appendPadding=ll(n.appendPadding,(0,v.U2)(r,["breadCrumb","position"]))),e}function H8(e){return ke($e,jn("sunburstStyle"),P8,z8,N8,Vi,R8,V8,B8,Y8,tn,cn())(e)}function rm(e,n){if((0,v.kJ)(e))return e.find(function(t){return t.type===n})}function im(e,n){var t=rm(e,n);return t&&!1!==t.enable}function Jh(e){var n=e.interactions;return(0,v.U2)(e.drilldown,"enabled")||im(n,"treemap-drill-down")}function Qh(e){var n=e.data,t=e.colorField,r=e.enableDrillDown,i=e.hierarchyConfig,a=em(n,(0,g.pi)((0,g.pi)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(0===s.depth||r&&1!==s.depth||!r&&s.children)return null;var l=s.ancestors().map(function(p){return{data:p.data,height:p.height,value:p.value}}),c=r&&(0,v.kJ)(n.path)?l.concat(n.path.slice(1)):l,h=Object.assign({},s.data,(0,g.pi)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:c},s));if(!s.data[t]&&s.parent){var f=s.ancestors().find(function(p){return p.data[t]});h[t]=f?.data[t]}else h[t]=s.data[t];h[Bo]={hierarchyConfig:i,colorField:t,enableDrillDown:r},o.push(h)}),o}function Z8(e){return St({options:{rawFields:["value"],tooltip:{fields:["name","value",e.options.colorField,"path"],formatter:function(r){return{name:r.name,value:r.value}}}}},e)}function W8(e){var n=e.chart,t=e.options,r=t.color,i=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=Qh({data:t.data,colorField:t.colorField,enableDrillDown:Jh(t),hierarchyConfig:o});return n.data(l),dl(St({},e,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:r,style:a}}})),n.coordinate().reflect("y"),e}function X8(e){return e.chart.axis(!1),e}function $8(e){var n=e.drilldown,t=e.interactions,r=void 0===t?[]:t;return Jh(e)?St({},e,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:n,transformData:Qh}}],!1)}):e}function J8(e){var n=e.chart,t=e.options,r=t.interactions,i=t.drilldown;ln({chart:n,options:$8(t)});var a=rm(r,"view-zoom");return a&&(!1!==a.enable?n.getCanvas().on("mousewheel",function(s){s.preventDefault()}):n.getCanvas().off("mousewheel")),Jh(t)&&(n.appendPadding=ll(n.appendPadding,(0,v.U2)(i,["breadCrumb","position"]))),e}function Q8(e){return ke(Z8,$e,jn("rectStyle"),W8,X8,Vi,Mn,J8,tn,cn())(e)}!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return c8},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return H8},n.SUNBURST_ANCESTOR_FIELD=Wh,n.SUNBURST_PATH_FIELD=Vo,n.NODE_ANCESTORS_FIELD=zh}(Be);var q8={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},Qr=(function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}(0,g.ZT)(n,e),n.getDefaultOptions=function(){return q8},n.prototype.changeData=function(t){var r=this.options,i=r.colorField,a=r.interactions,o=r.hierarchyConfig;this.updateOption({data:t});var s=Qh({data:t,colorField:i,enableDrillDown:im(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),function G8(e){var n=e.interactions["drill-down"];n&&n.context.actions.find(function(r){return"drill-down-action"===r.name}).reset()}(this.chart)},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Q8}}(Be),"id"),qh="path",j8={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ll(e){e&&e.geometries[0].elements.forEach(function(t){t.shape.toFront()})}var t7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(Is("element-active")),n7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(Is("element-highlight")),r7=Is("element-selected"),i7=Is("element-single-selected"),a7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(r7),o7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.syncElementsPos=function(){Ll(this.context.view)},n.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},n.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},n.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},n}(i7);be("venn-element-active",t7),be("venn-element-highlight",n7),be("venn-element-selected",a7),be("venn-element-single-selected",o7),Oe("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Oe("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Oe("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Oe("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Oe("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Oe("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var s7=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(n,e),n.prototype.getLabelPoint=function(t,r,i){var a=t.data,l=t.customLabelInfo;return{content:t.content[i],x:a.x+l.offsetX,y:a.y+l.offsetY}},n}(Ns);po("venn",s7);const c7=Array.isArray;var Yo="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",u7=new RegExp("([a-z])["+Yo+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Yo+"]*,?["+Yo+"]*)+)","ig"),h7=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Yo+"]*,?["+Yo+"]*","ig");Math,Qe("schema","venn",{draw:function(e,n){var r=function f7(e){if(!e)return null;if(c7(e))return e;var n={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(u7,function(r,i,a){var o=[],s=i.toLowerCase();if(a.replace(h7,function(l,c){c&&o.push(+c)}),"m"===s&&o.length>2&&(t.push([i].concat(o.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===o.length&&t.push([i,o[0]]),"r"===s)t.push([i].concat(o));else for(;o.length>=n[s]&&(t.push([i].concat(o.splice(0,n[s]))),n[s]););return""}),t}(e.data[qh]),i=function S7(e){return St({},e.defaultStyle,{fill:e.color},e.style)}(e),a=n.addGroup({name:"venn-shape"});a.addShape("path",{attrs:(0,g.pi)((0,g.pi)({},i),{path:r}),name:"venn-path"});var o=e.customInfo,c=Hn.transform(null,[["t",o.offsetX,o.offsetY]]);return a.setMatrix(c),a},getMarker:function(e){var n=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:n,fill:n,r:4}}}});var hm={normal:function(e){return e},multiply:function(e,n){return e*n/255},screen:function(e,n){return 255*(1-(1-e/255)*(1-n/255))},overlay:function(e,n){return n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255))},darken:function(e,n){return e>n?n:e},lighten:function(e,n){return e>n?e:n},dodge:function(e,n){return 255===e||(e=n/255*255/(1-e/255))>255?255:e},burn:function(e,n){return 255===n?255:0===e?0:255*(1-Math.min(1,(1-n/255)/(e/255)))}};function Ol(e){var t,n=e.replace("/s+/g","");return"string"!=typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(t=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(t=ei.rgb2arr(n).concat([1])),t.map(function(r,i){return 3===i?Number(r):0|r})):t=ei.rgb2arr(ei.toRGB(n)).concat([1])}var Er=V(9521),fm=1e-10;function tf(e,n){var o,t=function F7(e){for(var n=[],t=0;tn[t].radius+fm)return!1;return!0}(tt,e)}),i=0,a=0,s=[];if(r.length>1){var l=dm(r);for(o=0;o-1){var m=e[f.parentIndex[y]],x=Math.atan2(f.x-m.x,f.y-m.y),M=Math.atan2(h.x-m.x,h.y-m.y),C=M-x;C<0&&(C+=2*Math.PI);var S=M-C/2,b=vr(p,{x:m.x+m.radius*Math.sin(S),y:m.y+m.radius*Math.cos(S)});b>2*m.radius&&(b=2*m.radius),(null===d||d.width>b)&&(d={circle:m,width:b,p1:f,p2:h})}null!==d&&(s.push(d),i+=ef(d.circle.radius,d.width),h=f)}}else{var E=e[0];for(o=1;oMath.abs(E.radius-e[o].radius)){W=!0;break}W?i=a=0:(i=E.radius*E.radius*Math.PI,s.push({circle:E,p1:{x:E.x,y:E.y+E.radius},p2:{x:E.x-fm,y:E.y+E.radius},width:2*E.radius}))}return a/=2,n&&(n.area=i+a,n.arcArea=i,n.polygonArea=a,n.arcs=s,n.innerPoints=r,n.intersectionPoints=t),i+a}function ef(e,n){return e*e*Math.acos(1-n/e)-(e-n)*Math.sqrt(n*(2*e-n))}function vr(e,n){return Math.sqrt((e.x-n.x)*(e.x-n.x)+(e.y-n.y)*(e.y-n.y))}function vm(e,n,t){if(t>=e+n)return 0;if(t<=Math.abs(e-n))return Math.PI*Math.min(e,n)*Math.min(e,n);var i=n-(t*t-e*e+n*n)/(2*t);return ef(e,e-(t*t-n*n+e*e)/(2*t))+ef(n,i)}function pm(e,n){var t=vr(e,n),r=e.radius,i=n.radius;if(t>=r+i||t<=Math.abs(r-i))return[];var a=(r*r-i*i+t*t)/(2*t),o=Math.sqrt(r*r-a*a),s=e.x+a*(n.x-e.x)/t,l=e.y+a*(n.y-e.y)/t,c=o/t*-(n.y-e.y),h=o/t*-(n.x-e.x);return[{x:s+c,y:l-h},{x:s-c,y:l+h}]}function dm(e){for(var n={x:0,y:0},t=0;t=o&&(a=t[r],o=s)}var l=(0,Er.nelderMead)(function(p){return-1*nf({x:p[0],y:p[1]},e,n)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:l[0],y:l[1]},h=!0;for(r=0;re[r].radius){h=!1;break}for(r=0;r=Math.min(r[h].size,r[f].size)&&(c=0),i[h].push({set:f,size:l.size,weight:c}),i[f].push({set:h,size:l.size,weight:c})}var p=[];for(a in i)if(i.hasOwnProperty(a)){var d=0;for(o=0;o=8){var i=function R7(e,n){var a,t=(n=n||{}).restarts||10,r=[],i={};for(a=0;a=Math.min(n[o].size,n[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}(e,r,i),l=s.distances,c=s.constraints,h=(0,Er.norm2)(l.map(Er.norm2))/l.length;l=l.map(function(C){return C.map(function(S){return S/h})});var p,d,f=function(C,S){return function z7(e,n,t,r){var a,i=0;for(a=0;a0&&y<=f||p<0&&y>=f||(i+=2*m*m,n[2*a]+=4*m*(o-c),n[2*a+1]+=4*m*(s-h),n[2*l]+=4*m*(c-o),n[2*l+1]+=4*m*(h-s))}return i}(C,S,l,c)};for(a=0;ac?1:-1}),r=0;r0&&console.log("WARNING: area "+a+" not represented on screen")}return t}(c,s);return s.forEach(function(f){var p=f.sets,d=p.join(",");f[Qr]=d;var m=function D7(e){var n={};tf(e,n);var t=n.arcs;if(0===t.length)return"M 0 0";if(1==t.length){var r=t[0].circle;return function I7(e,n,t){var r=[],i=e-t,a=n;return r.push("M",i,a),r.push("A",t,t,0,1,0,i+2*t,a),r.push("A",t,t,0,1,0,i,a),r.join(" ")}(r.x,r.y,r.radius)}for(var i=["\nM",t[0].p2.x,t[0].p2.y],a=0;as?1:0,1,o.p1.x,o.p1.y)}return i.join(" ")}(p.map(function(M){return c[M]}));/[zZ]$/.test(m)||(m+=" Z"),f[qh]=m,(0,v.f0)(f,h[d]||{x:0,y:0})}),s}var W7=40;function mm(e,n,t){var i=e.options,a=i.blendMode,o=i.setsField,s=e.chart.getTheme(),l=s.colors10,c=s.colors20,h=t;(0,v.kJ)(h)||(h=n.filter(function(p){return 1===p[o].length}).length<=10?l:c);var f=H7(h,n,a,o);return function(p){return f.get(p)||h[0]}}function $7(e){var n=e.chart,t=e.options,r=t.legend,i=t.appendPadding,a=t.padding,o=gi(i);return!1!==r&&(o=ll(i,(0,v.U2)(r,"position"),W7)),n.appendPadding=uh([o,a]),e}function J7(e){var t=e.options.data;t||(Zr(Tr.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),t=[]);var r=t.filter(function(a){return 1===a.sets.length}).map(function(a){return a.sets[0]}),i=t.filter(function(a){return function Z7(e,n){for(var t=0;t1)throw new Error("quantiles must be between 0 and 1");return 1===n?e[e.length-1]:0===n?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function Go(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function Pl(e,n,t,r){for(t=t||0,r=r||e.length-1;r>t;){if(r-t>600){var i=r-t+1,a=n-t+1,o=Math.log(i),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(i-s)/i);a-i/2<0&&(l*=-1),Pl(e,n,Math.max(t,Math.floor(n-a*s/i+l)),Math.min(r,Math.floor(n+(i-a)*s/i+l)))}var f=e[n],p=t,d=r;for(Go(e,t,n),e[r]>f&&Go(e,t,r);pf;)d--}e[t]===f?Go(e,t,d):Go(e,++d,r),d<=n&&(t=d+1),n<=d&&(r=d-1)}}function Zo(e,n){var t=e.slice();if(Array.isArray(n)){!function cI(e,n){for(var t=[0],r=0;r0?h:f}}}})).ext.geometry.customInfo((0,g.pi)((0,g.pi)({},y),{leaderLine:s})),e}function TI(e){var n,t,r=e.options,i=r.xAxis,a=r.yAxis,o=r.xField,s=r.yField,l=r.meta,c=St({},{alias:s},(0,v.U2)(l,s));return ke(fn(((n={})[o]=i,n[s]=a,n[sr]=a,n),St({},l,((t={})[sr]=c,t[Rl]=c,t[lf]=c,t))))(e)}function AI(e){var n=e.chart,t=e.options,r=t.xAxis,i=t.yAxis,o=t.yField;return n.axis(t.xField,!1!==r&&r),!1===i?(n.axis(o,!1),n.axis(sr,!1)):(n.axis(o,i),n.axis(sr,i)),e}function FI(e){var n=e.chart,t=e.options,r=t.legend,i=t.total,a=t.risingFill,o=t.fallingFill,l=fl(t.locale);if(!1===r)n.legend(!1);else{var c=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];i&&c.push({name:i.label||"",value:"total",marker:{symbol:"square",style:St({},{r:5},(0,v.U2)(i,"style"))}}),n.legend(St({},{custom:!0,position:"top",items:c},r)),n.removeInteraction("legend-filter")}return e}function EI(e){var t=e.options,r=t.label,i=t.labelMode,a=t.xField,o=Fn(e.chart,"interval");if(r){var s=r.callback,l=(0,g._T)(r,["callback"]);o.label({fields:"absolute"===i?[lf,a]:[Rl,a],callback:s,cfg:wn(l)})}else o.label(!1);return e}function kI(e){var n=e.chart,t=e.options,r=t.tooltip,i=t.xField,a=t.yField;if(!1!==r){n.tooltip((0,g.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},r));var o=n.geometries[0];r?.formatter?o.tooltip("".concat(i,"*").concat(a),r.formatter):o.tooltip(a)}else n.tooltip(!1);return e}function II(e){return ke(_I,$e,bI,TI,AI,FI,kI,EI,yi,ln,tn,cn())(e)}Qe("interval","waterfall",{draw:function(e,n){var t=e.customInfo,r=e.points,i=e.nextPoints,a=n.addGroup(),o=this.parsePath(function CI(e){for(var n=[],t=0;t=E));)if(M.x=S+yt,M.y=b+Ut,!(M.x+M.x0<0||M.y+M.y0<0||M.x+M.x1>e[0]||M.y+M.y1>e[1])&&(!C||!HI(M,x,e[0]))&&(!C||ZI(M,C))){for(var ee=M.sprite,me=M.width>>5,_e=e[0]>>5,ze=M.x-(me<<4),Xt=127&ze,fe=32-Xt,Se=M.y1-M.y0,ge=void 0,Me=(M.y+M.y0)*_e+(ze>>5),Fe=0;Fe>>Xt:0);Me+=_e}return delete M.sprite,!0}return!1}return d.start=function(){var x=e[0],M=e[1],C=function y(x){x.width=x.height=1;var M=Math.sqrt(x.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);x.width=(Wo<<5)/M,x.height=Nl/M;var C=x.getContext("2d",{willReadFrequently:!0});return C.fillStyle=C.strokeStyle="red",C.textAlign="center",{context:C,ratio:M}}(p()),S=d.board?d.board:Im((e[0]>>5)*e[1]),b=l.length,E=[],W=l.map(function(yt,Ut,ee){return yt.text=h.call(this,yt,Ut,ee),yt.font=n.call(this,yt,Ut,ee),yt.style=f.call(this,yt,Ut,ee),yt.weight=r.call(this,yt,Ut,ee),yt.rotate=i.call(this,yt,Ut,ee),yt.size=~~t.call(this,yt,Ut,ee),yt.padding=a.call(this,yt,Ut,ee),yt}).sort(function(yt,Ut){return Ut.size-yt.size}),tt=-1,it=d.board?[{x:0,y:0},{x,y:M}]:null;return function wt(){for(var yt=Date.now();Date.now()-yt>1,Ut.y=M*(s()+.5)>>1,YI(C,Ut,W,tt),Ut.hasText&&m(S,Ut,it)&&(E.push(Ut),it?d.hasImage||GI(it,Ut):it=[{x:Ut.x+Ut.x0,y:Ut.y+Ut.y0},{x:Ut.x+Ut.x1,y:Ut.y+Ut.y1}],Ut.x-=e[0]>>1,Ut.y-=e[1]>>1)}d._tags=E,d._bounds=it}(),d},d.createMask=function(x){var M=document.createElement("canvas"),C=e[0],S=e[1];if(C&&S){var b=C>>5,E=Im((C>>5)*S);M.width=C,M.height=S;var W=M.getContext("2d");W.drawImage(x,0,0,x.width,x.height,0,0,C,S);for(var tt=W.getImageData(0,0,C,S).data,it=0;it>5)]|=tt[Ut]>=250&&tt[Ut+1]>=250&&tt[Ut+2]>=250?1<<31-wt%32:0}d.board=E,d.hasImage=!0}},d.timeInterval=function(x){c=x??1/0},d.words=function(x){l=x},d.size=function(x){e=[+x[0],+x[1]]},d.font=function(x){n=kr(x)},d.fontWeight=function(x){r=kr(x)},d.rotate=function(x){i=kr(x)},d.spiral=function(x){o=$I[x]||x},d.fontSize=function(x){t=kr(x)},d.padding=function(x){a=kr(x)},d.random=function(x){s=kr(x)},d}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,v.UM)(n[l])||t[l](n[l])}),t.words(e),n.imageMask&&t.createMask(n.imageMask);var i=t.start()._tags;i.forEach(function(l){l.x+=n.size[0]/2,l.y+=n.size[1]/2});var a=n.size,o=a[0],s=a[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:o,y:s,opacity:0}),i}(e,n=(0,v.f0)({},OI,n))}var hf=Math.PI/180,Wo=64,Nl=2048;function BI(e){return e.text}function RI(){return"serif"}function Em(){return"normal"}function NI(e){return e.value}function VI(){return 90*~~(2*Math.random())}function UI(){return 1}function YI(e,n,t,r){if(!n.sprite){var i=e.context,a=e.ratio;i.clearRect(0,0,(Wo<<5)/a,Nl/a);var o=0,s=0,l=0,c=t.length;for(--r;++r>5<<5,f=~~Math.max(Math.abs(m+x),Math.abs(m-x))}else h=h+31>>5<<5;if(f>l&&(l=f),o+h>=Wo<<5&&(o=0,s+=l,l=0),s+f>=Nl)break;i.translate((o+(h>>1))/a,(s+(f>>1))/a),n.rotate&&i.rotate(n.rotate*hf),i.fillText(n.text,0,0),n.padding&&(i.lineWidth=2*n.padding,i.strokeText(n.text,0,0)),i.restore(),n.width=h,n.height=f,n.xoff=o,n.yoff=s,n.x1=h>>1,n.y1=f>>1,n.x0=-n.x1,n.y0=-n.y1,n.hasText=!0,o+=h}for(var C=i.getImageData(0,0,(Wo<<5)/a,Nl/a).data,S=[];--r>=0;)if((n=t[r]).hasText){for(var b=(h=n.width)>>5,E=(f=n.y1-n.y0,0);E>5)]|=yt,W|=yt}W?tt=it:(n.y0++,f--,it--,s++)}n.y1=n.y0+tt,n.sprite=S.slice(0,(n.y1-n.y0)*b)}}}function HI(e,n,t){for(var h,r=e.sprite,i=e.width>>5,a=e.x-(i<<4),o=127&a,s=32-o,l=e.y1-e.y0,c=(e.y+e.y0)*(t>>=5)+(a>>5),f=0;f>>o:0))&n[c+p])return!0;c+=t}return!1}function GI(e,n){var t=e[0],r=e[1];n.x+n.x0r.x&&(r.x=n.x+n.x1),n.y+n.y1>r.y&&(r.y=n.y+n.y1)}function ZI(e,n){return e.x+e.x1>n[0].x&&e.x+e.x0n[0].y&&e.y+e.y0{class e{get marginValue(){return-this.gutter/2}constructor(t){t.attach(this,"sg",{gutter:32,col:2})}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(fD.Ri))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["sg-container"],["","sg-container",""]],hostVars:8,hostBindings:function(r,i){2&r&&(u.Udp("margin-left",i.marginValue,"px")("margin-right",i.marginValue,"px"),u.ekj("ant-row",!0)("sg__wrap",!0))},inputs:{gutter:"gutter",colInCon:["sg-container","colInCon"],col:"col"},exportAs:["sgContainer"],ngContentSelectors:Lm,decls:1,vars:0,template:function(r,i){1&r&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0})}return(0,g.gn)([(0,Vl.Rn)()],e.prototype,"gutter",void 0),(0,g.gn)([(0,Vl.Rn)(null)],e.prototype,"colInCon",void 0),(0,g.gn)([(0,Vl.Rn)(null)],e.prototype,"col",void 0),e})(),Om=(()=>{class e{get paddingValue(){return this.parent.gutter/2}constructor(t,r,i,a){if(this.ren=r,this.parent=i,this.rep=a,this.clsMap=[],this.inited=!1,this.col=null,null==i)throw new Error("[sg] must include 'sg-container' component");this.el=t.nativeElement}setClass(){const{el:t,ren:r,clsMap:i,col:a,parent:o}=this;i.forEach(l=>r.removeClass(t,l)),i.length=0;const s=o.colInCon||o.col;return i.push(...this.rep.genCls(a??s,s),"sg__item"),i.forEach(l=>r.addClass(t,l)),this}ngOnChanges(){this.inited&&this.setClass()}ngAfterViewInit(){this.setClass(),this.inited=!0}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.SBq),u.Y36(u.Qsj),u.Y36(ff,9),u.Y36(jt.kz))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["sg"]],hostVars:4,hostBindings:function(r,i){2&r&&u.Udp("padding-left",i.paddingValue,"px")("padding-right",i.paddingValue,"px")},inputs:{col:"col"},exportAs:["sg"],features:[u.TTD],ngContentSelectors:Lm,decls:1,vars:0,template:function(r,i){1&r&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0})}return(0,g.gn)([(0,Vl.Rn)(null)],e.prototype,"col",void 0),e})(),pD=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[K.ez]})}return e})();var dD=V(2831);let gD=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[K.ez]})}return e})();const yD=function(e){return{$implicit:e}};function mD(e,n){if(1&e&&u.GkF(0,3),2&e){const t=u.oxw();u.Q6J("ngTemplateOutlet",t.nzValueTemplate)("ngTemplateOutletContext",u.VKq(2,yD,t.nzValue))}}function xD(e,n){if(1&e&&(u.TgZ(0,"span",6),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.displayInt)}}function MD(e,n){if(1&e&&(u.TgZ(0,"span",7),u._uU(1),u.qZA()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.displayDecimal)}}function CD(e,n){if(1&e&&(u.ynx(0),u.YNc(1,xD,2,1,"span",4),u.YNc(2,MD,2,1,"span",5),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngIf",t.displayInt),u.xp6(1),u.Q6J("ngIf",t.displayDecimal)}}function wD(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Oqu(t.nzTitle)}}function SD(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.nzPrefix)}}function _D(e,n){if(1&e&&(u.TgZ(0,"span",6),u.YNc(1,SD,2,1,"ng-container",1),u.qZA()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzPrefix)}}function bD(e,n){if(1&e&&(u.ynx(0),u._uU(1),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Oqu(t.nzSuffix)}}function TD(e,n){if(1&e&&(u.TgZ(0,"span",7),u.YNc(1,bD,2,1,"ng-container",1),u.qZA()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("nzStringTemplateOutlet",t.nzSuffix)}}let AD=(()=>{class e{constructor(t){this.locale_id=t,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const t="number"==typeof this.nzValue?".":(0,K.dv)(this.locale_id,K.wE.Decimal),r=String(this.nzValue),[i,a]=r.split(t);this.displayInt=i,this.displayDecimal=a?`${t}${a}`:""}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.soG))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[u.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(r,i){1&r&&(u.TgZ(0,"span",0),u.YNc(1,mD,1,4,"ng-container",1),u.YNc(2,CD,3,2,"ng-container",2),u.qZA()),2&r&&(u.xp6(1),u.Q6J("ngIf",i.nzValueTemplate),u.xp6(1),u.Q6J("ngIf",!i.nzValueTemplate))},dependencies:[K.O5,K.tP],encapsulation:2,changeDetection:0})}return e})(),FD=(()=>{class e{constructor(t,r){this.cdr=t,this.directionality=r,this.nzValueStyle={},this.dir="ltr",this.destroy$=new $t.x}ngOnInit(){this.directionality.change?.pipe((0,Dt.R)(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.sBO),u.Y36(Q.Is,8))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["nz-statistic"]],hostAttrs:[1,"ant-statistic"],hostVars:2,hostBindings:function(r,i){2&r&&u.ekj("ant-statistic-rtl","rtl"===i.dir)},inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:6,vars:6,consts:[[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(r,i){1&r&&(u.TgZ(0,"div",0),u.YNc(1,wD,2,1,"ng-container",1),u.qZA(),u.TgZ(2,"div",2),u.YNc(3,_D,2,1,"span",3),u._UZ(4,"nz-statistic-number",4),u.YNc(5,TD,2,1,"span",5),u.qZA()),2&r&&(u.xp6(1),u.Q6J("nzStringTemplateOutlet",i.nzTitle),u.xp6(1),u.Q6J("ngStyle",i.nzValueStyle),u.xp6(1),u.Q6J("ngIf",i.nzPrefix),u.xp6(1),u.Q6J("nzValue",i.nzValue)("nzValueTemplate",i.nzValueTemplate),u.xp6(1),u.Q6J("ngIf",i.nzSuffix))},dependencies:[K.O5,K.PC,gt.f,AD],encapsulation:2,changeDetection:0})}return e})(),ED=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[Q.vT,K.ez,dD.ud,gt.T,gD]})}return e})();var vf=V(9663);const kD=["s2t"];function ID(e,n){1&e&&(u.TgZ(0,"div",2),u._UZ(1,"nz-empty",3),u.qZA()),2&e&&(u.xp6(1),u.Q6J("nzNotFoundContent",null))}function DD(e,n){if(1&e&&(u.TgZ(0,"th"),u._uU(1),u.qZA()),2&e){const t=n.$implicit;u.xp6(1),u.Oqu(t.key)}}function LD(e,n){if(1&e&&(u.TgZ(0,"td"),u._uU(1),u.qZA()),2&e){const t=n.$implicit;u.xp6(1),u.Oqu(t.value)}}function OD(e,n){if(1&e&&(u.TgZ(0,"tr"),u.YNc(1,LD,2,1,"td",4),u.ALo(2,"keyvalue"),u.qZA()),2&e){const t=n.$implicit;u.xp6(1),u.Q6J("ngForOf",u.lcZ(2,1,t))}}function PD(e,n){if(1&e&&(u.TgZ(0,"table")(1,"tr"),u.YNc(2,DD,2,1,"th",4),u.ALo(3,"keyvalue"),u.qZA(),u.YNc(4,OD,3,3,"tr",4),u.qZA()),2&e){const t=u.oxw();u.xp6(2),u.Q6J("ngForOf",u.lcZ(3,2,t.data[0])),u.xp6(2),u.Q6J("ngForOf",t.data)}}let zD=(()=>{class e{constructor(){}ngOnInit(){}ngAfterViewInit(){}render(t){this.data=t}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["erupt-chart-table"]],viewQuery:function(r,i){if(1&r&&u.Gf(kD,5),2&r){let a;u.iGM(a=u.CRH())&&(i.chartTable=a.first)}},decls:2,vars:2,consts:[["class","flex-center-center",4,"ngIf"],[4,"ngIf"],[1,"flex-center-center"],["nzNotFoundImage","simple",3,"nzNotFoundContent"],[4,"ngFor","ngForOf"]],template:function(r,i){1&r&&(u.YNc(0,ID,2,1,"div",0),u.YNc(1,PD,5,4,"table",1)),2&r&&(u.Q6J("ngIf",!i.data||0==i.data.length),u.xp6(1),u.Q6J("ngIf",i.data&&i.data.length>0))},dependencies:[K.sg,K.O5,vf.Uo,vf._C,vf.$Z,In.p9,K.Nd],styles:["[_nghost-%COMP%] table{width:100%}[_nghost-%COMP%] table tr{transition:all .3s,height 0s}[_nghost-%COMP%] table tr td, [_nghost-%COMP%] table tr th{padding:8px;color:#000000a6;font-size:14px;line-height:1;border:1px solid #e8e8e8}[data-theme=dark] [_nghost-%COMP%] table tr td, [data-theme=dark] [_nghost-%COMP%] table tr th{color:#dcdcdc!important;color:#000000a6;font-size:14px;line-height:1;border:1px solid #333}"]})}return e})();const BD=["chartTable"],pf=function(e){return{height:e}};function RD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",5),u._UZ(2,"i",6),u.qZA(),u.BQk()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("id",t.chart.code)("ngStyle",u.VKq(2,pf,t.chart.height+"px"))}}const ND=function(e){return{height:e,paddingTop:"1px"}};function VD(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"erupt-iframe",10),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Akn(u.VKq(3,ND,t.chart.height+"px")),u.Q6J("url",t.src)}}function UD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",11),u._UZ(2,"erupt-chart-table",12,13),u.qZA(),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngStyle",u.VKq(2,pf,t.chart.height+"px")),u.xp6(1),u.Q6J("id",t.chart.code)}}function YD(e,n){1&e&&(u.ynx(0),u._UZ(1,"nz-empty",14),u.BQk()),2&e&&(u.xp6(1),u.Q6J("nzNotFoundContent",null))}function HD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"sg"),u._UZ(2,"nz-statistic",18),u.qZA(),u.BQk()),2&e){const t=n.$implicit,r=u.oxw(4);u.xp6(2),u.Q6J("nzValue",t[r.dataKeys[0]]||0)("nzTitle",t[r.dataKeys[1]])("nzValueStyle",r.chart.chartOption)}}function GD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",15)(2,"div",16),u.YNc(3,HD,3,3,"ng-container",17),u.qZA()(),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("id",t.chart.code),u.xp6(1),u.s9C("sg-container",t.data.length),u.xp6(1),u.Q6J("ngForOf",t.data)}}function ZD(e,n){if(1&e&&(u.ynx(0),u.YNc(1,YD,2,1,"ng-container",3),u.YNc(2,GD,4,3,"ng-container",3),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",!t.data||0==t.data.length),u.xp6(1),u.Q6J("ngIf",t.data&&t.data.length)}}function WD(e,n){1&e&&(u.ynx(0),u._UZ(1,"nz-empty",14),u.BQk()),2&e&&(u.xp6(1),u.Q6J("nzNotFoundContent",null))}function XD(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",19),u.YNc(2,WD,2,1,"ng-container",3),u.qZA(),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("id",t.chart.code)("ngStyle",u.VKq(3,pf,t.chart.height+"px")),u.xp6(1),u.Q6J("ngIf",!t.data||0==t.data.length)}}function $D(e,n){if(1&e&&(u.ynx(0)(1,7),u.YNc(2,VD,2,5,"ng-container",8),u.YNc(3,UD,4,4,"ng-container",8),u.YNc(4,ZD,3,2,"ng-container",8),u.YNc(5,XD,3,5,"ng-container",9),u.BQk()()),2&e){const t=u.oxw();u.xp6(1),u.Q6J("ngSwitch",t.chart.type),u.xp6(1),u.Q6J("ngSwitchCase",t.chartType.tpl),u.xp6(1),u.Q6J("ngSwitchCase",t.chartType.table),u.xp6(1),u.Q6J("ngSwitchCase",t.chartType.Number)}}function JD(e,n){if(1&e&&(u.ynx(0),u._UZ(1,"span",24),u._uU(2," \xa0"),u._UZ(3,"nz-divider",21),u._uU(4,"\xa0 "),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("nzTooltipTitle",t.chart.remark)}}function QD(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"i",25),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.downloadChartImage())}),u.qZA(),u._uU(2," \xa0"),u._UZ(3,"nz-divider",21),u._uU(4,"\xa0 "),u.BQk()}}function qD(e,n){1&e&&u._UZ(0,"i",28),2&e&&u.Q6J("nzType","loading")}function jD(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"i",29),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3);return u.KtG(i.downloadChartData())}),u.qZA()}}function KD(e,n){if(1&e&&(u.ynx(0),u.YNc(1,qD,1,1,"i",26),u.YNc(2,jD,1,0,"i",27),u._uU(3," \xa0"),u._UZ(4,"nz-divider",21),u._uU(5,"\xa0 "),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",t.downloading),u.xp6(1),u.Q6J("ngIf",!t.downloading)}}function tL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"span",30),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.open=!1)}),u.qZA()}}function eL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"span",31),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.open=!0)}),u.qZA()}}function nL(e,n){if(1&e){const t=u.EpF();u.YNc(0,JD,5,1,"ng-container",3),u.YNc(1,QD,5,0,"ng-container",3),u.YNc(2,KD,6,2,"ng-container",3),u.TgZ(3,"i",20),u.NdJ("click",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.update(!0))}),u.qZA(),u._uU(4," \xa0"),u._UZ(5,"nz-divider",21),u._uU(6,"\xa0 "),u.YNc(7,tL,1,0,"span",22),u.YNc(8,eL,1,0,"span",23)}if(2&e){const t=u.oxw();u.Q6J("ngIf",t.chart.remark),u.xp6(1),u.Q6J("ngIf",t.plot),u.xp6(1),u.Q6J("ngIf",t.bi.export&&t.data&&t.data.length>0),u.xp6(5),u.Q6J("ngIf",t.open),u.xp6(1),u.Q6J("ngIf",!t.open)}}const rL=function(){return{padding:"0"}};let iL=(()=>{class e{constructor(t,r,i,a){this.ref=t,this.biDataService=r,this.handlerService=i,this.msg=a,this.buildDimParam=new u.vpe,this.downloading=!1,this.open=!0,this.plot=null,this.chartType=$,this.ready=!0,this.data=[],this.dataKeys=[]}ngOnInit(){this.chart.chartOption&&(this.chart.chartOption=JSON.parse(this.chart.chartOption)),this.init()}init(){let t=this.handlerService.buildDimParam(this.bi,!1);if(t){for(let r of this.bi.dimensions)if(r.notNull&&(!t||null===t[r.code]))return void(this.ready=!1);this.ready=!0,this.chart.type==$.tpl?this.src=this.biDataService.getChartTpl(this.chart.id,this.bi.code,t):(this.chart.loading=!0,this.biDataService.getBiChart(this.bi.code,this.chart.id,t).subscribe(r=>{this.chart.loading=!1,this.data=r,this.chart.type==$.Number?r[0]&&(this.dataKeys=Object.keys(r[0])):this.chart.type==$.table?this.chartTable.render(r):this.render(r)}))}}ngOnDestroy(){this.plot&&this.plot.destroy()}update(t){let r=this.handlerService.buildDimParam(this.bi,!0);r&&(this.plot?(t&&(this.chart.loading=!0),this.biDataService.getBiChart(this.bi.code,this.chart.id,r).subscribe(i=>{this.chart.loading&&(this.chart.loading=!1),this.plot.changeData(i)})):this.init())}downloadChartImage(){this.plot||this.init();let r=this.ref.nativeElement.querySelector("#"+this.chart.code).querySelector("canvas").toDataURL("image/png"),i=document.createElement("a");if("download"in i){i.style.visibility="hidden",i.href=r,i.download=this.chart.name,document.body.appendChild(i);let a=document.createEvent("MouseEvents");a.initEvent("click",!0,!0),i.dispatchEvent(a),document.body.removeChild(i)}else window.open(r)}downloadChartData(){let t=this.handlerService.buildDimParam(this.bi,!0);t&&(this.downloading=!0,this.biDataService.exportChartExcel(this.bi.code,this.chart.id,t,()=>{this.downloading=!1}))}render(t){this.plot&&(this.plot.destroy(),this.plot=null);let r=Object.keys(t[0]),i=r[0],a=r[1],o=r[2],s=r[3],l={data:t,xField:i,yField:a,slider:{},appendPadding:16,legend:{position:"bottom"}};switch(this.chart.chartOption&&Object.assign(l,this.chart.chartOption),this.chart.type){case $.Line:this.plot=new Ah(this.chart.code,Object.assign(l,{seriesField:o}));break;case $.StepLine:this.plot=new Ah(this.chart.code,Object.assign(l,{seriesField:o,stepType:"vh"}));break;case $.Bar:this.plot=new xh(this.chart.code,Object.assign(l,{seriesField:o}));break;case $.PercentStackedBar:this.plot=new xh(this.chart.code,Object.assign(l,{stackField:o,isPercent:!0,isStack:!0}));break;case $.Waterfall:this.plot=new DI(this.chart.code,Object.assign(l,{legend:!1,label:{style:{fontSize:10},layout:[{type:"interval-adjust-position"}]}}));break;case $.Column:this.plot=new Mh(this.chart.code,Object.assign(l,{isGroup:!0,seriesField:o}));break;case $.StackedColumn:this.plot=new Mh(this.chart.code,Object.assign(l,{isStack:!0,seriesField:o,slider:{}}));break;case $.Area:this.plot=new gh(this.chart.code,Object.assign(l,{seriesField:o}));break;case $.PercentageArea:this.plot=new gh(this.chart.code,Object.assign(l,{seriesField:o,isPercent:!0}));break;case $.Pie:this.plot=new Eh(this.chart.code,Object.assign(l,{angleField:a,colorField:i}));break;case $.Ring:this.plot=new Eh(this.chart.code,Object.assign(l,{angleField:a,colorField:i,innerRadius:.6,radius:1}));break;case $.Rose:this.plot=new Lk(this.chart.code,Object.assign(l,{seriesField:i,radius:.9,label:{offset:-15},interactions:[{type:"element-active"}]}));break;case $.Funnel:this.plot=new M0(this.chart.code,Object.assign(l,{seriesField:o,appendPadding:[12,38],shape:"pyramid"}));break;case $.Radar:this.plot=new dk(this.chart.code,Object.assign(l,{seriesField:o,point:{size:2},xAxis:{line:null,tickLine:null,grid:{line:{style:{lineDash:null}}}},yAxis:{line:null,tickLine:null,grid:{line:{type:"line",style:{lineDash:null}},alternateColor:"rgba(0, 0, 0, 0.04)"}},area:{}}));break;case $.Scatter:this.plot=new Ih(this.chart.code,Object.assign(l,{colorField:o,shape:"circle",brush:{enabled:!0},yAxis:{nice:!0,line:{style:{stroke:"#aaa"}}},xAxis:{line:{style:{stroke:"#aaa"}}}}));break;case $.Bubble:this.plot=new Ih(this.chart.code,Object.assign(l,{colorField:o,sizeField:s,size:[3,36],shape:"circle",brush:{enabled:!0}}));break;case $.WordCloud:this.plot=new uD(this.chart.code,Object.assign(l,{wordField:i,weightField:a,colorField:o,interactions:[{type:"element-active"}],wordStyle:{}}));break;case $.Sankey:this.plot=new s8(this.chart.code,Object.assign(l,{sourceField:i,weightField:a,targetField:o,nodeDraggable:!0,nodeWidthRatio:.008,nodePaddingRatio:.03}));break;case $.Chord:this.plot=new TF(this.chart.code,Object.assign(l,{sourceField:i,weightField:a,targetField:o}));break;case $.RadialBar:this.plot=new _k(this.chart.code,Object.assign(l,{colorField:o,isStack:!0,maxAngle:270}))}this.plot&&this.plot.render()}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(u.SBq),u.Y36(et),u.Y36(ft),u.Y36(Z.dD))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-chart"]],viewQuery:function(r,i){if(1&r&&u.Gf(BD,5),2&r){let a;u.iGM(a=u.CRH())&&(i.chartTable=a.first)}},inputs:{chart:"chart",bi:"bi"},outputs:{buildDimParam:"buildDimParam"},decls:7,vars:9,consts:[[3,"nzSpinning"],["nzSize","small",2,"margin-bottom","12px",3,"nzTitle","nzBodyStyle","nzHoverable","nzExtra"],[3,"ngClass"],[4,"ngIf"],["extraTemplate",""],[2,"width","100%","display","flex","flex-direction","column","align-items","center","justify-content","center",3,"id","ngStyle"],["nz-icon","","nzType","pie-chart","nzTheme","twotone",2,"font-size","36px"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"url"],[2,"overflow","auto",3,"ngStyle"],[3,"id"],["chartTable",""],["nzNotFoundImage","simple",1,"flex-center-center",3,"nzNotFoundContent"],[2,"padding","12px","text-align","center",3,"id"],[3,"sg-container"],[4,"ngFor","ngForOf"],[2,"margin-bottom","16px",3,"nzValue","nzTitle","nzValueStyle"],[2,"width","100%",3,"id","ngStyle"],["nz-icon","","nzType","reload",3,"click"],["nzType","vertical"],["nz-icon","","nzType","down","nzTheme","outline",3,"click",4,"ngIf"],["nz-icon","","nzType","left","nzTheme","outline",3,"click",4,"ngIf"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzType","file-image","nzTheme","outline",3,"click"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","","nzType","download","nzTheme","outline",3,"click",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","download","nzTheme","outline",3,"click"],["nz-icon","","nzType","down","nzTheme","outline",3,"click"],["nz-icon","","nzType","left","nzTheme","outline",3,"click"]],template:function(r,i){if(1&r&&(u.TgZ(0,"nz-spin",0)(1,"nz-card",1)(2,"div",2),u.YNc(3,RD,3,4,"ng-container",3),u.YNc(4,$D,6,4,"ng-container",3),u.qZA()(),u.YNc(5,nL,9,5,"ng-template",null,4,u.W1O),u.qZA()),2&r){const a=u.MAs(6);u.Q6J("nzSpinning",i.chart.loading),u.xp6(1),u.Q6J("nzTitle",i.chart.name)("nzBodyStyle",u.DdM(8,rL))("nzHoverable",!0)("nzExtra",a),u.xp6(1),u.Q6J("ngClass",i.open?"card-show":"card-hide"),u.xp6(1),u.Q6J("ngIf",!i.ready),u.xp6(1),u.Q6J("ngIf",i.ready)}},dependencies:[K.mk,K.sg,K.O5,K.PC,K.RF,K.n9,K.ED,st.w,Qi.SY,F.Ls,vt.W,R.bd,O.g,hD.M,In.p9,ff,Om,FD,zD],styles:["@media (min-width: 1600px){[_nghost-%COMP%] .ant-col-xxl-2{width:16.6666666%!important}}[_nghost-%COMP%] .card-show{height:auto;transition:.5s height}[_nghost-%COMP%] .card-hide{height:0;overflow:auto;transition:.5s height}"]})}return e})();const aL=["st"],oL=["biChart"],sL=function(){return{rows:10}};function lL(e,n){1&e&&u._UZ(0,"nz-skeleton",4),2&e&&u.Q6J("nzActive",!0)("nzTitle",!0)("nzParagraph",u.DdM(3,sL))}function cL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"button",10),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.exportBiData())}),u._UZ(2,"i",11),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("nzLoading",t.downloading)("disabled",!t.biTable.data||t.biTable.data.length<=0),u.xp6(2),u.hij("",u.lcZ(4,3,"table.download")," ")}}function uL(e,n){1&e&&u._UZ(0,"nz-divider",16)}function hL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"div",20)(1,"label",21),u.NdJ("ngModelChange",function(i){u.CHM(t);const a=u.oxw().$implicit;return u.KtG(a.show=i)})("ngModelChange",function(){u.CHM(t);const i=u.oxw(5);return u.KtG(i.st.resetColumns())}),u._uU(2),u.qZA()()}if(2&e){const t=u.oxw().$implicit;u.xp6(1),u.Q6J("ngModel",t.show),u.xp6(1),u.Oqu(t.title.text)}}function fL(e,n){if(1&e&&(u.ynx(0),u.YNc(1,hL,3,2,"div",19),u.BQk()),2&e){const t=n.$implicit;u.xp6(1),u.Q6J("ngIf",t.title&&t.index)}}function vL(e,n){if(1&e&&(u.TgZ(0,"div",17),u.YNc(1,fL,2,1,"ng-container",18),u.qZA()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("ngForOf",t.st.columns)}}function pL(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"button",12),u._UZ(2,"i",13),u.qZA(),u.YNc(3,uL,1,0,"nz-divider",14),u.YNc(4,vL,2,1,"ng-template",null,15,u.W1O),u.BQk()),2&e){const t=u.MAs(5),r=u.oxw(2);u.xp6(1),u.Q6J("nzPopoverContent",t),u.xp6(2),u.Q6J("ngIf",r.bi.dimensions.length>0)}}function dL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"button",25),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(3);return u.KtG(i.clearCondition())}),u._UZ(1,"i",26),u._uU(2),u.ALo(3,"translate"),u.qZA()}if(2&e){const t=u.oxw(3);u.Q6J("disabled",t.querying),u.xp6(2),u.hij("",u.lcZ(3,2,"table.reset")," ")}}function gL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.YNc(1,dL,4,4,"button",22),u.TgZ(2,"button",23),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.hideCondition=!i.hideCondition)}),u._UZ(3,"i",24),u.qZA(),u.BQk()}if(2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",!t.hideCondition),u.xp6(2),u.Q6J("nzType",t.hideCondition?"caret-down":"caret-up")}}function yL(e,n){if(1&e){const t=u.EpF();u.TgZ(0,"nz-card",27)(1,"bi-dimension",28),u.NdJ("search",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.query({pageIndex:1,pageSize:i.biTable.size},!0))}),u.qZA()()}if(2&e){const t=u.oxw(2);u.Q6J("nzHoverable",!0)("hidden",t.hideCondition),u.xp6(1),u.Q6J("bi",t.bi)}}function mL(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",30),u._UZ(2,"bi-chart",31,32),u.qZA(),u.BQk()),2&e){const t=n.$implicit,r=u.oxw(3);u.xp6(1),u.Q6J("nzMd",t.grid)("nzXs",24),u.xp6(1),u.Q6J("chart",t)("bi",r.bi)}}function xL(e,n){if(1&e&&(u.ynx(0),u.TgZ(1,"div",29),u.ynx(2),u.YNc(3,mL,4,4,"ng-container",18),u.BQk(),u.qZA(),u.BQk()),2&e){const t=u.oxw(2);u.xp6(3),u.Q6J("ngForOf",t.bi.charts)}}function ML(e,n){1&e&&u._UZ(0,"i",38)}function CL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-card",33)(2,"nz-result",34)(3,"div",35)(4,"button",36),u.NdJ("click",function(){u.CHM(t);const i=u.oxw(2);return u.KtG(i.query({pageIndex:1,pageSize:i.biTable.size}))}),u._UZ(5,"i",7),u._uU(6),u.ALo(7,"translate"),u.qZA()()(),u.YNc(8,ML,1,0,"ng-template",null,37,u.W1O),u.qZA(),u.BQk()}if(2&e){const t=u.MAs(9),r=u.oxw(2);u.xp6(1),u.Q6J("nzHoverable",!0)("nzBordered",!0),u.xp6(1),u.Q6J("nzIcon",t)("nzTitle","\u8f93\u5165\u67e5\u8be2\u6761\u4ef6\uff0c\u5f00\u542f\u67e5\u8be2\u64cd\u4f5c"),u.xp6(2),u.Q6J("nzLoading",r.querying)("nzGhost",!0),u.xp6(2),u.hij("",u.lcZ(7,7,"table.query")," ")}}function wL(e,n){1&e&&(u.ynx(0),u.TgZ(1,"nz-card"),u._UZ(2,"nz-empty",39),u.qZA(),u.BQk()),2&e&&(u.xp6(2),u.Q6J("nzNotFoundContent",null))}function SL(e,n){if(1&e&&u._uU(0),2&e){const t=u.oxw(6);u.hij("\u5171",t.biTable.total,"\u6761")}}function _L(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"nz-pagination",42),u.NdJ("nzPageSizeChange",function(i){u.CHM(t);const a=u.oxw(5);return u.KtG(a.pageSizeChange(i))})("nzPageIndexChange",function(i){u.CHM(t);const a=u.oxw(5);return u.KtG(a.pageIndexChange(i))}),u.qZA(),u.YNc(2,SL,1,1,"ng-template",null,43,u.W1O),u.BQk()}if(2&e){const t=u.MAs(3),r=u.oxw(5);u.xp6(1),u.Q6J("nzPageIndex",r.biTable.index)("nzPageSize",r.biTable.size)("nzTotal",r.biTable.total)("nzPageSizeOptions",r.biTable.page.pageSizes)("nzSize","small")("nzShowTotal",t)}}const bL=function(e){return{x:e}};function TL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"st",40,41),u.NdJ("change",function(i){u.CHM(t);const a=u.oxw(4);return u.KtG(a.biTableChange(i))}),u.qZA(),u.YNc(3,_L,4,6,"ng-container",3),u.BQk()}if(2&e){const t=u.oxw(4);u.xp6(1),u.Q6J("columns",t.columns)("data",t.biTable.data)("loading",t.querying)("ps",t.biTable.size)("page",t.biTable.page)("scroll",u.VKq(10,bL,(t.clientWidth>768?200*t.columns.length:0)+"px"))("bordered",t.settingSrv.layout.bordered)("resizable",!0)("size","small"),u.xp6(2),u.Q6J("ngIf",t.biTable.pageType==t.pageType.backend)}}function AL(e,n){if(1&e&&(u.ynx(0),u.YNc(1,wL,3,1,"ng-container",3),u.YNc(2,TL,4,12,"ng-container",3),u.BQk()),2&e){const t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",t.columns.length<=0),u.xp6(1),u.Q6J("ngIf",t.columns&&t.columns.length>0)}}function FL(e,n){if(1&e&&(u.ynx(0),u.YNc(1,AL,3,2,"ng-container",3),u.BQk()),2&e){const t=u.oxw(2);u.xp6(1),u.Q6J("ngIf",t.bi.table)}}function EL(e,n){if(1&e){const t=u.EpF();u.ynx(0),u.TgZ(1,"div",5),u.ynx(2),u.TgZ(3,"button",6),u.NdJ("click",function(){u.CHM(t);const i=u.oxw();return u.KtG(i.query({pageIndex:1,pageSize:i.biTable.size},!0))}),u._UZ(4,"i",7),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.BQk(),u.YNc(7,cL,5,5,"ng-container",3),u.TgZ(8,"div",8),u.YNc(9,pL,6,2,"ng-container",3),u.YNc(10,gL,4,2,"ng-container",3),u.qZA()(),u.YNc(11,yL,2,3,"nz-card",9),u.YNc(12,xL,4,1,"ng-container",3),u.YNc(13,CL,10,9,"ng-container",3),u.YNc(14,FL,2,1,"ng-container",3),u.BQk()}if(2&e){const t=u.oxw();u.xp6(3),u.Q6J("nzLoading",t.querying),u.xp6(2),u.hij("",u.lcZ(6,9,"table.query")," "),u.xp6(2),u.Q6J("ngIf",t.bi.table&&t.bi.export),u.xp6(2),u.Q6J("ngIf",t.columns&&t.columns.length>0),u.xp6(1),u.Q6J("ngIf",t.bi.dimensions.length>0),u.xp6(1),u.Q6J("ngIf",t.bi.dimensions.length>0),u.xp6(1),u.Q6J("ngIf",t.bi.charts.length>0),u.xp6(1),u.Q6J("ngIf",t.haveNotNull&&t.bi.table),u.xp6(1),u.Q6J("ngIf",!t.haveNotNull)}}const kL=[{path:"",component:(()=>{class e{constructor(t,r,i,a,o,s,l){this.dataService=t,this.route=r,this.handlerService=i,this.settingSrv=a,this.appViewService=o,this.msg=s,this.modal=l,this.haveNotNull=!1,this.querying=!1,this.clientWidth=document.body.clientWidth,this.hideCondition=!1,this.pageType=Lt,this.sort={direction:null},this.biTable={index:1,size:10,total:0,page:{show:!1}},this.columns=[],this.downloading=!1}ngOnInit(){this.router$=this.route.params.subscribe(t=>{this.timer&&clearInterval(this.timer),this.name=t.name,this.biTable.data=null,this.dataService.getBiBuild(this.name).subscribe(r=>{this.bi=r,this.appViewService.setRouterViewDesc(this.bi.remark),this.bi.pageType==Lt.front&&(this.biTable.page={show:!0,front:!0,placement:"center",showSize:!0,showQuickJumper:!0}),this.biTable.size=this.bi.pageSize,this.biTable.page.pageSizes=this.bi.pageSizeOptions;for(let i of r.dimensions)if(i.type===Tt.NUMBER_RANGE&&(i.$value=[]),(0,lt.K0)(i.defaultValue)&&(i.$value=i.defaultValue),i.notNull&&(0,lt.Ft)(i.$value))return void(this.haveNotNull=!0);this.query({pageIndex:1,pageSize:this.biTable.size}),this.bi.refreshTime&&(this.timer=setInterval(()=>{this.query({pageIndex:this.biTable.index,pageSize:this.biTable.size},!0,!1)},1e3*this.bi.refreshTime))})})}query(t,r,i=!0){let a=this.handlerService.buildDimParam(this.bi);a&&(r&&this.biCharts.forEach(o=>o.update(i)),this.bi.table&&(this.querying=!0,this.biTable.index=t.pageIndex,this.dataService.getBiData(this.bi.code,t.pageIndex,t.pageSize,this.sort.column,this.sort.direction,a).subscribe(o=>{if(this.querying=!1,this.haveNotNull=!1,this.biTable.total=o.total,this.biTable.pageType=this.bi.pageType,o.columns){let s=[];for(let l of o.columns)if(l.display){let h={title:{text:l.name,optional:" ",optionalHelp:l.remark},index:l.name,className:"text-center",iif:f=>f.show,show:!0};l.sortable&&(h.sort={key:l.name,default:this.sort.column==l.name?this.sort.direction:null}),l.type==Ft.STRING||(l.type==Ft.NUMBER?h.type="number":l.type==Ft.DATE?(h.type="date",h.width=180):l.type==Ft.DRILL&&(h.type="link",h.click=f=>{let p=this.modal.create({nzWrapClassName:"modal-lg",nzKeyboard:!0,nzMaskClosable:!1,nzStyle:{top:"30px"},nzTitle:l.name,nzContent:L,nzFooter:null});p.getContentComponent().bi=this.bi,p.getContentComponent().drillCode=l.code,p.getContentComponent().row=f})),s.push(h)}this.columns=s,this.biTable.data=o.list}else this.biTable.data=[]})))}biTableChange(t){"sort"==t.type&&(this.sort={column:t.sort.column.indexKey},t.sort.value&&(this.sort.direction=t.sort.value),this.query({pageIndex:1,pageSize:this.biTable.size}))}pageIndexChange(t){this.query({pageIndex:t,pageSize:this.biTable.size})}pageSizeChange(t){this.biTable.size=t,this.query({pageIndex:1,pageSize:t})}clearCondition(){for(let t of this.bi.dimensions)t.$value=t.type==Tt.NUMBER_RANGE||t.type==Tt.DATETIME_RANGE||t.type==Tt.DATE_RANGE?[]:null,t.$viewValue=null;this.query({pageIndex:1,pageSize:this.biTable.size})}exportBiData(){let t=this.handlerService.buildDimParam(this.bi);t&&(this.downloading=!0,this.dataService.exportExcel(this.bi.id,this.bi.code,t,()=>{this.downloading=!1}))}ngOnDestroy(){this.router$.unsubscribe(),this.timer&&clearInterval(this.timer)}static#t=this.\u0275fac=function(r){return new(r||e)(u.Y36(et),u.Y36(J.gz),u.Y36(ft),u.Y36(jt.gb),u.Y36(G.O),u.Y36(Z.dD),u.Y36(Y.Sf))};static#e=this.\u0275cmp=u.Xpm({type:e,selectors:[["bi-skeleton"]],viewQuery:function(r,i){if(1&r&&(u.Gf(aL,5),u.Gf(oL,5)),2&r){let a;u.iGM(a=u.CRH())&&(i.st=a.first),u.iGM(a=u.CRH())&&(i.biCharts=a)}},decls:4,vars:3,consts:[[2,"padding","16px"],[3,"nzActive","nzTitle","nzParagraph",4,"ngIf"],[3,"id"],[4,"ngIf"],[3,"nzActive","nzTitle","nzParagraph"],[2,"display","flex"],["nz-button","",1,"mb-sm",3,"nzLoading","click"],["nz-icon","","nzType","search","nzTheme","outline"],[2,"margin-left","auto"],["style","margin-bottom: 12px;margin-top: 4px","nzSize","small",3,"nzHoverable","hidden",4,"ngIf"],["nz-button","",1,"mb-sm",3,"nzLoading","disabled","click"],["nz-icon","","nzType","download","nzTheme","outline"],["nz-button","","nzType","default","nz-popover","","nzPopoverTrigger","click",1,"mb-sm","hidden-mobile",2,"padding","4px 8px",3,"nzPopoverContent"],["nz-icon","","nzType","table","nzTheme","outline"],["nzType","vertical",4,"ngIf"],["tableColumnCtrl",""],["nzType","vertical"],["nz-row","",2,"max-width","520px"],[4,"ngFor","ngForOf"],["nz-col","","nzSpan","6","style","min-width: 130px;",4,"ngIf"],["nz-col","","nzSpan","6",2,"min-width","130px"],["nz-checkbox","",2,"width","130px",3,"ngModel","ngModelChange"],["nz-button","","class","mb-sm",3,"disabled","click",4,"ngIf"],["nz-button","",1,"mb-sm",2,"padding","4px 8px",3,"click"],["nz-icon","","nzTheme","outline",3,"nzType"],["nz-button","",1,"mb-sm",3,"disabled","click"],["nz-icon","","nzType","sync","nzTheme","outline"],["nzSize","small",2,"margin-bottom","12px","margin-top","4px",3,"nzHoverable","hidden"],[3,"bi","search"],["nz-row","","nzGutter","12"],["nz-col","",3,"nzMd","nzXs"],[3,"chart","bi"],["biChart",""],[3,"nzHoverable","nzBordered"],[3,"nzIcon","nzTitle"],["nz-result-extra",""],["nz-button","","nzType","primary",1,"mb-sm",3,"nzLoading","nzGhost","click"],["icon",""],["nz-icon","","nzType","rocket","nzTheme","twotone"],["nzNotFoundImage","simple",3,"nzNotFoundContent"],[2,"margin-bottom","12px",3,"columns","data","loading","ps","page","scroll","bordered","resizable","size","change"],["st",""],["nzShowSizeChanger","","nzShowQuickJumper","",2,"text-align","center",3,"nzPageIndex","nzPageSize","nzTotal","nzPageSizeOptions","nzSize","nzShowTotal","nzPageSizeChange","nzPageIndexChange"],["totalTemplate",""]],template:function(r,i){1&r&&(u.TgZ(0,"div",0),u.YNc(1,lL,1,4,"nz-skeleton",1),u.TgZ(2,"div",2),u.YNc(3,EL,15,11,"ng-container",3),u.qZA()()),2&r&&(u.xp6(1),u.Q6J("ngIf",!i.bi),u.xp6(1),u.Q6J("id",i.name),u.xp6(1),u.Q6J("ngIf",i.bi))},dependencies:[K.sg,K.O5,D.JJ,D.On,Ht.A5,nt.ix,st.w,k.dQ,I.t3,I.SK,w.Ie,A.lU,F.Ls,R.bd,O.g,ut.dE,j.ng,Cn,Ve,In.p9,Vm,iL,wi.C],styles:["[_nghost-%COMP%] .ant-table{transition:.3s all;border-radius:0}[_nghost-%COMP%] .ant-table:hover{border-color:#00000017;box-shadow:0 2px 8px #00000017}"]})}return e})(),data:{desc:"BI",status:!0}}];let IL=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({imports:[J.Bz.forChild(kL),J.Bz]})}return e})();var DL=V(9924),LL=V(6192);let OL=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=u.oAB({type:e});static#n=this.\u0275inj=u.cJS({providers:[et],imports:[K.ez,IL,DL.m,Or,In.Xo,pD,ED,hc,LL.YS]})}return e})()},9064:function(Ne,ae){!function(V){"use strict";function Vt(et,ft){return function Et(et){if(Array.isArray(et))return et}(et)||function ie(et,ft){var Ht=[],Ct=!0,vt=!1,ut=void 0;try{for(var B,_=et[Symbol.iterator]();!(Ct=(B=_.next()).done)&&(Ht.push(B.value),!ft||Ht.length!==ft);Ct=!0);}catch(dt){vt=!0,ut=dt}finally{try{!Ct&&null!=_.return&&_.return()}finally{if(vt)throw ut}}return Ht}(et,ft)||function qt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function zt(et,ft,Ht,Ct){et=et.filter(function(G,D){var nt=ft(G,D),st=Ht(G,D);return null!=nt&&isFinite(nt)&&null!=st&&isFinite(st)}),Ct&&et.sort(function(G,D){return ft(G)-ft(D)});for(var Rt,Zt,oe,vt=et.length,ut=new Float64Array(vt),_=new Float64Array(vt),B=0,dt=0,L=0;Lvt&&(Zt.splice(Y+1,0,st),L=!0)}return L}}function Bt(et,ft,Ht,Ct){var vt=Ct-et*et,ut=Math.abs(vt)<1e-24?0:(Ht-et*ft)/vt;return[ft-ut*et,ut]}function xt(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var ut=0,_=0,B=0,dt=0,Rt=0,Zt=Ht?+Ht[0]:1/0,oe=Ht?+Ht[1]:-1/0;bt(vt,et,ft,function(k,I){++ut,_+=(k-_)/ut,B+=(I-B)/ut,dt+=(k*I-dt)/ut,Rt+=(k*k-Rt)/ut,Ht||(koe&&(oe=k))});var Y=Vt(Bt(_,B,dt,Rt),2),G=Y[0],D=Y[1],nt=function(I){return D*I+G},st=[[Zt,nt(Zt)],[oe,nt(oe)]];return st.a=D,st.b=G,st.predict=nt,st.rSquared=kt(vt,et,ft,B,nt),st}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct}function K(et){et.sort(function(Ht,Ct){return Ht-Ct});var ft=et.length/2;return ft%1==0?(et[ft-1]+et[ft])/2:et[Math.floor(ft)]}function Tt(et){return(et=1-et*et*et)*et*et}function Ft(et,ft,Ht){var Ct=et[ft],vt=Ht[0],ut=Ht[1]+1;if(!(ut>=et.length))for(;ft>vt&&et[ut]-Ct<=Ct-et[vt];)Ht[0]=++vt,Ht[1]=ut,++ut}function u(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var st,k,I,w,_=Vt(zt(vt,et,ft),4),B=_[0],dt=_[1],Rt=_[2],Zt=_[3],oe=B.length,L=0,Y=0,G=0,D=0,nt=0;for(st=0;stO&&(O=Yt))});var j=G-L*L,Q=L*j-Y*Y,gt=(nt*L-D*Y)/Q,$t=(D*j-nt*Y)/Q,Dt=-gt*L,se=function(z){return gt*(z-=Rt)*z+$t*z+Dt+Zt},Kt=te(R,O,se);return Kt.a=gt,Kt.b=$t-2*gt*Rt,Kt.c=Dt-$t*Rt+gt*Rt*Rt+Zt,Kt.predict=se,Kt.rSquared=kt(vt,et,ft,A,se),Kt}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct}V.regressionExp=function Qt(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var ut=0,_=0,B=0,dt=0,Rt=0,Zt=0,oe=Ht?+Ht[0]:1/0,L=Ht?+Ht[1]:-1/0;bt(vt,et,ft,function(I,w){var A=Math.log(w),F=I*w;++ut,_+=(w-_)/ut,dt+=(F-dt)/ut,Zt+=(I*F-Zt)/ut,B+=(w*A-B)/ut,Rt+=(F*A-Rt)/ut,Ht||(IL&&(L=I))});var G=Vt(Bt(dt/_,B/_,Rt/_,Zt/_),2),D=G[0],nt=G[1];D=Math.exp(D);var st=function(w){return D*Math.exp(nt*w)},k=te(oe,L,st);return k.a=D,k.b=nt,k.predict=st,k.rSquared=kt(vt,et,ft,_,st),k}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct},V.regressionLinear=xt,V.regressionLoess=function Lt(){var et=function(ut){return ut[0]},ft=function(ut){return ut[1]},Ht=.3;function Ct(vt){for(var _=Vt(zt(vt,et,ft,!0),4),B=_[0],dt=_[1],Rt=_[2],Zt=_[3],oe=B.length,L=Math.max(2,~~(Ht*oe)),Y=new Float64Array(oe),G=new Float64Array(oe),D=new Float64Array(oe).fill(1),nt=-1;++nt<=2;){for(var st=[0,L-1],k=0;kB[A]-I?w:A]-I||1),Dt=w;Dt<=A;++Dt){var se=B[Dt],Kt=dt[Dt],Yt=Tt(Math.abs(I-se)*$t)*D[Dt],z=se*Yt;R+=Yt,O+=z,j+=Kt*Yt,Q+=Kt*z,gt+=se*z}var q=Vt(Bt(O/R,j/R,Q/R,gt/R),2);Y[k]=q[0]+q[1]*I,G[k]=Math.abs(dt[k]-Y[k]),Ft(B,k+1,st)}if(2===nt)break;var Nt=K(G);if(Math.abs(Nt)<1e-12)break;for(var Pt,_t,Ot=0;Ot=1?1e-12:(_t=1-Pt*Pt)*_t}return function lt(et,ft,Ht,Ct){for(var Rt,vt=et.length,ut=[],_=0,B=0,dt=[];_L&&(L=w))});var D=Vt(Bt(B,dt,Rt,Zt),2),nt=D[0],st=D[1],k=function(A){return st*Math.log(A)/Y+nt},I=te(oe,L,k);return I.a=st,I.b=nt,I.predict=k,I.rSquared=kt(ut,et,ft,dt,k),I}return vt.domain=function(ut){return arguments.length?(Ct=ut,vt):Ct},vt.x=function(ut){return arguments.length?(et=ut,vt):et},vt.y=function(ut){return arguments.length?(ft=ut,vt):ft},vt.base=function(ut){return arguments.length?(Ht=ut,vt):Ht},vt},V.regressionPoly=function ct(){var Ct,et=function(_){return _[0]},ft=function(_){return _[1]},Ht=3;function vt(ut){if(1===Ht){var _=xt().x(et).y(ft).domain(Ct)(ut);return _.coefficients=[_.b,_.a],delete _.a,delete _.b,_}if(2===Ht){var B=u().x(et).y(ft).domain(Ct)(ut);return B.coefficients=[B.c,B.b,B.a],delete B.a,delete B.b,delete B.c,B}var F,R,O,j,Q,Rt=Vt(zt(ut,et,ft),4),Zt=Rt[0],oe=Rt[1],L=Rt[2],Y=Rt[3],G=Zt.length,D=[],nt=[],st=Ht+1,k=0,I=0,w=Ct?+Ct[0]:1/0,A=Ct?+Ct[1]:-1/0;for(bt(ut,et,ft,function(se,Kt){++I,k+=(Kt-k)/I,Ct||(seA&&(A=se))}),F=0;FMath.abs(et[Ct][_])&&(_=vt);for(ut=Ct;ut=Ct;ut--)et[ut][vt]-=et[ut][Ct]*et[Ct][vt]/et[Ct][Ct]}for(vt=ft-1;vt>=0;--vt){for(B=0,ut=vt+1;ut=0;--ut)for(dt=1,vt[ut]+=B=ft[ut],_=1;_<=ut;++_)dt*=(ut+1-_)/_,vt[ut-_]+=B*Math.pow(Ht,_)*dt;return vt[0]+=Ct,vt}(st,gt,-L,Y),Dt.predict=$t,Dt.rSquared=kt(ut,et,ft,k,$t),Dt}return vt.domain=function(ut){return arguments.length?(Ct=ut,vt):Ct},vt.x=function(ut){return arguments.length?(et=ut,vt):et},vt.y=function(ut){return arguments.length?(ft=ut,vt):ft},vt.order=function(ut){return arguments.length?(Ht=ut,vt):Ht},vt},V.regressionPow=function jt(){var Ht,et=function(ut){return ut[0]},ft=function(ut){return ut[1]};function Ct(vt){var ut=0,_=0,B=0,dt=0,Rt=0,Zt=0,oe=Ht?+Ht[0]:1/0,L=Ht?+Ht[1]:-1/0;bt(vt,et,ft,function(I,w){var A=Math.log(I),F=Math.log(w);++ut,_+=(A-_)/ut,B+=(F-B)/ut,dt+=(A*F-dt)/ut,Rt+=(A*A-Rt)/ut,Zt+=(w-Zt)/ut,Ht||(IL&&(L=I))});var G=Vt(Bt(_,B,dt,Rt),2),D=G[0],nt=G[1];D=Math.exp(D);var st=function(w){return D*Math.pow(w,nt)},k=te(oe,L,st);return k.a=D,k.b=nt,k.predict=st,k.rSquared=kt(vt,et,ft,Zt,st),k}return Ct.domain=function(vt){return arguments.length?(Ht=vt,Ct):Ht},Ct.x=function(vt){return arguments.length?(et=vt,Ct):et},Ct.y=function(vt){return arguments.length?(ft=vt,Ct):ft},Ct},V.regressionQuad=u,Object.defineProperty(V,"__esModule",{value:!0})}(ae)},1653:(Ne,ae,V)=>{"use strict";V.d(ae,{qY:()=>Qt});var Vt=function(Ft,lt,Z){if(Z||2===arguments.length)for(var Mt,u=0,ct=lt.length;u"u"&&typeof navigator<"u"&&"ReactNative"===navigator.product?new bt:typeof navigator<"u"?J(navigator.userAgent):function Lt(){return typeof process<"u"&&process.version?new ie(process.version.slice(1)):null}()}function J(Ft){var lt=function xt(Ft){return""!==Ft&&te.reduce(function(lt,Z){var u=Z[0];if(lt)return lt;var Mt=Z[1].exec(Ft);return!!Mt&&[u,Mt]},!1)}(Ft);if(!lt)return null;var Z=lt[0],u=lt[1];if("searchbot"===Z)return new zt;var ct=u[1]&&u[1].split(".").join("_").split("_").slice(0,3);ct?ct.lengthlt+Tt*Lt*Z||u>=Ct)Ht=Lt;else{if(Math.abs(Mt)<=-Ft*Z)return Lt;Mt*(Ht-ft)>=0&&(Ht=ft),ft=Lt,Ct=u}return 0}Lt=Lt||1,Tt=Tt||1e-6,Ft=Ft||.1;for(var et=0;et<10;++et){if(kt($.x,1,J.x,Lt,K),u=$.fx=xt($.x,$.fxprime),Mt=qt($.fxprime,K),u>lt+Tt*Lt*Z||et&&u>=ct)return jt(Jt,Lt,ct);if(Math.abs(Mt)<=-Ft*Z)return Lt;if(Mt>=0)return jt(Lt,Jt,u);ct=u,Jt=Lt,Lt*=2}return Lt}V.bisect=function Vt(xt,K,J,$){var Lt=($=$||{}).maxIterations||100,Tt=$.tolerance||1e-10,Ft=xt(K),lt=xt(J),Z=J-K;if(Ft*lt>0)throw"Initial bisect points must have opposite signs";if(0===Ft)return K;if(0===lt)return J;for(var u=0;u=0&&(K=ct),Math.abs(Z)=et[jt-1].fx){var Y=!1;if(_.fx>L.fx?(kt(B,1+ct,ut,-ct,L),B.fx=xt(B),B.fx=1)break;for(ft=1;ft{"use strict";V.d(ae,{WT:()=>Et});var Et=typeof Float32Array<"u"?Float32Array:Array;Math,Math,Math.hypot||(Math.hypot=function(){for(var ht=0,mt=arguments.length;mt--;)ht+=arguments[mt]*arguments[mt];return Math.sqrt(ht)})},2067:(Ne,ae,V)=>{"use strict";function mt(_,B){var dt=B[0],Rt=B[1],Zt=B[2],oe=B[3],L=B[4],Y=B[5],G=B[6],D=B[7],nt=B[8],st=nt*L-Y*D,k=-nt*oe+Y*G,I=D*oe-L*G,w=dt*st+Rt*k+Zt*I;return w?(_[0]=st*(w=1/w),_[1]=(-nt*Rt+Zt*D)*w,_[2]=(Y*Rt-Zt*L)*w,_[3]=k*w,_[4]=(nt*dt-Zt*G)*w,_[5]=(-Y*dt+Zt*oe)*w,_[6]=I*w,_[7]=(-D*dt+Rt*G)*w,_[8]=(L*dt-Rt*oe)*w,_):null}function Qt(_,B,dt){var Rt=B[0],Zt=B[1],oe=B[2],L=B[3],Y=B[4],G=B[5],D=B[6],nt=B[7],st=B[8],k=dt[0],I=dt[1],w=dt[2],A=dt[3],F=dt[4],R=dt[5],O=dt[6],j=dt[7],Q=dt[8];return _[0]=k*Rt+I*L+w*D,_[1]=k*Zt+I*Y+w*nt,_[2]=k*oe+I*G+w*st,_[3]=A*Rt+F*L+R*D,_[4]=A*Zt+F*Y+R*nt,_[5]=A*oe+F*G+R*st,_[6]=O*Rt+j*L+Q*D,_[7]=O*Zt+j*Y+Q*nt,_[8]=O*oe+j*G+Q*st,_}function $(_,B){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=1,_[5]=0,_[6]=B[0],_[7]=B[1],_[8]=1,_}function Lt(_,B){var dt=Math.sin(B),Rt=Math.cos(B);return _[0]=Rt,_[1]=dt,_[2]=0,_[3]=-dt,_[4]=Rt,_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}function Tt(_,B){return _[0]=B[0],_[1]=0,_[2]=0,_[3]=0,_[4]=B[1],_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}V.d(ae,{Jp:()=>Qt,U_:()=>mt,Us:()=>Lt,vc:()=>$,xJ:()=>Tt})},7367:(Ne,ae,V)=>{"use strict";V.d(ae,{$X:()=>ht,AK:()=>Jt,EU:()=>B,Fp:()=>K,Fv:()=>Mt,I6:()=>Zt,IH:()=>kt,TE:()=>Tt,VV:()=>xt,bA:()=>$,kE:()=>lt,kK:()=>vt,lu:()=>Y});var Vt=V(1611);function kt(w,A,F){return w[0]=A[0]+F[0],w[1]=A[1]+F[1],w}function ht(w,A,F){return w[0]=A[0]-F[0],w[1]=A[1]-F[1],w}function xt(w,A,F){return w[0]=Math.min(A[0],F[0]),w[1]=Math.min(A[1],F[1]),w}function K(w,A,F){return w[0]=Math.max(A[0],F[0]),w[1]=Math.max(A[1],F[1]),w}function $(w,A,F){return w[0]=A[0]*F,w[1]=A[1]*F,w}function Tt(w,A){return Math.hypot(A[0]-w[0],A[1]-w[1])}function lt(w){return Math.hypot(w[0],w[1])}function Mt(w,A){var F=A[0],R=A[1],O=F*F+R*R;return O>0&&(O=1/Math.sqrt(O)),w[0]=A[0]*O,w[1]=A[1]*O,w}function Jt(w,A){return w[0]*A[0]+w[1]*A[1]}function vt(w,A,F){var R=A[0],O=A[1];return w[0]=F[0]*R+F[3]*O+F[6],w[1]=F[1]*R+F[4]*O+F[7],w}function B(w,A){var F=w[0],R=w[1],O=A[0],j=A[1],Q=Math.sqrt(F*F+R*R)*Math.sqrt(O*O+j*j);return Math.acos(Math.min(Math.max(Q&&(F*O+R*j)/Q,-1),1))}function Zt(w,A){return w[0]===A[0]&&w[1]===A[1]}var Y=ht;(function Et(){var w=new Vt.WT(2);Vt.WT!=Float32Array&&(w[0]=0,w[1]=0)})()},5729:Ne=>{"use strict";var ae=Ne.exports;Ne.exports.isNumber=function(V){return"number"==typeof V},Ne.exports.findMin=function(V){if(0===V.length)return 1/0;for(var Vt=V[0],Et=1;Et{"use strict";var ie=Math.log(2),qt=Ne.exports,zt=V(5729);function bt(ht){return 1-Math.abs(ht)}Ne.exports.getUnifiedMinMax=function(ht,mt){return qt.getUnifiedMinMaxMulti([ht],mt)},Ne.exports.getUnifiedMinMaxMulti=function(ht,mt){var te=!1,Bt=!1,Qt=zt.isNumber((mt=mt||{}).width)?mt.width:2,xt=zt.isNumber(mt.size)?mt.size:50,K=zt.isNumber(mt.min)?mt.min:(te=!0,zt.findMinMulti(ht)),J=zt.isNumber(mt.max)?mt.max:(Bt=!0,zt.findMaxMulti(ht)),Lt=(J-K)/(xt-1);return te&&(K-=2*Qt*Lt),Bt&&(J+=2*Qt*Lt),{min:K,max:J}},Ne.exports.create=function(ht,mt){if(!ht||0===ht.length)return[];var te=zt.isNumber((mt=mt||{}).size)?mt.size:50,Bt=zt.isNumber(mt.width)?mt.width:2,Qt=qt.getUnifiedMinMax(ht,{size:te,width:Bt,min:mt.min,max:mt.max}),xt=Qt.min,J=Qt.max-xt,$=J/(te-1);if(0===J)return[{x:xt,y:1}];for(var Lt=[],Tt=0;Tt=Lt.length)){var Ht=Math.max(ft-Bt,0),Ct=ft,vt=Math.min(ft+Bt,Lt.length-1),ut=Ht-(ft-Bt),Rt=Z/(Z-(lt[-Bt-1+ut]||0)-(lt[-Bt-1+(ft+Bt-vt)]||0));ut>0&&(ct+=Rt*(ut-1)*u);var Zt=Math.max(0,ft-Bt+1);zt.inside(0,Lt.length-1,Zt)&&(Lt[Zt].y+=1*Rt*u),zt.inside(0,Lt.length-1,Ct+1)&&(Lt[Ct+1].y-=2*Rt*u),zt.inside(0,Lt.length-1,vt+1)&&(Lt[vt+1].y+=1*Rt*u)}});var Mt=ct,Jt=0,jt=0;return Lt.forEach(function(et){et.y=Mt+=Jt+=et.y,jt+=Mt}),jt>0&&Lt.forEach(function(et){et.y/=jt}),Lt},Ne.exports.getExpectedValueFromPdf=function(ht){if(ht&&0!==ht.length){var mt=0;return ht.forEach(function(te){mt+=te.x*te.y}),mt}},Ne.exports.getXWithLeftTailArea=function(ht,mt){if(ht&&0!==ht.length){for(var te=0,Bt=0,Qt=0;Qt=mt));Qt++);return ht[Bt].x}},Ne.exports.getPerplexity=function(ht){if(ht&&0!==ht.length){var mt=0;return ht.forEach(function(te){var Bt=Math.log(te.y);isFinite(Bt)&&(mt+=te.y*Bt)}),mt=-mt/ie,Math.pow(2,mt)}}},5818:(Ne,ae)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.SizeSensorId=ae.SensorTabIndex=ae.SensorClassName=void 0,ae.SizeSensorId="size-sensor-id",ae.SensorClassName="size-sensor-object",ae.SensorTabIndex="-1"},3371:(Ne,ae)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=void 0,ae.default=function(Et){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,qt=null;return function(){for(var zt=this,bt=arguments.length,kt=new Array(bt),ht=0;ht{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=void 0;var V=1;ae.default=function(){return"".concat(V++)}},1971:(Ne,ae,V)=>{"use strict";ae.ak=void 0;var Et=V(9308);ae.ak=function(kt,ht){var mt=(0,Et.getSensor)(kt);return mt.bind(ht),function(){mt.unbind(ht)}}},9308:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.removeSensor=ae.getSensor=ae.Sensors=void 0;var Vt=function qt(mt){return mt&&mt.__esModule?mt:{default:mt}}(V(329)),Et=V(4730),ie=V(5818),zt={};function bt(mt){mt&&zt[mt]&&delete zt[mt]}ae.Sensors=zt,ae.getSensor=function(te){var Bt=te.getAttribute(ie.SizeSensorId);if(Bt&&zt[Bt])return zt[Bt];var Qt=(0,Vt.default)();te.setAttribute(ie.SizeSensorId,Qt);var xt=(0,Et.createSensor)(te,function(){return bt(Qt)});return zt[Qt]=xt,xt},ae.removeSensor=function(te){var Bt=te.element.getAttribute(ie.SizeSensorId);te.destroy(),bt(Bt)}},4730:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.createSensor=void 0;var Vt=V(3029),Et=V(5289),ie=typeof ResizeObserver<"u"?Et.createSensor:Vt.createSensor;ae.createSensor=ie},3029:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.createSensor=void 0;var Vt=function ie(zt){return zt&&zt.__esModule?zt:{default:zt}}(V(3371)),Et=V(5818);ae.createSensor=function(bt,kt){var ht=void 0,mt=[],Bt=(0,Vt.default)(function(){mt.forEach(function(J){J(bt)})}),xt=function(){ht&&ht.parentNode&&(ht.contentDocument&&ht.contentDocument.defaultView.removeEventListener("resize",Bt),ht.parentNode.removeChild(ht),bt.removeAttribute(Et.SizeSensorId),ht=void 0,mt=[],kt&&kt())};return{element:bt,bind:function($){ht||(ht=function(){"static"===getComputedStyle(bt).position&&(bt.style.position="relative");var $=document.createElement("object");return $.onload=function(){$.contentDocument.defaultView.addEventListener("resize",Bt),Bt()},$.style.display="block",$.style.position="absolute",$.style.top="0",$.style.left="0",$.style.height="100%",$.style.width="100%",$.style.overflow="hidden",$.style.pointerEvents="none",$.style.zIndex="-1",$.style.opacity="0",$.setAttribute("class",Et.SensorClassName),$.setAttribute("tabindex",Et.SensorTabIndex),$.type="text/html",bt.appendChild($),$.data="about:blank",$}()),-1===mt.indexOf($)&&mt.push($)},destroy:xt,unbind:function($){var Lt=mt.indexOf($);-1!==Lt&&mt.splice(Lt,1),0===mt.length&&ht&&xt()}}}},5289:(Ne,ae,V)=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0}),ae.createSensor=void 0;var Vt=V(5818),Et=function ie(zt){return zt&&zt.__esModule?zt:{default:zt}}(V(3371));ae.createSensor=function(bt,kt){var ht=void 0,mt=[],te=(0,Et.default)(function(){mt.forEach(function(J){J(bt)})}),xt=function(){ht.disconnect(),mt=[],ht=void 0,bt.removeAttribute(Vt.SizeSensorId),kt&&kt()};return{element:bt,bind:function($){ht||(ht=function(){var $=new ResizeObserver(te);return $.observe(bt),te(),$}()),-1===mt.indexOf($)&&mt.push($)},destroy:xt,unbind:function($){var Lt=mt.indexOf($);-1!==Lt&&mt.splice(Lt,1),0===mt.length&&ht&&xt()}}}}}]); \ No newline at end of file diff --git a/erupt-web/src/main/resources/public/index.html b/erupt-web/src/main/resources/public/index.html index 062f9a2e0..d7908bf1f 100644 --- a/erupt-web/src/main/resources/public/index.html +++ b/erupt-web/src/main/resources/public/index.html @@ -48,5 +48,5 @@ - + diff --git a/erupt-web/src/main/resources/public/runtime.633ddae6872db1af.js b/erupt-web/src/main/resources/public/runtime.303e102d120cbac3.js similarity index 58% rename from erupt-web/src/main/resources/public/runtime.633ddae6872db1af.js rename to erupt-web/src/main/resources/public/runtime.303e102d120cbac3.js index 644e0eccc..6317acfeb 100644 --- a/erupt-web/src/main/resources/public/runtime.633ddae6872db1af.js +++ b/erupt-web/src/main/resources/public/runtime.303e102d120cbac3.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,u,f)=>{if(!t){var a=1/0;for(i=0;i=f)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(c=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,u,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{383:"ef2a68810f2e94ca",497:"1932beadf08ab7cf",663:"c08e14df22832ac9",667:"20a4c701db6fc25e",830:"5c7849c8d95958b4"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="erupt:";r.l=(t,u,f,i)=>{if(e[t])e[t].push(u);else{var a,c;if(void 0!==f)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(u,f)=>{var i=r.o(e,u)?e[u]:void 0;if(0!==i)if(i)f.push(i[2]);else if(666!=u){var a=new Promise((d,s)=>i=e[u]=[d,s]);f.push(i[2]=a);var c=r.p+r.u(u),o=new Error;r.l(c,d=>{if(r.o(e,u)&&(0!==(i=e[u])&&(e[u]=void 0),i)){var s=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;o.message="Loading chunk "+u+" failed.\n("+s+": "+p+")",o.name="ChunkLoadError",o.type=s,o.request=p,i[1](o)}},"chunk-"+u,u)}else e[u]=0},r.O.j=u=>0===e[u];var n=(u,f)=>{var o,l,[i,a,c]=f,d=0;if(i.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var s=c(r)}for(u&&u(f);d{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,u,f)=>{if(!t){var a=1/0;for(i=0;i=f)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(s=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,u,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{383:"ef2a68810f2e94ca",497:"1932beadf08ab7cf",663:"c08e14df22832ac9",667:"20a4c701db6fc25e",830:"20de7dc1f9897d6d"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="erupt:";r.l=(t,u,f,i)=>{if(e[t])e[t].push(u);else{var a,s;if(void 0!==f)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(u,f)=>{var i=r.o(e,u)?e[u]:void 0;if(0!==i)if(i)f.push(i[2]);else if(666!=u){var a=new Promise((d,c)=>i=e[u]=[d,c]);f.push(i[2]=a);var s=r.p+r.u(u),o=new Error;r.l(s,d=>{if(r.o(e,u)&&(0!==(i=e[u])&&(e[u]=void 0),i)){var c=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;o.message="Loading chunk "+u+" failed.\n("+c+": "+p+")",o.name="ChunkLoadError",o.type=c,o.request=p,i[1](o)}},"chunk-"+u,u)}else e[u]=0},r.O.j=u=>0===e[u];var n=(u,f)=>{var o,l,[i,a,s]=f,d=0;if(i.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var c=s(r)}for(u&&u(f);d