You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
170 KiB
17 lines
170 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[21238],{55168:function(Y,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.SensorTabIndex=I.SensorClassName=I.SizeSensorId=void 0;var _="size-sensor-id";I.SizeSensorId=_;var p="size-sensor-object";I.SensorClassName=p;var k="-1";I.SensorTabIndex=k},12177:function(Y,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var _=function(k){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,m=null;return function(){for(var g=this,u=arguments.length,a=new Array(u),e=0;e<u;e++)a[e]=arguments[e];clearTimeout(m),m=setTimeout(function(){k.apply(g,a)},b)}};I.default=_},96340:function(Y,I){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var _=1,p=function(){return"".concat(_++)};I.default=p},18587:function(Y,I,_){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.ver=I.clear=I.bind=void 0;var p=_(12955),k=function(u,a){var e=(0,p.getSensor)(u);return e.bind(a),function(){e.unbind(a)}};I.bind=k;var b=function(u){var a=(0,p.getSensor)(u);(0,p.removeSensor)(a)};I.clear=b;var m="1.0.1";I.ver=m},12955:function(Y,I,_){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.removeSensor=I.getSensor=void 0;var p=m(_(96340)),k=_(82578),b=_(55168);function m(e){return e&&e.__esModule?e:{default:e}}var g={},u=function(i){var t=i.getAttribute(b.SizeSensorId);if(t&&g[t])return g[t];var r=(0,p.default)();i.setAttribute(b.SizeSensorId,r);var o=(0,k.createSensor)(i);return g[r]=o,o};I.getSensor=u;var a=function(i){var t=i.element.getAttribute(b.SizeSensorId);i.element.removeAttribute(b.SizeSensorId),i.destroy(),t&&g[t]&&delete g[t]};I.removeSensor=a},82578:function(Y,I,_){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createSensor=void 0;var p=_(27643),k=_(31743),b=typeof ResizeObserver!="undefined"?k.createSensor:p.createSensor;I.createSensor=b},27643:function(Y,I,_){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createSensor=void 0;var p=b(_(12177)),k=_(55168);function b(g){return g&&g.__esModule?g:{default:g}}var m=function(u){var a=void 0,e=[],i=function(){getComputedStyle(u).position==="static"&&(u.style.position="relative");var S=document.createElement("object");return S.onload=function(){S.contentDocument.defaultView.addEventListener("resize",t),t()},S.style.display="block",S.style.position="absolute",S.style.top="0",S.style.left="0",S.style.height="100%",S.style.width="100%",S.style.overflow="hidden",S.style.pointerEvents="none",S.style.zIndex="-1",S.style.opacity="0",S.setAttribute("class",k.SensorClassName),S.setAttribute("tabindex",k.SensorTabIndex),S.type="text/html",u.appendChild(S),S.data="about:blank",S},t=(0,p.default)(function(){e.forEach(function(v){v(u)})}),r=function(S){a||(a=i()),e.indexOf(S)===-1&&e.push(S)},o=function(){a&&a.parentNode&&(a.contentDocument&&a.contentDocument.defaultView.removeEventListener("resize",t),a.parentNode.removeChild(a),a=void 0,e=[])},c=function(S){var M=e.indexOf(S);M!==-1&&e.splice(M,1),e.length===0&&a&&o()};return{element:u,bind:r,destroy:o,unbind:c}};I.createSensor=m},31743:function(Y,I,_){"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createSensor=void 0;var p=k(_(12177));function k(m){return m&&m.__esModule?m:{default:m}}var b=function(g){var u=void 0,a=[],e=(0,p.default)(function(){a.forEach(function(c){c(g)})}),i=function(){var v=new ResizeObserver(e);return v.observe(g),e(),v},t=function(v){u||(u=i()),a.indexOf(v)===-1&&a.push(v)},r=function(){u.disconnect(),a=[],u=void 0},o=function(v){var S=a.indexOf(v);S!==-1&&a.splice(S,1),a.length===0&&u&&r()};return{element:g,bind:t,destroy:r,unbind:o}};I.createSensor=b},85823:function(Y,I,_){var p=_(78038),k=_(41502),b=_(58023),m=_(7131),g=_(33051),u=function(e){b.call(this,e),k.call(this,e),m.call(this,e),this.id=e.id||p()};u.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":e=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=e,t[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,i){},attrKV:function(e,i){if(e==="position"||e==="scale"||e==="origin"){if(i){var t=this[e];t||(t=this[e]=[]),t[0]=i[0],t[1]=i[1]}}else this[e]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,i){if(typeof e=="string")this.attrKV(e,i);else if(g.isObject(e))for(var t in e)e.hasOwnProperty(t)&&this.attrKV(t,e[t]);return this.dirty(!1),this},setClipPath:function(e){var i=this.__zr;i&&e.addSelfToZr(i),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=i,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var i=this.animators;if(i)for(var t=0;t<i.length;t++)e.animation.addAnimator(i[t]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var i=this.animators;if(i)for(var t=0;t<i.length;t++)e.animation.removeAnimator(i[t]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},g.mixin(u,m),g.mixin(u,b),g.mixin(u,k);var a=u;Y.exports=a},48173:function(Y,I,_){var p=_(33051),k=_(45280),b=_(17780),m=_(41502),g=_(61158),u=_(49399),a="silent";function e(M,z,P){return{type:M,event:P,target:z.target,topTarget:z.topTarget,cancelBubble:!1,offsetX:P.zrX,offsetY:P.zrY,gestureEvent:P.gestureEvent,pinchX:P.pinchX,pinchY:P.pinchY,pinchScale:P.pinchScale,wheelDelta:P.zrDelta,zrByTouch:P.zrByTouch,which:P.which,stop:i}}function i(){g.stop(this.event)}function t(){}t.prototype.dispose=function(){};var r=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],o=function(M,z,P,C){m.call(this),this.storage=M,this.painter=z,this.painterRoot=C,P=P||new t,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,b.call(this),this.setHandlerProxy(P)};o.prototype={constructor:o,setHandlerProxy:function(M){this.proxy&&this.proxy.dispose(),M&&(p.each(r,function(z){M.on&&M.on(z,this[z],this)},this),M.handler=this),this.proxy=M},mousemove:function(M){var z=M.zrX,P=M.zrY,C=v(this,z,P),F=this._hovered,d=F.target;d&&!d.__zr&&(F=this.findHover(F.x,F.y),d=F.target);var A=this._hovered=C?{x:z,y:P}:this.findHover(z,P),T=A.target,j=this.proxy;j.setCursor&&j.setCursor(T?T.cursor:"default"),d&&T!==d&&this.dispatchToElement(F,"mouseout",M),this.dispatchToElement(A,"mousemove",M),T&&T!==d&&this.dispatchToElement(A,"mouseover",M)},mouseout:function(M){var z=M.zrEventControl,P=M.zrIsToLocalDOM;z!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",M),z!=="no_globalout"&&(!P&&this.trigger("globalout",{type:"globalout",event:M}))},resize:function(M){this._hovered={}},dispatch:function(M,z){var P=this[M];P&&P.call(this,z)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(M){var z=this.proxy;z.setCursor&&z.setCursor(M)},dispatchToElement:function(M,z,P){M=M||{};var C=M.target;if(C&&C.silent)return;for(var F="on"+z,d=e(z,M,P);C&&!(C[F]&&(d.cancelBubble=C[F].call(C,d)),C.trigger(z,d),C=C.parent,d.cancelBubble););d.cancelBubble||(this.trigger(z,d),this.painter&&this.painter.eachOtherLayer(function(A){typeof A[F]=="function"&&A[F].call(A,d),A.trigger&&A.trigger(z,d)}))},findHover:function(M,z,P){for(var C=this.storage.getDisplayList(),F={x:M,y:z},d=C.length-1;d>=0;d--){var A;if(C[d]!==P&&!C[d].ignore&&(A=c(C[d],M,z))&&(!F.topTarget&&(F.topTarget=C[d]),A!==a)){F.target=C[d];break}}return F},processGesture:function(M,z){this._gestureMgr||(this._gestureMgr=new u);var P=this._gestureMgr;z==="start"&&P.clear();var C=P.recognize(M,this.findHover(M.zrX,M.zrY,null).target,this.proxy.dom);if(z==="end"&&P.clear(),C){var F=C.type;M.gestureEvent=F,this.dispatchToElement({target:C.target},F,C.event)}}},p.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(M){o.prototype[M]=function(z){var P=z.zrX,C=z.zrY,F=v(this,P,C),d,A;if((M!=="mouseup"||!F)&&(d=this.findHover(P,C),A=d.target),M==="mousedown")this._downEl=A,this._downPoint=[z.zrX,z.zrY],this._upEl=A;else if(M==="mouseup")this._upEl=A;else if(M==="click"){if(this._downEl!==this._upEl||!this._downPoint||k.dist(this._downPoint,[z.zrX,z.zrY])>4)return;this._downPoint=null}this.dispatchToElement(d,M,z)}});function c(M,z,P){if(M[M.rectHover?"rectContain":"contain"](z,P)){for(var C=M,F;C;){if(C.clipPath&&!C.clipPath.contain(z,P))return!1;C.silent&&(F=!0),C=C.parent}return F?a:!0}return!1}function v(M,z,P){var C=M.painter;return z<0||z>C.getWidth()||P<0||P>C.getHeight()}p.mixin(o,m),p.mixin(o,b);var S=o;Y.exports=S},39559:function(Y,I,_){var p=_(33051),k=_(4990),b=k.devicePixelRatio,m=_(40342),g=_(31870);function u(){return!1}function a(t,r,o){var c=p.createCanvas(),v=r.getWidth(),S=r.getHeight(),M=c.style;return M&&(M.position="absolute",M.left=0,M.top=0,M.width=v+"px",M.height=S+"px",c.setAttribute("data-zr-dom-id",t)),c.width=v*o,c.height=S*o,c}var e=function(t,r,o){var c;o=o||b,typeof t=="string"?c=a(t,r,o):p.isObject(t)&&(c=t,t=c.id),this.id=t,this.dom=c;var v=c.style;v&&(c.onselectstart=u,v["-webkit-user-select"]="none",v["user-select"]="none",v["-webkit-touch-callout"]="none",v["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",v.padding=0,v.margin=0,v["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=r,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};e.prototype={constructor:e,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=a("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,r){var o=this.dpr,c=this.dom,v=c.style,S=this.domBack;v&&(v.width=t+"px",v.height=r+"px"),c.width=t*o,c.height=r*o,S&&(S.width=t*o,S.height=r*o,o!==1&&this.ctxBack.scale(o,o))},clear:function(t,r){var o=this.dom,c=this.ctx,v=o.width,S=o.height,r=r||this.clearColor,M=this.motionBlur&&!t,z=this.lastFrameAlpha,P=this.dpr;if(M&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,v/P,S/P)),c.clearRect(0,0,v,S),r&&r!=="transparent"){var C;r.colorStops?(C=r.__canvasGradient||m.getGradient(c,r,{x:0,y:0,width:v,height:S}),r.__canvasGradient=C):r.image&&(C=g.prototype.getCanvasPattern.call(r,c)),c.save(),c.fillStyle=C||r,c.fillRect(0,0,v,S),c.restore()}if(M){var F=this.domBack;c.save(),c.globalAlpha=z,c.drawImage(F,0,0,v,S),c.restore()}}};var i=e;Y.exports=i},19847:function(Y,I,_){var p=_(4990),k=p.devicePixelRatio,b=_(33051),m=_(48612),g=_(60479),u=_(19455),a=_(39559),e=_(22795),i=_(44535),t=_(66387),r=1e5,o=314159,c=.01,v=.001;function S(y){return parseInt(y,10)}function M(y){return y?y.__builtin__?!0:!(typeof y.resize!="function"||typeof y.refresh!="function"):!1}var z=new g(0,0,0,0),P=new g(0,0,0,0);function C(y,s,n){return z.copy(y.getBoundingRect()),y.transform&&z.applyTransform(y.transform),P.width=s,P.height=n,!z.intersect(P)}function F(y,s){if(y===s)return!1;if(!y||!s||y.length!==s.length)return!0;for(var n=0;n<y.length;n++)if(y[n]!==s[n])return!0;return!1}function d(y,s){for(var n=0;n<y.length;n++){var f=y[n];f.setTransform(s),s.beginPath(),f.buildPath(s,f.shape),s.clip(),f.restoreTransform(s)}}function A(y,s){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+y+"px","height:"+s+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var T=function(y,s,n){this.type="canvas";var f=!y.nodeName||y.nodeName.toUpperCase()==="CANVAS";this._opts=n=b.extend({},n||{}),this.dpr=n.devicePixelRatio||k,this._singleCanvas=f,this.root=y;var O=y.style;O&&(O["-webkit-tap-highlight-color"]="transparent",O["-webkit-user-select"]=O["user-select"]=O["-webkit-touch-callout"]="none",y.innerHTML=""),this.storage=s;var w=this._zlevelList=[],L=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,f){var x=y.width,B=y.height;n.width!=null&&(x=n.width),n.height!=null&&(B=n.height),this.dpr=n.devicePixelRatio||1,y.width=x*this.dpr,y.height=B*this.dpr,this._width=x,this._height=B;var D=new a(y,this,this.dpr);D.__builtin__=!0,D.initContext(),L[o]=D,D.zlevel=o,w.push(o),this._domRoot=y}else{this._width=this._getSize(0),this._height=this._getSize(1);var l=this._domRoot=A(this._width,this._height);y.appendChild(l)}this._hoverlayer=null,this._hoverElements=[]};T.prototype={constructor:T,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var y=this.getViewportRoot();if(y)return{offsetLeft:y.offsetLeft||0,offsetTop:y.offsetTop||0}},refresh:function(y){var s=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(s,y,this._redrawId);for(var f=0;f<n.length;f++){var O=n[f],w=this._layers[O];if(!w.__builtin__&&w.refresh){var L=f===0?this._backgroundColor:null;w.refresh(L)}}return this.refreshHover(),this},addHover:function(y,s){if(y.__hoverMir)return;var n=new y.constructor({style:y.style,shape:y.shape,z:y.z,z2:y.z2,silent:y.silent});return n.__from=y,y.__hoverMir=n,s&&n.setStyle(s),this._hoverElements.push(n),n},removeHover:function(y){var s=y.__hoverMir,n=this._hoverElements,f=b.indexOf(n,s);f>=0&&n.splice(f,1),y.__hoverMir=null},clearHover:function(y){for(var s=this._hoverElements,n=0;n<s.length;n++){var f=s[n].__from;f&&(f.__hoverMir=null)}s.length=0},refreshHover:function(){var y=this._hoverElements,s=y.length,n=this._hoverlayer;if(n&&n.clear(),!s)return;u(y,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(r));var f={};n.ctx.save();for(var O=0;O<s;){var w=y[O],L=w.__from;if(!(L&&L.__zr)){y.splice(O,1),L.__hoverMir=null,s--;continue}O++,L.invisible||(w.transform=L.transform,w.invTransform=L.invTransform,w.__clipPaths=L.__clipPaths,this._doPaintEl(w,n,!0,f))}n.ctx.restore()},getHoverLayer:function(){return this.getLayer(r)},_paintList:function(y,s,n){if(this._redrawId!==n)return;s=s||!1,this._updateLayerStatus(y);var f=this._doPaintList(y,s);if(this._needsManuallyCompositing&&this._compositeManually(),!f){var O=this;e(function(){O._paintList(y,s,n)})}},_compositeManually:function(){var y=this.getLayer(o).ctx,s=this._domRoot.width,n=this._domRoot.height;y.clearRect(0,0,s,n),this.eachBuiltinLayer(function(f){f.virtual&&y.drawImage(f.dom,0,0,s,n)})},_doPaintList:function(y,s){for(var n=[],f=0;f<this._zlevelList.length;f++){var O=this._zlevelList[f],w=this._layers[O];w.__builtin__&&w!==this._hoverlayer&&(w.__dirty||s)&&n.push(w)}for(var L=!0,l=0;l<n.length;l++){var w=n[l],x=w.ctx,B={};x.save();var D=s?w.__startIndex:w.__drawIndex,N=!s&&w.incremental&&Date.now,U=N&&Date.now(),W=w.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(w.__startIndex===w.__endIndex)w.clear(!1,W);else if(D===w.__startIndex){var H=y[D];(!H.incremental||!H.notClear||s)&&w.clear(!1,W)}D===-1&&(console.error("For some unknown reason. drawIndex is -1"),D=w.__startIndex);for(var h=D;h<w.__endIndex;h++){var E=y[h];if(this._doPaintEl(E,w,s,B),E.__dirty=E.__dirtyText=!1,N){var R=Date.now()-U;if(R>15)break}}w.__drawIndex=h,w.__drawIndex<w.__endIndex&&(L=!1),B.prevElClipPaths&&x.restore(),x.restore()}return t.wxa&&b.each(this._layers,function(X){X&&X.ctx&&X.ctx.draw&&X.ctx.draw()}),L},_doPaintEl:function(y,s,n,f){var O=s.ctx,w=y.transform;if((s.__dirty||n)&&!y.invisible&&y.style.opacity!==0&&!(w&&!w[0]&&!w[3])&&!(y.culling&&C(y,this._width,this._height))){var L=y.__clipPaths,l=f.prevElClipPaths;(!l||F(L,l))&&(l&&(O.restore(),f.prevElClipPaths=null,f.prevEl=null),L&&(O.save(),d(L,O),f.prevElClipPaths=L)),y.beforeBrush&&y.beforeBrush(O),y.brush(O,f.prevEl||null),f.prevEl=y,y.afterBrush&&y.afterBrush(O)}},getLayer:function(y,s){this._singleCanvas&&!this._needsManuallyCompositing&&(y=o);var n=this._layers[y];return n||(n=new a("zr_"+y,this,this.dpr),n.zlevel=y,n.__builtin__=!0,this._layerConfig[y]?b.merge(n,this._layerConfig[y],!0):this._layerConfig[y-c]&&b.merge(n,this._layerConfig[y-c],!0),s&&(n.virtual=s),this.insertLayer(y,n),n.initContext()),n},insertLayer:function(y,s){var n=this._layers,f=this._zlevelList,O=f.length,w=null,L=-1,l=this._domRoot;if(n[y]){m("ZLevel "+y+" has been used already");return}if(!M(s)){m("Layer of zlevel "+y+" is not valid");return}if(O>0&&y>f[0]){for(L=0;L<O-1&&!(f[L]<y&&f[L+1]>y);L++);w=n[f[L]]}if(f.splice(L+1,0,y),n[y]=s,!s.virtual)if(w){var x=w.dom;x.nextSibling?l.insertBefore(s.dom,x.nextSibling):l.appendChild(s.dom)}else l.firstChild?l.insertBefore(s.dom,l.firstChild):l.appendChild(s.dom)},eachLayer:function(y,s){var n=this._zlevelList,f,O;for(O=0;O<n.length;O++)f=n[O],y.call(s,this._layers[f],f)},eachBuiltinLayer:function(y,s){var n=this._zlevelList,f,O,w;for(w=0;w<n.length;w++)O=n[w],f=this._layers[O],f.__builtin__&&y.call(s,f,O)},eachOtherLayer:function(y,s){var n=this._zlevelList,f,O,w;for(w=0;w<n.length;w++)O=n[w],f=this._layers[O],f.__builtin__||y.call(s,f,O)},getLayers:function(){return this._layers},_updateLayerStatus:function(y){this.eachBuiltinLayer(function(B,D){B.__dirty=B.__used=!1});function s(B){O&&(O.__endIndex!==B&&(O.__dirty=!0),O.__endIndex=B)}if(this._singleCanvas)for(var n=1;n<y.length;n++){var f=y[n];if(f.zlevel!==y[n-1].zlevel||f.incremental){this._needsManuallyCompositing=!0;break}}for(var O=null,w=0,L,n=0;n<y.length;n++){var f=y[n],l=f.zlevel,x;L!==l&&(L=l,w=0),f.incremental?(x=this.getLayer(l+v,this._needsManuallyCompositing),x.incremental=!0,w=1):x=this.getLayer(l+(w>0?c:0),this._needsManuallyCompositing),x.__builtin__||m("ZLevel "+l+" has been used by unkown layer "+x.id),x!==O&&(x.__used=!0,x.__startIndex!==n&&(x.__dirty=!0),x.__startIndex=n,x.incremental?x.__drawIndex=-1:x.__drawIndex=n,s(n),O=x),f.__dirty&&(x.__dirty=!0,x.incremental&&x.__drawIndex<0&&(x.__drawIndex=n))}s(n),this.eachBuiltinLayer(function(B,D){!B.__used&&B.getElementCount()>0&&(B.__dirty=!0,B.__startIndex=B.__endIndex=B.__drawIndex=0),B.__dirty&&B.__drawIndex<0&&(B.__drawIndex=B.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(y){y.clear()},setBackgroundColor:function(y){this._backgroundColor=y},configLayer:function(y,s){if(s){var n=this._layerConfig;n[y]?b.merge(n[y],s,!0):n[y]=s;for(var f=0;f<this._zlevelList.length;f++){var O=this._zlevelList[f];if(O===y||O===y+c){var w=this._layers[O];b.merge(w,n[y],!0)}}}},delLayer:function(y){var s=this._layers,n=this._zlevelList,f=s[y];if(!f)return;f.dom.parentNode.removeChild(f.dom),delete s[y],n.splice(b.indexOf(n,y),1)},resize:function(y,s){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var f=this._opts;if(y!=null&&(f.width=y),s!=null&&(f.height=s),y=this._getSize(0),s=this._getSize(1),n.style.display="",this._width!==y||s!==this._height){n.style.width=y+"px",n.style.height=s+"px";for(var O in this._layers)this._layers.hasOwnProperty(O)&&this._layers[O].resize(y,s);b.each(this._progressiveLayers,function(w){w.resize(y,s)}),this.refresh(!0)}this._width=y,this._height=s}else{if(y==null||s==null)return;this._width=y,this._height=s,this.getLayer(o).resize(y,s)}return this},clearLayer:function(y){var s=this._layers[y];s&&s.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(y){if(y=y||{},this._singleCanvas&&!this._compositeManually)return this._layers[o].dom;var s=new a("image",this,y.pixelRatio||this.dpr);if(s.initContext(),s.clear(!1,y.backgroundColor||this._backgroundColor),y.pixelRatio<=this.dpr){this.refresh();var n=s.dom.width,f=s.dom.height,O=s.ctx;this.eachLayer(function(B){B.__builtin__?O.drawImage(B.dom,0,0,n,f):B.renderToCanvas&&(s.ctx.save(),B.renderToCanvas(s.ctx),s.ctx.restore())})}else for(var w={},L=this.storage.getDisplayList(!0),l=0;l<L.length;l++){var x=L[l];this._doPaintEl(x,s,!0,w)}return s.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(y){var s=this._opts,n=["width","height"][y],f=["clientWidth","clientHeight"][y],O=["paddingLeft","paddingTop"][y],w=["paddingRight","paddingBottom"][y];if(s[n]!=null&&s[n]!=="auto")return parseFloat(s[n]);var L=this.root,l=document.defaultView.getComputedStyle(L);return(L[f]||S(l[n])||S(L.style[n]))-(S(l[O])||0)-(S(l[w])||0)|0},pathToImage:function(y,s){s=s||this.dpr;var n=document.createElement("canvas"),f=n.getContext("2d"),O=y.getBoundingRect(),w=y.style,L=w.shadowBlur*s,l=w.shadowOffsetX*s,x=w.shadowOffsetY*s,B=w.hasStroke()?w.lineWidth:0,D=Math.max(B/2,-l+L),N=Math.max(B/2,l+L),U=Math.max(B/2,-x+L),W=Math.max(B/2,x+L),H=O.width+D+N,h=O.height+U+W;n.width=H*s,n.height=h*s,f.scale(s,s),f.clearRect(0,0,H,h),f.dpr=s;var E={position:y.position,rotation:y.rotation,scale:y.scale};y.position=[D-O.x,U-O.y],y.rotation=0,y.scale=[1,1],y.updateTransform(),y&&y.brush(f);var R=i,X=new R({style:{x:0,y:0,image:n}});return E.position!=null&&(X.position=y.position=E.position),E.rotation!=null&&(X.rotation=y.rotation=E.rotation),E.scale!=null&&(X.scale=y.scale=E.scale),X}};var j=T;Y.exports=j},8822:function(Y,I,_){var p=_(33051),k=_(66387),b=_(8524),m=_(19455);function g(e,i){return e.zlevel===i.zlevel?e.z===i.z?e.z2-i.z2:e.z-i.z:e.zlevel-i.zlevel}var u=function(){this._roots=[],this._displayList=[],this._displayListLen=0};u.prototype={constructor:u,traverse:function(e,i){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(e,i)},getDisplayList:function(e,i){return i=i||!1,e&&this.updateDisplayList(i),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var i=this._roots,t=this._displayList,r=0,o=i.length;r<o;r++)this._updateAndAddDisplayable(i[r],null,e);t.length=this._displayListLen,k.canvasSupported&&m(t,g)},_updateAndAddDisplayable:function(e,i,t){if(e.ignore&&!t)return;e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var r=e.clipPath;if(r){i?i=i.slice():i=[];for(var o=r,c=e;o;)o.parent=c,o.updateTransform(),i.push(o),c=o,o=o.clipPath}if(e.isGroup){for(var v=e._children,S=0;S<v.length;S++){var M=v[S];e.__dirty&&(M.__dirty=!0),this._updateAndAddDisplayable(M,i,t)}e.__dirty=!1}else e.__clipPaths=i,this._displayList[this._displayListLen++]=e},addRoot:function(e){if(e.__storage===this)return;e instanceof b&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e)},delRoot:function(e){if(e==null){for(var i=0;i<this._roots.length;i++){var t=this._roots[i];t instanceof b&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(e instanceof Array){for(var i=0,r=e.length;i<r;i++)this.delRoot(e[i]);return}var o=p.indexOf(this._roots,e);o>=0&&(this.delFromStorage(e),this._roots.splice(o,1),e instanceof b&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:g};var a=u;Y.exports=a},76069:function(Y,I,_){var p=_(33051),k=_(61158),b=k.Dispatcher,m=_(22795),g=_(64383),u=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,b.call(this)};u.prototype={constructor:u,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var i=e.getClips(),t=0;t<i.length;t++)this.addClip(i[t])},removeClip:function(e){var i=p.indexOf(this._clips,e);i>=0&&this._clips.splice(i,1)},removeAnimator:function(e){for(var i=e.getClips(),t=0;t<i.length;t++)this.removeClip(i[t]);e.animation=null},_update:function(){for(var e=new Date().getTime()-this._pausedTime,i=e-this._time,t=this._clips,r=t.length,o=[],c=[],v=0;v<r;v++){var S=t[v],M=S.step(e,i);M&&(o.push(M),c.push(S))}for(var v=0;v<r;)t[v]._needsRemove?(t[v]=t[r-1],t.pop(),r--):v++;r=o.length;for(var v=0;v<r;v++)c[v].fire(o[v]);this._time=e,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;this._running=!0;function i(){e._running&&(m(i),!e._paused&&e._update())}m(i)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,i){i=i||{};var t=new g(e,i.loop,i.getter,i.setter);return this.addAnimator(t),t}},p.mixin(u,b);var a=u;Y.exports=a},64383:function(Y,I,_){var p=_(8470),k=_(21092),b=_(33051),m=b.isArrayLike,g=Array.prototype.slice;function u(d,A){return d[A]}function a(d,A,T){d[A]=T}function e(d,A,T){return(A-d)*T+d}function i(d,A,T){return T>.5?A:d}function t(d,A,T,j,y){var s=d.length;if(y===1)for(var n=0;n<s;n++)j[n]=e(d[n],A[n],T);else for(var f=s&&d[0].length,n=0;n<s;n++)for(var O=0;O<f;O++)j[n][O]=e(d[n][O],A[n][O],T)}function r(d,A,T){var j=d.length,y=A.length;if(j!==y){var s=j>y;if(s)d.length=y;else for(var n=j;n<y;n++)d.push(T===1?A[n]:g.call(A[n]))}for(var f=d[0]&&d[0].length,n=0;n<d.length;n++)if(T===1)isNaN(d[n])&&(d[n]=A[n]);else for(var O=0;O<f;O++)isNaN(d[n][O])&&(d[n][O]=A[n][O])}function o(d,A,T){if(d===A)return!0;var j=d.length;if(j!==A.length)return!1;if(T===1){for(var y=0;y<j;y++)if(d[y]!==A[y])return!1}else for(var s=d[0].length,y=0;y<j;y++)for(var n=0;n<s;n++)if(d[y][n]!==A[y][n])return!1;return!0}function c(d,A,T,j,y,s,n,f,O){var w=d.length;if(O===1)for(var L=0;L<w;L++)f[L]=v(d[L],A[L],T[L],j[L],y,s,n);else for(var l=d[0].length,L=0;L<w;L++)for(var x=0;x<l;x++)f[L][x]=v(d[L][x],A[L][x],T[L][x],j[L][x],y,s,n)}function v(d,A,T,j,y,s,n){var f=(T-d)*.5,O=(j-A)*.5;return(2*(A-T)+f+O)*n+(-3*(A-T)-2*f-O)*s+f*y+A}function S(d){if(m(d)){var A=d.length;if(m(d[0])){for(var T=[],j=0;j<A;j++)T.push(g.call(d[j]));return T}return g.call(d)}return d}function M(d){return d[0]=Math.floor(d[0]),d[1]=Math.floor(d[1]),d[2]=Math.floor(d[2]),"rgba("+d.join(",")+")"}function z(d){var A=d[d.length-1].value;return m(A&&A[0])?2:1}function P(d,A,T,j,y,s){var n=d._getter,f=d._setter,O=A==="spline",w=j.length;if(!w)return;var L=j[0].value,l=m(L),x=!1,B=!1,D=l?z(j):0,N;j.sort(function(ne,de){return ne.time-de.time}),N=j[w-1].time;for(var U=[],W=[],H=j[0].value,h=!0,E=0;E<w;E++){U.push(j[E].time/N);var R=j[E].value;if(l&&o(R,H,D)||!l&&R===H||(h=!1),H=R,typeof R=="string"){var X=k.parse(R);X?(R=X,x=!0):B=!0}W.push(R)}if(!s&&h)return;for(var V=W[w-1],E=0;E<w-1;E++)l?r(W[E],V,D):isNaN(W[E])&&!isNaN(V)&&!B&&!x&&(W[E]=V);l&&r(n(d._target,y),V,D);var Z=0,K=0,ee,te,ue,le,he,G;if(x)var $=[0,0,0,0];var re=function(ne,de){var Q;if(de<0)Q=0;else if(de<K){for(ee=Math.min(Z+1,w-1),Q=ee;Q>=0&&!(U[Q]<=de);Q--);Q=Math.min(Q,w-2)}else{for(Q=Z;Q<w&&!(U[Q]>de);Q++);Q=Math.min(Q-1,w-2)}Z=Q,K=de;var J=U[Q+1]-U[Q];if(J===0)return;if(te=(de-U[Q])/J,O)if(le=W[Q],ue=W[Q===0?Q:Q-1],he=W[Q>w-2?w-1:Q+1],G=W[Q>w-3?w-1:Q+2],l)c(ue,le,he,G,te,te*te,te*te*te,n(ne,y),D);else{var ae;if(x)ae=c(ue,le,he,G,te,te*te,te*te*te,$,1),ae=M($);else{if(B)return i(le,he,te);ae=v(ue,le,he,G,te,te*te,te*te*te)}f(ne,y,ae)}else if(l)t(W[Q],W[Q+1],te,n(ne,y),D);else{var ae;if(x)t(W[Q],W[Q+1],te,$,1),ae=M($);else{if(B)return i(W[Q],W[Q+1],te);ae=e(W[Q],W[Q+1],te)}f(ne,y,ae)}},q=new p({target:d._target,life:N,loop:d._loop,delay:d._delay,onframe:re,ondestroy:T});return A&&A!=="spline"&&(q.easing=A),q}var C=function(d,A,T,j){this._tracks={},this._target=d,this._loop=A||!1,this._getter=T||u,this._setter=j||a,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};C.prototype={when:function(d,A){var T=this._tracks;for(var j in A){if(!A.hasOwnProperty(j))continue;if(!T[j]){T[j]=[];var y=this._getter(this._target,j);if(y==null)continue;d!==0&&T[j].push({time:0,value:S(y)})}T[j].push({time:d,value:A[j]})}return this},during:function(d){return this._onframeList.push(d),this},pause:function(){for(var d=0;d<this._clipList.length;d++)this._clipList[d].pause();this._paused=!0},resume:function(){for(var d=0;d<this._clipList.length;d++)this._clipList[d].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var d=this._doneList,A=d.length,T=0;T<A;T++)d[T].call(this)},start:function(d,A){var T=this,j=0,y=function(){j--,j||T._doneCallback()},s;for(var n in this._tracks){if(!this._tracks.hasOwnProperty(n))continue;var f=P(this,d,y,this._tracks[n],n,A);f&&(this._clipList.push(f),j++,this.animation&&this.animation.addClip(f),s=f)}if(s){var O=s.onframe;s.onframe=function(w,L){O(w,L);for(var l=0;l<T._onframeList.length;l++)T._onframeList[l](w,L)}}return j||this._doneCallback(),this},stop:function(d){for(var A=this._clipList,T=this.animation,j=0;j<A.length;j++){var y=A[j];d&&y.onframe(this._target,1),T&&T.removeClip(y)}A.length=0},delay:function(d){return this._delay=d,this},done:function(d){return d&&this._doneList.push(d),this},getClips:function(){return this._clipList}};var F=C;Y.exports=F},8470:function(Y,I,_){var p=_(30690);function k(m){this._target=m.target,this._life=m.life||1e3,this._delay=m.delay||0,this._initialized=!1,this.loop=m.loop==null?!1:m.loop,this.gap=m.gap||0,this.easing=m.easing||"Linear",this.onframe=m.onframe,this.ondestroy=m.ondestroy,this.onrestart=m.onrestart,this._pausedTime=0,this._paused=!1}k.prototype={constructor:k,step:function(m,g){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=g;return}var u=(m-this._startTime-this._pausedTime)/this._life;if(u<0)return;u=Math.min(u,1);var a=this.easing,e=typeof a=="string"?p[a]:a,i=typeof e=="function"?e(u):u;return this.fire("frame",i),u===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var g=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-g+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,g){m="on"+m,this[m]&&this[m](this._target,g)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var b=k;Y.exports=b},30690:function(Y){var I={linear:function(p){return p},quadraticIn:function(p){return p*p},quadraticOut:function(p){return p*(2-p)},quadraticInOut:function(p){return(p*=2)<1?.5*p*p:-.5*(--p*(p-2)-1)},cubicIn:function(p){return p*p*p},cubicOut:function(p){return--p*p*p+1},cubicInOut:function(p){return(p*=2)<1?.5*p*p*p:.5*((p-=2)*p*p+2)},quarticIn:function(p){return p*p*p*p},quarticOut:function(p){return 1- --p*p*p*p},quarticInOut:function(p){return(p*=2)<1?.5*p*p*p*p:-.5*((p-=2)*p*p*p-2)},quinticIn:function(p){return p*p*p*p*p},quinticOut:function(p){return--p*p*p*p*p+1},quinticInOut:function(p){return(p*=2)<1?.5*p*p*p*p*p:.5*((p-=2)*p*p*p*p+2)},sinusoidalIn:function(p){return 1-Math.cos(p*Math.PI/2)},sinusoidalOut:function(p){return Math.sin(p*Math.PI/2)},sinusoidalInOut:function(p){return .5*(1-Math.cos(Math.PI*p))},exponentialIn:function(p){return p===0?0:Math.pow(1024,p-1)},exponentialOut:function(p){return p===1?1:1-Math.pow(2,-10*p)},exponentialInOut:function(p){return p===0?0:p===1?1:(p*=2)<1?.5*Math.pow(1024,p-1):.5*(-Math.pow(2,-10*(p-1))+2)},circularIn:function(p){return 1-Math.sqrt(1-p*p)},circularOut:function(p){return Math.sqrt(1- --p*p)},circularInOut:function(p){return(p*=2)<1?-.5*(Math.sqrt(1-p*p)-1):.5*(Math.sqrt(1-(p-=2)*p)+1)},elasticIn:function(p){var k,b=.1,m=.4;return p===0?0:p===1?1:(!b||b<1?(b=1,k=m/4):k=m*Math.asin(1/b)/(2*Math.PI),-(b*Math.pow(2,10*(p-=1))*Math.sin((p-k)*(2*Math.PI)/m)))},elasticOut:function(p){var k,b=.1,m=.4;return p===0?0:p===1?1:(!b||b<1?(b=1,k=m/4):k=m*Math.asin(1/b)/(2*Math.PI),b*Math.pow(2,-10*p)*Math.sin((p-k)*(2*Math.PI)/m)+1)},elasticInOut:function(p){var k,b=.1,m=.4;return p===0?0:p===1?1:(!b||b<1?(b=1,k=m/4):k=m*Math.asin(1/b)/(2*Math.PI),(p*=2)<1?-.5*(b*Math.pow(2,10*(p-=1))*Math.sin((p-k)*(2*Math.PI)/m)):b*Math.pow(2,-10*(p-=1))*Math.sin((p-k)*(2*Math.PI)/m)*.5+1)},backIn:function(p){var k=1.70158;return p*p*((k+1)*p-k)},backOut:function(p){var k=1.70158;return--p*p*((k+1)*p+k)+1},backInOut:function(p){var k=1.70158*1.525;return(p*=2)<1?.5*(p*p*((k+1)*p-k)):.5*((p-=2)*p*((k+1)*p+k)+2)},bounceIn:function(p){return 1-I.bounceOut(1-p)},bounceOut:function(p){return p<1/2.75?7.5625*p*p:p<2/2.75?7.5625*(p-=1.5/2.75)*p+.75:p<2.5/2.75?7.5625*(p-=2.25/2.75)*p+.9375:7.5625*(p-=2.625/2.75)*p+.984375},bounceInOut:function(p){return p<.5?I.bounceIn(p*2)*.5:I.bounceOut(p*2-1)*.5+.5}},_=I;Y.exports=_},22795:function(Y){var I=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(_){setTimeout(_,16)};Y.exports=I},4990:function(Y,I){var _=1;typeof window!="undefined"&&(_=Math.max(window.devicePixelRatio||1,1));var p=0,k=_;I.debugMode=p,I.devicePixelRatio=k},92334:function(Y,I,_){var p=_(3266),k=p.normalizeRadian,b=Math.PI*2;function m(g,u,a,e,i,t,r,o,c){if(r===0)return!1;var v=r;o-=g,c-=u;var S=Math.sqrt(o*o+c*c);if(S-v>a||S+v<a)return!1;if(Math.abs(e-i)%b<1e-4)return!0;if(t){var M=e;e=k(i),i=k(M)}else e=k(e),i=k(i);e>i&&(i+=b);var z=Math.atan2(c,o);return z<0&&(z+=b),z>=e&&z<=i||z+b>=e&&z+b<=i}I.containStroke=m},71972:function(Y,I,_){var p=_(18554);function k(b,m,g,u,a,e,i,t,r,o,c){if(r===0)return!1;var v=r;if(c>m+v&&c>u+v&&c>e+v&&c>t+v||c<m-v&&c<u-v&&c<e-v&&c<t-v||o>b+v&&o>g+v&&o>a+v&&o>i+v||o<b-v&&o<g-v&&o<a-v&&o<i-v)return!1;var S=p.cubicProjectPoint(b,m,g,u,a,e,i,t,o,c,null);return S<=v/2}I.containStroke=k},33640:function(Y,I){function _(p,k,b,m,g,u,a){if(g===0)return!1;var e=g,i=0,t=p;if(a>k+e&&a>m+e||a<k-e&&a<m-e||u>p+e&&u>b+e||u<p-e&&u<b-e)return!1;if(p!==b)i=(k-m)/(p-b),t=(p*m-b*k)/(p-b);else return Math.abs(u-p)<=e/2;var r=i*u-a+t,o=r*r/(i*i+1);return o<=e/2*e/2}I.containStroke=_},85365:function(Y,I,_){var p=_(14014),k=_(33640),b=_(71972),m=_(25674),g=_(92334),u=_(3266),a=u.normalizeRadian,e=_(18554),i=_(47637),t=p.CMD,r=Math.PI*2,o=1e-4;function c(T,j){return Math.abs(T-j)<o}var v=[-1,-1,-1],S=[-1,-1];function M(){var T=S[0];S[0]=S[1],S[1]=T}function z(T,j,y,s,n,f,O,w,L,l){if(l>j&&l>s&&l>f&&l>w||l<j&&l<s&&l<f&&l<w)return 0;var x=e.cubicRootAt(j,s,f,w,l,v);if(x===0)return 0;for(var B=0,D=-1,N,U,W=0;W<x;W++){var H=v[W],h=H===0||H===1?.5:1,E=e.cubicAt(T,y,n,O,H);if(E<L)continue;D<0&&(D=e.cubicExtrema(j,s,f,w,S),S[1]<S[0]&&D>1&&M(),N=e.cubicAt(j,s,f,w,S[0]),D>1&&(U=e.cubicAt(j,s,f,w,S[1]))),D===2?H<S[0]?B+=N<j?h:-h:H<S[1]?B+=U<N?h:-h:B+=w<U?h:-h:H<S[0]?B+=N<j?h:-h:B+=w<N?h:-h}return B}function P(T,j,y,s,n,f,O,w){if(w>j&&w>s&&w>f||w<j&&w<s&&w<f)return 0;var L=e.quadraticRootAt(j,s,f,w,v);if(L===0)return 0;var l=e.quadraticExtremum(j,s,f);if(l>=0&&l<=1){for(var x=0,B=e.quadraticAt(j,s,f,l),D=0;D<L;D++){var N=v[D]===0||v[D]===1?.5:1,U=e.quadraticAt(T,y,n,v[D]);if(U<O)continue;v[D]<l?x+=B<j?N:-N:x+=f<B?N:-N}return x}else{var N=v[0]===0||v[0]===1?.5:1,U=e.quadraticAt(T,y,n,v[0]);return U<O?0:f<j?N:-N}}function C(T,j,y,s,n,f,O,w){if(w-=j,w>y||w<-y)return 0;var L=Math.sqrt(y*y-w*w);v[0]=-L,v[1]=L;var l=Math.abs(s-n);if(l<1e-4)return 0;if(l%r<1e-4){s=0,n=r;var x=f?1:-1;return O>=v[0]+T&&O<=v[1]+T?x:0}if(f){var L=s;s=a(n),n=a(L)}else s=a(s),n=a(n);s>n&&(n+=r);for(var B=0,D=0;D<2;D++){var N=v[D];if(N+T>O){var U=Math.atan2(w,N),x=f?1:-1;U<0&&(U=r+U),(U>=s&&U<=n||U+r>=s&&U+r<=n)&&(U>Math.PI/2&&U<Math.PI*1.5&&(x=-x),B+=x)}}return B}function F(T,j,y,s,n){for(var f=0,O=0,w=0,L=0,l=0,x=0;x<T.length;){var B=T[x++];B===t.M&&x>1&&(y||(f+=i(O,w,L,l,s,n))),x===1&&(O=T[x],w=T[x+1],L=O,l=w);switch(B){case t.M:L=T[x++],l=T[x++],O=L,w=l;break;case t.L:if(y){if(k.containStroke(O,w,T[x],T[x+1],j,s,n))return!0}else f+=i(O,w,T[x],T[x+1],s,n)||0;O=T[x++],w=T[x++];break;case t.C:if(y){if(b.containStroke(O,w,T[x++],T[x++],T[x++],T[x++],T[x],T[x+1],j,s,n))return!0}else f+=z(O,w,T[x++],T[x++],T[x++],T[x++],T[x],T[x+1],s,n)||0;O=T[x++],w=T[x++];break;case t.Q:if(y){if(m.containStroke(O,w,T[x++],T[x++],T[x],T[x+1],j,s,n))return!0}else f+=P(O,w,T[x++],T[x++],T[x],T[x+1],s,n)||0;O=T[x++],w=T[x++];break;case t.A:var D=T[x++],N=T[x++],U=T[x++],W=T[x++],H=T[x++],h=T[x++];x+=1;var E=1-T[x++],R=Math.cos(H)*U+D,X=Math.sin(H)*W+N;x>1?f+=i(O,w,R,X,s,n):(L=R,l=X);var V=(s-D)*W/U+D;if(y){if(g.containStroke(D,N,W,H,H+h,E,j,V,n))return!0}else f+=C(D,N,W,H,H+h,E,V,n);O=Math.cos(H+h)*U+D,w=Math.sin(H+h)*W+N;break;case t.R:L=O=T[x++],l=w=T[x++];var Z=T[x++],K=T[x++],R=L+Z,X=l+K;if(y){if(k.containStroke(L,l,R,l,j,s,n)||k.containStroke(R,l,R,X,j,s,n)||k.containStroke(R,X,L,X,j,s,n)||k.containStroke(L,X,L,l,j,s,n))return!0}else f+=i(R,l,R,X,s,n),f+=i(L,X,L,l,s,n);break;case t.Z:if(y){if(k.containStroke(O,w,L,l,j,s,n))return!0}else f+=i(O,w,L,l,s,n);O=L,w=l;break}}return!y&&!c(w,l)&&(f+=i(O,w,L,l,s,n)||0),f!==0}function d(T,j,y){return F(T,0,!1,j,y)}function A(T,j,y,s){return F(T,j,!0,y,s)}I.contain=d,I.containStroke=A},40765:function(Y,I,_){var p=_(47637),k=1e-8;function b(g,u){return Math.abs(g-u)<k}function m(g,u,a){var e=0,i=g[0];if(!i)return!1;for(var t=1;t<g.length;t++){var r=g[t];e+=p(i[0],i[1],r[0],r[1],u,a),i=r}var o=g[0];return(!b(i[0],o[0])||!b(i[1],o[1]))&&(e+=p(i[0],i[1],o[0],o[1],u,a)),e!==0}I.contain=m},25674:function(Y,I,_){var p=_(18554),k=p.quadraticProjectPoint;function b(m,g,u,a,e,i,t,r,o){if(t===0)return!1;var c=t;if(o>g+c&&o>a+c&&o>i+c||o<g-c&&o<a-c&&o<i-c||r>m+c&&r>u+c&&r>e+c||r<m-c&&r<u-c&&r<e-c)return!1;var v=k(m,g,u,a,e,i,r,o,null);return v<=c/2}I.containStroke=b},80423:function(Y,I,_){var p=_(60479),k=_(8007),b=_(33051),m=b.getContext,g=b.extend,u=b.retrieve2,a=b.retrieve3,e=b.trim,i={},t=0,r=5e3,o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,c="12px sans-serif",v={};function S(B,D){v[B]=D}function M(B,D){D=D||c;var N=B+":"+D;if(i[N])return i[N];for(var U=(B+"").split(`
|
|
`),W=0,H=0,h=U.length;H<h;H++)W=Math.max(O(U[H],D).width,W);return t>r&&(t=0,i={}),t++,i[N]=W,W}function z(B,D,N,U,W,H,h,E){return h?C(B,D,N,U,W,H,h,E):P(B,D,N,U,W,H,E)}function P(B,D,N,U,W,H,h){var E=w(B,D,W,H,h),R=M(B,D);W&&(R+=W[1]+W[3]);var X=E.outerHeight,V=F(0,R,N),Z=d(0,X,U),K=new p(V,Z,R,X);return K.lineHeight=E.lineHeight,K}function C(B,D,N,U,W,H,h,E){var R=L(B,{rich:h,truncate:E,font:D,textAlign:N,textPadding:W,textLineHeight:H}),X=R.outerWidth,V=R.outerHeight,Z=F(0,X,N),K=d(0,V,U);return new p(Z,K,X,V)}function F(B,D,N){return N==="right"?B-=D:N==="center"&&(B-=D/2),B}function d(B,D,N){return N==="middle"?B-=D/2:N==="bottom"&&(B-=D),B}function A(B,D,N){var U=D.textPosition,W=D.textDistance,H=N.x,h=N.y;W=W||0;var E=N.height,R=N.width,X=E/2,V="left",Z="top";switch(U){case"left":H-=W,h+=X,V="right",Z="middle";break;case"right":H+=W+R,h+=X,Z="middle";break;case"top":H+=R/2,h-=W,V="center",Z="bottom";break;case"bottom":H+=R/2,h+=E+W,V="center";break;case"inside":H+=R/2,h+=X,V="center",Z="middle";break;case"insideLeft":H+=W,h+=X,Z="middle";break;case"insideRight":H+=R-W,h+=X,V="right",Z="middle";break;case"insideTop":H+=R/2,h+=W,V="center";break;case"insideBottom":H+=R/2,h+=E-W,V="center",Z="bottom";break;case"insideTopLeft":H+=W,h+=W;break;case"insideTopRight":H+=R-W,h+=W,V="right";break;case"insideBottomLeft":H+=W,h+=E-W,Z="bottom";break;case"insideBottomRight":H+=R-W,h+=E-W,V="right",Z="bottom";break}return B=B||{},B.x=H,B.y=h,B.textAlign=V,B.textVerticalAlign=Z,B}function T(B,D,N){var U={textPosition:B,textDistance:N};return A({},U,D)}function j(B,D,N,U,W){if(!D)return"";var H=(B+"").split(`
|
|
`);W=y(D,N,U,W);for(var h=0,E=H.length;h<E;h++)H[h]=s(H[h],W);return H.join(`
|
|
`)}function y(B,D,N,U){U=g({},U),U.font=D;var N=u(N,"...");U.maxIterations=u(U.maxIterations,2);var W=U.minChar=u(U.minChar,0);U.cnCharWidth=M("\u56FD",D);var H=U.ascCharWidth=M("a",D);U.placeholder=u(U.placeholder,"");for(var h=B=Math.max(0,B-1),E=0;E<W&&h>=H;E++)h-=H;var R=M(N,D);return R>h&&(N="",R=0),h=B-R,U.ellipsis=N,U.ellipsisWidth=R,U.contentWidth=h,U.containerWidth=B,U}function s(B,D){var N=D.containerWidth,U=D.font,W=D.contentWidth;if(!N)return"";var H=M(B,U);if(H<=N)return B;for(var h=0;;h++){if(H<=W||h>=D.maxIterations){B+=D.ellipsis;break}var E=h===0?n(B,W,D.ascCharWidth,D.cnCharWidth):H>0?Math.floor(B.length*W/H):0;B=B.substr(0,E),H=M(B,U)}return B===""&&(B=D.placeholder),B}function n(B,D,N,U){for(var W=0,H=0,h=B.length;H<h&&W<D;H++){var E=B.charCodeAt(H);W+=0<=E&&E<=127?N:U}return H}function f(B){return M("\u56FD",B)}function O(B,D){return v.measureText(B,D)}v.measureText=function(B,D){var N=m();return N.font=D||c,N.measureText(B)};function w(B,D,N,U,W){B!=null&&(B+="");var H=u(U,f(D)),h=B?B.split(`
|
|
`):[],E=h.length*H,R=E,X=!0;if(N&&(R+=N[0]+N[2]),B&&W){X=!1;var V=W.outerHeight,Z=W.outerWidth;if(V!=null&&R>V)B="",h=[];else if(Z!=null)for(var K=y(Z-(N?N[1]+N[3]:0),D,W.ellipsis,{minChar:W.minChar,placeholder:W.placeholder}),ee=0,te=h.length;ee<te;ee++)h[ee]=s(h[ee],K)}return{lines:h,height:E,outerHeight:R,lineHeight:H,canCacheByTextString:X}}function L(B,D){var N={lines:[],width:0,height:0};if(B!=null&&(B+=""),!B)return N;for(var U=o.lastIndex=0,W;(W=o.exec(B))!=null;){var H=W.index;H>U&&l(N,B.substring(U,H)),l(N,W[2],W[1]),U=o.lastIndex}U<B.length&&l(N,B.substring(U,B.length));var h=N.lines,E=0,R=0,X=[],V=D.textPadding,Z=D.truncate,K=Z&&Z.outerWidth,ee=Z&&Z.outerHeight;V&&(K!=null&&(K-=V[1]+V[3]),ee!=null&&(ee-=V[0]+V[2]));for(var te=0;te<h.length;te++){for(var ue=h[te],le=0,he=0,G=0;G<ue.tokens.length;G++){var $=ue.tokens[G],re=$.styleName&&D.rich[$.styleName]||{},q=$.textPadding=re.textPadding,ne=$.font=re.font||D.font,de=$.textHeight=u(re.textHeight,f(ne));if(q&&(de+=q[0]+q[2]),$.height=de,$.lineHeight=a(re.textLineHeight,D.textLineHeight,de),$.textAlign=re&&re.textAlign||D.textAlign,$.textVerticalAlign=re&&re.textVerticalAlign||"middle",ee!=null&&E+$.lineHeight>ee)return{lines:[],width:0,height:0};$.textWidth=M($.text,ne);var Q=re.textWidth,J=Q==null||Q==="auto";if(typeof Q=="string"&&Q.charAt(Q.length-1)==="%")$.percentWidth=Q,X.push($),Q=0;else{if(J){Q=$.textWidth;var ae=re.textBackgroundColor,oe=ae&&ae.image;oe&&(oe=k.findExistImage(oe),k.isImageReady(oe)&&(Q=Math.max(Q,oe.width*de/oe.height)))}var ie=q?q[1]+q[3]:0;Q+=ie;var se=K!=null?K-he:null;se!=null&&se<Q&&(!J||se<ie?($.text="",$.textWidth=Q=0):($.text=j($.text,se-ie,ne,Z.ellipsis,{minChar:Z.minChar}),$.textWidth=M($.text,ne),Q=$.textWidth+ie))}he+=$.width=Q,re&&(le=Math.max(le,$.lineHeight))}ue.width=he,ue.lineHeight=le,E+=le,R=Math.max(R,he)}N.outerWidth=N.width=u(D.textWidth,R),N.outerHeight=N.height=u(D.textHeight,E),V&&(N.outerWidth+=V[1]+V[3],N.outerHeight+=V[0]+V[2]);for(var te=0;te<X.length;te++){var $=X[te],pe=$.percentWidth;$.width=parseInt(pe,10)/100*R}return N}function l(B,D,N){for(var U=D==="",W=D.split(`
|
|
`),H=B.lines,h=0;h<W.length;h++){var E=W[h],R={styleName:N,text:E,isLineHolder:!E&&!U};if(h)H.push({tokens:[R]});else{var X=(H[H.length-1]||(H[0]={tokens:[]})).tokens,V=X.length;V===1&&X[0].isLineHolder?X[0]=R:(E||!V||U)&&X.push(R)}}}function x(B){var D=(B.fontSize||B.fontFamily)&&[B.fontStyle,B.fontWeight,(B.fontSize||12)+"px",B.fontFamily||"sans-serif"].join(" ");return D&&e(D)||B.textFont||B.font}I.DEFAULT_FONT=c,I.$override=S,I.getWidth=M,I.getBoundingRect=z,I.adjustTextX=F,I.adjustTextY=d,I.calculateTextPosition=A,I.adjustTextPositionOnRect=T,I.truncateText=j,I.getLineHeight=f,I.measureText=O,I.parsePlainText=w,I.parseRichText=L,I.makeFont=x},3266:function(Y,I){var _=Math.PI*2;function p(k){return k%=_,k<0&&(k+=_),k}I.normalizeRadian=p},47637:function(Y){function I(_,p,k,b,m,g){if(g>p&&g>b||g<p&&g<b)return 0;if(b===p)return 0;var u=b<p?1:-1,a=(g-p)/(b-p);(a===1||a===0)&&(u=b<p?.5:-.5);var e=a*(k-_)+_;return e===m?Infinity:e>m?u:0}Y.exports=I},8524:function(Y,I,_){var p=_(33051),k=_(85823),b=_(60479),m=function(u){u=u||{},k.call(this,u);for(var a in u)u.hasOwnProperty(a)&&(this[a]=u[a]);this._children=[],this.__storage=null,this.__dirty=!0};m.prototype={constructor:m,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(u){return this._children[u]},childOfName:function(u){for(var a=this._children,e=0;e<a.length;e++)if(a[e].name===u)return a[e]},childCount:function(){return this._children.length},add:function(u){return u&&u!==this&&u.parent!==this&&(this._children.push(u),this._doAdd(u)),this},addBefore:function(u,a){if(u&&u!==this&&u.parent!==this&&a&&a.parent===this){var e=this._children,i=e.indexOf(a);i>=0&&(e.splice(i,0,u),this._doAdd(u))}return this},_doAdd:function(u){u.parent&&u.parent.remove(u),u.parent=this;var a=this.__storage,e=this.__zr;a&&a!==u.__storage&&(a.addToStorage(u),u instanceof m&&u.addChildrenToStorage(a)),e&&e.refresh()},remove:function(u){var a=this.__zr,e=this.__storage,i=this._children,t=p.indexOf(i,u);return t<0?this:(i.splice(t,1),u.parent=null,e&&(e.delFromStorage(u),u instanceof m&&u.delChildrenFromStorage(e)),a&&a.refresh(),this)},removeAll:function(){var u=this._children,a=this.__storage,e,i;for(i=0;i<u.length;i++)e=u[i],a&&(a.delFromStorage(e),e instanceof m&&e.delChildrenFromStorage(a)),e.parent=null;return u.length=0,this},eachChild:function(u,a){for(var e=this._children,i=0;i<e.length;i++){var t=e[i];u.call(a,t,i)}return this},traverse:function(u,a){for(var e=0;e<this._children.length;e++){var i=this._children[e];u.call(a,i),i.type==="group"&&i.traverse(u,a)}return this},addChildrenToStorage:function(u){for(var a=0;a<this._children.length;a++){var e=this._children[a];u.addToStorage(e),e instanceof m&&e.addChildrenToStorage(u)}},delChildrenFromStorage:function(u){for(var a=0;a<this._children.length;a++){var e=this._children[a];u.delFromStorage(e),e instanceof m&&e.delChildrenFromStorage(u)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(u){for(var a=null,e=new b(0,0,0,0),i=u||this._children,t=[],r=0;r<i.length;r++){var o=i[r];if(o.ignore||o.invisible)continue;var c=o.getBoundingRect(),v=o.getLocalTransform(t);v?(e.copy(c),e.applyTransform(v),a=a||e.clone(),a.union(e)):(a=a||c.clone(),a.union(c))}return a||e}},p.inherits(m,k);var g=m;Y.exports=g},60479:function(Y,I,_){var p=_(45280),k=_(32892),b=p.applyTransform,m=Math.min,g=Math.max;function u(e,i,t,r){t<0&&(e=e+t,t=-t),r<0&&(i=i+r,r=-r),this.x=e,this.y=i,this.width=t,this.height=r}u.prototype={constructor:u,union:function(e){var i=m(e.x,this.x),t=m(e.y,this.y);this.width=g(e.x+e.width,this.x+this.width)-i,this.height=g(e.y+e.height,this.y+this.height)-t,this.x=i,this.y=t},applyTransform:function(){var e=[],i=[],t=[],r=[];return function(o){if(!o)return;e[0]=t[0]=this.x,e[1]=r[1]=this.y,i[0]=r[0]=this.x+this.width,i[1]=t[1]=this.y+this.height,b(e,e,o),b(i,i,o),b(t,t,o),b(r,r,o),this.x=m(e[0],i[0],t[0],r[0]),this.y=m(e[1],i[1],t[1],r[1]);var c=g(e[0],i[0],t[0],r[0]),v=g(e[1],i[1],t[1],r[1]);this.width=c-this.x,this.height=v-this.y}}(),calculateTransform:function(e){var i=this,t=e.width/i.width,r=e.height/i.height,o=k.create();return k.translate(o,o,[-i.x,-i.y]),k.scale(o,o,[t,r]),k.translate(o,o,[e.x,e.y]),o},intersect:function(e){if(!e)return!1;e instanceof u||(e=u.create(e));var i=this,t=i.x,r=i.x+i.width,o=i.y,c=i.y+i.height,v=e.x,S=e.x+e.width,M=e.y,z=e.y+e.height;return!(r<v||S<t||c<M||z<o)},contain:function(e,i){var t=this;return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},clone:function(){return new u(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},u.create=function(e){return new u(e.x,e.y,e.width,e.height)};var a=u;Y.exports=a},49399:function(Y,I,_){var p=_(61158),k=function(){this._track=[]};k.prototype={constructor:k,recognize:function(a,e,i){return this._doTrack(a,e,i),this._recognize(a)},clear:function(){return this._track.length=0,this},_doTrack:function(a,e,i){var t=a.touches;if(!t)return;for(var r={points:[],touches:[],target:e,event:a},o=0,c=t.length;o<c;o++){var v=t[o],S=p.clientToLocal(i,v,{});r.points.push([S.zrX,S.zrY]),r.touches.push(v)}this._track.push(r)},_recognize:function(a){for(var e in g)if(g.hasOwnProperty(e)){var i=g[e](this._track,a);if(i)return i}}};function b(a){var e=a[1][0]-a[0][0],i=a[1][1]-a[0][1];return Math.sqrt(e*e+i*i)}function m(a){return[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]}var g={pinch:function(a,e){var i=a.length;if(!i)return;var t=(a[i-1]||{}).points,r=(a[i-2]||{}).points||t;if(r&&r.length>1&&t&&t.length>1){var o=b(t)/b(r);!isFinite(o)&&(o=1),e.pinchScale=o;var c=m(t);return e.pinchX=c[0],e.pinchY=c[1],{type:"pinch",target:a[0].target,event:e}}}},u=k;Y.exports=u},92528:function(Y){var I=function(){this.head=null,this.tail=null,this._len=0},_=I.prototype;_.insert=function(g){var u=new p(g);return this.insertEntry(u),u},_.insertEntry=function(g){this.head?(this.tail.next=g,g.prev=this.tail,g.next=null,this.tail=g):this.head=this.tail=g,this._len++},_.remove=function(g){var u=g.prev,a=g.next;u?u.next=a:this.head=a,a?a.prev=u:this.tail=u,g.next=g.prev=null,this._len--},_.len=function(){return this._len},_.clear=function(){this.head=this.tail=null,this._len=0};var p=function(g){this.value=g,this.next,this.prev},k=function(g){this._list=new I,this._map={},this._maxSize=g||10,this._lastRemovedEntry=null},b=k.prototype;b.put=function(g,u){var a=this._list,e=this._map,i=null;if(e[g]==null){var t=a.len(),r=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var o=a.head;a.remove(o),delete e[o.key],i=o.value,this._lastRemovedEntry=o}r?r.value=u:r=new p(u),r.key=g,a.insertEntry(r),e[g]=r}return i},b.get=function(g){var u=this._map[g],a=this._list;if(u!=null)return u!==a.tail&&(a.remove(u),a.insertEntry(u)),u.value},b.clear=function(){this._list.clear(),this._map={}};var m=k;Y.exports=m},14014:function(Y,I,_){var p=_(18554),k=_(45280),b=_(3726),m=_(60479),g=_(4990),u=g.devicePixelRatio,a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},e=[],i=[],t=[],r=[],o=Math.min,c=Math.max,v=Math.cos,S=Math.sin,M=Math.sqrt,z=Math.abs,P=typeof Float32Array!="undefined",C=function(d){this._saveData=!(d||!1),this._saveData&&(this.data=[]),this._ctx=null};C.prototype={constructor:C,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(d,A,T){T=T||0,this._ux=z(T/u/d)||0,this._uy=z(T/u/A)||0},getContext:function(){return this._ctx},beginPath:function(d){return this._ctx=d,d&&d.beginPath(),d&&(this.dpr=d.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(d,A){return this.addData(a.M,d,A),this._ctx&&this._ctx.moveTo(d,A),this._x0=d,this._y0=A,this._xi=d,this._yi=A,this},lineTo:function(d,A){var T=z(d-this._xi)>this._ux||z(A-this._yi)>this._uy||this._len<5;return this.addData(a.L,d,A),this._ctx&&T&&(this._needsDash()?this._dashedLineTo(d,A):this._ctx.lineTo(d,A)),T&&(this._xi=d,this._yi=A),this},bezierCurveTo:function(d,A,T,j,y,s){return this.addData(a.C,d,A,T,j,y,s),this._ctx&&(this._needsDash()?this._dashedBezierTo(d,A,T,j,y,s):this._ctx.bezierCurveTo(d,A,T,j,y,s)),this._xi=y,this._yi=s,this},quadraticCurveTo:function(d,A,T,j){return this.addData(a.Q,d,A,T,j),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(d,A,T,j):this._ctx.quadraticCurveTo(d,A,T,j)),this._xi=T,this._yi=j,this},arc:function(d,A,T,j,y,s){return this.addData(a.A,d,A,T,T,j,y-j,0,s?0:1),this._ctx&&this._ctx.arc(d,A,T,j,y,s),this._xi=v(y)*T+d,this._yi=S(y)*T+A,this},arcTo:function(d,A,T,j,y){return this._ctx&&this._ctx.arcTo(d,A,T,j,y),this},rect:function(d,A,T,j){return this._ctx&&this._ctx.rect(d,A,T,j),this.addData(a.R,d,A,T,j),this},closePath:function(){this.addData(a.Z);var d=this._ctx,A=this._x0,T=this._y0;return d&&(this._needsDash()&&this._dashedLineTo(A,T),d.closePath()),this._xi=A,this._yi=T,this},fill:function(d){d&&d.fill(),this.toStatic()},stroke:function(d){d&&d.stroke(),this.toStatic()},setLineDash:function(d){if(d instanceof Array){this._lineDash=d,this._dashIdx=0;for(var A=0,T=0;T<d.length;T++)A+=d[T];this._dashSum=A}return this},setLineDashOffset:function(d){return this._dashOffset=d,this},len:function(){return this._len},setData:function(d){var A=d.length;!(this.data&&this.data.length===A)&&P&&(this.data=new Float32Array(A));for(var T=0;T<A;T++)this.data[T]=d[T];this._len=A},appendPath:function(d){d instanceof Array||(d=[d]);for(var A=d.length,T=0,j=this._len,y=0;y<A;y++)T+=d[y].len();P&&this.data instanceof Float32Array&&(this.data=new Float32Array(j+T));for(var y=0;y<A;y++)for(var s=d[y].data,n=0;n<s.length;n++)this.data[j++]=s[n];this._len=j},addData:function(d){if(!this._saveData)return;var A=this.data;this._len+arguments.length>A.length&&(this._expandData(),A=this.data);for(var T=0;T<arguments.length;T++)A[this._len++]=arguments[T];this._prevCmd=d},_expandData:function(){if(!(this.data instanceof Array)){for(var d=[],A=0;A<this._len;A++)d[A]=this.data[A];this.data=d}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(d,A){var T=this._dashSum,j=this._dashOffset,y=this._lineDash,s=this._ctx,n=this._xi,f=this._yi,O=d-n,w=A-f,L=M(O*O+w*w),l=n,x=f,B,D=y.length,N;for(O/=L,w/=L,j<0&&(j=T+j),j%=T,l-=j*O,x-=j*w;O>0&&l<=d||O<0&&l>=d||O===0&&(w>0&&x<=A||w<0&&x>=A);){if(N=this._dashIdx,B=y[N],l+=O*B,x+=w*B,this._dashIdx=(N+1)%D,O>0&&l<n||O<0&&l>n||w>0&&x<f||w<0&&x>f)continue;s[N%2?"moveTo":"lineTo"](O>=0?o(l,d):c(l,d),w>=0?o(x,A):c(x,A))}O=l-d,w=x-A,this._dashOffset=-M(O*O+w*w)},_dashedBezierTo:function(d,A,T,j,y,s){var n=this._dashSum,f=this._dashOffset,O=this._lineDash,w=this._ctx,L=this._xi,l=this._yi,x,B,D,N=p.cubicAt,U=0,W=this._dashIdx,H=O.length,h,E,R=0;for(f<0&&(f=n+f),f%=n,x=0;x<1;x+=.1)B=N(L,d,T,y,x+.1)-N(L,d,T,y,x),D=N(l,A,j,s,x+.1)-N(l,A,j,s,x),U+=M(B*B+D*D);for(;W<H&&!(R+=O[W],R>f);W++);for(x=(R-f)/U;x<=1;)h=N(L,d,T,y,x),E=N(l,A,j,s,x),W%2?w.moveTo(h,E):w.lineTo(h,E),x+=O[W]/U,W=(W+1)%H;W%2!==0&&w.lineTo(y,s),B=y-h,D=s-E,this._dashOffset=-M(B*B+D*D)},_dashedQuadraticTo:function(d,A,T,j){var y=T,s=j;T=(T+2*d)/3,j=(j+2*A)/3,d=(this._xi+2*d)/3,A=(this._yi+2*A)/3,this._dashedBezierTo(d,A,T,j,y,s)},toStatic:function(){var d=this.data;d instanceof Array&&(d.length=this._len,P&&(this.data=new Float32Array(d)))},getBoundingRect:function(){e[0]=e[1]=t[0]=t[1]=Number.MAX_VALUE,i[0]=i[1]=r[0]=r[1]=-Number.MAX_VALUE;for(var d=this.data,A=0,T=0,j=0,y=0,s=0;s<d.length;){var n=d[s++];s===1&&(A=d[s],T=d[s+1],j=A,y=T);switch(n){case a.M:j=d[s++],y=d[s++],A=j,T=y,t[0]=j,t[1]=y,r[0]=j,r[1]=y;break;case a.L:b.fromLine(A,T,d[s],d[s+1],t,r),A=d[s++],T=d[s++];break;case a.C:b.fromCubic(A,T,d[s++],d[s++],d[s++],d[s++],d[s],d[s+1],t,r),A=d[s++],T=d[s++];break;case a.Q:b.fromQuadratic(A,T,d[s++],d[s++],d[s],d[s+1],t,r),A=d[s++],T=d[s++];break;case a.A:var f=d[s++],O=d[s++],w=d[s++],L=d[s++],l=d[s++],x=d[s++]+l;s+=1;var B=1-d[s++];s===1&&(j=v(l)*w+f,y=S(l)*L+O),b.fromArc(f,O,w,L,l,x,B,t,r),A=v(x)*w+f,T=S(x)*L+O;break;case a.R:j=A=d[s++],y=T=d[s++];var D=d[s++],N=d[s++];b.fromLine(j,y,j+D,y+N,t,r);break;case a.Z:A=j,T=y;break}k.min(e,e,t),k.max(i,i,r)}return s===0&&(e[0]=e[1]=i[0]=i[1]=0),new m(e[0],e[1],i[0]-e[0],i[1]-e[1])},rebuildPath:function(d){for(var A=this.data,T,j,y,s,n,f,O=this._ux,w=this._uy,L=this._len,l=0;l<L;){var x=A[l++];l===1&&(y=A[l],s=A[l+1],T=y,j=s);switch(x){case a.M:T=y=A[l++],j=s=A[l++],d.moveTo(y,s);break;case a.L:n=A[l++],f=A[l++],(z(n-y)>O||z(f-s)>w||l===L-1)&&(d.lineTo(n,f),y=n,s=f);break;case a.C:d.bezierCurveTo(A[l++],A[l++],A[l++],A[l++],A[l++],A[l++]),y=A[l-2],s=A[l-1];break;case a.Q:d.quadraticCurveTo(A[l++],A[l++],A[l++],A[l++]),y=A[l-2],s=A[l-1];break;case a.A:var B=A[l++],D=A[l++],N=A[l++],U=A[l++],W=A[l++],H=A[l++],h=A[l++],E=A[l++],R=N>U?N:U,X=N>U?1:N/U,V=N>U?U/N:1,Z=Math.abs(N-U)>.001,K=W+H;Z?(d.translate(B,D),d.rotate(h),d.scale(X,V),d.arc(0,0,R,W,K,1-E),d.scale(1/X,1/V),d.rotate(-h),d.translate(-B,-D)):d.arc(B,D,R,W,K,1-E),l===1&&(T=v(W)*N+B,j=S(W)*U+D),y=v(K)*N+B,s=S(K)*U+D;break;case a.R:T=y=A[l],j=s=A[l+1],d.rect(A[l++],A[l++],A[l++],A[l++]);break;case a.Z:d.closePath(),y=T,s=j}}}},C.CMD=a;var F=C;Y.exports=F},39351:function(Y){function I(){}I.prototype={diff:function(m,g,u){u||(u=function(P,C){return P===C}),this.equals=u;var a=this;m=m.slice(),g=g.slice();var e=g.length,i=m.length,t=1,r=e+i,o=[{newPos:-1,components:[]}],c=this.extractCommon(o[0],g,m,0);if(o[0].newPos+1>=e&&c+1>=i){for(var v=[],S=0;S<g.length;S++)v.push(S);return[{indices:v,count:g.length}]}function M(){for(var P=-1*t;P<=t;P+=2){var C,F=o[P-1],d=o[P+1],A=(d?d.newPos:0)-P;F&&(o[P-1]=void 0);var T=F&&F.newPos+1<e,j=d&&0<=A&&A<i;if(!T&&!j){o[P]=void 0;continue}if(!T||j&&F.newPos<d.newPos?(C=p(d),a.pushComponent(C.components,void 0,!0)):(C=F,C.newPos++,a.pushComponent(C.components,!0,void 0)),A=a.extractCommon(C,g,m,P),C.newPos+1>=e&&A+1>=i)return _(a,C.components,g,m);o[P]=C}t++}for(;t<=r;){var z=M();if(z)return z}},pushComponent:function(m,g,u){var a=m[m.length-1];a&&a.added===g&&a.removed===u?m[m.length-1]={count:a.count+1,added:g,removed:u}:m.push({count:1,added:g,removed:u})},extractCommon:function(m,g,u,a){for(var e=g.length,i=u.length,t=m.newPos,r=t-a,o=0;t+1<e&&r+1<i&&this.equals(g[t+1],u[r+1]);)t++,r++,o++;return o&&m.components.push({count:o}),m.newPos=t,r},tokenize:function(m){return m.slice()},join:function(m){return m.slice()}};function _(m,g,u,a){for(var e=0,i=g.length,t=0,r=0;e<i;e++){var o=g[e];if(o.removed){for(var c=[],v=r;v<r+o.count;v++)c.push(v);o.indices=c,r+=o.count}else{for(var c=[],v=t;v<t+o.count;v++)c.push(v);o.indices=c,t+=o.count,o.added||(r+=o.count)}}return g}function p(m){return{newPos:m.newPos,components:m.components.slice(0)}}var k=new I;function b(m,g,u){return k.diff(m,g,u)}Y.exports=b},3726:function(Y,I,_){var p=_(45280),k=_(18554),b=Math.min,m=Math.max,g=Math.sin,u=Math.cos,a=Math.PI*2,e=p.create(),i=p.create(),t=p.create();function r(P,C,F){if(P.length===0)return;var d=P[0],A=d[0],T=d[0],j=d[1],y=d[1],s;for(s=1;s<P.length;s++)d=P[s],A=b(A,d[0]),T=m(T,d[0]),j=b(j,d[1]),y=m(y,d[1]);C[0]=A,C[1]=j,F[0]=T,F[1]=y}function o(P,C,F,d,A,T){A[0]=b(P,F),A[1]=b(C,d),T[0]=m(P,F),T[1]=m(C,d)}var c=[],v=[];function S(P,C,F,d,A,T,j,y,s,n){var f=k.cubicExtrema,O=k.cubicAt,w,L=f(P,F,A,j,c);for(s[0]=Infinity,s[1]=Infinity,n[0]=-Infinity,n[1]=-Infinity,w=0;w<L;w++){var l=O(P,F,A,j,c[w]);s[0]=b(l,s[0]),n[0]=m(l,n[0])}for(L=f(C,d,T,y,v),w=0;w<L;w++){var x=O(C,d,T,y,v[w]);s[1]=b(x,s[1]),n[1]=m(x,n[1])}s[0]=b(P,s[0]),n[0]=m(P,n[0]),s[0]=b(j,s[0]),n[0]=m(j,n[0]),s[1]=b(C,s[1]),n[1]=m(C,n[1]),s[1]=b(y,s[1]),n[1]=m(y,n[1])}function M(P,C,F,d,A,T,j,y){var s=k.quadraticExtremum,n=k.quadraticAt,f=m(b(s(P,F,A),1),0),O=m(b(s(C,d,T),1),0),w=n(P,F,A,f),L=n(C,d,T,O);j[0]=b(P,A,w),j[1]=b(C,T,L),y[0]=m(P,A,w),y[1]=m(C,T,L)}function z(P,C,F,d,A,T,j,y,s){var n=p.min,f=p.max,O=Math.abs(A-T);if(O%a<1e-4&&O>1e-4){y[0]=P-F,y[1]=C-d,s[0]=P+F,s[1]=C+d;return}if(e[0]=u(A)*F+P,e[1]=g(A)*d+C,i[0]=u(T)*F+P,i[1]=g(T)*d+C,n(y,e,i),f(s,e,i),A=A%a,A<0&&(A=A+a),T=T%a,T<0&&(T=T+a),A>T&&!j?T+=a:A<T&&j&&(A+=a),j){var w=T;T=A,A=w}for(var L=0;L<T;L+=Math.PI/2)L>A&&(t[0]=u(L)*F+P,t[1]=g(L)*d+C,n(y,t,y),f(s,t,s))}I.fromPoints=r,I.fromLine=o,I.fromCubic=S,I.fromQuadratic=M,I.fromArc=z},18554:function(Y,I,_){var p=_(45280),k=p.create,b=p.distSquare,m=Math.pow,g=Math.sqrt,u=1e-8,a=1e-4,e=g(3),i=1/3,t=k(),r=k(),o=k();function c(n){return n>-u&&n<u}function v(n){return n>u||n<-u}function S(n,f,O,w,L){var l=1-L;return l*l*(l*n+3*L*f)+L*L*(L*w+3*l*O)}function M(n,f,O,w,L){var l=1-L;return 3*(((f-n)*l+2*(O-f)*L)*l+(w-O)*L*L)}function z(n,f,O,w,L,l){var x=w+3*(f-O)-n,B=3*(O-f*2+n),D=3*(f-n),N=n-L,U=B*B-3*x*D,W=B*D-9*x*N,H=D*D-3*B*N,h=0;if(c(U)&&c(W))if(c(B))l[0]=0;else{var E=-D/B;E>=0&&E<=1&&(l[h++]=E)}else{var R=W*W-4*U*H;if(c(R)){var X=W/U,E=-B/x+X,V=-X/2;E>=0&&E<=1&&(l[h++]=E),V>=0&&V<=1&&(l[h++]=V)}else if(R>0){var Z=g(R),K=U*B+1.5*x*(-W+Z),ee=U*B+1.5*x*(-W-Z);K<0?K=-m(-K,i):K=m(K,i),ee<0?ee=-m(-ee,i):ee=m(ee,i);var E=(-B-(K+ee))/(3*x);E>=0&&E<=1&&(l[h++]=E)}else{var te=(2*U*B-3*x*W)/(2*g(U*U*U)),ue=Math.acos(te)/3,le=g(U),he=Math.cos(ue),E=(-B-2*le*he)/(3*x),V=(-B+le*(he+e*Math.sin(ue)))/(3*x),G=(-B+le*(he-e*Math.sin(ue)))/(3*x);E>=0&&E<=1&&(l[h++]=E),V>=0&&V<=1&&(l[h++]=V),G>=0&&G<=1&&(l[h++]=G)}}return h}function P(n,f,O,w,L){var l=6*O-12*f+6*n,x=9*f+3*w-3*n-9*O,B=3*f-3*n,D=0;if(c(x)){if(v(l)){var N=-B/l;N>=0&&N<=1&&(L[D++]=N)}}else{var U=l*l-4*x*B;if(c(U))L[0]=-l/(2*x);else if(U>0){var W=g(U),N=(-l+W)/(2*x),H=(-l-W)/(2*x);N>=0&&N<=1&&(L[D++]=N),H>=0&&H<=1&&(L[D++]=H)}}return D}function C(n,f,O,w,L,l){var x=(f-n)*L+n,B=(O-f)*L+f,D=(w-O)*L+O,N=(B-x)*L+x,U=(D-B)*L+B,W=(U-N)*L+N;l[0]=n,l[1]=x,l[2]=N,l[3]=W,l[4]=W,l[5]=U,l[6]=D,l[7]=w}function F(n,f,O,w,L,l,x,B,D,N,U){var W,H=.005,h=Infinity,E,R,X,V;t[0]=D,t[1]=N;for(var Z=0;Z<1;Z+=.05)r[0]=S(n,O,L,x,Z),r[1]=S(f,w,l,B,Z),X=b(t,r),X<h&&(W=Z,h=X);h=Infinity;for(var K=0;K<32&&!(H<a);K++)E=W-H,R=W+H,r[0]=S(n,O,L,x,E),r[1]=S(f,w,l,B,E),X=b(r,t),E>=0&&X<h?(W=E,h=X):(o[0]=S(n,O,L,x,R),o[1]=S(f,w,l,B,R),V=b(o,t),R<=1&&V<h?(W=R,h=V):H*=.5);return U&&(U[0]=S(n,O,L,x,W),U[1]=S(f,w,l,B,W)),g(h)}function d(n,f,O,w){var L=1-w;return L*(L*n+2*w*f)+w*w*O}function A(n,f,O,w){return 2*((1-w)*(f-n)+w*(O-f))}function T(n,f,O,w,L){var l=n-2*f+O,x=2*(f-n),B=n-w,D=0;if(c(l)){if(v(x)){var N=-B/x;N>=0&&N<=1&&(L[D++]=N)}}else{var U=x*x-4*l*B;if(c(U)){var N=-x/(2*l);N>=0&&N<=1&&(L[D++]=N)}else if(U>0){var W=g(U),N=(-x+W)/(2*l),H=(-x-W)/(2*l);N>=0&&N<=1&&(L[D++]=N),H>=0&&H<=1&&(L[D++]=H)}}return D}function j(n,f,O){var w=n+O-2*f;return w===0?.5:(n-f)/w}function y(n,f,O,w,L){var l=(f-n)*w+n,x=(O-f)*w+f,B=(x-l)*w+l;L[0]=n,L[1]=l,L[2]=B,L[3]=B,L[4]=x,L[5]=O}function s(n,f,O,w,L,l,x,B,D){var N,U=.005,W=Infinity;t[0]=x,t[1]=B;for(var H=0;H<1;H+=.05){r[0]=d(n,O,L,H),r[1]=d(f,w,l,H);var h=b(t,r);h<W&&(N=H,W=h)}W=Infinity;for(var E=0;E<32&&!(U<a);E++){var R=N-U,X=N+U;r[0]=d(n,O,L,R),r[1]=d(f,w,l,R);var h=b(r,t);if(R>=0&&h<W)N=R,W=h;else{o[0]=d(n,O,L,X),o[1]=d(f,w,l,X);var V=b(o,t);X<=1&&V<W?(N=X,W=V):U*=.5}}return D&&(D[0]=d(n,O,L,N),D[1]=d(f,w,l,N)),g(W)}I.cubicAt=S,I.cubicDerivativeAt=M,I.cubicRootAt=z,I.cubicExtrema=P,I.cubicSubdivide=C,I.cubicProjectPoint=F,I.quadraticAt=d,I.quadraticDerivativeAt=A,I.quadraticRootAt=T,I.quadraticExtremum=j,I.quadraticSubdivide=y,I.quadraticProjectPoint=s},18553:function(Y,I,_){var p=_(66387),k=_(28711),b=k.buildTransformer,m="___zrEVENTSAVED",g=[];function u(r,o,c,v,S){return a(g,o,v,S,!0)&&a(r,c,g[0],g[1])}function a(r,o,c,v,S){if(o.getBoundingClientRect&&p.domSupported&&!t(o)){var M=o[m]||(o[m]={}),z=e(o,M),P=i(z,M,S);if(P)return P(r,c,v),!0}return!1}function e(r,o){var c=o.markers;if(c)return c;c=o.markers=[];for(var v=["left","right"],S=["top","bottom"],M=0;M<4;M++){var z=document.createElement("div"),P=z.style,C=M%2,F=(M>>1)%2;P.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",v[C]+":0",S[F]+":0",v[1-C]+":auto",S[1-F]+":auto",""].join("!important;"),r.appendChild(z),c.push(z)}return c}function i(r,o,c){for(var v=c?"invTrans":"trans",S=o[v],M=o.srcCoords,z=!0,P=[],C=[],F=0;F<4;F++){var d=r[F].getBoundingClientRect(),A=2*F,T=d.left,j=d.top;P.push(T,j),z=z&&M&&T===M[A]&&j===M[A+1],C.push(r[F].offsetLeft,r[F].offsetTop)}return z&&S?S:(o.srcCoords=P,o[v]=c?b(C,P):b(P,C))}function t(r){return r.nodeName.toUpperCase()==="CANVAS"}I.transformLocalCoord=u,I.transformCoordWithViewport=a,I.isCanvasEl=t},66387:function(Y){var I={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?I={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?I={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?I={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:I=p(navigator.userAgent);var _=I;function p(k){var b={},m={},g=k.match(/Firefox\/([\d.]+)/),u=k.match(/MSIE\s([\d.]+)/)||k.match(/Trident\/.+?rv:(([\d.]+))/),a=k.match(/Edge\/([\d.]+)/),e=/micromessenger/i.test(k);return g&&(m.firefox=!0,m.version=g[1]),u&&(m.ie=!0,m.version=u[1]),a&&(m.edge=!0,m.version=a[1]),e&&(m.weChat=!0),{browser:m,os:b,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!m.ie&&!m.edge,pointerEventsSupported:"onpointerdown"in window&&(m.edge||m.ie&&m.version>=11),domSupported:typeof document!="undefined"}}Y.exports=_},61158:function(Y,I,_){var p=_(41502);I.Dispatcher=p;var k=_(66387),b=_(18553),m=b.isCanvasEl,g=b.transformCoordWithViewport,u=typeof window!="undefined"&&!!window.addEventListener,a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,e=[];function i(P,C,F,d){return F=F||{},d||!k.canvasSupported?t(P,C,F):k.browser.firefox&&C.layerX!=null&&C.layerX!==C.offsetX?(F.zrX=C.layerX,F.zrY=C.layerY):C.offsetX!=null?(F.zrX=C.offsetX,F.zrY=C.offsetY):t(P,C,F),F}function t(P,C,F){if(k.domSupported&&P.getBoundingClientRect){var d=C.clientX,A=C.clientY;if(m(P)){var T=P.getBoundingClientRect();F.zrX=d-T.left,F.zrY=A-T.top;return}else if(g(e,P,d,A)){F.zrX=e[0],F.zrY=e[1];return}}F.zrX=F.zrY=0}function r(P){return P||window.event}function o(P,C,F){if(C=r(C),C.zrX!=null)return C;var d=C.type,A=d&&d.indexOf("touch")>=0;if(!A)i(P,C,C,F),C.zrDelta=C.wheelDelta?C.wheelDelta/120:-(C.detail||0)/3;else{var T=d!=="touchend"?C.targetTouches[0]:C.changedTouches[0];T&&i(P,T,C,F)}var j=C.button;return C.which==null&&j!==void 0&&a.test(C.type)&&(C.which=j&1?1:j&2?3:j&4?2:0),C}function c(P,C,F,d){u?P.addEventListener(C,F,d):P.attachEvent("on"+C,F)}function v(P,C,F,d){u?P.removeEventListener(C,F,d):P.detachEvent("on"+C,F)}var S=u?function(P){P.preventDefault(),P.stopPropagation(),P.cancelBubble=!0}:function(P){P.returnValue=!1,P.cancelBubble=!0};function M(P){return P.which===2||P.which===3}function z(P){return P.which>1}I.clientToLocal=i,I.getNativeEvent=r,I.normalizeEvent=o,I.addEventListener=c,I.removeEventListener=v,I.stop=S,I.isMiddleOrRightButtonOnMouseUpDown=M,I.notLeftMouse=z},28711:function(Y,I){var _=Math.log(2);function p(b,m,g,u,a,e){var i=u+"-"+a,t=b.length;if(e.hasOwnProperty(i))return e[i];if(m===1){var r=Math.round(Math.log((1<<t)-1&~a)/_);return b[g][r]}for(var o=u|1<<g,c=g+1;u&1<<c;)c++;for(var v=0,S=0,M=0;S<t;S++){var z=1<<S;z&a||(v+=(M%2?-1:1)*b[g][S]*p(b,m-1,c,o,a|z,e),M++)}return e[i]=v,v}function k(b,m){var g=[[b[0],b[1],1,0,0,0,-m[0]*b[0],-m[0]*b[1]],[0,0,0,b[0],b[1],1,-m[1]*b[0],-m[1]*b[1]],[b[2],b[3],1,0,0,0,-m[2]*b[2],-m[2]*b[3]],[0,0,0,b[2],b[3],1,-m[3]*b[2],-m[3]*b[3]],[b[4],b[5],1,0,0,0,-m[4]*b[4],-m[4]*b[5]],[0,0,0,b[4],b[5],1,-m[5]*b[4],-m[5]*b[5]],[b[6],b[7],1,0,0,0,-m[6]*b[6],-m[6]*b[7]],[0,0,0,b[6],b[7],1,-m[7]*b[6],-m[7]*b[7]]],u={},a=p(g,8,0,0,0,u);if(a===0)return;for(var e=[],i=0;i<8;i++)for(var t=0;t<8;t++)e[t]==null&&(e[t]=0),e[t]+=((i+t)%2?-1:1)*p(g,7,i===0?1:0,1<<i,1<<t,u)/a*m[i];return function(r,o,c){var v=o*e[6]+c*e[7]+1;r[0]=(o*e[0]+c*e[1]+e[2])/v,r[1]=(o*e[3]+c*e[4]+e[5])/v}}I.buildTransformer=k},78038:function(Y){var I=2311;function _(){return I++}Y.exports=_},48612:function(Y,I,_){var p=_(4990),k=p.debugMode,b=function(){};k===1&&(b=console.error);var m=b;Y.exports=m},32892:function(Y,I){var _=typeof Float32Array=="undefined"?Array:Float32Array;function p(){var t=new _(6);return k(t),t}function k(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function b(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t}function m(t,r,o){var c=r[0]*o[0]+r[2]*o[1],v=r[1]*o[0]+r[3]*o[1],S=r[0]*o[2]+r[2]*o[3],M=r[1]*o[2]+r[3]*o[3],z=r[0]*o[4]+r[2]*o[5]+r[4],P=r[1]*o[4]+r[3]*o[5]+r[5];return t[0]=c,t[1]=v,t[2]=S,t[3]=M,t[4]=z,t[5]=P,t}function g(t,r,o){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4]+o[0],t[5]=r[5]+o[1],t}function u(t,r,o){var c=r[0],v=r[2],S=r[4],M=r[1],z=r[3],P=r[5],C=Math.sin(o),F=Math.cos(o);return t[0]=c*F+M*C,t[1]=-c*C+M*F,t[2]=v*F+z*C,t[3]=-v*C+F*z,t[4]=F*S+C*P,t[5]=F*P-C*S,t}function a(t,r,o){var c=o[0],v=o[1];return t[0]=r[0]*c,t[1]=r[1]*v,t[2]=r[2]*c,t[3]=r[3]*v,t[4]=r[4]*c,t[5]=r[5]*v,t}function e(t,r){var o=r[0],c=r[2],v=r[4],S=r[1],M=r[3],z=r[5],P=o*M-S*c;return P?(P=1/P,t[0]=M*P,t[1]=-S*P,t[2]=-c*P,t[3]=o*P,t[4]=(c*z-M*v)*P,t[5]=(S*v-o*z)*P,t):null}function i(t){var r=p();return b(r,t),r}I.create=p,I.identity=k,I.copy=b,I.mul=m,I.translate=g,I.rotate=u,I.scale=a,I.invert=e,I.clone=i},19455:function(Y){var I=32,_=7,p=256;function k(t){for(var r=0;t>=I;)r|=t&1,t>>=1;return t+r}function b(t,r,o,c){var v=r+1;if(v===o)return 1;if(c(t[v++],t[r])<0){for(;v<o&&c(t[v],t[v-1])<0;)v++;m(t,r,v)}else for(;v<o&&c(t[v],t[v-1])>=0;)v++;return v-r}function m(t,r,o){for(o--;r<o;){var c=t[r];t[r++]=t[o],t[o--]=c}}function g(t,r,o,c,v){for(c===r&&c++;c<o;c++){for(var S=t[c],M=r,z=c,P;M<z;)P=M+z>>>1,v(S,t[P])<0?z=P:M=P+1;var C=c-M;switch(C){case 3:t[M+3]=t[M+2];case 2:t[M+2]=t[M+1];case 1:t[M+1]=t[M];break;default:for(;C>0;)t[M+C]=t[M+C-1],C--}t[M]=S}}function u(t,r,o,c,v,S){var M=0,z=0,P=1;if(S(t,r[o+v])>0){for(z=c-v;P<z&&S(t,r[o+v+P])>0;)M=P,P=(P<<1)+1,P<=0&&(P=z);P>z&&(P=z),M+=v,P+=v}else{for(z=v+1;P<z&&S(t,r[o+v-P])<=0;)M=P,P=(P<<1)+1,P<=0&&(P=z);P>z&&(P=z);var C=M;M=v-P,P=v-C}for(M++;M<P;){var F=M+(P-M>>>1);S(t,r[o+F])>0?M=F+1:P=F}return P}function a(t,r,o,c,v,S){var M=0,z=0,P=1;if(S(t,r[o+v])<0){for(z=v+1;P<z&&S(t,r[o+v-P])<0;)M=P,P=(P<<1)+1,P<=0&&(P=z);P>z&&(P=z);var C=M;M=v-P,P=v-C}else{for(z=c-v;P<z&&S(t,r[o+v+P])>=0;)M=P,P=(P<<1)+1,P<=0&&(P=z);P>z&&(P=z),M+=v,P+=v}for(M++;M<P;){var F=M+(P-M>>>1);S(t,r[o+F])<0?P=F:M=F+1}return P}function e(t,r){var o=_,c=0,v=p,S=0,M,z,P=0;c=t.length,c<2*p&&(v=c>>>1);var C=[];S=c<120?5:c<1542?10:c<119151?19:40,M=[],z=[];function F(s,n){M[P]=s,z[P]=n,P+=1}function d(){for(;P>1;){var s=P-2;if(s>=1&&z[s-1]<=z[s]+z[s+1]||s>=2&&z[s-2]<=z[s]+z[s-1])z[s-1]<z[s+1]&&s--;else if(z[s]>z[s+1])break;T(s)}}function A(){for(;P>1;){var s=P-2;s>0&&z[s-1]<z[s+1]&&s--,T(s)}}function T(s){var n=M[s],f=z[s],O=M[s+1],w=z[s+1];z[s]=f+w,s===P-3&&(M[s+1]=M[s+2],z[s+1]=z[s+2]),P--;var L=a(t[O],t,n,f,0,r);if(n+=L,f-=L,f===0)return;if(w=u(t[n+f-1],t,O,w,w-1,r),w===0)return;f<=w?j(n,f,O,w):y(n,f,O,w)}function j(s,n,f,O){var w=0;for(w=0;w<n;w++)C[w]=t[s+w];var L=0,l=f,x=s;if(t[x++]=t[l++],--O===0){for(w=0;w<n;w++)t[x+w]=C[L+w];return}if(n===1){for(w=0;w<O;w++)t[x+w]=t[l+w];t[x+O]=C[L];return}for(var B=o,D,N,U;;){D=0,N=0,U=!1;do if(r(t[l],C[L])<0){if(t[x++]=t[l++],N++,D=0,--O===0){U=!0;break}}else if(t[x++]=C[L++],D++,N=0,--n===1){U=!0;break}while((D|N)<B);if(U)break;do{if(D=a(t[l],C,L,n,0,r),D!==0){for(w=0;w<D;w++)t[x+w]=C[L+w];if(x+=D,L+=D,n-=D,n<=1){U=!0;break}}if(t[x++]=t[l++],--O===0){U=!0;break}if(N=u(C[L],t,l,O,0,r),N!==0){for(w=0;w<N;w++)t[x+w]=t[l+w];if(x+=N,l+=N,O-=N,O===0){U=!0;break}}if(t[x++]=C[L++],--n===1){U=!0;break}B--}while(D>=_||N>=_);if(U)break;B<0&&(B=0),B+=2}if(o=B,o<1&&(o=1),n===1){for(w=0;w<O;w++)t[x+w]=t[l+w];t[x+O]=C[L]}else{if(n===0)throw new Error;for(w=0;w<n;w++)t[x+w]=C[L+w]}}function y(s,n,f,O){var w=0;for(w=0;w<O;w++)C[w]=t[f+w];var L=s+n-1,l=O-1,x=f+O-1,B=0,D=0;if(t[x--]=t[L--],--n===0){for(B=x-(O-1),w=0;w<O;w++)t[B+w]=C[w];return}if(O===1){for(x-=n,L-=n,D=x+1,B=L+1,w=n-1;w>=0;w--)t[D+w]=t[B+w];t[x]=C[l];return}for(var N=o;;){var U=0,W=0,H=!1;do if(r(C[l],t[L])<0){if(t[x--]=t[L--],U++,W=0,--n===0){H=!0;break}}else if(t[x--]=C[l--],W++,U=0,--O===1){H=!0;break}while((U|W)<N);if(H)break;do{if(U=n-a(C[l],t,s,n,n-1,r),U!==0){for(x-=U,L-=U,n-=U,D=x+1,B=L+1,w=U-1;w>=0;w--)t[D+w]=t[B+w];if(n===0){H=!0;break}}if(t[x--]=C[l--],--O===1){H=!0;break}if(W=O-u(t[L],C,0,O,O-1,r),W!==0){for(x-=W,l-=W,O-=W,D=x+1,B=l+1,w=0;w<W;w++)t[D+w]=C[B+w];if(O<=1){H=!0;break}}if(t[x--]=t[L--],--n===0){H=!0;break}N--}while(U>=_||W>=_);if(H)break;N<0&&(N=0),N+=2}if(o=N,o<1&&(o=1),O===1){for(x-=n,L-=n,D=x+1,B=L+1,w=n-1;w>=0;w--)t[D+w]=t[B+w];t[x]=C[l]}else{if(O===0)throw new Error;for(B=x-(O-1),w=0;w<O;w++)t[B+w]=C[w]}}this.mergeRuns=d,this.forceMergeRuns=A,this.pushRun=F}function i(t,r,o,c){o||(o=0),c||(c=t.length);var v=c-o;if(v<2)return;var S=0;if(v<I){S=b(t,o,c,r),g(t,o,c,o+S,r);return}var M=new e(t,r),z=k(v);do{if(S=b(t,o,c,r),S<z){var P=v;P>z&&(P=z),g(t,o,o+P,o+S,r),S=P}M.pushRun(o,S),M.mergeRuns(),v-=S,o+=S}while(v!==0);M.forceMergeRuns()}Y.exports=i},33051:function(Y,I){var _={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},p={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},k=Object.prototype.toString,b=Array.prototype,m=b.forEach,g=b.filter,u=b.slice,a=b.map,e=b.reduce,i={};function t(G,$){G==="createCanvas"&&(z=null),i[G]=$}function r(G){if(G==null||typeof G!="object")return G;var $=G,re=k.call(G);if(re==="[object Array]"){if(!ee(G)){$=[];for(var q=0,ne=G.length;q<ne;q++)$[q]=r(G[q])}}else if(p[re]){if(!ee(G)){var de=G.constructor;if(G.constructor.from)$=de.from(G);else{$=new de(G.length);for(var q=0,ne=G.length;q<ne;q++)$[q]=r(G[q])}}}else if(!_[re]&&!ee(G)&&!N(G)){$={};for(var Q in G)G.hasOwnProperty(Q)&&($[Q]=r(G[Q]))}return $}function o(G,$,re){if(!x($)||!x(G))return re?r($):G;for(var q in $)if($.hasOwnProperty(q)){var ne=G[q],de=$[q];x(de)&&x(ne)&&!w(de)&&!w(ne)&&!N(de)&&!N(ne)&&!B(de)&&!B(ne)&&!ee(de)&&!ee(ne)?o(ne,de,re):(re||!(q in G))&&(G[q]=r($[q],!0))}return G}function c(G,$){for(var re=G[0],q=1,ne=G.length;q<ne;q++)re=o(re,G[q],$);return re}function v(G,$){for(var re in $)$.hasOwnProperty(re)&&(G[re]=$[re]);return G}function S(G,$,re){for(var q in $)$.hasOwnProperty(q)&&(re?$[q]!=null:G[q]==null)&&(G[q]=$[q]);return G}var M=function(){return i.createCanvas()};i.createCanvas=function(){return document.createElement("canvas")};var z;function P(){return z||(z=M().getContext("2d")),z}function C(G,$){if(G){if(G.indexOf)return G.indexOf($);for(var re=0,q=G.length;re<q;re++)if(G[re]===$)return re}return-1}function F(G,$){var re=G.prototype;function q(){}q.prototype=$.prototype,G.prototype=new q;for(var ne in re)re.hasOwnProperty(ne)&&(G.prototype[ne]=re[ne]);G.prototype.constructor=G,G.superClass=$}function d(G,$,re){G="prototype"in G?G.prototype:G,$="prototype"in $?$.prototype:$,S(G,$,re)}function A(G){return G?typeof G=="string"?!1:typeof G.length=="number":void 0}function T(G,$,re){if(!(G&&$))return;if(G.forEach&&G.forEach===m)G.forEach($,re);else if(G.length===+G.length)for(var q=0,ne=G.length;q<ne;q++)$.call(re,G[q],q,G);else for(var de in G)G.hasOwnProperty(de)&&$.call(re,G[de],de,G)}function j(G,$,re){if(!(G&&$))return;if(G.map&&G.map===a)return G.map($,re);for(var q=[],ne=0,de=G.length;ne<de;ne++)q.push($.call(re,G[ne],ne,G));return q}function y(G,$,re,q){if(!(G&&$))return;if(G.reduce&&G.reduce===e)return G.reduce($,re,q);for(var ne=0,de=G.length;ne<de;ne++)re=$.call(q,re,G[ne],ne,G);return re}function s(G,$,re){if(!(G&&$))return;if(G.filter&&G.filter===g)return G.filter($,re);for(var q=[],ne=0,de=G.length;ne<de;ne++)$.call(re,G[ne],ne,G)&&q.push(G[ne]);return q}function n(G,$,re){if(!(G&&$))return;for(var q=0,ne=G.length;q<ne;q++)if($.call(re,G[q],q,G))return G[q]}function f(G,$){var re=u.call(arguments,2);return function(){return G.apply($,re.concat(u.call(arguments)))}}function O(G){var $=u.call(arguments,1);return function(){return G.apply(this,$.concat(u.call(arguments)))}}function w(G){return k.call(G)==="[object Array]"}function L(G){return typeof G=="function"}function l(G){return k.call(G)==="[object String]"}function x(G){var $=typeof G;return $==="function"||!!G&&$==="object"}function B(G){return!!_[k.call(G)]}function D(G){return!!p[k.call(G)]}function N(G){return typeof G=="object"&&typeof G.nodeType=="number"&&typeof G.ownerDocument=="object"}function U(G){return G!==G}function W(G){for(var $=0,re=arguments.length;$<re;$++)if(arguments[$]!=null)return arguments[$]}function H(G,$){return G!=null?G:$}function h(G,$,re){return G!=null?G:$!=null?$:re}function E(){return Function.call.apply(u,arguments)}function R(G){if(typeof G=="number")return[G,G,G,G];var $=G.length;return $===2?[G[0],G[1],G[0],G[1]]:$===3?[G[0],G[1],G[2],G[1]]:G}function X(G,$){if(!G)throw new Error($)}function V(G){return G==null?null:typeof G.trim=="function"?G.trim():G.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Z="__ec_primitive__";function K(G){G[Z]=!0}function ee(G){return G[Z]}function te(G){var $=w(G);this.data={};var re=this;G instanceof te?G.each(q):G&&T(G,q);function q(ne,de){$?re.set(ne,de):re.set(de,ne)}}te.prototype={constructor:te,get:function(G){return this.data.hasOwnProperty(G)?this.data[G]:null},set:function(G,$){return this.data[G]=$},each:function(G,$){$!==void 0&&(G=f(G,$));for(var re in this.data)this.data.hasOwnProperty(re)&&G(this.data[re],re)},removeKey:function(G){delete this.data[G]}};function ue(G){return new te(G)}function le(G,$){for(var re=new G.constructor(G.length+$.length),q=0;q<G.length;q++)re[q]=G[q];var ne=G.length;for(q=0;q<$.length;q++)re[q+ne]=$[q];return re}function he(){}I.$override=t,I.clone=r,I.merge=o,I.mergeAll=c,I.extend=v,I.defaults=S,I.createCanvas=M,I.getContext=P,I.indexOf=C,I.inherits=F,I.mixin=d,I.isArrayLike=A,I.each=T,I.map=j,I.reduce=y,I.filter=s,I.find=n,I.bind=f,I.curry=O,I.isArray=w,I.isFunction=L,I.isString=l,I.isObject=x,I.isBuiltInObject=B,I.isTypedArray=D,I.isDom=N,I.eqNaN=U,I.retrieve=W,I.retrieve2=H,I.retrieve3=h,I.slice=E,I.normalizeCssArray=R,I.assert=X,I.trim=V,I.setAsPrimitive=K,I.isPrimitive=ee,I.createHashMap=ue,I.concatArray=le,I.noop=he},45280:function(Y,I){var _=typeof Float32Array=="undefined"?Array:Float32Array;function p(s,n){var f=new _(2);return s==null&&(s=0),n==null&&(n=0),f[0]=s,f[1]=n,f}function k(s,n){return s[0]=n[0],s[1]=n[1],s}function b(s){var n=new _(2);return n[0]=s[0],n[1]=s[1],n}function m(s,n,f){return s[0]=n,s[1]=f,s}function g(s,n,f){return s[0]=n[0]+f[0],s[1]=n[1]+f[1],s}function u(s,n,f,O){return s[0]=n[0]+f[0]*O,s[1]=n[1]+f[1]*O,s}function a(s,n,f){return s[0]=n[0]-f[0],s[1]=n[1]-f[1],s}function e(s){return Math.sqrt(t(s))}var i=e;function t(s){return s[0]*s[0]+s[1]*s[1]}var r=t;function o(s,n,f){return s[0]=n[0]*f[0],s[1]=n[1]*f[1],s}function c(s,n,f){return s[0]=n[0]/f[0],s[1]=n[1]/f[1],s}function v(s,n){return s[0]*n[0]+s[1]*n[1]}function S(s,n,f){return s[0]=n[0]*f,s[1]=n[1]*f,s}function M(s,n){var f=e(n);return f===0?(s[0]=0,s[1]=0):(s[0]=n[0]/f,s[1]=n[1]/f),s}function z(s,n){return Math.sqrt((s[0]-n[0])*(s[0]-n[0])+(s[1]-n[1])*(s[1]-n[1]))}var P=z;function C(s,n){return(s[0]-n[0])*(s[0]-n[0])+(s[1]-n[1])*(s[1]-n[1])}var F=C;function d(s,n){return s[0]=-n[0],s[1]=-n[1],s}function A(s,n,f,O){return s[0]=n[0]+O*(f[0]-n[0]),s[1]=n[1]+O*(f[1]-n[1]),s}function T(s,n,f){var O=n[0],w=n[1];return s[0]=f[0]*O+f[2]*w+f[4],s[1]=f[1]*O+f[3]*w+f[5],s}function j(s,n,f){return s[0]=Math.min(n[0],f[0]),s[1]=Math.min(n[1],f[1]),s}function y(s,n,f){return s[0]=Math.max(n[0],f[0]),s[1]=Math.max(n[1],f[1]),s}I.create=p,I.copy=k,I.clone=b,I.set=m,I.add=g,I.scaleAndAdd=u,I.sub=a,I.len=e,I.length=i,I.lenSquare=t,I.lengthSquare=r,I.mul=o,I.div=c,I.dot=v,I.scale=S,I.normalize=M,I.distance=z,I.dist=P,I.distanceSquare=C,I.distSquare=F,I.negate=d,I.lerp=A,I.applyTransform=T,I.min=j,I.max=y},85546:function(Y,I,_){var p=_(61158),k=p.addEventListener,b=p.removeEventListener,m=p.normalizeEvent,g=p.getNativeEvent,u=_(33051),a=_(41502),e=_(66387),i=300,t=e.domSupported,r=function(){var l=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=["touchstart","touchend","touchmove"],B={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},D=u.map(l,function(N){var U=N.replace("mouse","pointer");return B.hasOwnProperty(U)?U:N});return{mouse:l,touch:x,pointer:D}}(),o={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function c(l){return l==="mousewheel"&&e.browser.firefox?"DOMMouseScroll":l}function v(l){var x=l.pointerType;return x==="pen"||x==="touch"}function S(l){l.touching=!0,l.touchTimer!=null&&(clearTimeout(l.touchTimer),l.touchTimer=null),l.touchTimer=setTimeout(function(){l.touching=!1,l.touchTimer=null},700)}function M(l){l&&(l.zrByTouch=!0)}function z(l,x){return m(l.dom,new C(l,x),!0)}function P(l,x){for(var B=x,D=!1;B&&B.nodeType!==9&&!(D=B.domBelongToZr||B!==x&&B===l.painterRoot);)B=B.parentNode;return D}function C(l,x){this.type=x.type,this.target=this.currentTarget=l.dom,this.pointerType=x.pointerType,this.clientX=x.clientX,this.clientY=x.clientY}var F=C.prototype;F.stopPropagation=F.stopImmediatePropagation=F.preventDefault=u.noop;var d={mousedown:function(l){l=m(this.dom,l),this._mayPointerCapture=[l.zrX,l.zrY],this.trigger("mousedown",l)},mousemove:function(l){l=m(this.dom,l);var x=this._mayPointerCapture;x&&(l.zrX!==x[0]||l.zrY!==x[1])&&n(this,!0),this.trigger("mousemove",l)},mouseup:function(l){l=m(this.dom,l),n(this,!1),this.trigger("mouseup",l)},mouseout:function(l){l=m(this.dom,l),this._pointerCapturing&&(l.zrEventControl="no_globalout");var x=l.toElement||l.relatedTarget;l.zrIsToLocalDOM=P(this,x),this.trigger("mouseout",l)},touchstart:function(l){l=m(this.dom,l),M(l),this._lastTouchMoment=new Date,this.handler.processGesture(l,"start"),d.mousemove.call(this,l),d.mousedown.call(this,l)},touchmove:function(l){l=m(this.dom,l),M(l),this.handler.processGesture(l,"change"),d.mousemove.call(this,l)},touchend:function(l){l=m(this.dom,l),M(l),this.handler.processGesture(l,"end"),d.mouseup.call(this,l),+new Date-this._lastTouchMoment<i&&d.click.call(this,l)},pointerdown:function(l){d.mousedown.call(this,l)},pointermove:function(l){v(l)||d.mousemove.call(this,l)},pointerup:function(l){d.mouseup.call(this,l)},pointerout:function(l){v(l)||d.mouseout.call(this,l)}};u.each(["click","mousewheel","dblclick","contextmenu"],function(l){d[l]=function(x){x=m(this.dom,x),this.trigger(l,x)}});var A={pointermove:function(l){v(l)||A.mousemove.call(this,l)},pointerup:function(l){A.mouseup.call(this,l)},mousemove:function(l){this.trigger("mousemove",l)},mouseup:function(l){var x=this._pointerCapturing;n(this,!1),this.trigger("mouseup",l),x&&(l.zrEventControl="only_globalout",this.trigger("mouseout",l))}};function T(l,x){var B=x.domHandlers;e.pointerEventsSupported?u.each(r.pointer,function(D){y(x,D,function(N){B[D].call(l,N)})}):(e.touchEventsSupported&&u.each(r.touch,function(D){y(x,D,function(N){B[D].call(l,N),S(x)})}),u.each(r.mouse,function(D){y(x,D,function(N){N=g(N),x.touching||B[D].call(l,N)})}))}function j(l,x){e.pointerEventsSupported?u.each(o.pointer,B):e.touchEventsSupported||u.each(o.mouse,B);function B(D){function N(U){U=g(U),P(l,U.target)||(U=z(l,U),x.domHandlers[D].call(l,U))}y(x,D,N,{capture:!0})}}function y(l,x,B,D){l.mounted[x]=B,l.listenerOpts[x]=D,k(l.domTarget,c(x),B,D)}function s(l){var x=l.mounted;for(var B in x)x.hasOwnProperty(B)&&b(l.domTarget,c(B),x[B],l.listenerOpts[B]);l.mounted={}}function n(l,x){if(l._mayPointerCapture=null,t&&l._pointerCapturing^x){l._pointerCapturing=x;var B=l._globalHandlerScope;x?j(l,B):s(B)}}function f(l,x){this.domTarget=l,this.domHandlers=x,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function O(l,x){a.call(this),this.dom=l,this.painterRoot=x,this._localHandlerScope=new f(l,d),t&&(this._globalHandlerScope=new f(document,A)),this._pointerCapturing=!1,this._mayPointerCapture=null,T(this,this._localHandlerScope)}var w=O.prototype;w.dispose=function(){s(this._localHandlerScope),t&&s(this._globalHandlerScope)},w.setCursor=function(l){this.dom.style&&(this.dom.style.cursor=l||"default")},u.mixin(O,a);var L=O;Y.exports=L},52776:function(Y,I,_){var p=_(10712),k=p.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var b=this.__dirtyPath,m=this.shape.paths,g=0;g<m.length;g++)b=b||m[g].__dirtyPath;this.__dirtyPath=b,this.__dirty=this.__dirty||b},beforeBrush:function(){this._updatePathDirty();for(var b=this.shape.paths||[],m=this.getGlobalScale(),g=0;g<b.length;g++)b[g].path||b[g].createPathProxy(),b[g].path.setScale(m[0],m[1],b[g].segmentIgnoreThreshold)},buildPath:function(b,m){for(var g=m.paths||[],u=0;u<g.length;u++)g[u].buildPath(b,g[u].shape,!0)},afterBrush:function(){for(var b=this.shape.paths||[],m=0;m<b.length;m++)b[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),p.prototype.getBoundingRect.call(this)}});Y.exports=k},7719:function(Y,I,_){var p=_(33051),k=_(40342),b=_(85823),m=_(41406);function g(a){a=a||{},b.call(this,a);for(var e in a)a.hasOwnProperty(e)&&e!=="style"&&(this[e]=a[e]);this.style=new k(a.style,this),this._rect=null,this.__clipPaths=null}g.prototype={constructor:g,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(a){},afterBrush:function(a){},brush:function(a,e){},getBoundingRect:function(){},contain:function(a,e){return this.rectContain(a,e)},traverse:function(a,e){a.call(e,this)},rectContain:function(a,e){var i=this.transformCoordToLocal(a,e),t=this.getBoundingRect();return t.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(a){return this.animate("style",a)},attrKV:function(a,e){a!=="style"?b.prototype.attrKV.call(this,a,e):this.style.set(e)},setStyle:function(a,e){return this.style.set(a,e),this.dirty(!1),this},useStyle:function(a){return this.style=new k(a,this),this.dirty(!1),this},calculateTextPosition:null},p.inherits(g,b),p.mixin(g,m);var u=g;Y.exports=u},31797:function(Y){var I=function(p){this.colorStops=p||[]};I.prototype={constructor:I,addColorStop:function(p,k){this.colorStops.push({offset:p,color:k})}};var _=I;Y.exports=_},44535:function(Y,I,_){var p=_(7719),k=_(60479),b=_(33051),m=_(8007);function g(a){p.call(this,a)}g.prototype={constructor:g,type:"image",brush:function(a,e){var i=this.style,t=i.image;i.bind(a,this,e);var r=this._image=m.createOrUpdateImage(t,this._image,this,this.onload);if(!r||!m.isImageReady(r))return;var o=i.x||0,c=i.y||0,v=i.width,S=i.height,M=r.width/r.height;if(v==null&&S!=null?v=S*M:S==null&&v!=null?S=v/M:v==null&&S==null&&(v=r.width,S=r.height),this.setTransform(a),i.sWidth&&i.sHeight){var z=i.sx||0,P=i.sy||0;a.drawImage(r,z,P,i.sWidth,i.sHeight,o,c,v,S)}else if(i.sx&&i.sy){var z=i.sx,P=i.sy,C=v-z,F=S-P;a.drawImage(r,z,P,C,F,o,c,v,S)}else a.drawImage(r,o,c,v,S);i.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},getBoundingRect:function(){var a=this.style;return this._rect||(this._rect=new k(a.x||0,a.y||0,a.width||0,a.height||0)),this._rect}},b.inherits(g,p);var u=g;Y.exports=u},91754:function(Y,I,_){var p=_(33051),k=p.inherits,b=_(7719),m=_(60479);function g(e){b.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}g.prototype.incremental=!0,g.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},g.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},g.prototype.addDisplayables=function(e,i){i=i||!1;for(var t=0;t<e.length;t++)this.addDisplayable(e[t],i)},g.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},g.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},g.prototype.brush=function(e,i){for(var t=this._cursor;t<this._displayables.length;t++){var r=this._displayables[t];r.beforeBrush&&r.beforeBrush(e),r.brush(e,t===this._cursor?null:this._displayables[t-1]),r.afterBrush&&r.afterBrush(e)}this._cursor=t;for(var t=0;t<this._temporaryDisplayables.length;t++){var r=this._temporaryDisplayables[t];r.beforeBrush&&r.beforeBrush(e),r.brush(e,t===0?null:this._temporaryDisplayables[t-1]),r.afterBrush&&r.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var u=[];g.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new m(Infinity,Infinity,-Infinity,-Infinity),i=0;i<this._displayables.length;i++){var t=this._displayables[i],r=t.getBoundingRect().clone();t.needLocalTransform()&&r.applyTransform(t.getLocalTransform(u)),e.union(r)}this._rect=e}return this._rect},g.prototype.contain=function(e,i){var t=this.transformCoordToLocal(e,i),r=this.getBoundingRect();if(r.contain(t[0],t[1]))for(var o=0;o<this._displayables.length;o++){var c=this._displayables[o];if(c.contain(e,i))return!0}return!1},k(g,b);var a=g;Y.exports=a},74438:function(Y,I,_){var p=_(33051),k=_(31797),b=function(g,u,a,e,i,t){this.x=g==null?0:g,this.y=u==null?0:u,this.x2=a==null?1:a,this.y2=e==null?0:e,this.type="linear",this.global=t||!1,k.call(this,i)};b.prototype={constructor:b},p.inherits(b,k);var m=b;Y.exports=m},10712:function(Y,I,_){var p=_(7719),k=_(33051),b=_(14014),m=_(85365),g=_(31870),u=g.prototype.getCanvasPattern,a=Math.abs,e=new b(!0);function i(r){p.call(this,r),this.path=null}i.prototype={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(r,o){var c=this.style,v=this.path||e,S=c.hasStroke(),M=c.hasFill(),z=c.fill,P=c.stroke,C=M&&!!z.colorStops,F=S&&!!P.colorStops,d=M&&!!z.image,A=S&&!!P.image;if(c.bind(r,this,o),this.setTransform(r),this.__dirty){var T;C&&(T=T||this.getBoundingRect(),this._fillGradient=c.getGradient(r,z,T)),F&&(T=T||this.getBoundingRect(),this._strokeGradient=c.getGradient(r,P,T))}C?r.fillStyle=this._fillGradient:d&&(r.fillStyle=u.call(z,r)),F?r.strokeStyle=this._strokeGradient:A&&(r.strokeStyle=u.call(P,r));var j=c.lineDash,y=c.lineDashOffset,s=!!r.setLineDash,n=this.getGlobalScale();if(v.setScale(n[0],n[1],this.segmentIgnoreThreshold),this.__dirtyPath||j&&!s&&S?(v.beginPath(r),j&&!s&&(v.setLineDash(j),v.setLineDashOffset(y)),this.buildPath(v,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(r.beginPath(),this.path.rebuildPath(r)),M)if(c.fillOpacity!=null){var f=r.globalAlpha;r.globalAlpha=c.fillOpacity*c.opacity,v.fill(r),r.globalAlpha=f}else v.fill(r);if(j&&s&&(r.setLineDash(j),r.lineDashOffset=y),S)if(c.strokeOpacity!=null){var f=r.globalAlpha;r.globalAlpha=c.strokeOpacity*c.opacity,v.stroke(r),r.globalAlpha=f}else v.stroke(r);j&&s&&r.setLineDash([]),c.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},buildPath:function(r,o,c){},createPathProxy:function(){this.path=new b},getBoundingRect:function(){var r=this._rect,o=this.style,c=!r;if(c){var v=this.path;v||(v=this.path=new b),this.__dirtyPath&&(v.beginPath(),this.buildPath(v,this.shape,!1)),r=v.getBoundingRect()}if(this._rect=r,o.hasStroke()){var S=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||c){S.copy(r);var M=o.lineWidth,z=o.strokeNoScale?this.getLineScale():1;o.hasFill()||(M=Math.max(M,this.strokeContainThreshold||4)),z>1e-10&&(S.width+=M/z,S.height+=M/z,S.x-=M/z/2,S.y-=M/z/2)}return S}return r},contain:function(r,o){var c=this.transformCoordToLocal(r,o),v=this.getBoundingRect(),S=this.style;if(r=c[0],o=c[1],v.contain(r,o)){var M=this.path.data;if(S.hasStroke()){var z=S.lineWidth,P=S.strokeNoScale?this.getLineScale():1;if(P>1e-10&&(S.hasFill()||(z=Math.max(z,this.strokeContainThreshold)),m.containStroke(M,z/P,r,o)))return!0}if(S.hasFill())return m.contain(M,r,o)}return!1},dirty:function(r){r==null&&(r=!0),r&&(this.__dirtyPath=r,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(r){return this.animate("shape",r)},attrKV:function(r,o){r==="shape"?(this.setShape(o),this.__dirtyPath=!0,this._rect=null):p.prototype.attrKV.call(this,r,o)},setShape:function(r,o){var c=this.shape;if(c){if(k.isObject(r))for(var v in r)r.hasOwnProperty(v)&&(c[v]=r[v]);else c[r]=o;this.dirty(!0)}return this},getLineScale:function(){var r=this.transform;return r&&a(r[0]-1)>1e-10&&a(r[3]-1)>1e-10?Math.sqrt(a(r[0]*r[3]-r[2]*r[1])):1}},i.extend=function(r){var o=function(v){i.call(this,v),r.style&&this.style.extendFrom(r.style,!1);var S=r.shape;if(S){this.shape=this.shape||{};var M=this.shape;for(var z in S)!M.hasOwnProperty(z)&&S.hasOwnProperty(z)&&(M[z]=S[z])}r.init&&r.init.call(this,v)};k.inherits(o,i);for(var c in r)c!=="style"&&c!=="shape"&&(o.prototype[c]=r[c]);return o},k.inherits(i,p);var t=i;Y.exports=t},31870:function(Y){var I=function(p,k){this.image=p,this.repeat=k,this.type="pattern"};I.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var _=I;Y.exports=_},36369:function(Y,I,_){var p=_(33051),k=_(31797),b=function(g,u,a,e,i){this.x=g==null?.5:g,this.y=u==null?.5:u,this.r=a==null?.5:a,this.type="radial",this.global=i||!1,k.call(this,e)};b.prototype={constructor:b},p.inherits(b,k);var m=b;Y.exports=m},40342:function(Y,I,_){var p=_(61260),k=_(71131),b=k.ContextCachedBy,m=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],g=function(o){this.extendFrom(o,!1)};function u(o,c,v){var S=c.x==null?0:c.x,M=c.x2==null?1:c.x2,z=c.y==null?0:c.y,P=c.y2==null?0:c.y2;c.global||(S=S*v.width+v.x,M=M*v.width+v.x,z=z*v.height+v.y,P=P*v.height+v.y),S=isNaN(S)?0:S,M=isNaN(M)?1:M,z=isNaN(z)?0:z,P=isNaN(P)?0:P;var C=o.createLinearGradient(S,z,M,P);return C}function a(o,c,v){var S=v.width,M=v.height,z=Math.min(S,M),P=c.x==null?.5:c.x,C=c.y==null?.5:c.y,F=c.r==null?.5:c.r;c.global||(P=P*S+v.x,C=C*M+v.y,F=F*z);var d=o.createRadialGradient(P,C,0,P,C,F);return d}g.prototype={constructor:g,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(o,c,v){var S=this,M=v&&v.style,z=!M||o.__attrCachedBy!==b.STYLE_BIND;o.__attrCachedBy=b.STYLE_BIND;for(var P=0;P<m.length;P++){var C=m[P],F=C[0];(z||S[F]!==M[F])&&(o[F]=p(o,F,S[F]||C[1]))}if((z||S.fill!==M.fill)&&(o.fillStyle=S.fill),(z||S.stroke!==M.stroke)&&(o.strokeStyle=S.stroke),(z||S.opacity!==M.opacity)&&(o.globalAlpha=S.opacity==null?1:S.opacity),(z||S.blend!==M.blend)&&(o.globalCompositeOperation=S.blend||"source-over"),this.hasStroke()){var d=S.lineWidth;o.lineWidth=d/(this.strokeNoScale&&c&&c.getLineScale?c.getLineScale():1)}},hasFill:function(){var o=this.fill;return o!=null&&o!=="none"},hasStroke:function(){var o=this.stroke;return o!=null&&o!=="none"&&this.lineWidth>0},extendFrom:function(o,c){if(o)for(var v in o)o.hasOwnProperty(v)&&(c===!0||(c===!1?!this.hasOwnProperty(v):o[v]!=null))&&(this[v]=o[v])},set:function(o,c){typeof o=="string"?this[o]=c:this.extendFrom(o,!0)},clone:function(){var o=new this.constructor;return o.extendFrom(this,!0),o},getGradient:function(o,c,v){for(var S=c.type==="radial"?a:u,M=S(o,c,v),z=c.colorStops,P=0;P<z.length;P++)M.addColorStop(z[P].offset,z[P].color);return M}};for(var e=g.prototype,i=0;i<m.length;i++){var t=m[i];t[0]in e||(e[t[0]]=t[1])}g.getGradient=e.getGradient;var r=g;Y.exports=r},96498:function(Y,I,_){var p=_(7719),k=_(33051),b=_(80423),m=_(98886),g=_(71131),u=g.ContextCachedBy,a=function(i){p.call(this,i)};a.prototype={constructor:a,type:"text",brush:function(i,t){var r=this.style;this.__dirty&&m.normalizeTextStyle(r,!0),r.fill=r.stroke=r.shadowBlur=r.shadowColor=r.shadowOffsetX=r.shadowOffsetY=null;var o=r.text;if(o!=null&&(o+=""),!m.needDrawText(o,r)){i.__attrCachedBy=u.NONE;return}this.setTransform(i),m.renderText(this,i,o,r,null,t),this.restoreTransform(i)},getBoundingRect:function(){var i=this.style;if(this.__dirty&&m.normalizeTextStyle(i,!0),!this._rect){var t=i.text;t!=null?t+="":t="";var r=b.getBoundingRect(i.text+"",i.font,i.textAlign,i.textVerticalAlign,i.textPadding,i.textLineHeight,i.rich);if(r.x+=i.x||0,r.y+=i.y||0,m.getStroke(i.textStroke,i.textStrokeWidth)){var o=i.textStrokeWidth;r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o}this._rect=r}return this._rect}},k.inherits(a,p);var e=a;Y.exports=e},71131:function(Y,I){var _={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},p=9;I.ContextCachedBy=_,I.WILL_BE_RESTORED=p},60873:function(Y,I,_){var p=_(66387),k=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function b(m){return p.browser.ie&&p.browser.version>=11?function(){var g=this.__clipPaths,u=this.style,a;if(g)for(var e=0;e<g.length;e++){var i=g[e],t=i&&i.shape,r=i&&i.type;if(t&&(r==="sector"&&t.startAngle===t.endAngle||r==="rect"&&(!t.width||!t.height))){for(var o=0;o<k.length;o++)k[o][2]=u[k[o][0]],u[k[o][0]]=k[o][1];a=!0;break}}if(m.apply(this,arguments),a)for(var o=0;o<k.length;o++)u[k[o][0]]=k[o][2]}:m}Y.exports=b},61260:function(Y){var I={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function _(p,k,b){return I.hasOwnProperty(k)?b*=p.dpr:b}Y.exports=_},8007:function(Y,I,_){var p=_(92528),k=new p(50);function b(a){if(typeof a=="string"){var e=k.get(a);return e&&e.image}else return a}function m(a,e,i,t,r){if(a)if(typeof a=="string"){if(e&&e.__zrImageSrc===a||!i)return e;var o=k.get(a),c={hostEl:i,cb:t,cbPayload:r};return o?(e=o.image,!u(e)&&o.pending.push(c)):(e=new Image,e.onload=e.onerror=g,k.put(a,e.__cachedImgObj={image:e,pending:[c]}),e.src=e.__zrImageSrc=a),e}else return a;else return e}function g(){var a=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<a.pending.length;e++){var i=a.pending[e],t=i.cb;t&&t(this,i.cbPayload),i.hostEl.dirty()}a.pending.length=0}function u(a){return a&&a.width&&a.height}I.findExistImage=b,I.createOrUpdateImage=m,I.isImageReady=u},79209:function(Y,I,_){var p=_(31847),k=_(96005);function b(m,g,u){var a=g.points,e=g.smooth;if(a&&a.length>=2){if(e&&e!=="spline"){var i=k(a,e,u,g.smoothConstraint);m.moveTo(a[0][0],a[0][1]);for(var t=a.length,r=0;r<(u?t:t-1);r++){var o=i[r*2],c=i[r*2+1],v=a[(r+1)%t];m.bezierCurveTo(o[0],o[1],c[0],c[1],v[0],v[1])}}else{e==="spline"&&(a=p(a,u)),m.moveTo(a[0][0],a[0][1]);for(var r=1,S=a.length;r<S;r++)m.lineTo(a[r][0],a[r][1])}u&&m.closePath()}}I.buildPath=b},48988:function(Y,I){function _(p,k){var b=k.x,m=k.y,g=k.width,u=k.height,a=k.r,e,i,t,r;g<0&&(b=b+g,g=-g),u<0&&(m=m+u,u=-u),typeof a=="number"?e=i=t=r=a:a instanceof Array?a.length===1?e=i=t=r=a[0]:a.length===2?(e=t=a[0],i=r=a[1]):a.length===3?(e=a[0],i=r=a[1],t=a[2]):(e=a[0],i=a[1],t=a[2],r=a[3]):e=i=t=r=0;var o;e+i>g&&(o=e+i,e*=g/o,i*=g/o),t+r>g&&(o=t+r,t*=g/o,r*=g/o),i+t>u&&(o=i+t,i*=u/o,t*=u/o),e+r>u&&(o=e+r,e*=u/o,r*=u/o),p.moveTo(b+e,m),p.lineTo(b+g-i,m),i!==0&&p.arc(b+g-i,m+i,i,-Math.PI/2,0),p.lineTo(b+g,m+u-t),t!==0&&p.arc(b+g-t,m+u-t,t,0,Math.PI/2),p.lineTo(b+r,m+u),r!==0&&p.arc(b+r,m+u-r,r,Math.PI/2,Math.PI),p.lineTo(b,m+e),e!==0&&p.arc(b+e,m+e,e,Math.PI,Math.PI*1.5)}I.buildPath=_},96005:function(Y,I,_){var p=_(45280),k=p.min,b=p.max,m=p.scale,g=p.distance,u=p.add,a=p.clone,e=p.sub;function i(t,r,o,c){var v=[],S=[],M=[],z=[],P,C,F,d;if(c){F=[Infinity,Infinity],d=[-Infinity,-Infinity];for(var A=0,T=t.length;A<T;A++)k(F,F,t[A]),b(d,d,t[A]);k(F,F,c[0]),b(d,d,c[1])}for(var A=0,T=t.length;A<T;A++){var j=t[A];if(o)P=t[A?A-1:T-1],C=t[(A+1)%T];else if(A===0||A===T-1){v.push(a(t[A]));continue}else P=t[A-1],C=t[A+1];e(S,C,P),m(S,S,r);var y=g(j,P),s=g(j,C),n=y+s;n!==0&&(y/=n,s/=n),m(M,S,-y),m(z,S,s);var f=u([],j,M),O=u([],j,z);c&&(b(f,f,F),k(f,f,d),b(O,O,F),k(O,O,d)),v.push(f),v.push(O)}return o&&v.push(v.shift()),v}Y.exports=i},31847:function(Y,I,_){var p=_(45280),k=p.distance;function b(g,u,a,e,i,t,r){var o=(a-g)*.5,c=(e-u)*.5;return(2*(u-a)+o+c)*r+(-3*(u-a)-2*o-c)*t+o*i+u}function m(g,u){for(var a=g.length,e=[],i=0,t=1;t<a;t++)i+=k(g[t-1],g[t]);var r=i/2;r=r<a?a:r;for(var t=0;t<r;t++){var o=t/(r-1)*(u?a:a-1),c=Math.floor(o),v=o-c,S,M=g[c%a],z,P;u?(S=g[(c-1+a)%a],z=g[(c+1)%a],P=g[(c+2)%a]):(S=g[c===0?c:c-1],z=g[c>a-2?a-1:c+1],P=g[c>a-3?a-1:c+2]);var C=v*v,F=v*C;e.push([b(S[0],M[0],z[0],P[0],v,C,F),b(S[1],M[1],z[1],P[1],v,C,F)])}return e}Y.exports=m},24111:function(Y,I){var _=Math.round;function p(m,g,u){if(!g)return;var a=g.x1,e=g.x2,i=g.y1,t=g.y2;m.x1=a,m.x2=e,m.y1=i,m.y2=t;var r=u&&u.lineWidth;if(!r)return;_(a*2)===_(e*2)&&(m.x1=m.x2=b(a,r,!0)),_(i*2)===_(t*2)&&(m.y1=m.y2=b(i,r,!0))}function k(m,g,u){if(!g)return;var a=g.x,e=g.y,i=g.width,t=g.height;m.x=a,m.y=e,m.width=i,m.height=t;var r=u&&u.lineWidth;if(!r)return;m.x=b(a,r,!0),m.y=b(e,r,!0),m.width=Math.max(b(a+i,r,!1)-m.x,i===0?0:1),m.height=Math.max(b(e+t,r,!1)-m.y,t===0?0:1)}function b(m,g,u){if(!g)return m;var a=_(m*2);return(a+_(g))%2===0?a/2:(a+(u?1:-1))/2}I.subPixelOptimizeLine=p,I.subPixelOptimizeRect=k,I.subPixelOptimize=b},98886:function(Y,I,_){var p=_(33051),k=p.retrieve2,b=p.retrieve3,m=p.each,g=p.normalizeCssArray,u=p.isString,a=p.isObject,e=_(80423),i=_(48988),t=_(8007),r=_(61260),o=_(71131),c=o.ContextCachedBy,v=o.WILL_BE_RESTORED,S=e.DEFAULT_FONT,M={left:1,right:1,center:1},z={top:1,bottom:1,middle:1},P=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],C={},F={};function d(H){return A(H),m(H.rich,A),H}function A(H){if(H){H.font=e.makeFont(H);var h=H.textAlign;h==="middle"&&(h="center"),H.textAlign=h==null||M[h]?h:"left";var E=H.textVerticalAlign||H.textBaseline;E==="center"&&(E="middle"),H.textVerticalAlign=E==null||z[E]?E:"top";var R=H.textPadding;R&&(H.textPadding=g(H.textPadding))}}function T(H,h,E,R,X,V){R.rich?y(H,h,E,R,X,V):j(H,h,E,R,X,V)}function j(H,h,E,R,X,V){"use strict";var Z=O(R),K,ee=!1,te=h.__attrCachedBy===c.PLAIN_TEXT;V!==v?(V&&(K=V.style,ee=!Z&&te&&K),h.__attrCachedBy=Z?c.NONE:c.PLAIN_TEXT):te&&(h.__attrCachedBy=c.NONE);var ue=R.font||S;(!ee||ue!==(K.font||S))&&(h.font=ue);var le=H.__computedFont;H.__styleFont!==ue&&(H.__styleFont=ue,le=H.__computedFont=h.font);var he=R.textPadding,G=R.textLineHeight,$=H.__textCotentBlock;(!$||H.__dirtyText)&&($=H.__textCotentBlock=e.parsePlainText(E,le,he,G,R.truncate));var re=$.outerHeight,q=$.lines,ne=$.lineHeight,de=l(F,H,R,X),Q=de.baseX,J=de.baseY,ae=de.textAlign||"left",oe=de.textVerticalAlign;n(h,R,X,Q,J);var ie=e.adjustTextY(J,re,oe),se=Q,pe=ie;if(Z||he){var ve=e.getWidth(E,le),be=ve;he&&(be+=he[1]+he[3]);var we=e.adjustTextX(Q,be,ae);Z&&w(H,h,R,we,ie,be,re),he&&(se=U(Q,ae,he),pe+=he[0])}h.textAlign=ae,h.textBaseline="middle",h.globalAlpha=R.opacity||1;for(var ce=0;ce<P.length;ce++){var fe=P[ce],ye=fe[0],xe=fe[1],ge=R[ye];(!ee||ge!==K[ye])&&(h[xe]=r(h,xe,ge||fe[2]))}pe+=ne/2;var De=R.textStrokeWidth,Me=ee?K.textStrokeWidth:null,Se=!ee||De!==Me,ze=!ee||Se||R.textStroke!==K.textStroke,Ce=B(R.textStroke,De),Ae=D(R.textFill);if(Ce&&(Se&&(h.lineWidth=De),ze&&(h.strokeStyle=Ce)),Ae&&((!ee||R.textFill!==K.textFill)&&(h.fillStyle=Ae)),q.length===1)Ce&&h.strokeText(q[0],se,pe),Ae&&h.fillText(q[0],se,pe);else for(var ce=0;ce<q.length;ce++)Ce&&h.strokeText(q[ce],se,pe),Ae&&h.fillText(q[ce],se,pe),pe+=ne}function y(H,h,E,R,X,V){V!==v&&(h.__attrCachedBy=c.NONE);var Z=H.__textCotentBlock;(!Z||H.__dirtyText)&&(Z=H.__textCotentBlock=e.parseRichText(E,R)),s(H,h,Z,R,X)}function s(H,h,E,R,X){var V=E.width,Z=E.outerWidth,K=E.outerHeight,ee=R.textPadding,te=l(F,H,R,X),ue=te.baseX,le=te.baseY,he=te.textAlign,G=te.textVerticalAlign;n(h,R,X,ue,le);var $=e.adjustTextX(ue,Z,he),re=e.adjustTextY(le,K,G),q=$,ne=re;ee&&(q+=ee[3],ne+=ee[0]);var de=q+V;O(R)&&w(H,h,R,$,re,Z,K);for(var Q=0;Q<E.lines.length;Q++){for(var J=E.lines[Q],ae=J.tokens,oe=ae.length,ie=J.lineHeight,se=J.width,pe=0,ve=q,be=de,we=oe-1,ce;pe<oe&&(ce=ae[pe],!ce.textAlign||ce.textAlign==="left");)f(H,h,ce,R,ie,ne,ve,"left"),se-=ce.width,ve+=ce.width,pe++;for(;we>=0&&(ce=ae[we],ce.textAlign==="right");)f(H,h,ce,R,ie,ne,be,"right"),se-=ce.width,be-=ce.width,we--;for(ve+=(V-(ve-q)-(de-be)-se)/2;pe<=we;)ce=ae[pe],f(H,h,ce,R,ie,ne,ve+ce.width/2,"center"),ve+=ce.width,pe++;ne+=ie}}function n(H,h,E,R,X){if(E&&h.textRotation){var V=h.textOrigin;V==="center"?(R=E.width/2+E.x,X=E.height/2+E.y):V&&(R=V[0]+E.x,X=V[1]+E.y),H.translate(R,X),H.rotate(-h.textRotation),H.translate(-R,-X)}}function f(H,h,E,R,X,V,Z,K){var ee=R.rich[E.styleName]||{};ee.text=E.text;var te=E.textVerticalAlign,ue=V+X/2;te==="top"?ue=V+E.height/2:te==="bottom"&&(ue=V+X-E.height/2),!E.isLineHolder&&O(ee)&&w(H,h,ee,K==="right"?Z-E.width:K==="center"?Z-E.width/2:Z,ue-E.height/2,E.width,E.height);var le=E.textPadding;le&&(Z=U(Z,K,le),ue-=E.height/2-le[2]-E.textHeight/2),x(h,"shadowBlur",b(ee.textShadowBlur,R.textShadowBlur,0)),x(h,"shadowColor",ee.textShadowColor||R.textShadowColor||"transparent"),x(h,"shadowOffsetX",b(ee.textShadowOffsetX,R.textShadowOffsetX,0)),x(h,"shadowOffsetY",b(ee.textShadowOffsetY,R.textShadowOffsetY,0)),x(h,"textAlign",K),x(h,"textBaseline","middle"),x(h,"font",E.font||S);var he=B(ee.textStroke||R.textStroke,$),G=D(ee.textFill||R.textFill),$=k(ee.textStrokeWidth,R.textStrokeWidth);he&&(x(h,"lineWidth",$),x(h,"strokeStyle",he),h.strokeText(E.text,Z,ue)),G&&(x(h,"fillStyle",G),h.fillText(E.text,Z,ue))}function O(H){return!!(H.textBackgroundColor||H.textBorderWidth&&H.textBorderColor)}function w(H,h,E,R,X,V,Z){var K=E.textBackgroundColor,ee=E.textBorderWidth,te=E.textBorderColor,ue=u(K);if(x(h,"shadowBlur",E.textBoxShadowBlur||0),x(h,"shadowColor",E.textBoxShadowColor||"transparent"),x(h,"shadowOffsetX",E.textBoxShadowOffsetX||0),x(h,"shadowOffsetY",E.textBoxShadowOffsetY||0),ue||ee&&te){h.beginPath();var le=E.textBorderRadius;le?i.buildPath(h,{x:R,y:X,width:V,height:Z,r:le}):h.rect(R,X,V,Z),h.closePath()}if(ue)if(x(h,"fillStyle",K),E.fillOpacity!=null){var he=h.globalAlpha;h.globalAlpha=E.fillOpacity*E.opacity,h.fill(),h.globalAlpha=he}else h.fill();else if(a(K)){var G=K.image;G=t.createOrUpdateImage(G,null,H,L,K),G&&t.isImageReady(G)&&h.drawImage(G,R,X,V,Z)}if(ee&&te)if(x(h,"lineWidth",ee),x(h,"strokeStyle",te),E.strokeOpacity!=null){var he=h.globalAlpha;h.globalAlpha=E.strokeOpacity*E.opacity,h.stroke(),h.globalAlpha=he}else h.stroke()}function L(H,h){h.image=H}function l(H,h,E,R){var X=E.x||0,V=E.y||0,Z=E.textAlign,K=E.textVerticalAlign;if(R){var ee=E.textPosition;if(ee instanceof Array)X=R.x+N(ee[0],R.width),V=R.y+N(ee[1],R.height);else{var te=h&&h.calculateTextPosition?h.calculateTextPosition(C,E,R):e.calculateTextPosition(C,E,R);X=te.x,V=te.y,Z=Z||te.textAlign,K=K||te.textVerticalAlign}var ue=E.textOffset;ue&&(X+=ue[0],V+=ue[1])}return H=H||{},H.baseX=X,H.baseY=V,H.textAlign=Z,H.textVerticalAlign=K,H}function x(H,h,E){return H[h]=r(H,h,E),H[h]}function B(H,h){return H==null||h<=0||H==="transparent"||H==="none"?null:H.image||H.colorStops?"#000":H}function D(H){return H==null||H==="none"?null:H.image||H.colorStops?"#000":H}function N(H,h){return typeof H=="string"?H.lastIndexOf("%")>=0?parseFloat(H)/100*h:parseFloat(H):H}function U(H,h,E){return h==="right"?H-E[1]:h==="center"?H+E[3]/2-E[1]/2:H+E[3]}function W(H,h){return H!=null&&(H||h.textBackgroundColor||h.textBorderWidth&&h.textBorderColor||h.textPadding)}I.normalizeTextStyle=d,I.renderText=T,I.getBoxPosition=l,I.getStroke=B,I.getFill=D,I.parsePercent=N,I.needDrawText=W},41406:function(Y,I,_){var p=_(98886),k=_(60479),b=_(71131),m=b.WILL_BE_RESTORED,g=new k,u=function(){};u.prototype={constructor:u,drawRectText:function(e,i){var t=this.style;i=t.textRect||i,this.__dirty&&p.normalizeTextStyle(t,!0);var r=t.text;if(r!=null&&(r+=""),!p.needDrawText(r,t))return;e.save();var o=this.transform;t.transformText?this.setTransform(e):o&&(g.copy(i),g.applyTransform(o),i=g),p.renderText(this,e,r,t,i,m),e.restore()}};var a=u;Y.exports=a},14826:function(Y,I,_){var p=_(10712),k=p.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(b,m){var g=m.cx,u=m.cy,a=Math.max(m.r,0),e=m.startAngle,i=m.endAngle,t=m.clockwise,r=Math.cos(e),o=Math.sin(e);b.moveTo(r*a+g,o*a+u),b.arc(g,u,a,e,i,!t)}});Y.exports=k},54174:function(Y,I,_){var p=_(10712),k=_(45280),b=_(18554),m=b.quadraticSubdivide,g=b.cubicSubdivide,u=b.quadraticAt,a=b.cubicAt,e=b.quadraticDerivativeAt,i=b.cubicDerivativeAt,t=[];function r(c,v,S){var M=c.cpx2,z=c.cpy2;return M===null||z===null?[(S?i:a)(c.x1,c.cpx1,c.cpx2,c.x2,v),(S?i:a)(c.y1,c.cpy1,c.cpy2,c.y2,v)]:[(S?e:u)(c.x1,c.cpx1,c.x2,v),(S?e:u)(c.y1,c.cpy1,c.y2,v)]}var o=p.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(c,v){var S=v.x1,M=v.y1,z=v.x2,P=v.y2,C=v.cpx1,F=v.cpy1,d=v.cpx2,A=v.cpy2,T=v.percent;if(T===0)return;c.moveTo(S,M),d==null||A==null?(T<1&&(m(S,C,z,T,t),C=t[1],z=t[2],m(M,F,P,T,t),F=t[1],P=t[2]),c.quadraticCurveTo(C,F,z,P)):(T<1&&(g(S,C,d,z,T,t),C=t[1],d=t[2],z=t[3],g(M,F,A,P,T,t),F=t[1],A=t[2],P=t[3]),c.bezierCurveTo(C,F,d,A,z,P))},pointAt:function(c){return r(this.shape,c,!1)},tangentAt:function(c){var v=r(this.shape,c,!0);return k.normalize(v,v)}});Y.exports=o},69538:function(Y,I,_){var p=_(10712),k=p.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(b,m,g){g&&b.moveTo(m.cx+m.r,m.cy),b.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});Y.exports=k},92797:function(Y,I,_){var p=_(10712),k=p.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(b,m){var g=.5522848,u=m.cx,a=m.cy,e=m.rx,i=m.ry,t=e*g,r=i*g;b.moveTo(u-e,a),b.bezierCurveTo(u-e,a-r,u-t,a-i,u,a-i),b.bezierCurveTo(u+t,a-i,u+e,a-r,u+e,a),b.bezierCurveTo(u+e,a+r,u+t,a+i,u,a+i),b.bezierCurveTo(u-t,a+i,u-e,a+r,u-e,a),b.closePath()}});Y.exports=k},22095:function(Y,I,_){var p=_(10712),k=_(24111),b=k.subPixelOptimizeLine,m={},g=p.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(u,a){var e,i,t,r;this.subPixelOptimize?(b(m,a,this.style),e=m.x1,i=m.y1,t=m.x2,r=m.y2):(e=a.x1,i=a.y1,t=a.x2,r=a.y2);var o=a.percent;if(o===0)return;u.moveTo(e,i),o<1&&(t=e*(1-o)+t*o,r=i*(1-o)+r*o),u.lineTo(t,r)},pointAt:function(u){var a=this.shape;return[a.x1*(1-u)+a.x2*u,a.y1*(1-u)+a.y2*u]}});Y.exports=g},95094:function(Y,I,_){var p=_(10712),k=_(79209),b=p.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,g){k.buildPath(m,g,!0)}});Y.exports=b},62514:function(Y,I,_){var p=_(10712),k=_(79209),b=p.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,g){k.buildPath(m,g,!1)}});Y.exports=b},27304:function(Y,I,_){var p=_(10712),k=_(48988),b=_(24111),m=b.subPixelOptimizeRect,g={},u=p.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(a,e){var i,t,r,o;this.subPixelOptimize?(m(g,e,this.style),i=g.x,t=g.y,r=g.width,o=g.height,g.r=e.r,e=g):(i=e.x,t=e.y,r=e.width,o=e.height),e.r?k.buildPath(a,e):a.rect(i,t,r,o),a.closePath();return}});Y.exports=u},85795:function(Y,I,_){var p=_(10712),k=p.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(b,m){var g=m.cx,u=m.cy,a=Math.PI*2;b.moveTo(g+m.r,u),b.arc(g,u,m.r,0,a,!1),b.moveTo(g+m.r0,u),b.arc(g,u,m.r0,0,a,!0)}});Y.exports=k},74520:function(Y,I,_){var p=_(10712),k=_(60873),b=p.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:k(p.prototype.brush),buildPath:function(m,g){var u=g.cx,a=g.cy,e=Math.max(g.r0||0,0),i=Math.max(g.r,0),t=g.startAngle,r=g.endAngle,o=g.clockwise,c=Math.cos(t),v=Math.sin(t);m.moveTo(c*e+u,v*e+a),m.lineTo(c*i+u,v*i+a),m.arc(u,a,i,t,r,!o),m.lineTo(Math.cos(r)*e+u,Math.sin(r)*e+a),e!==0&&m.arc(u,a,e,r,t,o),m.closePath()}});Y.exports=b},7131:function(Y,I,_){var p=_(64383),k=_(48612),b=_(33051),m=b.isString,g=b.isFunction,u=b.isObject,a=b.isArrayLike,e=b.indexOf,i=function(){this.animators=[]};i.prototype={constructor:i,animate:function(v,S){var M,z=!1,P=this,C=this.__zr;if(v){var F=v.split("."),d=P;z=F[0]==="shape";for(var A=0,T=F.length;A<T;A++){if(!d)continue;d=d[F[A]]}d&&(M=d)}else M=P;if(!M){k('Property "'+v+'" is not existed in element '+P.id);return}var j=P.animators,y=new p(M,S);return y.during(function(s){P.dirty(z)}).done(function(){j.splice(e(j,y),1)}),j.push(y),C&&C.animation.addAnimator(y),y},stopAnimation:function(v){for(var S=this.animators,M=S.length,z=0;z<M;z++)S[z].stop(v);return S.length=0,this},animateTo:function(v,S,M,z,P,C){t(this,v,S,M,z,P,C)},animateFrom:function(v,S,M,z,P,C){t(this,v,S,M,z,P,C,!0)}};function t(v,S,M,z,P,C,F,d){m(z)?(C=P,P=z,z=0):g(P)?(C=P,P="linear",z=0):g(z)?(C=z,z=0):g(M)?(C=M,M=500):M||(M=500),v.stopAnimation(),r(v,"",v,S,M,z,d);var A=v.animators.slice(),T=A.length;function j(){T--,T||C&&C()}T||C&&C();for(var y=0;y<A.length;y++)A[y].done(j).start(P,F)}function r(v,S,M,z,P,C,F){var d={},A=0;for(var T in z){if(!z.hasOwnProperty(T))continue;M[T]!=null?u(z[T])&&!a(z[T])?r(v,S?S+"."+T:T,M[T],z[T],P,C,F):(F?(d[T]=M[T],o(v,S,T,z[T])):d[T]=z[T],A++):z[T]!=null&&!F&&o(v,S,T,z[T])}A>0&&v.animate(S,!1).when(P==null?500:P,d).delay(C||0)}function o(v,S,M,z){if(!S)v.attr(M,z);else{var P={};P[S]={},P[S][M]=z,v.attr(P)}}var c=i;Y.exports=c},17780:function(Y){function I(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}I.prototype={constructor:I,_dragStart:function(k){for(var b=k.target;b&&!b.draggable;)b=b.parent;b&&(this._draggingTarget=b,b.dragging=!0,this._x=k.offsetX,this._y=k.offsetY,this.dispatchToElement(_(b,k),"dragstart",k.event))},_drag:function(k){var b=this._draggingTarget;if(b){var m=k.offsetX,g=k.offsetY,u=m-this._x,a=g-this._y;this._x=m,this._y=g,b.drift(u,a,k),this.dispatchToElement(_(b,k),"drag",k.event);var e=this.findHover(m,g,b).target,i=this._dropTarget;this._dropTarget=e,b!==e&&(i&&e!==i&&this.dispatchToElement(_(i,k),"dragleave",k.event),e&&e!==i&&this.dispatchToElement(_(e,k),"dragenter",k.event))}},_dragEnd:function(k){var b=this._draggingTarget;b&&(b.dragging=!1),this.dispatchToElement(_(b,k),"dragend",k.event),this._dropTarget&&this.dispatchToElement(_(this._dropTarget,k),"drop",k.event),this._draggingTarget=null,this._dropTarget=null}};function _(k,b){return{target:k,topTarget:b&&b.topTarget}}var p=I;Y.exports=p},41502:function(Y){var I=Array.prototype.slice,_=function(m){this._$handlers={},this._$eventProcessor=m};_.prototype={constructor:_,one:function(m,g,u,a){return k(this,m,g,u,a,!0)},on:function(m,g,u,a){return k(this,m,g,u,a,!1)},isSilent:function(m){var g=this._$handlers;return!g[m]||!g[m].length},off:function(m,g){var u=this._$handlers;if(!m)return this._$handlers={},this;if(g){if(u[m]){for(var a=[],e=0,i=u[m].length;e<i;e++)u[m][e].h!==g&&a.push(u[m][e]);u[m]=a}u[m]&&u[m].length===0&&delete u[m]}else delete u[m];return this},trigger:function(m){var g=this._$handlers[m],u=this._$eventProcessor;if(g){var a=arguments,e=a.length;e>3&&(a=I.call(a,1));for(var i=g.length,t=0;t<i;){var r=g[t];if(u&&u.filter&&r.query!=null&&!u.filter(m,r.query)){t++;continue}switch(e){case 1:r.h.call(r.ctx);break;case 2:r.h.call(r.ctx,a[1]);break;case 3:r.h.call(r.ctx,a[1],a[2]);break;default:r.h.apply(r.ctx,a);break}r.one?(g.splice(t,1),i--):t++}}return u&&u.afterTrigger&&u.afterTrigger(m),this},triggerWithContext:function(m){var g=this._$handlers[m],u=this._$eventProcessor;if(g){var a=arguments,e=a.length;e>4&&(a=I.call(a,1,a.length-1));for(var i=a[a.length-1],t=g.length,r=0;r<t;){var o=g[r];if(u&&u.filter&&o.query!=null&&!u.filter(m,o.query)){r++;continue}switch(e){case 1:o.h.call(i);break;case 2:o.h.call(i,a[1]);break;case 3:o.h.call(i,a[1],a[2]);break;default:o.h.apply(i,a);break}o.one?(g.splice(r,1),t--):r++}}return u&&u.afterTrigger&&u.afterTrigger(m),this}};function p(m,g){var u=m._$eventProcessor;return g!=null&&u&&u.normalizeQuery&&(g=u.normalizeQuery(g)),g}function k(m,g,u,a,e,i){var t=m._$handlers;if(typeof u=="function"&&(e=a,a=u,u=null),!a||!g)return m;u=p(m,u),t[g]||(t[g]=[]);for(var r=0;r<t[g].length;r++)if(t[g][r].h===a)return m;var o={h:a,one:i,query:u,ctx:e||m,callAtLast:a.zrEventfulCallAtLast},c=t[g].length-1,v=t[g][c];return v&&v.callAtLast?t[g].splice(c,0,o):t[g].push(o),m}var b=_;Y.exports=b},58023:function(Y,I,_){var p=_(32892),k=_(45280),b=p.identity,m=5e-5;function g(o){return o>m||o<-m}var u=function(o){o=o||{},o.position||(this.position=[0,0]),o.rotation==null&&(this.rotation=0),o.scale||(this.scale=[1,1]),this.origin=this.origin||null},a=u.prototype;a.transform=null,a.needLocalTransform=function(){return g(this.rotation)||g(this.position[0])||g(this.position[1])||g(this.scale[0]-1)||g(this.scale[1]-1)};var e=[];a.updateTransform=function(){var o=this.parent,c=o&&o.transform,v=this.needLocalTransform(),S=this.transform;if(!(v||c)){S&&b(S);return}S=S||p.create(),v?this.getLocalTransform(S):b(S),c&&(v?p.mul(S,o.transform,S):p.copy(S,o.transform)),this.transform=S;var M=this.globalScaleRatio;if(M!=null&&M!==1){this.getGlobalScale(e);var z=e[0]<0?-1:1,P=e[1]<0?-1:1,C=((e[0]-z)*M+z)/e[0]||0,F=((e[1]-P)*M+P)/e[1]||0;S[0]*=C,S[1]*=C,S[2]*=F,S[3]*=F}this.invTransform=this.invTransform||p.create(),p.invert(this.invTransform,S)},a.getLocalTransform=function(o){return u.getLocalTransform(this,o)},a.setTransform=function(o){var c=this.transform,v=o.dpr||1;c?o.setTransform(v*c[0],v*c[1],v*c[2],v*c[3],v*c[4],v*c[5]):o.setTransform(v,0,0,v,0,0)},a.restoreTransform=function(o){var c=o.dpr||1;o.setTransform(c,0,0,c,0,0)};var i=[],t=p.create();a.setLocalTransform=function(o){if(!o)return;var c=o[0]*o[0]+o[1]*o[1],v=o[2]*o[2]+o[3]*o[3],S=this.position,M=this.scale;g(c-1)&&(c=Math.sqrt(c)),g(v-1)&&(v=Math.sqrt(v)),o[0]<0&&(c=-c),o[3]<0&&(v=-v),S[0]=o[4],S[1]=o[5],M[0]=c,M[1]=v,this.rotation=Math.atan2(-o[1]/v,o[0]/c)},a.decomposeTransform=function(){if(!this.transform)return;var o=this.parent,c=this.transform;o&&o.transform&&(p.mul(i,o.invTransform,c),c=i);var v=this.origin;v&&(v[0]||v[1])&&(t[4]=v[0],t[5]=v[1],p.mul(i,c,t),i[4]-=v[0],i[5]-=v[1],c=i),this.setLocalTransform(c)},a.getGlobalScale=function(o){var c=this.transform;return o=o||[],c?(o[0]=Math.sqrt(c[0]*c[0]+c[1]*c[1]),o[1]=Math.sqrt(c[2]*c[2]+c[3]*c[3]),c[0]<0&&(o[0]=-o[0]),c[3]<0&&(o[1]=-o[1]),o):(o[0]=1,o[1]=1,o)},a.transformCoordToLocal=function(o,c){var v=[o,c],S=this.invTransform;return S&&k.applyTransform(v,v,S),v},a.transformCoordToGlobal=function(o,c){var v=[o,c],S=this.transform;return S&&k.applyTransform(v,v,S),v},u.getLocalTransform=function(o,c){c=c||[],b(c);var v=o.origin,S=o.scale||[1,1],M=o.rotation||0,z=o.position||[0,0];return v&&(c[4]-=v[0],c[5]-=v[1]),p.scale(c,c,S),M&&p.rotate(c,c,M),v&&(c[4]+=v[0],c[5]+=v[1]),c[4]+=z[0],c[5]+=z[1],c};var r=u;Y.exports=r},58331:function(Y,I,_){var p=_(62288),k=p.createElement,b=_(33051),m=_(48612),g=_(10712),u=_(44535),a=_(96498),e=_(39351),i=_(51037),t=_(55860),r=_(41472),o=_(37953),c=o.path,v=o.image,S=o.text;function M(n){return parseInt(n,10)}function z(n){return n instanceof g?c:n instanceof u?v:n instanceof a?S:c}function P(n,f){return f&&n&&f.parentNode!==n}function C(n,f,O){if(P(n,f)&&O){var w=O.nextSibling;w?n.insertBefore(f,w):n.appendChild(f)}}function F(n,f){if(P(n,f)){var O=n.firstChild;O?n.insertBefore(f,O):n.appendChild(f)}}function d(n,f){f&&n&&f.parentNode===n&&n.removeChild(f)}function A(n){return n.__textSvgEl}function T(n){return n.__svgEl}var j=function(n,f,O,w){this.root=n,this.storage=f,this._opts=O=b.extend({},O||{});var L=k("svg");L.setAttribute("xmlns","http://www.w3.org/2000/svg"),L.setAttribute("version","1.1"),L.setAttribute("baseProfile","full"),L.style.cssText="user-select:none;position:absolute;left:0;top:0;";var l=k("g");L.appendChild(l);var x=k("g");L.appendChild(x),this.gradientManager=new i(w,x),this.clipPathManager=new t(w,x),this.shadowManager=new r(w,x);var B=document.createElement("div");B.style.cssText="overflow:hidden;position:relative",this._svgDom=L,this._svgRoot=x,this._backgroundRoot=l,this._viewport=B,n.appendChild(B),B.appendChild(L),this.resize(O.width,O.height),this._visibleList=[]};j.prototype={constructor:j,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},refresh:function(){var n=this.storage.getDisplayList(!0);this._paintList(n)},setBackgroundColor:function(n){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var f=k("rect");f.setAttribute("width",this.getWidth()),f.setAttribute("height",this.getHeight()),f.setAttribute("x",0),f.setAttribute("y",0),f.setAttribute("id",0),f.style.fill=n,this._backgroundRoot.appendChild(f),this._backgroundNode=f},_paintList:function(n){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var f=this._svgRoot,O=this._visibleList,w=n.length,L=[],l;for(l=0;l<w;l++){var x=n[l],B=z(x),D=T(x)||A(x);x.invisible||(x.__dirty&&(B&&B.brush(x),this.clipPathManager.update(x),x.style&&(this.gradientManager.update(x.style.fill),this.gradientManager.update(x.style.stroke),this.shadowManager.update(D,x)),x.__dirty=!1),L.push(x))}var N=e(O,L),U;for(l=0;l<N.length;l++){var W=N[l];if(W.removed)for(var H=0;H<W.count;H++){var x=O[W.indices[H]],D=T(x),h=A(x);d(f,D),d(f,h)}}for(l=0;l<N.length;l++){var W=N[l];if(W.added)for(var H=0;H<W.count;H++){var x=L[W.indices[H]],D=T(x),h=A(x);U?C(f,D,U):F(f,D),D?C(f,h,D):U?C(f,h,U):F(f,h),C(f,h,D),U=h||D||U,this.gradientManager.addWithoutUpdate(D||h,x),this.shadowManager.addWithoutUpdate(D||h,x),this.clipPathManager.markUsed(x)}else if(!W.removed)for(var H=0;H<W.count;H++){var x=L[W.indices[H]],D=T(x),h=A(x),D=T(x),h=A(x);this.gradientManager.markUsed(x),this.gradientManager.addWithoutUpdate(D||h,x),this.shadowManager.markUsed(x),this.shadowManager.addWithoutUpdate(D||h,x),this.clipPathManager.markUsed(x),h&&C(f,h,D),U=D||h||U}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=L},_getDefs:function(n){var f=this._svgDom,O=f.getElementsByTagName("defs");if(O.length===0)if(n){var O=f.insertBefore(k("defs"),f.firstChild);return O.contains||(O.contains=function(L){var l=O.children;if(!l)return!1;for(var x=l.length-1;x>=0;--x)if(l[x]===L)return!0;return!1}),O}else return null;else return O[0]},resize:function(n,f){var O=this._viewport;O.style.display="none";var w=this._opts;if(n!=null&&(w.width=n),f!=null&&(w.height=f),n=this._getSize(0),f=this._getSize(1),O.style.display="",this._width!==n||this._height!==f){this._width=n,this._height=f;var L=O.style;L.width=n+"px",L.height=f+"px";var l=this._svgDom;l.setAttribute("width",n),l.setAttribute("height",f)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",n),this._backgroundNode.setAttribute("height",f))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(n){var f=this._opts,O=["width","height"][n],w=["clientWidth","clientHeight"][n],L=["paddingLeft","paddingTop"][n],l=["paddingRight","paddingBottom"][n];if(f[O]!=null&&f[O]!=="auto")return parseFloat(f[O]);var x=this.root,B=document.defaultView.getComputedStyle(x);return(x[w]||M(B[O])||M(x.style[O]))-(M(B[L])||0)-(M(B[l])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var n=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+n}};function y(n){return function(){m('In SVG mode painter not support method "'+n+'"')}}b.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(n){j.prototype[n]=y(n)});var s=j;Y.exports=s},62288:function(Y,I){var _="http://www.w3.org/2000/svg";function p(k){return document.createElementNS(_,k)}I.createElement=p},37953:function(Y,I,_){var p=_(62288),k=p.createElement,b=_(14014),m=_(60479),g=_(32892),u=_(80423),a=_(98886),e=_(96498),i=b.CMD,t=Array.prototype.join,r="none",o=Math.round,c=Math.sin,v=Math.cos,S=Math.PI,M=Math.PI*2,z=180/S,P=1e-4;function C(h){return o(h*1e4)/1e4}function F(h){return h<P&&h>-P}function d(h,E){var R=E?h.textFill:h.fill;return R!=null&&R!==r}function A(h,E){var R=E?h.textStroke:h.stroke;return R!=null&&R!==r}function T(h,E){E&&j(h,"transform","matrix("+t.call(E,",")+")")}function j(h,E,R){(!R||R.type!=="linear"&&R.type!=="radial")&&h.setAttribute(E,R)}function y(h,E,R){h.setAttributeNS("http://www.w3.org/1999/xlink",E,R)}function s(h,E,R,X){if(d(E,R)){var V=R?E.textFill:E.fill;V=V==="transparent"?r:V,j(h,"fill",V),j(h,"fill-opacity",E.fillOpacity!=null?E.fillOpacity*E.opacity:E.opacity)}else j(h,"fill",r);if(A(E,R)){var Z=R?E.textStroke:E.stroke;Z=Z==="transparent"?r:Z,j(h,"stroke",Z);var K=R?E.textStrokeWidth:E.lineWidth,ee=!R&&E.strokeNoScale?X.getLineScale():1;j(h,"stroke-width",K/ee),j(h,"paint-order",R?"stroke":"fill"),j(h,"stroke-opacity",E.strokeOpacity!=null?E.strokeOpacity:E.opacity);var te=E.lineDash;te?(j(h,"stroke-dasharray",E.lineDash.join(",")),j(h,"stroke-dashoffset",o(E.lineDashOffset||0))):j(h,"stroke-dasharray",""),E.lineCap&&j(h,"stroke-linecap",E.lineCap),E.lineJoin&&j(h,"stroke-linejoin",E.lineJoin),E.miterLimit&&j(h,"stroke-miterlimit",E.miterLimit)}else j(h,"stroke",r)}function n(h){for(var E=[],R=h.data,X=h.len(),V=0;V<X;){var Z=R[V++],K="",ee=0;switch(Z){case i.M:K="M",ee=2;break;case i.L:K="L",ee=2;break;case i.Q:K="Q",ee=4;break;case i.C:K="C",ee=6;break;case i.A:var te=R[V++],ue=R[V++],le=R[V++],he=R[V++],G=R[V++],$=R[V++],re=R[V++],q=R[V++],ne=Math.abs($),de=F(ne-M)||(q?$>=M:-$>=M),Q=$>0?$%M:$%M+M,J=!1;de?J=!0:F(ne)?J=!1:J=Q>=S===!!q;var ae=C(te+le*v(G)),oe=C(ue+he*c(G));de&&(q?$=M-1e-4:$=-M+1e-4,J=!0,V===9&&E.push("M",ae,oe));var ie=C(te+le*v(G+$)),se=C(ue+he*c(G+$));E.push("A",C(le),C(he),o(re*z),+J,+q,ie,se);break;case i.Z:K="Z";break;case i.R:var ie=C(R[V++]),se=C(R[V++]),pe=C(R[V++]),ve=C(R[V++]);E.push("M",ie,se,"L",ie+pe,se,"L",ie+pe,se+ve,"L",ie,se+ve,"L",ie,se);break}K&&E.push(K);for(var be=0;be<ee;be++)E.push(C(R[V++]))}return E.join(" ")}var f={};f.brush=function(h){var E=h.style,R=h.__svgEl;R||(R=k("path"),h.__svgEl=R),h.path||h.createPathProxy();var X=h.path;if(h.__dirtyPath){X.beginPath(),X.subPixelOptimize=!1,h.buildPath(X,h.shape),h.__dirtyPath=!1;var V=n(X);V.indexOf("NaN")<0&&j(R,"d",V)}s(R,E,!1,h),T(R,h.transform),E.text!=null?D(h,h.getBoundingRect()):H(h)};var O={};O.brush=function(h){var E=h.style,R=E.image;if(R instanceof HTMLImageElement){var X=R.src;R=X}if(!R)return;var V=E.x||0,Z=E.y||0,K=E.width,ee=E.height,te=h.__svgEl;te||(te=k("image"),h.__svgEl=te),R!==h.__imageSrc&&(y(te,"href",R),h.__imageSrc=R),j(te,"width",K),j(te,"height",ee),j(te,"x",V),j(te,"y",Z),T(te,h.transform),E.text!=null?D(h,h.getBoundingRect()):H(h)};var w={},L=new m,l={},x=[],B={left:"start",right:"end",center:"middle",middle:"middle"},D=function(h,E){var R=h.style,X=h.transform,V=h instanceof e||R.transformText;h.__dirty&&a.normalizeTextStyle(R,!0);var Z=R.text;if(Z!=null&&(Z+=""),!a.needDrawText(Z,R))return;Z==null&&(Z=""),!V&&X&&(L.copy(E),L.applyTransform(X),E=L);var K=h.__textSvgEl;K||(K=k("text"),h.__textSvgEl=K);var ee=K.style,te=R.font||u.DEFAULT_FONT,ue=K.__computedFont;te!==K.__styleFont&&(ee.font=K.__styleFont=te,ue=K.__computedFont=ee.font);var le=R.textPadding,he=R.textLineHeight,G=h.__textCotentBlock;(!G||h.__dirtyText)&&(G=h.__textCotentBlock=u.parsePlainText(Z,ue,le,he,R.truncate));var $=G.outerHeight,re=G.lineHeight;a.getBoxPosition(l,h,R,E);var q=l.baseX,ne=l.baseY,de=l.textAlign||"left",Q=l.textVerticalAlign;N(K,V,X,R,E,q,ne);var J=u.adjustTextY(ne,$,Q),ae=q,oe=J;le&&(ae=U(q,de,le),oe+=le[0]),oe+=re/2,s(K,R,!0,h);var ie=G.canCacheByTextString,se=h.__tspanList||(h.__tspanList=[]),pe=se.length;if(ie&&h.__canCacheByTextString&&h.__text===Z){if(h.__dirtyText&&pe)for(var ve=0;ve<pe;++ve)W(se[ve],de,ae,oe+ve*re)}else{h.__text=Z,h.__canCacheByTextString=ie;for(var be=G.lines,we=be.length,ve=0;ve<we;ve++){var ce=se[ve],fe=be[ve];ce?ce.__zrText!==fe&&(ce.innerHTML="",ce.appendChild(document.createTextNode(fe))):(ce=se[ve]=k("tspan"),K.appendChild(ce),ce.appendChild(document.createTextNode(fe))),W(ce,de,ae,oe+ve*re)}if(pe>we){for(;ve<pe;ve++)K.removeChild(se[ve]);se.length=we}}};function N(h,E,R,X,V,Z,K){g.identity(x),E&&R&&g.copy(x,R);var ee=X.textRotation;if(V&&ee){var te=X.textOrigin;te==="center"?(Z=V.width/2+V.x,K=V.height/2+V.y):te&&(Z=te[0]+V.x,K=te[1]+V.y),x[4]-=Z,x[5]-=K,g.rotate(x,x,ee),x[4]+=Z,x[5]+=K}T(h,x)}function U(h,E,R){return E==="right"?h-R[1]:E==="center"?h+R[3]/2-R[1]/2:h+R[3]}function W(h,E,R,X){j(h,"dominant-baseline","middle"),j(h,"text-anchor",B[E]),j(h,"x",R),j(h,"y",X)}function H(h){h&&h.__textSvgEl&&(h.__textSvgEl.parentNode&&h.__textSvgEl.parentNode.removeChild(h.__textSvgEl),h.__textSvgEl=null,h.__tspanList=[],h.__text=null)}w.drawRectText=D,w.brush=function(h){var E=h.style;E.text!=null?D(h,!1):H(h)},I.path=f,I.image=O,I.text=w},55860:function(Y,I,_){var p=_(6740),k=_(33051),b=_(32892);function m(u,a){p.call(this,u,a,"clipPath","__clippath_in_use__")}k.inherits(m,p),m.prototype.update=function(u){var a=this.getSvgElement(u);a&&this.updateDom(a,u.__clipPaths,!1);var e=this.getTextSvgElement(u);e&&this.updateDom(e,u.__clipPaths,!0),this.markUsed(u)},m.prototype.updateDom=function(u,a,e){if(a&&a.length>0){var i=this.getDefs(!0),t=a[0],r,o,c=e?"_textDom":"_dom";t[c]?(o=t[c].getAttribute("id"),r=t[c],i.contains(r)||i.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,r=this.createElement("clipPath"),r.setAttribute("id",o),i.appendChild(r),t[c]=r);var v=this.getSvgProxy(t);if(t.transform&&t.parent.invTransform&&!e){var S=Array.prototype.slice.call(t.transform);b.mul(t.transform,t.parent.invTransform,t.transform),v.brush(t),t.transform=S}else v.brush(t);var M=this.getSvgElement(t);r.innerHTML="",r.appendChild(M.cloneNode()),u.setAttribute("clip-path","url(#"+o+")"),a.length>1&&this.updateDom(r,a.slice(1),e)}else u&&u.setAttribute("clip-path","none")},m.prototype.markUsed=function(u){var a=this;u.__clipPaths&&k.each(u.__clipPaths,function(e){e._dom&&p.prototype.markUsed.call(a,e._dom),e._textDom&&p.prototype.markUsed.call(a,e._textDom)})};var g=m;Y.exports=g},6740:function(Y,I,_){var p=_(62288),k=p.createElement,b=_(33051),m=_(10712),g=_(44535),u=_(96498),a=_(37953),e=a.path,i=a.image,t=a.text,r="0",o="1";function c(S,M,z,P,C){this._zrId=S,this._svgRoot=M,this._tagNames=typeof z=="string"?[z]:z,this._markLabel=P,this._domName=C||"_dom",this.nextId=0}c.prototype.createElement=k,c.prototype.getDefs=function(S){var M=this._svgRoot,z=this._svgRoot.getElementsByTagName("defs");return z.length===0?S?(z=M.insertBefore(this.createElement("defs"),M.firstChild),z.contains||(z.contains=function(P){var C=z.children;if(!C)return!1;for(var F=C.length-1;F>=0;--F)if(C[F]===P)return!0;return!1}),z):null:z[0]},c.prototype.update=function(S,M){if(!S)return;var z=this.getDefs(!1);if(S[this._domName]&&z.contains(S[this._domName]))typeof M=="function"&&M(S);else{var P=this.add(S);P&&(S[this._domName]=P)}},c.prototype.addDom=function(S){var M=this.getDefs(!0);M.appendChild(S)},c.prototype.removeDom=function(S){var M=this.getDefs(!1);M&&S[this._domName]&&(M.removeChild(S[this._domName]),S[this._domName]=null)},c.prototype.getDoms=function(){var S=this.getDefs(!1);if(!S)return[];var M=[];return b.each(this._tagNames,function(z){var P=S.getElementsByTagName(z);M=M.concat([].slice.call(P))}),M},c.prototype.markAllUnused=function(){var S=this.getDoms(),M=this;b.each(S,function(z){z[M._markLabel]=r})},c.prototype.markUsed=function(S){S&&(S[this._markLabel]=o)},c.prototype.removeUnused=function(){var S=this.getDefs(!1);if(!S)return;var M=this.getDoms(),z=this;b.each(M,function(P){P[z._markLabel]!==o&&S.removeChild(P)})},c.prototype.getSvgProxy=function(S){return S instanceof m?e:S instanceof g?i:S instanceof u?t:e},c.prototype.getTextSvgElement=function(S){return S.__textSvgEl},c.prototype.getSvgElement=function(S){return S.__svgEl};var v=c;Y.exports=v},51037:function(Y,I,_){var p=_(6740),k=_(33051),b=_(48612),m=_(21092);function g(a,e){p.call(this,a,e,["linearGradient","radialGradient"],"__gradient_in_use__")}k.inherits(g,p),g.prototype.addWithoutUpdate=function(a,e){if(e&&e.style){var i=this;k.each(["fill","stroke"],function(t){if(e.style[t]&&(e.style[t].type==="linear"||e.style[t].type==="radial")){var r=e.style[t],o=i.getDefs(!0),c;r._dom?(c=r._dom,o.contains(r._dom)||i.addDom(c)):c=i.add(r),i.markUsed(e);var v=c.getAttribute("id");a.setAttribute(t,"url(#"+v+")")}})}},g.prototype.add=function(a){var e;if(a.type==="linear")e=this.createElement("linearGradient");else if(a.type==="radial")e=this.createElement("radialGradient");else return b("Illegal gradient type."),null;return a.id=a.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+a.id),this.updateDom(a,e),this.addDom(e),e},g.prototype.update=function(a){var e=this;p.prototype.update.call(this,a,function(){var i=a.type,t=a._dom.tagName;i==="linear"&&t==="linearGradient"||i==="radial"&&t==="radialGradient"?e.updateDom(a,a._dom):(e.removeDom(a),e.add(a))})},g.prototype.updateDom=function(a,e){if(a.type==="linear")e.setAttribute("x1",a.x),e.setAttribute("y1",a.y),e.setAttribute("x2",a.x2),e.setAttribute("y2",a.y2);else if(a.type==="radial")e.setAttribute("cx",a.x),e.setAttribute("cy",a.y),e.setAttribute("r",a.r);else{b("Illegal gradient type.");return}a.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=a.colorStops,t=0,r=i.length;t<r;++t){var o=this.createElement("stop");o.setAttribute("offset",i[t].offset*100+"%");var c=i[t].color;if(c.indexOf("rgba">-1)){var v=m.parse(c)[3],S=m.toHex(c);o.setAttribute("stop-color","#"+S),o.setAttribute("stop-opacity",v)}else o.setAttribute("stop-color",i[t].color);e.appendChild(o)}a._dom=e},g.prototype.markUsed=function(a){if(a.style){var e=a.style.fill;e&&e._dom&&p.prototype.markUsed.call(this,e._dom),e=a.style.stroke,e&&e._dom&&p.prototype.markUsed.call(this,e._dom)}};var u=g;Y.exports=u},41472:function(Y,I,_){var p=_(6740),k=_(33051);function b(u,a){p.call(this,u,a,["filter"],"__filter_in_use__","_shadowDom")}k.inherits(b,p),b.prototype.addWithoutUpdate=function(u,a){if(a&&m(a.style)){var e;if(a._shadowDom){e=a._shadowDom;var i=this.getDefs(!0);i.contains(a._shadowDom)||this.addDom(e)}else e=this.add(a);this.markUsed(a);var t=e.getAttribute("id");u.style.filter="url(#"+t+")"}},b.prototype.add=function(u){var a=this.createElement("filter");return u._shadowDomId=u._shadowDomId||this.nextId++,a.setAttribute("id","zr"+this._zrId+"-shadow-"+u._shadowDomId),this.updateDom(u,a),this.addDom(a),a},b.prototype.update=function(u,a){var e=a.style;if(m(e)){var i=this;p.prototype.update.call(this,a,function(){i.updateDom(a,a._shadowDom)})}else this.remove(u,a)},b.prototype.remove=function(u,a){a._shadowDomId!=null&&(this.removeDom(u),u.style.filter="")},b.prototype.updateDom=function(u,a){var e=a.getElementsByTagName("feDropShadow");e.length===0?e=this.createElement("feDropShadow"):e=e[0];var i=u.style,t=u.scale&&u.scale[0]||1,r=u.scale&&u.scale[1]||1,o,c,v,S;if(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)o=i.shadowOffsetX||0,c=i.shadowOffsetY||0,v=i.shadowBlur,S=i.shadowColor;else if(i.textShadowBlur)o=i.textShadowOffsetX||0,c=i.textShadowOffsetY||0,v=i.textShadowBlur,S=i.textShadowColor;else{this.removeDom(a,i);return}e.setAttribute("dx",o/t),e.setAttribute("dy",c/r),e.setAttribute("flood-color",S);var M=v/2/t,z=v/2/r,P=M+" "+z;e.setAttribute("stdDeviation",P),a.setAttribute("x","-100%"),a.setAttribute("y","-100%"),a.setAttribute("width",Math.ceil(v/2*200)+"%"),a.setAttribute("height",Math.ceil(v/2*200)+"%"),a.appendChild(e),u._shadowDom=a},b.prototype.markUsed=function(u){u._shadowDom&&p.prototype.markUsed.call(this,u._shadowDom)};function m(u){return u&&(u.shadowBlur||u.shadowOffsetX||u.shadowOffsetY||u.textShadowBlur||u.textShadowOffsetX||u.textShadowOffsetY)}var g=b;Y.exports=g},31663:function(Y,I,_){_(37953);var p=_(31931),k=p.registerPainter,b=_(58331);k("svg",b)},21092:function(Y,I,_){var p=_(92528),k={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function b(n){return n=Math.round(n),n<0?0:n>255?255:n}function m(n){return n=Math.round(n),n<0?0:n>360?360:n}function g(n){return n<0?0:n>1?1:n}function u(n){return n.length&&n.charAt(n.length-1)==="%"?b(parseFloat(n)/100*255):b(parseInt(n,10))}function a(n){return n.length&&n.charAt(n.length-1)==="%"?g(parseFloat(n)/100):g(parseFloat(n))}function e(n,f,O){return O<0?O+=1:O>1&&(O-=1),O*6<1?n+(f-n)*O*6:O*2<1?f:O*3<2?n+(f-n)*(2/3-O)*6:n}function i(n,f,O){return n+(f-n)*O}function t(n,f,O,w,L){return n[0]=f,n[1]=O,n[2]=w,n[3]=L,n}function r(n,f){return n[0]=f[0],n[1]=f[1],n[2]=f[2],n[3]=f[3],n}var o=new p(20),c=null;function v(n,f){c&&r(c,f),c=o.put(n,c||f.slice())}function S(n,f){if(!n)return;f=f||[];var O=o.get(n);if(O)return r(f,O);n=n+"";var w=n.replace(/ /g,"").toLowerCase();if(w in k)return r(f,k[w]),v(n,f),f;if(w.charAt(0)==="#"){if(w.length===4){var L=parseInt(w.substr(1),16);if(!(L>=0&&L<=4095)){t(f,0,0,0,1);return}return t(f,(L&3840)>>4|(L&3840)>>8,L&240|(L&240)>>4,L&15|(L&15)<<4,1),v(n,f),f}else if(w.length===7){var L=parseInt(w.substr(1),16);if(!(L>=0&&L<=16777215)){t(f,0,0,0,1);return}return t(f,(L&16711680)>>16,(L&65280)>>8,L&255,1),v(n,f),f}return}var l=w.indexOf("("),x=w.indexOf(")");if(l!==-1&&x+1===w.length){var B=w.substr(0,l),D=w.substr(l+1,x-(l+1)).split(","),N=1;switch(B){case"rgba":if(D.length!==4){t(f,0,0,0,1);return}N=a(D.pop());case"rgb":if(D.length!==3){t(f,0,0,0,1);return}return t(f,u(D[0]),u(D[1]),u(D[2]),N),v(n,f),f;case"hsla":if(D.length!==4){t(f,0,0,0,1);return}return D[3]=a(D[3]),M(D,f),v(n,f),f;case"hsl":if(D.length!==3){t(f,0,0,0,1);return}return M(D,f),v(n,f),f;default:return}}t(f,0,0,0,1);return}function M(n,f){var O=(parseFloat(n[0])%360+360)%360/360,w=a(n[1]),L=a(n[2]),l=L<=.5?L*(w+1):L+w-L*w,x=L*2-l;return f=f||[],t(f,b(e(x,l,O+1/3)*255),b(e(x,l,O)*255),b(e(x,l,O-1/3)*255),1),n.length===4&&(f[3]=n[3]),f}function z(n){if(!n)return;var f=n[0]/255,O=n[1]/255,w=n[2]/255,L=Math.min(f,O,w),l=Math.max(f,O,w),x=l-L,B=(l+L)/2,D,N;if(x===0)D=0,N=0;else{B<.5?N=x/(l+L):N=x/(2-l-L);var U=((l-f)/6+x/2)/x,W=((l-O)/6+x/2)/x,H=((l-w)/6+x/2)/x;f===l?D=H-W:O===l?D=1/3+U-H:w===l&&(D=2/3+W-U),D<0&&(D+=1),D>1&&(D-=1)}var h=[D*360,N,B];return n[3]!=null&&h.push(n[3]),h}function P(n,f){var O=S(n);if(O){for(var w=0;w<3;w++)f<0?O[w]=O[w]*(1-f)|0:O[w]=(255-O[w])*f+O[w]|0,O[w]>255?O[w]=255:n[w]<0&&(O[w]=0);return s(O,O.length===4?"rgba":"rgb")}}function C(n){var f=S(n);if(f)return((1<<24)+(f[0]<<16)+(f[1]<<8)+ +f[2]).toString(16).slice(1)}function F(n,f,O){if(!(f&&f.length)||!(n>=0&&n<=1))return;O=O||[];var w=n*(f.length-1),L=Math.floor(w),l=Math.ceil(w),x=f[L],B=f[l],D=w-L;return O[0]=b(i(x[0],B[0],D)),O[1]=b(i(x[1],B[1],D)),O[2]=b(i(x[2],B[2],D)),O[3]=g(i(x[3],B[3],D)),O}var d=F;function A(n,f,O){if(!(f&&f.length)||!(n>=0&&n<=1))return;var w=n*(f.length-1),L=Math.floor(w),l=Math.ceil(w),x=S(f[L]),B=S(f[l]),D=w-L,N=s([b(i(x[0],B[0],D)),b(i(x[1],B[1],D)),b(i(x[2],B[2],D)),g(i(x[3],B[3],D))],"rgba");return O?{color:N,leftIndex:L,rightIndex:l,value:w}:N}var T=A;function j(n,f,O,w){if(n=S(n),n)return n=z(n),f!=null&&(n[0]=m(f)),O!=null&&(n[1]=a(O)),w!=null&&(n[2]=a(w)),s(M(n),"rgba")}function y(n,f){if(n=S(n),n&&f!=null)return n[3]=g(f),s(n,"rgba")}function s(n,f){if(!n||!n.length)return;var O=n[0]+","+n[1]+","+n[2];return(f==="rgba"||f==="hsva"||f==="hsla")&&(O+=","+n[3]),f+"("+O+")"}I.parse=S,I.lift=P,I.toHex=C,I.fastLerp=F,I.fastMapToColor=d,I.lerp=A,I.mapToColor=T,I.modifyHSL=j,I.modifyAlpha=y,I.stringify=s},10003:function(Y,I,_){var p=_(8524),k=_(44535),b=_(96498),m=_(69538),g=_(27304),u=_(92797),a=_(22095),e=_(10712),i=_(95094),t=_(62514),r=_(74438),o=_(40342),c=_(32892),v=_(75991),S=v.createFromString,M=_(33051),z=M.isString,P=M.extend,C=M.defaults,F=M.trim,d=M.each,A=/[\s,]+/;function T(h){if(z(h)){var E=new DOMParser;h=E.parseFromString(h,"text/xml")}for(h.nodeType===9&&(h=h.firstChild);h.nodeName.toLowerCase()!=="svg"||h.nodeType!==1;)h=h.nextSibling;return h}function j(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}j.prototype.parse=function(h,E){E=E||{};var R=T(h);if(!R)throw new Error("Illegal svg");var X=new p;this._root=X;var V=R.getAttribute("viewBox")||"",Z=parseFloat(R.getAttribute("width")||E.width),K=parseFloat(R.getAttribute("height")||E.height);isNaN(Z)&&(Z=null),isNaN(K)&&(K=null),L(R,X,null,!0);for(var ee=R.firstChild;ee;)this._parseNode(ee,X),ee=ee.nextSibling;var te,ue;if(V){var le=F(V).split(A);le.length>=4&&(te={x:parseFloat(le[0]||0),y:parseFloat(le[1]||0),width:parseFloat(le[2]),height:parseFloat(le[3])})}if(te&&Z!=null&&K!=null&&(ue=W(te,Z,K),!E.ignoreViewBox)){var he=X;X=new p,X.add(he),he.scale=ue.scale.slice(),he.position=ue.position.slice()}return!E.ignoreRootClip&&Z!=null&&K!=null&&X.setClipPath(new g({shape:{x:0,y:0,width:Z,height:K}})),{root:X,width:Z,height:K,viewBoxRect:te,viewBoxTransform:ue}},j.prototype._parseNode=function(h,E){var R=h.nodeName.toLowerCase();R==="defs"?this._isDefine=!0:R==="text"&&(this._isText=!0);var X;if(this._isDefine){var V=s[R];if(V){var Z=V.call(this,h),K=h.getAttribute("id");K&&(this._defs[K]=Z)}}else{var V=y[R];V&&(X=V.call(this,h,E),E.add(X))}for(var ee=h.firstChild;ee;)ee.nodeType===1&&this._parseNode(ee,X),ee.nodeType===3&&this._isText&&this._parseText(ee,X),ee=ee.nextSibling;R==="defs"?this._isDefine=!1:R==="text"&&(this._isText=!1)},j.prototype._parseText=function(h,E){if(h.nodeType===1){var R=h.getAttribute("dx")||0,X=h.getAttribute("dy")||0;this._textX+=parseFloat(R),this._textY+=parseFloat(X)}var V=new b({style:{text:h.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});f(E,V),L(h,V,this._defs);var Z=V.style.fontSize;Z&&Z<9&&(V.style.fontSize=9,V.scale=V.scale||[1,1],V.scale[0]*=Z/9,V.scale[1]*=Z/9);var K=V.getBoundingRect();return this._textX+=K.width,E.add(V),V};var y={g:function(h,E){var R=new p;return f(E,R),L(h,R,this._defs),R},rect:function(h,E){var R=new g;return f(E,R),L(h,R,this._defs),R.setShape({x:parseFloat(h.getAttribute("x")||0),y:parseFloat(h.getAttribute("y")||0),width:parseFloat(h.getAttribute("width")||0),height:parseFloat(h.getAttribute("height")||0)}),R},circle:function(h,E){var R=new m;return f(E,R),L(h,R,this._defs),R.setShape({cx:parseFloat(h.getAttribute("cx")||0),cy:parseFloat(h.getAttribute("cy")||0),r:parseFloat(h.getAttribute("r")||0)}),R},line:function(h,E){var R=new a;return f(E,R),L(h,R,this._defs),R.setShape({x1:parseFloat(h.getAttribute("x1")||0),y1:parseFloat(h.getAttribute("y1")||0),x2:parseFloat(h.getAttribute("x2")||0),y2:parseFloat(h.getAttribute("y2")||0)}),R},ellipse:function(h,E){var R=new u;return f(E,R),L(h,R,this._defs),R.setShape({cx:parseFloat(h.getAttribute("cx")||0),cy:parseFloat(h.getAttribute("cy")||0),rx:parseFloat(h.getAttribute("rx")||0),ry:parseFloat(h.getAttribute("ry")||0)}),R},polygon:function(h,E){var R=h.getAttribute("points");R&&(R=O(R));var X=new i({shape:{points:R||[]}});return f(E,X),L(h,X,this._defs),X},polyline:function(h,E){var R=new e;f(E,R),L(h,R,this._defs);var X=h.getAttribute("points");X&&(X=O(X));var V=new t({shape:{points:X||[]}});return V},image:function(h,E){var R=new k;return f(E,R),L(h,R,this._defs),R.setStyle({image:h.getAttribute("xlink:href"),x:h.getAttribute("x"),y:h.getAttribute("y"),width:h.getAttribute("width"),height:h.getAttribute("height")}),R},text:function(h,E){var R=h.getAttribute("x")||0,X=h.getAttribute("y")||0,V=h.getAttribute("dx")||0,Z=h.getAttribute("dy")||0;this._textX=parseFloat(R)+parseFloat(V),this._textY=parseFloat(X)+parseFloat(Z);var K=new p;return f(E,K),L(h,K,this._defs),K},tspan:function(h,E){var R=h.getAttribute("x"),X=h.getAttribute("y");R!=null&&(this._textX=parseFloat(R)),X!=null&&(this._textY=parseFloat(X));var V=h.getAttribute("dx")||0,Z=h.getAttribute("dy")||0,K=new p;return f(E,K),L(h,K,this._defs),this._textX+=V,this._textY+=Z,K},path:function(h,E){var R=h.getAttribute("d")||"",X=S(R);return f(E,X),L(h,X,this._defs),X}},s={lineargradient:function(h){var E=parseInt(h.getAttribute("x1")||0,10),R=parseInt(h.getAttribute("y1")||0,10),X=parseInt(h.getAttribute("x2")||10,10),V=parseInt(h.getAttribute("y2")||0,10),Z=new r(E,R,X,V);return n(h,Z),Z},radialgradient:function(h){}};function n(h,E){for(var R=h.firstChild;R;){if(R.nodeType===1){var X=R.getAttribute("offset");X.indexOf("%")>0?X=parseInt(X,10)/100:X?X=parseFloat(X):X=0;var V=R.getAttribute("stop-color")||"#000000";E.addColorStop(X,V)}R=R.nextSibling}}function f(h,E){h&&h.__inheritedStyle&&(E.__inheritedStyle||(E.__inheritedStyle={}),C(E.__inheritedStyle,h.__inheritedStyle))}function O(h){for(var E=F(h).split(A),R=[],X=0;X<E.length;X+=2){var V=parseFloat(E[X]),Z=parseFloat(E[X+1]);R.push([V,Z])}return R}var w={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function L(h,E,R,X){var V=E.__inheritedStyle||{},Z=E.type==="text";if(h.nodeType===1&&(D(h,E),P(V,U(h)),!X)){for(var K in w)if(w.hasOwnProperty(K)){var ee=h.getAttribute(K);ee!=null&&(V[w[K]]=ee)}}var te=Z?"textFill":"fill",ue=Z?"textStroke":"stroke";E.style=E.style||new o;var le=E.style;V.fill!=null&&le.set(te,x(V.fill,R)),V.stroke!=null&&le.set(ue,x(V.stroke,R)),d(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(he){var G=he==="lineWidth"&&Z?"textStrokeWidth":he;V[he]!=null&&le.set(G,parseFloat(V[he]))}),(!V.textBaseline||V.textBaseline==="auto")&&(V.textBaseline="alphabetic"),V.textBaseline==="alphabetic"&&(V.textBaseline="bottom"),V.textAlign==="start"&&(V.textAlign="left"),V.textAlign==="end"&&(V.textAlign="right"),d(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(he){V[he]!=null&&le.set(he,V[he])}),V.lineDash&&(E.style.lineDash=F(V.lineDash).split(A)),le[ue]&&le[ue]!=="none"&&(E[ue]=!0),E.__inheritedStyle=V}var l=/url\(\s*#(.*?)\)/;function x(h,E){var R=E&&h&&h.match(l);if(R){var X=F(R[1]),V=E[X];return V}return h}var B=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function D(h,E){var R=h.getAttribute("transform");if(R){R=R.replace(/,/g," ");var X=null,V=[];R.replace(B,function(te,ue,le){V.push(ue,le)});for(var Z=V.length-1;Z>0;Z-=2){var K=V[Z],ee=V[Z-1];X=X||c.create();switch(ee){case"translate":K=F(K).split(A),c.translate(X,X,[parseFloat(K[0]),parseFloat(K[1]||0)]);break;case"scale":K=F(K).split(A),c.scale(X,X,[parseFloat(K[0]),parseFloat(K[1]||K[0])]);break;case"rotate":K=F(K).split(A),c.rotate(X,X,parseFloat(K[0]));break;case"skew":K=F(K).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":var K=F(K).split(A);X[0]=parseFloat(K[0]),X[1]=parseFloat(K[1]),X[2]=parseFloat(K[2]),X[3]=parseFloat(K[3]),X[4]=parseFloat(K[4]),X[5]=parseFloat(K[5]);break}}E.setLocalTransform(X)}}var N=/([^\s:;]+)\s*:\s*([^:;]+)/g;function U(h){var E=h.getAttribute("style"),R={};if(!E)return R;var X={};N.lastIndex=0;for(var V;(V=N.exec(E))!=null;)X[V[1]]=V[2];for(var Z in w)w.hasOwnProperty(Z)&&X[Z]!=null&&(R[w[Z]]=X[Z]);return R}function W(h,E,R){var X=E/h.width,V=R/h.height,Z=Math.min(X,V),K=[Z,Z],ee=[-(h.x+h.width/2)*Z+E/2,-(h.y+h.height/2)*Z+R/2];return{scale:K,position:ee}}function H(h,E){var R=new j;return R.parse(h,E)}I.parseXML=T,I.makeViewBoxTransform=W,I.parseSVG=H},75991:function(Y,I,_){var p=_(10712),k=_(14014),b=_(35028),m=Math.sqrt,g=Math.sin,u=Math.cos,a=Math.PI,e=function(C){return Math.sqrt(C[0]*C[0]+C[1]*C[1])},i=function(C,F){return(C[0]*F[0]+C[1]*F[1])/(e(C)*e(F))},t=function(C,F){return(C[0]*F[1]<C[1]*F[0]?-1:1)*Math.acos(i(C,F))};function r(C,F,d,A,T,j,y,s,n,f,O){var w=n*(a/180),L=u(w)*(C-d)/2+g(w)*(F-A)/2,l=-1*g(w)*(C-d)/2+u(w)*(F-A)/2,x=L*L/(y*y)+l*l/(s*s);x>1&&(y*=m(x),s*=m(x));var B=(T===j?-1:1)*m((y*y*(s*s)-y*y*(l*l)-s*s*(L*L))/(y*y*(l*l)+s*s*(L*L)))||0,D=B*y*l/s,N=B*-s*L/y,U=(C+d)/2+u(w)*D-g(w)*N,W=(F+A)/2+g(w)*D+u(w)*N,H=t([1,0],[(L-D)/y,(l-N)/s]),h=[(L-D)/y,(l-N)/s],E=[(-1*L-D)/y,(-1*l-N)/s],R=t(h,E);i(h,E)<=-1&&(R=a),i(h,E)>=1&&(R=0),j===0&&R>0&&(R=R-2*a),j===1&&R<0&&(R=R+2*a),O.addData(f,U,W,y,s,H,R,w,j)}var o=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,c=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v(C){if(!C)return new k;for(var F=0,d=0,A=F,T=d,j,y=new k,s=k.CMD,n=C.match(o),f=0;f<n.length;f++){for(var O=n[f],w=O.charAt(0),L,l=O.match(c)||[],x=l.length,B=0;B<x;B++)l[B]=parseFloat(l[B]);for(var D=0;D<x;){var N,U,W,H,h,E,R,X=F,V=d;switch(w){case"l":F+=l[D++],d+=l[D++],L=s.L,y.addData(L,F,d);break;case"L":F=l[D++],d=l[D++],L=s.L,y.addData(L,F,d);break;case"m":F+=l[D++],d+=l[D++],L=s.M,y.addData(L,F,d),A=F,T=d,w="l";break;case"M":F=l[D++],d=l[D++],L=s.M,y.addData(L,F,d),A=F,T=d,w="L";break;case"h":F+=l[D++],L=s.L,y.addData(L,F,d);break;case"H":F=l[D++],L=s.L,y.addData(L,F,d);break;case"v":d+=l[D++],L=s.L,y.addData(L,F,d);break;case"V":d=l[D++],L=s.L,y.addData(L,F,d);break;case"C":L=s.C,y.addData(L,l[D++],l[D++],l[D++],l[D++],l[D++],l[D++]),F=l[D-2],d=l[D-1];break;case"c":L=s.C,y.addData(L,l[D++]+F,l[D++]+d,l[D++]+F,l[D++]+d,l[D++]+F,l[D++]+d),F+=l[D-2],d+=l[D-1];break;case"S":N=F,U=d;var Z=y.len(),K=y.data;j===s.C&&(N+=F-K[Z-4],U+=d-K[Z-3]),L=s.C,X=l[D++],V=l[D++],F=l[D++],d=l[D++],y.addData(L,N,U,X,V,F,d);break;case"s":N=F,U=d;var Z=y.len(),K=y.data;j===s.C&&(N+=F-K[Z-4],U+=d-K[Z-3]),L=s.C,X=F+l[D++],V=d+l[D++],F+=l[D++],d+=l[D++],y.addData(L,N,U,X,V,F,d);break;case"Q":X=l[D++],V=l[D++],F=l[D++],d=l[D++],L=s.Q,y.addData(L,X,V,F,d);break;case"q":X=l[D++]+F,V=l[D++]+d,F+=l[D++],d+=l[D++],L=s.Q,y.addData(L,X,V,F,d);break;case"T":N=F,U=d;var Z=y.len(),K=y.data;j===s.Q&&(N+=F-K[Z-4],U+=d-K[Z-3]),F=l[D++],d=l[D++],L=s.Q,y.addData(L,N,U,F,d);break;case"t":N=F,U=d;var Z=y.len(),K=y.data;j===s.Q&&(N+=F-K[Z-4],U+=d-K[Z-3]),F+=l[D++],d+=l[D++],L=s.Q,y.addData(L,N,U,F,d);break;case"A":W=l[D++],H=l[D++],h=l[D++],E=l[D++],R=l[D++],X=F,V=d,F=l[D++],d=l[D++],L=s.A,r(X,V,F,d,E,R,W,H,h,L,y);break;case"a":W=l[D++],H=l[D++],h=l[D++],E=l[D++],R=l[D++],X=F,V=d,F+=l[D++],d+=l[D++],L=s.A,r(X,V,F,d,E,R,W,H,h,L,y);break}}(w==="z"||w==="Z")&&(L=s.Z,y.addData(L),F=A,d=T),j=L}return y.toStatic(),y}function S(C,F){var d=v(C);return F=F||{},F.buildPath=function(A){if(A.setData){A.setData(d.data);var T=A.getContext();T&&A.rebuildPath(T)}else{var T=A;d.rebuildPath(T)}},F.applyTransform=function(A){b(d,A),this.dirty(!0)},F}function M(C,F){return new p(S(C,F))}function z(C,F){return p.extend(S(C,F))}function P(C,F){for(var d=[],A=C.length,T=0;T<A;T++){var j=C[T];j.path||j.createPathProxy(),j.__dirtyPath&&j.buildPath(j.path,j.shape,!0),d.push(j.path)}var y=new p(F);return y.createPathProxy(),y.buildPath=function(s){s.appendPath(d);var n=s.getContext();n&&s.rebuildPath(n)},y}I.createFromString=M,I.extendFromString=z,I.mergePath=P},35028:function(Y,I,_){var p=_(14014),k=_(45280),b=k.applyTransform,m=p.CMD,g=[[],[],[]],u=Math.sqrt,a=Math.atan2;function e(i,t){var r=i.data,o,c,v,S,M,z,P=m.M,C=m.C,F=m.L,d=m.R,A=m.A,T=m.Q;for(v=0,S=0;v<r.length;){o=r[v++],S=v,c=0;switch(o){case P:c=1;break;case F:c=1;break;case C:c=3;break;case T:c=2;break;case A:var j=t[4],y=t[5],s=u(t[0]*t[0]+t[1]*t[1]),n=u(t[2]*t[2]+t[3]*t[3]),f=a(-t[1]/n,t[0]/s);r[v]*=s,r[v++]+=j,r[v]*=n,r[v++]+=y,r[v++]*=s,r[v++]*=n,r[v++]+=f,r[v++]+=f,v+=2,S=v;break;case d:z[0]=r[v++],z[1]=r[v++],b(z,z,t),r[S++]=z[0],r[S++]=z[1],z[0]+=r[v++],z[1]+=r[v++],b(z,z,t),r[S++]=z[0],r[S++]=z[1]}for(M=0;M<c;M++){var z=g[M];z[0]=r[v++],z[1]=r[v++],b(z,z,t),r[S++]=z[0],r[S++]=z[1]}}}Y.exports=e},85762:function(Y,I,_){var p=_(48612),k=_(50381),b=_(33051),m=b.each;function g(i){return parseInt(i,10)}function u(i,t){k.initVML(),this.root=i,this.storage=t;var r=document.createElement("div"),o=document.createElement("div");r.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",o.style.cssText="position:absolute;left:0;top:0;",i.appendChild(r),this._vmlRoot=o,this._vmlViewport=r,this.resize();var c=t.delFromStorage,v=t.addToStorage;t.delFromStorage=function(S){c.call(t,S),S&&(S.onRemove&&S.onRemove(o))},t.addToStorage=function(S){S.onAdd&&S.onAdd(o),v.call(t,S)},this._firstPaint=!0}u.prototype={constructor:u,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},refresh:function(){var i=this.storage.getDisplayList(!0,!0);this._paintList(i)},_paintList:function(i){for(var t=this._vmlRoot,r=0;r<i.length;r++){var o=i[r];o.invisible||o.ignore?(o.__alreadyNotVisible||o.onRemove(t),o.__alreadyNotVisible=!0):(o.__alreadyNotVisible&&o.onAdd(t),o.__alreadyNotVisible=!1,o.__dirty&&(o.beforeBrush&&o.beforeBrush(),(o.brushVML||o.brush).call(o,t),o.afterBrush&&o.afterBrush())),o.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(i,t){var i=i==null?this._getWidth():i,t=t==null?this._getHeight():t;if(this._width!==i||this._height!==t){this._width=i,this._height=t;var r=this._vmlViewport.style;r.width=i+"px",r.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var i=this.root,t=i.currentStyle;return(i.clientWidth||g(t.width))-g(t.paddingLeft)-g(t.paddingRight)|0},_getHeight:function(){var i=this.root,t=i.currentStyle;return(i.clientHeight||g(t.height))-g(t.paddingTop)-g(t.paddingBottom)|0}};function a(i){return function(){p('In IE8.0 VML mode painter not support method "'+i+'"')}}m(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(i){u.prototype[i]=a(i)});var e=u;Y.exports=e},50381:function(Y,I,_){var p=_(66387),k="urn:schemas-microsoft-com:vml",b=typeof window=="undefined"?null:window,m=!1,g=b&&b.document;function u(i){return a(i)}var a;if(g&&!p.canvasSupported)try{!g.namespaces.zrvml&&g.namespaces.add("zrvml",k),a=function(i){return g.createElement("<zrvml:"+i+' class="zrvml">')}}catch(i){a=function(t){return g.createElement("<"+t+' xmlns="'+k+'" class="zrvml">')}}function e(){if(m||!g)return;m=!0;var i=g.styleSheets;i.length<31?g.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):i[0].addRule(".zrvml","behavior:url(#default#VML)")}I.doc=g,I.createNode=u,I.initVML=e},91862:function(Y,I,_){var p=_(66387),k=_(45280),b=k.applyTransform,m=_(60479),g=_(21092),u=_(80423),a=_(98886),e=_(41406),i=_(7719),t=_(44535),r=_(96498),o=_(10712),c=_(14014),v=_(31797),S=_(50381),M=c.CMD,z=Math.round,P=Math.sqrt,C=Math.abs,F=Math.cos,d=Math.sin,A=Math.max;if(!p.canvasSupported){var T=",",j="progid:DXImageTransform.Microsoft",y=21600,s=y/2,n=1e5,f=1e3,O=function(Q){Q.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Q.coordsize=y+","+y,Q.coordorigin="0,0"},w=function(Q){return String(Q).replace(/&/g,"&").replace(/"/g,""")},L=function(Q,J,ae){return"rgb("+[Q,J,ae].join(",")+")"},l=function(Q,J){J&&Q&&J.parentNode!==Q&&Q.appendChild(J)},x=function(Q,J){J&&Q&&J.parentNode===Q&&Q.removeChild(J)},B=function(Q,J,ae){return(parseFloat(Q)||0)*n+(parseFloat(J)||0)*f+ae},D=a.parsePercent,N=function(Q,J,ae){var oe=g.parse(J);ae=+ae,isNaN(ae)&&(ae=1),oe&&(Q.color=L(oe[0],oe[1],oe[2]),Q.opacity=ae*oe[3])},U=function(Q){var J=g.parse(Q);return[L(J[0],J[1],J[2]),J[3]]},W=function(Q,J,ae){var oe=J.fill;if(oe!=null)if(oe instanceof v){var ie,se=0,pe=[0,0],ve=0,be=1,we=ae.getBoundingRect(),ce=we.width,fe=we.height;if(oe.type==="linear"){ie="gradient";var ye=ae.transform,xe=[oe.x*ce,oe.y*fe],ge=[oe.x2*ce,oe.y2*fe];ye&&(b(xe,xe,ye),b(ge,ge,ye));var De=ge[0]-xe[0],Me=ge[1]-xe[1];se=Math.atan2(De,Me)*180/Math.PI,se<0&&(se+=360),se<1e-6&&(se=0)}else{ie="gradientradial";var xe=[oe.x*ce,oe.y*fe],ye=ae.transform,Se=ae.scale,ze=ce,Ce=fe;pe=[(xe[0]-we.x)/ze,(xe[1]-we.y)/Ce],ye&&b(xe,xe,ye),ze/=Se[0]*y,Ce/=Se[1]*y;var Ae=A(ze,Ce);ve=2*0/Ae,be=2*oe.r/Ae-ve}var me=oe.colorStops.slice();me.sort(function(Ee,Re){return Ee.offset-Re.offset});for(var Te=me.length,_e=[],Oe=[],Pe=0;Pe<Te;Pe++){var Le=me[Pe],ke=U(Le.color);Oe.push(Le.offset*be+ve+" "+ke[0]),(Pe===0||Pe===Te-1)&&_e.push(ke)}if(Te>=2){var je=_e[0][0],Ge=_e[1][0],Ne=_e[0][1]*J.opacity,Be=_e[1][1]*J.opacity;Q.type=ie,Q.method="none",Q.focus="100%",Q.angle=se,Q.color=je,Q.color2=Ge,Q.colors=Oe.join(","),Q.opacity=Be,Q.opacity2=Ne}ie==="radial"&&(Q.focusposition=pe.join(","))}else N(Q,oe,J.opacity)},H=function(Q,J){J.lineDash&&(Q.dashstyle=J.lineDash.join(" ")),J.stroke!=null&&!(J.stroke instanceof v)&&N(Q,J.stroke,J.opacity)},h=function(Q,J,ae,oe){var ie=J==="fill",se=Q.getElementsByTagName(J)[0];ae[J]!=null&&ae[J]!=="none"&&(ie||!ie&&ae.lineWidth)?(Q[ie?"filled":"stroked"]="true",ae[J]instanceof v&&x(Q,se),se||(se=S.createNode(J)),ie?W(se,ae,oe):H(se,ae),l(Q,se)):(Q[ie?"filled":"stroked"]="false",x(Q,se))},E=[[],[],[]],R=function(Q,J){var ae=M.M,oe=M.C,ie=M.L,se=M.A,pe=M.Q,ve=[],be,we,ce,fe,ye,xe,ge=Q.data,De=Q.len();for(fe=0;fe<De;){ce=ge[fe++],we="",be=0;switch(ce){case ae:we=" m ",be=1,ye=ge[fe++],xe=ge[fe++],E[0][0]=ye,E[0][1]=xe;break;case ie:we=" l ",be=1,ye=ge[fe++],xe=ge[fe++],E[0][0]=ye,E[0][1]=xe;break;case pe:case oe:we=" c ",be=3;var Me=ge[fe++],Se=ge[fe++],ze=ge[fe++],Ce=ge[fe++],Ae,me;ce===pe?(Ae=ze,me=Ce,ze=(ze+2*Me)/3,Ce=(Ce+2*Se)/3,Me=(ye+2*Me)/3,Se=(xe+2*Se)/3):(Ae=ge[fe++],me=ge[fe++]),E[0][0]=Me,E[0][1]=Se,E[1][0]=ze,E[1][1]=Ce,E[2][0]=Ae,E[2][1]=me,ye=Ae,xe=me;break;case se:var Te=0,_e=0,Oe=1,Pe=1,Le=0;J&&(Te=J[4],_e=J[5],Oe=P(J[0]*J[0]+J[1]*J[1]),Pe=P(J[2]*J[2]+J[3]*J[3]),Le=Math.atan2(-J[1]/Pe,J[0]/Oe));var ke=ge[fe++],je=ge[fe++],Ge=ge[fe++],Ne=ge[fe++],Be=ge[fe++]+Le,Ee=ge[fe++]+Be+Le;fe++;var Re=ge[fe++],He=ke+F(Be)*Ge,Ve=je+d(Be)*Ne,Me=ke+F(Ee)*Ge,Se=je+d(Ee)*Ne,Xe=Re?" wa ":" at ";Math.abs(He-Me)<1e-4&&(Math.abs(Ee-Be)>.01?Re&&(He+=270/y):Math.abs(Ve-je)<1e-4?Re&&He<ke||!Re&&He>ke?Se-=270/y:Se+=270/y:Re&&Ve<je||!Re&&Ve>je?Me+=270/y:Me-=270/y),ve.push(Xe,z(((ke-Ge)*Oe+Te)*y-s),T,z(((je-Ne)*Pe+_e)*y-s),T,z(((ke+Ge)*Oe+Te)*y-s),T,z(((je+Ne)*Pe+_e)*y-s),T,z((He*Oe+Te)*y-s),T,z((Ve*Pe+_e)*y-s),T,z((Me*Oe+Te)*y-s),T,z((Se*Pe+_e)*y-s)),ye=Me,xe=Se;break;case M.R:var Ie=E[0],Fe=E[1];Ie[0]=ge[fe++],Ie[1]=ge[fe++],Fe[0]=Ie[0]+ge[fe++],Fe[1]=Ie[1]+ge[fe++],J&&(b(Ie,Ie,J),b(Fe,Fe,J)),Ie[0]=z(Ie[0]*y-s),Fe[0]=z(Fe[0]*y-s),Ie[1]=z(Ie[1]*y-s),Fe[1]=z(Fe[1]*y-s),ve.push(" m ",Ie[0],T,Ie[1]," l ",Fe[0],T,Ie[1]," l ",Fe[0],T,Fe[1]," l ",Ie[0],T,Fe[1]);break;case M.Z:ve.push(" x ")}if(be>0){ve.push(we);for(var Ue=0;Ue<be;Ue++){var We=E[Ue];J&&b(We,We,J),ve.push(z(We[0]*y-s),T,z(We[1]*y-s),Ue<be-1?T:"")}}}return ve.join("")};o.prototype.brushVML=function(Q){var J=this.style,ae=this._vmlEl;ae||(ae=S.createNode("shape"),O(ae),this._vmlEl=ae),h(ae,"fill",J,this),h(ae,"stroke",J,this);var oe=this.transform,ie=oe!=null,se=ae.getElementsByTagName("stroke")[0];if(se){var pe=J.lineWidth;if(ie&&!J.strokeNoScale){var ve=oe[0]*oe[3]-oe[1]*oe[2];pe*=P(C(ve))}se.weight=pe+"px"}var be=this.path||(this.path=new c);this.__dirtyPath&&(be.beginPath(),be.subPixelOptimize=!1,this.buildPath(be,this.shape),be.toStatic(),this.__dirtyPath=!1),ae.path=R(be,this.transform),ae.style.zIndex=B(this.zlevel,this.z,this.z2),l(Q,ae),J.text!=null?this.drawRectText(Q,this.getBoundingRect()):this.removeRectText(Q)},o.prototype.onRemove=function(Q){x(Q,this._vmlEl),this.removeRectText(Q)},o.prototype.onAdd=function(Q){l(Q,this._vmlEl),this.appendRectText(Q)};var X=function(Q){return typeof Q=="object"&&Q.tagName&&Q.tagName.toUpperCase()==="IMG"};t.prototype.brushVML=function(Q){var J=this.style,ae=J.image,oe,ie;if(X(ae)){var se=ae.src;if(se===this._imageSrc)oe=this._imageWidth,ie=this._imageHeight;else{var pe=ae.runtimeStyle,ve=pe.width,be=pe.height;pe.width="auto",pe.height="auto",oe=ae.width,ie=ae.height,pe.width=ve,pe.height=be,this._imageSrc=se,this._imageWidth=oe,this._imageHeight=ie}ae=se}else ae===this._imageSrc&&(oe=this._imageWidth,ie=this._imageHeight);if(!ae)return;var we=J.x||0,ce=J.y||0,fe=J.width,ye=J.height,xe=J.sWidth,ge=J.sHeight,De=J.sx||0,Me=J.sy||0,Se=xe&&ge,ze=this._vmlEl;ze||(ze=S.doc.createElement("div"),O(ze),this._vmlEl=ze);var Ce=ze.style,Ae=!1,me,Te=1,_e=1;if(this.transform&&(me=this.transform,Te=P(me[0]*me[0]+me[1]*me[1]),_e=P(me[2]*me[2]+me[3]*me[3]),Ae=me[1]||me[2]),Ae){var Oe=[we,ce],Pe=[we+fe,ce],Le=[we,ce+ye],ke=[we+fe,ce+ye];b(Oe,Oe,me),b(Pe,Pe,me),b(Le,Le,me),b(ke,ke,me);var je=A(Oe[0],Pe[0],Le[0],ke[0]),Ge=A(Oe[1],Pe[1],Le[1],ke[1]),Ne=[];Ne.push("M11=",me[0]/Te,T,"M12=",me[2]/_e,T,"M21=",me[1]/Te,T,"M22=",me[3]/_e,T,"Dx=",z(we*Te+me[4]),T,"Dy=",z(ce*_e+me[5])),Ce.padding="0 "+z(je)+"px "+z(Ge)+"px 0",Ce.filter=j+".Matrix("+Ne.join("")+", SizingMethod=clip)"}else me&&(we=we*Te+me[4],ce=ce*_e+me[5]),Ce.filter="",Ce.left=z(we)+"px",Ce.top=z(ce)+"px";var Be=this._imageEl,Ee=this._cropEl;Be||(Be=S.doc.createElement("div"),this._imageEl=Be);var Re=Be.style;if(Se){if(oe&&ie)Re.width=z(Te*oe*fe/xe)+"px",Re.height=z(_e*ie*ye/ge)+"px";else{var He=new Image,Ve=this;He.onload=function(){He.onload=null,oe=He.width,ie=He.height,Re.width=z(Te*oe*fe/xe)+"px",Re.height=z(_e*ie*ye/ge)+"px",Ve._imageWidth=oe,Ve._imageHeight=ie,Ve._imageSrc=ae},He.src=ae}Ee||(Ee=S.doc.createElement("div"),Ee.style.overflow="hidden",this._cropEl=Ee);var Xe=Ee.style;Xe.width=z((fe+De*fe/xe)*Te),Xe.height=z((ye+Me*ye/ge)*_e),Xe.filter=j+".Matrix(Dx="+-De*fe/xe*Te+",Dy="+-Me*ye/ge*_e+")",Ee.parentNode||ze.appendChild(Ee),Be.parentNode!==Ee&&Ee.appendChild(Be)}else Re.width=z(Te*fe)+"px",Re.height=z(_e*ye)+"px",ze.appendChild(Be),Ee&&Ee.parentNode&&(ze.removeChild(Ee),this._cropEl=null);var Ie="",Fe=J.opacity;Fe<1&&(Ie+=".Alpha(opacity="+z(Fe*100)+") "),Ie+=j+".AlphaImageLoader(src="+ae+", SizingMethod=scale)",Re.filter=Ie,ze.style.zIndex=B(this.zlevel,this.z,this.z2),l(Q,ze),J.text!=null&&this.drawRectText(Q,this.getBoundingRect())},t.prototype.onRemove=function(Q){x(Q,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(Q)},t.prototype.onAdd=function(Q){l(Q,this._vmlEl),this.appendRectText(Q)};var V="normal",Z={},K=0,ee=100,te=document.createElement("div"),ue=function(Q){var J=Z[Q];if(!J){K>ee&&(K=0,Z={});var ae=te.style,oe;try{ae.font=Q,oe=ae.fontFamily.split(",")[0]}catch(ie){}J={style:ae.fontStyle||V,variant:ae.fontVariant||V,weight:ae.fontWeight||V,size:parseFloat(ae.fontSize||12)|0,family:oe||"Microsoft YaHei"},Z[Q]=J,K++}return J},le;u.$override("measureText",function(Q,J){var ae=S.doc;le||(le=ae.createElement("div"),le.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",S.doc.body.appendChild(le));try{le.style.font=J}catch(oe){}return le.innerHTML="",le.appendChild(ae.createTextNode(Q)),{width:le.offsetWidth}});for(var he=new m,G=function(Q,J,ae,oe){var ie=this.style;this.__dirty&&a.normalizeTextStyle(ie,!0);var se=ie.text;if(se!=null&&(se+=""),!se)return;if(ie.rich){var pe=u.parseRichText(se,ie);se=[];for(var ve=0;ve<pe.lines.length;ve++){for(var be=pe.lines[ve].tokens,we=[],ce=0;ce<be.length;ce++)we.push(be[ce].text);se.push(we.join(""))}se=se.join(`
|
|
`)}var fe,ye,xe=ie.textAlign,ge=ie.textVerticalAlign,De=ue(ie.font),Me=De.style+" "+De.variant+" "+De.weight+" "+De.size+'px "'+De.family+'"';ae=ae||u.getBoundingRect(se,Me,xe,ge,ie.textPadding,ie.textLineHeight);var Se=this.transform;if(Se&&!oe&&(he.copy(J),he.applyTransform(Se),J=he),oe)fe=J.x,ye=J.y;else{var ze=ie.textPosition;if(ze instanceof Array)fe=J.x+D(ze[0],J.width),ye=J.y+D(ze[1],J.height),xe=xe||"left";else{var Ce=this.calculateTextPosition?this.calculateTextPosition({},ie,J):u.calculateTextPosition({},ie,J);fe=Ce.x,ye=Ce.y,xe=xe||Ce.textAlign,ge=ge||Ce.textVerticalAlign}}fe=u.adjustTextX(fe,ae.width,xe),ye=u.adjustTextY(ye,ae.height,ge),ye+=ae.height/2;var Ae=S.createNode,me=this._textVmlEl,Te,_e,Oe;me?(Oe=me.firstChild,Te=Oe.nextSibling,_e=Te.nextSibling):(me=Ae("line"),Te=Ae("path"),_e=Ae("textpath"),Oe=Ae("skew"),_e.style["v-text-align"]="left",O(me),Te.textpathok=!0,_e.on=!0,me.from="0 0",me.to="1000 0.05",l(me,Oe),l(me,Te),l(me,_e),this._textVmlEl=me);var Pe=[fe,ye],Le=me.style;Se&&oe?(b(Pe,Pe,Se),Oe.on=!0,Oe.matrix=Se[0].toFixed(3)+T+Se[2].toFixed(3)+T+Se[1].toFixed(3)+T+Se[3].toFixed(3)+",0,0",Oe.offset=(z(Pe[0])||0)+","+(z(Pe[1])||0),Oe.origin="0 0",Le.left="0px",Le.top="0px"):(Oe.on=!1,Le.left=z(fe)+"px",Le.top=z(ye)+"px"),_e.string=w(se);try{_e.style.font=Me}catch(ke){}h(me,"fill",{fill:ie.textFill,opacity:ie.opacity},this),h(me,"stroke",{stroke:ie.textStroke,opacity:ie.opacity,lineDash:ie.lineDash||null},this),me.style.zIndex=B(this.zlevel,this.z,this.z2),l(Q,me)},$=function(Q){x(Q,this._textVmlEl),this._textVmlEl=null},re=function(Q){l(Q,this._textVmlEl)},q=[e,i,t,o,r],ne=0;ne<q.length;ne++){var de=q[ne].prototype;de.drawRectText=G,de.removeRectText=$,de.appendRectText=re}r.prototype.brushVML=function(Q){var J=this.style;J.text!=null?this.drawRectText(Q,{x:J.x||0,y:J.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(Q)},r.prototype.onRemove=function(Q){this.removeRectText(Q)},r.prototype.onAdd=function(Q){this.appendRectText(Q)}}},62227:function(Y,I,_){_(91862);var p=_(31931),k=p.registerPainter,b=_(85762);k("vml",b)},31931:function(Y,I,_){var p=_(78038),k=_(66387),b=_(33051),m=_(48173),g=_(8822),u=_(19847),a=_(76069),e=_(85546);/*!
|
|
* ZRender, a high performance 2d drawing library.
|
|
*
|
|
* Copyright (c) 2013, Baidu Inc.
|
|
* All rights reserved.
|
|
*
|
|
* LICENSE
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
*/var i=!k.canvasSupported,t={canvas:u},r={},o="4.3.1";function c(C,F){var d=new P(p(),C,F);return r[d.id]=d,d}function v(C){if(C)C.dispose();else{for(var F in r)r.hasOwnProperty(F)&&r[F].dispose();r={}}return this}function S(C){return r[C]}function M(C,F){t[C]=F}function z(C){delete r[C]}var P=function(C,F,d){d=d||{},this.dom=F,this.id=C;var A=this,T=new g,j=d.renderer;if(i){if(!t.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");j="vml"}else(!j||!t[j])&&(j="canvas");var y=new t[j](F,T,d,C);this.storage=T,this.painter=y;var s=!k.node&&!k.worker?new e(y.getViewportRoot(),y.root):null;this.handler=new m(T,y,s,y.root),this.animation=new a({stage:{update:b.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var n=T.delFromStorage,f=T.addToStorage;T.delFromStorage=function(O){n.call(T,O),O&&O.removeSelfFromZr(A)},T.addToStorage=function(O){f.call(T,O),O.addSelfToZr(A)}};P.prototype={constructor:P,getId:function(){return this.id},add:function(C){this.storage.addRoot(C),this._needsRefresh=!0},remove:function(C){this.storage.delRoot(C),this._needsRefresh=!0},configLayer:function(C,F){this.painter.configLayer&&this.painter.configLayer(C,F),this._needsRefresh=!0},setBackgroundColor:function(C){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(C),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var C;this._needsRefresh&&(C=!0,this.refreshImmediately()),this._needsRefreshHover&&(C=!0,this.refreshHoverImmediately()),C&&this.trigger("rendered")},addHover:function(C,F){if(this.painter.addHover){var d=this.painter.addHover(C,F);return this.refreshHover(),d}},removeHover:function(C){this.painter.removeHover&&(this.painter.removeHover(C),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(C){C=C||{},this.painter.resize(C.width,C.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(C,F){return this.painter.pathToImage(C,F)},setCursorStyle:function(C){this.handler.setCursorStyle(C)},findHover:function(C,F){return this.handler.findHover(C,F)},on:function(C,F,d){this.handler.on(C,F,d)},off:function(C,F){this.handler.off(C,F)},trigger:function(C,F){this.handler.trigger(C,F)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,z(this.id)}},I.version=o,I.init=c,I.dispose=v,I.getInstance=S,I.registerPainter=M}}]);
|